:root {
  color-scheme: light;
  --ink: #15201c;
  --muted: #60716a;
  --paper: #fbfaf6;
  --paper-deep: #f4efe4;
  --line: #dfe5dc;
  --leaf: #246b54;
  --leaf-dark: #164937;
  --mint: #e8f2eb;
  --tomato: #c94a3a;
  --gold: #d7a642;
  --sun: #fff4d6;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(244, 239, 228, 0.7)),
    var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 0 max(16px, calc((100vw - 1120px) / 2));
  background: rgba(251, 250, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

.nav,
.actions,
.card-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav a,
.public-link {
  color: var(--muted);
  text-decoration: none;
}

.link-button,
.danger-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.danger-link {
  color: var(--tomato);
}

.link-button:disabled,
.danger-link:disabled {
  cursor: wait;
  opacity: 0.55;
}

.nav-owner {
  color: var(--leaf-dark);
  font-weight: 800;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--leaf);
  border-radius: 7px;
  background: var(--leaf);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  transform: translateY(-1px);
}

.button:disabled,
.button[disabled] {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
}

.button.ghost {
  background: transparent;
  color: var(--leaf);
}

.button.ghost:hover {
  background: var(--mint);
  border-color: #b8d3c1;
  color: var(--leaf-dark);
}

.flash {
  width: min(1120px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid #cfe1d3;
  border-radius: 7px;
  background: #eef8ef;
  color: var(--leaf-dark);
}

.toast-container {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
}

.toast {
  padding: 13px 14px;
  border: 1px solid #cfe1d3;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 16px 38px rgba(21, 32, 28, 0.16);
  line-height: 1.35;
}

.toast.success {
  border-color: #b8d3c1;
  background: #eef8ef;
  color: var(--leaf-dark);
}

.toast.error {
  border-color: #efb5ad;
  background: #fff1ef;
  color: #8c2c22;
}

.toast.info {
  border-color: #d7caa9;
  background: var(--sun);
  color: #6d531c;
}

.form-status {
  margin: 0;
  padding: 10px 12px;
  border-radius: 7px;
  background: var(--mint);
  color: var(--leaf-dark);
  font-size: 14px;
  line-height: 1.35;
}

.form-status.error {
  background: #fff1ef;
  color: #8c2c22;
}

.form-status.info {
  background: var(--sun);
  color: #6d531c;
}

.is-loading {
  opacity: 0.82;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 68px);
  padding: 48px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--tomato);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  font-size: 72px;
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.hero-preview {
  min-height: 520px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 107, 84, 0.92), rgba(21, 32, 28, 0.82)),
    url("https://images.unsplash.com/photo-1555396273-367ea4eb4db5?auto=format&fit=crop&w=1200&q=80");
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: center;
  padding: 28px;
}

.phone {
  width: min(310px, 100%);
  border-radius: 28px;
  background: var(--paper);
  padding: 18px;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
}

.phone-header {
  padding: 22px 10px;
  font-size: 26px;
  font-weight: 800;
}

