:root {
  --ink: #242424;
  --paper: #ffffff;
  --wash: #f4f4f4;
  --line: #d8d8d8;
  --muted: #707070;
  --accent: #2f2f31;
  --accent-soft: #eeeeee;
  --shadow: 0 18px 42px rgba(0,0,0,.22);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #1c1b1d;
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

body {
  overflow-x: hidden;
}

img {
  display: block;
}

.demo-page {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 44px;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.preview-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  box-shadow: var(--shadow);
}

.preview-card.wide {
  grid-column: span 2;
}

.preview-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  color: #fff;
}

.preview-title h2,
h4 {
  margin: 0;
  letter-spacing: 0;
}

.preview-title h2 {
  font-size: 18px;
}

.preview-title span {
  color: rgba(255,255,255,.58);
  font-size: 12px;
  font-weight: 850;
}

.device {
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: #111;
}

.screen {
  --sticky-search: 62px;
  --sticky-voice: 128px;
  --sticky-sections: 204px;
  --sticky-cover: 264px;
  position: relative;
  min-width: 0;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--wash);
}

.scroll-mask {
  position: sticky;
  top: 0;
  z-index: 32;
  display: block;
  height: var(--sticky-cover);
  margin-bottom: calc(var(--sticky-cover) * -1);
  background: var(--wash);
  pointer-events: auto;
}

.tablet-landscape {
  max-width: 960px;
  aspect-ratio: 4 / 3;
}

.tablet-portrait {
  max-width: 520px;
  aspect-ratio: 3 / 4;
}

.phone-landscape {
  max-width: 760px;
  aspect-ratio: 844 / 430;
}

.phone-portrait {
  max-width: 360px;
  aspect-ratio: 390 / 844;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  color: #fff;
  background: var(--ink);
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.mini-brand span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #3a3a3c;
  font-weight: 950;
}

.mini-brand strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-button {
  flex: 0 0 auto;
  width: 42px;
  height: 38px;
  display: grid;
  place-content: center;
  gap: 5px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.menu-button span {
  width: 18px;
  height: 2px;
  display: block;
  border-radius: 99px;
  background: #fff;
}

.home-head {
  position: sticky;
  top: var(--sticky-search);
  z-index: 35;
  padding: 16px 18px 0;
  background: var(--wash);
}

.search {
  position: relative;
  min-height: 50px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 17px;
  font-weight: 850;
}

.voice-row {
  position: sticky;
  top: var(--sticky-voice);
  z-index: 34;
  display: flex;
  justify-content: center;
  padding: 12px 18px 0;
  background: var(--wash);
}

.voice-row .voice {
  width: 100%;
}

.voice {
  min-height: 64px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px 14px 8px 9px;
  border: 1px solid #cfcfcf;
  border-radius: 8px;
  background: linear-gradient(180deg,#fff,#f4f4f4);
  box-shadow: 0 12px 28px rgba(36,34,37,.08);
}

.voice > span {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.12);
}

.voice > span::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 9px;
  width: 12px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 12px;
}

.voice > span::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 25px;
  width: 18px;
  height: 13px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  border-radius: 0 0 12px 12px;
}

.voice strong {
  display: block;
  font-size: 18px;
  line-height: 1.04;
}

.voice small {
  display: block;
  margin-top: 4px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.section-panel {
  position: sticky;
  top: calc(var(--sticky-sections) + 12px);
  z-index: 33;
  margin: 12px 18px 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(36,34,37,.06);
}

.section-toggle {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.section-toggle::-webkit-details-marker {
  display: none;
}

.folded-section-name {
  display: inline;
  color: var(--muted);
  font-size: .72em;
  font-weight: 850;
}

.section-panel[open] .folded-section-name {
  display: none;
}

.section-chevron {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .18s ease;
}

.section-panel[open] .section-chevron {
  transform: rotate(225deg);
}

.block-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

h4 {
  font-size: 24px;
  line-height: 1;
}

.block-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.section-shelf {
  margin: 0 12px 12px;
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: repeat(2, 88px);
  grid-auto-columns: 148px;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scrollbar-color: #b8b8b8 transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.section-shelf::-webkit-scrollbar {
  height: 5px;
}

.section-shelf::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8b8b8;
}

.section-tile {
  min-width: 0;
  display: grid;
  align-content: end;
  gap: 5px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.section-tile.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.12);
}

