:root {
  --paper: #f7f6f2;
  --paper-deep: #eceae3;
  --ink: #20221f;
  --muted: #777a72;
  --muted-dark: #5e625a;
  --line: #deded6;
  --orange: #eb6a2c;
  --orange-dark: #cc4f18;
  --lime: #c5d779;
  --teal: #0f7970;
  --blue: #3172c5;
  --white: #fffefa;
  --shadow: 0 18px 50px rgba(28, 31, 25, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Manrope", "Noto Sans SC", sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible { outline: 3px solid rgba(15, 121, 112, .28); outline-offset: 2px; }
.app-shell { min-height: 100vh; overflow-x: hidden; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(247, 246, 242, .92); border-bottom: 1px solid rgba(222, 222, 214, .88); backdrop-filter: blur(18px); }
.topbar__inner { max-width: 1320px; height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 36px; margin: 0 auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; padding: 0; color: var(--ink); background: transparent; text-align: left; }
.brand__mark { display: grid; place-items: center; width: 35px; height: 35px; color: var(--white); background: var(--orange); border-radius: 10px 10px 10px 2px; transform: rotate(-4deg); }
.brand__mark svg { width: 19px; height: 19px; transform: rotate(4deg); }
.brand strong, .brand small { display: block; line-height: 1.1; }
.brand strong { font-size: 15px; letter-spacing: .02em; }
.brand small { margin-top: 4px; color: var(--muted); font: 500 8px/1 "DM Mono", monospace; letter-spacing: .18em; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.open-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-dark); font-size: 12px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #53a34d; box-shadow: 0 0 0 4px rgba(83, 163, 77, .12); }
.icon-button { display: grid; place-items: center; width: 39px; height: 39px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 9px; transition: .2s ease; }
.icon-button:hover { border-color: var(--ink); background: var(--white); }
.icon-button svg { width: 18px; height: 18px; }
.view { max-width: 1320px; margin: 0 auto; }
.section-wrap { padding-right: 36px; padding-left: 36px; }
.customer-hero { display: grid; grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr); min-height: 420px; padding: 68px 36px 56px; gap: 64px; }
.customer-hero__copy { align-self: center; padding: 12px 0 0 34px; }
.eyebrow { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--orange-dark); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .13em; }
.eyebrow__line { width: 22px; height: 1px; background: currentColor; }
h1, h2, p { margin-top: 0; }
.customer-hero h1 { margin: 0; font-size: clamp(52px, 6.5vw, 88px); font-weight: 800; letter-spacing: -.065em; line-height: .93; }
.customer-hero h1 em { color: var(--orange); font-style: normal; }
.hero-subtitle { max-width: 355px; margin: 23px 0 26px; color: var(--muted-dark); font-size: 15px; line-height: 1.8; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 17px; color: var(--muted); font-size: 11px; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--orange); }
.customer-hero__visual { align-self: center; max-width: 630px; justify-self: end; width: 100%; }
.hero-image-wrap { position: relative; height: 335px; border-radius: 2px 80px 2px 80px; overflow: hidden; background: var(--paper-deep); }
.hero-image-wrap::after { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(16,20,15,.12), transparent 55%); pointer-events: none; }
.hero-image-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 54%; }
.hero-sticker { position: absolute; z-index: 1; right: 25px; bottom: 24px; display: grid; place-items: center; width: 116px; height: 116px; color: var(--ink); background: var(--lime); border-radius: 50%; transform: rotate(7deg); text-align: center; }
.hero-sticker span { margin-bottom: -9px; font: 500 9px/1 "DM Mono", monospace; letter-spacing: .06em; }
.hero-sticker strong { font-size: 19px; line-height: 1.03; letter-spacing: -.07em; }
.hero-caption { display: flex; align-items: center; gap: 12px; margin-top: 12px; color: var(--muted); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .1em; }
.hero-caption span:first-child { color: var(--orange); }
.caption-rule { width: 48px; height: 1px; background: var(--line); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font-size: 28px; letter-spacing: -.05em; line-height: 1.1; }
.order-id { color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .08em; }
.order-context { padding-top: 45px; padding-bottom: 50px; border-top: 1px solid var(--line); }
.mode-switch { display: grid; grid-template-columns: 1fr 1fr; max-width: 630px; margin-top: 27px; border: 1px solid var(--line); background: var(--paper-deep); padding: 4px; border-radius: 10px; }
.mode-option { display: flex; align-items: center; gap: 13px; padding: 14px 16px; color: var(--muted); background: transparent; border-radius: 7px; text-align: left; transition: .2s ease; }
.mode-option.is-active { color: var(--ink); background: var(--white); box-shadow: 0 3px 12px rgba(34, 35, 29, .07); }
.mode-option > svg { width: 20px; height: 20px; color: var(--orange); }
.mode-option span { display: grid; gap: 4px; }
.mode-option strong { font-size: 13px; }
.mode-option small { color: var(--muted); font-size: 10px; }
.context-detail { max-width: 630px; display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 13px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; }
.context-detail__icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--teal); background: #e2f0ed; border-radius: 50%; }
.context-detail__icon svg { width: 15px; height: 15px; }
.context-detail div:nth-child(2) { display: grid; gap: 2px; flex: 1; }
.context-detail span { color: var(--muted); font-size: 10px; }
.context-detail strong { font-size: 13px; }
.text-button { display: inline-flex; align-items: center; gap: 3px; padding: 4px 0; color: var(--teal); font-size: 11px; background: transparent; white-space: nowrap; }
.text-button:hover { color: var(--orange-dark); }
.text-button svg { width: 14px; height: 14px; }
.benefit-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 15px; padding-bottom: 15px; color: var(--ink); background: var(--lime); }
.benefit-strip__main, .benefit-strip__side { display: flex; align-items: center; }
.benefit-strip__main { gap: 12px; }
.benefit-strip__main > div { display: grid; gap: 3px; }
.benefit-strip__main strong { font-size: 14px; }
.benefit-strip__main span:not(.benefit-icon) { font-size: 11px; }
.benefit-icon { display: grid; place-items: center; width: 31px; height: 31px; color: var(--lime); background: var(--ink); border-radius: 50%; }
.benefit-icon svg { width: 16px; height: 16px; }
.benefit-strip__side { gap: 7px; font-size: 12px; }
.benefit-strip__side span { padding-right: 2px; color: var(--muted-dark); }
.benefit-strip__side strong { font-size: 14px; }
.benefit-strip__side svg { width: 17px; height: 17px; margin-left: 6px; }
.menu-section { padding-top: 52px; padding-bottom: 140px; }
.section-heading--menu { align-items: center; }
.menu-search { color: var(--ink); }
.menu-search svg { width: 16px; height: 16px; }
.category-tabs { display: flex; align-items: center; gap: 27px; margin: 30px 0 24px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { position: relative; display: inline-flex; align-items: baseline; gap: 6px; padding: 0 0 14px; color: var(--muted); background: transparent; font-size: 13px; white-space: nowrap; }
.category-tab::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: transparent; }
.category-tab.is-active { color: var(--ink); font-weight: 700; }
.category-tab.is-active::after { background: var(--orange); }
.category-tab span { color: var(--muted); font: 10px "DM Mono", monospace; }
.menu-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.menu-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 6px; transition: .25s ease; }
.menu-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.menu-card__image { aspect-ratio: 1.18; overflow: hidden; background: var(--paper-deep); }
.menu-card__image img { width: 100%; height: 100%; object-fit: cover; transition: .35s ease; }
.menu-card:hover img { transform: scale(1.045); }
.menu-card__tag { position: absolute; top: 11px; left: 11px; padding: 5px 7px; color: var(--ink); background: var(--lime); font: 500 9px/1 "DM Mono", monospace; letter-spacing: .04em; }
.menu-card__body { display: flex; flex: 1; flex-direction: column; padding: 14px 14px 15px; }
.menu-card h3 { margin: 0; font-size: 15px; letter-spacing: -.03em; }
.menu-card p { min-height: 34px; margin: 6px 0 14px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.menu-card__bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.menu-card__price { color: var(--orange-dark); font-size: 18px; font-weight: 800; letter-spacing: -.04em; }
.menu-card__price small { font-size: 11px; font-weight: 600; }
.add-button { display: grid; place-items: center; width: 31px; height: 31px; color: var(--white); background: var(--ink); border-radius: 8px; transition: .2s ease; }
.add-button:hover { background: var(--orange); transform: rotate(90deg); }
.add-button svg { width: 16px; height: 16px; }
.order-dock { position: fixed; z-index: 19; right: 0; bottom: 0; left: 0; pointer-events: none; }
.order-dock__inner { max-width: 1320px; display: flex; align-items: center; justify-content: flex-end; gap: 14px; margin: 0 auto; padding: 12px 36px; pointer-events: auto; background: rgba(247, 246, 242, .94); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
.cart-trigger { position: relative; display: inline-flex; align-items: center; gap: 9px; padding: 11px 4px; color: var(--ink); background: transparent; font-size: 12px; }
.cart-trigger svg { width: 17px; height: 17px; }
.cart-badge { display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; color: var(--white); background: var(--orange); border-radius: 20px; font: 500 10px "DM Mono", monospace; }
.dock-total { display: grid; gap: 2px; min-width: 76px; }
.dock-total span { color: var(--muted); font-size: 10px; }
.dock-total strong { font-size: 17px; letter-spacing: -.04em; }
.dock-checkout, .pay-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--white); background: var(--orange); border-radius: 7px; font-weight: 700; transition: .2s ease; }
.dock-checkout { min-width: 132px; padding: 13px 17px; font-size: 12px; }
.dock-checkout:not(:disabled):hover, .pay-button:not(:disabled):hover, .primary-button:hover { background: var(--orange-dark); transform: translateY(-1px); }
.dock-checkout:disabled, .pay-button:disabled { cursor: not-allowed; opacity: .42; }
.dock-checkout svg, .pay-button svg, .primary-button svg { width: 15px; height: 15px; }
.drawer-backdrop, .modal-backdrop { position: fixed; z-index: 30; inset: 0; background: rgba(22, 24, 19, .34); opacity: 0; pointer-events: none; transition: .25s ease; backdrop-filter: blur(3px); }
.drawer-backdrop.is-open, .modal-backdrop.is-open { opacity: 1; pointer-events: auto; }
.cart-drawer { position: fixed; z-index: 31; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; width: min(460px, 100vw); padding: 28px 27px 22px; background: var(--paper); box-shadow: -20px 0 70px rgba(28, 31, 25, .14); transform: translateX(100%); transition: .3s cubic-bezier(.22, .61, .36, 1); }
.cart-drawer.is-open { transform: translateX(0); }
.drawer-head, .modal__head { display: flex; align-items: flex-start; justify-content: space-between; }
.drawer-head h2, .modal__head h2 { margin: 0; font-size: 26px; letter-spacing: -.06em; }
.drawer-head h2 span { color: var(--orange); font: 500 12px "DM Mono", monospace; vertical-align: top; letter-spacing: 0; }
.drawer-context { display: flex; align-items: center; gap: 7px; margin-top: 20px; padding: 11px 12px; color: var(--teal); background: #e7f1ee; border-radius: 5px; font-size: 11px; }
.drawer-context svg { width: 15px; height: 15px; }
.drawer-context span { flex: 1; color: var(--ink); }
.cart-items { flex: 1; min-height: 80px; margin: 15px 0; overflow-y: auto; }
.cart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); text-align: center; }
.cart-empty svg { width: 34px; height: 34px; margin-bottom: 13px; color: var(--line); }
.cart-empty p { margin: 0; font-size: 12px; }
.cart-line { display: grid; grid-template-columns: 58px 1fr auto; gap: 11px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.cart-line__image { width: 58px; height: 58px; overflow: hidden; border-radius: 5px; background: var(--paper-deep); }
.cart-line__image img { width: 100%; height: 100%; object-fit: cover; }
.cart-line__info { display: grid; gap: 5px; }
.cart-line__info strong { font-size: 13px; }
.cart-line__info span { color: var(--orange-dark); font: 500 11px "DM Mono", monospace; }
.qty-control { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.qty-control button { display: grid; place-items: center; width: 22px; height: 22px; color: var(--ink); background: var(--paper-deep); border-radius: 50%; }
.qty-control button:hover { color: var(--white); background: var(--orange); }
.qty-control svg { width: 12px; height: 12px; }
.qty-control span { min-width: 13px; font: 500 11px "DM Mono", monospace; text-align: center; }
.cart-line__price { display: grid; gap: 7px; justify-items: end; font-size: 13px; font-weight: 700; }
.cart-line__remove { padding: 0; color: var(--muted); background: transparent; font-size: 10px; }
.cart-line__remove:hover { color: var(--orange-dark); }
.drawer-bottom { border-top: 1px solid var(--line); padding-top: 14px; }
.note-field { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; color: var(--muted); }
.note-field svg { width: 16px; height: 16px; }
.note-field input { width: 100%; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 11px; }
.price-lines { display: grid; gap: 8px; margin-bottom: 15px; font-size: 11px; }
.price-lines > div { display: flex; justify-content: space-between; color: var(--muted); }
.price-lines strong { color: var(--ink); font-weight: 600; }
.price-total { margin-top: 4px; padding-top: 11px; border-top: 1px dashed var(--line); color: var(--ink) !important; font-size: 13px; }
.price-total strong { color: var(--orange-dark); font-size: 21px; letter-spacing: -.05em; }
.pay-button { width: 100%; padding: 14px 16px; font-size: 13px; }
.pay-button span { margin-left: auto; font: 500 12px "DM Mono", monospace; }
.secure-note { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 11px 0 0; color: var(--muted); font-size: 9px; }
.secure-note svg { width: 13px; height: 13px; color: var(--teal); }
.modal { position: fixed; z-index: 41; top: 50%; left: 50%; width: min(440px, calc(100vw - 32px)); padding: 25px; background: var(--paper); border-radius: 8px; box-shadow: 0 25px 100px rgba(18, 20, 15, .2); opacity: 0; pointer-events: none; transform: translate(-50%, -46%); transition: .25s ease; }
.modal.is-open { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.payment-amount { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 0 17px; padding-bottom: 17px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.payment-amount strong { color: var(--orange-dark); font-size: 28px; letter-spacing: -.06em; }
.payment-methods { display: grid; gap: 8px; }
.payment-method { display: flex; align-items: center; gap: 11px; padding: 13px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 6px; text-align: left; }
.payment-method.is-active { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal); }
.payment-method > span:nth-child(2) { display: grid; gap: 3px; flex: 1; }
.payment-method strong { font-size: 12px; }
.payment-method small { color: var(--muted); font-size: 10px; }
.pay-logo { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 7px; }
.pay-logo svg { width: 18px; height: 18px; }
.pay-logo--wechat { color: #fff; background: #1aae72; }
.pay-logo--cash { color: #fff; background: var(--blue); }
.method-check { width: 16px; height: 16px; color: var(--teal); }
.payment-method:not(.is-active) .method-check { display: none; }
.primary-button { padding: 13px 18px; font-size: 12px; }
.primary-button--wide { width: 100%; margin-top: 21px; }
.modal-footnote { margin: 13px 0 0; color: var(--muted); font-size: 9px; text-align: center; }
.success-modal { text-align: center; }
.success-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 19px; color: var(--white); background: var(--teal); border-radius: 50%; }
.success-mark svg { width: 29px; height: 29px; }
.success-modal .eyebrow { justify-content: center; }
.success-modal h2 { margin: 0 0 10px; font-size: 28px; letter-spacing: -.06em; }
.success-modal > p:not(.eyebrow) { margin: 0 auto 20px; max-width: 260px; color: var(--muted-dark); font-size: 12px; line-height: 1.7; }
.success-order { display: grid; gap: 4px; width: 100%; margin-bottom: 21px; padding: 13px; background: var(--lime); }
.success-order span { color: var(--muted-dark); font-size: 10px; }
.success-order strong { font: 500 25px "DM Mono", monospace; letter-spacing: .1em; }
.toast { position: fixed; z-index: 60; right: 50%; bottom: 91px; display: flex; align-items: center; gap: 8px; padding: 11px 15px; color: var(--white); background: var(--ink); border-radius: 5px; opacity: 0; pointer-events: none; transform: translate(50%, 10px); transition: .25s ease; font-size: 11px; }
.toast.is-visible { opacity: 1; transform: translate(50%, 0); }
.toast svg { width: 15px; height: 15px; color: var(--lime); }
.is-hidden { display: none !important; }

/* Admin */
.admin-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 76px); }
.admin-sidebar { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 37px 20px 21px; }
.sidebar-kicker { color: var(--muted); font: 500 9px "DM Mono", monospace; letter-spacing: .11em; }
.admin-sidebar__head h2 { margin: 8px 0 37px; font-size: 24px; letter-spacing: -.06em; }
.admin-nav { display: grid; gap: 4px; }
.admin-nav__item { display: flex; align-items: center; gap: 10px; padding: 12px 11px; color: var(--muted-dark); background: transparent; border-radius: 6px; font-size: 12px; text-align: left; }
.admin-nav__item:hover, .admin-nav__item.is-active { color: var(--ink); background: var(--paper-deep); }
.admin-nav__item.is-active { font-weight: 700; }
.admin-nav__item svg { width: 16px; height: 16px; }
.admin-nav__item small { margin-left: auto; color: var(--muted); font: 10px "DM Mono", monospace; }
.admin-sidebar__foot { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); }
.store-avatar { display: grid; place-items: center; width: 29px; height: 29px; color: var(--white); background: var(--orange); border-radius: 50%; font-weight: 700; }
.admin-sidebar__foot div { display: grid; flex: 1; gap: 3px; min-width: 0; }
.admin-sidebar__foot strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.admin-sidebar__foot small { color: var(--muted); font-size: 9px; }
.admin-sidebar__foot > svg { width: 15px; color: var(--muted); }
.admin-content { padding: 29px 43px 60px; }
.admin-panel { display: none; }
.admin-panel.is-active { display: block; }
.admin-content__top { display: flex; justify-content: space-between; align-items: center; }
.back-button { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--teal); background: transparent; font-size: 11px; }
.back-button svg { width: 15px; height: 15px; }
.admin-date { color: var(--muted); font: 10px "DM Mono", monospace; }
.admin-title-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 44px 0 29px; }
.admin-title-row h1 { margin: 0 0 9px; font-size: 35px; letter-spacing: -.065em; }
.admin-title-row p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.admin-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 38px; }
.summary-item { display: grid; gap: 8px; padding: 17px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.summary-item > span { color: var(--muted); font-size: 11px; }
.summary-item > strong { font-size: 28px; letter-spacing: -.06em; }
.summary-item sup { font-size: 16px; }
.summary-item > strong small { color: var(--muted); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.summary-item small { color: var(--muted); font-size: 9px; }
.trend-up { display: flex; align-items: center; gap: 3px; color: var(--teal) !important; }
.trend-up svg { width: 13px; height: 13px; }
.trend-up em { margin-left: 4px; color: var(--muted); font-style: normal; }
.summary-note { color: var(--orange-dark) !important; }
.delivery-settings { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 0 34px; padding: 20px 22px; background: var(--paper-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.delivery-settings__copy .eyebrow { margin-bottom: 8px; }
.delivery-settings__copy h2 { margin: 0 0 5px; font-size: 18px; letter-spacing: -.04em; }
.delivery-settings__copy > p:last-child { margin: 0; color: var(--muted); font-size: 10px; }
.delivery-settings__control { display: flex; align-items: center; gap: 9px; }
.delivery-settings__control label { color: var(--muted-dark); font-size: 10px; white-space: nowrap; }
.fee-input { display: flex; align-items: center; width: 102px; height: 36px; padding: 0 10px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.fee-input:focus-within { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(15, 121, 112, .12); }
.fee-input span { color: var(--orange-dark); font-size: 12px; font-weight: 700; }
.fee-input input { min-width: 0; width: 100%; padding: 0 0 0 6px; color: var(--ink); background: transparent; border: 0; outline: 0; font: 500 14px "DM Mono", monospace; }
.setting-status { display: inline-flex; align-items: center; gap: 4px; min-width: 52px; color: var(--teal); font-size: 9px; white-space: nowrap; }
.setting-status svg { width: 13px; height: 13px; }
.setting-status.is-dirty { color: var(--orange-dark); }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 17px; }
.filter-tabs { display: flex; gap: 21px; border-bottom: 1px solid var(--line); }
.filter-tab { position: relative; padding: 0 0 11px; color: var(--muted); background: transparent; font-size: 11px; }
.filter-tab.is-active { color: var(--ink); font-weight: 700; }
.filter-tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 2px; content: ""; background: var(--orange); }
.filter-tab span { margin-left: 3px; color: var(--muted); font: 10px "DM Mono", monospace; }
.outline-button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 11px; color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 5px; font-size: 10px; }
.outline-button:hover { border-color: var(--ink); background: var(--white); }
.outline-button svg { width: 14px; height: 14px; }
.table-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.table-card { position: relative; padding: 15px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.table-card.is-occupied { border-top: 2px solid var(--orange); }
.table-card__top { display: flex; justify-content: space-between; align-items: flex-start; }
.table-number { display: grid; gap: 4px; }
.table-number strong { font-size: 21px; letter-spacing: -.05em; }
.table-number span { color: var(--muted); font: 9px "DM Mono", monospace; letter-spacing: .08em; }
.table-status { display: inline-flex; align-items: center; gap: 4px; color: var(--teal); font-size: 9px; }
.table-status::before { width: 5px; height: 5px; content: ""; background: currentColor; border-radius: 50%; }
.table-card.is-occupied .table-status { color: var(--orange-dark); }
.qr-pattern { display: grid; grid-template-columns: repeat(9, 1fr); gap: 2px; width: 105px; height: 105px; margin: 20px auto 15px; padding: 7px; background: var(--white); border: 1px solid var(--line); }
.qr-pattern span { display: block; background: transparent; }
.qr-pattern span.is-dark { background: var(--ink); }
.qr-pattern span.is-corner { position: relative; background: var(--ink); }
.qr-pattern span.is-corner::after { position: absolute; inset: 4px; content: ""; background: var(--white); }
.qr-pattern span.is-corner::before { position: absolute; z-index: 1; inset: 7px; content: ""; background: var(--ink); }
.table-card__qr { display: grid; place-items: center; width: 105px; height: 105px; margin: 20px auto 15px; }
.table-card__qr .qr-pattern { grid-area: 1 / 1; margin: 0; }
.table-card__qr > img { display: none; grid-area: 1 / 1; width: 105px; height: 105px; object-fit: contain; background: var(--white); border: 1px solid var(--line); }
.table-card__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--line); }
.table-card__foot span { color: var(--muted); font-size: 9px; }
.table-card__actions { display: flex; gap: 8px; }
.table-card__actions button { display: grid; place-items: center; width: 25px; height: 25px; color: var(--muted-dark); background: var(--paper-deep); border-radius: 5px; }
.table-card__actions button:hover { color: var(--white); background: var(--ink); }
.table-card__actions svg { width: 13px; height: 13px; }
.table-card[role="button"] { cursor: pointer; }
.table-card[role="button"]:focus-visible { outline: 3px solid rgba(15, 121, 112, .28); outline-offset: 3px; }
.orders-toolbar, .menu-manager-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 0 0 17px; }
.orders-list { display: grid; gap: 8px; }
.order-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto 30px; align-items: center; gap: 18px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; transition: .2s ease; }
.order-row:hover { border-color: #b8c8c1; box-shadow: 0 9px 22px rgba(28, 31, 25, .06); transform: translateY(-1px); }
.order-row:focus-visible { outline: 3px solid rgba(15, 121, 112, .28); outline-offset: 2px; }
.order-row__main { min-width: 0; }
.order-row__id { display: flex; align-items: center; gap: 8px; }
.order-row__id strong { font: 500 13px "DM Mono", monospace; letter-spacing: .04em; }
.order-row__main p { overflow: hidden; margin: 8px 0 5px; color: var(--ink); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.order-row__main small { color: var(--muted); font-size: 10px; }
.order-type { display: inline-flex; align-items: center; padding: 4px 6px; border-radius: 3px; font-size: 9px; }
.order-type.dinein { color: var(--teal); background: #e4f1ed; }
.order-type.delivery { color: var(--orange-dark); background: #fff0e7; }
.order-row__meta { display: grid; justify-items: end; gap: 6px; min-width: 92px; }
.order-row__meta time { color: var(--muted); font: 10px "DM Mono", monospace; }
.order-row__meta > strong { font-size: 14px; letter-spacing: -.03em; }
.order-status { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; }
.order-status svg { width: 13px; height: 13px; }
.order-status.pending { color: var(--orange-dark); }
.order-status.preparing { color: var(--blue); }
.order-status.ready { color: var(--teal); }
.order-status.completed { color: var(--muted); }
.order-next { display: inline-flex; align-items: center; gap: 3px; padding: 7px 8px; color: var(--teal); background: #e4f1ed; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.order-next:hover { color: var(--white); background: var(--teal); }
.order-next svg { width: 12px; height: 12px; }
.order-completed-mark { display: grid; place-items: center; width: 27px; height: 27px; color: var(--teal); background: #e4f1ed; border-radius: 50%; }
.order-completed-mark svg { width: 14px; height: 14px; }
.order-print { display: grid; place-items: center; width: 29px; height: 29px; color: var(--muted-dark); background: var(--paper-deep); border-radius: 5px; }
.order-print:hover { color: var(--white); background: var(--ink); }
.order-print svg { width: 14px; height: 14px; }
.empty-panel { display: grid; place-items: center; gap: 8px; min-height: 190px; color: var(--muted); background: var(--white); border: 1px dashed var(--line); border-radius: 6px; font-size: 11px; }
.empty-panel svg { width: 25px; height: 25px; color: var(--line); }
.menu-manager-toolbar { overflow-x: auto; padding-bottom: 1px; }
.menu-manager-toolbar .filter-tabs { flex-shrink: 0; }
.menu-sync-status { display: inline-flex; align-items: center; gap: 5px; color: var(--teal); font-size: 10px; white-space: nowrap; }
.menu-sync-status svg { width: 14px; height: 14px; }
.manager-menu-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.manager-menu-card { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; padding: 11px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; transition: .2s ease; }
.manager-menu-card.is-offline { opacity: .58; }
.manager-menu-card > img { width: 88px; height: 88px; object-fit: cover; border-radius: 4px; filter: saturate(.92); }
.manager-menu-card__body { display: flex; min-width: 0; flex-direction: column; }
.manager-menu-card__title { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; }
.manager-menu-card h3 { overflow: hidden; margin: 0; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.manager-menu-card__title span { flex-shrink: 0; color: var(--muted); font-size: 8px; }
.manager-menu-card p { display: -webkit-box; min-height: 30px; margin: 6px 0 9px; overflow: hidden; color: var(--muted); font-size: 9px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.manager-menu-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 5px; margin-top: auto; }
.manager-menu-card__foot strong { color: var(--orange-dark); font: 500 14px "DM Mono", monospace; }
.manager-menu-card__actions { display: flex; align-items: center; gap: 4px; }
.menu-icon-action { display: grid; place-items: center; width: 25px; height: 25px; color: var(--muted-dark); background: var(--paper-deep); border-radius: 4px; }
.menu-icon-action:hover { color: var(--white); background: var(--ink); }
.menu-icon-action--danger:hover { background: var(--orange-dark); }
.menu-icon-action svg { width: 12px; height: 12px; }
.availability-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px; color: var(--muted); background: var(--paper-deep); border-radius: 4px; font-size: 8px; white-space: nowrap; }
.availability-toggle span { width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.availability-toggle.is-on { color: var(--teal); background: #e4f1ed; }
.availability-toggle:hover { color: var(--white); background: var(--ink); }
.campaign-highlight { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 19px; padding: 21px 23px; color: var(--white); background: var(--teal); border-radius: 6px; }
.campaign-highlight__label { color: #aee2d4; font: 500 9px "DM Mono", monospace; letter-spacing: .1em; }
.campaign-highlight h2 { margin: 8px 0 5px; font-size: 22px; letter-spacing: -.05em; }
.campaign-highlight p { margin: 0; color: #d2eee6; font-size: 10px; }
.campaign-highlight__badge { padding: 6px 8px; color: var(--teal); background: var(--lime); border-radius: 4px; font-size: 9px; font-weight: 700; white-space: nowrap; }
.campaign-list { display: grid; gap: 8px; }
.campaign-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto auto 34px; align-items: center; gap: 12px; padding: 14px 15px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; }
.campaign-row.is-paused { opacity: .62; }
.campaign-swatch { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 5px; }
.campaign-swatch svg { width: 17px; height: 17px; }
.campaign-swatch.orange { color: var(--orange-dark); background: #fff0e7; }
.campaign-swatch.lime { color: #6b791f; background: var(--lime); }
.campaign-swatch.teal { color: var(--teal); background: #e4f1ed; }
.campaign-row__copy { min-width: 0; }
.campaign-row__copy h3 { overflow: hidden; margin: 0 0 5px; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.campaign-row__copy p { overflow: hidden; margin: 0; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.campaign-status { color: var(--teal); font-size: 9px; white-space: nowrap; }
.campaign-row.is-paused .campaign-status { color: var(--muted); }
.campaign-toggle { padding: 6px 8px; color: var(--teal); background: #e4f1ed; border-radius: 4px; font-size: 9px; }
.campaign-toggle:hover { color: var(--white); background: var(--teal); }
.campaign-row.is-paused .campaign-toggle { color: var(--ink); background: var(--lime); }
.campaign-more { width: 31px; height: 31px; }

/* Table card detail and print layout */
.table-detail-modal { width: min(720px, calc(100vw - 32px)); }
.table-detail-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); align-items: center; gap: 29px; margin-top: 25px; }
.placard-preview { position: relative; display: flex; flex-direction: column; align-items: center; width: 200px; aspect-ratio: 4 / 5; margin: 0 auto; padding: 11px 10px 8px; overflow: hidden; color: #f3f5e6; background: #214b20; border-radius: 5px; box-shadow: 0 16px 30px rgba(22, 42, 22, .2); text-align: center; }
.placard-preview::before { position: absolute; inset: 0; content: ""; background: linear-gradient(180deg, rgba(66, 112, 48, .18), transparent 43%); pointer-events: none; }
.placard-preview__brand { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 5px; color: #9edb38; text-align: left; }
.placard-preview__mark { display: grid; place-items: center; width: 26px; height: 26px; color: #eaf6cc; background: transparent; border: 3px dotted #eaf6cc; border-radius: 50%; }
.placard-preview__mark svg { width: 17px; height: 17px; }
.placard-preview__brand > span:last-child { display: grid; gap: 2px; }
.placard-preview__brand strong { font: 700 14px/1 "Manrope", sans-serif; letter-spacing: -.06em; }
.placard-preview__brand b { color: #f3f5e6; font-size: 11px; line-height: 1; }
.placard-preview__qr { position: relative; z-index: 1; display: grid; place-items: center; width: 135px; height: 135px; margin: 8px 0 5px; padding: 7px; background: #94d224; border-radius: 10px; }
.placard-preview__qr .qr-pattern { grid-template-columns: repeat(21, 1fr); width: 121px; height: 121px; margin: 0; padding: 4px; gap: 1px; border: 0; background: #fff; }
.placard-preview__qr > img { display: none; width: 121px; height: 121px; object-fit: contain; background: #fff; }
.placard-preview__qr .qr-pattern span.is-finder-outer { position: relative; background: var(--ink); }
.placard-preview__qr .qr-pattern span.is-finder-outer::after { position: absolute; inset: 3px; content: ""; background: #fff; }
.placard-preview__qr .qr-pattern span.is-finder-inner { position: relative; z-index: 1; background: var(--ink); }
.placard-preview__qr .qr-pattern span.is-finder-inner::after { position: absolute; inset: 2px; content: ""; background: var(--ink); }
.placard-preview__scan { position: relative; z-index: 1; padding: 3px 8px 4px; color: #214b20; background: #94d224; font-size: 13px; line-height: 1; letter-spacing: -.06em; }
.placard-preview__motto { position: relative; z-index: 1; margin-top: 6px; color: #f3e9d3; font-size: 12px; line-height: 1; letter-spacing: -.06em; text-shadow: 1px 1px 0 #713b2c; }
.placard-preview__english { position: relative; z-index: 1; margin-top: 2px; color: #9edb38; font: 700 italic 9px/1 "Manrope", sans-serif; }
.placard-preview__table { position: absolute; z-index: 1; right: 9px; bottom: 6px; color: rgba(243, 245, 230, .58); font: 500 7px "DM Mono", monospace; }
.table-detail-info { display: grid; gap: 14px; }
.detail-status-row { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.detail-status-row strong { color: var(--teal); font-size: 11px; }
.detail-status-row strong.is-occupied { color: var(--orange-dark); }
.detail-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.detail-info-grid > div { display: grid; gap: 5px; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: 5px; }
.detail-info-grid span, .detail-route span { color: var(--muted); font-size: 9px; }
.detail-info-grid strong { font: 500 17px "DM Mono", monospace; }
.detail-route { display: grid; gap: 6px; padding: 12px; background: var(--paper-deep); border-radius: 5px; }
.detail-route code { overflow: hidden; color: var(--teal); font: 10px "DM Mono", monospace; text-overflow: ellipsis; white-space: nowrap; }
.detail-note { display: flex; gap: 6px; margin: 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.detail-note svg { flex: 0 0 auto; width: 14px; height: 14px; color: var(--teal); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.detail-actions .outline-button { flex: 1 1 auto; justify-content: center; }
.outline-button--danger { color: var(--orange-dark); }
.outline-button--danger:hover { color: var(--white); background: var(--orange-dark); border-color: var(--orange-dark); }
.receipt-modal { width: min(420px, calc(100vw - 32px)); }
.receipt-paper { margin: 20px auto 0; padding: 20px 17px 17px; color: var(--ink); background: #fff; border: 1px dashed var(--line); font-family: "DM Mono", "Noto Sans SC", monospace; }
.receipt-brand { display: grid; grid-template-columns: 25px 1fr; align-items: center; column-gap: 6px; text-align: left; }
.receipt-brand__mark { display: grid; grid-row: span 2; place-items: center; width: 25px; height: 25px; color: var(--white); background: var(--orange); border-radius: 6px 6px 6px 1px; }
.receipt-brand__mark svg { width: 14px; height: 14px; }
.receipt-brand strong { font-family: "Noto Sans SC", sans-serif; font-size: 14px; line-height: 1; }
.receipt-brand small { color: var(--muted); font-size: 7px; letter-spacing: .1em; }
.receipt-rule { height: 1px; margin: 14px 0; border-top: 1px dashed #bcbcb3; }
.receipt-meta, .receipt-total-lines { display: grid; gap: 8px; font-size: 9px; }
.receipt-meta > div, .receipt-total-lines > div { display: flex; justify-content: space-between; gap: 14px; }
.receipt-meta span, .receipt-total-lines span { color: var(--muted); }
.receipt-meta strong { overflow: hidden; font-weight: 500; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.receipt-lines { display: grid; gap: 9px; font-family: "Noto Sans SC", sans-serif; font-size: 10px; }
.receipt-line { display: flex; justify-content: space-between; gap: 12px; }
.receipt-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.receipt-line strong { color: var(--muted); font-weight: 500; }
.receipt-grand-total { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--ink); color: var(--ink) !important; font-family: "Noto Sans SC", sans-serif; font-size: 12px; }
.receipt-grand-total strong { color: var(--orange-dark); font: 500 17px "DM Mono", monospace; }
.receipt-thanks { margin: 16px 0 0; color: var(--muted); font-size: 8px; text-align: center; }
.menu-editor-modal, .table-editor-modal { width: min(560px, calc(100vw - 32px)); }
.menu-editor-form { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 23px; }
.editor-field { display: grid; gap: 6px; color: var(--muted-dark); font-size: 10px; }
.editor-field--wide { grid-column: 1 / -1; }
.editor-field input, .editor-field select { width: 100%; height: 38px; padding: 0 11px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 5px; outline: 0; font-size: 11px; }
.editor-field input:focus, .editor-field select:focus { border-color: var(--teal); box-shadow: 0 0 0 2px rgba(15, 121, 112, .12); }
.editor-label { color: var(--muted-dark); font-size: 10px; }
.image-upload { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 10px; }
.image-upload__preview { display: grid; place-items: center; width: 96px; height: 96px; overflow: hidden; color: var(--muted); background: var(--paper-deep); border: 1px dashed var(--line); border-radius: 5px; text-align: center; }
.image-upload__preview svg { width: 20px; height: 20px; margin-bottom: 4px; }
.image-upload__preview span { font-size: 8px; }
.image-upload__preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-button { justify-self: start; position: relative; }
.upload-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.image-upload > small { grid-column: 2; color: var(--muted); font-size: 9px; }
.menu-editor-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 8px; margin-top: 7px; padding-top: 16px; border-top: 1px solid var(--line); }

@media (max-width: 1000px) {
  .customer-hero { grid-template-columns: 1fr 1fr; gap: 30px; }
  .customer-hero__copy { padding-left: 0; }
  .menu-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .table-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 740px) {
  .topbar__inner { height: 63px; padding: 0 18px; }
  .open-status { display: none; }
  .section-wrap { padding-right: 18px; padding-left: 18px; }
  .customer-hero { display: flex; flex-direction: column-reverse; min-height: 0; padding: 25px 18px 35px; gap: 27px; }
  .customer-hero__visual { max-width: none; }
  .hero-image-wrap { height: 260px; border-radius: 2px 54px 2px 54px; }
  .hero-sticker { right: 16px; bottom: 15px; width: 91px; height: 91px; }
  .hero-sticker strong { font-size: 15px; }
  .hero-sticker span { font-size: 7px; }
  .customer-hero h1 { font-size: 58px; }
  .hero-subtitle { margin: 17px 0 20px; font-size: 13px; }
  .order-context { padding-top: 32px; padding-bottom: 37px; }
  .section-heading h2 { font-size: 24px; }
  .order-id { display: none; }
  .mode-option { padding: 13px 10px; gap: 8px; }
  .mode-option > svg { width: 17px; height: 17px; }
  .mode-option strong { font-size: 11px; }
  .mode-option small { font-size: 8px; }
  .benefit-strip { padding-top: 13px; padding-bottom: 13px; }
  .benefit-strip__main span:not(.benefit-icon) { font-size: 9px; }
  .benefit-strip__main strong { font-size: 12px; }
  .benefit-strip__side { display: none; }
  .menu-section { padding-top: 38px; padding-bottom: 105px; }
  .category-tabs { gap: 21px; margin-top: 23px; }
  .menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .menu-card__body { padding: 11px 10px 12px; }
  .menu-card h3 { font-size: 13px; }
  .menu-card p { min-height: 31px; margin-bottom: 11px; font-size: 10px; }
  .menu-card__price { font-size: 16px; }
  .add-button { width: 28px; height: 28px; }
  .order-dock__inner { padding: 10px 18px; gap: 9px; }
  .cart-trigger { gap: 6px; font-size: 11px; }
  .dock-total { margin-left: auto; }
  .dock-total strong { font-size: 15px; }
  .dock-checkout { min-width: 104px; padding: 12px 11px; font-size: 11px; }
  .cart-drawer { padding: 22px 18px 17px; }
  .admin-layout { display: block; }
  .admin-sidebar { position: sticky; z-index: 20; top: 63px; display: block; min-height: 0; padding: 8px 18px; background: rgba(246, 244, 239, .97); border-right: 0; border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
  .admin-sidebar__head, .admin-sidebar__foot { display: none; }
  .admin-nav { display: flex; gap: 3px; overflow-x: auto; scrollbar-width: none; }
  .admin-nav::-webkit-scrollbar { display: none; }
  .admin-nav__item { flex: 1 0 auto; justify-content: center; gap: 5px; padding: 9px 7px; font-size: 9px; white-space: nowrap; }
  .admin-nav__item svg { width: 13px; height: 13px; }
  .admin-nav__item small { display: none; }
  .admin-content { padding: 23px 18px 40px; }
  .admin-title-row { align-items: flex-start; flex-direction: column; margin: 36px 0 25px; }
  .admin-title-row h1 { font-size: 31px; }
  .admin-title-row p:last-child { line-height: 1.6; }
  .admin-summary-grid { gap: 7px; margin-bottom: 29px; }
  .summary-item { gap: 6px; padding: 12px 10px; }
  .summary-item > span { font-size: 9px; }
  .summary-item > strong { font-size: 21px; }
  .summary-item > strong small { font-size: 10px; }
  .summary-item small { font-size: 8px; }
  .delivery-settings { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 28px; padding: 17px 15px; }
  .delivery-settings__copy > p:last-child { line-height: 1.55; }
  .delivery-settings__control { display: grid; grid-template-columns: auto 96px 1fr; width: 100%; }
  .delivery-settings__control .outline-button { justify-content: center; height: 36px; }
  .setting-status { grid-column: 2 / -1; }
  .table-toolbar { align-items: flex-start; flex-direction: column; }
  .table-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .table-card { padding: 11px; }
  .table-number strong { font-size: 18px; }
  .qr-pattern { width: 88px; height: 88px; margin: 15px auto 12px; }
  .orders-toolbar, .menu-manager-toolbar { align-items: flex-start; flex-direction: column; }
  .order-row { grid-template-columns: minmax(0, 1fr) auto 30px; gap: 9px; padding: 13px 11px; }
  .order-row__main p { max-width: 210px; }
  .order-next { grid-column: 1 / -1; justify-content: center; }
  .order-print { grid-column: 3; grid-row: 1; }
  .manager-menu-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .manager-menu-card { display: block; padding: 9px; }
  .manager-menu-card > img { width: 100%; height: auto; aspect-ratio: 1.2; margin-bottom: 8px; }
  .manager-menu-card h3 { font-size: 11px; }
  .manager-menu-card p { min-height: 28px; }
  .campaign-highlight { align-items: flex-start; flex-direction: column; padding: 17px; }
  .campaign-row { grid-template-columns: 33px minmax(0, 1fr) auto; gap: 9px; padding: 11px; }
  .campaign-swatch { width: 33px; height: 33px; }
  .campaign-row__copy p { max-width: 190px; }
  .campaign-status { grid-column: 2; }
  .campaign-toggle { grid-column: 3; grid-row: 1 / span 2; }
  .campaign-more { display: none; }
  .table-detail-layout { grid-template-columns: 1fr; gap: 20px; }
  .table-detail-info { gap: 11px; }
  .detail-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .detail-actions .outline-button--danger { grid-column: 1 / -1; }
  .menu-editor-form { grid-template-columns: 1fr; }
  .editor-field--wide, .menu-editor-actions { grid-column: auto; }
  .image-upload { grid-template-columns: 88px minmax(0, 1fr); }
  .image-upload__preview { width: 88px; height: 88px; }
  .image-upload > small { grid-column: 2; }
  .menu-editor-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .menu-editor-actions button { justify-content: center; }
  .table-card__qr { width: 88px; height: 88px; margin: 15px auto 12px; }
  .table-card__qr > img { width: 88px; height: 88px; }
}
@media print {
  .topbar, .admin-sidebar, .admin-content__top, .admin-title-row .primary-button, .admin-summary-grid, .delivery-settings, .table-toolbar, .table-card__actions { display: none !important; }
  .admin-layout, .admin-content { display: block; min-height: auto; padding: 0; }
  .table-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .table-card { break-inside: avoid; }
  body.print-table * { visibility: hidden !important; }
  body.print-table #table-detail-modal, body.print-table #table-detail-modal * { visibility: visible !important; }
  body.print-table #table-detail-modal { position: absolute; top: 0; left: 0; width: 80mm; max-width: none; padding: 0; opacity: 1; transform: none; box-shadow: none; background: transparent; }
  body.print-table #table-detail-modal .modal__head, body.print-table #table-detail-modal .table-detail-info { display: none !important; }
  body.print-table #table-detail-modal .table-detail-layout { display: block; margin: 0; }
  body.print-table #table-detail-modal .placard-preview { width: 80mm; height: 100mm; margin: 0; padding: 5mm 4mm 4mm; box-shadow: none; border-radius: 0; }
  body.print-table .placard-preview__mark { width: 11mm; height: 11mm; border-width: .8mm; }
  body.print-table .placard-preview__mark svg { width: 7mm; height: 7mm; }
  body.print-table .placard-preview__brand { gap: 1.8mm; }
  body.print-table .placard-preview__brand strong { font-size: 6mm; }
  body.print-table .placard-preview__brand b { font-size: 4.5mm; }
  body.print-table .placard-preview__qr { width: 58mm; height: 58mm; margin: 4mm 0 2.5mm; padding: 3mm; border-radius: 3mm; }
  body.print-table .placard-preview__qr .qr-pattern, body.print-table .placard-preview__qr > img { width: 52mm; height: 52mm; }
  body.print-table .placard-preview__scan { padding: 1mm 3mm 1.2mm; font-size: 5.5mm; }
  body.print-table .placard-preview__motto { margin-top: 3mm; font-size: 4.2mm; }
  body.print-table .placard-preview__english { margin-top: 1mm; font-size: 3mm; }
  body.print-table .placard-preview__table { right: 4mm; bottom: 3mm; font-size: 2.4mm; }
  body.print-receipt * { visibility: hidden !important; }
  body.print-receipt #receipt-modal, body.print-receipt #receipt-modal * { visibility: visible !important; }
  body.print-receipt #receipt-modal { position: absolute; top: 0; left: 0; width: 80mm; max-width: none; padding: 0; opacity: 1; transform: none; box-shadow: none; background: transparent; }
  body.print-receipt #receipt-modal .modal__head, body.print-receipt #receipt-modal > .primary-button { display: none !important; }
  body.print-receipt #receipt-modal .receipt-paper { margin: 0; border: 0; }
}

/* ============ Admin Login Modal ============ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.55); display: flex;
  align-items: center; justify-content: center;
  backdrop-filter: blur(4px);
}
.modal-overlay.is-hidden { display: none; }
.modal--login {
  width: 380px; max-width: 92vw; padding: 36px 32px 28px;
  background: #fff; border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  text-align: center;
}
.login-brand { display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 20px; color: #1a3a2a;
}
.login-brand .brand__mark { width: 40px; height: 40px; background: #1a3a2a;
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.login-brand .brand__mark svg { width: 22px; height: 22px; }
.modal--login h2 { font-size: 20px; font-weight: 800; color: #1a1a1a; margin: 0 0 4px; }
.login-hint { font-size: 13px; color: #888; margin: 0 0 24px; }
.modal--login form { text-align: left; }
.modal--login .field-group { margin-bottom: 16px; }
.modal--login label { display: block; font-size: 12px; font-weight: 600;
  color: #555; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .5px;
}
.modal--login input[type="text"],
.modal--login input[type="password"] {
  width: 100%; padding: 12px 14px; border: 1.5px solid #ddd;
  border-radius: 10px; font-size: 15px; outline: none;
  transition: border-color .2s, box-shadow .2s;
  box-sizing: border-box; font-family: inherit;
}
.modal--login input:focus { border-color: #1a3a2a; box-shadow: 0 0 0 3px rgba(26,58,42,.12); }
.field-error { color: #d32f2f; font-size: 13px; margin-bottom: 12px; min-height: 18px; }
.field-error.is-hidden { display: none; }
.modal--login .full-width { width: 100%; padding: 14px; margin-top: 8px;
  font-size: 16px; font-weight: 700; cursor: pointer;
}
.login-footer { margin-top: 16px; font-size: 11px; color: #aaa; line-height: 1.5; }
.login-footer code { background: #f0f0f0; padding: 1px 5px; border-radius: 4px;
  font-size: 11px; color: #666;
}
#admin-logout-btn { color: #999; transition: color .2s; }
#admin-logout-btn:hover { color: #d32f2f; }
