:root {
  color-scheme: light;
  --paper: #fbf5e9;
  --white: #fffaf2;
  --forest: #7d251a;
  --green: #59221a;
  --ink: #2f231e;
  --muted: #67554b;
  --line: #e8d9c9;
  --display: "DM Sans", system-ui, sans-serif;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--paper);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input, textarea, select { font: inherit; }
button, select { cursor: pointer; }
button:disabled { cursor: default; opacity: .6; }
a { color: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #bf6239; outline-offset: 3px; }
h1, h2, h3, h4, p { margin: 0; }
svg { width: 19px; height: 19px; vertical-align: middle; flex: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: fixed; top: 10px; left: -200px; z-index: 8; padding: 10px; background: white; }
.skip:focus { left: 10px; }
.shell { width: min(1290px, calc(100% - 88px)); margin-inline: auto; }
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 22px; }
.brand { text-decoration: none; display: inline-flex; gap: 12px; align-items: center; color: var(--forest); }
.brand-name { font: 700 24px/1 var(--display); letter-spacing: -.6px; }
.brand-name, .nav .button { white-space: nowrap; }
.nav-actions { display: flex; gap: 24px; align-items: center; }
.nav-link, .plain { color: var(--forest); font-weight: 700; background: none; border: 0; padding: 0; text-decoration: none; }
.nav-link { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border: 1px solid transparent; border-radius: 9px; font-weight: 700; text-decoration: none; background: var(--forest); color: white; }
.button:hover:not(:disabled) { background: var(--green); }
.button.secondary { background: var(--white); color: var(--forest); border-color: var(--line); }
.button.secondary:hover:not(:disabled) { background: #f5e8d5; }
.button.danger { background: #f9eee8; color: #963b22; }
.button.small { min-height: 35px; font-size: 13px; padding: 7px 11px; }
.button.wide { width: 100%; }
.nav-count { border-radius: 50%; padding: 1px 6px; min-width: 19px; color: var(--forest); background: #f6dbad; text-align: center; font-size: 12px; }
.hero-copy { padding: 40px 49px; max-width: 640px; }
.order-mode { display: flex; justify-content: space-between; align-items: center; gap: 17px; margin: 21px 0 29px; padding: 14px 19px; background: var(--white); border: 1px solid var(--line); border-radius: 13px; }
.mode-label { display: flex; align-items: center; gap: 12px; }
.mode-icon, .empty-icon { color: var(--forest); background: #f2e2d0; display: grid; place-items: center; border-radius: 11px; width: 42px; height: 42px; }
.mode-label strong { display: block; font-size: 14px; }
.mode-label small, .muted { color: var(--muted); font-size: 13px; }
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: #f6eadc; }
.segmented button { display: flex; gap: 8px; align-items: center; justify-content: center; color: #574238; white-space: nowrap; padding: 8px 14px; border: 0; border-radius: 7px; background: transparent; font-weight: 700; font-size: 13px; }
.segmented button[aria-pressed="true"] { color: white; background: var(--forest); }
.menu-section { scroll-margin-top: 25px; min-width: 0; }
.section-title, .page-title { font: 700 39px/1.1 var(--display); color: var(--forest); letter-spacing: -.045em; }
.section-lead { color: var(--muted); font-size: 14px; margin-top: 6px; }
.menu-heading { display: flex; justify-content: space-between; align-items: end; gap: 12px; }
.search { position: relative; }
.search svg { position: absolute; top: 12px; left: 12px; color: var(--muted); width: 17px; }
.search input { width: min(205px, 100%); padding-left: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 7px; margin: 19px 0 23px; }
.chip { border: 1px solid var(--line); border-radius: 30px; padding: 8px 14px; white-space: nowrap; background: var(--white); color: #3e483e; font-weight: 700; font-size: 13px; }
.chip[aria-pressed="true"] { border-color: var(--forest); background: var(--forest); color: white; }
.chip:hover:not([aria-pressed="true"]) { border-color: #a3ab9e; }
.grid-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 12px; }
.grid-heading h3 { color: var(--forest); font: 700 23px/1.2 var(--display); }
.menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.food { overflow: hidden; border-radius: 13px; border: 1px solid var(--line); background: var(--white); display: flex; flex-direction: column; }
.food-media { position: relative; aspect-ratio: 1.6; overflow: hidden; background: #f0dcc6; }
.food-media img { width: 100%; height: 100%; object-fit: cover; }
.food-media .tag { position: absolute; top: 10px; left: 10px; background: #fae0b8; color: #5a3920; }
.tag { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; border-radius: 20px; padding: 5px 8px; background: #f2e2d0; color: var(--forest); font-weight: 700; font-size: 12px; }
.tag svg { width: 13px; height: 13px; }
.food-details { flex: 1; padding: 13px; display: flex; flex-direction: column; }
.food h4 { font-size: 16px; line-height: 1.28; color: var(--forest); }
.food p { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 6px 0 11px; }
.food-bottom { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 7px; color: var(--forest); }
.food-bottom strong { font-size: 16px; }
.icon-button { border: 1px solid var(--line); border-radius: 9px; background: #f9ecda; color: var(--forest); width: 39px; height: 39px; display: inline-grid; place-items: center; padding: 0; }
.icon-button:hover { background: #f4ddbb; }
.empty { text-align: center; padding: 30px 19px; }
.empty-icon { width: 55px; height: 55px; margin: 0 auto 13px; border-radius: 50%; }
.empty-icon svg { width: 25px; height: 25px; }
.empty strong { display: block; margin-bottom: 5px; }
.bag-empty { min-height: 161px; }
.bag-total { border-top: 1px solid var(--line); padding: 16px 18px 18px; }
.split { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bag-total .button { margin-top: 13px; }
.bag-lines { list-style: none; margin: 0; padding: 0 16px; }
.bag-lines li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.bag-lines li:last-child { border-bottom: 0; }
.bag-lines small { color: var(--muted); display: block; margin: 4px 0; overflow-wrap: anywhere; }
.qty { display: inline-flex; align-items: center; gap: 9px; color: var(--forest); font-weight: 700; }
.qty .icon-button { width: 32px; height: 32px; }
.qty svg { width: 15px; height: 15px; }
.foot { margin-top: 58px; border-top: 1px solid var(--line); color: var(--muted); padding: 24px 0; }
.foot .split { flex-wrap: wrap; }
.foot .brand-mark { width: 33px; height: 33px; border-radius: 8px; }
.foot .brand-name { font-size: 20px; }
dialog { width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 32px); border: 1px solid var(--line); padding: 0; border-radius: 17px; background: var(--white); color: var(--ink); }
dialog::backdrop { background: #332018a3; }
.dialog-top { padding: 17px 21px; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1; background: var(--white); }
.dialog-top h2 { font: 700 24px/1.2 var(--display); color: var(--forest); }
.dialog-body { padding: 20px; }
.dialog-img { border-radius: 10px; width: 100%; max-height: 190px; object-fit: cover; margin-bottom: 12px; }
.form { display: grid; gap: 13px; }
.field { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
input:not([type=checkbox]):not([type=radio]), textarea, select { color: var(--ink); background: var(--white); border: 1px solid #d5d2c6; border-radius: 8px; min-height: 41px; padding: 9px 11px; }
.search input[type=search] { padding-left: 36px; }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { accent-color: var(--forest); width: 17px; height: 17px; }
.check { display: flex; align-items: center; gap: 9px; font-size: 14px; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin: 0; }
legend { font-weight: 700; font-size: 14px; }
.error { color: #923820; background: #faece5; border-radius: 8px; padding: 9px 12px; font-size: 14px; }
.toast { position: fixed; bottom: 22px; right: 22px; z-index: 4; border-radius: 9px; color: white; background: var(--forest); padding: 12px 17px; box-shadow: 0 6px 28px #0e241b28; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 13px; padding: 21px; }
.panel h2 { font: 700 23px/1.2 var(--display); color: var(--forest); }
.tracking { max-width: 680px; margin: 47px auto 0; display: grid; gap: 16px; }
.tracking .page-title { margin: 9px 0; }
.tracking .actions { margin-top: 12px; }
.status-list { padding: 4px 0 0; list-style: none; margin-bottom: 0; }
.status-list li { display: flex; gap: 10px; align-items: center; padding: 8px 0; color: var(--muted); }
.status-list .done { color: var(--forest); font-weight: 700; }
.status-list span { width: 25px; height: 25px; background: #ece9de; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.status-list .done span { background: #f6dbad; }
.status-list svg { width: 15px; height: 15px; }
.updates { list-style: none; padding: 0; margin-bottom: 0; }
.updates li { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.updates li:last-child { border-bottom: 0; }
.staff-shell { margin-top: 32px; }
.staff-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 19px 0; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin: 15px 0 25px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat strong { display: block; font: 700 26px/1.3 var(--display); color: var(--forest); }
.board { display: grid; grid-template-columns: repeat(5, minmax(215px, 1fr)); gap: 10px; overflow: auto; padding-bottom: 12px; }
.lane { background: #f4e8dc; padding: 10px; border-radius: 10px; min-height: 154px; }
.lane h3 { padding: 3px 2px 11px; font-size: 15px; color: var(--forest); }
.ticket { border: 1px solid var(--line); border-radius: 9px; background: var(--white); padding: 12px; margin-bottom: 9px; overflow-wrap: anywhere; }
.ticket ul { padding-left: 16px; font-size: 13px; }
.ticket .button { margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.records { display: grid; gap: 8px; margin-top: 15px; }
.record { border: 1px solid var(--line); background: var(--white); border-radius: 9px; padding: 12px; flex-wrap: wrap; }
.record img { width: 60px; height: 45px; object-fit: cover; border-radius: 6px; }
.record p { margin-top: 4px; }
.section-space { margin-top: 15px; }
.qr { margin: 0 auto; max-width: min(100%, 280px); }
.login { max-width: 435px; margin: 55px auto 0; }
.login .form { margin-top: 17px; }
@media (max-width: 1120px) {
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .shell { width: calc(100% - 32px); }
  .hero-copy { padding: 30px 25px; }
  .stats { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .foot { margin-top: 34px; }
}
@media (max-width: 490px) {
  .nav { min-height: 63px; gap: 8px; }
  .nav-actions { gap: 10px; }
  .nav-link .nav-text { display: none; }
  .brand-name { font-size: 18px; }
  .brand { gap: 7px; }
  .nav .button { min-height: 37px; padding: 7px; font-size: 13px; }
  .order-mode { padding: 11px; align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .order-mode .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .menu-heading { flex-wrap: wrap; }
  .search, .search input { width: 100%; }
  .menu-grid { gap: 9px; }
  .food-details { padding: 9px; }
  .food h4 { font-size: 14px; }
  .food p { font-size: 12px; }
  .food-bottom strong { font-size: 14px; }
  .section-title { font-size: 33px; }
  .toast { bottom: 12px; right: 12px; }
}
@media (max-width: 340px) {
  .nav-actions { gap: 7px; }
  .nav .button { gap: 5px; }
  .nav .button svg { display: none; }
}
@media print {
  body > :not(dialog), dialog .dialog-top, dialog .actions { display: none !important; }
  dialog { position: static; display: block; border: 0; margin: 0 auto; overflow: visible; }
  dialog::backdrop { background: white; }
}
