:root {
  color-scheme: light;
  --bg: #fff8ed;
  --surface: #fffdf7;
  --surface-strong: #ffffff;
  --text: #2d2119;
  --muted: #75695d;
  --line: #eadbc6;
  --brand: #6f4427;
  --brand-strong: #3b2416;
  --brand-soft: #efe1cd;
  --green: #667b52;
  --green-soft: #e8f0df;
  --gold: #c08a45;
  --charcoal: #3b2416;
  --shadow: 0 18px 46px rgba(59, 36, 22, 0.14);
  --radius: 8px;
  --nav-height: 78px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(180deg, #fff1df 0%, #fff8ed 34%, #f8fbf4 100%);
  color: var(--text);
}

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

button {
  cursor: pointer;
}

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

img {
  display: block;
  max-width: 100%;
}

.app-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding-bottom: calc(var(--nav-height) + env(safe-area-inset-bottom));
}

.hero {
  padding: max(16px, env(safe-area-inset-top)) 16px 18px;
}

.topbar,
.section-heading,
.brand,
.bottom-nav,
.nav-item,
.dish-meta,
.availability,
.quantity-control,
.order-row,
.empty-state {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 12px;
}

.brand {
  min-width: 0;
  color: inherit;
  text-decoration: none;
  gap: 10px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--brand);
  color: #fff7ef;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(59, 36, 22, 0.18);
}

.brand-logo-mark {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 14px;
  background: #fff8ef;
  object-fit: contain;
  padding: 3px;
  box-shadow: 0 12px 24px rgba(59, 36, 22, 0.16);
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.brand-copy strong {
  overflow: hidden;
  font-size: 1.04rem;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.78rem;
}

.status-pill,
.menu-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 8px 10px;
}

.development-24h-banner {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  margin: 14px 0 0;
  border: 1px solid rgba(192, 138, 69, 0.45);
  border-radius: 8px;
  background: #fff4dc;
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  padding: 9px 12px;
  text-align: center;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.language-switcher {
  position: relative;
  flex: 0 0 auto;
}

.language-trigger {
  display: inline-flex;
  min-width: 58px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(234, 219, 198, 0.95);
  border-radius: 999px;
  background: rgba(255, 253, 247, 0.94);
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
  padding: 0 10px;
  box-shadow: 0 10px 24px rgba(59, 36, 22, 0.12);
}

.language-caret {
  color: var(--green);
  font-size: 0.72rem;
  transform: translateY(-1px);
}

.language-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  width: min(238px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  overflow: hidden;
  border: 1px solid rgba(234, 219, 198, 0.96);
  border-radius: 12px;
  background: rgba(255, 253, 247, 0.98);
  box-shadow: 0 20px 48px rgba(59, 36, 22, 0.2);
  padding: 6px;
}

.language-menu-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 44px;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  font-weight: 850;
  text-align: left;
  padding: 8px 10px;
}

.language-menu-item span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.language-menu-item:hover,
.language-menu-item:focus-visible,
.language-menu-item.is-selected {
  background: var(--green-soft);
  color: var(--green);
}

