@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --ink: #17291f;
  --muted: #54665b;
  --quiet: #697b70;
  --brand: #23563c;
  --brand-hover: #17442e;
  --brand-soft: #eaf2e8;
  --canvas: #f6f7f3;
  --paper: #fff;
  --line: #e1e8df;
  --warm: #faf6ea;
  --radius: 16px;
  --sidebar: 224px;
  --topbar: 68px;
  --font: "DM Sans", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --shadow: 0 2px 8px #263e2d06, 0 8px 24px #263e2d04;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-width: 320px;
  font: 14px/1.55 var(--font);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.32; }
h1 { font-size: 32px; font-weight: 760; letter-spacing: -.045em; }
h2 { font-size: 20px; font-weight: 740; letter-spacing: -.035em; }
h3 { font-size: 15px; font-weight: 710; }
img { display: block; width: 100%; }
svg { width: 20px; height: 20px; flex: none; vertical-align: middle; }
:focus-visible { outline: 3px solid #70a44c; outline-offset: 3px; }
::selection { background: #dcebc8; }
[tabindex="-1"]:focus { outline: none; }
.skip-link {
  position: fixed;
  inset: 10px auto auto 12px;
  z-index: 10;
  padding: 9px 14px;
  transform: translateY(-150%);
  background: var(--paper);
  border-radius: 8px;
}
.skip-link:focus { transform: none; }

.app-shell { min-height: 100vh; }
.workspace { margin-left: var(--sidebar); min-width: 0; }
.sidebar {
  position: fixed;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  inset: 0 auto 0 0;
  z-index: 5;
  background: #fcfdf9;
  border-right: 1px solid var(--line);
  padding: 24px 16px 17px;
}
.brand {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 11px;
  margin: 0 7px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  color: #f8f9e9;
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-name { display: block; font-weight: 780; font-size: 17px; letter-spacing: -.04em; line-height: 1.24; }
.brand-caption { display: block; margin-top: 3px; font-size: 11px; color: var(--quiet); }
.sidebar nav { margin-top: 33px; overflow: auto; }
.nav-group + .nav-group { margin-top: 24px; }
.nav-label { padding: 0 10px 8px; color: var(--quiet); font-size: 11px; font-weight: 650; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 580;
  padding: 10px 11px;
  margin-bottom: 3px;
  border-radius: 9px;
  color: #475c50;
}
.nav-item svg { width: 18px; height: 18px; }
.nav-item:hover { background: #f0f4ec; }
.nav-item[aria-current="page"] { background: #e7f0e3; color: #214c36; font-weight: 730; }
.nav-item[aria-current="page"]::after {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-left: auto;
  background: #4b7959;
}
.account {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding: 15px 3px 0;
  border-top: 1px solid var(--line);
}
.avatar, .small-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ebefdc;
  color: #395442;
  font-weight: 730;
}
.account-info { flex: 1; display: grid; min-width: 0; }
.account-info span { color: var(--quiet); font-size: 11px; }
.small-avatar { width: 32px; height: 32px; font-size: 12px; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: var(--topbar);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 34px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.breadcrumb, .topbar-end { display: flex; gap: 10px; align-items: center; min-width: 0; }
.breadcrumb span { color: var(--quiet); }
.breadcrumb strong { white-space: nowrap; font-size: 13px; }
.breadcrumb > svg { width: 13px; height: 13px; color: #718476; }
.topbar-date { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.topbar-date svg { width: 16px; height: 16px; }
.mobile-menu, .mobile-scrim { display: none !important; }

.page { max-width: 1560px; margin: 0 auto; padding: 30px 34px 48px; }
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}
.page-heading p { margin-top: 7px; color: var(--muted); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 234px;
  padding: 32px 38px;
  border-radius: 18px;
  background: #1a422f;
  color: #f9fcf3;
}
.hero-image {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 34%;
  height: 100%;
  width: 66%;
  object-fit: cover;
  object-position: center 50%;
}
.hero::before {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 0;
  background: linear-gradient(90deg, #1a422f 0%, #1a422f 33%, #1a422fee 42%, #1a422f55 61%, #16271a12 100%);
}
.hero-content { min-width: 0; }
.hero-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: #e4eddc; font-weight: 560; font-size: 13px; }
.hero-eyebrow > span:first-child { display: inline-flex; gap: 7px; align-items: center; }
.hero-eyebrow svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(35px, 3.6vw, 50px); margin-top: 14px; font-weight: 760; letter-spacing: -.045em; }
.hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; color: #e8f0e2; }
.hero-meta span { display: flex; gap: 7px; align-items: center; }
.hero-meta svg { width: 16px; height: 16px; color: #daebc6; }
.hero-meta strong { font-weight: 720; }
.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #ffffff2e;
  border-radius: 6px;
  color: #edf6df;
  background: #ffffff17;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
}
.hero-status::before { content: ""; width: 6px; height: 6px; background: #cbe99d; border-radius: 50%; }
.hero-status.closed::before { background: #f4cc95; }

.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 312px; gap: 24px; align-items: start; margin-top: 27px; }
.menu-header, .panel-heading, .section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.menu-header h2 { font-size: 24px; }
.section-heading { margin: 22px 0 12px; }
.section-heading h2 { font-size: 18px; }
.panel-heading { margin-bottom: 16px; }
.panel-heading p { color: var(--muted); margin-top: 4px; font-size: 13px; }
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid #e3eade;
  background: #edf1e9;
  border-radius: 9px;
}
.segmented button, .filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  padding: 5px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
  white-space: nowrap;
}
.segmented button:hover, .filter-pill:hover { color: var(--brand); background: #f5f8f2; }
.segmented button[aria-pressed="true"] {
  color: var(--brand);
  background: var(--paper);
  border-color: #e3e9df;
  box-shadow: 0 1px 2px #23413013;
}
.segmented svg { width: 15px; height: 15px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.menu-filters { margin: 15px 0 15px; }
.combo-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid #dbe7d6;
  border-radius: 12px;
  background: #eff5eb;
}
.combo-banner .stat-icon { background: #e2eddf; }
.combo-banner p { margin-top: 3px; color: var(--muted); font-size: 12px; }
.combo-buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.combo-buy .price { font-size: 18px; }
.filter-pill { background: #fff; padding: 5px 12px; border-color: var(--line); }
.filter-pill[aria-pressed="true"] { background: var(--brand-soft); border-color: #d7e6d6; color: var(--brand); }
.dish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dish-card { overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.dish-img { aspect-ratio: 1.57; overflow: hidden; background: #eaefe4; }
.dish-img img { height: 100%; object-fit: cover; }
.dish-placeholder { height: 100%; display: grid; align-items: center; justify-content: center; color: #63816a; }
.dish-placeholder svg { width: 36px; height: 36px; stroke-width: 1.4; }
.dish-info { display: grid; gap: 5px; padding: 13px 13px 12px; }
.dish-info h3 { font-size: 15px; }
.dish-info p { color: var(--muted); font-size: 11.5px; min-height: 18px; }
.dish-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px; margin-top: 5px; }
.price { font-variant-numeric: tabular-nums; font-size: 21px; font-weight: 780; color: var(--brand); line-height: 1.15; letter-spacing: -.04em; white-space: nowrap; }
.price-unit { font-size: .65em; margin-right: 2px; }
.stepper { display: inline-flex; align-items: center; justify-content: end; gap: 6px; min-width: 0; font-variant-numeric: tabular-nums; }
.stepper-count { min-width: 11px; text-align: center; font-weight: 670; font-size: 13px; }
.add-button, .step-button {
  border: 1px solid #dce8d9;
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: var(--brand);
  background: #eaf3e7;
  border-radius: 9px;
}
.step-button.minus { background: #fff; }
.add-button:hover, .step-button:hover { border-color: #bcd2b9; background: #e1ecdd; }
.add-button:disabled, .step-button:disabled { opacity: .55; }
.add-button svg, .step-button svg { width: 16px; height: 16px; }

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.cart-panel { position: sticky; top: calc(var(--topbar) + 18px); padding: 19px; }
.cart-title { display: flex; gap: 9px; align-items: center; }
.cart-title svg { color: var(--brand); }
.cart-title h2 { font-size: 19px; }
.cart-count {
  color: var(--brand);
  background: var(--brand-soft);
  min-width: 24px;
  border-radius: 7px;
  padding: 1px 6px;
  text-align: center;
  font-weight: 730;
  font-size: 12px;
}
.cart-section { border-top: 1px solid var(--line); padding-top: 15px; margin-top: 15px; }
.cart-section h3 { margin-bottom: 9px; font-size: 13px; }
.choice-list { display: grid; gap: 7px; }
.choice {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 9px 10px;
  background: #fff;
  border: 1px solid #dfe7dd;
  border-radius: 9px;
  cursor: pointer;
  min-width: 0;
}
.choice:hover { border-color: #a7bfa5; }
.choice:has(:checked) { background: #f1f6ed; border-color: #83a187; }
.choice > svg { width: 16px; height: 16px; color: #557160; }
.choice > span { flex: 1; min-width: 0; }
.choice strong { display: block; font-size: 13px; }
.choice small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.choice input { accent-color: var(--brand); flex: none; margin: 0; }
.cart-empty { margin: 4px 0 2px; font-size: 12px; color: var(--quiet); }
.cart-items { max-height: 156px; overflow-y: auto; padding-right: 2px; }
.cart-line { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding: 5px 0; font-size: 12px; }
.cart-line span:first-child { flex: 1; }
.cart-line .step-button { width: 24px; height: 24px; border-radius: 7px; }
.cart-line .step-button svg { width: 13px; height: 13px; }
.cart-total { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 0 12px; font-weight: 680; }
.cart-total .price { font-size: 25px; }
.mobile-cart { display: none; }

.button, .icon-button, .text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 9px;
  white-space: nowrap;
  font-weight: 690;
  transition: background-color .16s, border-color .16s;
}
.button { min-height: 40px; padding: 8px 14px; font-size: 13px; }
.button svg, .icon-button svg, .text-button svg { width: 16px; height: 16px; }
.button.primary { color: white; background: var(--brand); border-color: var(--brand); }
.button.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.button.secondary { color: var(--brand); background: white; border-color: #d9e4d8; }
.button.secondary:hover { background: #f1f6ef; border-color: #b7cbb6; }
.button.danger { color: #fff; background: #9b3f35; border-color: #9b3f35; }
.button.danger:hover { background: #80332b; }
.button.wide { width: 100%; }
.button:disabled { opacity: .5; }
.icon-button { background: transparent; width: 34px; height: 34px; padding: 0; flex: none; color: #597064; }
.icon-button:hover, .text-button:hover { background: var(--brand-soft); color: var(--brand); }
.text-button { background: transparent; padding: 4px 7px; color: var(--brand); font-size: 12px; }
.text-button.danger-link { color: #963b32; }
.danger-link:hover { background: #fbefed; }
.action-row, .form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.form-actions { justify-content: flex-end; margin-top: 18px; }
.align-end { justify-content: flex-end; }

.tabs {
  display: flex;
  align-items: stretch;
  gap: 21px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.tabs button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 8px 1px 12px;
  color: var(--muted);
  white-space: nowrap;
  font-weight: 650;
}
.tabs button svg { width: 16px; height: 16px; }
.tabs button:hover { color: var(--brand); }
.tabs button[aria-pressed="true"] { color: var(--brand); border-bottom-color: var(--brand); font-weight: 740; }
.toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.stack { display: grid; gap: 17px; }
.detail-grid, .admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; align-items: start; }
.kitchen-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.3fr); gap: 17px; align-items: start; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.stat { display: flex; align-items: center; gap: 12px; }
.stat-icon, .empty-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand);
  flex: none;
}
.stat p { color: var(--muted); font-size: 12px; }
.stat strong { display: block; font-size: 24px; font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.stat strong small { margin-left: 4px; color: var(--quiet); font-size: 12px; font-weight: 540; }

.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline-offset: -3px; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 13px; }
th, td { text-align: left; padding: 12px 10px; }
th { font-weight: 690; color: var(--muted); font-size: 12px; background: #f4f7f2; }
th:first-child { border-radius: 7px 0 0 7px; }
th:last-child { border-radius: 0 7px 7px 0; }
td { border-bottom: 1px solid #e9eee7; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fbfcfa; }
td:last-child .action-row { flex-wrap: nowrap; }
td small, td .muted { color: var(--quiet); }
.library-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 276px), 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; }
.library-dish { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 9px; }
.library-dish-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.library-dish-info h3 { font-size: 13px; }
.library-dish-info p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.library-dish .action-row { gap: 1px; justify-content: flex-end; flex: none; }
.library-dish .dish-img, .dish-choice .dish-img { width: 42px; height: 33px; border-radius: 6px; flex: none; }
.library-dish .dish-img svg, .dish-choice .dish-img svg { width: 17px; height: 17px; }
.num { font-variant-numeric: tabular-nums; }
.queue { font-family: var(--mono); font-weight: 680; color: var(--brand); white-space: nowrap; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 3px 8px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 660;
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .68; }
.chip.green { color: #266044; background: #e7f2e9; }
.chip.amber { color: #7d5420; background: #fbf2df; }
.chip.gray { color: #5a685f; background: #eef1ee; }
.chip.blue { color: #345e79; background: #eaf2f8; }
.chip.red { color: #963b32; background: #fbefed; }

.field, .form-grid { display: grid; align-content: start; gap: 7px; min-width: 0; }
.form-grid { gap: 13px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid > .full { grid-column: 1 / -1; }
.field > span, .field > label, legend { font-size: 12px; font-weight: 690; color: var(--ink); }
.field small { color: var(--quiet); font-size: 11px; }
.field input:not([type="checkbox"], [type="radio"]), .field select, .field textarea {
  min-width: 0;
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #dbe5da;
  border-radius: 8px;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: #75967b; }
.field input::placeholder, .field textarea::placeholder { color: #728479; }
.field textarea { resize: vertical; }
.check-line { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.check-line input { accent-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset legend { margin-bottom: 7px; }
.compact-filters { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 9px; }
.compact-filters .field { min-width: 122px; flex: 1; }
.compact-filters .field > input, .compact-filters .field > select { font-size: 12px; }
.split-border { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 16px; }
.service-date { max-width: 225px; margin-bottom: 14px; }
.meal-editor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.meal-editor { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 11px; background: #fafcf8; }
.meal-editor .panel-heading { margin-bottom: 12px; }
.meal-editor h3 { display: flex; align-items: center; gap: 6px; }
.meal-editor h3 svg { width: 17px; height: 17px; color: var(--brand); }
.meal-editor .check-line { font-size: 12px; }
.meal-picks { margin-top: 12px; }
.meal-picks .choice-list { max-height: 238px; overflow-y: auto; padding: 1px 3px 1px 1px; }
.meal-picks .choice { padding: 7px 8px; }
.dish-choice strong { overflow-wrap: anywhere; }
.choice:has(:disabled) { cursor: default; opacity: .65; }
.choice:has(:disabled):hover { border-color: #dfe7dd; }
.selection-count { display: inline-block; padding: 1px 6px; margin-left: 4px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); font-variant-numeric: tabular-nums; }
.meal-combo-settings { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.combo-editor { display: grid; gap: 10px; }
.combo-groups { display: grid; gap: 10px; }
.combo-group { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.combo-group-head { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 720; }
.combo-add { justify-self: start; }
.combo-picks .choice { padding: 5px 8px; }
#menu-error:not(:empty) { margin-top: 10px; }
.notice {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 11px;
  border: 1px solid #dbe7d6;
  border-radius: 9px;
  background: #f3f7ee;
  font-size: 12px;
  color: #456050;
}
.notice svg { width: 15px; height: 15px; margin-top: 2px; }
.notice.error { color: #8e3e34; background: #fdf1ee; border-color: #f0d6d0; }
.notice.warning { color: #7c5728; background: var(--warm); border-color: #f2e6cc; }
.memo { color: var(--muted); font-size: 12px; }
.empty { text-align: center; padding: 25px 14px; color: var(--muted); }
.empty-icon { margin: 0 auto 10px; }
.empty h3 { color: var(--ink); }
.empty p { margin: 5px 0 0; font-size: 12px; }
.empty .button { margin-top: 12px; }
.order-list { display: grid; gap: 12px; }
.order-card { padding: 17px 19px; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.order-id, .order-top p { color: var(--muted); font-size: 12px; margin-top: 4px; }
.order-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12px; }
.order-meta span { display: inline-flex; align-items: center; gap: 5px; }
.order-meta svg { width: 15px; height: 15px; }
.order-money { font-size: 21px; color: var(--brand); font-weight: 760; }
.pair-list { display: grid; gap: 7px; }
.pair { display: flex; justify-content: space-between; align-items: center; gap: 9px; font-size: 13px; }
.pair > span:first-child { color: var(--muted); }
.pair > strong { text-align: right; font-weight: 670; }
.summary-item { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e9eee7; }
.summary-item:last-child { border: 0; }
.summary-item span { color: var(--muted); }

.verify-form { display: grid; gap: 15px; }
.verify-form .field input {
  height: 56px;
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: .22em;
}
.verify-form .field input::placeholder { font-size: 14px; letter-spacing: .08em; font-weight: 500; }
.verify-result { padding: 13px; border-radius: 10px; background: #edf5eb; margin-top: 14px; }
.verify-result h3 { margin-bottom: 8px; color: var(--brand); }
.code-blocks { display: grid; grid-template-columns: 1fr 1.35fr; gap: 8px; }
.code-block { background: #edf5eb; border: 1px solid #dde9da; border-radius: 11px; text-align: center; padding: 13px 8px; }
.code-block span { display: block; color: var(--muted); font-size: 12px; }
.code-block strong { display: block; font-family: var(--mono); letter-spacing: .07em; font-size: 24px; color: var(--brand); }
.code-block .text-button { margin-top: 3px; }
.pickup-token { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 8px; }
.pickup-qr { display: grid; align-content: center; justify-items: center; gap: 5px; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.pickup-qr img { width: min(100%, 145px); height: auto; aspect-ratio: 1; image-rendering: pixelated; }
.pickup-qr figcaption { color: var(--muted); font-size: 12px; }
.pickup-token .code-blocks { grid-template-columns: minmax(0, 1fr); }
.pickup-token .code-block { display: grid; align-content: center; justify-items: center; padding: 8px 4px; }
.pickup-token .code-block strong { font-size: 22px; }
.inline-error { display: block; color: #963b32; font-size: 12px; min-height: 0; }
.inline-error:empty { display: none; }
.form-price { font-size: 22px; font-weight: 760; color: var(--brand); }

.dialog {
  width: min(470px, calc(100% - 24px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 22px 76px #192d2640;
}
.dialog::backdrop { background: #14271fc0; }
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 19px;
  border-bottom: 1px solid var(--line);
}
.dialog-content { padding: 17px 19px 20px; }
.dialog-content .stack { gap: 12px; }
.dialog-content .cart-line { font-size: 13px; padding: 3px 0; }
.order-dishes h3 { font-size: 14px; }
.order-dishes .memo { margin: 4px 0 2px; }
.dish-line { align-items: flex-start; padding: 8px 0; }
.dish-line small { display: block; margin-top: 3px; color: var(--quiet); font-size: 12px; font-weight: 520; line-height: 1.45; }
.dialog-content .cart-total { padding-bottom: 0; }
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(246, 247, 243, .42), rgba(246, 247, 243, .62)),
    url("assets/login-bg.jpg") center / cover no-repeat;
}
.login-card {
  width: min(420px, 100%);
  padding: 26px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 22px 60px rgba(23, 41, 31, .14);
  backdrop-filter: blur(10px);
}
.login-card .brand { margin: 0 0 20px; }
.login-card h1 { font-size: 25px; margin-bottom: 15px; }
.login-card .notice { margin-top: 15px; }
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 10px);
  z-index: 8;
  max-width: calc(100% - 24px);
  padding: 9px 15px;
  border-radius: 10px;
  background: #1d3a2a;
  color: #fff;
  box-shadow: 0 8px 28px #14291f35;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s, transform .16s;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1500px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; }
  .hero { min-height: 256px; }
}
@media (max-width: 1240px) {
  :root { --sidebar: 200px; }
  .topbar, .page { padding-left: 25px; padding-right: 25px; }
  .order-layout { grid-template-columns: minmax(0, 1fr) 274px; gap: 16px; }
  .dish-grid { gap: 11px; }
  .dish-info { padding: 10px 9px; }
}
@media (max-width: 1080px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kitchen-grid { grid-template-columns: minmax(0, 1fr); }
  .stats-grid { gap: 9px; }
  .stat { padding: 12px; }
}
@media (max-width: 890px) {
  :root { --sidebar: 224px; --topbar: 57px; }
  .workspace { margin-left: 0; }
  .sidebar { transform: translateX(-100%); transition: transform .2s; }
  .nav-open .sidebar { transform: none; }
  .mobile-menu { display: inline-flex !important; }
  .mobile-scrim:not([hidden]) {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 4;
    background: #10241b7d;
    border: 0;
  }
  .nav-open { overflow: hidden; }
  .topbar { padding-inline: 14px; }
  .page { padding: 19px 18px 32px; }
  .topbar-date { font-size: 11px; }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 12px; }
  .admin-grid, .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .panel, .cart-panel { padding: 15px; }
}
@media (max-width: 600px) {
  h1 { font-size: 27px; }
  .page { padding-inline: 13px; }
  .page-heading { margin-bottom: 17px; align-items: flex-start; }
  .page-heading p { font-size: 12px; }
  .hero { min-height: 197px; padding: 20px; border-radius: 14px; }
  .hero-image { left: 33%; width: 67%; }
  .hero::before { background: linear-gradient(90deg, #1a422f 33%, #1a422fdd 44%, #1a422f64 73%, #182a1b33); }
  .hero h1 { margin-top: 11px; font-size: 35px; }
  .hero-eyebrow, .hero-meta { font-size: 11px; }
  .hero-meta { margin-top: 12px; gap: 5px 12px; }
  .hero-meta svg { width: 13px; height: 13px; }
  .order-layout { grid-template-columns: 1fr; margin-top: 20px; gap: 15px; }
  .menu-header h2 { font-size: 21px; }
  .cart-panel { position: relative; top: 0; scroll-margin-top: calc(var(--topbar) + 8px); }
  .cart-items { max-height: none; }
  .mobile-cart {
    display: flex;
    position: sticky;
    bottom: 8px;
    z-index: 3;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    box-shadow: 0 5px 24px #263e2d21;
    margin-top: 11px;
    background: var(--paper);
    border: 1px solid var(--line);
    padding: 8px 10px;
    border-radius: 11px;
  }
  .mobile-cart .price { font-size: 18px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .order-bottom { align-items: flex-start; }
  .meal-editor-grid { grid-template-columns: 1fr; }
  .service-date { max-width: none; }
  .combo-banner { gap: 8px; padding: 9px; }
  .combo-banner .stat-icon { width: 32px; height: 32px; }
  .combo-buy { flex-direction: column; align-items: flex-end; gap: 5px; }
}
@media (max-width: 380px) {
  .breadcrumb { gap: 5px; }
  .breadcrumb span { display: none; }
  .breadcrumb > svg { display: none; }
  .dish-grid { gap: 8px; }
  .order-bottom { flex-wrap: wrap; }
  .stats-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

.checkout-point-value { display: flex; align-items: center; gap: 8px; }
.profile-panel { max-width: 460px; }
.rotation-current { display: flex; gap: 13px; align-items: center; margin-bottom: 16px; }
.rotation-current h2 { margin: 3px 0; }
.rotation-layout { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 1.85fr); gap: 16px; align-items: start; }
.rotation-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.rotation-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 9px; }
.rotation-item strong { overflow-wrap: anywhere; }
.rotation-item .action-row { gap: 2px; }
.rotation-item .text-button:disabled { opacity: .48; }
.rotation-item .position { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-weight: 700; }
.rotation-add { display: flex; gap: 8px; align-items: end; }
.rotation-add .field { flex: 1; }
.rotation-people { margin-top: 16px; }
@media (max-width: 1050px) { .rotation-layout { grid-template-columns: minmax(0, 1fr); } }

.workbench-login-card { width: min(420px, 100%); }
.workbench-login-card .login-heading { margin-bottom: 22px; }
.workbench-login-card .login-heading h1 { margin-bottom: 5px; }
.workbench-login-card .button { width: 100%; }
.workbench-logout { padding-inline: 7px; }
