:root {
  --ink: #241c18;
  --muted: #786f68;
  --wine: #6f1519;
  --wine-dark: #481013;
  --terracotta: #b45a20;
  --olive: #4a4d24;
  --paper: #faf8f3;
  --cream: #f1ece2;
  --line: #e4dbce;
  --card: #fff5eb;
  --peach: #f5ddd1;
  --sage: #e2ebda;
  --lavender: #eee5f3;
  --butter: #f7edca;
  --shadow: 0 12px 32px rgba(54, 30, 18, .10);
  --radius: 20px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(circle at 95% 0%, rgba(236, 193, 169, .65) 0, transparent 26rem), radial-gradient(circle at 4% 38%, rgba(207, 224, 191, .65) 0, transparent 29rem), linear-gradient(145deg, #f9eee7 0%, #f8f4e9 48%, #ece4f0 100%); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }

.app-shell { width: min(100%, 1160px); margin: 0 auto; padding: max(16px, env(safe-area-inset-top)) 16px 112px; }
.customer-shell { width: min(100%, 760px); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 20px; }
.brand-row img { display: block; width: 144px; height: auto; mix-blend-mode: multiply; }
.brand-row--staff img { width: 128px; }
.quiet-button, .language-button { border: 1px solid #ddc2b5; background: #fcebe3; color: var(--wine); border-radius: 999px; min-height: 40px; padding: 8px 13px; font-weight: 750; }
.quiet-button:hover, .language-button:hover { border-color: var(--wine); }

.hero { position: relative; overflow: hidden; padding: 26px; border-radius: 26px; color: #fffaf2; background: linear-gradient(130deg, #5c1218, #8c2821 55%, #b55d29); box-shadow: var(--shadow); }
.hero::after { content: "Eight"; position: absolute; right: -14px; bottom: -55px; color: rgba(255,255,255,.10); font-family: Georgia, serif; font-size: 10rem; font-style: italic; pointer-events: none; }
.eyebrow { position: relative; z-index: 1; margin: 0 0 7px; color: #f1c9ac; letter-spacing: .13em; text-transform: uppercase; font-size: .72rem; font-weight: 800; }
.hero h1 { position: relative; z-index: 1; max-width: 380px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 8vw, 3.45rem); font-weight: 500; line-height: 1.04; }
.hero p:not(.eyebrow) { position: relative; z-index: 1; max-width: 420px; margin: 15px 0 0; color: #f9e8dc; line-height: 1.5; }
.table-pill { position: relative; z-index: 1; display: inline-flex; margin-top: 18px; padding: 7px 11px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.28); border-radius: 999px; font-weight: 750; }

.notice { margin: 15px 0; padding: 13px 15px; border: 1px solid #e9d9b6; border-radius: 15px; background: #fff9e8; color: #604b1a; font-size: .92rem; line-height: 1.45; }
.notice--payment { border-color: #d6c8dc; background: #f8f2fb; color: #512b61; }
.current-tab { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 18px 0 12px; padding: 15px; border: 1px solid #d8c7dd; border-radius: 17px; background: rgba(240, 231, 245, .86); }
.current-tab p { margin: 4px 0 0; color: var(--muted); font-size: .86rem; }
.current-tab strong { color: var(--wine); font-size: 1.12rem; }

.category-nav { display: flex; gap: 8px; overflow-x: auto; margin: 22px -16px 16px; padding: 0 16px 6px; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav button { flex: 0 0 auto; border: 1px solid #dfc9b9; border-radius: 999px; padding: 9px 13px; background: #fff0e6; color: var(--wine); font-weight: 750; font-size: .88rem; }
.category-nav button:hover { border-color: var(--wine); background: #f9ecea; }
.menu-section { margin: 25px 0 32px; scroll-margin-top: 8px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.section-heading h2 { margin: 0; color: var(--wine); font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: 1.75rem; }
.section-heading span { color: var(--muted); font-size: .8rem; }
.product-list { display: grid; gap: 10px; }
.product-card { display: grid; grid-template-columns: 50px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 11px; text-align: left; border: 1px solid #e5d0c0; border-radius: 17px; background: linear-gradient(135deg, #fff8f0, #fce9df); color: inherit; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.product-card:hover { transform: translateY(-1px); border-color: #c8a99d; box-shadow: 0 8px 20px rgba(69, 33, 20, .06); }
.product-visual { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; color: #fff9f1; font-size: 1.35rem; background: linear-gradient(145deg, #9b411f, #5e1116); }
.tone-matcha { background: linear-gradient(145deg, #82944d, #384519); }.tone-pastry { background: linear-gradient(145deg, #d79668, #9c4827); }.tone-savory { background: linear-gradient(145deg, #a86d4b, #6c3523); }.tone-citrus { background: linear-gradient(145deg, #e4a73c, #c66b24); }.tone-soft { background: linear-gradient(145deg, #b94b44, #803237); }.tone-cocktail { background: linear-gradient(145deg, #d56454, #74213b); }.tone-sparkling { background: linear-gradient(145deg, #af9d54, #6b5b25); }.tone-rose { background: linear-gradient(145deg, #d992a2, #9f4d65); }.tone-white { background: linear-gradient(145deg, #c2bb65, #7c782e); }.tone-red { background: linear-gradient(145deg, #7f1d2c, #42131b); }
.product-name { display: block; font-weight: 780; font-size: .96rem; line-height: 1.22; }.product-detail { display: block; margin-top: 4px; color: var(--muted); font-size: .78rem; line-height: 1.3; }.product-price { color: var(--wine); font-size: 1rem; font-weight: 850; white-space: nowrap; }
.product-visual { overflow: hidden; }.product-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-allergen { margin: 3px 0 0; color: #9a6a30; font-size: .7rem; }.alcohol-mark { display: inline-flex; align-items: center; gap: 4px; margin-top: 5px; color: var(--wine); font-size: .72rem; font-weight: 750; }

.cart-bar { position: fixed; z-index: 10; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); left: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(calc(100% - 32px), 728px); margin: auto; padding: 11px 11px 11px 16px; border-radius: 18px; background: #251a17; color: #fffaf2; box-shadow: 0 15px 32px rgba(32,16,12,.24); }.cart-bar small { display: block; color: #d9cfc5; }.cart-bar strong { display: block; margin-top: 2px; }.cart-bar button, .primary-button { border: 0; border-radius: 13px; padding: 12px 15px; background: #f4e5d8; color: #611519; font-weight: 850; }.cart-bar button:hover, .primary-button:hover { background: #fff8ef; }

.modal-backdrop { position: fixed; z-index: 30; inset: 0; display: grid; align-items: end; padding: 12px; background: rgba(35,22,19,.5); }.modal { width: min(100%, 620px); max-height: min(88vh, 720px); margin: auto; overflow-y: auto; padding: 22px; border-radius: 24px; background: linear-gradient(145deg, #fff8ee, #f1e8f4); box-shadow: 0 18px 60px rgba(30,17,11,.25); }.modal h2 { margin: 0 0 6px; color: var(--wine); font-family: Georgia, serif; font-weight: 500; }.modal p { color: var(--muted); line-height: 1.45; }.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }.secondary-button { border: 1px solid #d9c8bd; border-radius: 13px; padding: 11px 14px; background: #fce9df; color: var(--wine); font-weight: 750; }.option-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 16px 0; padding: 14px; border: 1px solid #e3d3b8; border-radius: 13px; background: rgba(255, 247, 221, .78); }.cart-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }.cart-line:last-child { border-bottom: 0; }.cart-line p { margin: 4px 0 0; font-size: .8rem; }.quantity-control { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; }.quantity-control button { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #d9c8bd; border-radius: 9px; background: #f6eadf; color: var(--wine); font-weight: 850; }.tip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 18px 0; }.tip-grid button { border: 1px solid #d9c8bd; border-radius: 12px; padding: 11px 5px; background: #f9eee0; color: var(--wine); font-weight: 800; }.tip-grid button.is-selected { border-color: var(--wine); background: #f4d7d0; }.total-row { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 850; }

.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 20px; }.login-card { width: min(100%, 420px); padding: 26px; border: 1px solid #dec9bd; border-radius: 25px; background: linear-gradient(145deg, #fff5ea, #eee5f3); box-shadow: var(--shadow); }.login-card img { width: 190px; mix-blend-mode: multiply; }.login-card h1 { margin: 18px 0 5px; color: var(--wine); font-family: Georgia, serif; font-size: 2rem; font-weight: 500; }.login-card p { color: var(--muted); line-height: 1.45; }.login-card form, .form-grid { display: grid; gap: 12px; margin-top: 20px; }.field { display: grid; gap: 6px; color: var(--wine); font-size: .84rem; font-weight: 780; }.field input, .field select, .field textarea { width: 100%; border: 1px solid #d8cabf; border-radius: 11px; padding: 11px; background: #fffaf2; color: var(--ink); }.field textarea { min-height: 72px; resize: vertical; }.login-card .primary-button { width: 100%; background: var(--wine); color: #fff9f1; }.login-card .primary-button:hover { background: var(--wine-dark); }.login-error { margin: 12px 0 0; color: #a52d2d; font-weight: 700; }

.staff-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }.staff-header h1 { margin: 0; color: var(--wine); font-family: Georgia, serif; font-weight: 500; font-size: 2rem; }.staff-header p { margin: 4px 0 0; color: var(--muted); }.staff-actions { display: flex; align-items: center; gap: 8px; }.badge { display: inline-grid; min-width: 25px; place-items: center; padding: 4px 7px; border-radius: 999px; background: #f6ddd6; color: #8b231d; font-size: .76rem; font-weight: 850; }.staff-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: 18px; }.panel { padding: 18px; border: 1px solid #d9c9b3; border-radius: var(--radius); background: linear-gradient(145deg, rgba(255, 244, 231, .94), rgba(234, 242, 226, .9)); }.panel h2 { margin: 0 0 13px; color: var(--wine); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }.tab-card { margin-bottom: 12px; overflow: hidden; border: 1px solid #d9c7ba; border-radius: 16px; background: linear-gradient(135deg, #fff8ed, #eee6f3); }.tab-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 14px 10px; }.tab-card__top h3 { margin: 0; color: var(--wine); }.tab-card__top p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }.tab-card__body { padding: 0 14px 14px; }.order-line { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid #eaded0; font-size: .9rem; }.order-line small { display: block; margin-top: 3px; color: var(--muted); }.order-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 11px 0; color: var(--muted); font-size: .8rem; }.status-pill { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; background: #efe8df; color: #634737; font-size: .73rem; font-weight: 850; }.status-pill--new { background: #f8e1d7; color: #8e2f21; }.status-pill--preparing { background: #f6efc9; color: #71601c; }.status-pill--ready { background: #e0ecdc; color: #35582d; }.status-pill--payment { background: #eadff1; color: #5b3472; }.order-actions { display: flex; flex-wrap: wrap; gap: 8px; }.order-actions button { border: 1px solid #d8c7bb; border-radius: 10px; padding: 8px 10px; background: #fcefe4; color: var(--wine); font-size: .8rem; font-weight: 800; }.order-actions .action-primary { border-color: var(--wine); background: var(--wine); color: #fff; }.payment-card { padding: 13px; border: 1px dashed #b897c4; border-radius: 14px; background: #fbf1fd; }.payment-card strong { color: #5c2c75; }.muted { color: var(--muted); }.empty-state { padding: 22px; border: 1px dashed #cfc0ad; border-radius: 14px; background: rgba(255, 244, 224, .7); color: var(--muted); text-align: center; }

.admin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; }.admin-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 18px; }.summary-card { padding: 14px; border-radius: 14px; background: linear-gradient(145deg, #f8dfd4, #f5edc9); }.summary-card span { display: block; color: var(--muted); font-size: .78rem; }.summary-card strong { display: block; margin-top: 5px; color: var(--wine); font-size: 1.35rem; }.product-admin-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line); }.product-admin-row:first-of-type { border-top: 0; }.product-admin-row p { margin: 3px 0 0; color: var(--muted); font-size: .76rem; }.mini-button { border: 1px solid #d8c7bb; border-radius: 9px; padding: 7px 9px; background: #fbece2; color: var(--wine); font-size: .75rem; font-weight: 780; }.mini-button--warn { color: #9a3729; }.audit-list { max-height: 360px; overflow-y: auto; }.audit-entry { padding: 11px 0; border-top: 1px solid var(--line); }.audit-entry strong { display: block; color: var(--wine); font-size: .8rem; }.audit-entry span { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }.report-list { margin: 12px 0; }.report-list div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: .86rem; }.report-list small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }.report-heading { margin: 20px 0 0; color: var(--wine); font-family: Georgia, serif; font-size: 1.1rem; font-weight: 500; }

.toast { position: fixed; z-index: 50; top: 18px; right: 18px; max-width: min(360px, calc(100% - 36px)); padding: 12px 15px; border-radius: 13px; background: #27201c; color: #fffaf2; box-shadow: var(--shadow); font-weight: 700; }.toast--error { background: #8d2b2b; }
.qr-setup { margin-bottom: 20px; }.qr-form { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }.qr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }.qr-card { padding: 16px; border: 1px solid #d9c7ba; border-radius: 18px; background: linear-gradient(145deg, #fff4e5, #e9f0df); text-align: center; }.qr-card img { display: block; width: 100%; max-width: 180px; margin: 0 auto 10px; }.qr-card h2 { margin: 0; color: var(--wine); font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }.qr-card p { margin: 6px 0; color: var(--muted); font-size: .8rem; }.qr-card small { display: block; overflow-wrap: anywhere; color: #ab9c90; font-size: .62rem; }
@media (min-width: 768px) { .app-shell { padding-top: 28px; }.modal-backdrop { align-items: center; }.product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }.cart-bar { bottom: 22px; }.customer-shell .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 820px) { .staff-grid, .admin-layout { grid-template-columns: 1fr; }.admin-layout .panel:last-child { order: -1; }.staff-header { align-items: flex-start; }.staff-header h1 { font-size: 1.65rem; }.qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.qr-form { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .hero { padding: 22px; }.product-card { grid-template-columns: 44px 1fr auto; padding: 10px; }.product-visual { width: 44px; height: 44px; }.tip-grid { grid-template-columns: repeat(2, 1fr); } }
@media print { body { background: #fff; }.qr-shell { width: 100%; max-width: none; padding: 0; }.qr-shell .staff-header, .qr-setup { display: none; }.qr-grid { grid-template-columns: repeat(3, 1fr); gap: 8mm; }.qr-card { break-inside: avoid; border-color: #d8d1c9; box-shadow: none; }.qr-card img { width: 42mm; }.qr-card small { display: none; } }
