:root {
  color-scheme: light;
  --ink: #171615;
  --ink-soft: #36312d;
  --paper: #fffdf4;
  --screen: #f6f7f1;
  --line: #d8d3c8;
  --muted: #746e65;
  --tomato: #ef4f3f;
  --tomato-dark: #c63a2e;
  --green: #00715f;
  --green-soft: #dff3eb;
  --gold: #f2b72d;
  --gold-soft: #fff4ce;
  --board: #171716;
  --chalk: #fff6e6;
  --danger: #b42318;
  --shadow: 0 22px 58px rgba(23, 22, 21, 0.16);
  --font-zh: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-en: Inter, "Avenir Next", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #201713;
  color: var(--ink);
  font-family: var(--font-zh);
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

#app,
.native-stage {
  min-height: 100dvh;
}

.native-stage {
  display: grid;
  place-items: center;
  padding: 18px;
  background: #201713;
}

.phone-shell {
  position: relative;
  width: min(100%, 430px);
  height: min(100dvh, 900px);
  min-height: min(100dvh, 620px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--screen);
  box-shadow: var(--shadow);
}

.setup-shell,
.review-shell,
.invite-shell,
.join-shell,
.final-shell,
.split-shell {
  background: var(--tomato);
}

.app-top {
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: max(10px, env(safe-area-inset-top)) 18px 8px;
  background: transparent;
}

.wordmark {
  min-width: 0;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 6px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.94);
  color: var(--ink);
  box-shadow: 0 8px 20px rgba(23, 22, 21, 0.14);
}

.wordmark span {
  width: auto;
  min-width: 92px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: lowercase;
}

.wordmark strong {
  max-width: 118px;
  overflow: hidden;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-signals {
  min-width: 0;
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.notice-chip,
.code-chip,
.state-chip {
  max-width: 168px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 253, 244, 0.94);
  color: var(--tomato);
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.code-chip {
  color: var(--green);
}

.state-chip {
  color: var(--green);
  background: var(--green-soft);
}

.state-chip.locked {
  color: var(--danger);
  background: #fff0ed;
}

.receipt-panel {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0 16px 12px;
  padding: 16px;
  overflow: auto;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--ink);
  scrollbar-width: thin;
}

.setup-panel {
  flex: 0 1 auto;
  display: grid;
  align-content: start;
  gap: 12px;
  margin: 0 16px 12px;
  padding: 16px;
  max-height: calc(100dvh - 140px);
  overflow: auto;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
  scrollbar-width: thin;
}

.setup-heading {
  display: grid;
  gap: 6px;
}

.setup-heading span {
  color: var(--tomato);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.setup-heading h1 {
  font-size: 28px;
  font-weight: 900;
  line-height: 1.12;
}

.receipt-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 12px;
  border-bottom: 2px dashed var(--ink);
}

.server-head h1 {
  font-family: var(--font-en);
  letter-spacing: 0;
}

.receipt-heading h1 {
  min-width: 0;
  font-size: clamp(23px, 6.8vw, 28px);
  line-height: 1.16;
  font-weight: 850;
  word-break: keep-all;
  white-space: nowrap;
}

.receipt-heading span {
  color: var(--tomato);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  text-align: right;
}

.subhead {
  display: grid;
  gap: 6px;
}

.receipt-heading + .subhead {
  padding-top: 10px;
}

.setup-subhead {
  padding: 0;
}

.subhead h2 {
  font-size: 24px;
  font-weight: 950;
  line-height: 1.08;
}

.subhead p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.menu-uploader {
  position: relative;
  min-height: 86px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 6px 12px;
  padding: 13px 14px;
  overflow: hidden;
  border: 2px dashed var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
}

.menu-uploader.has-files {
  border-style: solid;
  border-color: var(--green);
  background: #eaf7f0;
}

.menu-uploader span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.menu-uploader strong {
  min-width: 0;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.08;
}

.menu-uploader em {
  align-self: center;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.menu-uploader i {
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(var(--progress) * 100%);
  height: 4px;
  background: var(--green);
}

.setup-photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70px;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 4px;
  scrollbar-width: none;
}

.setup-photo-strip::-webkit-scrollbar {
  display: none;
}

.setup-thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 2px 2px 0 var(--ink);
}

