:root {
  --paper: #fbf8f2;
  --white: #fffdfa;
  --ink: #28251f;
  --muted: #6e6559;
  --border: #e8ded0;
  --accent: #943e2e;
  --accent-dark: #772c20;
  --accent-light: #faede7;
  --warm: #f5eee3;
  --green: #2d6950;
  --good: #eaf3eb;
  --shadow: 0 12px 38px #3723130a;
  font-family: Inter, "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .5; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #b65e42; outline-offset: 3px; }
button, a, input { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.25; }
.frame { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.visually-hidden, .anti-spam {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.site-header { border-bottom: 1px solid var(--border); background: var(--white); }
.topbar { min-height: 74px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; font-size: 1.06rem; font-weight: 800; }
.shop-logo { display: block; flex: none; object-fit: contain; border-radius: 7px; }
.connection { display: inline-flex; align-items: center; gap: 7px; font-weight: 650; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; background: currentColor; border-radius: 50%; flex: none; }
.customer-page {
  --paper: #f8f5ed;
  --white: #fffcf6;
  --ink: #2c3125;
  --muted: #635e50;
  --border: #ded8ca;
  --accent: #404d30;
  --accent-dark: #303b24;
  --accent-light: #e9eddf;
  --warm: #efe9db;
  --shadow: 0 6px 26px #392e1810;
  color: var(--ink);
  background: var(--paper);
}
.customer-page .site-header { background: #fff; }
.customer-page .wordmark { color: #422f20; font-size: 1.26rem; letter-spacing: .04em; white-space: nowrap; }
.menu-navigation { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 999px; color: var(--accent-dark); font-size: .89rem; font-weight: 750; white-space: nowrap; }
.menu-navigation:hover { background: var(--accent-light); }
.customer-main { padding-block: 26px 0; }
.ordering-paused { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; padding: 16px 20px; border: 1px solid #d59683; border-inline-start: 5px solid #983d2e; border-radius: 11px; background: #f9eae2; color: #772c20; scroll-margin-top: 12px; }
.ordering-paused .action.primary { background: #8b3628; }
.ordering-paused .action.primary:hover { background: #6f2b21; }
.ordering-paused h2 { font-size: clamp(1.2rem, 3.6vw, 1.55rem); }
.ordering-paused p { margin-top: 4px; font-size: .92rem; }
.hero {
  display: grid;
  grid-template-columns: minmax(310px, 42%) minmax(0, 1fr);
  overflow: hidden;
  min-height: 354px;
  border-radius: 24px;
  color: #fffcf1;
  background: #343f29;
  box-shadow: 0 12px 28px #2f2b1c1b;
}
.hero-content { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: 40px clamp(24px, 4.5vw, 58px); }
.hero-label { color: #e4d9b9; font-size: .87rem; font-weight: 750; letter-spacing: .12em; }
.hero-label span { color: #c4b693; }
.hero h1 { margin: 13px 0 15px; font-size: clamp(2.3rem, 4.7vw, 4.1rem); font-weight: 800; letter-spacing: .035em; line-height: 1.15; }
.hero-subtitle { max-width: 24em; color: #edebd9; font-size: .97rem; line-height: 1.75; }
.hero .hero-menu { margin-top: 24px; padding-inline: 19px; border-radius: 999px; background: #f8efd7; color: #303b24; }
.hero .hero-menu:hover { background: #fff9eb; }
.hero-menu:focus-visible { outline-color: #f8efd7; }
.clock { width: 13px; height: 13px; display: inline-block; border: 1.5px solid currentColor; border-radius: 50%; position: relative; margin-right: 4px; }
.clock::after { content: ""; position: absolute; top: 2px; left: 4px; width: 3px; height: 4px; border-left: 1px solid; border-bottom: 1px solid; }
.hero-photo { position: relative; overflow: hidden; min-height: 0; background: #593428; }
.hero-photo img { position: absolute; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }
.hero-photo figcaption { position: absolute; right: 15px; bottom: 13px; padding: 4px 10px; border-radius: 999px; color: white; background: #2d2319dc; font-size: .71rem; }
.pickup-info { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; column-gap: 20px; row-gap: 0; margin-top: 14px; padding-inline: 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); color: var(--muted); font-size: .85rem; }
.pickup-lead { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.pickup-lead .clock, .pickup-lead strong { color: var(--accent); }
.opening-hours { text-align: right; }
.opening-hours summary { padding-block: 11px; cursor: pointer; color: var(--accent-dark); font-weight: 750; }
.opening-hours dl { display: grid; gap: 6px; padding-bottom: 12px; text-align: left; }
.opening-hours dl > div { display: grid; grid-template-columns: max-content 1fr; gap: 12px; justify-content: space-between; }
.opening-hours dd { text-align: right; font-variant-numeric: tabular-nums; }
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(314px, 360px); gap: 32px; align-items: start; margin-top: 35px; }
.menu-heading, .checkout-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.menu-heading { margin-bottom: 15px; }
.menu-heading h2 { font-size: 1.87rem; letter-spacing: .035em; scroll-margin-top: 16px; }
.menu-heading .muted { font-size: .8rem; }
.menu-tabs, .queue-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-tabs button, .queue-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  min-height: 39px;
  border: 1px solid var(--border);
  border-radius: 99px;
  color: var(--muted);
  background: var(--white);
  font-size: .87rem;
  font-weight: 750;
}
.menu-tabs button:hover, .queue-tabs button:hover { border-color: #c9a89b; color: var(--accent-dark); }
.menu-tabs button[aria-pressed="true"], .queue-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.notice { margin-top: 16px; padding: 10px 13px; border-radius: 9px; background: var(--warm); color: var(--muted); font-size: .9rem; }
.meal-section { margin-block: 24px 31px; }
.section-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 1.1rem; }
.section-title::after { content: ""; flex: 1; border-top: 1px solid var(--border); }
.meal-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.meal {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 13px 13px 13px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
}
.meal:focus-within, .meal:has(.add-meal:not(:disabled):hover) { border-color: #899174; }
.meal h4 { font-weight: 760; font-size: .98rem; }
.item-price { color: #793c2a; font-size: .93rem; font-weight: 750; margin-top: 5px; font-variant-numeric: tabular-nums; }
.add-meal, .icon-button, .quantity-control button {
  border: 1px solid transparent;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  min-width: 39px;
  min-height: 39px;
  flex: none;
  padding: 0 6px;
  color: var(--accent);
  background: var(--accent-light);
  font-size: 1.3rem;
  font-weight: 600;
}
.add-meal:hover:not(:disabled), .icon-button:hover:not(:disabled), .quantity-control button:hover:not(:disabled) { color: white; background: var(--accent); }
.add-meal { width: 44px; height: 44px; border-radius: 50%; }
.add-meal::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.meal-add-icon { line-height: 1; }
.panel { border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: var(--shadow); }
.checkout { padding: 22px; border-radius: 20px; scroll-margin-top: 12px; }
.checkout-heading { margin-bottom: 15px; }
.checkout-heading h2 { font-size: 1.21rem; }
.cart-count { border-radius: 999px; padding: 4px 10px; background: var(--accent-light); color: var(--accent-dark); font-size: .8rem; font-weight: 650; white-space: nowrap; }
.cart-items { max-height: min(32vh, 240px); overflow: auto; }
.cart-empty { padding: 16px 11px; text-align: center; color: var(--muted); background: var(--paper); border-radius: 9px; font-size: .84rem; }
.cart-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding-block: 8px; border-bottom: 1px solid var(--border); font-size: .82rem; }
.cart-line small, .order-card-items small { display: block; color: var(--muted); margin-top: 3px; }
.cart-line .icon-button { min-width: 29px; min-height: 29px; font-size: 1rem; }
.total-row { display: flex; align-items: center; justify-content: space-between; padding-block: 16px 13px; margin-bottom: 14px; gap: 10px; border-bottom: 1px solid var(--border); font-weight: 750; font-size: .92rem; }
.total-row strong { color: var(--accent); font-size: 1.24rem; }
form > label { display: block; font-size: .86rem; font-weight: 750; margin-bottom: 5px; }
.required { color: var(--accent); }
.optional { font-size: .75rem; font-weight: 450; }
form > input, form > select {
  padding: 9px 10px;
  width: 100%;
  min-height: 45px;
  margin-bottom: 12px;
  border: 1px solid #d9cdbc;
  border-radius: 8px;
  color: var(--ink);
  background: #fffefa;
  font-size: max(.87rem, 16px);
}
input::placeholder { color: #817569; font-size: .82rem; }
.action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 9px; min-height: 43px; padding: 8px 14px; font-weight: 760; }
.action.primary { background: var(--accent); color: white; }
.action.primary:hover:not(:disabled) { background: var(--accent-dark); }
.action.ghost { border-color: var(--border); background: var(--white); color: var(--accent-dark); }
.action.ghost:hover:not(:disabled) { border-color: #c9a89b; background: var(--accent-light); }
.action.small { font-size: .83rem; min-height: 37px; }
form > .action { width: 100%; }
.privacy { margin-top: 9px; text-align: center; font-size: .72rem; color: var(--muted); }
.form-error { margin-block: 8px; color: #9a3023; font-size: .88rem; font-weight: 650; }
.site-footer { padding-block: 20px 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .8rem; margin-top: 34px; }
.site-footer a:hover, .text-link:hover, .contact a:hover { text-decoration: underline; }
.mobile-cart { display: none; }
dialog { border: 1px solid var(--border); border-radius: 18px; background: var(--white); width: min(460px, calc(100% - 30px)); max-height: 88dvh; padding: 21px; color: var(--ink); box-shadow: 0 26px 80px #23150f4d; }
dialog::backdrop { background: #211a15a6; }
.dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-top h2 { font-size: 1.38rem; }
.close-button { width: 35px; height: 35px; min-width: 35px; min-height: 35px; }
#dialog-price { font-weight: 750; margin-bottom: 16px; }
fieldset { border: 1px solid var(--border); margin: 0 0 13px; border-radius: 10px; padding: 6px 10px 9px; }
legend { font-weight: 740; padding: 0 5px; font-size: .87rem; }
.option-row { cursor: pointer; min-height: 38px; display: flex; align-items: center; gap: 9px; padding: 4px; font-size: .88rem; }
.option-row strong { margin-left: auto; color: var(--accent); font-size: .82rem; white-space: nowrap; }
.option-row:has(input:disabled) { opacity: .47; cursor: default; }
.option-row input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.dialog-bottom { display: flex; gap: 10px; position: sticky; bottom: -21px; background: var(--white); border-top: 1px solid var(--border); padding-block: 11px 5px; }
.dialog-bottom > .action { flex: 1; }
.quantity-control { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 9px; }
.quantity-control button { background: transparent; min-height: 40px; width: 36px; min-width: 36px; }
.quantity-control output { text-align: center; min-width: 28px; }
.tracking { max-width: 520px; margin: clamp(22px, 9vw, 85px) auto; padding: clamp(22px, 6vw, 44px); text-align: center; }
.tracking-icon { display: inline-grid; place-items: center; width: 51px; height: 51px; margin-bottom: 18px; border-radius: 50%; color: var(--green); background: var(--good); font-size: 1.5rem; }
.tracking[data-status="rejected"] .tracking-icon { display: none; }
.tracking-number { color: var(--accent); font-weight: 750; font-size: .95rem; letter-spacing: .05em; }
.tracking h1 { margin-block: 8px; font-size: 1.76rem; }
#tracking-message { color: var(--muted); }
.tracking-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-block: 23px; }
.tracking-facts > div { background: var(--warm); border-radius: 9px; padding: 10px; }
.tracking-facts dt { font-size: .79rem; color: var(--muted); }
.tracking-facts dd { font-size: 1.07rem; font-weight: 750; }
.staff-page { min-height: 100vh; }
.header-actions { display: flex; align-items: center; gap: 14px; }
.text-link { color: var(--accent-dark); font-size: .83rem; font-weight: 700; }
.staff-main { padding-block: 37px; }
.login { margin: 35px auto; max-width: 420px; padding: clamp(22px, 5vw, 35px); }
.login-mark { margin-bottom: 15px; }
.login h1 { font-size: 1.75rem; margin-bottom: 7px; }
.login p { margin-bottom: 19px; font-size: .9rem; }
.dashboard-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.dashboard-head h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); letter-spacing: .025em; }
.dashboard-head p { margin-top: 6px; font-size: .9rem; }
.dashboard-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.connectivity { display: flex; flex-wrap: wrap; gap: 7px; }
.connection { padding: 6px 9px; border-radius: 6px; background: var(--warm); color: var(--muted); font-size: .75rem; }
.connection[data-tone="good"] { color: var(--green); background: var(--good); }
.connection[data-tone="bad"] { color: var(--accent-dark); background: var(--accent-light); }
.queue { padding: 15px; }
.queue-toolbar { display: flex; justify-content: space-between; gap: 8px; align-items: start; margin-bottom: 14px; }
.queue-tools { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.queue-tools button[aria-pressed="true"] { color: var(--green); background: var(--good); }
.queue-tabs { gap: 6px; }
.queue-tabs button { padding-inline: 10px; min-height: 37px; }
.tab-count { display: inline-grid; min-width: 19px; place-items: center; border-radius: 50%; background: #997d6a2b; font-size: .74rem; }
.queue-tabs button[aria-pressed="true"] .tab-count { background: #ffffff30; }
.queue-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.queue-empty { grid-column: 1 / -1; display: grid; place-items: center; gap: 8px; min-height: 245px; padding: 20px; text-align: center; border: 1px dashed var(--border); border-radius: 11px; background: var(--paper); align-content: center; }
.queue-empty h3 { font-size: 1.03rem; }
.queue-empty p { color: var(--muted); font-size: .87rem; }
.receipt-icon { height: 34px; width: 27px; margin-bottom: 4px; border: 2px solid #af7e67; border-radius: 4px; position: relative; }
.receipt-icon::before { content: ""; position: absolute; width: 13px; height: 6px; border-block: 1px solid #af7e67; top: 8px; left: 5px; }
.receipt-icon::after { content: ""; position: absolute; border-top: 1px solid #af7e67; width: 9px; left: 5px; top: 20px; }
.order-card { border: 1px solid var(--border); border-radius: 12px; padding: 15px; min-width: 0; overflow-wrap: anywhere; }
.order-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.order-card-top h3 { font-size: 1.03rem; letter-spacing: .04em; }
.order-card-top p { margin-top: 3px; font-size: .76rem; }
.order-card-total { color: var(--accent); white-space: nowrap; }
.contact { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 12px; padding-block: 10px; font-size: .9rem; }
.contact a { color: var(--accent-dark); }
.eta { color: var(--green); font-size: .82rem; }
.order-card-items { background: var(--paper); border-radius: 8px; margin: 0 0 10px; list-style: none; padding: 6px 10px; }
.order-card-items li { display: flex; justify-content: space-between; gap: 10px; font-size: .84rem; padding-block: 5px; }
.order-card-items li > span { white-space: nowrap; color: var(--muted); }
.order-note { color: var(--muted); font-size: .85rem; margin-top: 8px; }
.order-status, .order-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.order-card-actions { justify-content: flex-end; }
.pill { font-size: .73rem; border-radius: 6px; background: var(--warm); padding: 3px 7px; color: var(--muted); }
.pill.good { background: var(--good); color: var(--green); }
.pill.bad { background: var(--accent-light); color: var(--accent-dark); }
.field-help { color: var(--muted); font-size: .81rem; margin-block: 5px; }
form > #requested-pickup { margin-bottom: 0; }
.pickup-help { margin-bottom: 12px; }
#accept-summary, #reject-summary { margin-block: 7px 15px; font-size: .91rem; }
#prep-minutes { width: 115px; margin-bottom: 2px; }
.accept-info { background: var(--warm); border-radius: 8px; font-size: .85rem; padding: 8px 10px; margin-block: 11px 13px; }

@media (min-width: 691px) and (min-height: 850px) {
  .checkout { position: sticky; top: 16px; }
}
@media (max-width: 900px) {
  .frame { width: calc(100% - 40px); }
  .order-layout { gap: 17px; grid-template-columns: minmax(0, 1fr) minmax(268px, 310px); }
  .checkout { padding: 17px; }
}
@media (max-width: 690px) {
  .frame { width: calc(100% - 30px); }
  .topbar { min-height: 62px; }
  .customer-main { padding-top: 15px; }
  .customer-page .wordmark { gap: 8px; font-size: 1.13rem; }
  .customer-page .wordmark .shop-logo { width: 51px; height: auto; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; border-radius: 16px; }
  .hero-content { padding: 22px 20px; }
  .hero-label { font-size: .78rem; }
  .hero h1 { margin-block: 8px 9px; font-size: clamp(2.15rem, 8.7vw, 3rem); }
  .hero-subtitle { font-size: .88rem; }
  .hero .hero-menu { margin-top: 15px; }
  .hero-photo { aspect-ratio: 2 / 1; }
  .hero-photo figcaption { right: 8px; bottom: 7px; font-size: .66rem; }
  .pickup-info { padding-inline: 12px; }
  .order-layout { grid-template-columns: minmax(0, 1fr); margin-top: 24px; gap: 0; }
  .ordering-paused { padding: 13px 14px; }
  .mobile-cart:not(.checkout-visible) { display: flex; position: fixed; z-index: 2; bottom: max(9px, env(safe-area-inset-bottom)); left: 15px; right: 15px; min-height: 49px; justify-content: space-between; box-shadow: 0 5px 18px #262b1980; }
  .customer-page:has(.mobile-cart:not([hidden])) .site-footer { margin-bottom: 60px; }
  .staff-main { padding-block: 22px; }
}
@media (max-width: 460px) {
  .meal { min-height: 76px; padding: 10px; }
  .meal h4 { font-size: .86rem; }
  .meal-grid { gap: 8px; }
  .menu-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 5px; }
  .menu-tabs button { white-space: nowrap; padding-inline: 10px; }
  .queue-toolbar { flex-direction: column; align-items: stretch; }
  .queue-list { grid-template-columns: minmax(0, 1fr); }
  .dashboard-head { align-items: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
