:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;color:#26291f;background:#f1f1eb;font-synthesis:none;--yellow:#ffce32;--muted:#73766b;--line:#e9e9e1;--paper:#fcfcf7}
*{box-sizing:border-box}body{margin:0}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer;border:0}a{color:inherit;text-decoration:none}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #927300;outline-offset:4px}h1,h2,h3,p{margin:0}h2{font-size:21px;letter-spacing:-.5px}h3{font-size:17px}.app{max-width:960px;margin:auto;background:var(--paper);min-height:100dvh;padding-bottom:95px}.topbar{height:88px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;font-size:20px;font-weight:800;letter-spacing:1px}.brand small{display:block;font-size:8px;letter-spacing:1.5px;margin-top:4px;font-weight:600}.brand-icon{width:40px;height:40px;display:grid;place-items:center;background:var(--yellow);border-radius:13px 13px 13px 3px;font-size:25px;font-weight:900}.icon-button{background:transparent;color:var(--muted);font-size:12px;padding:12px 0 12px 12px}main{padding:28px 32px}.welcome{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.welcome p{font-size:13px;color:var(--muted);margin-bottom:8px}.welcome h1{font-size:29px;letter-spacing:-1px;line-height:1.3}.hello{font-size:36px;transform:rotate(-12deg)}.section-title{display:flex;align-items:baseline;gap:10px;margin:28px 0 17px}.section-title small{font-size:11px;color:var(--muted)}.search{display:flex;align-items:center;gap:8px;background:#f0f1e9;padding:0 14px;border-radius:12px;margin-bottom:16px}.search input{background:none;border:0;padding:13px 0;outline:none;width:100%;font-size:13px}.filters{display:flex;gap:8px;overflow-x:auto;padding-bottom:8px;margin-bottom:14px;scrollbar-width:none}.chip{padding:9px 15px;border-radius:10px;background:#efefe7;color:#686c60;font-size:12px;white-space:nowrap}.chip.active{background:#29382b;color:white}.menu-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dish{display:flex;gap:15px;min-width:0;padding:13px 0 18px;border-bottom:1px solid var(--line)}.dish-visual{width:112px;height:112px;flex-shrink:0;display:grid;place-items:center;border-radius:14px;background:#f1eadc;font-size:62px;overflow:hidden}.dish:nth-child(3n+2) .dish-visual{background:#efe6d8}.dish:nth-child(3n) .dish-visual{background:#e8eddd}.dish-visual img{height:100%;width:100%;object-fit:cover}.dish-info{display:flex;flex-direction:column;flex:1;min-width:0;padding:3px 0}.dish-info p{font-size:11px;color:var(--muted);line-height:1.6;margin:7px 0 12px}.dish-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:5px}.price{font-weight:800;font-size:19px;letter-spacing:-.4px}.price small{font-size:11px;font-weight:500;margin-right:2px}.stepper{display:flex;align-items:center;gap:9px;font-size:13px}.stepper button{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:var(--yellow);font-size:23px;font-weight:500;line-height:1}.stepper .minus{background:#efefe6;color:#686c60}.dish-footer{font-size:11px;color:var(--muted);text-align:center;padding:28px 0 8px;letter-spacing:1px}.bottom-nav{position:fixed;bottom:0;left:50%;transform:translateX(-50%);width:min(960px,100%);background:#fcfcf7f5;backdrop-filter:blur(16px);border-top:1px solid var(--line);display:flex;justify-content:space-around;padding:12px 0 calc(12px + env(safe-area-inset-bottom));z-index:5}.bottom-nav a{display:flex;align-items:center;flex-direction:column;gap:5px;font-size:10px;color:var(--muted);min-width:70px}.bottom-nav a span{font-size:22px;line-height:1}.bottom-nav a.active{color:#253c29;font-weight:800}.cart-bar{position:fixed;bottom:calc(78px + env(safe-area-inset-bottom));width:min(896px,calc(100% - 36px));left:50%;transform:translateX(-50%);background:#283c2c;color:#fff;border-radius:16px;display:flex;align-items:center;justify-content:space-between;padding:10px 12px 10px 18px;box-shadow:0 8px 24px #24312626;z-index:6}.cart-bar strong{font-size:21px}.cart-bar small{display:block;font-size:10px;color:#d4dfd1;margin-top:3px}.cart-bag{background:#435845;padding:9px 12px;border-radius:12px;margin-right:12px}.cart-summary{display:flex;align-items:center}.primary{background:var(--yellow);color:#282b20;border-radius:12px;padding:14px 23px;font-weight:750;font-size:14px;white-space:nowrap}.full{width:100%}.secondary{background:#eaece3;color:#354b34;padding:10px 14px;border-radius:9px;font-size:12px}.muted{font-size:11px;color:var(--muted);line-height:1.7}.center{text-align:center;margin-top:12px}dialog{width:min(460px,calc(100% - 24px));max-height:90dvh;border:0;border-radius:22px;background:var(--paper);padding:24px;color:inherit;box-shadow:0 30px 100px #0003}dialog::backdrop{background:#18231d80;backdrop-filter:blur(4px)}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;gap:10px}.dialog-head>span{font-size:13px;color:var(--muted)}.close{background:#edeee6;border-radius:50%;width:32px;height:32px;font-size:23px;flex-shrink:0}label{display:block;font-size:12px;font-weight:600;margin:17px 0}label input,label textarea{display:block;width:100%;margin-top:8px;border:1px solid #d8dbcf;border-radius:10px;background:white;padding:12px;font-size:14px;outline-color:#ab8b14}textarea{resize:vertical}.checkbox{display:flex;gap:8px;align-items:center}.checkbox input{width:auto;margin:0}.form-row{display:flex;gap:12px}.form-row>*{flex:1;min-width:0}.cart-line{display:flex;justify-content:space-between;align-items:center;padding:15px 0;border-bottom:1px solid var(--line);gap:10px}.cart-line strong{font-size:14px}.cart-line small{display:block;color:var(--muted);font-size:12px;margin-top:5px}.checkout-total{display:flex;justify-content:space-between;padding:20px 0;align-items:center}.checkout-total small{color:var(--muted);font-size:10px;margin-left:6px}.checkout-total strong{font-size:25px}.page-heading{margin-bottom:26px}.page-heading h1{font-size:28px;letter-spacing:-1px;margin-bottom:8px}.empty{padding:65px 20px;text-align:center}.empty .empty-icon{font-size:48px;display:block;margin-bottom:20px}.empty h3{margin-bottom:10px}.empty .primary{margin-top:24px;display:inline-block}.order-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:20px;margin-bottom:14px}.order-top{display:flex;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:16px}.status{font-size:10px;background:#edf2e6;color:#47633c;padding:4px 7px;border-radius:5px}.status.failed{background:#fff0db;color:#855006}.order-card p{font-size:13px;line-height:1.8}.order-card .muted{margin-top:8px;font-size:11px}.order-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:15px}.tabs{display:flex;background:#eeefe7;padding:5px;border-radius:12px;margin:20px 0}.tabs button{flex:1;padding:11px;border-radius:9px;font-size:13px;background:none;color:var(--muted)}.tabs button.active{background:white;color:#283d2a;font-weight:700;box-shadow:0 2px 5px #00000008}.admin-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.admin-row{display:flex;align-items:center;gap:12px;padding:17px 0;border-bottom:1px solid var(--line)}.admin-row .dish-visual{width:65px;height:65px;font-size:37px;border-radius:12px}.admin-row .details{flex:1;min-width:0}.admin-row h3{font-size:14px;margin-bottom:6px}.admin-row p{font-size:12px;color:var(--muted)}.admin-actions{display:flex;gap:6px;flex-direction:column}.login{max-width:360px;margin:40px auto}.login .lock{font-size:40px;margin-bottom:20px}.login h2{margin-bottom:10px}.login .primary{margin-top:6px}.receipt{position:relative;background:#fffdf6;color:#24251f;padding:28px 23px;margin:4px 0 24px;font-family:"Courier New","Microsoft YaHei",monospace;filter:drop-shadow(0 4px 8px #00000008)}.receipt:after{content:'';position:absolute;bottom:-9px;left:0;right:0;height:10px;background:linear-gradient(135deg,#fffdf6 25%,transparent 25%) -5px 0/10px 10px,linear-gradient(225deg,#fffdf6 25%,transparent 25%) -5px 0/10px 10px}.receipt-brand{text-align:center;font-size:22px;font-weight:900}.receipt-label{text-align:center;font-size:10px;letter-spacing:3px;margin:8px 0 22px}.receipt-number{text-align:center;font-size:30px;font-weight:900;margin-bottom:14px}.receipt-rule{border-top:1px dashed #94958a;margin:17px 0}.receipt-row{display:flex;justify-content:space-between;gap:8px;font-size:12px;line-height:1.9}.receipt-items{margin:14px 0}.receipt-item{display:grid;grid-template-columns:1fr 30px 70px;gap:8px;font-size:12px;margin:12px 0}.receipt-item span:last-child{text-align:right}.receipt-total{font-size:21px;font-weight:900}.receipt-note{font-size:12px;line-height:1.8;overflow-wrap:anywhere}.receipt-end{text-align:center;font-size:11px;line-height:1.9}.barcode{height:32px;max-width:180px;margin:20px auto 9px;background:repeating-linear-gradient(90deg,#25271f 0 2px,transparent 2px 4px,#25271f 4px 5px,transparent 5px 8px,#25271f 8px 11px,transparent 11px 13px,#25271f 13px 14px,transparent 14px 18px)}#receipt-preview{width:100%;margin-top:15px;border-radius:8px}#dish-preview{width:90px;height:90px;object-fit:cover;border-radius:12px}#toast{position:fixed;bottom:calc(155px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);background:#243527;color:#fff;padding:14px 20px;border-radius:12px;font-size:13px;z-index:20;width:max-content;max-width:90%;box-shadow:0 8px 25px #0002}.loading{padding:65px 0;text-align:center;color:var(--muted);font-size:14px}.login-error{color:#ab3d26;font-size:12px;margin-top:12px}.upload input{font-size:12px}.all-orders{font-size:11px;color:var(--muted);margin-bottom:20px}.notice{padding:12px;background:#fff4ca;border-radius:10px;font-size:12px;line-height:1.7;margin-bottom:16px}.bottom-space{height:65px}
@media(max-width:640px){.topbar{height:77px;padding:0 22px}.brand{font-size:18px}.brand-icon{width:36px;height:36px;font-size:23px}main{padding:25px 22px}.welcome{margin-bottom:22px}.welcome h1{font-size:27px}.menu-grid{grid-template-columns:1fr;gap:0}.dish{gap:17px;padding:13px 0 18px;margin-bottom:4px}.dish-visual{width:108px;height:108px;font-size:59px}.dish-info h3{font-size:16px}.dish-info p{font-size:11px;max-width:210px}.section-title{margin-top:24px}.filters{margin-right:-22px}.cart-bar{bottom:calc(78px + env(safe-area-inset-bottom))}.stepper button{width:30px;height:30px}.hello{font-size:31px}dialog{padding:22px}.primary{padding:13px 20px}.receipt{padding:26px 20px}}
@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s,transform .15s}button:active{transform:scale(.96)}.dish{animation:arrive .25s ease-out}@keyframes arrive{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}}