.section-tile strong {
  font-size: 18px;
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.section-tile small {
  color: var(--muted);
  font-weight: 850;
}

.section-tile.active small {
  color: rgba(255,255,255,.72);
}

.photo-home .section-board {
  margin: 16px 18px 0;
  padding-bottom: 18px;
}

.photo-home .section-board-head {
  margin-bottom: 10px;
}

.photo-home .section-photo-grid {
  display: grid;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-rows: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: visible;
}

.photo-home .section-photo-grid .section-tile {
  position: relative;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  align-content: end;
  gap: 6px;
  padding: 14px;
  border-color: rgba(0,0,0,.18);
  color: #fff;
  background: #2f2f31;
  box-shadow: 0 8px 24px rgba(36,34,37,.06);
}

.photo-home .section-photo-grid .section-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--section-img);
  background-position: center;
  background-size: cover;
  filter: saturate(.72) contrast(.94);
  opacity: .58;
  transform: scale(1.04);
}

.photo-home .section-photo-grid .section-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,rgba(0,0,0,.08),rgba(0,0,0,.74));
}

.photo-home .section-photo-grid .section-tile.active {
  border-color: #1f1f21;
  background: #1f1f21;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.28);
}

.photo-home .section-photo-grid .section-tile.active::after {
  background: linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.82));
}

.photo-home .section-photo-grid .section-tile strong,
.photo-home .section-photo-grid .section-tile small {
  position: relative;
  z-index: 1;
}

.photo-home .section-photo-grid .section-tile strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.02;
  text-shadow: 0 1px 8px rgba(0,0,0,.38);
}

.photo-home .section-photo-grid .section-tile small {
  color: rgba(255,255,255,.78);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.1;
}

.photo-home-light .section-photo-grid .section-tile {
  border-color: rgba(0,0,0,.12);
  color: var(--ink);
  background: #f7f7f7;
}

.photo-home-light .section-photo-grid .section-tile::before {
  filter: saturate(.78) contrast(.9);
  opacity: .66;
}

.photo-home-light .section-photo-grid .section-tile::after {
  background: linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,255,255,.88));
}

.photo-home-light .section-photo-grid .section-tile.active {
  border-color: #2f2f31;
  background: #fff;
  box-shadow: inset 0 0 0 2px rgba(47,47,49,.2), 0 8px 24px rgba(36,34,37,.08);
}

.photo-home-light .section-photo-grid .section-tile.active::after {
  background: linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,.82));
}

.photo-home-light .section-photo-grid .section-tile strong {
  color: var(--ink);
  text-shadow: 0 1px 10px rgba(255,255,255,.8);
}

.photo-home-light .section-photo-grid .section-tile small {
  color: rgba(36,36,36,.72);
  text-shadow: 0 1px 8px rgba(255,255,255,.78);
}

.dishes {
  margin: 16px 18px 0;
  padding-bottom: 18px;
}

.dishes-head {
  margin-bottom: 10px;
}

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

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

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

.dish {
  aspect-ratio: 1;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 8px 24px rgba(36,34,37,.06);
}

.dish img {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e8e8e8;
}

.dish div {
  min-width: 0;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  overflow: hidden;
  padding: 10px;
}