.setup-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.delete-shot {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.language-card,
.identity-row {
  display: grid;
  gap: 10px;
}

.language-card {
  grid-template-columns: 1fr 1fr 0.72fr;
  padding: 10px 0;
  border-top: 2px dashed rgba(23, 22, 21, 0.28);
  border-bottom: 2px dashed rgba(23, 22, 21, 0.28);
}

.choice-field,
.quiet-field {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.choice-field span,
.quiet-field span,
.account-copy span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  outline: none;
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 16px;
}

input {
  padding: 9px 11px;
}

select {
  appearance: none;
  padding: 0 30px 0 11px;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) right 11px center / 6px 6px no-repeat,
    white;
  font-weight: 900;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 113, 95, 0.14), 2px 2px 0 var(--ink);
}

.account-panel {
  display: grid;
  gap: 9px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
}

.account-copy {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  list-style: none;
}

.account-copy::-webkit-details-marker {
  display: none;
}

.account-copy strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-actions,
.auth-inline {
  display: grid;
  gap: 8px;
}

.account-actions {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
}

.account-actions button {
  min-height: 40px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 950;
}

.auth-inline {
  grid-template-columns: 1fr;
  align-items: end;
}

.link-action {
  min-height: 32px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-decoration: underline;
  box-shadow: none;
}

.compact {
  min-height: 42px;
  padding: 6px 12px;
}

.bottom-bar {
  flex: 0 0 auto;
  z-index: 18;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 16px max(14px, env(safe-area-inset-bottom));
  background: var(--tomato);
}

.setup-bottom {
  margin-top: auto;
}

.plain-action,
.solid-action {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 10px 16px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 var(--ink);
  font-weight: 950;
  line-height: 1;
}

.plain-action {
  background: var(--paper);
  color: var(--ink);
}

.solid-action {
  flex: 1 1 auto;
  background: var(--ink);
  color: white;
}

.solid-action:disabled {
  opacity: 0.55;
}

.full-action {
  width: 100%;
}

.table-stage {
  background: #201713;
}

.table-shell {
  background: var(--tomato);
}

.board-panel {
  --board-action-text-inset: 12px;
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  margin: 0 12px 0;
  padding: 12px;
  overflow: hidden;
  border: 2px solid var(--chalk);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 246, 230, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 246, 230, 0.07) 1px, transparent 1px),
    var(--board);
  background-size: 34px 34px;
  box-shadow: 4px 4px 0 var(--gold);
  color: var(--chalk);
}

.board-head {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.board-head h1 {
  font-size: clamp(28px, 8vw, 31px);
  font-weight: 850;
  line-height: 1.12;
}

.board-head-actions {
  flex: 0 0 auto;
  width: fit-content;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  row-gap: 6px;
}

.board-badge,
.order-state-control {
  flex: 0 0 auto;
  width: fit-content;
  max-width: max-content;
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  padding: 6px var(--board-action-text-inset);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.board-badge {
  min-width: 0;
}

.board-badge {
  background: var(--gold);
  color: var(--ink);
}

.order-state-control {
  background: var(--gold);
  color: var(--ink);
}

.order-state-button {
  appearance: none;
  -webkit-appearance: none;
  width: max-content;
  min-width: 0;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--gold);
}

.board-head-actions .state-chip.order-state-control,
.board-head-actions .order-state-button {
  max-width: none;
  overflow: visible;
  align-self: flex-end;
}

.board-head-actions .state-chip.order-state-control {
  background: var(--green-soft);
  color: var(--green);
}

.board-head-actions .state-chip.order-state-control.locked {
  background: #fff0ed;
  color: var(--danger);
}

.board-badge-label,
.order-state-label {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.order-state-button.is-locked {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--chalk);
  color: var(--chalk);
}

.board-state {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 16px 12px 8px 0;
  color: rgba(255, 246, 230, 0.72);
  font-size: 14px;
  line-height: 1.25;
}

.board-state > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.split-inclusion-card {
  flex: 0 0 auto;
  width: max-content;
  min-height: 28px;
  display: grid;
  grid-template-columns: 16px auto;
  gap: 5px;
  align-items: center;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgba(255, 246, 230, 0.34);
  border-radius: 999px;
  background: rgba(255, 246, 230, 0.08);
  color: var(--chalk);
}

.split-inclusion-card input {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(255, 246, 230, 0.94);
  border-radius: 2px;
  background: var(--chalk);
  box-shadow: none;
  accent-color: var(--gold);
}

.split-inclusion-card input:checked {
  border-color: var(--gold);
  background: var(--gold);
}

.split-inclusion-card input:checked::after {
  width: 7px;
  height: 4px;
  border: solid var(--ink);
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg) translate(1px, -1px);
}