.language-menu-code {
  color: var(--brand-strong);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.intro {
  padding: 25px 2px 18px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 11ch;
  margin-bottom: 8px;
  font-size: clamp(2.3rem, 12vw, 4.2rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
  line-height: 1.18;
}

h3 {
  margin-bottom: 7px;
  font-size: 1.08rem;
  line-height: 1.2;
}

.intro-copy {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.promo-banner {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.promo-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-banner::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(90deg, rgba(24, 18, 15, 0.76), rgba(24, 18, 15, 0.35) 56%, rgba(24, 18, 15, 0.1));
}

.promo-content {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 170px;
  align-content: end;
  padding: 22px;
  color: #fffdf7;
}

.promo-kicker {
  width: max-content;
  max-width: 100%;
  margin-bottom: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff5dd;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.promo-content h2 {
  margin-bottom: 6px;
  font-size: clamp(1.45rem, 7vw, 2.2rem);
}

.promo-content p {
  max-width: 22rem;
  margin-bottom: 0;
  color: rgba(255, 253, 247, 0.9);
  line-height: 1.35;
}

.content {
  padding: 0 16px 18px;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.section-heading {
  justify-content: space-between;
  gap: 14px;
  margin: 10px 0 14px;
}

.section-heading.compact {
  margin-top: 20px;
}

.category-scroller {
  position: sticky;
  top: 0;
  z-index: 5;
  margin: 0 -16px;
  overflow-x: auto;
  background: rgba(255, 248, 239, 0.94);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.category-tabs {
  display: flex;
  gap: 9px;
  width: max-content;
  min-width: 100%;
  padding: 8px 16px 11px;
}

.category-tab {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--muted);
  font-weight: 850;
  padding: 0 16px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(63, 43, 29, 0.06);
}

.category-tab.is-active {
  border-color: var(--brand);
  background: var(--brand);
  color: #fffdf7;
}

.menu-grid {
  display: grid;
  gap: 14px;
}

.dish-card {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(234, 223, 210, 0.88);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: 0 12px 28px rgba(44, 31, 21, 0.08);
}

.dish-photo {
  min-height: 100%;
  background-color: #f0eadf;
  background-image: var(--dish-image), linear-gradient(135deg, #fff1da, #dceedd);
  background-position: var(--sprite-x) var(--sprite-y), center;
  background-repeat: no-repeat;
  background-size: 400% 200%, cover;
}

.dish-body {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 12px;
}

.dish-title {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dish-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.dish-meta {
  justify-content: space-between;
  gap: 10px;
}

.price {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 950;
}

.availability {
  gap: 5px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 850;
}

.availability::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.primary-button,
.ghost-button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
}

.primary-button {
  background: var(--brand);
  color: #fffdf7;
  box-shadow: 0 12px 24px rgba(59, 36, 22, 0.2);
}

.primary-button:active,
.category-tab:active,
.nav-item:active {
  transform: translateY(1px);
}

.order-button {
  width: 100%;
}

.ghost-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--brand-strong);
  padding: 0 14px;
}

.promo-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.promo-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.promo-card div {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.promo-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.promo-order-button {
  width: 100%;
  margin-top: 4px;
}

.pickup-window-note {
  margin: -4px 0 12px;
  border: 1px solid rgba(192, 138, 69, 0.38);
  border-radius: 8px;
  background: #fff4dc;
  color: var(--brand-strong);
  font-size: 0.88rem;
  font-weight: 850;
  line-height: 1.4;
  overflow-wrap: anywhere;
  padding: 10px 12px;
}

.weekly-plan {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.weekly-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
}

.weekly-grid {
  display: grid;
  gap: 10px;
}

.weekly-day {
  display: grid;
  min-width: 0;
  gap: 10px;
  border: 1px solid rgba(234, 223, 210, 0.88);
  border-radius: 8px;
  background: rgba(255, 253, 247, 0.82);
  padding: 12px;
}

.weekly-day h3 {
  margin: 0;
  color: var(--brand-strong);
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.weekly-day ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weekly-day li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  color: var(--text);
}

.weekly-day li strong,
.weekly-day li small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.weekly-day li small {
  margin-top: 2px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 850;
}

.weekly-day li > span:last-child {
  color: var(--brand-strong);
  font-weight: 900;
  white-space: nowrap;
}

.weekly-day p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

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

.order-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 14px;
  box-shadow: 0 12px 28px rgba(44, 31, 21, 0.08);
}

.order-row {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 7px;
}

.order-row strong {
  line-height: 1.25;
}

.order-price {
  color: var(--brand-strong);
  font-weight: 950;
  white-space: nowrap;
}

.order-details {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.order-status,
.order-cancel-note {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.35;
}

.order-actions {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.order-cancel-confirm {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.order-cancel-confirm p {
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.4;
}

.review-box {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.review-title,
.review-comment {
  margin: 0;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.review-title {
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 900;
}

.review-comment {
  color: var(--muted);
  font-size: 0.9rem;
}

.star-row,
.star-actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 6px;
}

.star {
  color: #d7c1a1;
  font-size: 1.25rem;
  line-height: 1;
}

.star.is-filled {
  color: var(--gold);
}

.star-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  color: #d7c1a1;
  font-size: 1.4rem;
  line-height: 1;
}

.star-button.is-selected {
  border-color: rgba(192, 138, 69, 0.55);
  background: #fff4dc;
  color: var(--gold);
}

.review-field {
  display: grid;
  gap: 6px;
}

.review-field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.review-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf7;
  color: var(--text);
  line-height: 1.4;
  padding: 10px 11px;
  resize: vertical;
}

.review-submit {
  width: 100%;
}

.empty-state {
  min-height: 190px;
  justify-content: center;
  border: 1px dashed #d9c7b8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  padding: 20px;
  text-align: center;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  justify-content: center;
  height: calc(var(--nav-height) + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(225, 209, 194, 0.9);
  background: rgba(255, 253, 248, 0.94);
  padding: 8px 10px max(8px, env(safe-area-inset-bottom));
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 32px rgba(42, 31, 24, 0.1);
}

.nav-item {
  width: min(25%, 150px);
  min-height: 56px;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  flex-direction: column;
}

.nav-item.is-active {
  background: var(--brand-soft);
  color: var(--brand-strong);
}

.nav-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
}

.menu-icon::before,
.menu-icon::after,
.orders-icon::before,
.orders-icon::after,
.promo-icon::before,
.promo-icon::after,
.profile-icon::before,
.profile-icon::after {
  position: absolute;
  content: "";
}

.menu-icon::before {
  inset: 2px 4px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.menu-icon::after {
  top: 9px;
  right: 4px;
  left: 4px;
  border-top: 2px solid currentColor;
}

.promo-icon::before {
  inset: 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.promo-icon::after {
  top: 5px;
  right: 8px;
  bottom: 5px;
  border-left: 2px solid currentColor;
  transform: rotate(36deg);
}

.orders-icon::before {
  inset: 3px 5px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.orders-icon::after {
  top: 7px;
  right: 8px;
  left: 8px;
  border-top: 2px solid currentColor;
  box-shadow: 0 5px 0 currentColor;
}

.profile-icon::before {
  top: 3px;
  left: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.profile-icon::after {
  right: 4px;
  bottom: 3px;
  left: 4px;
  height: 9px;
  border: 2px solid currentColor;
  border-radius: 9px 9px 3px 3px;
}

.onboarding-shell,
.legal-page {
  display: grid;
  min-height: 100vh;
  background:
    linear-gradient(180deg, #fff1df 0%, #fff8ef 44%, #f8fbf4 100%);
  padding: max(18px, env(safe-area-inset-top)) 16px 28px;
  place-items: center;
}

.onboarding-card,
.legal-card {
  width: min(100%, 560px);
  border: 1px solid rgba(234, 223, 210, 0.9);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: var(--shadow);
  padding: 20px;
}

.legal-brand {
  width: min(100%, 560px);
  margin-bottom: 18px;
}

.onboarding-logo-wrap {
  display: grid;
  justify-items: center;
  margin-bottom: 12px;
}

.onboarding-logo {
  width: min(72vw, 230px);
  height: auto;
  object-fit: contain;
}

.language-card {
  gap: 16px;
}

.language-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.language-option {
  display: grid;
  min-height: 76px;
  min-width: 0;
  align-content: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--text);
  padding: 12px;
  text-align: left;
}

.language-option strong {
  color: var(--brand-strong);
  font-size: 1.15rem;
  font-weight: 950;
  min-width: 0;
  overflow-wrap: anywhere;
}

.language-option span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.language-option.is-selected,
.language-option:focus-visible {
  border-color: var(--green);
  background: var(--green-soft);
}

.onboarding-card > .eyebrow,
.onboarding-card > h1,
.onboarding-card > .intro-copy {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.onboarding-card h1,
.legal-card h1 {
  max-width: 100%;
  margin-bottom: 10px;
  font-size: clamp(2rem, 9vw, 3.2rem);
  line-height: 1;
}

.onboarding-form,
.profile-form,
.profile-panel,
.danger-zone,
.delete-confirm {
  display: grid;
  gap: 14px;
}

.onboarding-form {
  margin-top: 20px;
}

.form-field {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-weight: 850;
}

.form-field input,
.form-field select,
.form-field textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--text);
  padding: 0 12px;
}

.form-field textarea {
  min-height: 104px;
  padding-top: 12px;
  resize: vertical;
}

.form-field input[readonly] {
  background: #f5efe6;
  color: var(--muted);
}

.form-field small,
.profile-note {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.4;
}

.check-line {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.4;
}

.check-line input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--brand);
}

.check-line a,
.legal-card a:not(.ghost-button),
.privacy-notice-link a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--brand-strong);
  font-weight: 900;
}

.privacy-notice-link {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 720;
  line-height: 1.45;
}

.profile-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-strong);
  padding: 16px;
  box-shadow: 0 12px 28px rgba(44, 31, 21, 0.08);
}

.profile-grid {
  display: grid;
  gap: 14px;
}

.profile-success {
  border: 1px solid #9bd5b6;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 0.9rem;
  font-weight: 850;
  margin: 0;
  padding: 11px 12px;
}

.danger-zone {
  border-top: 1px solid var(--line);
  margin-top: 4px;
  padding-top: 16px;
}

.danger-zone h3 {
  margin-bottom: 0;
}

.danger-zone p {
  color: var(--muted);
  line-height: 1.45;
  margin-bottom: 0;
}

.danger-action {
  color: #9b2b24;
}

.danger-primary {
  background: #9b2b24;
  box-shadow: 0 12px 24px rgba(155, 43, 36, 0.2);
}

.delete-actions {
  display: grid;
  gap: 10px;
}

.legal-page {
  align-content: start;
  place-items: start center;
}

.legal-card p {
  color: var(--muted);
  line-height: 1.55;
}

.legal-back {
  display: inline-grid;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
}

.legal-page .legal-brand {
  width: min(100%, 860px);
}

.legal-document {
  width: min(100%, 860px);
  padding: clamp(20px, 4vw, 36px);
}

.legal-document h1 {
  margin: 0 0 14px;
  color: var(--brand-strong);
  font-size: clamp(2rem, 7vw, 3rem);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.legal-document h2 {
  margin: 28px 0 10px;
  color: var(--brand-strong);
  font-size: clamp(1.2rem, 4vw, 1.55rem);
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.legal-document ul,
.legal-document ol {
  margin: 10px 0 18px;
  padding-left: 1.35rem;
}

.legal-document li + li {
  margin-top: 7px;
}

.legal-language-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ef;
  padding: 12px;
  font-weight: 760;
}

.order-dialog {
  width: min(100% - 24px, 470px);
  max-height: min(760px, 90dvh);
  border: 0;
  border-radius: 22px;
  background: transparent;
  padding: 0;
}

.order-dialog::backdrop {
  background: rgba(30, 22, 18, 0.48);
  backdrop-filter: blur(4px);
}

.dialog-card {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 22px;
  background: var(--surface-strong);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(28, 18, 12, 0.32);
}

.dialog-main,
.success-state {
  padding: 22px 18px 18px;
  min-width: 0;
}

.dialog-main h2,
.success-state h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

.dialog-price {
  margin-bottom: 18px;
  color: var(--brand-strong);
  font-size: 1.25rem;
  font-weight: 950;
}

.dialog-error {
  border: 1px solid #f1b4ad;
  border-radius: 8px;
  background: #fff0ed;
  color: #9b2b24;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  margin: 0 0 14px;
  padding: 11px 12px;
}

.icon-button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(247, 237, 225, 0.9);
  color: var(--text);
}

.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.dialog-close::before,
.dialog-close::after {
  position: absolute;
  width: 17px;
  border-top: 2px solid currentColor;
  content: "";
}

.dialog-close::before {
  transform: rotate(45deg);
}

.dialog-close::after {
  transform: rotate(-45deg);
}

.field-group {
  margin: 0 0 18px;
  border: 0;
  padding: 0;
}

.field-group legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
}

.quantity-control {
  width: 100%;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  padding: 6px;
}

.quantity-control button {
  display: grid;
  width: 54px;
  height: 48px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
  font-size: 1.45rem;
  font-weight: 900;
}

.quantity-control output {
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 950;
}

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

.time-option {
  min-height: 46px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf2;
  color: var(--text);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.time-option.is-selected {
  border-color: var(--green);
  background: var(--green-soft);
  color: var(--green);
}

.time-option.is-test-window {
  border-color: var(--gold);
  background: #fff4dc;
  color: var(--brand-strong);
}

.test-mode-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.4;
}

.confirm-button {
  width: 100%;
}

.success-state {
  display: grid;
  justify-items: start;
  gap: 10px;
}

.success-state[hidden] {
  display: none;
}

.success-mark {
  position: relative;
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
}

.success-mark::after {
  width: 21px;
  height: 11px;
  border-bottom: 4px solid var(--green);
  border-left: 4px solid var(--green);
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

.success-state p:not(.eyebrow) {
  margin-bottom: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.success-state .primary-button {
  width: 100%;
}

:focus-visible {
  outline: 3px solid rgba(36, 122, 86, 0.45);
  outline-offset: 3px;
}

@media (max-width: 430px) {
  .topbar {
    gap: 8px;
  }

  .topbar-actions {
    gap: 6px;
  }

  .status-pill {
    padding: 7px 8px;
    font-size: 0.7rem;
  }

  .language-trigger {
    min-width: 52px;
    min-height: 36px;
    padding: 0 8px;
  }
}

@media (max-width: 360px) {
  .brand-logo-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand-copy span {
    display: none;
  }

  .status-pill {
    max-width: 82px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .language-menu {
    width: calc(100vw - 24px);
  }
}

@media (min-width: 620px) {
  .hero,
  .content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .category-scroller {
    margin-right: -28px;
    margin-left: -28px;
  }

  .category-tabs {
    padding-right: 28px;
    padding-left: 28px;
  }

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

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

  .dish-card {
    grid-template-columns: 132px minmax(0, 1fr);
  }

  .promo-banner,
  .promo-content {
    min-height: 220px;
  }

  .promo-card {
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .promo-card img {
    height: 100%;
    min-height: 260px;
  }

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

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

@media (min-width: 920px) {
  .app-shell {
    border-right: 1px solid rgba(234, 223, 210, 0.72);
    border-left: 1px solid rgba(234, 223, 210, 0.72);
    background: rgba(255, 253, 248, 0.38);
  }

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

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

  .dish-card {
    grid-template-columns: 1fr;
  }

  .dish-photo {
    min-height: 154px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .primary-button,
  .ghost-button,
  .category-tab,
  .nav-item,
  .time-option,
  .quantity-control button {
    transition: transform 0.16s ease, background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  }
}