.dish small {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.dish strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.06;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.dish span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.compact .section-shelf {
  grid-auto-columns: 136px;
}

.compact.photo-home .section-photo-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact .card-grid {
  gap: 9px;
}

.phone-wide .app-top,
.phone .app-top {
  min-height: 48px;
  padding: 8px 12px;
}

.phone-wide .menu-button,
.phone .menu-button {
  width: 38px;
  height: 34px;
}

.phone-wide .home-head,
.phone .home-head {
  padding: 10px 12px 0;
}

.phone-wide .search,
.phone .search {
  min-height: 46px;
}

.phone-wide .voice-row {
  padding: 10px 12px 0;
}

.phone-wide .voice-row .voice {
  width: 100%;
}

.phone-wide .voice {
  min-height: 54px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 7px 10px 7px 8px;
}

.phone-wide .voice > span {
  width: 38px;
  height: 38px;
}

.phone-wide .voice > span::before {
  left: 12px;
  top: 7px;
  width: 10px;
  height: 15px;
}

.phone-wide .voice > span::after {
  left: 9px;
  top: 21px;
  width: 15px;
  height: 10px;
}

.phone-wide .voice strong {
  font-size: 16px;
}

.phone-wide .voice small {
  font-size: 10px;
}

.phone-wide .section-panel,
.phone-wide .dishes {
  margin-left: 12px;
  margin-right: 12px;
}

.phone-wide .section-shelf {
  grid-template-rows: repeat(2, 68px);
  grid-auto-columns: 124px;
  gap: 7px;
}

.phone-wide.photo-home .section-photo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.phone-wide .section-tile {
  padding: 8px;
}

.phone-wide .section-tile strong {
  font-size: 16px;
}

.phone-wide.photo-home .section-photo-grid .section-tile {
  padding: 10px;
}

.phone-wide.photo-home .section-photo-grid .section-tile strong {
  font-size: 17px;
}

.phone-wide.photo-home .section-photo-grid .section-tile small {
  font-size: 10px;
}

.phone .mini-brand strong {
  display: none;
}

.phone .voice-row {
  padding: 10px 12px 0;
}

.phone .voice {
  min-height: 58px;
}

.phone .section-panel,
.phone .dishes {
  margin-left: 12px;
  margin-right: 12px;
}

.phone .section-shelf {
  grid-template-rows: repeat(2, 78px);
  grid-auto-columns: 132px;
}

.phone.photo-home .section-photo-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

.phone .section-tile strong {
  font-size: 17px;
}

.phone.photo-home .section-photo-grid .section-tile {
  padding: 14px;
}

.phone.photo-home .section-photo-grid .section-tile strong {
  font-size: 24px;
}

.phone.photo-home .section-photo-grid .section-tile small {
  font-size: 12px;
}

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

  .preview-card.wide {
    grid-column: span 1;
  }
}

@media (max-width: 560px) {
  .demo-page {
    width: min(100% - 18px, 1180px);
    padding-top: 8px;
  }

  .preview-card {
    padding: 8px;
  }

  .preview-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

body.app-page {
  min-height: 100vh;
  background: var(--wash);
}

body.app-page.is-loading {
  cursor: progress;
}

.menu-app {
  min-height: 100vh;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--wash);
}

.login-card {
  width: min(430px, 100%);
  display: grid;
  gap: 22px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(36,34,37,.12);
}

.login-card .mini-brand {
  color: var(--ink);
}

.login-card .mini-brand span {
  color: #fff;
  background: var(--ink);
}

.kicker {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.login-card h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: 0;
}

.muted,
.form-message {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-form input,
.search input {
  width: 100%;
  min-width: 0;
  padding-right: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
}

.search-clear-button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f7f7f7;
  cursor: pointer;
  transform: translateY(-50%);
}

.search-clear-button[hidden] {
  display: none;
}

.search-clear-button::before,
.search-clear-button::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 15px;
  width: 12px;
  height: 2px;
  border-radius: 99px;
  background: #626262;
}

.search-clear-button::before {
  transform: rotate(45deg);
}

.search-clear-button::after {
  transform: rotate(-45deg);
}

.login-form input {
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
  text-transform: none;
}

.primary-action {
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  font-weight: 950;
  cursor: pointer;
}

.secondary-action,
.link-action {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 950;
  cursor: pointer;
}

.secondary-action {
  color: var(--ink);
  background: var(--accent-soft);
}

.link-action {
  min-height: 32px;
  justify-self: center;
  padding: 0 6px;
  color: var(--muted);
  background: transparent;
}

.primary-action:disabled,
.secondary-action:disabled {
  cursor: progress;
  opacity: .68;
}

.menu-shell {
  min-height: 100vh;
  background: var(--wash);
}

