:root{
  --navy:#0d3b82;--navy2:#0a2f6a;--ink:#15223b;--muted:#748097;--line:#e7ebf2;
  --bg:#eef2f8;--card:#fff;--green:#14a84a;--red:#ef3340;--amber:#ff9f0a;
  --shadow:0 12px 35px rgba(20,35,70,.10);--r:22px;--safe:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px);--visual-viewport-height:100vh;--visual-viewport-offset-top:0px
}
*{box-sizing:border-box}html{background:var(--bg);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink)}
body{margin:0;min-height:100vh;min-height:100dvh;background:linear-gradient(135deg,#edf2fa,#f7f9fc)}button,input,select{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;min-height:100dvh}
.phone{width:min(100%,480px);min-height:100vh;min-height:100dvh;margin:0 auto;background:#f8fafc;position:relative;padding-bottom:88px;box-shadow:0 0 60px rgba(16,35,75,.08)}
.top-hero{background:linear-gradient(145deg,var(--navy),#133f87 70%,#0d326c);color:#fff;padding:18px 18px 28px;border-radius:0 0 30px 30px}

.search-row{display:flex;gap:10px;align-items:center}.searchbox{flex:1;height:48px;border-radius:24px;background:#fff;display:flex;align-items:center;gap:10px;padding:0 16px;box-shadow:0 8px 18px rgba(0,0,0,.08)}
.searchbox input{width:100%;min-width:0;border:0;outline:0;color:#26344f;background:transparent;font-size:16px}.searchbox input::placeholder{color:#8a94a6}.icon{font-size:20px;line-height:1}.round-btn{width:48px;height:48px;border-radius:50%;border:0;background:#fff;color:var(--navy);box-shadow:0 7px 16px rgba(0,0,0,.08);font-size:20px;display:grid;place-items:center}.round-btn.dark{background:var(--navy);color:white}
.section-head{display:flex;align-items:center;justify-content:space-between;margin:18px 0 10px;font-weight:800}.section-head h2{font-size:17px;margin:0}.link-btn{border:0;background:none;color:inherit;font-size:12px;font-weight:700;padding:6px}
.chip-row{display:flex;gap:8px;overflow:auto;scrollbar-width:none;padding:1px 0}.chip-row::-webkit-scrollbar{display:none}.chip{white-space:nowrap;border:1px solid var(--line);background:#fff;color:#26354f;border-radius:999px;padding:9px 13px;font-size:12px;font-weight:750;box-shadow:0 4px 12px rgba(20,35,70,.04)}.chip.active{border-color:var(--navy);color:var(--navy);box-shadow:0 0 0 1px var(--navy) inset}
.action-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px}.content{padding:0 16px}
.location{display:flex;align-items:center;gap:10px;margin:15px 0 11px}.location .pin{font-size:22px}.location small{display:block;color:var(--muted);font-size:11px}.location strong{display:block;font-size:13px;margin-top:2px}
.restaurant-list{display:grid;gap:12px}.restaurant-card{background:#fff;border:1px solid var(--line);border-radius:17px;padding:11px;box-shadow:0 5px 16px rgba(18,35,67,.05)}.food-art{border-radius:13px;min-height:96px;display:grid;place-items:center;font-size:54px;background:linear-gradient(145deg,#fff5d8,#ffd9b0);overflow:hidden}.food-art.taco{background:linear-gradient(145deg,#fff0c5,#ffb86b)}.food-art.wok{background:linear-gradient(145deg,#dff4d1,#ffcb78)}.food-art.burger{background:linear-gradient(145deg,#fff2cd,#ffbd75)}.food-art.breakfast{background:linear-gradient(145deg,#fff7df,#f4c88d)}.food-art.sushi{background:linear-gradient(145deg,#e5f5e8,#ffcaca)}.food-art.pizza{background:linear-gradient(145deg,#fff1d8,#ffa56b)}
.card-title{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.card-title h3{font-size:14px;line-height:1.25;margin:2px 0 5px}.heart{border:0;background:none;font-size:22px;padding:0;color:#23344d}.heart.on{color:#ef3340}.meta{color:var(--muted);font-size:11px;display:flex;gap:8px;flex-wrap:wrap;margin-top:5px}.rating{color:#ec9500;font-weight:800}.primary{border:0;background:var(--navy);color:white;border-radius:11px;padding:10px 16px;font-weight:800;font-size:12px}.primary.green{background:var(--green)}.primary.full{width:100%;padding:14px}.primary:disabled{opacity:.45;cursor:not-allowed}.ghost{border:1px solid var(--line);background:#fff;color:var(--ink);border-radius:11px;padding:10px 14px;font-weight:750}.danger{border-color:#ffd3d6;color:#c5222d;background:#fff7f8}
.bottom-nav{position:fixed;z-index:20;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,480px);padding:8px 14px calc(8px + var(--safe));background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(4,1fr)}.nav-btn{border:0;background:none;color:#798293;padding:5px 0;font-size:10px;font-weight:700}.nav-btn span{display:block;font-size:22px;margin-bottom:2px}.nav-btn.active{color:var(--navy)}
.light-head{padding:18px 16px 2px;background:#fff}.page{padding:16px 16px 105px}.page-title{font-size:24px;margin:4px 0 16px}.empty{text-align:center;padding:42px 20px;color:var(--muted)}.empty .big{font-size:54px;display:block;margin-bottom:10px}.order-list{display:grid;gap:12px}.history-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px;box-shadow:0 5px 15px rgba(20,35,70,.04)}.history-card h3{font-size:14px;margin:0 0 5px}.status-pill{display:inline-flex;border-radius:999px;padding:5px 8px;background:#eef4ff;color:var(--navy);font-size:10px;font-weight:850;text-transform:uppercase}.status-pill.completed{background:#e8f7ed;color:#16883e}.status-pill.cancelled{background:#fff0f1;color:#c72a34}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.money{font-weight:900;color:var(--ink)}
.profile-card{background:linear-gradient(145deg,var(--navy),#163d83);color:#fff;border-radius:20px;padding:20px;display:flex;align-items:center;gap:14px}.avatar{width:54px;height:54px;border-radius:50%;background:white;color:var(--navy);display:grid;place-items:center;font-size:18px;font-weight:900}.profile-card h2{margin:0;font-size:18px}.profile-card p{margin:3px 0 0;color:#d9e5f6;font-size:12px}.settings{margin-top:14px;background:#fff;border:1px solid var(--line);border-radius:17px;overflow:hidden}.setting{padding:15px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;font-size:13px}.setting:last-child{border-bottom:0}
.sheet-backdrop{position:fixed;z-index:50;left:0;right:0;top:var(--visual-viewport-offset-top,0px);height:var(--visual-viewport-height,100vh);background:rgba(8,18,36,.46);display:flex;align-items:flex-end;justify-content:center;padding-top:20px}.sheet{width:min(100%,480px);max-height:92vh;max-height:min(92dvh,calc(var(--visual-viewport-height,100vh) - 8px));overflow:auto;scroll-padding-bottom:calc(96px + var(--safe));background:#fff;border-radius:28px 28px 0 0;padding:10px 16px calc(20px + var(--safe));box-shadow:0 -15px 40px rgba(0,0,0,.18)}.grab{width:42px;height:5px;border-radius:10px;background:#d7dce4;margin:2px auto 14px}.sheet h2{font-size:20px;margin:8px 0}.sheet h3{font-size:15px;margin:18px 0 10px}.detail-hero{height:165px;border-radius:18px;display:grid;place-items:center;font-size:92px;background:linear-gradient(145deg,#fff3d5,#ffbd7a);margin-bottom:14px}.menu-list{display:grid;gap:10px}.menu-item{border:1px solid var(--line);border-radius:15px;padding:12px;display:grid;grid-template-columns:1fr auto;gap:10px}.menu-item h4{font-size:14px;margin:0 0 4px}.menu-item p{font-size:11px;color:var(--muted);margin:0 0 8px;line-height:1.4}.add{width:34px;height:34px;border:0;border-radius:10px;background:var(--navy);color:white;font-size:20px}.cart-line{padding:12px 0;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:10px}.qty{display:flex;align-items:center;gap:8px}.qty button{width:30px;height:30px;border-radius:9px;border:1px solid var(--line);background:#fff}.totals{margin:12px 0}.total-line{display:flex;justify-content:space-between;padding:6px 0;font-size:13px}.total-line.final{font-size:17px;font-weight:900;border-top:1px solid var(--line);padding-top:10px;margin-top:4px}.field{margin:11px 0}.field label{display:block;font-size:11px;font-weight:800;margin-bottom:6px;color:#4f5d73}.field input,.field select{width:100%;height:46px;border:1px solid var(--line);border-radius:12px;padding:0 12px;outline:0;background:#fff}.field input:focus,.field select:focus{border-color:#8fb1e8;box-shadow:0 0 0 3px #e9f1ff}.progress{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;margin:18px 0}.step{height:6px;border-radius:99px;background:#e7ebf2}.step.on{background:var(--navy)}.tracking{text-align:center;padding:10px 0 4px}.tracking .scooter{font-size:54px}.tracking h3{font-size:18px;margin:4px}.tracking p{color:var(--muted);font-size:12px}.toast-root{position:fixed;z-index:100;top:calc(12px + var(--safe-top));left:50%;transform:translateX(-50%);width:min(calc(100% - 24px),450px);display:grid;gap:8px}.toast{background:#14233d;color:white;border-radius:13px;padding:12px 14px;box-shadow:var(--shadow);font-size:13px;animation:pop .18s ease}.toast.error{background:#9f2430}@keyframes pop{from{transform:translateY(-7px);opacity:0}to{transform:none;opacity:1}}
.skeleton{border-radius:14px;background:linear-gradient(90deg,#edf0f5,#f7f9fb,#edf0f5);background-size:220% 100%;animation:sh 1.2s infinite;min-height:100px}@keyframes sh{to{background-position:-220% 0}}
@media(min-width:700px){body{padding:24px}.phone{min-height:calc(100vh - 48px);min-height:calc(100dvh - 48px);border-radius:34px;overflow:hidden}.bottom-nav{bottom:24px;border-radius:0 0 34px 34px}}

/* Multi-role operations UI */
.role-hero{background:linear-gradient(145deg,#0b3778,#174b9d);color:#fff;padding:18px 16px 20px;border-radius:0 0 28px 28px;box-shadow:0 14px 32px rgba(13,59,130,.16)}
.role-hero.courier{background:linear-gradient(145deg,#12386f,#0c6a8e)}
.role-title{display:flex;justify-content:space-between;align-items:center;margin:3px 0 14px}.role-title small,.eyebrow{display:block;font-size:10px;letter-spacing:.12em;font-weight:900;color:#7d8aa0}.role-hero .role-title small{color:#c8d9f3}.role-title h1{font-size:24px;margin:3px 0 0}.role-icon{width:52px;height:52px;border-radius:17px;background:rgba(255,255,255,.13);display:grid;place-items:center;font-size:27px;border:1px solid rgba(255,255,255,.12)}
.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.stat-card{background:rgba(255,255,255,.11);border:1px solid rgba(255,255,255,.11);border-radius:15px;padding:11px;min-height:72px}.stat-card span{display:block;font-size:10px;color:#d7e4f6}.stat-card b{display:block;font-size:22px;margin-top:5px}.stat-card.wide{grid-column:span 3;min-height:auto;display:flex;align-items:center;justify-content:space-between}.stat-card.wide b{font-size:18px;margin:0}
.page-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:12px}.page-head .page-title{margin:3px 0 0}.round-refresh{width:40px;height:40px;border-radius:12px;border:1px solid var(--line);background:#fff;font-size:20px;color:var(--navy)}
.ops-card{background:#fff;border:1px solid var(--line);border-radius:18px;padding:14px;box-shadow:0 6px 18px rgba(20,35,70,.05)}.ops-card h3{margin:4px 0 0;font-size:15px}.ops-address{margin:11px 0 7px;background:#f7f9fc;border-radius:11px;padding:10px;font-size:12px;font-weight:650;color:#3f4f68}.ops-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line)}.ops-footer>b{font-size:16px}.ops-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.status-pill.ready{background:#fff5df;color:#a56200}.status-pill.delivering{background:#e8f3ff;color:#0756a4}
.merchant-name{background:#edf4ff;color:#163f7a;border-radius:14px;padding:12px 14px;font-size:13px;font-weight:850;margin-bottom:12px}.menu-admin{display:grid;gap:10px}.menu-admin-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:13px;display:grid;grid-template-columns:1fr auto;gap:12px;box-shadow:0 5px 14px rgba(20,35,70,.04)}.menu-admin-card h3{font-size:14px;margin:0 0 4px}.menu-admin-card p{font-size:11px;color:var(--muted);line-height:1.45;margin:0 0 7px}.menu-admin-actions{display:flex;flex-direction:column;gap:7px;align-items:stretch;justify-content:center}.availability{border:1px solid #ffd7d9;background:#fff7f7;color:#ba2933;border-radius:10px;padding:8px 10px;font-size:11px;font-weight:850}.availability.on{border-color:#ccebd6;background:#eef9f2;color:#16853f}
.online-toggle{width:100%;border:1px solid rgba(255,255,255,.15);border-radius:17px;background:rgba(255,255,255,.10);color:#fff;padding:12px 14px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left}.online-toggle .pulse{width:13px;height:13px;border-radius:50%;background:#9aa9bf;box-shadow:0 0 0 5px rgba(255,255,255,.08)}.online-toggle.on .pulse{background:#57e28a;box-shadow:0 0 0 5px rgba(87,226,138,.16)}.online-toggle small{display:block;color:#c9d9ea;font-size:10px}.online-toggle b{display:block;margin-top:2px}.online-toggle>span:last-child{font-size:11px;font-weight:900;background:rgba(255,255,255,.12);padding:6px 8px;border-radius:9px}
.delivery-card{background:#fff;border:1px solid var(--line);border-radius:19px;padding:15px;box-shadow:0 7px 20px rgba(20,35,70,.06);margin-bottom:12px}.delivery-card.active{border-color:#b9d3f8;box-shadow:0 9px 24px rgba(13,59,130,.10)}.delivery-route{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center}.delivery-route small{display:block;color:var(--muted);font-size:10px}.delivery-route b{display:block;font-size:13px;margin-top:2px}.route-dot{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:#eef4ff}.route-dot.customer{background:#eef9f2}.route-line{height:15px;border-left:2px dashed #ccd6e4;margin-left:18px}.delivery-meta{display:flex;gap:8px;flex-wrap:wrap;margin:13px 0;color:#58667a;font-size:11px}.delivery-meta span{background:#f6f8fb;padding:6px 8px;border-radius:9px}.empty.compact{padding:24px 14px}
.role-badge{display:inline-block;margin-top:7px;background:rgba(255,255,255,.14);padding:4px 8px;border-radius:999px;font-size:10px;font-weight:850}
.progress{grid-template-columns:repeat(6,1fr)}
@media(max-width:360px){.stats-grid{grid-template-columns:repeat(2,1fr)}.stat-card.wide{grid-column:span 2}.menu-admin-card{grid-template-columns:1fr}.menu-admin-actions{flex-direction:row}}

/* Production foundation */
.auth-screen{background:linear-gradient(180deg,#0d3b82 0,#184d9a 34%,#f6f8fb 34%);padding:0 18px 28px;min-height:100vh;min-height:100dvh}.auth-hero{padding:68px 10px 36px;text-align:center;color:#fff}.brand-mark{width:66px;height:66px;border-radius:22px;margin:0 auto 14px;background:#fff;color:var(--navy);display:grid;place-items:center;font-size:30px;font-weight:950;box-shadow:0 16px 35px rgba(5,24,58,.2)}.auth-hero h1{margin:0;font-size:27px}.auth-hero p{margin:7px 0 0;color:#dbe8ff;font-size:13px}.auth-card{background:#fff;border-radius:24px;padding:20px;box-shadow:0 18px 45px rgba(19,45,87,.16)}.auth-switch{margin-top:9px}.demo-accounts{margin-top:14px;padding:12px;border-radius:14px;background:#f4f7fb;display:grid;gap:4px;font-size:11px;color:#65738a}.demo-accounts b{color:#263850;margin-bottom:2px}.field textarea{width:100%;border:1px solid var(--line);border-radius:12px;padding:11px 12px;outline:0;resize:vertical;font:inherit}.field textarea:focus{border-color:#8fb1e8;box-shadow:0 0 0 3px #e9f1ff}.setting-btn{width:100%;background:#fff;border:0;border-bottom:1px solid var(--line);text-align:left}.setting-btn:last-child{border-bottom:0}.account-actions{display:grid;gap:9px;margin-top:14px}.role-hero.admin{background:linear-gradient(145deg,#172946,#4b3d8d)}.admin-list{display:grid;gap:9px}.admin-row{background:#fff;border:1px solid var(--line);border-radius:15px;padding:12px;display:flex;align-items:center;justify-content:space-between;gap:12px}.admin-row b{display:block;font-size:13px}.admin-row small{display:block;margin-top:4px;color:var(--muted);font-size:10px}.notification-list{display:grid;gap:9px;margin-top:12px}.notification-card{border:1px solid var(--line);border-radius:14px;padding:12px;background:#fff}.notification-card.new{border-color:#a8c7f3;background:#f3f8ff}.notification-card b{font-size:13px}.notification-card p{font-size:12px;line-height:1.45;color:#4d5c73;margin:5px 0}.notification-card small{font-size:9px;color:var(--muted)}.notification-card .link-btn{display:block;margin-top:7px}.live-location{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#eef6ff;border:1px solid #cfe2fb;border-radius:14px;padding:11px;margin:12px 0}.live-location b,.live-location small{display:block}.live-location b{font-size:12px}.live-location small{font-size:9px;color:var(--muted);margin-top:3px}.map-link{display:flex;align-items:center;justify-content:center;text-decoration:none;margin-bottom:9px}.progress-labels{font-size:8px}.review-done{background:#fff9e8;border:1px solid #ffe3a1;border-radius:14px;padding:12px;margin-top:10px}.review-done b{font-size:13px;color:#8a5a00}.review-done p{font-size:12px;color:#5d6470;margin:6px 0 0}.full{width:100%}
@media(max-width:360px){.admin-row{align-items:flex-start;flex-direction:column}.admin-row .availability{width:100%}}
.location-btn{width:100%;border:0;text-align:left}.location-btn>span:last-child{margin-left:auto;font-size:22px;color:#8290a4}.address-list{display:grid;gap:8px;margin-bottom:16px}.address-option{width:100%;border:1px solid var(--line);background:#fff;border-radius:14px;padding:11px;display:grid;grid-template-columns:32px 1fr;gap:8px;text-align:left}.address-option.active{border-color:#8eb4eb;background:#f1f7ff}.address-option b,.address-option small{display:block}.address-option b{font-size:12px}.address-option small{font-size:10px;color:var(--muted);margin-top:3px}
.admin-inline-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;justify-content:flex-end}

/* Reference UI polish v1.2.1 — bám sát ảnh UX/UI người dùng cung cấp */
.ui-icon{width:21px;height:21px;display:block;flex:0 0 auto}.ui-icon.mini{width:13px;height:13px;display:inline-block;vertical-align:-2px}.customer-home{background:#fff}
.top-hero{background:linear-gradient(150deg,#0a377b 0%,#123f85 64%,#0b2f69 100%);padding:18px 18px 30px;border-radius:0;color:#fff}.active-order-home .top-hero{padding-bottom:31px}.hero-section-head{margin:18px 0 8px}.hero-section-head h2{font-size:16px;color:#fff}.hero-section-head .link-btn{color:#fff;opacity:.96}.hero-section-head .link-btn span,.recommendation-sheet .link-btn span,.discovery-content .link-btn span{font-size:18px;vertical-align:-1px;margin-left:3px}
.recommendation-sheet{background:#fff;margin-top:-20px;border-radius:28px 28px 0 0;position:relative;z-index:2;padding:1px 16px 106px}.recommendation-sheet .section-head{margin-top:20px}.recommendation-sheet .section-head h2{font-size:16px}
.home-head-light{background:#fff;padding:18px 18px 9px}.home-categories{margin-top:14px;padding-bottom:2px}.home-categories .chip{padding:8px 12px;font-size:11px}.home-categories .all-chip{width:48px;min-width:48px;padding:6px 3px;display:grid;place-items:center;gap:1px}.home-categories .all-chip .ui-icon{width:16px;height:16px}.home-categories .all-chip span{font-size:8px}.home-head-light .location{margin:15px 2px 11px;padding:0}.home-head-light .location-btn{background:transparent}.home-head-light .location .pin{color:#0d3b82;width:28px;display:grid;place-items:center}.home-head-light .location .pin .ui-icon{width:21px;height:21px;fill:#0d3b82;stroke:#0d3b82}.home-head-light .location small{font-size:10px}.home-head-light .location strong{font-size:13px;color:#1b2f55;max-width:315px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-head-light .chevron{font-size:18px;color:#1d3357;margin-left:auto}.discovery-content{padding:0 18px 106px}.discovery-content .section-head{margin:0 0 11px}.discovery-content .section-head h2{font-size:16px}.compact-list{gap:10px}.restaurant-card-compact{display:grid;grid-template-columns:106px 1fr;gap:10px;padding:7px;border-radius:14px;min-height:116px}.compact-art{height:100%;min-height:100px}.compact-art .food-art{height:100%;min-height:100%;border-radius:10px;font-size:50px}.compact-body{min-width:0;padding:4px 2px 2px 0;display:flex;flex-direction:column}.compact-body .card-title h3{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:220px}.compact-body .meta{font-size:10px;gap:7px}.compact-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:5px;margin-top:auto}.compact-meta{display:grid;gap:4px!important}.compact-meta span{display:flex;align-items:center;gap:4px;white-space:nowrap}.compact-bottom .primary{padding:9px 12px;border-radius:8px;min-width:92px}.restaurant-card .heart{font-size:21px;line-height:1}.food-art span{filter:drop-shadow(0 7px 6px rgba(70,35,0,.14))}
.bottom-nav{height:auto;min-height:75px;padding:8px 16px calc(9px + var(--safe));background:rgba(255,255,255,.985);box-shadow:0 -7px 20px rgba(31,48,78,.05)}.nav-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;padding:4px 0;color:#6f7888}.nav-icon{display:grid;place-items:center;height:24px}.nav-icon .ui-icon{width:22px;height:22px;stroke-width:1.8}.nav-label{font-size:10px;line-height:1.2}.nav-btn.active{color:#0d3b82}.nav-btn.active .ui-icon{stroke-width:2.4}
@media(min-width:700px){.customer-home.phone{width:430px;min-height:900px}.bottom-nav{width:430px}.recommendation-sheet,.discovery-content{padding-bottom:112px}}
@media(max-width:390px){.restaurant-card-compact{grid-template-columns:92px 1fr}.compact-body .card-title h3{max-width:170px}.compact-bottom .primary{min-width:78px;padding:8px 9px}.home-head-light,.top-hero{padding-left:14px;padding-right:14px}.discovery-content,.recommendation-sheet{padding-left:14px;padding-right:14px}}

/* Home visual refinement v1.2.2 — ít chi tiết hơn, CTA navy thống nhất, tăng khả năng đọc */
.active-order-home .top-hero{padding:16px 16px 27px}

.active-order-home .hero-section-head{margin:14px 0 7px}
.active-order-home .recommendation-sheet{margin-top:-18px}

.customer-home .restaurant-card{border-color:#edf0f5;box-shadow:0 7px 22px rgba(24,43,78,.065)}
.customer-home .restaurant-card .primary{background:var(--navy)}
.compact-body .meta{font-size:11px;line-height:1.35;gap:7px}
.compact-meta{font-size:11px!important}

.home-head-light .location small{font-size:10.5px}
.home-head-light .location strong{font-size:13.5px}
.home-categories .chip{font-size:11.5px}

.compact-art{aspect-ratio:1/1;min-height:0;align-self:start}
.compact-art .food-art{aspect-ratio:1/1;min-height:0;width:100%;height:100%}
.food-art{overflow:hidden;isolation:isolate}
.food-art:empty:before{content:"🍽️";display:grid;place-items:center;width:100%;height:100%;font-size:42px}

@media(max-width:390px){
  .compact-body .meta,.compact-meta{font-size:11px!important}
}


.manager-staff-entry{width:100%;border:1px solid #d8e5f7;background:#f7faff;border-radius:16px;padding:12px 13px;margin:0 0 14px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;text-align:left;color:#173f78}.manager-staff-entry>span{width:36px;height:36px;border-radius:12px;background:#e8f1ff;display:grid;place-items:center;font-size:18px}.manager-staff-entry b{display:block;font-size:13px}.manager-staff-entry small{display:block;color:#71809a;font-size:10px;margin-top:3px}.manager-staff-entry strong{font-size:20px}.manager-staff-list{margin-top:14px}

/* Account management refinement v1.3.1 — tìm kiếm/lọc, trạng thái online, PIN nhanh, phân nhà hàng */
.account-admin-screen .page{padding-top:12px}.account-admin-screen .page-head{margin-bottom:14px}.account-admin-screen .page-title{font-size:22px}
.account-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-bottom:12px}.account-summary>div{background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px 8px;text-align:center;box-shadow:0 4px 14px rgba(20,35,70,.035)}.account-summary span{display:block;font-size:9px;color:var(--muted);font-weight:700}.account-summary b{display:block;margin-top:3px;font-size:18px;color:#183a71}
.account-toolbar{display:grid;gap:8px;margin:4px 0 10px}.account-search{height:44px;border:1px solid var(--line);background:#fff;border-radius:13px;display:flex;align-items:center;gap:8px;padding:0 12px;box-shadow:0 4px 14px rgba(20,35,70,.03)}.account-search span{font-size:20px;color:#6e7e96;line-height:1}.account-search input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px}.account-search input::placeholder{color:#9aa4b5}.account-selects{display:grid;grid-template-columns:1fr 1fr;gap:8px}.account-selects select{height:40px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#33435c;padding:0 9px;font-size:11px;outline:0}.account-selects select:focus{border-color:#8fb1e8;box-shadow:0 0 0 3px #e9f1ff}
.role-filter-row{display:flex;gap:7px;overflow:auto;padding:1px 0 8px;scrollbar-width:none}.role-filter-row::-webkit-scrollbar{display:none}.filter-chip{white-space:nowrap;border:1px solid var(--line);background:#fff;border-radius:999px;padding:8px 11px;color:#5f6d82;font-size:10.5px;font-weight:800}.filter-chip.active{background:#eaf2ff;border-color:#8eb1e8;color:var(--navy);box-shadow:0 0 0 1px #8eb1e8 inset}
.account-list-head{display:flex;align-items:center;justify-content:space-between;margin:4px 1px 9px}.account-list-head b{font-size:12px}.account-list-head span{font-size:10px;color:var(--muted);font-weight:800}.account-list{display:grid;gap:10px}.account-card{background:#fff;border:1px solid var(--line);border-radius:16px;padding:12px;box-shadow:0 5px 16px rgba(20,35,70,.045)}.account-card.is-locked{background:#fbfbfc}.account-main{display:grid;grid-template-columns:42px 1fr;gap:10px;align-items:start}.account-avatar{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#e8f1ff,#d7e7ff);color:#17447f;display:grid;place-items:center;font-weight:900;font-size:13px}.account-avatar.small{width:38px;height:38px;border-radius:12px}.account-copy{min-width:0}.account-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.account-title b{font-size:13px;line-height:1.25}.account-copy>small{display:block;margin-top:3px;color:var(--muted);font-size:10.5px}.account-title .role-badge{margin:0;padding:4px 7px;background:#edf3fb;color:#4d627e;font-size:8.5px}.account-title .role-customer{background:#edf5ff;color:#25619a}.account-title .role-courier{background:#fff4df;color:#9a6209}.account-title .role-staff{background:#eef8f2;color:#277346}.account-title .role-manager{background:#eeeaff;color:#5a4aa0}.account-title .role-admin{background:#fceaf0;color:#9e3459}
.account-tags{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.presence-badge,.store-badge,.protected-badge{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 7px;font-size:8.8px;font-weight:800}.presence-badge{background:#f3f5f8;color:#69758a}.presence-badge i{width:7px;height:7px;border-radius:50%;background:#98a2b2}.presence-badge.online{background:#ebf9f0;color:#14743a}.presence-badge.online i{background:#19ad50;box-shadow:0 0 0 3px rgba(25,173,80,.12)}.presence-badge.locked{background:#fff0f1;color:#b52a34}.presence-badge.locked i{background:#d83f49}.store-badge{max-width:100%;background:#edf3ff;color:#345b8e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.protected-badge{background:#f0ecff;color:#5c4a9e;justify-content:center}
.account-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:11px}.ghost.compact{padding:8px 10px;border-radius:9px;font-size:9.5px}.account-state{border:0;border-radius:9px;padding:8px 10px;font-size:9.5px;font-weight:850}.account-state.active{background:#fff0f1;color:#b32934}.account-state.locked{background:#eaf8ef;color:#17813e}.account-actions .protected-badge{margin-left:auto}
.account-mini{display:flex;align-items:center;gap:10px;background:#f7f9fc;border:1px solid var(--line);border-radius:14px;padding:10px;margin:10px 0}.account-mini b,.account-mini small{display:block}.account-mini b{font-size:12px}.account-mini small{font-size:10px;color:var(--muted);margin-top:2px}.form-hint{font-size:10px;line-height:1.45;color:#7a8598;margin:4px 1px 12px}.protected-note{border:1px solid #dcd5fb;background:#f6f3ff;color:#5a4b90;border-radius:12px;padding:10px 11px;font-size:10px;line-height:1.45;margin:10px 0 12px}.protected-note.neutral{border-color:#dce7f6;background:#f6f9fd;color:#526781}.account-sheet-meta{margin-bottom:12px!important}.sheet-title{display:flex;justify-content:space-between;align-items:flex-start}
.manager-staff-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:10px 0}.manager-staff-summary span{background:#f6f9fd;border:1px solid #e0e8f3;border-radius:12px;padding:8px;text-align:center;font-size:8.5px;color:#75839a;font-weight:750}.manager-staff-summary b{display:block;font-size:16px;color:#193f76;margin-bottom:2px}.sheet-toolbar{margin-top:8px}.manager-staff-list{margin-top:0}
@media(max-width:380px){.account-summary{grid-template-columns:repeat(2,1fr)}.account-selects{grid-template-columns:1fr}.account-main{grid-template-columns:38px 1fr}.account-avatar{width:38px;height:38px}.account-actions{gap:6px}.ghost.compact,.account-state{padding:7px 8px;font-size:9px}}

/* v1.4.0 — Quản lý vận hành */
.manager-quick-grid{display:grid;gap:9px;margin-bottom:14px}.manager-quick-grid .manager-staff-entry{margin:0}.page-head-actions{display:flex;align-items:center;gap:7px}.order-filter-row{margin:0 0 10px}.ops-courier{margin-top:8px;padding:8px 10px;border-radius:10px;background:#eef6ff;color:#315374;font-size:10.5px;font-weight:750}.menu-toolbar{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}.menu-toolbar .merchant-name{margin:0;flex:1}.compact-select{min-width:0;max-width:68%;border:1px solid var(--line);border-radius:12px;padding:10px 11px;background:#fff;color:var(--ink);font:inherit;font-size:12px;font-weight:800}.menu-category-row{margin-bottom:10px}.menu-card-top{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-bottom:5px}.menu-category-badge,.popular-badge{display:inline-flex;border-radius:999px;padding:4px 7px;font-size:9px;font-weight:850}.menu-category-badge{background:#eef4ff;color:#17447d}.popular-badge{background:#fff5df;color:#9a5c00}.category-admin-list{display:grid;gap:9px;margin-top:12px}.category-admin-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid var(--line);border-radius:14px;padding:11px 12px;background:#fff}.category-admin-row b{display:block;font-size:13px}.category-admin-row small{display:block;color:var(--muted);font-size:10px;margin-top:3px}.manager-tools-page{padding-top:10px}.manager-tool-list{display:grid;gap:10px}.manager-tool-card{width:100%;border:1px solid var(--line);background:#fff;border-radius:18px;padding:14px;display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;text-align:left;color:var(--ink);box-shadow:0 6px 18px rgba(20,35,70,.05)}.manager-tool-card:active{transform:scale(.99)}.manager-tool-icon{width:44px;height:44px;border-radius:14px;background:#eef4ff;display:grid;place-items:center;font-size:21px}.manager-tool-card b{display:block;font-size:14px}.manager-tool-card small{display:block;color:var(--muted);font-size:10.5px;line-height:1.4;margin-top:3px}.manager-tool-card strong{font-size:22px;color:#8190a6}.manager-tool-summary{margin-top:18px}.compact-stats{grid-template-columns:repeat(2,1fr)}.dispatch-summary{margin:12px 0 16px}.dispatch-list{display:grid;gap:10px}.dispatch-card{border:1px solid var(--line);border-radius:17px;background:#fff;padding:13px;box-shadow:0 5px 16px rgba(20,35,70,.05)}.dispatch-card h3{font-size:14px;margin:4px 0 0}.dispatch-assignee{display:flex;align-items:center;gap:9px;padding:9px 10px;background:#f3f7fd;border-radius:12px;margin-top:10px}.dispatch-assignee b,.dispatch-assignee small{display:block}.dispatch-assignee b{font-size:12px}.dispatch-assignee small{font-size:9.5px;color:var(--muted);margin-top:2px}.dispatch-empty{padding:9px 10px;border-radius:12px;background:#fff8e8;color:#986000;font-size:11px;font-weight:800;margin-top:10px}.dispatch-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:11px}.courier-roster{display:grid;gap:8px}.courier-roster-row{display:grid;grid-template-columns:auto 1fr auto;gap:9px;align-items:center;border:1px solid var(--line);border-radius:13px;padding:10px;background:#fff}.courier-roster-row b,.courier-roster-row small{display:block}.courier-roster-row b{font-size:12px}.courier-roster-row small{font-size:9px;color:var(--muted);margin-top:2px}.courier-state{border-radius:999px;padding:5px 7px;font-size:8.5px;font-weight:850;white-space:nowrap}.courier-state.free{background:#eaf8ef;color:#16753a}.courier-state.busy{background:#eaf3ff;color:#1658a4}.courier-state.off{background:#f1f3f6;color:#7a8391}.customer-menu-group{margin-top:14px}.customer-menu-group>h3{font-size:14px;margin:0 0 8px;color:#243a5a}
@media(max-width:360px){.menu-toolbar{align-items:stretch;flex-direction:column}.compact-select{max-width:none;width:100%}.page-head-actions{gap:5px}.page-head-actions .ghost.compact{padding:8px}.dispatch-actions>*{flex:1}.courier-roster-row{grid-template-columns:auto 1fr}.courier-state{grid-column:2}}

/* v1.4.1 — Home pixel-match theo ảnh tham chiếu người dùng 2026-10-07 */
.customer-home.phone{--home-pad:16px;max-width:430px;background:#fff;overflow-x:hidden}

/* v1.7.15 — Compact customer header: logo trái, tìm kiếm + giỏ hàng bên phải */
.customer-app-header{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px}.customer-page-head{padding-bottom:10px;border-bottom:1px solid #f0f3f7}.customer-page-head .customer-app-header{margin-bottom:0}.search-head .search-row{margin-top:12px}
.customer-brand{display:flex;align-items:center;gap:9px;min-width:0;color:var(--navy)}
.customer-brand-logo{width:34px;height:34px;border-radius:10px;display:block;box-shadow:0 4px 12px rgba(13,59,130,.15)}
.customer-brand b{font-size:16px;letter-spacing:-.3px;white-space:nowrap}
.customer-header-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.customer-header-icon{width:44px;height:44px;border:1px solid #e4e9f1;border-radius:50%;background:#fff;color:var(--navy);display:grid;place-items:center;position:relative;padding:0;box-shadow:0 4px 12px rgba(20,35,70,.05)}
.customer-header-icon .ui-icon{width:21px;height:21px;stroke-width:2}
.customer-header-icon:active{transform:scale(.96)}
.customer-header-icon:focus-visible{outline:3px solid #b7cff4;outline-offset:2px}
.customer-cart-badge{position:absolute;right:-3px;top:-4px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#ef3340;color:#fff;border:2px solid #fff;display:grid;place-items:center;font-size:8.5px;font-weight:900;line-height:1}
.customer-app-header.dark .customer-brand{color:#fff}
.customer-app-header.dark .customer-brand-logo{outline:2px solid rgba(255,255,255,.92);outline-offset:1px;box-shadow:none}
.customer-app-header.dark .customer-header-icon{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.18);color:#fff;box-shadow:none}
.customer-app-header.dark .customer-cart-badge{border-color:#0d3b82}

.customer-home .section-head h2{letter-spacing:-.2px}
.customer-home .link-btn{font-size:11.5px;padding:4px 0}
.customer-home .primary{height:37px;min-width:104px;border-radius:8px;padding:0 15px;font-size:11px;line-height:37px}
.customer-home .heart{font-family:Arial,sans-serif;font-size:23px;font-weight:400;color:#16243a}
.customer-home .restaurant-card{border:1px solid #e8edf4;background:#fff;box-shadow:0 5px 17px rgba(24,44,78,.055)}

/* Mẫu trái: có đơn đang giao */
.active-order-home .top-hero{padding:14px var(--home-pad) 28px;background:linear-gradient(151deg,#07306f 0%,#0e4087 62%,#0a326e 100%)}

.active-order-home .hero-section-head{margin:12px 0 7px}
.active-order-home .hero-section-head h2{font-size:16px}
.active-order-compact{width:100%;min-height:92px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.09);color:#fff;padding:11px 12px;text-align:left;display:block;box-shadow:none}
.active-order-compact-main{display:flex;align-items:center;justify-content:space-between;gap:10px}
.active-order-state,.active-order-eta{display:inline-flex;align-items:center;gap:6px;min-width:0}
.active-order-state .ui-icon{width:19px;height:19px}.active-order-state b{font-size:13px}.active-order-eta{color:#dce8f8}.active-order-eta b{font-size:14px;white-space:nowrap}
.active-order-compact p{margin:6px 0 7px;color:#dbe6f7;font-size:10.5px;line-height:1.3}
.active-order-follow{display:flex;align-items:center;gap:6px;font-size:11.5px;color:#fff}.active-order-follow strong{margin-left:auto;font-size:19px;line-height:1}.active-order-follow .ui-icon{width:14px;height:14px}
.active-order-compact:active{transform:scale(.995)}
.active-order-compact:focus-visible{outline:2px solid #fff;outline-offset:3px}
.active-order-home .recommendation-sheet{margin-top:-22px;border-radius:26px 26px 0 0;padding:1px var(--home-pad) 103px}
.active-order-home .recommendation-sheet .section-head{margin:17px 2px 9px}
.active-order-home .recommendation-sheet .section-head h2{font-size:16px}

.reference-food{background:#f4f4f4!important;overflow:hidden}
.reference-food img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}


/* Mẫu phải: chưa có đơn */
.discovery-home .home-head-light{padding:17px var(--home-pad) 9px;background:#fff}

.discovery-home .home-category-scroller{position:relative;margin-top:13px}
.discovery-home .home-category-scroller:after{content:"";position:absolute;top:0;right:0;width:28px;height:100%;pointer-events:none;background:linear-gradient(90deg,rgba(255,255,255,0),#fff 82%)}
.discovery-home .home-categories{margin-top:0;gap:7px;padding:1px 30px 3px 0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;scroll-snap-type:x proximity;overscroll-behavior-inline:contain}
.discovery-home .home-categories::-webkit-scrollbar{display:none}
.discovery-home .home-categories .chip{height:35px;padding:0 10px;border-radius:18px;font-size:10.5px;gap:5px;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 3px 10px rgba(20,35,70,.035);scroll-snap-align:start}
.discovery-home .home-categories .chip:first-child{border-color:#0b53c3;box-shadow:0 0 0 1px #0b53c3 inset}
.discovery-home .home-categories .cat-emoji{font-size:15px;line-height:1}
.discovery-home .home-categories .all-chip{width:45px;min-width:45px;height:35px;padding:3px 2px;display:grid;align-content:center;gap:0}
.discovery-home .home-categories .all-chip span{font-size:7.5px}
.discovery-home .home-head-light .home-delivery-row{height:52px;margin:10px 0 7px;padding:0 11px;gap:9px;border:1px solid #e6ebf3;border-radius:14px;background:#f8fafd;box-shadow:0 3px 10px rgba(20,35,70,.025)}
.discovery-home .home-delivery-row:active{background:#f2f6fc}
.discovery-home .home-delivery-row:focus-visible{outline:3px solid #c7dbf6;outline-offset:2px}
.discovery-home .home-delivery-row .pin{width:27px;flex:0 0 27px}
.discovery-home .home-delivery-copy{min-width:0;flex:1}
.discovery-home .home-delivery-row small{font-size:9.8px;line-height:1.1}
.discovery-home .home-delivery-row strong{font-size:13.2px;line-height:1.18;margin-top:2px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.discovery-home .home-delivery-row .chevron{font-size:19px;line-height:1;color:#6d7b91;margin-left:auto}
.discovery-home .discovery-content{padding:0 var(--home-pad) 103px}
.home-partner-banner{width:100%;height:62px;margin:8px 0 12px;padding:7px 10px;border:1px solid #dce7f5;border-radius:14px;background:linear-gradient(105deg,#f4f8ff 0%,#eef5ff 62%,#e6f0ff 100%);color:#153765;display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:center;gap:10px;text-align:left;box-shadow:0 4px 14px rgba(13,59,130,.045)}
.home-partner-banner:active{transform:scale(.995);background:#edf4ff}.home-partner-banner:focus-visible{outline:3px solid #bfd5f5;outline-offset:2px}.home-partner-mark{width:38px;height:38px;border-radius:12px;background:#0d3b82;color:#fff;display:grid;place-items:center;font-size:11px;font-weight:900;letter-spacing:.2px;box-shadow:0 5px 12px rgba(13,59,130,.17)}
.home-partner-copy{min-width:0;display:grid;gap:1px}.home-partner-copy small{font-size:8px;font-weight:900;letter-spacing:.55px;color:#6e86a7}.home-partner-copy b{font-size:12.5px;line-height:1.15;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-partner-copy span{font-size:9.4px;color:#6d7d94;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.home-partner-arrow{font-size:20px;line-height:1;color:#315b91;padding:0 2px}
.compact-art{position:relative}.food-highlight-badge{position:absolute;z-index:2;left:6px;top:6px;max-width:calc(100% - 12px);height:20px;padding:0 7px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:8.5px;font-weight:900;line-height:20px;letter-spacing:.05px;box-shadow:0 3px 9px rgba(18,35,67,.16);pointer-events:none}.food-highlight-badge.sale{background:#ef3340}.food-highlight-badge.free{background:#16934a}.food-highlight-badge.featured{background:#f39a13}
.discovery-home .discovery-content>.section-head{margin:0 0 10px}
.discovery-home .discovery-content>.section-head h2{font-size:16px}
.discovery-home .compact-list{gap:9px}
.discovery-home .restaurant-card-compact{height:104px;min-height:104px;grid-template-columns:92px minmax(0,1fr);gap:8px;padding:6px;border-radius:13px}
.discovery-home .compact-art{width:92px;height:92px;aspect-ratio:1/1;align-self:center}
.discovery-home .compact-art .food-art{width:92px;height:92px;aspect-ratio:1/1;border-radius:9px}
.discovery-home .compact-body{padding:3px 2px 2px 0}
.discovery-home .compact-body .card-title{min-height:21px}
.discovery-home .compact-body .card-title h3{font-size:12.1px;line-height:1.15;max-width:none;margin:0 0 2px}
.discovery-home .compact-body .meta{font-size:9.9px;line-height:1.2;gap:6px;margin-top:1px}
.discovery-home .compact-bottom{align-items:flex-end;gap:5px;margin-top:auto}
.discovery-home .compact-meta{gap:3px!important;font-size:9.8px!important;line-height:1.15}
.discovery-home .compact-meta .ui-icon{width:11px;height:11px}
.discovery-home .compact-bottom .primary{height:31px;line-height:31px;min-width:76px;padding:0 8px;background:#073777;font-size:10.2px}

/* Bottom navigation đúng tỷ lệ hai mẫu */
.customer-home .bottom-nav{min-height:78px;height:78px;padding:8px 18px calc(8px + var(--safe));border-top:1px solid #eef1f5;background:rgba(255,255,255,.99);box-shadow:0 -5px 14px rgba(31,48,78,.035)}
.customer-home .nav-btn{gap:3px;padding:3px 0;font-size:10px}
.customer-home .nav-icon{height:25px}
.customer-home .nav-icon .ui-icon{width:22px;height:22px}
.customer-home .nav-label{font-size:9.8px}
.customer-home .nav-btn.active{color:#0a3b86}

@media(min-width:700px){
  .customer-home.phone{width:430px;min-height:900px}
  .customer-home .bottom-nav{width:430px}
}
@media(max-width:390px){
  .customer-home.phone{--home-pad:14px}
  .active-order-compact{min-height:102px;padding:12px}
  .discovery-home .home-categories .chip{padding:0 8px;font-size:9.8px}
  .discovery-home .restaurant-card-compact{grid-template-columns:86px minmax(0,1fr);height:98px;min-height:98px}
  .discovery-home .compact-art,.discovery-home .compact-art .food-art{width:86px;height:86px}
  .discovery-home .compact-body .card-title h3{max-width:none;font-size:11.7px}
  .discovery-home .compact-bottom .primary{min-width:70px;height:30px;line-height:30px;padding:0 7px}
}

/* v1.4.2 — hiệu chỉnh theo ảnh chụp LIVE: tim, card và khoảng cách */
.customer-home .heart{width:28px;height:28px;flex:0 0 28px;padding:0;display:grid;place-items:center;color:#53647a;background:transparent;border:0}
.customer-home .heart .ui-icon{width:19px;height:19px;stroke-width:1.75}
.customer-home .heart.on{color:#ef3340}
.customer-home .heart.on .ui-icon{fill:currentColor}

.active-order-home .recommendation-sheet{border-radius:30px 30px 0 0}


.discovery-home .compact-body .card-title{align-items:flex-start}
.discovery-home .compact-body .card-title h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:2px}
.discovery-home .compact-body .meta{font-size:10.5px}
.discovery-home .compact-bottom .primary{height:39px;line-height:39px;min-width:96px;border-radius:10px;font-size:11.2px}

.customer-home .nav-btn{color:#69768a}
.customer-home .nav-btn.active .nav-icon .ui-icon{width:24px;height:24px;stroke-width:2.05}
.customer-home .nav-btn.active .nav-label{font-weight:850}

/* v1.5.0 — Menu tùy chọn + giỏ hàng/checkout ít chạm */
.menu-item{position:relative;min-height:76px;padding:10px 10px 10px 11px;align-items:center;transition:border-color .16s ease,box-shadow .16s ease,transform .12s ease}.menu-item:active{transform:scale(.995)}.menu-item:focus-visible{outline:3px solid #bfd5f2;outline-offset:1px;border-color:#8eb1e8}.menu-item.has-options{border-color:#d9e5f5}.menu-item-main{min-width:0}.menu-item-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.menu-item-title h4{margin:0;font-size:13.2px;line-height:1.25}.menu-item p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;margin:4px 0 7px;font-size:10.5px;line-height:1.35}.menu-item-price{display:block;font-size:12.5px;color:#1d304c}.menu-custom-tag,.menu-option-badge,.menu-item-badge{display:inline-flex;align-items:center;border-radius:999px;font-size:8px;font-weight:850;padding:4px 6px;line-height:1}.menu-custom-tag,.menu-option-badge{background:#eef4ff;color:#18477f}.menu-item-badge.popular{background:#fff3d8;color:#9a5c00}.add{flex:0 0 34px;width:34px;height:34px;border-radius:10px;box-shadow:0 5px 14px rgba(13,59,130,.16)}.menu-quick-add{font-weight:900;transition:transform .12s ease,opacity .12s ease}.menu-quick-add:active{transform:scale(.94)}.menu-item.has-options .menu-quick-add{background:#eef4ff;color:var(--navy);box-shadow:none;border:1px solid #d7e4f4;font-size:22px}
.item-custom-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.item-custom-head h2{margin:5px 0 5px}.item-custom-head p{margin:0;color:var(--muted);font-size:11px;line-height:1.45;max-width:310px}.item-base-price{white-space:nowrap;color:var(--navy);font-size:15px;margin-top:26px}.choice-section{border-top:1px solid var(--line);padding-top:14px;margin-top:13px}.choice-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.choice-head b{font-size:13px}.choice-head span{font-size:9px;font-weight:800;color:#75839a;background:#f3f6fa;padding:4px 7px;border-radius:999px}.choice-list{display:grid;gap:7px}.choice-row{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;border:1px solid #e3e9f2;border-radius:13px;padding:10px 11px;background:#fff;cursor:pointer}.choice-row input{position:absolute;opacity:0;pointer-events:none}.choice-row span b,.choice-row span small{display:block}.choice-row span b{font-size:12px}.choice-row span small{font-size:9px;color:var(--muted);margin-top:2px}.choice-row i{width:19px;height:19px;border:1.5px solid #b5c0cf;border-radius:50%;position:relative}.choice-row:has(input[type="radio"]:checked){border-color:#83a9df;background:#f6f9ff}.choice-row:has(input[type="radio"]:checked) i{border-color:var(--navy);box-shadow:inset 0 0 0 4px #fff;background:var(--navy)}.choice-row:has(input[type="checkbox"]:checked){border-color:#83a9df;background:#f6f9ff}.choice-row:has(input[type="checkbox"]:checked) i{border-radius:5px;background:var(--navy);border-color:var(--navy)}.choice-row:has(input[type="checkbox"]:checked) i:after{content:"✓";position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:12px;font-style:normal;font-weight:900}.item-note{border-top:1px solid var(--line);padding-top:14px;margin-top:14px}.item-custom-footer{position:sticky;bottom:calc(-20px - var(--safe));z-index:4;margin:17px -16px calc(-20px - var(--safe));padding:11px 16px calc(12px + var(--safe));background:rgba(255,255,255,.98);border-top:1px solid var(--line);display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center}.qty-large button{width:38px;height:38px}.qty-large b{min-width:24px;text-align:center}.item-add-btn{height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 16px}.item-add-btn b{font-size:12px}
.cart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.cart-head h2{margin-top:5px}.cart-count{border-radius:999px;background:#eef4ff;color:#18477f;padding:6px 9px;font-size:9.5px;font-weight:850;margin-top:8px}.cart-lines{display:grid;gap:9px;margin-top:13px}.cart-line-v2{border:1px solid #e5eaf2;border-radius:15px;padding:12px;background:#fff}.cart-line-main>b{display:block;font-size:13px}.cart-line-main>small{display:block;color:var(--muted);font-size:9.5px;line-height:1.4;margin-top:3px}.cart-note{color:#6b5777!important;font-style:italic}.cart-line-price{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:8px}.cart-line-price span{font-size:10px;color:var(--muted)}.cart-line-price strong{font-size:12px}.cart-line-actions{display:flex;align-items:center;gap:8px;margin-top:9px}.cart-line-actions .link-btn{padding:5px 2px;margin-right:auto}.cart-remove{width:29px;height:29px;border:0;border-radius:9px;background:#fff1f2;color:#bf2c35;font-size:18px;line-height:1}.cart-totals{background:#f7f9fc;border-radius:14px;padding:8px 11px;margin-top:13px}.checkout-main{height:46px;font-size:13px;margin-top:11px}
.checkout-head h2{margin:4px 0}.checkout-head p{margin:0 0 13px;color:var(--muted);font-size:11px}.checkout-card{border:1px solid #e2e8f1;border-radius:15px;padding:12px;margin:10px 0;background:#fff}.checkout-card-title{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-bottom:9px}.checkout-card-title>div>b,.checkout-card-title>div>small{display:block}.checkout-card-title>div>small{margin-top:2px;color:var(--muted);font-size:9px}.checkout-card-title b{font-size:12px}.checkout-field input,.checkout-address,.promo-entry input{width:100%;height:43px;border:1px solid var(--line);border-radius:11px;padding:0 11px;outline:0;background:#fff}.checkout-field input:focus,.checkout-address:focus,.promo-entry input:focus{border-color:#8fb1e8;box-shadow:0 0 0 3px #e9f1ff}.checkout-field input.invalid,.checkout-address.invalid{border-color:#d85d68;background:#fff8f8;box-shadow:0 0 0 3px #fff0f1}.checkout-field-error{display:block;color:#b32734;font-size:10.5px;font-weight:750;line-height:1.35;margin:4px 2px 0}.checkout-field-error[hidden]{display:none}.checkout-recipient-summary{display:flex;align-items:center;gap:9px;background:#f7f9fc;border-radius:11px;padding:9px 10px}.checkout-recipient-summary b,.checkout-recipient-summary small{display:block}.checkout-recipient-summary b{font-size:11.5px}.checkout-recipient-summary small{margin-top:2px;font-size:10.5px;color:var(--muted)}.checkout-recipient-avatar{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#eaf2ff;color:#154987;font-size:10px;font-weight:900}.payment-choice{display:grid;gap:7px}.payment-option{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:center;border:1px solid #e2e8f1;border-radius:12px;padding:10px;cursor:pointer}.payment-option input{accent-color:var(--navy)}.payment-option span b,.payment-option span small{display:block}.payment-option span b{font-size:11.5px}.payment-option span small{font-size:10.5px;color:var(--muted);margin-top:2px}.payment-option.active{border-color:#83a9df;background:#f6f9ff}.payment-option.disabled{opacity:.48;cursor:not-allowed}.checkout-summary-card{padding-bottom:9px}.checkout-benefits{display:grid;gap:7px;margin-bottom:8px}.checkout-benefit-row{border:1px solid #e7ecf3;border-radius:11px}.checkout-totals{margin:6px 2px 0}.checkout-submit-bar{position:sticky;z-index:4;bottom:calc(-20px - var(--safe));margin:14px -16px calc(-20px - var(--safe));padding:10px 16px calc(10px + var(--safe));background:rgba(255,255,255,.97);border-top:1px solid #e3e9f1;box-shadow:0 -8px 20px rgba(24,49,82,.08);backdrop-filter:blur(8px)}.checkout-submit-bar .checkout-main{margin:0}.checkout-submit-bar>small{display:block;text-align:center;color:#7c8798;font-size:10px;line-height:1.4;margin:6px 4px 0}.order-item-detail{padding:5px 0;border-bottom:1px dashed #e8ecf2}.order-item-detail:last-child{border-bottom:0}.order-item-detail small{display:block;color:var(--muted);font-size:9.5px;padding:0 2px 4px}
.option-admin-box{border:1px solid #dfe7f2;border-radius:16px;padding:12px;margin:14px 0;background:#f9fbfe}.option-admin-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:5px}.option-admin-head b{font-size:13px}.option-admin-head small{font-size:9px;color:var(--muted)}.option-admin-grid{display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:end}.switch-field{display:flex;align-items:center;gap:8px;min-height:46px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:0 11px;font-size:10px;font-weight:750}.switch-field input{accent-color:var(--navy)}.menu-option-badge{background:#edf8f1;color:#237344}
@media(max-width:380px){.item-custom-head{display:block}.item-base-price{display:block;margin-top:7px}.option-admin-grid{grid-template-columns:1fr}.item-custom-footer{grid-template-columns:110px 1fr}.choice-row{padding:9px}.cart-line-actions{gap:6px}}

/* v1.5.2 — Audit log + backup operations */
.audit-list{display:grid;gap:9px;margin-top:12px}.audit-card{border:1px solid var(--line);border-radius:15px;background:#fff;padding:11px 12px;box-shadow:0 4px 14px rgba(20,35,70,.04)}.audit-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.audit-head b{display:block;font-size:12.5px}.audit-head small{display:block;margin-top:3px;color:var(--muted);font-size:9.5px;line-height:1.35}.audit-head time{font-size:8.8px;color:#8a96a8;white-space:nowrap}.audit-card>p{margin:8px 0 0;font-size:11px;line-height:1.45;color:#44556e}.audit-details{margin-top:9px;border-top:1px dashed #dfe6f0;padding-top:8px}.audit-details summary{cursor:pointer;color:#315d91;font-size:10px;font-weight:800}.audit-details>div{margin-top:8px}.audit-details b{font-size:9px;color:#65758c}.audit-details pre{max-height:190px;overflow:auto;white-space:pre-wrap;word-break:break-word;background:#f6f8fb;border:1px solid #e2e8f1;border-radius:10px;padding:8px;font:9px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;color:#42516a}.backup-policy{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:12px 0}.backup-policy span{border:1px solid #e0e8f3;background:#f6f9fd;border-radius:12px;padding:9px 6px;text-align:center;color:#75839a;font-size:8.5px;font-weight:750}.backup-policy b{display:block;color:#193f76;font-size:15px;margin-bottom:2px}.backup-list{display:grid;gap:9px;margin-top:12px}.backup-row{border:1px solid var(--line);border-radius:14px;background:#fff;padding:11px 12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center}.backup-row b{display:block;font-size:10.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.backup-row small{display:block;color:var(--muted);font-size:9px;margin-top:4px}.backup-row .admin-inline-actions{justify-content:flex-end}.backup-row a.ghost{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}.protected-note code{font:9px/1.4 ui-monospace,SFMono-Regular,Consolas,monospace;background:#eaf0f8;border-radius:5px;padding:1px 4px}
@media(max-width:380px){.audit-head{display:block}.audit-head time{display:block;margin-top:4px}.backup-row{grid-template-columns:1fr}.backup-row .admin-inline-actions{justify-content:flex-start}.backup-policy{gap:5px}}

/* v1.6.0 — Web Push + tùy chọn thông báo nền */
.push-status-card{display:grid;gap:4px;border:1px solid #e0e7f1;background:#f7f9fc;border-radius:15px;padding:12px 13px;margin:11px 0}.push-status-card.on{border-color:#b9dfc7;background:#f2fbf5}.push-status-card b{font-size:12.5px;color:#20324d}.push-status-card.on b{color:#176b38}.push-status-card small{font-size:9.5px;line-height:1.4;color:var(--muted)}
.push-pref-list{display:grid;gap:8px;margin-top:14px}.push-pref{display:grid;grid-template-columns:1fr auto;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:11px 12px;background:#fff}.push-pref span b,.push-pref span small{display:block}.push-pref span b{font-size:11.5px;color:#263850}.push-pref span small{font-size:9px;color:var(--muted);line-height:1.35;margin-top:3px}.push-pref input{width:20px;height:20px;accent-color:var(--navy)}.push-help{display:block;margin:11px 3px 0;line-height:1.5}.primary:disabled,.ghost:disabled{opacity:.48;cursor:not-allowed}

/* v1.6.1 — địa chỉ + bản đồ + phí giao hàng thông minh */
.checkout-location-actions{display:flex;align-items:center;gap:10px}.checkout-map-wrap{margin-top:10px}.map-picker-shell{margin-top:8px}.map-picker{position:relative;width:100%;height:210px;overflow:hidden;border:1px solid #dce4ef;border-radius:15px;background:#edf2f7;touch-action:manipulation;cursor:crosshair}.map-tiles{position:absolute;inset:0;overflow:hidden}.map-tiles img{position:absolute;width:256px;height:256px;max-width:none;user-select:none;-webkit-user-drag:none}.map-pin{position:absolute;left:50%;top:50%;width:38px;height:38px;transform:translate(-50%,-92%);display:grid;place-items:center;color:#0d3b82;filter:drop-shadow(0 3px 3px rgba(0,0,0,.25));pointer-events:none}.map-pin .ui-icon{width:34px;height:34px;fill:#fff;stroke-width:2.2}.map-zoom{position:absolute;right:9px;top:9px;display:grid;gap:5px}.map-zoom button{width:44px;height:44px;border:1px solid #d6dee9;border-radius:9px;background:#fff;color:#173a78;font-size:20px;font-weight:800;box-shadow:0 3px 10px rgba(25,45,75,.13)}.map-attribution{text-align:right;color:#7d8898;font-size:8.5px;margin:5px 3px 0}.delivery-quote{margin-top:10px;border-radius:13px;padding:10px 11px;display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #dfe7f1;background:#f7f9fc}.delivery-quote b,.delivery-quote small{display:block}.delivery-quote b{font-size:11px}.delivery-quote small{font-size:9px;color:#6f7c8f;line-height:1.4;margin-top:3px}.delivery-quote>span{font-size:12px;font-weight:850;white-space:nowrap}.delivery-quote.ok{border-color:#bfe4ce;background:#f0fbf4}.delivery-quote.ok>span{color:#18844a}.delivery-quote.danger{border-color:#f0bec2;background:#fff4f4;color:#a21e2b}.delivery-quote.loading{border-color:#cbdaf0;background:#f3f7fd}.address-geo-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.smart-address-list{gap:10px}.address-option.smart{display:block;padding:0;overflow:hidden}.address-select{width:100%;border:0;background:transparent;padding:12px;display:grid;grid-template-columns:32px 1fr;gap:8px;text-align:left}.address-option.smart em{display:inline-block;font-style:normal;font-size:8.5px;font-weight:750;color:#216d4a;background:#eaf7ef;border-radius:999px;padding:3px 6px;margin-top:5px}.address-actions{display:flex;justify-content:flex-end;gap:12px;border-top:1px solid #edf0f4;padding:7px 11px}.address-actions .danger{color:#b12c36}.check-line{display:flex;align-items:center;gap:8px;margin:10px 2px;font-size:11px;color:#46566d}.check-line input{accent-color:var(--navy)}.delivery-policy-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.delivery-policy-preview{background:#f5f8fc;border:1px solid #e1e8f1;border-radius:13px;padding:10px 11px;margin:10px 0 12px;font-size:10px;line-height:1.5;color:#5e6b7e}.delivery-policy-preview b{color:#223d62}.route-distance{font-weight:750;color:#2f5d8f}
@media(max-width:380px){.map-picker{height:190px}.delivery-policy-grid{grid-template-columns:1fr}.checkout-location-actions{gap:6px}.checkout-location-actions .link-btn{font-size:9px}.address-geo-actions{grid-template-columns:1fr}.delivery-quote{align-items:flex-start;flex-direction:column}.delivery-quote>span{align-self:flex-end}}

/* v1.7.0 — khuyến mãi nâng cao + khách hàng thân thiết */
.mini-check{display:inline-flex;align-items:center;gap:6px;font-size:9.5px;font-weight:800;color:#52647d}.mini-check input{accent-color:var(--navy)}
.promo-choice-list{display:grid;gap:7px;margin-top:9px}.promo-choice{border:1px solid #dfe7f2;background:#fff;border-radius:12px;padding:9px 10px;text-align:left;color:var(--ink);display:flex;align-items:center;justify-content:space-between;gap:8px}.promo-choice b{font-size:10px;color:#17447d}.promo-choice small{font-size:8.8px;color:var(--muted);text-align:right}.promo-choice.active{border-color:#7da3da;background:#f1f6ff;box-shadow:0 0 0 2px #e6effd}.total-line.savings b{color:#168048}
.loyalty-checkout{background:linear-gradient(180deg,#fffdf7,#fff)}.tier-pill{display:inline-flex;padding:4px 8px;border-radius:999px;font-size:8.5px;font-weight:900}.tier-member{background:#eef3f8;color:#52657b}.tier-silver{background:#eef2f7;color:#64758a}.tier-gold{background:#fff2c9;color:#936600}.loyalty-enable{margin-bottom:9px}.loyalty-redeem-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;margin-bottom:6px}.loyalty-redeem-row input{height:40px;border:1px solid var(--line);border-radius:11px;padding:0 11px;font:inherit;font-size:12px}
.loyalty-profile-card{width:100%;border:0;border-radius:19px;padding:16px;margin:13px 0;background:linear-gradient(135deg,#0c4b97,#173f78 58%,#24345e);color:#fff;display:flex;align-items:center;justify-content:space-between;text-align:left;box-shadow:0 10px 24px rgba(12,58,126,.18)}.loyalty-profile-card .eyebrow{color:#bfd5f5}.loyalty-profile-card h3{margin:5px 0 3px;font-size:23px}.loyalty-profile-card small{font-size:9.5px;color:#dce8f7}.tier-orb{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:#f4f7fb;color:#7c8797;font-size:20px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.55)}.tier-orb.tier-silver,.loyalty-hero.tier-silver .tier-orb{background:linear-gradient(145deg,#f8fafc,#b7c2cf);color:#536275}.tier-orb.tier-gold,.loyalty-hero.tier-gold .tier-orb{background:linear-gradient(145deg,#fff7d7,#f2bd42);color:#8c6200}.tier-orb.large{width:58px;height:58px;font-size:27px}
.loyalty-hero{border-radius:20px;padding:17px;display:flex;align-items:center;justify-content:space-between;background:linear-gradient(135deg,#eaf1f8,#f8fafc);color:#24364f}.loyalty-hero.tier-silver{background:linear-gradient(135deg,#e8edf3,#f8fafc)}.loyalty-hero.tier-gold{background:linear-gradient(135deg,#fff1bd,#fff9e5)}.loyalty-hero small,.loyalty-hero strong,.loyalty-hero span{display:block}.loyalty-hero small{font-size:9px;opacity:.72}.loyalty-hero strong{font-size:27px;margin:4px 0}.loyalty-hero span{font-size:10px;font-weight:850}.loyalty-progress{margin:13px 2px}.loyalty-progress .row{font-size:9.5px;color:var(--muted)}.progress-track{height:7px;border-radius:999px;background:#edf1f6;overflow:hidden;margin-top:7px}.progress-track i{display:block;height:100%;border-radius:999px;background:var(--navy)}.loyalty-rules{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:14px 0}.loyalty-rules span{border:1px solid var(--line);border-radius:13px;padding:9px 6px;text-align:center;background:#fff}.loyalty-rules b,.loyalty-rules small{display:block}.loyalty-rules b{font-size:10px;color:#173f78}.loyalty-rules small{font-size:8px;color:var(--muted);margin-top:3px}.loyalty-ledger{display:grid;gap:7px}.loyalty-ledger article{display:flex;justify-content:space-between;align-items:center;gap:10px;border:1px solid var(--line);border-radius:13px;padding:10px 11px;background:#fff}.loyalty-ledger b,.loyalty-ledger small{display:block}.loyalty-ledger b{font-size:10.5px}.loyalty-ledger small{font-size:8.5px;color:var(--muted);margin-top:3px}.loyalty-ledger strong{font-size:11px}.loyalty-ledger strong.plus,.loyalty-earned b{color:#17814a}.loyalty-ledger strong.minus{color:#c55a37}
.promo-admin-title{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.promo-admin-title span{border-radius:999px;padding:3px 6px;background:#eaf2ff;color:#24568e;font-size:8px;font-weight:850}.promo-admin-row small+small{margin-top:3px}.promo-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.loyalty-admin-summary{width:100%;border:1px solid #dfe6f1;border-radius:16px;padding:13px;background:linear-gradient(135deg,#fffdf6,#fff);display:flex;align-items:center;justify-content:space-between;gap:12px;text-align:left;color:var(--ink);margin-bottom:15px}.loyalty-admin-summary b,.loyalty-admin-summary small{display:block}.loyalty-admin-summary b{font-size:12px}.loyalty-admin-summary small{font-size:9px;color:var(--muted);margin-top:4px}.loyalty-admin-summary>span{font-size:9px;font-weight:800;color:#8b6b18;text-align:right}
@media(max-width:380px){.promo-form-grid{grid-template-columns:1fr}.loyalty-rules{grid-template-columns:1fr 1fr}.loyalty-rules span:last-child{grid-column:1/-1}.loyalty-admin-summary{align-items:flex-start;flex-direction:column}.loyalty-admin-summary>span{text-align:left}}

/* v1.7.3 — Lean UX Core: gọn, nhanh, ít thao tác */
:root{--safe-top:env(safe-area-inset-top,0px)}
.native-safe-top{height:max(8px,var(--safe-top));min-height:8px}
.customer-home .native-safe-top{height:max(8px,var(--safe-top));min-height:8px}
.light-head{padding-top:calc(10px + var(--safe-top))}.top-hero,.home-head-light,.role-hero{padding-top:calc(10px + var(--safe-top))}
.searchbox.bordered{border:1px solid var(--line);box-shadow:0 4px 14px rgba(20,35,70,.035)}
.searchbox .voice-search-btn{width:44px;height:44px;min-width:44px;border:0;border-radius:50%;background:transparent;color:#60708a;display:grid;place-items:center;padding:0;cursor:pointer;transition:background .16s ease,color .16s ease,transform .16s ease}.searchbox .voice-search-btn .ui-icon{width:19px;height:19px}.searchbox .voice-search-btn:hover,.searchbox .voice-search-btn:focus-visible{background:#eef4fd;color:var(--navy);outline:0}.searchbox .voice-search-btn.listening{background:#fff0f0;color:#d93025;animation:voicePulse 1.1s ease-in-out infinite}.searchbox .voice-search-btn[hidden]{display:none}@keyframes voicePulse{50%{transform:scale(1.08);box-shadow:0 0 0 5px rgba(217,48,37,.08)}}
.search-results-page{padding-top:10px}.search-hint{font-size:11px;color:var(--muted);font-weight:700}.active-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:9px 2px 0;padding:8px 10px;border:1px solid #e1e8f2;border-radius:12px;background:#f7f9fc;color:#516177;font-size:11px}.active-filter-summary span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.active-filter-summary button{border:0;background:none;color:var(--navy);font-weight:850;min-height:36px;padding:0 4px}
.lean-filter-section{margin:14px 0}.lean-filter-section>b{display:block;font-size:12px;margin-bottom:8px}.lean-filter-grid{display:flex;gap:8px;flex-wrap:wrap}.filter-choice{min-height:40px;border:1px solid var(--line);border-radius:999px;padding:0 13px;background:#fff;color:#536177;font-size:11px;font-weight:800}.filter-choice.active{border-color:#8eb1e8;background:#edf4ff;color:var(--navy);box-shadow:0 0 0 1px #8eb1e8 inset}.lean-sheet-actions{position:sticky;bottom:calc(-20px - var(--safe));display:grid;grid-template-columns:1fr 1.35fr;gap:9px;margin:18px -16px calc(-20px - var(--safe));padding:11px 16px calc(12px + var(--safe));border-top:1px solid var(--line);background:rgba(255,255,255,.98)}
/* Touch targets: visual density stays compact, hit areas remain thumb-friendly. */
.primary,.ghost,.add,.round-refresh,.availability,.account-state,.online-toggle,.location-btn,.manager-staff-entry,.manager-tool-card{min-height:44px}.add{width:44px;height:44px}.qty button,.qty-large button{min-width:40px;min-height:40px}.nav-btn{min-height:54px}.setting-btn{min-height:48px}.sheet-close{position:absolute;right:12px;top:10px;width:40px;height:40px;border:0;border-radius:50%;background:#f3f6fa;color:#536177;font-size:25px;line-height:1;display:grid;place-items:center;z-index:3}.sheet{position:relative;overscroll-behavior:contain}.sheet:focus{outline:none}
.detail-hero.media-hero{display:block;padding:0;background:#f1f4f8;overflow:hidden}.detail-hero.media-hero .food-art{height:100%;min-height:100%;border-radius:0}.detail-hero.media-hero .reference-food img{width:100%;height:100%;object-fit:cover}
.lean-manager-grid{grid-template-columns:repeat(3,1fr)}.lean-manager-grid .manager-staff-entry{grid-template-columns:1fr;text-align:center;justify-items:center;align-content:start;padding:11px 7px;gap:6px}.lean-manager-grid .manager-staff-entry>span{width:40px;height:40px}.lean-manager-grid .manager-staff-entry>span .ui-icon{width:20px;height:20px}.lean-manager-grid .manager-staff-entry small{display:none}.lean-manager-grid .manager-staff-entry strong{display:none}.lean-manager-grid .manager-staff-entry b{font-size:11.5px}.section-actions{display:flex;align-items:center;gap:4px}.courier-primary-actions{align-items:stretch}.courier-primary-actions .ghost,.courier-primary-actions .primary,.gps-live-badge{min-height:44px}.gps-live-badge{border:1px solid #bfe4ce;background:#eefaf2;color:#187542;border-radius:11px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:11px;font-weight:850}.gps-live-badge .pulse{width:8px;height:8px;border-radius:50%;background:#1fb15a;box-shadow:0 0 0 4px rgba(31,177,90,.12)}
/* Lean typography: avoid sub-10px operational text. */
.ops-card .meta,.ops-courier,.delivery-route small,.delivery-meta,.manager-staff-entry small,.manager-tool-card small,.menu-admin-card p,.menu-item p,.compact-meta,.search-hint{font-size:max(10.5px,1em)}
@media(max-width:360px){.lean-manager-grid{gap:6px}.lean-manager-grid .manager-staff-entry{padding:10px 5px}.lean-manager-grid .manager-staff-entry b{font-size:10.5px}.section-actions .link-btn{padding-left:4px;padding-right:4px}}
.lean-order-actions{display:flex;align-items:center;gap:7px}.order-more{width:44px;height:44px;border:1px solid var(--line);border-radius:11px;background:#fff;color:#66758b;font-weight:900;letter-spacing:1px}.ops-address .ui-icon,.ops-courier .ui-icon{width:15px;height:15px;vertical-align:-3px;margin-right:3px}

/* v1.7.4 — One-Tap Operations */
.history-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end;flex-wrap:wrap}
.history-actions .ghost,.history-actions .primary{min-height:44px;padding:10px 14px}
.queue-stat{appearance:none;width:100%;color:inherit;text-align:left;font:inherit;cursor:pointer}
.queue-stat:active{transform:scale(.985)}
.queue-stat:focus-visible{outline:2px solid rgba(255,255,255,.9);outline-offset:2px}
#bulk-confirm[hidden]{display:none!important}

/* v1.7.5 — UI Consistency Polish từ ảnh LIVE: nav, Home, Orders, Profile */
.phone{padding-bottom:calc(82px + var(--safe))}
.bottom-nav{min-height:72px;height:calc(72px + var(--safe));padding:6px 12px calc(6px + var(--safe));align-items:start}
.nav-btn{min-height:56px;padding:3px 2px;gap:3px;overflow:hidden}
.nav-btn .nav-icon{height:24px;margin:0;display:grid;place-items:center}
.nav-btn .nav-icon .ui-icon{width:22px;height:22px;margin:0}
.nav-btn .nav-label{display:block!important;margin:0!important;font-size:10.5px!important;line-height:1.05!important;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.nav-btn.active .nav-label{font-weight:900}


/* Customer Orders: compact state tabs + one clear next action, no dead empty canvas. */
.customer-orders-screen .light-head{padding-bottom:0}
.customer-orders-screen .page{padding-top:8px}
.customer-orders-screen .page-title{margin-bottom:12px}
.customer-order-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin:0 0 13px;padding:4px;border:1px solid #e2e8f1;border-radius:14px;background:#f3f6fa}
.customer-order-tabs button{min-height:40px;border:0;border-radius:10px;background:transparent;color:#65748a;font-size:10.5px;font-weight:850;padding:0 7px;white-space:nowrap}
.customer-order-tabs button.active{background:#fff;color:var(--navy);box-shadow:0 3px 10px rgba(25,48,84,.08)}
.customer-order-list{gap:10px}
.customer-order-card{padding:13px 14px;border-radius:16px;box-shadow:0 4px 13px rgba(20,35,70,.035)}
.customer-order-card.focus{border-color:#a9c5ec;background:linear-gradient(180deg,#fff,#f7faff);box-shadow:0 7px 20px rgba(13,59,130,.08)}
.customer-order-main{min-width:0}
.customer-order-main h3{max-width:265px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.customer-order-card .money{font-size:14px;white-space:nowrap}
.customer-order-meta{margin:8px 0 0!important;font-size:10.5px}
.order-quick-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:10px;padding:8px 9px;border-radius:10px;background:#f2f6fb;color:#50637c;font-size:10.5px;font-weight:750}
.order-quick-status span{display:inline-flex;align-items:center;gap:4px}
.customer-order-card.focus .order-quick-status{background:#eaf3ff;color:#244f85}
.customer-order-card .history-actions{margin-top:10px}
.customer-order-card .history-actions .primary,.customer-order-card .history-actions .ghost{min-width:108px}
.customer-orders-screen .customer-state{margin-top:8px}

.account-actions{margin-top:12px}

@media(max-width:390px){
  .bottom-nav{padding-left:8px;padding-right:8px}
  .nav-btn .nav-label{font-size:10px!important}
  .customer-order-tabs{gap:4px}
  .customer-order-tabs button{font-size:9.8px;padding:0 4px}
  .customer-order-main h3{max-width:205px}
}

/* v1.7.8 — interaction reliability + accessibility */
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid #2f6fcb;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
.order-live-status{display:inline-flex;align-items:center;gap:5px;margin-top:7px;color:#6d7b90;font-size:9.5px;font-weight:750}.order-live-status:before{content:"";width:7px;height:7px;border-radius:50%;background:#9aa8ba}.order-live-status.online{color:#24714b}.order-live-status.online:before{background:#35a56b}.order-live-status.reconnecting{color:#9a6a19}.order-live-status.reconnecting:before{background:#d89b34;animation:livePulse 1.2s ease-in-out infinite}button[aria-busy="true"]{cursor:wait}.primary[aria-busy="true"],.ghost[aria-busy="true"]{opacity:.68}@keyframes livePulse{50%{opacity:.35}}@media (prefers-reduced-motion:reduce){.order-live-status.reconnecting:before{animation:none}}

/* v1.7.11 — Guest Ordering + Optional Membership */
.guest-member-card{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid #dfe7f2;border-radius:18px;background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:0 6px 18px rgba(20,42,80,.045)}
.guest-member-card.compact{padding:13px 14px}.guest-member-card h2{margin:0 0 4px;font-size:15px}.guest-member-card p{margin:0;color:var(--muted);font-size:10.5px;line-height:1.4}.guest-benefit-line{margin:10px 2px 13px;color:#53657b;font-size:10px;font-weight:800;line-height:1.45}.compact-actions{display:grid;gap:4px}.guest-register-link{min-height:38px;border:0;background:transparent;color:var(--navy);font-size:11px;font-weight:850}.guest-contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.guest-contact-grid input{width:100%;min-width:0}
@media(max-width:390px){.guest-contact-grid{grid-template-columns:1fr}}


/* v1.7.12 — Customer ordering UX: menu-first, guest/member cùng luồng đặt món */
.restaurant-description{margin:7px 0 12px;color:var(--muted);font-size:11px;line-height:1.45;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.customer-menu-nav{position:sticky;top:-10px;z-index:6;display:flex;gap:7px;overflow-x:auto;padding:8px 0 7px;margin:0 0 7px;background:rgba(255,255,255,.97);backdrop-filter:blur(8px);scrollbar-width:none}.customer-menu-nav::-webkit-scrollbar{display:none}.customer-menu-nav button{flex:0 0 auto;min-height:32px;border:1px solid #e0e7f0;border-radius:999px;background:#f7f9fc;color:#52647b;padding:0 10px;font-size:10px;font-weight:800}.customer-menu-nav button.active{border-color:#8eb1e8;background:#edf4ff;color:var(--navy)}.customer-menu-nav button:active{background:#e8f1fd;border-color:#8eb1e8}.customer-menu-group{scroll-margin-top:52px}
.restaurant-cart-dock{position:sticky;z-index:7;bottom:calc(-20px - var(--safe));width:calc(100% + 32px);margin:14px -16px calc(-20px - var(--safe));padding:10px 16px calc(11px + var(--safe));border:0;border-top:1px solid #dce5f0;background:rgba(12,54,116,.985);color:#fff;display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;text-align:left;box-shadow:0 -8px 20px rgba(16,45,86,.14)}.restaurant-cart-dock[hidden]{display:none}.restaurant-cart-dock span b,.restaurant-cart-dock span small{display:block}.restaurant-cart-dock span b{font-size:12px}.restaurant-cart-dock span small{font-size:9px;opacity:.78;margin-top:2px}.restaurant-cart-dock strong{font-size:13px}.restaurant-cart-dock em{font-style:normal;font-size:10px;font-weight:850;white-space:nowrap}
.compact-benefit{padding:10px 12px;background:#fbfcfe}.compact-benefit .checkout-card-title{margin-bottom:0}.compact-benefit .checkout-card-title>div b,.compact-benefit .checkout-card-title>div small{display:block}.compact-benefit .checkout-card-title>div small{margin-top:2px;color:var(--muted);font-size:9px;line-height:1.35}.compact-benefit #co-promo-manual{margin-top:9px}.compact-benefit .loyalty-enable{margin:8px 0 0}.compact-benefit .loyalty-redeem-row{margin-top:8px}.compact-benefit [hidden]{display:none!important}
@media(max-width:380px){.restaurant-cart-dock{grid-template-columns:1fr auto}.restaurant-cart-dock em{display:none}}

/* v1.7.13 — Compact restaurant cards: one image, honest delivery fee, full-card target */
.restaurant-card-compact{display:grid;grid-template-columns:102px minmax(0,1fr);gap:9px;min-height:114px;padding:6px;border-radius:13px;align-items:stretch;transition:border-color .14s ease,box-shadow .14s ease,transform .12s ease}.restaurant-card-compact:active{transform:scale(.995)}.restaurant-card-compact:focus-visible{outline:3px solid #b7d0f2;outline-offset:2px;border-color:#86aee4}.compact-art{width:102px;height:102px;min-height:0;aspect-ratio:1/1;align-self:center}.compact-art .food-art{width:100%;height:100%;min-height:0;aspect-ratio:1/1;border-radius:10px;font-size:50px}.compact-body{min-width:0;padding:3px 2px 2px 0;display:flex;flex-direction:column}.compact-body .card-title{min-height:30px;align-items:flex-start}.compact-body .card-title h3{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:normal;max-width:none;font-size:12.9px;line-height:1.18;margin:1px 0 2px}.compact-identity{font-size:10.5px!important;line-height:1.2;gap:6px!important;margin-top:1px!important}.compact-bottom{display:flex;align-items:flex-end;justify-content:space-between;gap:7px;margin-top:auto}.compact-meta{display:block;font-size:10.2px!important;line-height:1.2;margin:0!important;min-width:0;max-width:100%;overflow:hidden}.compact-meta span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}.compact-bottom .primary{height:32px;line-height:32px;min-width:74px;padding:0 8px;border-radius:9px;font-size:10.3px;white-space:nowrap}.recommendation-list,.compact-list{gap:9px}.active-order-home .recommendation-list{gap:9px}.active-order-home .restaurant-card-compact{min-height:114px}.reference-food{background:#f4f4f4!important;overflow:hidden}.reference-food img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
@media(max-width:390px){.restaurant-card-compact,.discovery-home .restaurant-card-compact{grid-template-columns:92px minmax(0,1fr);min-height:104px}.compact-art,.discovery-home .compact-art,.discovery-home .compact-art .food-art{width:92px;height:92px}.compact-body .card-title{min-height:28px}.compact-body .card-title h3,.discovery-home .compact-body .card-title h3{font-size:12.2px;max-width:none}.compact-identity{font-size:9.6px!important}.compact-meta{font-size:9.3px!important}.compact-bottom .primary,.discovery-home .compact-bottom .primary{height:30px;line-height:30px;min-width:68px;padding:0 7px;font-size:9.8px}}

/* v1.7.14 — Customer Home & Account Simplification */
.customer-profile-summary{display:flex;align-items:center;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:17px;background:#fff;box-shadow:0 4px 14px rgba(20,35,70,.035)}
.avatar.compact{width:46px;height:46px;flex:0 0 46px;font-size:15px;background:#edf4ff}.customer-profile-summary h2{margin:0;font-size:16px}.customer-profile-summary p{margin:3px 0 0;color:var(--muted);font-size:11px}
.customer-loyalty-strip{width:100%;min-height:62px;margin:10px 0 0;border:0;border-radius:16px;padding:10px 12px;background:linear-gradient(135deg,#0d478f,#163c78);color:#fff;display:grid;grid-template-columns:38px 1fr auto;align-items:center;gap:10px;text-align:left}.customer-loyalty-star{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#fff;color:#9a6d10;font-size:17px}.customer-loyalty-strip b,.customer-loyalty-strip small{display:block}.customer-loyalty-strip b{font-size:15px}.customer-loyalty-strip small{font-size:9.5px;color:#d9e5f6;margin-top:2px}.customer-loyalty-strip>strong{font-size:21px;font-weight:500}
.customer-account-menu{margin-top:12px;border:1px solid var(--line);border-radius:17px;background:#fff;overflow:hidden}.customer-account-row{width:100%;min-height:58px;border:0;border-bottom:1px solid var(--line);background:#fff;display:grid;grid-template-columns:32px 1fr auto;gap:10px;align-items:center;padding:9px 13px;text-align:left;color:var(--ink)}.customer-account-row:last-child{border-bottom:0}.customer-account-icon,.customer-setting-icon{width:32px;height:32px;border-radius:10px;background:#f2f6fb;display:grid;place-items:center;font-size:16px}.customer-account-row b,.customer-account-row small,.customer-settings-option b,.customer-settings-option small{display:block}.customer-account-row b{font-size:12.5px}.customer-account-row small{font-size:9.5px;color:var(--muted);margin-top:2px}.customer-account-row>strong{font-size:20px;color:#8290a4;font-weight:500}
.customer-logout-link{display:block;margin:14px auto 0;padding:10px 18px;border:0;background:transparent;color:#c62935;font-size:12px;font-weight:800}.customer-settings-sheet{display:grid;gap:8px;margin-top:12px}.customer-settings-option{width:100%;min-height:62px;border:1px solid var(--line);border-radius:14px;background:#fff;display:grid;grid-template-columns:36px 1fr auto;gap:10px;align-items:center;padding:10px 12px;text-align:left;color:var(--ink)}.customer-settings-option b{font-size:12px}.customer-settings-option small{font-size:9.5px;color:var(--muted);margin-top:3px}.customer-settings-option>strong{font-size:20px;color:#8793a5;font-weight:500}
@media(max-width:390px){.active-order-compact{min-height:88px}.customer-profile-summary{padding:12px}.customer-account-row{min-height:55px}}


/* v1.7.17 — Unified customer header */
.favorite-head{background:#fff}.favorite-page{padding-top:14px;padding-bottom:104px}.favorite-title{margin:0 0 12px}.favorite-title .page-title{margin:0}.customer-state{min-height:180px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:24px 16px;text-align:center;border:1px dashed #dce3ed;border-radius:16px;background:#fff}.customer-state>.ui-icon{width:30px;height:30px;color:#8a98aa}.customer-state>b{font-size:13px;color:#203654}.customer-state>span{max-width:260px;color:var(--muted);font-size:10px;line-height:1.45}.customer-state>button{margin-top:4px;min-width:116px}.customer-cart-badge{animation:cartBadgeIn .18s ease-out}@keyframes cartBadgeIn{from{transform:scale(.72);opacity:.55}to{transform:scale(1);opacity:1}}

/* v1.7.19 — Customer bottom navigation final polish */
.customer-bottom-nav{
  min-height:68px;
  height:calc(68px + var(--safe));
  padding:5px 10px calc(5px + var(--safe));
  align-items:start;
  background:rgba(255,255,255,.99);
  border-top:1px solid #edf1f6;
  border-radius:22px 22px 0 0;
  box-shadow:0 -6px 20px rgba(25,45,76,.055);
}
.customer-bottom-nav .nav-btn{
  position:relative;
  min-height:54px;
  padding:3px 2px 2px;
  gap:3px;
  color:#8792a2;
}
.customer-bottom-nav .nav-btn::before{
  content:"";
  position:absolute;
  top:-2px;
  left:50%;
  width:22px;
  height:3px;
  border-radius:999px;
  background:transparent;
  transform:translateX(-50%);
}
.customer-bottom-nav .nav-icon{height:23px}
.customer-bottom-nav .nav-icon .ui-icon{width:21px;height:21px;stroke-width:1.75}
.customer-bottom-nav .nav-label{font-size:10px!important;line-height:1.05!important;font-weight:750!important}
.customer-bottom-nav .nav-btn.active{color:var(--navy)}
.customer-bottom-nav .nav-btn.active::before{background:var(--navy)}
.customer-bottom-nav .nav-btn.active .ui-icon{stroke-width:2.35}
.customer-bottom-nav .nav-btn.active .nav-label{font-weight:900!important}
.customer-home,
.customer-favorites-screen,
.search-screen,
.customer-orders-screen,
.customer-profile-screen{padding-bottom:calc(72px + var(--safe))}
.customer-home .recommendation-sheet,
.customer-home .discovery-content,
.customer-favorites-screen .favorite-page,
.search-screen .search-results-page,
.customer-orders-screen .page,
.customer-profile-screen .page{padding-bottom:calc(76px + var(--safe))}
@media(max-width:390px){
  .customer-bottom-nav{padding-left:8px;padding-right:8px}
  .customer-bottom-nav .nav-label{font-size:9.8px!important}
}
@media(min-width:700px){
  .customer-bottom-nav{bottom:24px;width:430px;border-radius:22px 22px 34px 34px}
}

/* v1.7.22 — Smart Cart Conversion */
.smart-cart-conversion{margin:12px 0 2px;border:1px solid #dce8f8;background:linear-gradient(180deg,#f7fbff,#f2f7ff);border-radius:14px;padding:10px 11px}.smart-cart-kicker{font-size:10px;font-weight:900;letter-spacing:.08em;color:#4f6f9c;margin-bottom:6px}.smart-cart-unlocked{font-size:10px;font-weight:850;color:#168048;background:#ecf9f1;border-radius:9px;padding:7px 9px;margin-top:5px}.smart-cart-unlocked small{margin-left:6px;color:#5f7d6b;font-size:10px;font-weight:750}.smart-cart-target{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 8px;align-items:center}.smart-cart-target-copy b,.smart-cart-target-copy small{display:block}.smart-cart-target-copy b{font-size:11px;color:#123f78}.smart-cart-target-copy small{font-size:10.5px;color:var(--muted);margin-top:2px}.smart-cart-target>span{font-size:10px;font-weight:850;color:#54749d}.smart-cart-progress{grid-column:1/-1;height:5px;background:#dfe9f7;border-radius:999px;overflow:hidden}.smart-cart-progress i{display:block;height:100%;background:#174b8d;border-radius:inherit}.smart-cart-active{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px dashed #d7e2f1;margin-top:8px;padding-top:7px;font-size:10px}.smart-cart-active span{color:#52657f}.smart-cart-active b{color:#168048}.smart-cart-upsell{margin-top:11px}.smart-cart-upsell-head{display:flex;align-items:flex-end;justify-content:space-between;gap:10px;margin-bottom:7px}.smart-cart-upsell-head b,.smart-cart-upsell-head small{display:block}.smart-cart-upsell-head b{font-size:11px}.smart-cart-upsell-head small{font-size:10px;color:var(--muted);margin-top:2px}.smart-cart-upsell-head>span{font-size:10px;color:#5e6f86}.smart-cart-upsell-list{display:grid;gap:6px}.smart-cart-upsell-item{border:1px solid #e1e7f0;background:#fff;border-radius:11px;padding:8px 9px;display:flex;align-items:center;justify-content:space-between;gap:9px;text-align:left;color:var(--ink)}.smart-cart-upsell-item span b,.smart-cart-upsell-item span small{display:block}.smart-cart-upsell-item span b{font-size:10px}.smart-cart-upsell-item span small{font-size:10px;color:var(--muted);margin-top:2px}.smart-cart-upsell-item em{font-style:normal;font-size:10px;font-weight:850;color:#174b8d;background:#eef5ff;border-radius:999px;padding:5px 7px;white-space:nowrap}.checkout-savings-summary{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#edf9f1;color:#146d3d;border-radius:10px;padding:8px 9px;margin:7px 0;font-size:10px;font-weight:850}.checkout-savings-summary[hidden]{display:none}

/* v1.7.25 — Search Results UX Polish */
.search-filter-btn{position:relative;flex:0 0 auto}.search-filter-count{position:absolute;right:-2px;top:-3px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#ef4444;color:#fff;border:2px solid #fff;font-size:9px;font-weight:900;line-height:13px;text-align:center}.search-voice-status{min-height:16px;margin:3px 48px 0 36px;color:var(--navy);font-size:10.5px;font-weight:800}.search-quick-filters{display:flex;gap:7px;overflow-x:auto;scrollbar-width:none;padding:8px 0 1px}.search-quick-filters::-webkit-scrollbar{display:none}.search-quick-chip{flex:0 0 auto;min-height:44px;padding:0 11px;border:1px solid #dce4ef;border-radius:999px;background:#fff;color:#586981;font-size:10.5px;font-weight:800}.search-quick-chip.active{background:#eaf2ff;border-color:#79a4df;color:var(--navy);box-shadow:0 0 0 1px #79a4df inset}.search-item-matches{margin:0 0 14px}.search-item-matches .section-head{margin-bottom:8px}.search-item-matches .section-head h2{font-size:15px}.search-item-matches .section-head span{font-size:10.5px;color:var(--muted);font-weight:800}.search-menu-list{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:1px 1px 4px}.search-menu-list::-webkit-scrollbar{display:none}.search-menu-card{flex:0 0 236px;min-height:76px;display:grid;grid-template-columns:62px minmax(0,1fr) auto;align-items:center;gap:8px;padding:6px;border:1px solid #e5eaf1;border-radius:13px;background:#fff;box-shadow:0 4px 14px rgba(24,44,78,.045);cursor:pointer}.search-menu-card:focus-visible{outline:3px solid #b7d0f2;outline-offset:2px}.search-menu-art{width:62px;height:62px;overflow:hidden;border-radius:9px}.search-menu-art .food-art{width:100%;height:100%;min-height:0;border-radius:9px;font-size:30px}.search-menu-copy{min-width:0;display:grid;gap:3px;align-content:center}.search-menu-copy>b{font-size:11px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-menu-copy small{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.search-menu-badge{justify-self:start;padding:2px 5px;border-radius:999px;background:#fff4de;color:#a55a00;font-size:9.5px;font-weight:900}.search-menu-action{height:44px;min-width:48px;padding:0 7px;border:0;border-radius:9px;background:var(--navy);color:#fff;font-size:10.5px;font-weight:900}.search-restaurant-head{margin-top:0}.search-empty{display:grid;gap:9px;justify-items:center;text-align:center;padding:26px 16px}.search-empty>b{font-size:14px;color:#172b4d}.search-empty>span{font-size:11px;color:var(--muted);max-width:250px}.search-empty-chips{display:flex;gap:6px;flex-wrap:wrap;justify-content:center}.search-empty-chips button{border:1px solid #dce4ef;background:#fff;border-radius:999px;padding:7px 10px;color:var(--navy);font-size:10px;font-weight:850}.search-results-page .restaurant-card-compact .compact-meta span{font-size:10.5px}
@media(max-width:390px){.search-menu-card{flex-basis:220px;grid-template-columns:58px minmax(0,1fr) auto}.search-menu-art{width:58px;height:58px}.search-quick-chip{padding:0 9px}.search-voice-status{margin-right:42px}}

/* v1.7.28 Advanced campaigns + VIP */
.tier-diamond{background:linear-gradient(145deg,#eaf8ff,#bfe7ff);color:#0c5f8f}.tier-orb.tier-diamond,.loyalty-hero.tier-diamond .tier-orb{background:linear-gradient(145deg,#f8fdff,#8fd8ff);color:#07567d}.loyalty-hero.tier-diamond{background:linear-gradient(135deg,#dff5ff,#f7fdff)}
.campaign-box{border:1px solid var(--line);border-radius:14px;padding:11px;margin:9px 0;background:#fbfcfe}.campaign-box>b{display:block;font-size:11px;margin-bottom:8px}.compact-campaign-toggle{margin:0;align-self:end}.vip-config-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:8px 0 14px}.vip-config-card{border:1px solid var(--line);border-radius:14px;padding:10px;background:#fff}.vip-config-card>b{display:block;font-size:11px;margin-bottom:7px}.vip-config-card label{display:block;font-size:8px;color:var(--muted);margin-top:6px}.vip-config-card input{margin-top:4px;height:36px;width:100%;border:1px solid var(--line);border-radius:10px;padding:0 8px;font:inherit}.vip-config-card.silver{background:#f7f9fb}.vip-config-card.gold{background:#fffaf0}.vip-config-card.diamond{background:#f2fbff}.vip-benefit-note{border:1px solid #dfe9f5;background:#f8fbff;border-radius:13px;padding:10px 11px;margin:12px 0}.vip-benefit-note b,.vip-benefit-note small{display:block}.vip-benefit-note b{font-size:10px}.vip-benefit-note small{font-size:8.5px;color:var(--muted);margin-top:3px;line-height:1.4}
@media(max-width:430px){.vip-config-grid{grid-template-columns:1fr}.vip-config-card{display:grid;grid-template-columns:90px 1fr 1fr;gap:8px;align-items:end}.vip-config-card>b{margin:0;align-self:center}.vip-config-card label{margin:0}}

/* v1.7.30 Mobile ergonomics hardening */
@media(max-width:699px){
  input,select,textarea{font-size:16px!important}
  .customer-header-icon,.searchbox .voice-search-btn,.map-zoom button,.search-quick-chip,.search-menu-action{min-width:44px;min-height:44px}
  .qty button,.qty-large button{min-width:44px;min-height:44px}
}
html.visual-keyboard-open .sheet{max-height:calc(var(--visual-viewport-height,100vh) - 4px)}
html.visual-keyboard-open .checkout-submit-bar{padding-bottom:10px}