.menu-section {
  margin: 12px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-section span {
  display: block;
  color: var(--tomato);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-section strong,
.menu-section small {
  display: block;
  margin-top: 6px;
}

.menu-section small {
  color: var(--muted);
}

.menu-section.accent {
  border-color: #f0d89c;
  background: #fff8e7;
}

.auth-panel {
  width: min(460px, 100%);
  margin: 64px auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.auth-panel h1 {
  margin-bottom: 24px;
  font-size: 34px;
  line-height: 1.05;
}

.stack,
.settings-form,
.item-form,
.inline-form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  padding: 10px 12px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.page-header,
.editor-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 42px 0 24px;
}

.page-header h1,
.editor-header h1 {
  font-size: 48px;
}

.inline-form {
  grid-template-columns: minmax(180px, 1fr) 96px auto;
  align-items: end;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding-bottom: 48px;
}

.menu-card,
.empty-state,
.category-panel,
.settings-band {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(21, 32, 28, 0.06);
}

.menu-card {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.menu-card h2,
.category-panel h2,
.public-category h2 {
  margin: 0;
}

.menu-card p,
.muted {
  color: var(--muted);
}

.qr-thumb {
  width: 128px;
  height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  color: var(--muted);
}

.share-panel {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px);
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 38px rgba(21, 32, 28, 0.06);
}

.qr-box,
.share-link {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.qr-box {
  justify-items: center;
}

.qr-box img {
  width: 150px;
  height: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.share-link span,
.qr-box span {
  font-weight: 800;
  color: var(--ink);
}

.share-link .public-link {
  display: block;
  padding: 10px 12px;
  border: 1px dashed #b8c8bd;
  border-radius: 7px;
  background: var(--mint);
  color: var(--leaf-dark);
  line-height: 1.35;
}

.settings-band {
  padding: 18px;
}

.settings-form {
  grid-template-columns: minmax(180px, 1fr) 110px minmax(180px, 0.8fr) 120px auto;
  align-items: end;
}

.check-row {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}

.check-row input {
  width: 18px;
  min-height: 18px;
}

.add-category {
  padding: 24px 0;
}

.category-list {
  display: grid;
  gap: 20px;
  padding-bottom: 56px;
}

.category-panel {
  padding: 18px;
}

.category-title,
.item-row,
.public-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.items {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.item-row {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.item-delete-button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid #efb5ad;
  border-radius: 7px;
  background: #fff1ef;
  font-weight: 800;
}

.category-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.category-cover,
.public-category-image {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(36, 107, 84, 0.18);
  background: linear-gradient(135deg, #f6f8f4, #e8f2eb);
}

.category-cover img,
.public-category-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.item-image-frame,
.public-item-image-frame {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  padding: 4px;
  border: 1px solid rgba(36, 107, 84, 0.2);
  border-radius: 10px;
  background: linear-gradient(135deg, #ffffff, #edf4ef);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.76);
}

.item-image-frame img,
.public-item-image-frame img {
  width: 100%;
  height: 100%;
  border-radius: 7px;
  object-fit: cover;
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed #cbd9d0;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(232, 242, 235, 0.84)),
    var(--mint);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.item-copy {
  display: grid;
  gap: 4px;
  flex: 1;
}

.item-copy span {
  color: var(--muted);
  font-size: 14px;
}

.price {
  color: var(--leaf-dark);
  font-weight: 800;
  white-space: nowrap;
}

.item-form {
  grid-template-columns: 1fr 120px 1.4fr 180px auto;
  align-items: start;
}

.public-body {
  background:
    radial-gradient(circle at top left, rgba(255, 244, 214, 0.95), transparent 320px),
    linear-gradient(180deg, #fffaf0, #f1eadc);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 12px 0;
}

.public-menu {
  width: min(820px, calc(100% - 28px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 28px 28px 60px;
  border-left: 1px solid rgba(222, 212, 195, 0.9);
  border-right: 1px solid rgba(222, 212, 195, 0.9);
  background: var(--white);
  box-shadow: 0 24px 70px rgba(21, 32, 28, 0.16);
}

#menu-content.public-menu {
  background-color: #ffffff;
  background-image: none;
}

.public-menu .public-header,
.public-menu .category-tabs,
.public-menu .public-category,
.public-menu .public-category-heading,
.public-menu .public-items,
.public-menu .public-item {
  background-color: #ffffff;
}

.public-header {
  position: relative;
  padding: 38px 0 26px;
  border-bottom: 2px solid rgba(21, 32, 28, 0.88);
}

.other-menus-link {
  position: absolute;
  top: 34px;
  right: 0;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid #d5c9b8;
  border-radius: 999px;
  background: #ffffff;
  color: var(--leaf-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.restaurant-name {
  display: inline-flex;
  max-width: calc(100% - 140px);
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--leaf-dark) !important;
  font-size: 14px;
  font-weight: 900;
  text-transform: none !important;
}

.public-header p {
  margin: 0 0 8px;
  color: var(--tomato);
  font-weight: 800;
  text-transform: uppercase;
}

.public-header h1 {
  font-size: 78px;
}

.category-tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  display: flex;
  gap: 10px;
  margin: 0 -6px;
  padding: 14px 6px;
  overflow-x: auto;
  background: var(--white);
  border-bottom: 1px solid rgba(222, 212, 195, 0.9);
}

.category-tab {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #d5c9b8;
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.category-tab.active {
  border-color: var(--leaf-dark);
  background: var(--leaf-dark);
  color: var(--white);
}

.public-category {
  scroll-margin-top: 76px;
  padding: 30px 0 4px;
}

.public-category h2 {
  margin: 0;
  color: var(--leaf-dark);
  font-size: 28px;
}

.public-category-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.public-items {
  display: grid;
  gap: 14px;
}

.public-item {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid #ded4c3;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(57, 44, 24, 0.06);
}

.public-item-image-frame {
  width: 132px;
  height: 100px;
  flex: 0 0 132px;
  padding: 5px;
}

.public-placeholder {
  font-size: 12px;
}

.public-item h3,
.public-item p {
  margin: 0;
}

.public-item p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
}

.public-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 4px;
  border: 1px solid #d5c9b8;
  border-radius: 999px;
  background: #fffaf0;
}

.quantity-button {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--leaf);
  border-radius: 50%;
  background: var(--leaf);
  color: var(--white);
  font: inherit;
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.quantity-button:disabled {
  cursor: default;
  opacity: 0.4;
}

.quantity-count {
  min-width: 26px;
  color: var(--leaf-dark);
  font-weight: 900;
  text-align: center;
}

.floating-order-button {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--leaf-dark);
  border-radius: 999px;
  background: var(--leaf-dark);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(21, 32, 28, 0.24);
}

.floating-order-count {
  min-width: 28px;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}

.floating-order-button strong {
  font-size: 13px;
  white-space: nowrap;
}

.public-item-title strong {
  flex: 0 0 auto;
  color: var(--leaf-dark);
  font-size: 18px;
}

.order-page {
  display: grid;
  gap: 16px;
  padding: 28px 0 8px;
}

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

.order-item {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) auto minmax(96px, auto);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border: 1px solid #ded4c3;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 28px rgba(57, 44, 24, 0.06);
}

.order-item-image-frame {
  width: 82px;
  height: 72px;
  padding: 4px;
  border: 1px solid rgba(36, 107, 84, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #edf4ef);
}

.order-item-image-frame img {
  width: 100%;
  height: 100%;
  border-radius: 6px;
  object-fit: cover;
  display: block;
}

.order-item-copy {
  min-width: 0;
}

.order-item h3,
.order-item p {
  margin: 0;
}

.order-item p {
  margin-top: 6px;
  color: var(--muted);
}

.order-item-controls {
  display: grid;
  justify-items: center;
  gap: 10px;
}

.order-item-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.order-item-divider {
  width: 1px;
  height: 20px;
  background: #d5c9b8;
}

.order-item-total {
  justify-self: end;
  color: var(--leaf-dark);
  font-size: 18px;
  white-space: nowrap;
}

.order-total {
  position: sticky;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--leaf-dark);
  border-radius: 8px;
  background: var(--leaf-dark);
  color: var(--white);
  box-shadow: 0 16px 36px rgba(21, 32, 28, 0.22);
}

.order-total span {
  font-weight: 800;
}

.order-total strong {
  font-size: 24px;
}

.public-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.public-footer a {
  color: var(--leaf-dark);
  font-weight: 800;
  text-decoration: none;
}

.github-link,
.make-menu-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
}

.github-link {
  border: 1px solid #202924;
  background: #15201c;
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(21, 32, 28, 0.14);
}

.make-menu-link {
  border: 1px solid #b8d3c1;
  background: var(--mint);
}

.restaurant-menus-grid {
  display: grid;
  gap: 14px;
  padding: 28px 0;
}

.restaurant-menu-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(57, 44, 24, 0.06);
}

.restaurant-menu-card span {
  font-size: 20px;
  font-weight: 800;
}

.restaurant-menu-card small {
  color: var(--leaf-dark);
  font-weight: 800;
}

@media (max-width: 820px) {
  main {
    width: min(100% - 24px, 620px);
  }

  .hero,
  .page-header,
  .editor-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    min-height: auto;
  }

  .hero-preview {
    min-height: 420px;
  }

  h1,
  .public-header h1 {
    font-size: 42px;
  }

  .inline-form,
  .settings-form,
  .item-form,
  .share-panel {
    grid-template-columns: 1fr;
  }

  .share-panel {
    justify-items: stretch;
  }

  .qr-box {
    justify-items: start;
  }

  .item-row {
    align-items: start;
    flex-wrap: wrap;
  }

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

  .public-item img {
    width: 100%;
    height: 210px;
  }

  .public-item-title {
    align-items: flex-start;
  }

  .other-menus-link {
    position: static;
    margin-bottom: 16px;
  }

  .restaurant-name {
    max-width: 100%;
  }
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(36, 107, 84, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(215, 166, 66, 0.14), transparent 24%),
    linear-gradient(180deg, #fcfbf7 0%, #f4efe4 100%);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 20%, rgba(36, 107, 84, 0.08), transparent 20%),
    radial-gradient(circle at 80% 15%, rgba(201, 74, 58, 0.07), transparent 18%),
    radial-gradient(circle at 50% 90%, rgba(215, 166, 66, 0.06), transparent 22%);
  z-index: -1;
}
.category-cover-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  padding: 10px;
}

.qr-placeholder {
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  text-align: center;
  padding: 10px;
}

.public-qr-banner {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(21, 32, 28, 0.08);
}

.public-qr-banner img {
  width: 120px;
  height: 120px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #fff;
}

/* Final override: the whole rendered public menu data area must be white. */
body.public-body #menu-content.public-menu,
body.public-body #menu-content.public-menu > .public-header,
body.public-body #menu-content.public-menu > .category-tabs,
body.public-body #menu-content.public-menu > .public-category,
body.public-body #menu-content.public-menu .public-category-heading,
body.public-body #menu-content.public-menu .public-items,
body.public-body #menu-content.public-menu .public-item {
  background: #ffffff !important;
  background-color: #ffffff !important;
  background-image: none !important;
}

body.public-body #menu-content.public-menu {
  min-height: 100vh;
  width: min(820px, calc(100% - 28px));
  margin: 0 auto !important;
  padding: 28px 28px 60px !important;
  border-radius: 0 !important;
}

@media (max-width: 820px) {
  body {
    overflow-x: hidden;
  }

  main {
    width: min(100% - 20px, 620px);
  }

  .topbar {
    min-height: auto;
    padding: 12px;
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .brand {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
  }

  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav-owner {
    width: 100%;
  }

  .button,
  input,
  textarea {
    min-height: 46px;
  }

  .hero {
    gap: 24px;
    padding: 28px 0;
  }

  .lead {
    font-size: 17px;
  }

  .hero-preview {
    min-height: 360px;
    padding: 18px;
  }

  .phone {
    border-radius: 22px;
  }

  .auth-panel {
    margin: 28px auto;
    padding: 20px;
  }

  .auth-panel h1,
  .page-header h1,
  .editor-header h1 {
    font-size: 34px;
  }

  .page-header,
  .editor-header {
    padding: 28px 0 18px;
  }

  .inline-form,
  .settings-form,
  .item-form,
  .share-panel {
    grid-template-columns: 1fr !important;
  }

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

  .menu-card,
  .category-panel,
  .settings-band,
  .share-panel {
    padding: 14px;
  }

  .share-panel {
    justify-items: stretch;
  }

  .qr-box {
    justify-items: start;
  }

  .category-title,
  .item-row,
  .public-item-title,
  .restaurant-menu-card,
  .public-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .category-heading,
  .public-category-heading {
    align-items: center;
  }

  .item-row {
    display: grid;
    grid-template-columns: 76px 1fr;
  }

  .item-row .price,
  .item-row .danger-link {
    grid-column: 1 / -1;
  }

  .item-delete-button {
    width: 100%;
    justify-content: center;
  }

  body.public-body #menu-content.public-menu {
    width: calc(100% - 24px) !important;
    min-height: calc(100vh - 24px);
    margin: 0 auto 12px !important;
    padding: 16px 14px 42px !important;
    border: 1px solid rgba(222, 212, 195, 0.9);
    border-radius: 8px !important;
    box-shadow: 0 18px 48px rgba(21, 32, 28, 0.14);
  }

  .public-header {
    padding: 20px 0 20px;
  }

  .other-menus-link {
    position: static;
    width: fit-content;
    margin-bottom: 14px;
  }

  .restaurant-name {
    max-width: 100%;
  }

  .category-tabs {
    top: 0;
    margin: 0 -14px;
    padding: 12px 14px;
  }

  .category-tab {
    min-height: 38px;
    padding: 0 13px;
    font-size: 14px;
  }

  .public-category {
    padding: 24px 0 2px;
  }

  .public-category-image {
    width: 64px;
    height: 64px;
    flex-basis: 64px;
  }

  .public-item {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 10px;
  }

  .public-item-image-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .public-item-image-frame img {
    width: 100%;
    height: 100%;
  }

  .public-item-title {
    gap: 8px;
  }

  .public-item-title strong {
    align-self: flex-start;
  }

  .floating-order-button {
    top: 10px;
    left: 10px;
    max-width: calc(100vw - 20px);
  }

  .floating-order-button strong {
    display: none;
  }

  .order-item {
    grid-template-columns: 74px minmax(0, 1fr);
    align-items: center;
  }

  .order-item-controls,
  .order-item-total {
    grid-column: 1 / -1;
  }

  .order-item-controls {
    justify-items: start;
  }

  .order-item-total {
    justify-self: end;
  }

  .order-total {
    align-items: stretch;
    flex-direction: column;
  }

  .order-item-controls .public-item-actions {
    width: fit-content;
  }

  .toast-container {
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
  }
}

@media (max-width: 420px) {
  h1,
  .public-header h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .actions,
  .card-actions {
    width: 100%;
    align-items: stretch;
    flex-direction: column;
  }

  .actions .button,
  .card-actions .button {
    width: 100%;
  }

  .hero-preview {
    min-height: 300px;
  }

  .phone-header {
    font-size: 22px;
  }

  .public-footer a,
  .github-link,
  .make-menu-link {
    width: 100%;
    justify-content: center;
  }
}