.menu-shell .app-top {
  position: sticky;
  top: 0;
}

.profile-chip {
  min-width: 0;
  display: grid;
  grid-template-columns: 34px minmax(0, auto);
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.08);
}

.profile-chip span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.14);
  background-position: center;
  background-size: cover;
  font-size: 12px;
  font-weight: 950;
}

.profile-chip span.has-photo {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

.profile-chip strong {
  max-width: 160px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.profile-chip small {
  display: block;
  max-width: 220px;
  margin-top: 2px;
  overflow: hidden;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.sticky-workbar {
  position: sticky;
  top: 62px;
  z-index: 36;
  display: grid;
  gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}

.sticky-workbar .search {
  min-height: 48px;
}

.voice-wrap {
  position: relative;
  min-width: 0;
}

.sticky-workbar .voice {
  width: 100%;
  min-height: 58px;
}

.voice-correction-button {
  position: absolute;
  right: 10px;
  top: 50%;
  z-index: 2;
  max-width: min(280px, calc(100% - 84px));
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(36,36,36,.16);
  border-radius: 999px;
  color: #242424;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.1;
  white-space: nowrap;
  transform: translateY(-50%);
}

.voice-correction-button[hidden],
.voice-correction-modal[hidden],
.profile-modal[hidden],
.photo-viewer[hidden] {
  display: none;
}

.voice.is-listening > span {
  animation: voicePulse 1s ease-in-out infinite;
}

@keyframes voicePulse {
  0%,
  100% {
    box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 0 0 0 rgba(47,47,49,.18);
  }
  50% {
    box-shadow: inset 0 -4px 0 rgba(0,0,0,.12), 0 0 0 8px rgba(47,47,49,.1);
  }
}

.section-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.section-tab {
  flex: 0 0 auto;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font-weight: 950;
  cursor: pointer;
}

.section-tab small {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--muted);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 950;
}

.section-tab.is-active {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent);
}

.section-tab.is-active small {
  color: var(--accent);
  background: #fff;
}

.state-panel,
.empty-menu {
  margin: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.state-panel {
  display: grid;
  gap: 10px;
}

.state-panel span,
.empty-menu span {
  color: var(--muted);
}

.menu-content {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 2px 18px 42px;
}

.menu-section {
  scroll-margin-top: 238px;
  padding-top: 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: 28px;
  line-height: 1;
}

.section-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

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

.menu-content .dish {
  cursor: pointer;
}

.menu-content .dish:hover {
  border-color: #b9b9b9;
  transform: translateY(-1px);
}

.section-loader {
  width: 100%;
  min-height: 44px;
  margin-top: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 950;
  cursor: pointer;
}

.section-loader.loading {
  display: grid;
  place-items: center;
  cursor: wait;
}

.section-loader.error {
  color: #9e2f2f;
  border-color: #e2b2b2;
}

.detail-drawer[hidden] {
  display: none;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: end center;
  padding: 20px;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.42);
}

.detail-card {
  position: relative;
  width: min(980px, 100%);
  max-height: min(860px, calc(100vh - 40px));
  overflow: auto;
  border-radius: 8px;
  background: #f4f4f4;
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
}

.detail-close {
  position: sticky;
  top: 12px;
  z-index: 2;
  float: right;
  width: 42px;
  height: 42px;
  margin: 12px 12px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.detail-loading {
  padding: 28px;
  color: var(--muted);
  font-weight: 900;
}

.photo-viewer {
  position: fixed;
  inset: 0;
  z-index: 104;
  display: grid;
  place-items: center;
  padding: 18px;
}

.photo-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.72);
}

.photo-viewer-card {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 36px);
  display: grid;
  gap: 10px;
  margin: 0;
}

.photo-viewer-card img {
  width: 100%;
  max-height: calc(100vh - 96px);
  border-radius: 8px;
  object-fit: contain;
  background: #111;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
}

.photo-viewer-card figcaption {
  overflow: hidden;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-viewer-close {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(0,0,0,.46);
}

.photo-viewer-close::before,
.photo-viewer-close::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 19px;
  width: 17px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
}

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

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

