:root {
  --md-primary: #1976d2;
  --md-on-primary: #ffffff;
  --md-primary-container: #e3f2fd;
  --md-on-primary-container: #0d47a1;
  --md-surface: #f6f6f6;
  --md-surface-container: #ffffff;
  --md-on-surface: #111111;
  --md-on-surface-variant: rgba(0, 0, 0, 0.6);
  --md-outline: #e6e6e6;
  --md-outline-strong: #bdbdbd;
  --md-error: #f44336;
  --md-error-container: #ffebee;
  --md-on-error-container: #b71c1c;
  --md-inverse-surface: #111111;
  --md-inverse-on-surface: #ffffff;
  --md-elev: 0 1px 3px rgba(0, 0, 0, 0.05);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--md-surface);
  color: var(--md-on-surface);
  font: 16px/24px Roboto, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { opacity: 0.38; cursor: default; }
img { max-width: 100%; display: block; }

.top-app-bar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.top-app-bar h1 {
  flex: 1;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

main {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 16px 16px calc(80px + env(safe-area-inset-bottom));
  touch-action: pan-y;
}
body.admin { overflow-x: hidden; }
body.admin main,
body.home main {
  width: min(960px, 100%);
  padding-bottom: 24px;
}
.landing-bar { height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.brand-logo { height: 48px; width: auto; }
.brand-mark { flex: 1; margin: 0; font-weight: 700; letter-spacing: 0.06em; }
.landing-nav {
  position: sticky;
  top: 64px;
  z-index: 19;
  display: flex;
  gap: 16px;
  padding: 8px 16px;
  background: var(--md-surface);
  border-bottom: 1px solid var(--md-outline);
}
.landing-nav a { color: var(--md-primary); font-weight: 600; text-decoration: none; }
.landing-section { margin-top: 24px; }
.landing-section > h2 { margin: 0 0 16px; }
#about { margin-top: 16px; }
#about h2 { margin: 0 0 8px; }
#about p { margin: 4px 0; }

@media (min-width: 960px) {
  body.landing .landing-bar,
  body.landing .landing-nav {
    padding-left: max(24px, calc((100% - 1280px) / 2 + 24px));
    padding-right: max(24px, calc((100% - 1280px) / 2 + 24px));
  }
  body.landing .landing-nav {
    top: 64px;
    gap: 8px;
  }
  body.landing main {
    width: min(1280px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 32px;
    row-gap: 8px;
    align-items: start;
  }
  body.landing main > * + * { margin-top: 0; }
  body.landing #about,
  body.landing #menu { grid-column: 1 / -1; }
  body.landing #about {
    display: grid;
    grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px 32px;
    align-items: baseline;
  }
  body.landing #about h2,
  body.landing #about p { margin: 0; }
  body.landing #menu { margin-top: 8px; }
  body.landing .category-group { margin-bottom: 24px; }
  body.landing .positions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.landing form.card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  body.landing form.card > * { margin-top: 0; }
  body.landing form.card .text-field:has(textarea),
  body.landing form.card .banner-error,
  body.landing form.card .btn { grid-column: 1 / -1; }
}
@media (min-width: 1280px) {
  body.landing .positions-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
body.admin main { min-height: calc(100vh - 104px); }
body.admin main.tab-next { animation: tab-slide-next 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
body.admin main.tab-prev { animation: tab-slide-prev 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes tab-slide-next {
  from { transform: translateX(100%); }
  to { transform: none; }
}
@keyframes tab-slide-prev {
  from { transform: translateX(-100%); }
  to { transform: none; }
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #111;
}
.icon-btn svg { width: 24px; height: 24px; fill: currentColor; display: block; }
.icon-btn:hover { background: rgba(0, 0, 0, 0.04); }
.icon-btn:disabled { opacity: 0.38; background: transparent; }
body.guest main { width: min(1200px, 100%); }
main > * + * { margin-top: 16px; }

@media (min-width: 768px) {
  main { padding: 24px 24px calc(88px + env(safe-area-inset-bottom)); }
  body.admin main,
  body.home main { padding-bottom: 24px; }
}

.tabs {
  position: sticky;
  top: 56px;
  z-index: 19;
  display: flex;
  overflow-x: auto;
  background: #fff;
  border-bottom: 1px solid #eee;
}
.tab {
  flex: 1 0 auto;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: rgba(0, 0, 0, 0.54);
  white-space: nowrap;
}
.tab.active {
  color: var(--md-primary);
  border-bottom-color: var(--md-primary);
  font-weight: 600;
}

.nav-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  height: calc(64px + env(safe-area-inset-bottom));
  padding: 8px 0 env(safe-area-inset-bottom);
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}
.nav-bar button {
  flex: 1;
  border: 0;
  background: transparent;
  color: rgba(0, 0, 0, 0.54);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 64px;
  min-height: 48px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.nav-bar button.active { color: var(--md-primary); }
.nav-bar svg { width: 24px; height: 24px; fill: currentColor; display: block; }

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: var(--md-elev);
  overflow: hidden;
}
.pad { padding: 16px; }
.card.pad > * + * { margin-top: 12px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hours-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.hours-fields .text-field { flex: 1 1 140px; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lines { display: flex; flex-direction: column; gap: 8px; }
.line { display: flex; justify-content: space-between; gap: 12px; }
.muted { color: var(--md-on-surface-variant); margin: 0; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.total { font-size: 16px; font-weight: 600; margin: 0; }
.comment { white-space: pre-wrap; margin: 0; }
h2, h3 { font-weight: 600; margin: 0; color: #111; }
h2 { font-size: 18px; line-height: 24px; }
h3 { font-size: 16px; line-height: 24px; }
.category-title { font-size: 18px; margin: 0; }
.category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.category-toggle {
  flex: 1 1 160px;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-weight: 600;
}

.menu-tabs {
  position: sticky;
  top: 56px;
  z-index: 19;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #eee;
}
.menu-tabs-scroll {
  position: relative;
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0 8px;
  scrollbar-width: none;
}
.menu-tabs-scroll::-webkit-scrollbar { display: none; }
.menu-tab {
  flex: 0 0 auto;
  margin-bottom: -1px;
  padding: 12px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #333;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  min-height: 48px;
}
.menu-tab.active { color: #111; }
.menu-tab-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: #111;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.category-group { margin-bottom: 48px; scroll-margin-top: 112px; }
.category-group-title {
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e6e6e6;
  color: #111;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}
.positions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 600px) {
  .positions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .positions-grid { grid-template-columns: repeat(3, 1fr); }
}
.position-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.position-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: #f5f5f5;
}
.position-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.position-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}
.position-name {
  margin: 0 0 16px;
  color: #111;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.33;
}
.position-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  margin-bottom: 16px;
}
.position-price {
  color: #111;
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}
.position-actions { display: flex; align-items: center; margin-top: auto; }
.qty-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  background: transparent;
  color: #111;
  font-size: 18px;
  line-height: 1;
}
.qty-btn:hover { background: rgba(0, 0, 0, 0.04); }
.qty-val {
  min-width: 24px;
  text-align: center;
  font-weight: 600;
  font-size: 14px;
}
.bucket-link { margin-top: 24px; }

.btn {
  border-radius: 4px;
  min-height: 40px;
  padding: 10px 16px;
  border: 0;
  font-weight: 600;
}
.btn-filled { background: var(--md-primary); color: var(--md-on-primary); }
.btn-filled:hover { background: #1565c0; }
.btn-outlined {
  background: transparent;
  color: #111;
  border: 1px solid var(--md-outline);
}
.btn-outlined:hover { background: rgba(0, 0, 0, 0.04); }
.btn-text { background: transparent; color: var(--md-primary); padding: 10px 12px; }
.btn-block { width: 100%; }
a.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

form > * + * { margin-top: 12px; }

.text-field { display: flex; flex-direction: column; gap: 8px; width: 100%; margin: 0; }
.text-field span { font-size: 14px; font-weight: 500; color: rgba(0, 0, 0, 0.87); }
.text-field input,
.text-field textarea,
.text-field select {
  width: 100%;
  border: 1px solid var(--md-outline);
  border-radius: 4px;
  padding: 12px;
  background: #fff;
}
.text-field textarea { min-height: 96px; resize: vertical; }
.text-field input:focus,
.text-field textarea:focus,
.text-field select:focus {
  outline: none;
  border-color: var(--md-primary);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  background: #f6f6f6;
  color: rgba(0, 0, 0, 0.6);
}
.chip-pending { background: #e3f2fd; color: #1565c0; }
.chip-accepted { background: #fff3e0; color: #e65100; }
.chip-done { background: #eceff1; color: #455a64; }

.dish-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f6f6f6;
}
.dish-card .pad { display: flex; flex-direction: column; gap: 12px; }

.qty { display: flex; align-items: center; gap: 12px; }
.qty button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--md-outline);
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 20px;
}

.order-pending { box-shadow: inset 4px 0 0 var(--md-primary), var(--md-elev); }
.order-accepted { box-shadow: inset 4px 0 0 #fb8c00, var(--md-elev); }

.dish-admin {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px 0 0;
  border-top: 1px solid var(--md-outline);
}
.dish-admin img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  background: #f6f6f6;
}
.dish-admin > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.dish-admin.is-off img { filter: grayscale(1); opacity: 0.7; }
.edit-dish { margin-top: 4px; }

.switch-row { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.switch {
  appearance: none;
  width: 52px;
  height: 32px;
  border-radius: 16px;
  background: #eee;
  border: 0;
  position: relative;
  flex: none;
  margin: 0;
}
.switch::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  top: 4px;
  left: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.switch:checked { background: var(--md-primary); }
.switch:checked::after { left: 24px; }

.banner, .banner-error { padding: 12px 16px; border-radius: 8px; margin: 0; width: 100%; }
.offline-banner { position: sticky; top: 0; z-index: 6; border-radius: 0; }
.banner { background: var(--md-primary-container); color: var(--md-on-primary-container); }
.banner-error { background: var(--md-error-container); color: var(--md-on-error-container); }

.snackbar {
  position: fixed;
  left: 50%;
  bottom: calc(76px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 40;
  max-width: min(560px, calc(100% - 32px));
  padding: 14px 16px;
  border-radius: 4px;
  background: var(--md-inverse-surface);
  color: var(--md-inverse-on-surface);
}
body.admin .snackbar { bottom: 24px; }

.dialog-scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.32);
}
.dialog {
  width: min(400px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}
.dialog p { margin: 12px 0 0; color: var(--md-on-surface-variant); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.login-wrap {
  min-height: calc(100dvh - 104px);
  display: grid;
  place-items: center;
}
.login-card { width: min(420px, 100%); }
.empty-state { text-align: center; padding: 32px 16px; color: var(--md-on-surface-variant); }
.empty-state-title {
  margin: 0 0 8px;
  color: var(--md-on-surface);
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
}

:focus-visible { outline: 2px solid var(--md-primary); outline-offset: 2px; }

@media (max-width: 600px) {
  .dish-admin { grid-template-columns: 72px 1fr; gap: 12px; }
  .dish-admin img { width: 72px; height: 72px; }
  .row { align-items: flex-start; }
}

/* Guest-facing Material theme: tonal surfaces, consistent shape and actions. */
:is(.landing, .guest) {
  --md-primary: #285649;
  --md-on-primary: #fff;
  --md-primary-container: #dcebe1;
  --md-on-primary-container: #183c30;
  --md-surface: #faf9f6;
  --md-on-surface: #232b26;
  --md-on-surface-variant: #616963;
  --md-outline: #d7dcd4;
  --md-elev: none;
  font-family: "Segoe UI", system-ui, sans-serif;
}
:is(.landing, .guest) :is(h1, h2, h3) { color: var(--md-on-surface); }
:is(.landing, .guest) .top-app-bar { height: 72px; background: var(--md-surface); border-bottom: 1px solid var(--md-outline); }
:is(.landing, .guest) .btn { min-height: 44px; border-radius: 24px; padding: 10px 20px; font-size: 14px; font-weight: 600; }
:is(.landing, .guest) .btn-filled:hover { background: #1c4438; }
:is(.landing, .guest) .btn-tonal { display: inline-flex; align-items: center; justify-content: center; gap: 16px; background: var(--md-primary-container); color: var(--md-on-primary-container); text-decoration: none; }
:is(.landing, .guest) .btn-tonal:hover { background: #cbdfd1; }
:is(.landing, .guest) .btn:active { transform: scale(.98); }
:is(.landing, .guest) .btn-outlined { border-color: var(--md-outline); color: var(--md-primary); }
:is(.landing, .guest) .card { border-radius: 20px; box-shadow: none; border: 1px solid var(--md-outline); }
:is(.landing, .guest) h2 { font-size: 26px; line-height: 34px; font-weight: 500; }
:is(.landing, .guest) .category-group { margin-bottom: 36px; scroll-margin-top: 150px; }
:is(.landing, .guest) .category-group-title { font-size: 20px; line-height: 28px; font-weight: 600; border: 0; padding: 0; margin: 0 0 16px; }
:is(.landing, .guest) .positions-grid { gap: 16px; }
:is(.landing, .guest) .position-card { border-radius: 20px; background: #fff; box-shadow: none; border: 1px solid var(--md-outline); transition: border-color .15s; }
:is(.landing, .guest) .position-card:hover { border-color: #92a79a; }
:is(.landing, .guest) .position-content { padding: 22px; gap: 24px; min-height: 144px; }
:is(.landing, .guest) .position-name { font-size: 17px; line-height: 24px; font-weight: 600; margin: 0; }
:is(.landing, .guest) .position-footer { margin: auto 0 0; gap: 12px; flex-wrap: wrap; }
:is(.landing, .guest) .position-price { font-size: 18px; font-weight: 600; color: var(--md-on-surface); }
:is(.landing, .guest) .position-actions { margin: 0; }
:is(.landing, .guest) .qty-controls { background: var(--md-primary-container); border-radius: 24px; gap: 0; }
:is(.landing, .guest) .qty-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; color: var(--md-primary); }
:is(.landing, .guest) .qty-val { min-width: 30px; }
:is(.landing, .guest) .qty button { width: 44px; height: 44px; border-radius: 50%; color: var(--md-primary); background: var(--md-primary-container); border: 0; }
:is(.landing, .guest) .text-field :is(input, textarea, select) { border-radius: 12px; background: #fff; min-height: 52px; }
:is(.landing, .guest) .text-field :is(input, textarea, select):focus-visible { outline: 2px solid var(--md-primary); outline-offset: -2px; }
:is(.landing, .guest) .cart-dock { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 30; width: min(440px, calc(100% - 32px)); min-height: 60px; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; border-radius: 20px; background: var(--md-primary); color: #fff; text-decoration: none; box-shadow: 0 6px 24px #183c3026; }
:is(.landing, .guest) .cart-dock strong { white-space: nowrap; }
:is(.landing, .guest) .snackbar { bottom: 100px; border-radius: 12px; }
body.landing .landing-bar { padding-left: max(24px, calc((100% - 1200px) / 2 + 24px)); padding-right: max(24px, calc((100% - 1200px) / 2 + 24px)); }
body.landing .brand-logo { height: 46px; mix-blend-mode: multiply; }
body.landing .brand-mark { letter-spacing: .12em; font-size: 14px; }
body.landing .landing-nav { top: 72px; padding: 8px max(24px, calc((100% - 1200px) / 2 + 24px)); gap: 8px; background: var(--md-surface); }
body.landing .landing-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; border-radius: 24px; font-size: 14px; color: var(--md-on-surface-variant); white-space: nowrap; }
body.landing .landing-nav a.active { background: var(--md-primary-container); color: var(--md-on-primary-container); }
body.landing main { display: block; width: min(1200px, 100%); padding: 24px 24px 110px; }
body.landing #about { display: block; margin: 0 0 40px; padding: 40px; border-radius: 28px; background: #e9eee5; }
body.landing #about .eyebrow { margin: 0 0 16px; font-size: 11px; font-weight: 700; letter-spacing: .16em; color: #526750; }
body.landing #about h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: -.035em; font-weight: 500; margin: 0 0 20px; }
body.landing #about p:not(.eyebrow) { color: var(--md-on-surface-variant); margin: 0 0 24px; }
body.landing .section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
body.landing .section-heading .muted { font-size: 14px; }
body.landing .category-links { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 24px; }
body.landing .category-links a { border: 1px solid var(--md-outline); border-radius: 12px; padding: 8px 20px; color: var(--md-on-surface); font-size: 14px; text-decoration: none; white-space: nowrap; }
body.landing .category-links a:hover { background: var(--md-primary-container); }
body.landing #booking { max-width: 680px; margin: 24px auto; scroll-margin-top: 150px; }
body.landing #booking > h2 { margin-bottom: 8px; }
body.landing #booking > p { margin-bottom: 24px; }
body.landing form.card { padding: 28px; gap: 20px; }
body.landing form.card > * { margin-top: 0; }
body.landing #cart-root { margin: 24px 0; }
body.guest .guest-logo { display: block; width: 42px; height: 42px; object-fit: contain; mix-blend-mode: multiply; }
body.guest .top-app-bar h1 { font-size: 18px; font-weight: 500; }
body.guest .menu-tabs { top: 72px; background: var(--md-surface); border: 0; border-bottom: 1px solid var(--md-outline); }
body.guest .menu-tab { color: var(--md-on-surface-variant); }
body.guest .menu-tab.active { color: var(--md-primary); }
body.guest .menu-tab-indicator { background: var(--md-primary); height: 3px; border-radius: 3px 3px 0 0; }
body.guest main { padding: 24px 24px 180px; }
body.guest .nav-bar { background: #edf1e9; box-shadow: none; border: 0; height: calc(80px + env(safe-area-inset-bottom)); }
body.guest .nav-bar button { gap: 6px; }
body.guest .nav-bar button.active { color: var(--md-on-primary-container); }
body.guest .nav-bar button svg { box-sizing: content-box; padding: 3px 18px; border-radius: 20px; }
body.guest .nav-bar button.active svg { background: #d1e3d6; }
body.guest .cart-dock { bottom: calc(96px + env(safe-area-inset-bottom)); }
body.guest .snackbar { bottom: 170px; }
body.guest .bucket-link { display: none; }
@media (min-width: 960px) {
  body.landing .positions-grid, body.guest .positions-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body.guest :is(.top-app-bar, .menu-tabs-scroll) { padding-left: max(24px, calc((100% - 1200px) / 2 + 24px)); padding-right: max(24px, calc((100% - 1200px) / 2 + 24px)); }
  body.guest .nav-bar { position: sticky; top: 72px; bottom: auto; height: 56px; padding: 4px max(24px, calc((100% - 1200px) / 2 + 24px)); gap: 8px; }
  body.guest .nav-bar button { flex: 0 0 auto; flex-direction: row; font-size: 14px; border-radius: 24px; padding: 8px 20px; }
  body.guest .nav-bar button.active { background: #d1e3d6; }
  body.guest .nav-bar button svg { padding: 0; }
  body.guest .menu-tabs { top: 128px; }
  body.guest .category-group { scroll-margin-top: 192px; }
  body.guest .cart-dock { bottom: 24px; }
}
@media (max-width: 599px) {
  body.landing .landing-bar { padding: 0 16px; gap: 10px; }
  body.landing .brand-mark { font-size: 12px; letter-spacing: .06em; }
  body.landing .landing-bar .btn { padding: 10px 8px; font-size: 12px; }
  body.landing .landing-nav { padding: 8px 16px; gap: 4px; }
  body.landing .landing-nav a { flex: 1; padding: 10px 12px; }
  body.landing main { padding: 16px 16px 110px; }
  body.landing #about { padding: 28px 24px; margin-bottom: 28px; }
  body.landing .section-heading .muted, .desktop-break { display: none; }
  :is(.landing, .guest) .position-content { padding: 20px; gap: 16px; min-height: 128px; }
  :is(.landing, .guest) .position-image-wrapper { padding-top: 52%; }
  :is(.landing, .guest) .positions-grid { gap: 12px; }
  body.landing form.card { padding: 20px; }
  body.landing form.card > * + * { margin-top: 16px; }
  body.guest main { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.weekly-hours-list { display:grid; gap:16px; margin:24px 0; }
.weekly-hours-row { display:grid; grid-template-columns:minmax(130px,1.2fr) repeat(2,minmax(0,1fr)); gap:12px; align-items:start; padding-bottom:16px; border-bottom:1px solid var(--outline-variant, #393633); }
.weekly-hours-day { display:grid; gap:10px; padding-top:4px; }
.weekly-hours-row .text-field { min-width:0; margin:0; }
.weekly-hours-row input[type=time] { width:100%; min-width:0; box-sizing:border-box; }
.weekly-hours-row input:disabled { opacity:.4; }
@media(max-width:600px) {
  .weekly-hours-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .weekly-hours-day { grid-column:1/-1; display:flex; align-items:center; justify-content:space-between; gap:8px; }
}

/* Keep field focus rings inside scroll/clipping containers on all pages. */
body .text-field :is(input,textarea,select):focus { outline:2px solid var(--md-primary); outline-offset:-2px; box-shadow:none; }