.split-inclusion-card span {
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.split-inclusion-card strong {
  display: none;
}

.board-head-actions .split-inclusion-card,
.board-state .split-inclusion-card {
  min-height: auto;
  display: inline-grid;
  grid-template-columns: 14px auto;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--chalk);
}

.board-head-actions .split-inclusion-card {
  margin-top: 0;
  justify-self: end;
}

.board-state .split-inclusion-card {
  width: auto;
  justify-self: end;
  justify-content: end;
  padding-right: 0;
}

.board-head-actions .split-inclusion-card input,
.board-state .split-inclusion-card input {
  width: 14px;
  height: 14px;
}

.board-head-actions .split-inclusion-card span,
.board-state .split-inclusion-card span {
  font-size: 13px;
  line-height: 1;
  color: var(--chalk);
}

.members-panel,
.pending-panel {
  flex: 0 0 auto;
  margin: 0 0 9px;
}

.members-panel summary,
.pending-panel summary {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 32px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 6px 11px;
  border: 1px solid rgba(255, 246, 230, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--chalk);
  cursor: pointer;
  list-style: none;
}

.members-panel summary::-webkit-details-marker,
.pending-panel summary::-webkit-details-marker,
.order-details summary::-webkit-details-marker,
.final-people summary::-webkit-details-marker {
  display: none;
}

.members-panel summary strong,
.pending-panel summary strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--font-en);
  font-weight: 950;
  line-height: 1;
}

.members-panel summary span,
.pending-panel summary span {
  font-size: 17px;
  font-weight: 950;
}

.members-panel summary em,
.pending-panel summary em {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 246, 230, 0.62);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.members-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 128px;
  overflow: auto;
  padding: 8px 2px 1px;
}

.person-chip {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 4px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 950;
}

.person-chip b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: inherit;
  font-size: 10px;
}

.person-chip.me {
  background: var(--gold-soft);
  color: #805800;
}

.pending-list {
  display: grid;
  gap: 6px;
  padding: 8px 2px 2px;
}

.pending-list p {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: rgba(255, 246, 230, 0.72);
  font-size: 12px;
}