.order-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}.order-actions .secondary{white-space:nowrap}.secondary.danger{color:#a23126;background:#f9e9e4}

.dish-options-editor{margin:22px 0}.option-editor{background:#f0f1e9;padding:2px 14px 14px;border-radius:12px;margin:12px 0}.choice-group{border:0;margin:0 0 24px;padding:0;min-width:0}.choice-group legend{font-size:15px;font-weight:700;margin-bottom:12px}.choice-group legend small{font-size:11px;font-weight:400;color:var(--muted);margin-left:10px}.choice-values{display:flex;flex-wrap:wrap;gap:10px}.choice-values label{margin:0;cursor:pointer}.choice-values input{position:absolute;opacity:0;width:1px;height:1px}.choice-values span{display:block;padding:11px 16px;border:1px solid #d8dbcf;border-radius:10px;font-size:13px;overflow-wrap:anywhere}.choice-values input:checked+span{background:#fff1ad;border-color:#ae8b16;color:#453900}.choice-values input:focus-visible+span{outline:2px solid #927300;outline-offset:3px}.receipt-selection{display:block;font-weight:400;color:#68695d;line-height:1.6;margin-top:4px;overflow-wrap:anywhere}.choose-options{background:var(--yellow)}.cart-line>div:first-child{min-width:0;overflow-wrap:anywhere}.cart-line .stepper{flex-shrink:0}

.category-field{margin:17px 0}.category-field label{margin:0 0 8px}.category-field select,.category-field>input{width:100%;min-width:0;border:1px solid #d8dbcf;border-radius:10px;background:white;padding:12px;font:inherit;font-size:14px;outline-color:#ab8b14}.category-field>input{margin-top:8px}

/* Prevent accidental double-tap zoom while keeping deliberate pinch zoom available. */
html{touch-action:manipulation;-webkit-text-size-adjust:100%;text-size-adjust:100%}
.admin-app{padding-bottom:24px}
.option-templates{padding:0 14px 14px;background:#f0f1e9;border-radius:12px;margin-block:16px}
.option-templates select{width:100%;min-width:0;border:1px solid #d8dbcf;border-radius:10px;background:white;padding:12px;font:inherit}
.option-templates label{padding-top:14px;margin:0 0 8px}.option-templates p{margin-top:10px}
.template-actions{display:flex;flex-wrap:wrap;gap:8px;margin-block:10px}
body:has(dialog[open]){overflow:hidden}
dialog{overscroll-behavior:contain;overflow-wrap:anywhere;scroll-padding-block:20px}
@media(max-width:640px){
  input:not([type=checkbox]):not([type=radio]),textarea,label textarea,select,.search input,.category-field select,.category-field>input,.option-templates select,.upload input{font-size:16px}
  button,.bottom-nav a{min-height:44px}
  .stepper{gap:6px}.stepper button{width:44px;height:44px}.stepper span{min-width:16px;text-align:center}
  .close{width:44px;height:44px}.chip{padding:11px 15px}
  .choice-values label{min-height:44px}.choice-values span{min-height:44px}
  .checkbox{min-height:44px}.checkbox input{width:20px;height:20px;flex-shrink:0}
  .admin-title{gap:10px;flex-wrap:wrap}.order-bottom{gap:12px;flex-wrap:wrap}
  .dish-info h3{overflow-wrap:anywhere}.dish-bottom{flex-wrap:wrap;row-gap:8px}
  .bottom-space{height:95px}
}
@media(max-width:360px){
  main{padding-inline:16px}.topbar{padding-inline:16px}.brand{font-size:16px;gap:7px}
  .dish{gap:12px}.dish-visual{width:88px;height:88px}.form-row{flex-direction:column;gap:0}
  dialog{padding:18px}.welcome h1{font-size:24px}
}
