/* Rounded, tactile components. Keep the current neutral palette and food colours. */
:root{--ease-soft:cubic-bezier(.22,1,.36,1);--ease-spring:cubic-bezier(.2,1.5,.4,1);--radius-card:28px;--radius-control:18px;--nav-space:92px}
html,body{overflow:hidden}
body{--tab-height:var(--nav-space);-webkit-tap-highlight-color:transparent}
button{touch-action:manipulation;transition:transform .32s var(--ease-spring),background-color .22s,color .22s,box-shadow .22s;}
button:hover:not(:disabled){opacity:1}
button:active:not(:disabled){transform:scale(.96)}
button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid #696160;outline-offset:4px}
.app-header{height:56px;border:0;letter-spacing:1.5px;font-size:13px}
.app-header #back{left:16px;width:36px;height:36px;border-radius:50%;background:#f7f7f7;display:flex;align-items:center;justify-content:center;line-height:1;padding:0;flex-shrink:0}
.app-header #back svg{display:block;width:18px;height:18px;flex-shrink:0;pointer-events:none}
.app-header #back[hidden]{display:none}
.local-badge{display:flex;align-items:center;gap:5px;font-size:9px;right:20px}
.local-badge:before{content:'';width:4px;height:4px;background:#696160;border-radius:50%}
#app{height:calc(100dvh - 56px);overscroll-behavior:contain}
#app,.scroll-view{scrollbar-width:none}
#app::-webkit-scrollbar,.scroll-view::-webkit-scrollbar{display:none;width:0;height:0}
#app .tab-page{padding:12px 20px calc(var(--nav-space) + 20px + env(safe-area-inset-bottom))}
#app .home .hero{height:clamp(300px,49dvh,510px);min-height:0;border-radius:36px;background:#f7f7f7;padding:24px 16px 28px;justify-content:center;overflow:hidden;position:relative}
#app .home .hero:before{content:'一 日 三 餐  ·  一 味 日 常';position:absolute;top:22px;left:0;right:0;font-size:9px;color:#696160;letter-spacing:2px}
#app .home .hero-image{width:62%;height:58%;max-width:260px;mix-blend-mode:multiply;flex-shrink:1}
#app .home .hero-title{font-family:'Songti SC','SimSun',serif;font-size:28px;letter-spacing:4px;margin-top:16px}
#app .home .hero-caption{font-size:11px;letter-spacing:2px;margin-top:8px}
#app .home .actions{margin-top:24px;display:grid;gap:12px}
#app .home .actions .primary-button{height:58px;margin:0;padding:16px 24px;border-radius:999px;position:relative;text-align:left;font-size:15px;letter-spacing:2px;box-shadow:0 4px 10px #2e2a2508}
#app .home .actions .primary-button:after{content:'↗';position:absolute;right:20px;top:11px;width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#ffffff1a;font:21px/1 sans-serif;transition:transform .3s var(--ease-spring)}
#app .home .actions .primary-button:nth-child(2){background:#f1f1f1;color:#2e2a25;box-shadow:none}
#app .home .actions .primary-button:nth-child(2):after{background:white}
@media(hover:hover){#app .home .actions .primary-button:hover:after{transform:rotate(45deg)}button.primary-button:hover:not(:disabled){box-shadow:0 5px 18px #2e2a2515}}
.web-tabs{height:64px;left:16px;right:16px;bottom:calc(12px + env(safe-area-inset-bottom));padding:7px;border:1px solid #e5e5e5;border-radius:999px;background:#f7f7f7;box-shadow:0 8px 24px #2e2a2509;isolation:isolate;overflow:hidden;--active-index:0}
.web-tabs:before{content:'';position:absolute;left:7px;top:7px;bottom:7px;width:calc((100% - 14px)/4);border-radius:999px;background:#2e2a25;transform:translateX(calc(var(--active-index)*100%));transition:transform .52s var(--ease-spring);z-index:-1}
.web-tabs button{position:relative;color:#696160;font-size:12px;border-radius:999px;min-width:0;padding:0;letter-spacing:1px}
.web-tabs button[aria-current=page]{color:#fff;font-weight:500}
.web-tabs button:active{transform:scale(.92)}
.web-tabs,.status-tabs,.top-tabs{touch-action:pan-y;user-select:none}
.web-tabs:before{transform:translateX(calc(var(--drag-index,var(--active-index))*100%))}
.web-tabs.is-dragging:before,#app .status-tabs.is-dragging:before,#app .top-tabs.is-dragging:before{transition:none}
#app .primary-button{border-radius:999px;min-height:52px;font-size:14px;letter-spacing:2px}
#app .editor{padding:12px 20px 116px}
#app .editor .icon-picker,#app .dish-editor .photo{height:180px;border-radius:var(--radius-card);border:1px dashed #ddd;background:#f7f7f7;overflow:hidden;margin-bottom:24px}
#app .editor .icon-picker img,#app .dish-editor .photo img{border-radius:18px}
#app .editor .field{padding:18px;background:#f7f7f7;border-radius:22px;margin-bottom:12px}
#app .editor .label,#app .dish-editor .label{font-size:13px;letter-spacing:.5px}
#app .editor input:not([type=radio]),#app .dish-editor input,#app .dish-editor textarea,#app .picker-select{border:1px solid #e5e5e5;background:white;border-radius:14px;font-size:14px;transition:border-color .2s,box-shadow .2s}
#app input:focus,#app textarea:focus,#app select:focus{border-color:#696160;box-shadow:0 0 0 3px #2e2a2508}
#app .choices{gap:8px}
#app .choices label{justify-content:center;min-height:44px;padding:8px;border-radius:999px;background:white;border:1px solid #e5e5e5;font-size:13px;transition:background .24s,border-color .24s,transform .32s var(--ease-spring)}
#app .choices label:has(input:checked){background:#e5e5e5;border-color:#c1bdbc}
#app .choices input[type=radio]{width:16px!important;height:16px!important;margin-right:8px}
#app .editor .add-category{border-radius:16px;min-height:48px;margin:4px 0 8px;background:#f7f7f7}
#app .editor .saved-info{border:0;background:#f7f7f7;border-radius:24px;padding:20px;margin-top:20px}
#app .save-bar{border:0;padding:12px 20px calc(12px + env(safe-area-inset-bottom));background:#ffffffed;backdrop-filter:blur(12px)}
#app .save-bar .primary-button{padding:14px;border-radius:999px}
#app .dish-editor{padding:12px 20px 32px}
#app .dish-editor textarea{resize:vertical;min-height:120px}
#app .order-page{height:calc(100dvh - 56px);padding-bottom:calc(var(--nav-space) + env(safe-area-inset-bottom))}
#app .order-page>.hero{height:112px;margin:8px 16px 0;border-radius:28px;flex-shrink:0}
#app .menu-header{padding:20px 24px;border:0}
#app .menu-selector{min-height:40px}
#app .menu-name{font-size:21px;letter-spacing:1px}
#app .menu-icon{border-radius:14px;width:42px;height:42px}
#app .header-note{font-size:11px}
#app .menu-body{margin:0 12px 12px;gap:6px;border-radius:24px;overflow:hidden}
#app .category-list{width:76px;background:#f7f7f7;border-radius:24px;padding:6px}
#app .category-list .category{background:transparent;min-height:52px;border:0;border-radius:18px;font-size:11px;text-align:center;padding:16px 4px;margin-bottom:4px}
#app .category-list .category.active{background:#e5e5e5;border:0;box-shadow:0 2px 5px #2e2a2505}
#app .dish-content{padding:14px 8px 24px}
#app .dish-list .dish{border:0;border-radius:22px;background:#f7f7f7;padding:12px;margin-bottom:12px;gap:10px;align-items:center}
#app .dish-image,#app .dish-placeholder{width:68px;height:78px;border-radius:16px;background:#eee}
#app .dish-list .add-dish{height:140px;border-radius:24px;background:#f7f7f7;border:1px dashed #ddd;gap:10px}
#app .add-symbol{border-radius:50%;height:38px;width:38px;display:grid;place-items:center;font-size:26px;line-height:1}
#app .cart-strip{margin:0 16px;border-radius:999px;height:48px;min-height:48px;overflow:hidden;border:1px solid #e5e5e5}
#app .cart-summary{padding:0 16px;gap:10px;font-size:11px}
#app .cart-strip .checkout[disabled]{border-radius:999px;width:84px;height:38px;line-height:38px;margin-right:4px;background:#e5e5e5;color:#696160;font-size:12px}
#app .no-menu{padding:32px 24px;background:#f7f7f7;border-radius:28px;margin:4px 20px 24px}
#app .no-menu .primary-button{min-width:180px}
#app .status-tabs,#app .top-tabs{position:relative;isolation:isolate;display:flex;margin:12px 20px 18px;padding:5px;height:52px;background:#f1f1f1;border:0;border-radius:999px;gap:0}
#app .status-tabs:before,#app .top-tabs:before{content:'';position:absolute;z-index:-1;left:5px;top:5px;bottom:5px;width:calc((100% - 10px)/var(--segment-count,3));border-radius:999px;background:white;box-shadow:0 2px 7px #2e2a2509;transform:translateX(calc(var(--drag-index,var(--segment-index,0))*100%));transition:transform .46s var(--ease-spring)}
#app .status-tabs .status-tab,#app .top-tabs .top-tab{height:42px;min-width:0;border:0;padding:10px 0;border-radius:999px;background:transparent;font-size:12px;flex:1;line-height:22px}
#app .status-tabs .selected:before,#app .top-tabs .selected:before{display:none}
#app .orders-page{min-height:calc(100dvh - 56px);padding-bottom:var(--nav-space)}
#app .orders-page,#app .switch-page{display:flow-root;min-height:calc(100dvh - 56px)}
#app .order-list{padding:0 16px}
#app .order-card{border-radius:26px;padding:20px}
#app .order-actions button,#app .empty .browse{border-radius:999px;min-height:40px}
#app .empty{padding:72px 20px 32px;min-height:0}
#app .empty-title{font-size:20px;font-weight:500}
#app .empty-note{font-size:12px;margin-top:12px}
#app .receipt-icon{border-radius:8px;margin-bottom:24px}
#app .switch-page{padding:0 0 32px}
#app .toolbar{gap:10px;padding:0 20px 16px;flex-wrap:wrap;height:auto;min-height:56px}
#app .toolbar input{border-radius:999px;background:#f7f7f7;min-height:40px;padding:0 14px}
#app .toolbar>button{border-radius:999px;min-height:40px;background:#2e2a25;color:white;padding:8px 14px;font-size:12px}
#app .menu-list{padding:0 16px}
#app .menu-card{border-radius:26px;overflow:hidden;border:1px solid #e5e5e5;margin-bottom:12px;padding:18px;background:#f7f7f7}
#app .menu-card.current{border-color:#696160}
#app .card-tools button{border-radius:999px;background:white;min-height:36px;padding:6px 14px}
#app .go-order{border-radius:20px;background:white;padding:12px}
#app .name-row img{border-radius:14px}
#app .selected-corner{border-radius:12px 0 0 0}
#app .empty-page{padding:36px 24px}
#app .empty-page .empty-title{font-family:'Songti SC','SimSun',serif;font-size:28px}
#app .empty-panel{border-radius:28px;padding:28px 24px}
#app .empty-tag{border-radius:999px;background:#e5e5e5}
#app .section-page{padding-top:28px}
#app .section-page .section-title{font-family:'Songti SC','SimSun',serif;font-size:32px}
#app .section-page .helper{font-size:13px}
#app .section-page .primary-button{margin-top:28px}
#toast{border-radius:999px;bottom:112px;text-align:center;box-shadow:0 8px 28px #2e2a2518}
.press-wave{position:absolute;pointer-events:none;border-radius:50%;background:currentColor;opacity:0;animation:press-wave .55s ease-out;z-index:2}
.has-press-wave{position:relative;overflow:hidden}
@keyframes press-wave{0%{opacity:.12;transform:scale(.1)}100%{opacity:0;transform:scale(1)}}
@media(min-width:800px){.web-tabs{max-width:520px;margin:0 auto}.home{max-width:560px}#app .menu-body{max-width:1060px;width:calc(100% - 40px);margin-left:auto;margin-right:auto}#app .cart-strip{max-width:1060px;width:calc(100% - 40px);margin-left:auto;margin-right:auto}#app .editor{padding-top:24px}#app .editor .icon-picker{height:220px}#app .status-tabs,#app .top-tabs{max-width:560px;margin-left:auto;margin-right:auto}#app .toolbar{max-width:1000px;margin:auto}#app .no-menu{max-width:520px;margin:12px auto 24px}#app .section-page{max-width:640px;margin:auto}#app .empty-page{max-width:760px;margin:auto}}
@media(max-height:690px){#app .home .hero{height:clamp(250px,45dvh,330px)}#app .home .hero-title{font-size:24px;margin-top:8px}#app .home .actions{margin-top:16px;gap:10px}#app .home .actions .primary-button{height:52px;padding-top:13px;padding-bottom:13px}#app .home .actions .primary-button:after{top:8px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
