*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{min-height:100%;margin:0}
body{font-family:system-ui,-apple-system,"Noto Sans TC",sans-serif;color:#2f241c;padding:8px;background:linear-gradient(135deg,#1b0d06,#4a2410,#7a4a22,#1b0d06);overflow-x:hidden}
body.order-page{padding-bottom:126px}
.app{min-height:calc(100vh - 16px);background:#fff8ea;border-radius:24px;overflow:hidden;box-shadow:0 10px 32px rgba(0,0,0,.45);border:2px solid rgba(255,223,173,.42)}
header{position:sticky;top:0;z-index:20;padding:14px 64px 14px 14px;background:linear-gradient(135deg,#fff4df,#ffe0ae);border-bottom:1px solid #ead7bd}
.head{display:flex;gap:12px;align-items:center}.logo{width:54px;height:54px;border-radius:16px;object-fit:cover;background:white}.logo-fallback{display:none;width:54px;height:54px;border-radius:16px;align-items:center;justify-content:center;background:white;font-size:28px}
.title{font-size:22px;font-weight:950}.sub{font-size:13px;opacity:.72;margin-top:2px}.pill{display:inline-flex;margin-top:7px;padding:6px 10px;border-radius:999px;background:white;border:1px solid #ead7bd;font-weight:900;font-size:13px}
.wrap{padding:12px}.card,.notice,.orders-box{background:white;border:1px solid #ead7bd;border-radius:18px;padding:13px;margin-bottom:12px;box-shadow:0 3px 12px rgba(0,0,0,.06)}.notice{font-size:13px;line-height:1.6}
.section-title,.cat-title{font-size:18px;font-weight:950;margin:12px 0 10px}.empty{text-align:center;opacity:.65;padding:22px;font-weight:800}
button{border:0;border-radius:14px;padding:10px 12px;font-size:14px;font-weight:900;white-space:nowrap;cursor:pointer}button:disabled{opacity:.55}
.btn-main{background:#7a4a22;color:white}.btn-soft{background:#f4e3c8;color:#4a2b14}.btn-ok{background:#2f9e44;color:white}.btn-danger{background:#d9534f;color:white}.btn-warn{background:#b76e00;color:white}
input,select,textarea{width:100%;box-sizing:border-box;border:1px solid #ead7bd;border-radius:13px;padding:10px;font-size:15px;margin:5px 0 10px;background:white;color:#2f241c}label{font-size:13px;font-weight:900}
.row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.meta{font-size:12px;opacity:.72;line-height:1.45;margin-top:4px}
.item{display:grid;grid-template-columns:88px 1fr;gap:12px;background:#fff!important;opacity:1!important;filter:none!important}.item *,.item-img{filter:none!important}.item-img{width:88px;height:88px;border-radius:16px;object-fit:cover;background:#f4e7d5;opacity:1!important}.item-img.empty{display:flex;align-items:center;justify-content:center;font-size:28px}
.name{font-weight:950;font-size:16px}.price{font-size:18px;color:#9b4d00;font-weight:950}.qty-row{display:grid;grid-template-columns:auto auto auto 1fr;gap:8px;align-items:center;margin-top:8px}.qty-num{font-size:18px;font-weight:950;min-width:34px;text-align:center}
.tag-group{margin-top:8px}.tag-title{font-size:12px;font-weight:950;opacity:.72;margin-bottom:5px}.tag-buttons{display:flex;gap:6px;flex-wrap:wrap}.tag-btn{padding:7px 10px;border-radius:999px;background:#f4e3c8;color:#4a2b14;font-size:13px}.tag-btn.active{background:#7a4a22;color:white}.note-input{margin-top:8px}
.cart{position:fixed;left:0;right:0;bottom:0;background:rgba(255,255,255,.97);border-top:1px solid #ead7bd;padding:10px 12px;box-shadow:0 -4px 18px rgba(0,0,0,.14);z-index:40}.cart-top{display:flex;justify-content:space-between;font-weight:950}.cart-list{max-height:240px;overflow:auto;margin-top:8px;display:block}.cart-line{display:grid;grid-template-columns:1fr auto;gap:8px;border-top:1px dashed #eee;padding:8px 0}.cart-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sent{opacity:.72!important;filter:none!important;background:#f7f3ed!important;border-radius:12px;padding:8px}
.page{display:none}.page.active{display:block}.fab{position:fixed;top:20px;right:20px;z-index:50}.fab-main,.fab-sub{width:52px;height:52px;border-radius:999px;box-shadow:0 6px 20px rgba(0,0,0,.32);font-size:22px}.fab-main{background:#7a4a22;color:white}.fab-menu{display:none;flex-direction:column;gap:10px;margin-top:10px}.fab-menu.open{display:flex}.fab-sub{background:white;color:#7a4a22}.fab-sub.active{background:#ffcf7a}
.badge{display:inline-flex;border-radius:999px;background:#fff0cf;padding:6px 10px;font-weight:950}.batch-title{font-weight:950;font-size:17px;margin-top:8px}.new-batch{border:2px solid #ffcf7a;background:#fffaf0}.add-batch{border:2px solid #f59f00;background:#fff4d6}.served{opacity:.52;text-decoration:line-through;filter:none!important}.all-served{opacity:.72;background:#f7f3ed;filter:none!important}
.order-item-line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0;border-top:1px dashed #eee}.order-item-main{flex:1}.big-alert{display:none;position:fixed;left:14px;right:14px;top:86px;z-index:100;background:#fff3cd;border:2px solid #ffcf7a;border-radius:18px;padding:16px;font-size:20px;font-weight:950;box-shadow:0 10px 30px rgba(0,0,0,.22)}.big-alert.show{display:block;animation:pulse .65s ease-in-out 2}@keyframes pulse{50%{transform:scale(1.03)}}
.report-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.report-box{border:1px solid #ead7bd;border-radius:18px;padding:12px;background:white}.report-num{font-size:22px;font-weight:950;color:#9b4d00}
.inactive{opacity:.58;background:#f1eee9}.inactive button{opacity:1}.takeout-box{background:#fff3cd;border:1px solid #ffcf7a}
@media(max-width:390px){body{padding:6px}.row,.report-grid{grid-template-columns:1fr}.wrap{padding:10px}.fab{top:14px;right:14px}.item{grid-template-columns:74px 1fr}.item-img{width:74px;height:74px}}