.pending-list b {
  min-width: 0;
  overflow: hidden;
  color: var(--chalk);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pending-list span,
.pending-list small {
  color: var(--gold);
}

.menu-scroll {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow: auto;
  overflow-anchor: none;
  padding: 0 0 12px;
  scrollbar-width: thin;
}

.menu-group {
  display: grid;
  gap: 8px;
}

.menu-group h2 {
  color: var(--gold);
  font-size: 13px;
  font-weight: 950;
}

.dish-ticket {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  gap: 10px;
  padding: 11px 10px;
  border: 1px solid rgba(255, 246, 230, 0.24);
  background: rgba(255, 255, 255, 0.045);
  color: var(--chalk);
}

.dish-ticket.is-picked {
  border-color: rgba(242, 183, 45, 0.78);
  background: rgba(255, 255, 255, 0.075);
}

.dish-copy {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
}

.dish-title {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.dish-title h3 {
  min-width: 0;
  color: var(--chalk);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.22;
}

.table-qty {
  flex: 0 0 auto;
  min-height: 28px;
  display: inline-grid;
  place-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--tomato);
  color: white;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.dish-original,
.dish-note,
.ordered-by,
.fine-print,
.empty-copy {
  color: rgba(255, 246, 230, 0.68);
  line-height: 1.42;
}

.dish-original {
  overflow-wrap: anywhere;
  font-family: var(--font-en), var(--font-zh);
  font-size: 13px;
}

.dish-note {
  display: block;
  color: rgba(255, 246, 230, 0.56);
  font-size: 12px;
}

.allergy-line {
  min-width: 0;
  color: rgba(255, 246, 230, 0.58);
  font-size: 12px;
}

.allergy-line summary {
  display: flex;
  gap: 5px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.allergy-line summary::-webkit-details-marker {
  display: none;
}

.allergy-line strong {
  min-width: 0;
  overflow: hidden;
  color: #ffd7d0;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.allergy-line summary::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-right: 2px solid rgba(255, 246, 230, 0.58);
  border-bottom: 2px solid rgba(255, 246, 230, 0.58);
  transform: rotate(45deg);
  transition: transform 0.16s ease;
}

.allergy-line[open] summary::after {
  transform: rotate(-135deg) translate(-1px, -1px);
}

.allergy-line em {
  flex: 0 0 auto;
  color: rgba(255, 246, 230, 0.72);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.allergy-line em i {
  font-style: normal;
}

.allergy-line em i + i {
  display: none;
}

.allergy-line[open] em i:first-child {
  display: none;
}

.allergy-line[open] em i + i {
  display: inline;
}

.allergy-line div {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 5px;
}

.allergy-line b {
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(255, 246, 230, 0.1);
  color: #ffd7d0;
  font-size: 11px;
}

.low-confidence {
  justify-self: start;
  min-height: 25px;
  display: inline-grid;
  place-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.stepper {
  align-self: start;
  display: grid;
  grid-template-columns: 34px 34px 34px;
  gap: 5px;
  align-items: center;
  justify-content: end;
  padding-top: 30px;
}

.round,
.stepper strong {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 950;
  line-height: 1;
}

.round {
  border: 0;
  background: var(--chalk);
  color: var(--ink);
  font-size: 22px;
}

.round.is-disabled-soft {
  opacity: 0.28;
}

.round:disabled {
  opacity: 0.28;
}

.stepper strong {
  background: var(--tomato);
  color: white;
  font-size: 18px;
}

.stepper strong.is-empty {
  background: transparent;
  color: transparent;
}

.order-preview {
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 850;
}

.order-preview > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.avatar-stack {
  flex: 0 0 auto;
  display: inline-flex;
}

.avatar-stack b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-right: -6px;
  border: 1px solid var(--board);
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 950;
}

.avatar-stack .more {
  min-width: 27px;
  padding: 0 5px;
  background: var(--chalk);
}

.order-details {
  margin-top: 2px;
}

.order-details summary {
  display: grid;
  gap: 5px;
  cursor: pointer;
  list-style: none;
}

.order-details summary em {
  color: var(--gold);
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.order-detail-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 246, 230, 0.2);
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.order-detail-row.is-zero {
  opacity: 0.52;
}

.order-detail-row > span {
  min-width: 0;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: rgba(255, 246, 230, 0.82);
  font-size: 12px;
  font-weight: 850;
}

.order-detail-row > span b {
  width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
}

.share-line-toggle {
  flex: 0 0 auto;
  min-height: 27px;
  padding: 4px 8px;
  border: 1px solid rgba(255, 246, 230, 0.34);
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 246, 230, 0.72);
  font-size: 11px;
  font-weight: 950;
}

.share-line-toggle.is-on {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

.split-only-pill {
  min-width: 54px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 253, 244, 0.62);
  border-radius: 999px;
  color: var(--paper);
  font-size: 12px;
  font-weight: 950;
}

.share-picker {
  flex: 0 0 92px;
  min-width: 92px;
}

.share-picker summary {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 4px 8px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  background: rgba(246, 183, 35, 0.16);
  color: var(--gold);
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 950;
}

.share-picker summary::-webkit-details-marker {
  display: none;
}

.share-picker > div {
  display: grid;
  gap: 6px;
  margin-top: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 253, 244, 0.25);
  border-radius: 8px;
  background: rgba(23, 22, 21, 0.78);
}

.share-picker button,
.share-picker label {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 253, 244, 0.3);
  border-radius: 999px;
  background: transparent;
  color: var(--paper);
  font-size: 12px;
  font-weight: 900;
}

.share-picker input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.mini-stepper {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 26px 28px 26px;
  gap: 4px;
  align-items: center;
}

.mini-stepper button,
.mini-stepper strong {
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-family: var(--font-en);
  font-weight: 950;
  line-height: 1;
}

.mini-stepper button {
  background: var(--chalk);
  color: var(--ink);
}

.mini-stepper strong {
  color: white;
}

.table-bottom {
  min-height: 82px;
  background: var(--tomato);
}

.table-bottom .plain-action,
.table-bottom .solid-action {
  border-color: var(--chalk);
  box-shadow: none;
}

.table-bottom .plain-action {
  background: transparent;
  color: var(--chalk);
}

.table-bottom .solid-action {
  background: transparent;
  color: var(--chalk);
}

.mine-now {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 2px;
  color: white;
}

.mine-now span {
  font-size: 12px;
  font-weight: 900;
}

.mine-now strong {
  min-width: 0;
  overflow: hidden;
  font-size: 18px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-stack,
.split-stack {
  display: grid;
  gap: 6px;
}

.order-ticket,
.split-ticket {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(23, 22, 21, 0.32);
}

.order-ticket > div {
  min-width: 0;
}

.order-ticket strong,
.order-ticket > span {
  color: var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.order-ticket-price {
  flex: 0 0 auto;
  min-width: 104px;
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 2px;
  text-align: right;
}

.order-ticket-price b {
  font-family: var(--font-en), var(--font-zh);
}

.order-ticket-price small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.order-ticket p,
.order-ticket small,
.order-ticket em {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-family: var(--font-en), var(--font-zh);
  font-style: normal;
  line-height: 1.25;
}

.total-strip {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 14px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: var(--gold-soft);
}

.total-strip span {
  color: #805800;
  font-weight: 950;
}

.total-strip strong {
  font-size: 24px;
  font-weight: 950;
}

.total-strip em {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.three-actions {
  display: grid;
  grid-template-columns: 0.75fr 0.75fr 1.15fr;
}

.split-ticket {
  display: grid;
  gap: 6px;
}

.split-panel .split-stack {
  margin-top: 8px;
}

.split-panel,
.split-ticket,
.split-head,
.split-head strong,
.split-head span,
.settlement-summary,
.equal-split-card {
  min-width: 0;
}

.split-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 0;
}

.split-mode-switch button,
.share-tools button {
  min-height: 39px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-weight: 950;
}

.split-mode-switch button.is-active {
  background: var(--ink);
  color: var(--paper);
}

.settlement-controls {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px 0 12px;
  border-top: 2px dashed rgba(23, 22, 21, 0.22);
  border-bottom: 2px dashed rgba(23, 22, 21, 0.22);
}

.settlement-editor-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.settlement-editor-head button {
  min-height: 34px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.service-quick-field {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(96px, 116px);
  gap: 7px;
  align-items: center;
}

.service-quick-field span {
  white-space: nowrap;
}

.settlement-advanced {
  display: grid;
  gap: 8px;
}

.settlement-advanced summary {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 950;
  list-style: none;
}

.settlement-advanced summary::-webkit-details-marker {
  display: none;
}

.settlement-advanced summary::after {
  content: "＋";
  font-family: var(--font-en);
}

.settlement-advanced[open] summary::after {
  content: "−";
}

.settlement-control-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 7px;
  border: 2px solid rgba(23, 22, 21, 0.18);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
}

.compact-fee-card {
  gap: 7px;
  padding: 7px 8px;
}

.settings-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 7px;
  align-items: end;
}

.fee-row {
  align-items: center;
}

.fee-row.has-fixed-tip {
  grid-template-columns: minmax(0, 1fr) minmax(112px, 0.86fr);
}

.settings-pair.single-control {
  grid-template-columns: 1fr;
}

.full-control {
  min-width: 0;
}

.compact-rate-field {
  grid-template-columns: minmax(30px, 0.28fr) minmax(96px, 1fr);
  gap: 6px;
  align-items: center;
}

.compact-rate-field span {
  min-width: 0;
  overflow: hidden;
  font-size: 11px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settlement-controls input,
.settlement-controls select {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  height: 36px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
}

.settlement-controls select {
  padding-inline-start: 8px;
  padding-inline-end: 24px;
  text-align: center;
  text-align-last: center;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%) right 12px center / 5px 5px no-repeat,
    linear-gradient(135deg, var(--ink) 50%, transparent 50%) right 8px center / 5px 5px no-repeat,
    white;
}

.settlement-controls input {
  padding-inline: 10px;
}

.settlement-summary {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  padding: 10px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
}

.settlement-summary div,
.charge-lines span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.settlement-summary span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.settlement-summary strong {
  font-family: var(--font-en), var(--font-zh);
  font-size: 15px;
  font-weight: 950;
}

.settlement-summary .is-total {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 2px solid var(--ink);
}

.settlement-summary .is-total span,
.settlement-summary .is-total strong {
  color: var(--ink);
  font-size: 18px;
}

.equal-split-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 12px 0;
  padding: 20px 16px;
  border: 2px solid var(--ink);
  border-radius: 10px;
  background: var(--gold-soft);
  box-shadow: 3px 3px 0 var(--ink);
}

.equal-split-card > span {
  color: #805800;
  font-weight: 950;
}

.equal-split-card > strong {
  font-family: var(--font-en), var(--font-zh);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.equal-split-card em,
.more-lines {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.headcount-stepper {
  display: grid;
  grid-template-columns: 38px minmax(86px, auto) 38px;
  gap: 8px;
  align-items: center;
}

.headcount-stepper button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
}

.headcount-stepper b {
  text-align: center;
  font-weight: 950;
}

.split-head,
.mini-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(92px, auto);
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.split-head {
  align-items: flex-start;
}

.split-head strong {
  overflow-wrap: anywhere;
  line-height: 1.2;
}

.mini-line {
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.mini-line span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-line strong,
.split-head span {
  flex: 0 0 auto;
}

.split-head span,
.mini-line strong {
  min-width: 92px;
  text-align: right;
}

.split-ticket .mini-line span {
  white-space: normal;
  overflow-wrap: anywhere;
}

.split-extra-lines {
  display: grid;
  gap: 5px;
}

.split-extra-lines summary {
  box-sizing: border-box;
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 5px;
  padding-top: 5px;
  color: #805800;
  cursor: pointer;
  font-size: 12px;
  font-weight: 950;
  list-style: none;
}

.split-extra-lines summary::after {
  content: "↓";
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  font-size: 11px;
  line-height: 1;
}

.split-extra-lines[open] summary::after {
  content: "↑";
}

.split-extra-lines summary::-webkit-details-marker {
  display: none;
}

.charge-lines {
  display: grid;
  gap: 4px;
  padding-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.share-tools {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 12px;
}

.final-share-tools {
  grid-template-columns: 1fr 1fr;
}

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

.share-tools button {
  min-width: 0;
  padding-inline: 8px;
  font-size: 13px;
}

.history-list {
  display: grid;
  gap: 10px;
  padding-top: 12px;
}

.history-ticket {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  color: var(--ink);
  text-align: left;
  box-shadow: 3px 3px 0 var(--ink);
}

.history-ticket-top {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.history-ticket strong {
  min-width: 0;
  font-size: 17px;
  font-weight: 950;
  line-height: 1.2;
}

.history-ticket em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
}

.history-ticket span,
.history-ticket small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.review-panel {
  display: grid;
  align-content: start;
  gap: 12px;
}

.review-heading h1 {
  white-space: normal;
}

.review-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.review-summary div {
  min-height: 66px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px 12px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffaf0;
  box-shadow: 2px 2px 0 var(--ink);
}

.review-summary .has-warning {
  background: var(--gold-soft);
}

.review-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.review-summary strong {
  font-family: var(--font-en), var(--font-zh);
  font-size: 28px;
  font-weight: 950;
  line-height: 1;
}

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

.review-tools button {
  min-height: 38px;
  padding: 7px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.15;
}

.review-group {
  display: grid;
  gap: 8px;
}

.review-group h2,
.review-ready-group summary {
  color: var(--ink);
  font-size: 16px;
  font-weight: 950;
}

.review-ready-group summary {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 2px dashed rgba(23, 22, 21, 0.28);
  cursor: pointer;
  list-style: none;
}

.review-ready-group summary::-webkit-details-marker {
  display: none;
}

.review-ready-group summary strong {
  min-width: 30px;
  min-height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-en);
  font-size: 13px;
}

.review-ready-group > div {
  display: grid;
  gap: 8px;
}

.review-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 2px solid rgba(23, 22, 21, 0.22);
  border-radius: 8px;
  background: #fffdf8;
}

.review-item.needs-check {
  border-color: var(--gold);
}

.review-item.is-excluded {
  background: #f4f0e7;
}

.review-item > header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.review-item header div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.review-item header span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.review-item header strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-family: var(--font-en), var(--font-zh);
  font-size: 18px;
  font-weight: 950;
  line-height: 1.18;
}

.review-item-actions {
  flex: 0 0 94px;
  display: grid;
  gap: 6px;
}

.review-item-actions button {
  min-height: 30px;
  padding: 5px 8px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 1px 1px 0 var(--ink);
  font-size: 11px;
  font-weight: 950;
  line-height: 1.1;
}

.review-item-actions button:disabled {
  opacity: 0.34;
  box-shadow: none;
}

.review-item-actions .danger-text {
  border-color: rgba(239, 72, 58, 0.65);
  color: var(--danger);
}

.review-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  min-width: 62px;
  padding: 6px 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  font-size: 12px;
  font-weight: 950;
}

