body { overflow-x: hidden; }
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 10; background: var(--orange); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; box-shadow: 0 3px 12px rgba(0,0,0,.15); }
.top h1 { font-size: 20px; flex: 1; } .top .who { font-size: 14px; opacity: .9; font-weight: 700; }
.top button { background: rgba(255,255,255,.2); color: #fff; border: 0; border-radius: 10px; padding: 6px 12px; font-weight: 700; }
.tabs { display: flex; gap: 6px; padding: 10px 12px 4px; position: sticky; top: 54px; z-index: 9; background: var(--cream); }
.tabs button { flex: 1; border: 2px solid var(--orange-m); background: #fff; color: var(--orange-d); border-radius: 14px; padding: 10px 4px; font-family: var(--display); font-weight: 800; font-size: 16px; position: relative; }
.tabs button.on { background: var(--orange); color: #fff; border-color: var(--orange); }
.tabs .n { position: absolute; top: -8px; left: -4px; background: var(--red); color: #fff; min-width: 22px; height: 22px; border-radius: 99px; font-size: 13px; display: grid; place-items: center; padding: 0 5px; }
.list { padding: 8px 12px 90px; display: flex; flex-direction: column; gap: 12px; }
.empty { text-align: center; color: var(--muted); padding: 60px 10px; font-weight: 700; } .empty i { font-size: 54px; display: block; font-style: normal; }
.ocard { background: #fff; border: 2px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.ocard.new { border-color: var(--orange); animation: pulse 1.4s 3; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(var(--orange-rgb,255,94,1),.25); } }
.ohead { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; } .ohead .no { font-family: var(--display); font-size: 26px; color: var(--orange-d); flex: 1; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 99px; font-weight: 800; font-size: 13px; background: var(--orange-l); color: var(--orange-d); } .badge.g { background: var(--green-l); color: var(--green); } .badge.a { background: var(--amber-l); color: #8a5a00; } .badge.r { background: var(--red-l); color: var(--red); }
.pay { border-radius: 14px; padding: 10px 12px; font-weight: 800; font-size: 18px; margin: 8px 0; display: flex; align-items: center; justify-content: space-between; } .pay.cash { background: var(--amber-l); color: #7a4d00; } .pay.card { background: #E4EEFF; color: #1d4fb3; } .pay.paid { background: var(--green-l); color: var(--green); }
.row2 { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; } .row2 .btn { flex: 1; min-width: 120px; }
.addr { background: var(--cream); border-radius: 12px; padding: 10px 12px; font-weight: 700; line-height: 1.5; margin: 6px 0; }
.items { font-size: 14px; color: var(--muted); font-weight: 700; margin: 6px 0; } .items small { display: block; font-weight: 500; }
.btn.big { min-height: 56px; font-size: 20px; width: 100%; margin-top: 6px; }
.btn.ghost2 { background: #fff; color: var(--orange-d); border: 2px solid var(--orange-m); }
.note { background: var(--amber-l); border-radius: 12px; padding: 8px 12px; margin: 6px 0; font-weight: 700; color: #7a4d00; }
.banner { margin: 10px 12px 0; background: #FFF1CC; border: 2px solid var(--amber); border-radius: 16px; padding: 12px; font-weight: 700; }
.banner .btn { margin-top: 8px; width: 100%; }
.login { margin: auto; padding: 24px; width: 100%; text-align: center; } .login img { width: min(240px, 70%); } .login input { width: 100%; text-align: center; font-size: 32px; letter-spacing: 8px; border: 3px solid var(--orange-m); border-radius: 16px; padding: 12px; margin: 14px 0; background: #fff; }
.err { color: var(--red); font-weight: 800; min-height: 24px; }
.sum { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px 0; } .sum div { background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 12px; text-align: center; } .sum b { display: block; font-family: var(--display); font-size: 28px; color: var(--orange-d); }
.toast { position: fixed; bottom: 24px; left: 16px; right: 16px; max-width: 520px; margin: auto; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-weight: 700; text-align: center; z-index: 50; }
.toast.err { background: var(--red); }
.alertov { position: fixed; inset: 0; background: rgba(var(--orange-d-rgb,217,77,0),.96); color: #fff; z-index: 60; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; padding: 24px; animation: flash 0.8s infinite alternate; }
@keyframes flash { from { background: rgba(var(--orange-d-rgb,217,77,0),.96); } to { background: rgba(var(--orange-rgb,255,94,1),.96); } }
.alertov h2 { font-size: 34px; } .alertov p { font-size: 20px; font-weight: 700; margin: 0; } .alertov .btn { background: #fff; color: var(--orange-d); min-width: 70%; min-height: 64px; font-size: 22px; }