.dish-sheet {
  min-width: 0;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  color: #242424;
  background: #f4f4f4;
}

.dish-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 58px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  color: #fff;
  background: #242424;
}

.dish-toolbar div {
  min-width: 0;
}

.dish-toolbar span {
  display: block;
  margin-bottom: 2px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.dish-toolbar h1 {
  margin: 0;
  overflow: hidden;
  font-size: 20px;
  line-height: 1.05;
  letter-spacing: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.dish-back,
.dish-close,
.dish-zoom {
  position: relative;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.dish-back,
.dish-close {
  width: 42px;
  height: 38px;
  padding: 0;
}

.dish-back::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 12px;
  width: 11px;
  height: 11px;
  border-bottom: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: rotate(45deg);
}

.dish-close::before,
.dish-close::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 17px;
  width: 15px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
}

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

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

.dish-hero {
  display: grid;
  grid-template-columns: minmax(280px, .98fr) minmax(0, 1.02fr);
  gap: 12px;
  padding: 14px 16px 0;
}

.dish-photo {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #ddd;
}

.dish-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.dish-zoom {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(36,36,36,.52);
}

.dish-zoom::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 9px;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.dish-zoom::after {
  content: "";
  position: absolute;
  right: 9px;
  bottom: 10px;
  width: 11px;
  height: 2px;
  border-radius: 99px;
  background: #fff;
  transform: rotate(45deg);
}

.dish-summary {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  padding: 16px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}

.dish-label {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: #2f2f31;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.dish-summary h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: 0;
}

.dish-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.dish-facts span {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #f7f7f7;
}

.dish-facts b {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.dish-facts small {
  display: block;
  margin-top: 5px;
  color: #707070;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}

.dish-summary p {
  margin: 0;
  padding: 11px 12px;
  border-radius: 8px;
  color: #fff;
  background: #2f2f31;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.18;
}

.dish-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 12px;
  padding: 12px 16px 16px;
}

.dish-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
}

.dish-panel-head {
  min-height: 46px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px 9px;
  border-bottom: 1px solid #e3e3e3;
}

.dish-panel-head h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1;
  letter-spacing: 0;
}

.dish-panel-head span {
  color: #707070;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.clean-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 13px;
}

.clean-table th,
.clean-table td {
  padding: 8px 9px;
  border-bottom: 1px solid #ededed;
  vertical-align: middle;
}

.clean-table th {
  color: #707070;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-align: left;
  text-transform: uppercase;
}

.clean-table td {
  font-weight: 800;
  line-height: 1.12;
}

.clean-table tbody tr:nth-child(odd) {
  background: #f5f5f5;
}

.clean-table tbody tr:nth-child(even) {
  background: #fff;
}

.clean-table th:not(:first-child),
.clean-table td:not(:first-child) {
  text-align: right;
}

.clean-table tr > :first-child {
  width: 48%;
}

.clean-table tr > :nth-child(2),
.clean-table tr > :nth-child(3),
.clean-table tr > :nth-child(4) {
  width: 17.33%;
}

.clean-table tbody tr:last-child td {
  border-bottom: 0;
}

.method-panel {
  display: flex;
  flex-direction: column;
}

.method-panel p {
  margin: 0;
  padding: 13px 14px 15px;
  color: #3b3b3b;
  font-size: 15px;
  font-weight: 760;
  line-height: 1.28;
  white-space: pre-line;
}

.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 96;
  display: grid;
  place-items: center;
  padding: 18px;
}

.profile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.42);
}

.profile-card {
  position: relative;
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 22px 70px rgba(0,0,0,.3);
}

.profile-head {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
  background-position: center;
  background-size: cover;
}

.profile-avatar.has-photo {
  border-color: rgba(36,36,36,.28);
}