.review-toggle.is-on {
  background: var(--green-soft);
  color: var(--green);
}

.review-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.review-fields .quiet-field:nth-child(1),
.review-fields .quiet-field:nth-child(2) {
  grid-column: 1 / -1;
}

.review-fields input,
.review-fields select {
  min-height: 38px;
  font-size: 14px;
  box-shadow: 1px 1px 0 var(--ink);
}

.review-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.4;
}

.review-item .allergy-line {
  color: var(--muted);
}

.review-item .allergy-line strong,
.review-item .allergy-line b {
  color: var(--danger);
}

.review-item .allergy-line b {
  background: #fff0ed;
}

.review-bottom {
  background: var(--tomato);
}

.fine-print {
  padding: 8px 2px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.screen-title {
  padding: 4px 18px 12px;
  color: var(--paper);
}

.screen-title span {
  color: rgba(255, 253, 244, 0.72);
  font-size: 13px;
  font-weight: 900;
}

.screen-title h1 {
  margin-top: 4px;
  font-size: 30px;
  font-weight: 950;
  line-height: 1.05;
}

.join-panel,
.invite-panel,
.final-panel,
.split-panel {
  margin-bottom: 12px;
}

.qr-slab {
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 12px 0;
}

.qr-frame {
  position: relative;
  width: min(100%, 236px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.qr,
.qr-fallback {
  width: 100%;
  height: 100%;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
}

.qr {
  position: absolute;
  inset: 0;
  padding: 8px;
}

.qr[data-failed="true"] {
  display: none;
}

.qr-fallback {
  display: grid;
  place-items: center;
  color: var(--ink);
  font-family: var(--font-en);
  font-weight: 950;
}

.qr-slab p {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.mini-total {
  min-height: 54px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 2px solid var(--ink);
  font-size: 18px;
  font-weight: 950;
}

.invite-panel .members-panel summary {
  border-color: var(--ink);
  background: white;
  color: var(--ink);
}

.invite-panel .members-panel summary em {
  color: var(--muted);
}

.invite-panel .members-list {
  padding-bottom: 4px;
}

.server-mode {
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: var(--board);
  color: var(--chalk);
}

.server-head {
  width: min(760px, 100%);
  margin: 0 auto 20px;
  display: grid;
  justify-items: start;
  gap: 14px;
}

.server-head > div {
  min-width: 0;
}

.server-head p {
  color: #ffb5ac;
  font-weight: 950;
}

.server-head h1 {
  margin-top: 5px;
  font-size: clamp(28px, 8vw, 38px);
  line-height: 1.06;
  overflow-wrap: normal;
}

.light-action {
  flex: 0 0 auto;
  border-color: rgba(255, 246, 230, 0.6);
  background: transparent;
  color: var(--chalk);
  box-shadow: none;
}

.server-back {
  min-height: 42px;
  padding-inline: 15px;
}

.server-list {
  width: min(760px, 100%);
  display: grid;
  gap: 0;
  margin: 0 auto;
}

.server-ticket-panel .server-list {
  width: 100%;
  margin: 8px 0 0;
}

.server-line {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 246, 230, 0.26);
}

.server-ticket-panel .server-line {
  padding: 7px 0;
  border-top: 0;
  border-bottom: 2px dashed rgba(23, 22, 21, 0.22);
  color: var(--ink);
}

.server-line strong {
  font-family: var(--font-en), var(--font-zh);
  font-size: 30px;
  line-height: 1.08;
}

.server-ticket-panel .server-line strong {
  color: var(--ink);
  font-size: 19px;
}

.server-line span,
.server-line em {
  color: rgba(255, 246, 230, 0.72);
  font-size: 18px;
  font-style: normal;
}

.server-ticket-panel .server-line span,
.server-ticket-panel .server-line em {
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 760px) {
  .native-stage {
    padding: 0;
    place-items: stretch;
    background: var(--tomato);
  }

  .phone-shell,
  .table-shell {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    box-shadow: none;
  }
}

@media (max-width: 380px) {
  .receipt-panel {
    margin-inline: 12px;
    padding: 14px;
  }

  .receipt-heading h1 {
    font-size: 25px;
  }

  .subhead h2 {
    font-size: 22px;
  }

  .menu-uploader {
    min-height: 78px;
    padding: 12px;
  }

  .menu-uploader strong {
    font-size: 20px;
  }

  .review-fields,
  .language-card {
    grid-template-columns: 1fr;
  }

  .settlement-controls {
    grid-template-columns: 1fr;
  }

  .board-panel {
    margin-inline: 8px;
    padding: 10px;
  }

  .board-head h1 {
    font-size: 26px;
  }

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

  .stepper {
    grid-template-columns: 31px 31px 31px;
    gap: 4px;
  }

  .round,
  .stepper strong {
    width: 31px;
    height: 31px;
  }

  .plain-action,
  .solid-action {
    padding-inline: 12px;
  }

  .share-tools {
    grid-template-columns: 1fr 1fr;
  }

  .settlement-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 330px) {
  .language-card,
  .account-actions {
    grid-template-columns: 1fr;
  }

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

  .stepper {
    justify-content: start;
  }
}
