:root {
  color-scheme: light;
  --brand:#1c5367;
  --brand-hover:#28677a;
  --brand-line:#b9cfd4;
  --brand-dark:#163d4c;
  --brand-tint:#e8f0f2;
  --paper:#f8f7f2;
  --ink:#26363b;
  --muted:#5e6d71;
  --line:#dfe3df;
  --saffron:#efc581;
  --price:#ae4d29;
  font-family:Inter,"PingFang SC","Microsoft YaHei","Noto Sans CJK SC","Hiragino Sans GB",Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:weight;
  -webkit-text-size-adjust:100%;
}
* { box-sizing:border-box; }
body { margin:0; min-width:280px; font-size:16px; line-height:1.55; }
button,input,select { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button,a { touch-action:manipulation; }
button { border:0; background:none; color:inherit; cursor:pointer; }
button:disabled { cursor:default; }
a { color:inherit; text-decoration:none; }
h1,h2,h3,p { margin:0; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:3px solid #c48b3d; outline-offset:3px; }
button { transition:background .15s,color .15s,box-shadow .15s,transform .15s; }
button:not(:disabled):active { transform:translateY(1px); }
img { display:block; max-width:100%; }
[hidden] { display:none!important; }
.i { display:inline-block; flex-shrink:0; vertical-align:middle; }
.shell { width:min(1328px, calc(100% - clamp(44px,8.5vw,152px))); margin-inline:auto; }
.skip-link { position:fixed; z-index:200; top:-60px; left:20px; background:var(--brand); color:white; padding:10px 18px; }
.skip-link:focus { top:8px; }
.topbar { background:#fff; border-bottom:1px solid var(--line); position:relative; z-index:4; }
.header-inner { display:flex; height:76px; align-items:center; gap:clamp(28px,5.6vw,88px); }
.brand { display:inline-flex; align-items:center; gap:11px; flex-shrink:0; color:var(--brand-dark); }
.brand img { width:42px; height:42px; }
.brand span { display:grid; gap:1px; }
.brand strong { font-family:"Songti SC","STSong",SimSun,"Noto Serif CJK SC",serif; font-size:25px; letter-spacing:1.5px; font-weight:800; line-height:1.2; }
.brand small { color:#546970; font-size:.75rem; line-height:1.35; font-weight:500; letter-spacing:.04em; white-space:nowrap; }
.desktop-nav,.header-right { display:flex; align-items:center; gap:8px; }
.nav-link { display:inline-flex; min-height:40px; padding:8px 16px; align-items:center; justify-content:center; gap:8px; font-weight:550; font-size:.91rem; color:#526167; border-radius:8px; white-space:nowrap; }
.nav-link:hover,.account:hover { background:#eef2f1; }
.nav-link.active { background:var(--brand-tint); color:var(--brand); font-weight:700; }
.header-right { gap:15px; margin-left:auto; }
.header-right .nav-link { padding-inline:10px; font-size:.875rem; }
.header-divider { width:1px; height:22px; background:var(--line); }
.account { display:inline-flex; align-items:center; gap:9px; padding:6px 2px 6px 7px; border-radius:9px; font-weight:600; font-size:.875rem; max-width:170px; }
.account>span:last-child { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.avatar { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; border-radius:50%; color:#625434; background:#f0ead8; }
.main { padding-top:24px; padding-bottom:60px; min-height:calc(100dvh - 77px); outline:none; }
.hero { position:relative; isolation:isolate; overflow:hidden; border-radius:18px; color:#fff; background:#183e4b; min-height:234px; display:flex; align-items:center; }
.hero-photo { position:absolute; inset:0 0 0 33%; z-index:-3; background-color:#294747; background-image:url('/assets/hero.webp'); background-repeat:no-repeat; background-size:cover; background-position:58% 53%; }
.hero-shade { position:absolute; inset:0; z-index:-2; background:linear-gradient(90deg,#183e4b 0%,#183f4d 26%,rgba(24,63,77,.97) 34%,rgba(24,63,77,.69) 45%,rgba(24,63,77,.13) 63%,rgba(18,41,49,.02) 83%); }
.hero-shade::after {
  content:""; position:absolute; inset:0 auto 0 31%; width:24%; pointer-events:none;
  background:radial-gradient(circle at 0 112%, transparent 106px, #f4e9cb24 107px, transparent 108px 151px, #f4e9cb1e 152px, transparent 153px);
}
.hero-text { padding:29px 3.6% 30px; }
.hero-kicker { color:var(--saffron); display:flex; gap:8px; align-items:center; font-size:.82rem; font-weight:650; letter-spacing:2px; }
.hero-kicker:after { content:""; width:31px; height:1px; background:#c2ab71; margin-left:2px; }
.hero h1 { margin:9px 0 5px; font-family:"Songti SC","STSong",SimSun,"Noto Serif CJK SC","Noto Serif SC",serif; font-size:clamp(2.7rem,3.65vw,3.75rem); letter-spacing:.02em; line-height:1.25; font-weight:800; color:#fff9e9; }
.hero-text>p { font-size:.98rem; color:#e3eceb; letter-spacing:.04em; }
.hero-time { display:inline-flex; align-items:center; gap:8px; border:1px solid #aac3c66b; border-radius:6px; padding:5px 10px; margin-top:19px; font-size:.78rem; background:#1c4654c4; color:#e5eded; }
.hero-time b { font-family:Inter,Arial,sans-serif; color:#f2e4bf; letter-spacing:.04em; }
.hero-caption { position:absolute; bottom:18px; right:20px; display:flex; align-items:center; gap:7px; background:#172e32b8; padding:5px 10px; border:1px solid #ffffff38; border-radius:20px; color:#fff9e9; font-size:.75rem; backdrop-filter:blur(8px); }
.date-strip { display:flex; align-items:center; gap:clamp(16px,2.4vw,36px); background:#fff; border:1px solid var(--line); border-radius:14px; padding:12px 16px 12px 21px; margin:20px 0 28px; }
.date-heading { display:flex; align-items:center; gap:12px; border-right:1px solid var(--line); padding-right:clamp(16px,2.1vw,36px); flex:none; }
.calendar-box { display:grid; place-items:center; width:41px; height:44px; background:#edf2f1; border-radius:9px; color:#496771; }
.date-heading>span:last-child { display:grid; gap:2px; }
.date-heading b { color:#33484f; font-size:.94rem; letter-spacing:.02em; }
.date-heading small { font-size:.77rem; color:#647477; }
.date-scroll { display:flex; align-items:stretch; gap:8px; flex:1; min-width:0; overflow-x:auto; scrollbar-width:none; }
.date-scroll::-webkit-scrollbar { display:none; }
.date-button { display:flex; flex:1; align-items:center; justify-content:center; flex-direction:column; gap:0; min-width:60px; height:53px; color:#526369; border-radius:8px; line-height:1.5; }
.date-button strong { font-size:.88rem; font-weight:600; }
.date-button>span { font-family:Inter,Arial,sans-serif; font-size:.78rem; color:#647477; }
.date-button:hover { background:#eff3f2; }
.date-button.selected { background:var(--brand); color:#fff; box-shadow:inset 0 1px 0 #ffffff10; }
.date-button.selected>span { color:#e3f0f3; }
.order-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(258px,24.1%); gap:clamp(20px,2vw,30px); align-items:start; }
.menu-area { min-width:0; }
.section-heading,.section-heading>div,.cart-title,.cart-heading,.meal-bottom,.price-stock,.total-row,.block-heading,.order-card-head,.order-card-head h3,.order-footer,.order-footer>div,.detail-row,.detail-foot,.confirm-total { display:flex; align-items:center; }
.section-heading,.cart-title,.meal-bottom,.total-row,.block-heading,.order-card-head,.order-footer,.detail-row,.detail-foot,.confirm-total { justify-content:space-between; }
.section-heading { gap:12px; min-height:36px; margin-bottom:15px; }
.section-heading>div { gap:11px; flex-wrap:wrap; }
.heading-mark { height:23px; width:4px; align-self:center; border-radius:4px; background:var(--brand); }
.section-heading h2 { font-size:1.6rem; font-weight:750; line-height:1.35; letter-spacing:.035em; }
.section-heading>small { font-size:.82rem; color:#667578; white-space:nowrap; }
.status-pill,.count-chip { display:inline-flex; align-items:center; justify-content:center; gap:6px; font-size:.76rem; color:#6c7064; background:#edeee6; padding:3px 9px; line-height:1.6; border-radius:20px; font-weight:550; }
.status-pill.open { color:#3f6a40; background:#e5eedc; }
.status-pill i { height:6px; width:6px; border-radius:50%; background:currentColor; }
.filters { display:flex; align-items:center; gap:7px; flex-wrap:wrap; margin-bottom:16px; }
.filter { border:1px solid var(--line); border-radius:8px; display:inline-flex; justify-content:center; align-items:center; gap:7px; padding:7px 14px; background:#fff; color:#53656b; font-size:.875rem; line-height:1.45; white-space:nowrap; min-height:35px; }
.filter:hover { background:#eff4f4; border-color:var(--brand-line); }
.filter.active { background:var(--brand-tint); color:var(--brand); border-color:var(--brand-line); font-weight:650; }
.meal-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:17px; align-items:stretch; }
.meal-card { overflow:hidden; min-width:0; background:white; border:1px solid var(--line); border-radius:13px; box-shadow:0 2px 5px #1b3f4d07; }
.meal-photo { display:block; padding:0; position:relative; width:100%; overflow:hidden; background:#e7e7d9; aspect-ratio:1.74; }
.meal-photo img { width:100%; height:100%; object-fit:cover; object-position:50% 53%; transition:transform .35s ease; }
@media (hover:hover) { .meal-photo:hover img { transform:scale(1.035); } .meal-title:hover { color:var(--brand); } }
.food-tag { position:absolute; left:10px; top:10px; display:inline-flex; gap:4px; align-items:center; min-height:22px; font-size:.73rem; font-weight:650; line-height:1.4; padding:3px 8px; border-radius:5px; box-shadow:0 1px 3px #47331914; }
.food-tag.gold { color:#654018; background:#f6d699; }
.food-tag.red { color:#8c412a; background:#fce6d6; }
.food-tag.ivory { color:#455840; background:#f3f1e2; }
.meal-body { padding:13px 14px 14px; }
.meal-title { display:block; text-align:left; padding:0; font-size:1.08rem; line-height:1.45; font-weight:750; letter-spacing:.01em; overflow-wrap:anywhere; }
.ingredients { line-height:1.55; color:#657275; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:.795rem; margin-top:3px; }
.meal-bottom { margin-top:14px; min-height:32px; gap:5px; }
.price-stock { gap:8px; flex-wrap:wrap; row-gap:3px; }
.price { color:var(--price); font:700 1.48rem/1.2 Inter,Arial,sans-serif; white-space:nowrap; letter-spacing:-.04em; }
.price small { font-size:.88rem; margin-right:3px; }
.stock { font-size:.75rem; color:#657275; white-space:nowrap; }
.add-button,.step-add { display:inline-grid; place-items:center; background:var(--brand); color:white; }
.add-button { position:relative; width:31px; height:31px; flex-shrink:0; padding:0; border-radius:9px; }
.add-button:after { content:""; position:absolute; inset:-6px; }
.add-button:hover:not(:disabled),.primary:hover:not(:disabled),.step-add:hover:not(:disabled) { background:var(--brand-hover); }
.add-button:disabled,.step-add:disabled { background:#e1e8e8; color:#657477; }
.stepper { display:inline-flex; align-items:center; gap:4px; }
.stepper button { display:grid; place-items:center; position:relative; width:28px; height:28px; padding:0; border-radius:7px; }
.stepper button:first-child { color:var(--brand); border:1px solid var(--brand-line); background:white; }
.stepper b { font:600 .875rem/1.3 Inter,Arial,sans-serif; min-width:12px; text-align:center; }
.side { display:flex; flex-direction:column; gap:16px; position:sticky; top:16px; min-width:0; }
.cart-panel,.pickup-guide { background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.cart-title { border-bottom:1px solid var(--line); padding:17px 20px; }
.cart-heading { gap:9px; color:var(--brand); }
.cart-heading h2 { font-size:1.12rem; letter-spacing:.03em; color:var(--ink); }
.count-chip { background:var(--brand-tint); color:#456571; font-size:.77rem; }
.empty-tray { display:flex; flex-direction:column; align-items:center; padding:22px 12px 23px; text-align:center; }
.tray-art { width:75px; height:65px; display:grid; place-items:center; position:relative; color:#698089; margin:0 0 10px; }
.tray-art:before { content:""; position:absolute; width:61px; height:61px; background:#f3f1df; border-radius:50%; left:4px; top:1px; }
.tray-art:after,.tray-art i { content:""; position:absolute; background:#c9b474; clip-path:polygon(50% 0,62% 38%,100% 50%,62% 61%,50% 100%,38% 61%,0 50%,38% 38%); width:12px; height:12px; right:0; top:7px; }
.tray-art i { width:7px; height:7px; right:9px; top:0; }
.tray-art .i { position:relative; stroke-width:1.1; transform:rotate(-5deg); }
.empty-tray b { font-size:.92rem; font-weight:600; color:#42565d; }
.empty-tray p { font-size:.79rem; color:#687676; margin-top:3px; }
.tray-checkout { padding:15px 19px 19px; border-top:1px dashed var(--line); }
.total-row { color:#57666b; font-size:.88rem; margin-bottom:12px; }
.total-row strong { font:700 1.5rem/1.3 Inter,Arial,sans-serif; color:var(--brand-dark); letter-spacing:-.025em; }
.total-row strong small { font-size:.9rem; margin-right:3px; }
.primary,.secondary,.danger { display:inline-flex; justify-content:center; align-items:center; gap:8px; min-height:43px; padding:10px 18px; border-radius:8px; font-size:.92rem; font-weight:650; line-height:1.5; }
.primary { background:var(--brand); color:white; }
.primary:disabled { background:#dfe7e7; color:#566c72; }
.secondary { background:#fff; color:var(--brand); border:1px solid var(--brand-line); }
.secondary:hover { background:#edf3f3; }
.small { min-height:35px; font-size:.84rem; padding:6px 12px; }
.wide { width:100%; }
.pickup-guide { background:#edf2f1; border-color:#d9e3e1; padding:16px 19px; }
.pickup-guide h3 { display:flex; align-items:center; gap:8px; margin-bottom:12px; color:#31525e; font-size:.98rem; }
.pickup-guide>div { display:flex; align-items:flex-start; gap:8px; color:#566c70; margin-top:8px; }
.pickup-guide>div .i { margin-top:3px; }
.pickup-guide>div>span { display:flex; flex-wrap:wrap; gap:2px 9px; font-size:.8rem; }
.pickup-guide b { font-weight:550; color:#38535d; }
.pickup-guide>p { margin-top:12px; padding-top:11px; border-top:1px solid #d2dcdb; color:#5b7073; font-size:.78rem; line-height:1.6; }
.tray-lines { padding:2px 19px 8px; max-height: min(320px, 43vh); overflow:auto; }
.tray-line { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:13px 0 11px; border-bottom:1px solid #e9edeb; }
.tray-line:last-child { border:0; }
.tray-line>span { display:grid; gap:3px; min-width:0; }
.tray-line>span b { font-size:.88rem; overflow-wrap:anywhere; }
.tray-line>span small { font-size:.77rem; color:var(--muted); }
.compact button { width:25px; height:25px; }
.bottom-nav,.floating-tray { display:none; }
.page-loading { min-height:250px; display:grid; place-items:center; color:var(--muted); }
.dialog-open { overflow:hidden; }
.dialog { color:var(--ink); padding:0; border:0; border-radius:18px; width:min(438px,calc(100% - 32px)); max-height:min(88dvh,850px); background:white; overflow:auto; box-shadow:0 18px 90px #16313b38; }
.dialog::backdrop { background:#132a3379; backdrop-filter:blur(3px); }
.dialog-head { display:flex; justify-content:space-between; align-items:center; gap:12px; position:sticky; top:0; z-index:2; background:#fffffffa; border-bottom:1px solid var(--line); padding:15px 20px; }
.dialog-head h2 { font-size:1.13rem; line-height:1.4; }
.icon-button { display:inline-grid; place-items:center; width:34px; height:34px; padding:0; border-radius:50%; color:#50656b; background:#eef2f1; flex-shrink:0; }
.icon-button:hover { background:#e0e9e9; }
.modal-pad,.detail-pad { padding:21px; }
.form-stack { display:flex; flex-direction:column; gap:15px; }
.form-stack>label,.form-pair>label,.date-control label { display:flex; flex-direction:column; gap:6px; font-size:.875rem; font-weight:650; color:#41545b; }
input,select { width:100%; max-width:100%; min-width:0; background:#fff; border:1px solid #c6d1d3; border-radius:8px; min-height:44px; color:var(--ink); padding:9px 11px; font-size:1rem; font-weight:400; }
input::placeholder { color:#6b787d; }
select { appearance:none; padding-right:32px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%234b6771' stroke-width='1.7'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-size:16px; background-repeat:no-repeat; background-position:right 10px center; }
.form-stack>p,.modal-pad>p { font-size:.91rem; color:var(--muted); line-height:1.7; }
.form-error,.form-stack .form-error { color:#993e2c; background:#fbede6; padding:10px 12px; border-radius:7px; font-size:.85rem; }
.form-pair,.form-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.form-pair>* { min-width:0; }
.form-stack .checkbox { flex-direction:row; align-items:center; gap:8px; }
.checkbox input { width:18px; height:18px; min-height:0; accent-color:var(--brand); }
.danger { background:#9d4a36; color:white; }
.switch-tabs { display:grid; grid-template-columns:1fr 1fr; gap:3px; background:#eef2f2; padding:4px; border-radius:9px; margin:0 0 18px; }
.switch-tabs button { padding:8px; border-radius:6px; font-size:.88rem; color:var(--muted); }
.switch-tabs button.active { background:#fff; color:var(--brand); box-shadow:0 1px 4px #22445416; font-weight:650; }
.detail-photo { width:100%; aspect-ratio:1.9; object-fit:cover; }
.detail-chips,.ticket-dishes { display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.detail-chips span { display:inline-flex; gap:6px; align-items:center; color:var(--brand); border-radius:5px; background:var(--brand-tint); padding:4px 9px; font-size:.8rem; }
.detail-pad h3 { font-size:1rem; margin:15px 0 4px; }
.detail-pad>p { font-size:.92rem; color:#51666c; margin-bottom:14px; overflow-wrap:anywhere; }
.detail-row { font-size:.85rem; gap:12px; padding:7px 0; color:var(--muted); }
.detail-row b { color:var(--ink); font-weight:550; text-align:right; }
.detail-foot,.confirm-total { border-top:1px dashed var(--line); margin-top:12px; padding-top:15px; }
.confirm-date,.profile-line { display:flex; align-items:center; gap:12px; margin-bottom:17px; }
.confirm-date { padding:14px; background:var(--brand-tint); border-radius:9px; color:var(--brand); }
.confirm-date span,.confirm-lines,.profile-line>div { display:grid; gap:4px; }
.confirm-date small { color:#566e76; font-size:.8rem; }
.confirm-lines { padding:5px 0 12px; gap:10px; }
.confirm-lines>div,.order-lines>div { display:flex; align-items:center; justify-content:space-between; gap:12px; font-size:.91rem; }
.confirm-lines small,.order-lines small,.confirm-total>span { color:var(--muted); }
.confirm-total { margin-bottom:16px; font-size:.88rem; }
.confirm-total strong { font:700 1.45rem/1.3 Inter,Arial,sans-serif; color:var(--price); }
.profile-avatar,.intro-symbol,.large-symbol,.empty-symbol { display:grid; place-items:center; color:var(--brand); background:var(--brand-tint); flex-shrink:0; }
.profile-avatar { width:49px; height:49px; border-radius:50%; font-size:1.2rem; }
.muted,.profile-line p,.field-hint { color:var(--muted); }
.profile-line p,.field-hint { font-size:.85rem; }
.ticket-content { text-align:center; padding:20px 24px 24px; }
.ticket-issuer { display:flex; align-items:center; justify-content:center; gap:8px; margin:0 auto 12px; color:var(--brand); font-size:.82rem; font-weight:600; }
.ticket-content h3 { font-size:1.3rem; }
.ticket-content>p,.ticket-content>small { font-size:.81rem; color:var(--muted); }
.qr-code { width:208px; height:208px; margin:17px auto 9px; padding:4px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.pickup-number { display:block; font:700 1.65rem/1.5 ui-monospace,monospace; letter-spacing:2px; color:var(--brand); }
.ticket-dishes { justify-content:center; margin:15px 0 8px; }
.ticket-dishes span { font-size:.79rem; background:#f1f4f2; border-radius:5px; padding:4px 7px; }
.ticket-caption { font-size:.8rem; color:var(--muted); display:flex; align-items:center; justify-content:center; gap:6px; margin:13px 0 18px; }
.toast { position:fixed; left:50%; bottom:24px; transform:translate(-50%,13px); max-width:min(90vw,520px); width:max-content; padding:10px 18px; border-radius:9px; opacity:0; pointer-events:none; z-index:100; font-size:.88rem; background:var(--brand-dark); color:#fff; box-shadow:0 6px 20px #1c3d4926; transition:.18s; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.page-intro { display:flex; align-items:center; gap:16px; margin:12px 0 26px; }
.page-intro h1,.staff-login h1 { font-size:1.9rem; letter-spacing:.03em; }
.page-intro p,.staff-login>p { font-size:.91rem; color:var(--muted); margin-top:4px; }
.intro-symbol,.large-symbol { width:55px; height:55px; border-radius:14px; }
.empty-state { padding:42px 18px; background:#fff; border:1px solid var(--line); border-radius:14px; text-align:center; grid-column:1/-1; }
.empty-symbol { width:68px; height:68px; margin:0 auto 13px; border-radius:50%; }
.empty-state h3 { font-size:1.07rem; }
.empty-state p { margin:6px 0 16px; font-size:.89rem; color:var(--muted); }
.orders-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.order-card,.staff-block,.staff-login { border:1px solid var(--line); border-radius:14px; background:#fff; overflow:hidden; }
.order-card { padding:19px 21px; }
.order-card-head { gap:8px; padding-bottom:13px; border-bottom:1px solid var(--line); }
.order-card-head h3 { gap:8px; font-size:1.04rem; }
.order-lines { display:grid; gap:8px; margin:14px 0; }
.order-footer { border-top:1px dashed var(--line); padding-top:13px; gap:8px; }
.order-footer>div { gap:6px; }
.order-footer small { color:var(--muted); }
.text-btn,.back-link { color:var(--brand); font-size:.85rem; }
.text-btn { display:inline-flex; align-items:center; gap:5px; padding:6px 8px; border-radius:6px; }
.text-btn:hover,.back-link:hover { background:#edf2f2; }
.login-wrap { min-height:60vh; display:grid; place-items:center; padding:28px 0; }
.staff-login { width:min(100%,400px); padding:28px; text-align:center; }
.large-symbol { margin:0 auto 12px; width:65px; height:65px; background:var(--brand-tint); }
.staff-login form { text-align:left; margin:23px 0 15px; }
.staff-intro .secondary { margin-left:auto; }
.staff-tabs { display:flex; width:max-content; max-width:100%; overflow:auto; gap:4px; padding:4px; background:#e6ecec; border-radius:9px; margin-bottom:20px; }
.staff-tabs button { display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:9px 16px; font-size:.875rem; border-radius:6px; color:#4f676f; white-space:nowrap; }
.staff-tabs button.active { background:white; color:var(--brand); box-shadow:0 1px 4px #223f4916; font-weight:650; }
.date-control { display:flex; align-items:center; gap:10px; margin:12px 0 17px; }
.date-control input { width:auto; min-height:35px; padding:5px 9px; font-size:.88rem; }
.metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:13px; margin-bottom:18px; }
.metric { background:white; border:1px solid var(--line); border-radius:12px; padding:17px 20px; }
.metric>span { display:flex; align-items:center; gap:8px; font-size:.88rem; color:#516b73; }
.metric>b { display:block; margin-top:8px; font:700 2rem/1.2 Inter,Arial,sans-serif; }
.metric small { font-size:.8rem; font-weight:500; margin-left:5px; }
.metric.dark { background:var(--brand); color:white; border-color:var(--brand); }
.metric.dark>span { color:#e1eef0; }
.staff-block { margin-bottom:17px; }
.block-heading { gap:8px; padding:14px 18px; border-bottom:1px solid var(--line); }
.block-heading h2 { font-size:1.05rem; }
.block-heading span,.block-heading small { color:var(--muted); font-size:.82rem; font-weight:450; }
.block-empty,.staff-orders { padding:18px; font-size:.9rem; }
.table-wrap { overflow:auto; }
table { width:100%; border-collapse:collapse; font-size:.9rem; }
td,th { text-align:left; padding:10px 16px; border-bottom:1px solid #e8edeb; }
th { background:#f1f5f4; color:#50666d; font-size:.84rem; }
tr:last-child td { border-bottom:0; }
.staff-orders>div,.managed-meals article { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
.staff-orders>div:first-child { padding-top:0; }
.staff-orders>div:last-child,.managed-meals article:last-child { border-bottom:0; }
.staff-orders>div { justify-content:space-between; }
.staff-orders>div>span:first-child { display:grid; gap:3px; }
.staff-orders small,.managed-meals small,.managed-meals p { font-size:.81rem; color:var(--muted); }
.managed-meals { padding:0 18px; }
.managed-meals img { width:75px; height:58px; object-fit:cover; border-radius:8px; }
.managed-meals .icon-button { margin-left:auto; }
.settings-block { max-width:650px; }
.settings-block form { padding:20px; }
.settings-block .primary { align-self:flex-start; }
.scan-layout { display:grid; grid-template-columns:1fr 1fr; gap:16px; align-items:start; }
.scan-body { padding:17px 18px; }
.scan-body>p { margin-top:10px; }
.camera-box { height:235px; background:#e6edef; position:relative; display:grid; place-items:center; overflow:hidden; }
.camera-box video { width:100%; height:100%; object-fit:cover; opacity:0; position:absolute; }
.camera-box.running video { opacity:1; }
.camera-box.running .camera-placeholder { display:none; }
.camera-placeholder { display:grid; place-items:center; color:#647e87; }
.scan-frame { width:149px; height:149px; border:2px solid #6b919e99; border-radius:13px; position:absolute; z-index:1; }
.scan-feedback { border-radius:8px; margin:0 18px 18px; padding:14px; font-size:.9rem; overflow-wrap:anywhere; }
.scan-feedback p { margin:5px 0; }
.scan-feedback b { display:flex; align-items:center; gap:6px; }
.scan-feedback.success { background:#e3efda; color:#335934; }
.scan-feedback.error { background:#f8e9e1; color:#8e402e; }

@media (min-width:1500px) {
  .hero { min-height:252px; }
  .meal-photo { aspect-ratio:1.8; }
}
@media (max-width:1150px) {
  .shell { width:calc(100% - 56px); }
  .header-inner { gap:32px; }
  .meal-grid { gap:11px; }
  .order-layout { gap:18px; grid-template-columns:minmax(0,1fr) 248px; }
  .meal-body { padding:11px; }
  .meal-bottom { gap:3px; }
  .meal-title { font-size:1rem; }
  .price-stock { gap:6px; }
  .stock { font-size:.73rem; }
  .cart-title,.tray-checkout { padding-inline:16px; }
}
@media (max-width:960px) {
  .order-layout { grid-template-columns:minmax(0,1fr) 237px; }
  .meal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px; }
  .date-strip { gap:14px; padding-inline:13px; }
  .date-heading { gap:8px; padding-right:14px; }
  .calendar-box { width:33px; height:38px; }
  .date-scroll { gap:3px; }
  .date-button { min-width:52px; }
  .header-inner { gap:22px; }
  .nav-link { padding-inline:11px; }
  .header-right { gap:8px; }
}
@media (max-width:760px) {
  .shell { width:calc(100% - 32px); }
  .desktop-nav,.header-right .nav-link,.header-divider { display:none; }
  .header-inner { height:62px; gap:12px; }
  .brand { gap:9px; }
  .brand img { width:36px; height:36px; }
  .brand strong { font-size:21px; }
  .brand small { letter-spacing:0; }
  .account { font-size:.83rem; }
  .main { padding-top:14px; padding-bottom:calc(89px + env(safe-area-inset-bottom)); }
  .has-tray .main { padding-bottom:calc(153px + env(safe-area-inset-bottom)); }
  .hero { min-height:198px; border-radius:14px; }
  .hero-text { padding:22px; }
  .hero-shade::after { left:47%; width:24%; opacity:.5; }
  .hero h1 { font-size:clamp(2rem,6.3vw,2.8rem); }
  .hero-text>p { font-size:.85rem; }
  .hero-photo { left:29%; background-position:62% 52%; }
  .hero-shade { background:linear-gradient(90deg,#183e4b 0%,#183e4bfa 22%,#183f4dde 37%,#183f4d82 56%,#183f4d0f 82%); }
  .hero-kicker { font-size:.74rem; }
  .hero-caption { right:10px; bottom:10px; font-size:.67rem; padding:3px 7px; }
  .hero-time { margin-top:14px; font-size:.73rem; padding:4px 8px; }
  .date-strip { display:block; margin:13px 0 20px; padding:10px; border-radius:11px; }
  .date-heading { border:0; padding:0 3px; margin-bottom:7px; gap:6px; }
  .date-heading>span:last-child { display:flex; align-items:center; gap:9px; }
  .date-heading b { font-size:.83rem; }
  .date-heading small { font-size:.74rem; }
  .calendar-box { width:auto; height:auto; background:transparent; }
  .calendar-box svg { width:15px; height:15px; }
  .date-button { height:47px; min-width:52px; }
  .date-button strong { font-size:.82rem; }
  .date-button>span { font-size:.73rem; }
  .order-layout { display:block; }
  .side { position:static; margin-top:16px; }
  .side .cart-panel { display:none; }
  .section-heading { margin-bottom:12px; }
  .section-heading h2 { font-size:1.35rem; }
  .section-heading>div { gap:8px; }
  .heading-mark { height:20px; }
  .section-heading>small { font-size:.76rem; }
  .filters { gap:6px; margin-bottom:13px; }
  .filter { font-size:.82rem; padding:6px 11px; min-height:34px; gap:5px; }
  .meal-grid { gap:12px; }
  .meal-photo { aspect-ratio:1.65; }
  .meal-title { font-size:1rem; }
  .meal-body { padding:11px 12px; }
  .meal-bottom { margin-top:12px; }
  .stock { font-size:.73rem; }
  .ingredients { font-size:.76rem; }
  .bottom-nav { display:flex; align-items:stretch; justify-content:space-around; position:fixed; z-index:8; bottom:0; left:0; right:0; background:#fffffff7; border-top:1px solid var(--line); padding:5px 6px calc(4px + env(safe-area-inset-bottom)); backdrop-filter:blur(9px); }
  .bottom-nav .nav-link { flex:1; flex-direction:column; gap:3px; font-size:.72rem; line-height:1.4; min-height:46px; padding:3px; color:#617176; }
  .bottom-nav .nav-link.active { color:var(--brand); background:transparent; }
  .bottom-nav .nav-link.active .i { stroke-width:2.1; }
  .floating-tray { left:16px; right:16px; bottom:calc(65px + env(safe-area-inset-bottom)); position:fixed; z-index:7; display:flex; align-items:center; gap:12px; background:var(--brand-dark); color:white; border-radius:13px; min-height:54px; padding:8px 13px; box-shadow:0 6px 16px #1637462b; font-size:.84rem; }
  .floating-tray>strong { margin-left:auto; padding:6px 12px; border-radius:7px; background:#efcf96; color:#3d3724; }
  .floating-tray b { font:700 1.15rem/1.3 Inter,Arial,sans-serif; }
  .mobile-tray-icon { position:relative; margin-right:3px; }
  .mobile-tray-icon i { font:600 10px/17px Arial,sans-serif; background:#f3dab0; color:#333c39; min-width:17px; height:17px; border-radius:50%; position:absolute; top:-7px; right:-7px; }
  .toast { bottom:calc(76px + env(safe-area-inset-bottom)); }
  .has-tray .toast { bottom:calc(129px + env(safe-area-inset-bottom)); }
  .orders-grid { grid-template-columns:1fr; }
  .page-intro { margin:8px 0 18px; gap:11px; }
  .page-intro h1,.staff-login h1 { font-size:1.5rem; }
  .page-intro p { font-size:.82rem; }
  .intro-symbol { width:44px; height:44px; border-radius:11px; }
  .staff-tabs { width:100%; gap:2px; }
  .staff-tabs button { flex:1; font-size:.79rem; padding:7px 6px; gap:4px; }
  .scan-layout { grid-template-columns:1fr; gap:0; }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
  .metric { padding:12px 15px; }
  .staff-intro { flex-wrap:wrap; }
  .staff-intro>div { flex:1; }
  .staff-intro .secondary { padding:6px 8px; }
  .staff-intro .secondary .i { display:none; }
  .staff-login { padding:23px; }
  .dialog { max-height:89dvh; }
  .tray-dialog { margin:auto 0 0; width:100%; max-width:100%; border-radius:18px 18px 0 0; padding-bottom:env(safe-area-inset-bottom); }
  .tray-dialog .tray-lines { max-height:48dvh; }
  .stepper button:after { content:""; position:absolute; inset:-7px -3px; }
}
@media (max-width:450px) {
  .shell { width:calc(100% - 26px); }
  .hero { min-height:180px; }
  .hero-text { padding:19px 16px 21px; }
  .hero h1 { font-size:clamp(1.85rem,7.4vw,2.1rem); margin:8px 0 4px; }
  .hero-photo { left:23%; background-position:65% 50%; }
  .hero-text>p { font-size:.77rem; }
  .hero-caption { display:none; }
  .hero-time { font-size:.69rem; gap:5px; }
  .hero-time .i { width:13px; height:13px; }
  .meal-grid { gap:10px; }
  .meal-card { border-radius:10px; }
  .meal-body { padding:9px 9px 10px; }
  .meal-title { font-size:.96rem; }
  .meal-photo { aspect-ratio:1.5; }
  .price { font-size:1.27rem; }
  .price-stock { gap:5px; }
  .price small { font-size:.73rem; margin-right:2px; }
  .ingredients,.stock { font-size:.72rem; }
  .food-tag { left:7px; top:7px; padding:2px 6px; min-height:20px; font-size:.68rem; }
  .add-button { width:29px; height:29px; border-radius:8px; }
  .stepper { gap:2px; }
  .stepper button { width:25px; height:27px; }
  .meal-bottom:has(.stepper) .stock { display:none; }
  .date-button { min-width:51px; }
  .date-scroll { gap:3px; }
  .filter { padding-inline:10px; }
  .section-heading .status-pill { font-size:.68rem; padding:3px 7px; }
  .order-card { padding:15px; }
  .staff-tabs .i { width:15px; height:15px; }
  .block-heading { padding:13px; }
  td,th { font-size:.8rem; padding:9px; }
  .modal-pad,.detail-pad,.ticket-content { padding:17px; }
}
@media (max-width:350px) {
  .shell { width:calc(100% - 20px); }
  .meal-body { padding:8px; }
  .stock { display:none; }
  .filter { padding-inline:8px; }
  .section-heading>div { gap:5px; }
  .staff-tabs button .i { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after { scroll-behavior:auto!important; transition:none!important; animation:none!important; }
}