.profile-avatar span {
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.profile-head .kicker {
  margin: 0 0 4px;
}

.profile-head h2 {
  margin: 0;
  overflow: hidden;
  font-size: 24px;
  font-weight: 950;
  line-height: 1.05;
  text-overflow: ellipsis;
}

.profile-head h2 + span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.profile-close {
  width: 38px;
  height: 38px;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.profile-close::before,
.profile-close::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 17px;
  width: 16px;
  height: 2px;
  border-radius: 99px;
  background: #4a4a4a;
}

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

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

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

.profile-fields div {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafafa;
}

.profile-fields dt {
  margin: 0 0 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.profile-fields dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.25;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-logout {
  min-height: 42px;
  margin-left: auto;
  padding: 0 16px;
  border: 1px solid rgba(147,30,30,.2);
  border-radius: 8px;
  color: #931e1e;
  background: #fff0ef;
  font-weight: 950;
  cursor: pointer;
}

.profile-logout:disabled {
  cursor: progress;
  opacity: .68;
}

.voice-correction-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 18px;
}

.voice-correction-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(0,0,0,.38);
}

.voice-correction-card {
  position: relative;
  width: min(430px, 100%);
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}

.voice-correction-card label {
  display: grid;
  gap: 8px;
}

.voice-correction-card label span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  line-height: 1.25;
}

.voice-correction-card input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.voice-correction-card > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 920px) {
  .menu-content .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .sticky-workbar {
    top: 58px;
    padding: 10px 12px;
  }

  .voice-correction-button {
    right: 8px;
    max-width: calc(100% - 74px);
    font-size: 11px;
  }

  .profile-chip strong {
    display: none;
  }

  .profile-card {
    max-height: calc(100vh - 28px);
    overflow: auto;
  }

  .profile-fields {
    grid-template-columns: 1fr;
  }

  .profile-logout {
    width: 100%;
    margin-left: 0;
  }

  .menu-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .menu-content .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .menu-section {
    scroll-margin-top: 226px;
  }

  .section-heading h2 {
    font-size: 24px;
  }

  .detail-drawer {
    padding: 10px;
  }

  .photo-viewer {
    padding: 10px;
  }

  .photo-viewer-card {
    max-height: calc(100vh - 20px);
  }

  .photo-viewer-card img {
    max-height: calc(100vh - 76px);
  }

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

  .dish-photo img {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 420px) {
  .mini-brand strong {
    display: none;
  }

  .profile-modal {
    padding: 10px;
  }

  .profile-head {
    grid-template-columns: 58px minmax(0, 1fr) 36px;
  }

  .profile-avatar {
    width: 58px;
    height: 58px;
  }

  .profile-head h2 {
    font-size: 20px;
  }

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

  .menu-content .dish {
    aspect-ratio: auto;
    min-height: 140px;
    grid-template-columns: 42% minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .section-tab {
    min-height: 36px;
    padding: 7px 10px;
  }

  .detail-drawer {
    padding: 0;
  }

  .detail-card {
    width: 100%;
    max-height: 100vh;
    border-radius: 0;
  }

  .dish-toolbar {
    min-height: 52px;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 8px;
    padding: 8px 10px;
  }

  .dish-back,
  .dish-close {
    width: 36px;
    height: 34px;
  }

  .dish-back::before {
    left: 13px;
    top: 11px;
  }

  .dish-close::before,
  .dish-close::after {
    left: 11px;
    top: 15px;
  }

  .dish-toolbar h1 {
    font-size: 17px;
  }

  .dish-hero,
  .dish-grid {
    gap: 9px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .dish-photo img {
    aspect-ratio: 16 / 10.8;
  }

  .dish-summary {
    gap: 8px;
    padding: 11px;
  }

  .dish-label {
    font-size: 9px;
  }

  .dish-summary h2 {
    font-size: 24px;
  }

  .dish-facts b {
    font-size: 20px;
  }

  .dish-summary p {
    font-size: 13px;
  }

  .dish-panel-head {
    min-height: 40px;
    padding: 9px 10px 7px;
  }

  .dish-panel-head h3 {
    font-size: 17px;
  }

  .clean-table {
    font-size: 10px;
  }

  .clean-table th,
  .clean-table td {
    padding: 6px 5px;
  }

  .clean-table th {
    font-size: 8px;
  }

  .method-panel p {
    padding: 11px;
    font-size: 13px;
    line-height: 1.24;
  }
}
