:root{color-scheme:light;--mobile-blue:#2563eb;--mobile-ink:#19344d;--mobile-line:#e0e8f0}
/* Stable single-meal header at every mobile width: brand above, equal controls below. */
body.compact-ui .work-role-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;align-items:stretch}
body.compact-ui .work-role-row>.company-mark{grid-row:1;grid-column:1/-1;justify-self:center;width:128px;height:36px}
body.compact-ui .work-role-row>.company-mark img{width:100%;height:100%;object-fit:contain}
body.compact-ui .work-role-row>select{grid-row:2;grid-column:1;width:100%;max-width:100%;min-width:0;min-height:46px;padding:10px 8px;font-size:14px;box-sizing:border-box}
body.compact-ui .work-role-row>.policy-button{grid-row:2;grid-column:2;width:100%;min-width:0;min-height:46px;font-size:14px;line-height:1.4;padding:8px 6px;box-sizing:border-box;white-space:normal}
.mobile-bottom-nav.has-management{grid-template-columns:repeat(4,minmax(0,1fr))}
.mobile-bottom-nav a.field-entry{font-size:15px;min-width:0}
.mobile-bottom-nav a[hidden]{display:none!important}
/* 3.4.2: compact in-flow feedback never overlays meal cards or navigation. */
.compact-ui #scan-form #toast{position:static;transform:none;width:auto;max-width:100%;max-height:5.4em;overflow:auto;overscroll-behavior:contain;margin:8px 0 0;padding:8px 10px;font-size:13px;line-height:1.55;border-radius:8px;background:#fff4e5;color:#865315;overflow-wrap:anywhere}
.scanner-keyboard-hide{display:block;margin:5px 0 0 auto;padding:7px 9px;min-height:36px;font:inherit;font-size:12px;border:1px solid #dbe5f1;border-radius:8px;color:#326399;background:#f5f9ff;touch-action:manipulation}
.keyboard-open .mobile-bottom-nav{display:none}
body.keyboard-open{padding-bottom:16px}
.box-filters #show-completed.has-errors{color:#b43d32;border-color:#e8b8b1}
/* 3.4.4: responsive controls without :has(), so Android 8-era WebViews, MIUI and EMUI/Harmony WebViews use the same geometry. */
.company-mark{display:block;flex:none;width:128px;height:36px;pointer-events:none;user-select:none}
.company-mark img{display:block;width:100%;height:100%;object-fit:contain}
.work-role-row{display:grid;grid-template-columns:minmax(0,1fr) 116px minmax(0,1fr);gap:6px;align-items:center;width:100%;min-width:0}
.work-role-row>.company-mark{width:116px;height:33px;grid-column:2;justify-self:center}
.work-role-row>.company-mark img{height:auto}
.work-role-row>select{grid-column:1;justify-self:stretch;width:100%;max-width:100%;min-width:0}
.work-role-row>.policy-button{grid-column:3;justify-self:stretch;width:100%;max-width:100%;min-width:0;min-height:44px;padding:8px 4px;font-size:11px;line-height:1.35;white-space:normal}
.profile-page>main>.profile-top{display:grid;grid-template-columns:minmax(0,1fr) 116px minmax(0,1fr);gap:10px}
.profile-page>main>.profile-top>.company-mark{width:116px;height:33px}
.profile-page>main>.profile-top>button{justify-self:end}
@media(max-width:380px){.work-role-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px 8px}.work-role-row>.company-mark{grid-column:1/-1;grid-row:1;width:112px;height:32px}.work-role-row>select{grid-column:1;grid-row:2;font-size:13px;padding:8px 6px}.work-role-row>.policy-button{grid-column:2;grid-row:2;font-size:11px;padding:6px 5px}.profile-page>main>.profile-top{grid-template-columns:minmax(0,1fr) 96px minmax(0,1fr)}.profile-page>main>.profile-top>.company-mark{width:96px;height:27px}}
html,body{width:100%;max-width:100%;overflow-x:hidden}body{padding-bottom:76px;padding-bottom:calc(76px + env(safe-area-inset-bottom));background:#f3f6fa;color:var(--mobile-ink);font-family:system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-text-size-adjust:100%}img,svg{max-width:100%}.box-shell,.compact-ui main.shell,.compact-ui #work-view,.scan-controls,.recent,.recent-item{width:100%;min-width:0;max-width:100%}
.mobile-bottom-nav{position:fixed;z-index:60;bottom:0;left:0;right:0;background:#fff;border-top:1px solid var(--mobile-line);display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:9px max(18px,env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom));margin:0;box-shadow:0 -3px 14px #15334c04}
.mobile-bottom-nav a{display:flex;align-items:center;justify-content:center;min-height:42px;border-radius:10px;font-size:15px;font-weight:600;color:#7a8b9c;text-decoration:none;white-space:nowrap;touch-action:manipulation}.mobile-bottom-nav a[aria-current=page]{background:#edf4ff;color:#2563eb}
.compact-ui .scan-tools{display:flex;align-items:center;gap:16px;flex-wrap:nowrap}.compact-ui .scan-tools>.tool-link,.compact-ui .scan-tools>details{flex:none;white-space:nowrap;font-size:14px}.compact-ui .scan-tools>.work-more{margin-left:auto}.scan-tools .more-panel{white-space:normal;max-width:min(380px,calc(100vw - 52px));text-align:left}
.box-top{display:none}.box-utility{flex-wrap:wrap;gap:12px}.box-utility a,.box-utility button{white-space:nowrap}.box-utility .field-entry{padding:3px 0;color:#2563eb;font-size:12px;text-decoration:none}.box-panel.controls,.scan-controls{box-shadow:0 3px 16px #18364a04;border-radius:16px!important}.box-shell,.compact-ui main.shell{padding-top:14px}.recent-heading{gap:10px;flex-wrap:wrap}.recent-heading h2{font-size:19px}.recent-filters{max-width:100%}.recent-filters button{white-space:nowrap}.remove-bar{bottom:calc(72px + env(safe-area-inset-bottom))}
body>main>header:not(.brand){display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:46px;padding:0;margin:0 0 16px;font-size:16px;background:none;border:0;flex-wrap:wrap}body>main>header>a{font-size:13px;text-decoration:none;color:#577089}body>main>header>button{white-space:nowrap;font-size:13px;border-radius:8px;border:1px solid var(--mobile-line);background:#fff;color:#497094;padding:8px 12px}.card{border-color:var(--mobile-line)!important;border-radius:16px!important;box-shadow:0 3px 16px #18364a04;padding:20px!important}.card h1{font-size:24px}.card input,.card textarea{background:#f8fafc!important;border-color:#dce5ef!important;border-radius:10px!important}
.profile-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.profile-links a,.profile-links button{display:grid;place-items:center;text-decoration:none;white-space:nowrap;font:inherit;font-size:14px;min-height:46px;border:1px solid #e0e8f0;border-radius:10px;background:#f8fafc;color:#326399;cursor:pointer}.profile-links a[hidden]{display:none}.profile-identity{display:flex;align-items:center;gap:14px}.profile-avatar{width:54px;height:54px;display:grid;place-items:center;background:#eaf2ff;color:#2563eb;border-radius:15px;font-size:25px;font-weight:700}.profile-identity h1{margin:0;font-size:25px}.profile-identity small{display:block;font-size:12px;margin-top:4px}.identity #health-status{margin-top:14px;font-size:12px}.profile-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:15px}.profile-stats>div{border-radius:10px;background:#f6f9fc;padding:13px 8px;text-align:center}.profile-stats span{font-size:12px;color:#7a8a9b}.profile-stats strong{display:block;font-size:24px;color:#21466b}.profile-stats small{font-size:11px;color:#8a99a7}.card summary{line-height:1.6}.card .consent{font-size:12px;line-height:1.7}.field-pair{gap:12px}.document small{font-size:12px}.document a{font-size:14px}.profile-id{color:#7d8fa0}.profile-doc-note{font-size:12px;line-height:1.7;color:#7d8fa0}body:has(dialog[open], .data-dialog:not([hidden])) .mobile-bottom-nav{z-index:0}
@media(min-width:750px){.mobile-bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:min(100%,760px);border-left:1px solid var(--mobile-line);border-right:1px solid var(--mobile-line);border-radius:14px 14px 0 0}}
@media(max-width:350px){.profile-links{grid-template-columns:1fr 1fr}.field-pair{grid-template-columns:1fr}.recent-filters button{padding:9px 7px;font-size:12px}.compact-ui .scan-tools{gap:12px}.card{padding:16px!important}}
:root{--important:#a23a21}
.important-entry{font-size:13px!important}.important-entry span{font-variant-numeric:tabular-nums}.important-entry.has-important{color:var(--important)!important}
.important-page{max-width:780px}.mobile-page-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.mobile-page-heading h1{font-size:25px}.mobile-page-heading h1 span{font-size:17px;color:#a23a21}
#important-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.important-order{min-width:0;margin:0;padding:12px!important}.important-order-head{display:flex;align-items:flex-start;justify-content:space-between;gap:7px;font-size:12px}.important-order-head time{white-space:nowrap;color:#8793a1;font-size:10px}.important-order-head strong{display:-webkit-box;min-height:38px;overflow:hidden;color:#8b301e;font-size:15px;line-height:1.3;overflow-wrap:anywhere;-webkit-box-orient:vertical;-webkit-line-clamp:2}.important-phones{margin:10px 0 8px}.important-phone{display:flex;align-items:center;justify-content:center;min-height:42px;padding:7px 6px;background:#eff5fc;border:1px solid #dbe6f2;border-radius:9px;text-decoration:none;font-size:13px;font-weight:750;color:#1e579a;overflow-wrap:anywhere;text-align:center}.important-phone.unavailable{color:#7f8c9d;background:#f6f8fb}.important-meta{overflow:hidden;margin:0;color:#748397;font-size:10px;white-space:nowrap;text-overflow:ellipsis}#important-error{grid-column:1/-1;padding:12px;border-radius:12px;background:#fff0e5;color:#8b3d17}#important-list>.empty-state{grid-column:1/-1}
@media(min-width:640px){#important-list{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:900px){.important-page{max-width:980px}#important-list{grid-template-columns:repeat(4,minmax(0,1fr))}}
/* Keep the single-meal settings trigger right-aligned so its right-anchored panel stays on screen. */
@media(max-width:380px){.scan-tools{gap:8px 12px!important;flex-wrap:wrap!important}.compact-ui .scan-tools>.work-more{margin-left:auto}.scan-tools .tool-link,.scan-tools summary{font-size:13px!important}.compact-ui .recent-heading{display:block}.compact-ui .recent-heading h2{margin-bottom:7px}.compact-ui .recent-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}.compact-ui .recent-filters button{min-width:0;padding:7px 3px}.compact-ui .order-body{grid-template-columns:minmax(0,1fr) 72px;gap:7px}.compact-ui .delivery-countdown{min-width:0;max-width:72px}.compact-ui .countdown-value{font-size:20px}}
.compact-box-ui .box-utility{margin-top:10px;gap:14px;align-items:center}.compact-box-ui .box-utility #box-tools-open{margin-left:auto;color:#61758b}.compact-box-ui .work-role-row{margin-bottom:8px}.compact-box-ui .controls .scan-row{margin-top:8px}.compact-box-ui .controls{padding:18px}.compact-box-ui .batch-actions{margin-top:12px}#box-tools-dialog .receive-tools{margin-top:18px}#box-tools-dialog .input-tools{gap:18px;margin:18px 0}#box-tools-dialog .input-tools button:last-child{margin-left:0}
/* Baselines must work before CSS min/max/env/dvh and :has are available. */
.mobile-bottom-nav{padding:9px 18px;padding:9px max(18px,env(safe-area-inset-left)) calc(9px + env(safe-area-inset-bottom))}
.scan-tools .more-panel{width:calc(100vw - 52px);max-width:380px;max-height:60vh;overflow:auto;-webkit-overflow-scrolling:touch}
.remove-bar{bottom:72px;bottom:calc(72px + env(safe-area-inset-bottom))}
.compact-box-ui dialog{box-sizing:border-box;width:calc(100% - 26px);max-width:460px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.compact-box-ui .dialog-heading{position:sticky;top:-23px;background:#fff;z-index:2;padding:6px 0}
.compact-box-ui .dialog-heading button{min-height:44px;flex:none}
.profile-page #document-dialog{box-sizing:border-box;width:calc(100% - 28px);max-width:620px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);-webkit-overflow-scrolling:touch;overscroll-behavior:contain}
.profile-page #document-image img{max-height:65vh;max-height:65dvh}
.profile-page #document-close{min-height:44px;flex:none}
@media(min-width:750px){.mobile-bottom-nav{width:100%;max-width:760px}}
/* Static rules also work under the site's self-only style CSP. */
body.eatseek-modal-open{overflow:hidden!important}
body.eatseek-modal-open .mobile-bottom-nav{display:none!important}
dialog:not([open]){display:none}
/* Workbench controls share one row; no floating brand row or iOS native sizing. */
body.compact-ui .work-role-row,body.compact-box-ui .work-role-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;align-items:stretch}
body.compact-ui .work-role-row>select,body.compact-box-ui .work-role-row>select,body.compact-ui .work-role-row>.policy-button,body.compact-box-ui .work-role-row>.policy-button{grid-row:1!important;box-sizing:border-box;height:46px!important;min-height:46px!important;min-width:0;max-width:100%;margin:0!important;font-size:14px!important;line-height:20px!important;align-self:stretch}
body.compact-ui .work-role-row>select,body.compact-box-ui .work-role-row>select{grid-column:1;appearance:none;-webkit-appearance:none;padding:10px 28px 10px 12px;background-image:linear-gradient(45deg,transparent 50%,#36577b 50%),linear-gradient(135deg,#36577b 50%,transparent 50%);background-position:calc(100% - 17px) 20px,calc(100% - 12px) 20px;background-size:5px 5px;background-repeat:no-repeat}
body.compact-ui .work-role-row>.policy-button,body.compact-box-ui .work-role-row>.policy-button{grid-column:2;padding:8px 6px;white-space:normal}
dialog[data-eatseek-modal]{display:block;position:fixed;top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%);margin:0;box-sizing:border-box;max-width:calc(100% - 32px);max-height:calc(100vh - 32px);overflow:auto;-webkit-overflow-scrolling:touch}
/* 3.6: shared dense field layout; touch controls remain at least 44px. */
body.compact-ui main.shell,body.compact-box-ui .box-shell{padding:10px 12px 22px}.compact-ui .card,.compact-box-ui .box-panel{padding:14px!important;border-radius:13px!important}.compact-ui .card{margin-bottom:10px!important}.compact-ui h1,.compact-box-ui h1{font-size:20px}.compact-ui h2,.compact-box-ui h2{font-size:17px}.compact-ui .mobile-page-heading,.compact-box-ui .box-heading{margin:10px 2px 7px}.compact-ui .profile-links{gap:7px}.compact-ui .profile-links a,.compact-ui .profile-links button{min-height:44px}.compact-box-ui .meal-grid{gap:8px;margin-top:8px}.compact-box-ui .meal-card{padding:10px;border-radius:12px}.compact-box-ui .meal-destination .meal-room{margin:5px 0 3px}.compact-box-ui .my-boxes{gap:7px}.compact-box-ui .box-list-card{min-height:68px;padding:10px}.compact-box-ui .empty{padding:18px 8px}.compact-box-ui .batch-actions{gap:6px;margin-top:8px}.compact-box-ui .progress-row{margin-top:5px}.compact-box-ui .box-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.compact-box-ui .box-filters button{min-width:0;padding:8px 4px}
/* The current scan stays readable before its logistics receipt is complete. */
.scan-address-preview{margin:12px 0 16px;padding:16px;background:#fff;border:1px solid #ccdcf5;border-left:4px solid #2865ce;border-radius:16px;box-shadow:0 4px 14px #19385b08;overflow-wrap:anywhere}
.scan-address-preview[hidden]{display:none}.preview-heading{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:#506782}.preview-heading span{font-weight:700}.preview-address{display:block;margin:10px 0;font-size:clamp(21px,5.8vw,30px);line-height:1.4;color:#142d4b}.preview-state{font-size:14px;margin:6px 0;color:#9b6200}.preview-state.confirmed{color:#17784e}.scan-address-preview small{color:#7c6a40;font-size:12px}
/* Important pickup cards always show the complete authorized destination. */
#important-list{grid-template-columns:1fr;gap:10px}
.important-order{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,34%);grid-template-areas:"head head" "merchant merchant" "address address" "phone delivery";gap:8px 14px;align-items:center;padding:14px!important}
.important-order-head{grid-area:head}.important-merchant{grid-area:merchant;color:#1e579a;font-size:16px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.important-address{grid-area:address;min-width:0;color:#243e59;font-size:15px;line-height:1.45;overflow-wrap:anywhere}.important-field-label{display:block;margin-bottom:2px;color:#8793a1;font-size:10px;font-weight:500}.important-delivery-time{grid-area:delivery;min-width:0;text-align:right;padding:9px 10px;border-radius:10px;background:#f4f8fd;color:#24715e;font-variant-numeric:tabular-nums}.important-delivery-label{display:block;font-size:11px;line-height:1.4}.important-delivery-value{display:block;font-size:22px;line-height:1.35}.important-delivery-time.countdown-soon{background:#fff6df;color:#a76a00}.important-delivery-time.countdown-late{background:#fff0f0;color:#c53939}.important-delivery-time.countdown-unknown{background:#f5f7fa;color:#7f8c9d}.important-delivery-time.countdown-done{background:#eef3f6;color:#728092}.important-phones{grid-area:phone;margin:0}.important-phone{min-height:38px}.important-meta{display:none}
@media(max-width:420px){.important-order{grid-template-columns:minmax(0,1fr) 112px;gap:7px 9px;padding:12px!important}.important-merchant{font-size:15px}.important-address{font-size:14px}.important-delivery-value{font-size:20px}.important-delivery-time{padding:7px 8px}}
