
:root {
  color-scheme: light;
  --bg:#f7f6f1; --paper:#fffefa; --ink:#272e38; --muted:#586374;
  --line:#e2e2da; --accent:#3e5b7b; --dark:#2d4663; --soft:#e8eef4;
  --danger:#923e3d; --radius:16px;
  font:15px/1.55 Inter, "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color:var(--ink); background:var(--bg);
}
* { box-sizing:border-box }
body { margin:0; min-height:100vh }
a { color:inherit; text-decoration:none }
button,input,select,textarea { font:inherit; color:inherit }
button { cursor:pointer }
img { max-width:100%; display:block }
h1,h2,h3,p { margin:0 }
h1 { font-size:clamp(26px,5vw,42px); line-height:1.18; letter-spacing:-.04em }
h2 { font-size:22px; line-height:1.3; letter-spacing:-.02em }
h3 { font-size:17px }
small,.muted { color:var(--muted) }
small { font-size:12px }
[hidden] { display:none!important }
:focus-visible { outline:3px solid #5b7797; outline-offset:3px }
.skip { position:absolute; top:-80px; left:1rem; z-index:20; background:#fff; padding:10px }
.skip:focus { top:8px }
.shell { width:min(1080px,calc(100% - 48px)); margin-inline:auto }
.site-header { background:var(--paper); border-bottom:1px solid var(--line) }
.header-inner { min-height:68px; display:flex; align-items:center; justify-content:space-between; gap:12px }
.brand { display:inline-flex; align-items:center; gap:10px; font-weight:750; font-size:19px; flex-shrink:0 }
.mark { display:grid; place-items:center; width:34px; height:34px; background:var(--accent); border-radius:10px 10px 10px 4px; color:#fff; font-size:18px }
nav { display:flex; align-items:center; gap:6px; flex-wrap:wrap }
nav a,.nav-button { padding:7px 12px; border-radius:8px; color:var(--muted); font-weight:650; font-size:14px; border:0; background:none }
nav a:hover,.nav-button:hover,nav a[aria-current] { color:var(--accent); background:var(--soft) }
main.shell { padding-block:34px 56px; min-height:74vh }
.footer { display:flex; justify-content:space-between; gap:12px; border-top:1px solid var(--line); padding-block:22px 26px; color:var(--muted); font-size:13px }
.footer-actions { display:grid; min-width:0; gap:8px; justify-items:end }
.footer-links a { display:inline-flex; align-items:center; min-height:44px }
.footer a:hover { color:var(--accent); text-decoration:underline }
.hero {
  border:1px solid var(--line);
  border-radius:22px;
  background:#f1f0ea;
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:20px;
  padding:32px clamp(22px,5vw,48px);
}
.hero-copy { min-width:0; display:grid; gap:20px }
.hero h1 { color:var(--ink); font-size:clamp(28px,5.2vw,52px); line-height:1.18; letter-spacing:-.055em }
.hero-fee {
  display:grid; gap:3px; padding:12px 16px; border:1px solid var(--line);
  border-radius:12px; min-width:max-content; background:var(--paper); color:var(--dark);
}
.hero-fee strong { font-size:25px; line-height:1.15; font-variant-numeric:tabular-nums }
.hero-fee span { font-size:12px; color:var(--muted) }
.stack { display:grid; gap:16px }
.stack-lg { display:grid; gap:26px }
.stack-sm { display:grid; gap:8px }
.row { display:flex; align-items:center; gap:10px; flex-wrap:wrap }
.between { justify-content:space-between }
.top { align-items:flex-start }
.title { display:grid; gap:7px }
.title + * { margin-top:0 }
.tag { display:inline-flex; width:max-content; max-width:100%; align-items:center; padding:4px 9px; border-radius:50px; background:var(--soft); color:var(--accent); font-size:12px; font-weight:650 }
.tag.warm { background:#eeece3; color:#625b46 }
.tag.gray { background:#eeeee9; color:#5a605b }
.tag.warn { background:#f6eaea; color:var(--danger) }
.btn { display:inline-flex; justify-content:center; align-items:center; gap:6px; min-height:40px; border:1px solid var(--line); border-radius:10px; background:var(--paper); padding:7px 14px; font-weight:650; font-size:14px; text-align:center }
.btn:hover { border-color:#a3b3c4; background:#f0f3f6 }
.btn.primary { background:var(--accent); color:#fff; border-color:var(--accent) }
.btn.primary:hover { background:var(--dark) }
.btn.danger { color:var(--danger) }
.btn:disabled { opacity:.5; cursor:not-allowed }
.btn.tiny { min-height:34px; padding:5px 10px; font-size:13px }
.filter { border-radius:30px; min-height:35px; padding:6px 13px }
.filter.on { background:var(--accent); border-color:var(--accent); color:white }
.grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px }
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); gap:12px }
.stat { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:15px 17px; display:grid; align-content:start; gap:4px }
.stat strong { color:var(--dark); font-size:24px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere }
.card { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:17px; min-width:0 }
.section { background:var(--paper); border:1px solid var(--line); border-radius:var(--radius); padding:clamp(15px,3vw,23px); min-width:0 }
.shop-card { display:grid; align-content:space-between; gap:12px; transition:border-color .16s ease,box-shadow .16s ease }
.shop-card:hover { border-color:#a3b3c4; box-shadow:0 6px 18px #354a6512 }
.shop-summary { display:flex; align-items:center; gap:14px; min-width:0 }
.shop-title { flex:1; min-width:0; overflow-wrap:anywhere }
.shop-summary h3 { margin:1px 0 3px; font-size:19px }
.shop-summary small { font-weight:650; color:var(--muted) }
.shop-summary p { font-size:13px }
.shop-image { width:58px; height:58px; border-radius:12px; flex:none; background:var(--soft); object-fit:cover }
.shop-card .shop-image { width:72px; height:72px }
.shop-symbol { display:grid; place-items:center; color:var(--accent); font-size:25px; font-weight:750 }
.shop-card-footer { border-top:1px solid var(--line); padding-top:10px }
.shop-link { color:var(--accent); font-size:13px; font-weight:650 }
.search { position:relative; display:block; width:min(100%,430px); min-width:0 }
.search::before {
  content:""; position:absolute; top:50%; left:15px; width:10px; height:10px;
  border:2px solid var(--muted); border-radius:50%; transform:translateY(-62%); pointer-events:none;
}
.search::after {
  content:""; position:absolute; top:calc(50% + 4px); left:25px; width:6px; height:2px;
  border-radius:1px; background:var(--muted); transform:rotate(45deg); pointer-events:none;
}
.search input { min-height:46px; padding-left:37px; border-radius:11px; border-color:#d4d8dc; background:var(--paper) }
input,select,textarea { width:100%; padding:9px 11px; min-height:41px; border:1px solid #d4d8dc; border-radius:9px; background:#fff; min-width:0 }
input[type="checkbox"] { width:18px; min-height:18px; accent-color:var(--accent); flex:none }
textarea { resize:vertical; min-height:70px }
label.field { display:grid; gap:4px; min-width:0; font-size:14px; font-weight:650 }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px }
.full { grid-column:1 / -1 }
.check { display:flex; align-items:center; gap:8px; width:fit-content }
.login { border-top:4px solid var(--accent); width:min(100%,440px); margin:32px auto; padding:clamp(20px,5vw,32px) }
.dish,.list-row { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0; border-bottom:1px solid var(--line) }
.dish:last-child,.list-row:last-child { border-bottom:0 }
.dish > :first-child,.list-row > :first-child { min-width:0; overflow-wrap:anywhere }
.dish-details { display:flex; align-items:center; gap:10px }
.dish-details > div { min-width:0; overflow-wrap:anywhere }
.dish-image { width:58px; height:58px; flex:none; object-fit:cover; border-radius:9px; background:var(--soft) }
.quantity { display:flex; flex:none; align-items:center; justify-content:flex-end; gap:8px; white-space:nowrap }
.quantity button { min-width:38px; min-height:38px; padding:0 }
.quantity span { min-width:18px; text-align:center }
.cart-bar { position:sticky; bottom:10px; z-index:2; box-shadow:0 5px 24px #354a651a }
.empty { text-align:center; padding:30px 12px; color:var(--muted) }
.notice { padding:10px 13px; border-radius:9px; background:#eeece3; color:#625b46; font-size:14px }
.qr { width:172px; height:172px; object-fit:contain; background:white; border:1px solid var(--line); border-radius:8px; padding:5px }
.qr.mini { width:70px; height:70px }
hr { border:0; border-top:1px solid var(--line); margin:0 }
.two { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(0,1fr); gap:16px; align-items:start }
#stats-date input { width:auto; max-width:100% }
.turnover-chart { display:grid; gap:8px; font-variant-numeric:tabular-nums }
.turnover-row { display:grid; grid-template-columns:3.3rem minmax(0,1fr) max-content; align-items:center; gap:10px; font-size:14px }
.turnover-breakdown { grid-column:2 / -1; justify-self:end; text-align:right }
.turnover-row meter { width:100%; height:14px; border:0; background:transparent }
.turnover-row meter::-webkit-meter-bar { background:var(--soft); border:0; border-radius:5px }
.turnover-row meter::-webkit-meter-optimum-value { background:var(--accent); border-radius:5px }
.turnover-row meter::-moz-meter-bar { background:var(--accent); border-radius:5px }
#announcement-bar { padding-top:12px }
.announcement-bar-button {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px;
  width:100%; min-height:44px; padding:8px 12px; border:1px solid #cbd7e2;
  border-radius:10px; color:var(--dark); background:#eff3f6; text-align:left;
}
.announcement-bar-button:hover { border-color:var(--accent) }
.announcement-bar-title { font-weight:650; overflow:hidden; text-overflow:ellipsis; white-space:nowrap }
.announcement-bar-action { font-size:.85rem }
.forum-announcements { border-color:#cbd7e2; background:#eff3f6 }
.forum-announcements h3 { color:var(--dark) }
.announcement-entry { border-top:1px solid #ccd7e1; padding-top:12px }
.announcement-entry h4 { margin:0; font-size:1rem; overflow-wrap:anywhere }
.review-card { border-top:1px solid var(--line); padding:14px 0 2px }
.review-score { color:var(--dark) }
.category-choices { min-width:0; margin:0; padding:0; border:0 }
.category-choices legend { padding:0 0 6px; font-weight:650 }
.category-choices label:has(input:disabled) { opacity:.55; cursor:default }
.category-choices label:has(input:checked) { border-color:var(--accent); color:var(--accent) }
.review-stars { min-width:0; margin:0; padding:0; border:0 }
.review-stars legend { padding:0 0 6px; font-weight:650 }
.review-stars input { width:auto; min-height:0; accent-color:var(--accent) }
.forum-body,.forum-preview { white-space:pre-wrap; overflow-wrap:anywhere }
.forum-body:empty { display:none }
.uid-link { color:var(--accent); text-decoration:underline }
.forum-link:hover { color:var(--accent); text-decoration:underline }
.forum-photos { display:flex; gap:10px; flex-wrap:wrap }
.forum-photos img { width:clamp(84px,22vw,144px); height:clamp(84px,22vw,144px); border-radius:9px; object-fit:cover; background:var(--soft) }
.rank-align { align-self:flex-end }
[data-rider-level] { flex-wrap:nowrap }
.numbers { font-variant-numeric:tabular-nums }
.table-wrap { overflow:auto }
table { width:100%; border-collapse:collapse; white-space:nowrap; font-size:14px }
th,td { padding:10px; text-align:left; border-bottom:1px solid var(--line) }
th { color:var(--muted); font-weight:650 }
table input { width:76px }
dialog { border:1px solid var(--line); border-radius:16px; width:min(490px,calc(100% - 24px)); max-height:90dvh; padding:20px; color:var(--ink); background:var(--paper) }
dialog::backdrop { background:#222e3d80 }
.site-tools { display:flex; flex-wrap:wrap; gap:6px; }
.site-tools .btn { background:var(--paper); box-shadow:0 4px 14px #354a651a; }
.site-tools .btn.primary { background:var(--accent); }
.guide-link { flex-shrink:0; }
@media (max-width:760px) {
  .header-inner { display:grid; grid-template-columns:1fr auto; gap:4px 10px; padding-block:8px; }
  .guide-link { grid-column:2; grid-row:1; }
  .header-inner nav { grid-column:1 / -1; grid-row:2; }
}
.cart-bar { bottom:calc(10px + env(safe-area-inset-bottom)); }
.feedback-notice { margin-top:12px; }
.feedback-notice .notice { margin:0; }
.feedback-resolution { border-top:1px solid var(--line); padding-top:10px; }
.rider-contact { min-width:0; overflow-wrap:anywhere; }
.toast { position:fixed; bottom:20px; left:50%; transform:translateX(-50%); z-index:10; width:max-content; max-width:calc(100% - 24px); padding:10px 17px; border-radius:11px; background:var(--dark); color:#fff; box-shadow:0 4px 18px #0002 }
.toast { pointer-events:none }
.toast.error { background:var(--danger) }
@media (max-width:760px) {
  .two { grid-template-columns:1fr }
}
@media (max-width:520px) {
  .shell { width:calc(100% - 26px) }
  main.shell { padding-block:20px 34px }
  .header-inner { min-height:60px }
  nav a,.nav-button { padding:6px 8px; font-size:13px }
  .hero { border-radius:16px; display:grid; justify-content:stretch; padding:20px 15px 15px; gap:12px }
  .hero-copy { gap:13px }
  .hero-fee { justify-self:start; display:flex; align-items:baseline; gap:7px; padding:5px 9px }
  .hero-fee strong { font-size:17px }
  .shop-card { padding:13px }
  .shop-card .shop-image { width:58px; height:58px }
  .footer { flex-direction:column; padding-bottom:calc(20px + env(safe-area-inset-bottom)) }
  .footer-actions { justify-items:start }
  .grid { grid-template-columns:1fr }
  .form-grid { grid-template-columns:1fr }
  .stats { grid-template-columns:repeat(2,minmax(0,1fr)) }
}
@media (prefers-reduced-motion:reduce) { * { transition:none!important } }

.menu-columns{display:grid;grid-template-columns:minmax(5rem,9rem) minmax(0,1fr);align-items:start;gap:.8rem}
.menu-sections{display:grid;gap:.4rem;position:sticky;top:.5rem}
.menu-sections .btn{white-space:normal;overflow-wrap:anywhere}
.menu-columns .list-row{flex-wrap:wrap}
[data-menu-section]{scroll-margin-top:4rem}
