diff --git a/悦/PDA(海外)/assets/app.css b/悦/PDA(海外)/assets/app.css
new file mode 100644
index 0000000..191b6b5
--- /dev/null
+++ b/悦/PDA(海外)/assets/app.css
@@ -0,0 +1,535 @@
+/* style: base */
+:root{--blue:#1668dc;--blue-dark:#0f4da8;--blue-soft:#eaf2ff;--ink:#17324d;--muted:#6f8194;--neutral-0:#fff;--neutral-50:#f8fafc;--neutral-100:#f3f6fa;--neutral-200:#edf1f5;--neutral-300:#dfe7ef;--neutral-500:#6f8194;--neutral-900:#17324d;--bg:var(--neutral-100);--surface:var(--neutral-0);--line:var(--neutral-300);--green:#10856f;--green-soft:#e2f6f0;--orange:#b86612;--orange-soft:#fff1dd;--red:#c63d3d;--red-soft:#fde8e8;--shadow-soft:0 2px 10px rgba(16,24,40,.05);--shadow:0 8px 24px rgba(16,24,40,.08);--shadow-modal:0 12px 40px rgba(16,24,40,.18);--focus-ring:rgba(22,104,220,.28);--tap-highlight:rgba(22,104,220,.12);--safe-top:env(safe-area-inset-top,0px);--safe-right:env(safe-area-inset-right,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--radius:14px}
+*{box-sizing:border-box;-webkit-tap-highlight-color:var(--tap-highlight)}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Noto Sans SC",Arial,sans-serif}body{max-width:480px;margin:0 auto;padding:var(--safe-top) var(--safe-right) var(--safe-bottom) var(--safe-left)}button,input,select{font:inherit;min-height:44px}button{cursor:pointer;border:0}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}.hidden{display:none!important}
+.app{min-height:100vh;background:var(--bg)}
+.topbar{position:sticky;top:0;z-index:20;background:#fff;border-bottom:1px solid var(--line);padding:12px 18px;box-shadow:var(--shadow-soft)}.topbar-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:10px}.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:10px;background:var(--blue);color:white;font-weight:800}.brand-title{font-size:16px;font-weight:800;letter-spacing:.01em}.brand-sub{font-size:11px;color:var(--muted);margin-top:2px}.top-actions{display:flex;align-items:center;gap:8px}.lang-pill{display:flex;gap:2px;padding:3px;background:#f1f5f9;border-radius:9px}.lang-pill button{background:transparent;color:var(--muted);padding:7px 8px;border-radius:7px;font-size:12px}.lang-pill button.active{background:#fff;color:var(--blue);font-weight:700;box-shadow:var(--shadow-soft)}.avatar{width:44px;height:44px;border-radius:50%;background:var(--blue-soft);color:var(--blue);font-weight:800}.back-btn{width:44px;height:44px;flex:0 0 44px;border-radius:9px;background:#f2f6fb;color:var(--ink);font-size:20px;line-height:1}.page-heading{display:flex;align-items:center;gap:10px;min-width:0}.page-heading h1{font-size:21px;margin:0}.page-heading p{font-size:12px;color:var(--muted);margin:4px 0 0}.content{padding:20px;max-width:980px;margin:0 auto}.content.narrow{max-width:640px}
+.login-wrap{min-height:100vh;display:grid;place-items:center;padding:22px}.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:20px;padding:30px 26px;box-shadow:var(--shadow)}.login-card .brand{margin-bottom:26px}.login-card h1{font-size:25px;margin:0 0 8px}.login-card .intro{color:var(--muted);font-size:13px;line-height:1.6;margin:0 0 22px}.field{display:grid;gap:7px;margin-bottom:14px}.field label{font-size:12px;font-weight:700;color:#496176}.field input,.field select{width:100%;height:46px;border:1px solid var(--line);border-radius:10px;padding:0 13px;background:#fff;color:var(--ink);outline:none}.field input:focus,.field select:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}.login-error{min-height:18px;color:var(--red);font-size:12px;margin:4px 0 8px}.login-btn{width:100%;height:48px;border-radius:11px;background:var(--blue);color:#fff;font-weight:800}.demo-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.demo-row button{padding:8px 10px;border:1px solid var(--line);background:#fff;border-radius:8px;color:var(--muted);font-size:12px}.demo-tip{color:var(--muted);font-size:11px;line-height:1.5;margin-top:16px}
+.welcome{background:var(--blue);color:#fff;border-radius:16px;padding:20px;display:flex;justify-content:space-between;gap:12px;align-items:flex-start;box-shadow:0 9px 22px rgba(16,24,40,.12)}.welcome-kicker{font-size:12px;opacity:.78}.welcome-name{font-size:24px;font-weight:800;margin-top:4px}.welcome-meta{font-size:12px;opacity:.86;margin-top:8px}.shift{padding:8px 10px;border-radius:8px;background:rgba(255,255,255,.15);font-size:11px;white-space:nowrap}.metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:14px 12px;min-width:0}.metric-label{font-size:12px;color:var(--muted);line-height:1.35}.metric-value{font-size:26px;font-weight:800;margin-top:8px;color:var(--ink)}.metric.warn .metric-value{color:var(--orange)}.metric.good .metric-value{color:var(--green)}.metric.blue .metric-value{color:var(--blue)}.section-title{display:flex;justify-content:space-between;align-items:center;margin:24px 0 10px}.section-title h2{font-size:15px;margin:0}.section-title span{font-size:11px;color:var(--muted)}.entry-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.entry{position:relative;text-align:left;background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px;min-height:110px;box-shadow:0 3px 10px rgba(16,24,40,.04)}.entry:hover{border-color:#aac7f5}.entry .entry-icon{font-size:22px}.entry h3{font-size:14px;margin:11px 0 4px}.entry p{font-size:11px;color:var(--muted);line-height:1.4;margin:0}.entry .badge{position:absolute;right:10px;top:10px;padding:4px 6px;border-radius:6px;background:var(--orange-soft);color:var(--orange);font-size:10px}.entry.disabled{opacity:.6;background:#f9fbfd}.entry.disabled:after{content:"";position:absolute;inset:0;background:transparent}.task-strip{margin-top:18px;border-top:1px solid var(--line);padding-top:16px}.task-row{display:flex;align-items:center;gap:10px;background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px;margin-bottom:8px}.task-dot{width:9px;height:9px;border-radius:50%;background:var(--orange);flex:0 0 auto}.task-main{flex:1;min-width:0}.task-main strong{font-size:13px}.task-main p{font-size:11px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 0}.task-row button{background:#f0f5fc;color:var(--blue);border-radius:7px;padding:8px 10px;font-size:11px}
+.toolbar{display:flex;justify-content:space-between;gap:10px;align-items:center;margin:18px 0 12px}.toolbar .subtle{font-size:12px;color:var(--muted)}.search-row{display:flex;gap:8px;margin:12px 0}.search-row input{flex:1;min-width:0;height:44px;border:1px solid var(--line);border-radius:10px;padding:0 12px;background:#fff;outline:none}.search-row button{height:44px;padding:0 14px;border-radius:10px;background:var(--blue);color:#fff;font-weight:700;font-size:12px}.list{display:grid;gap:10px}.list-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px}.list-top{display:flex;justify-content:space-between;gap:10px}.list-title{font-size:14px;font-weight:800}.list-meta{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.45}.status{display:inline-flex;align-items:center;padding:4px 7px;border-radius:6px;font-size:10px;font-weight:700;white-space:nowrap}.status.good{color:var(--green);background:var(--green-soft)}.status.wait{color:var(--orange);background:var(--orange-soft)}.status.bad{color:var(--red);background:var(--red-soft)}.status.blue{color:var(--blue);background:var(--blue-soft)}.list-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:13px 0}.list-grid div{background:#f7f9fc;border-radius:8px;padding:8px}.list-grid span{display:block;color:var(--muted);font-size:10px}.list-grid strong{display:block;font-size:12px;margin-top:3px}.card-actions{display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #edf1f5;padding-top:11px}.btn{min-height:44px;border-radius:9px;padding:0 14px;font-size:12px;font-weight:700}.btn.primary{background:var(--blue);color:#fff}.btn.secondary{background:#eef4fb;color:var(--blue)}.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--muted)}.btn.danger{background:var(--red-soft);color:var(--red)}.btn:disabled{opacity:.45;cursor:not-allowed}
+.work-card{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px}.work-card+.work-card{margin-top:10px}.work-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}.work-head h2{font-size:16px;margin:0}.work-head p{font-size:11px;color:var(--muted);margin:5px 0 0;line-height:1.5}.progress{height:8px;background:#edf2f7;border-radius:99px;overflow:hidden;margin:14px 0 8px}.progress span{display:block;height:100%;background:var(--green);border-radius:99px}.progress-line{display:flex;justify-content:space-between;font-size:11px;color:var(--muted)}.scan-box{display:flex;gap:8px;margin:14px 0}.scan-box input{flex:1;min-width:0;height:48px;border:2px solid #cbd8e6;border-radius:10px;padding:0 13px;outline:none}.scan-box input:focus{border-color:var(--blue)}.scan-box button{width:50px;border-radius:10px;background:var(--blue);color:#fff;font-size:20px}.chips{display:flex;flex-wrap:wrap;gap:6px}.chip{font-size:10px;background:#f1f5f8;color:var(--muted);padding:6px 8px;border-radius:7px}.chip.blue{background:var(--blue-soft);color:var(--blue)}.chip.green{background:var(--green-soft);color:var(--green)}.chip.orange{background:var(--orange-soft);color:var(--orange)}.chip.red{background:var(--red-soft);color:var(--red)}.detail-list{display:grid;gap:8px;margin-top:12px}.detail-row{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #edf1f5;padding-bottom:8px;font-size:12px}.detail-row span{color:var(--muted)}.detail-row strong{text-align:right;word-break:break-word}.scan-result{margin-top:10px;padding:10px 11px;border-radius:9px;background:var(--green-soft);color:var(--green);font-size:12px;line-height:1.45}.scan-result.error{background:var(--red-soft);color:var(--red)}.scan-result.info{background:var(--blue-soft);color:var(--blue)}.table-wrap{overflow:auto;margin-top:12px;border:1px solid var(--line);border-radius:10px}.table{width:100%;border-collapse:collapse;min-width:680px}.table th,.table td{font-size:11px;text-align:left;padding:10px;border-bottom:1px solid #edf1f5;white-space:nowrap}.table th{color:var(--muted);font-weight:700;background:#f8fafc}.table tr:last-child td{border-bottom:0}.empty{text-align:center;padding:34px 14px;color:var(--muted);font-size:12px}.bottom-bar{position:sticky;bottom:0;background:rgba(243,246,250,.96);padding:12px 0 2px;margin-top:16px}.bottom-bar .btn{width:100%;height:48px}.modal-backdrop{position:fixed;inset:0;background:rgba(16,24,40,.42);display:grid;place-items:end center;z-index:30;padding:14px}.modal{background:#fff;width:min(520px,100%);border-radius:16px;padding:20px;box-shadow:var(--shadow-modal);max-height:88vh;overflow:auto}.modal h2{font-size:17px;margin:0 0 13px}.modal p{font-size:12px;color:var(--muted);line-height:1.5}.modal-actions{display:flex;gap:8px;margin-top:18px}.modal-actions .btn{flex:1}.toast{position:fixed;left:50%;bottom:24px;z-index:50;transform:translateX(-50%);background:#17324d;color:#fff;padding:11px 14px;border-radius:9px;font-size:12px;box-shadow:var(--shadow);max-width:min(92vw,420px);text-align:center}.toast.good{background:var(--green)}.toast.bad{background:var(--red)}.toast.info{background:var(--blue-dark)}
+.profile-grid{display:grid;gap:10px}.profile-line{display:flex;justify-content:space-between;padding:13px 0;border-bottom:1px solid var(--line);font-size:13px}.profile-line span{color:var(--muted)}.profile-line strong{text-align:right}.lang-select{display:flex;gap:6px}.lang-select button{padding:7px 9px;border-radius:7px;background:#f0f4f8;color:var(--muted);font-size:11px}.lang-select button.active{background:var(--blue-soft);color:var(--blue);font-weight:700}
+@media(max-width:640px){body{max-width:100%}.content{padding:14px}.topbar{padding:10px 14px}.brand-sub{display:none}.welcome{padding:17px}.welcome-name{font-size:21px}.metrics{gap:7px}.metric{padding:11px 9px}.metric-label{font-size:10px}.metric-value{font-size:23px}.entry-grid{grid-template-columns:repeat(2,1fr)}.entry{min-height:102px;padding:13px}.entry h3{font-size:13px;margin-top:9px}.list-grid{grid-template-columns:repeat(2,1fr)}.toolbar{align-items:flex-start;flex-direction:column}.toolbar .btn{width:100%}.page-heading h1{font-size:19px}.table-wrap{margin-left:-2px;margin-right:-2px}}
+@media(min-width:641px){.content{padding-top:26px}.login-wrap{padding:40px}.modal-backdrop{align-items:center}}
+ .password-wrap{position:relative}.password-wrap input{padding-right:68px}.password-wrap button{position:absolute;right:6px;top:6px;height:34px;padding:0 9px;border-radius:7px;background:#eef4fb;color:var(--blue);font-size:11px;font-weight:700}
+.photo-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:14px}.photo-step{min-height:126px;border:1px solid var(--line);border-radius:11px;background:#f8fafc;padding:12px;display:flex;flex-direction:column;justify-content:space-between}.photo-step.done{background:var(--green-soft);border-color:#a9dfd1}.photo-preview{height:52px;border-radius:8px;background:#e8eef5;display:grid;place-items:center;color:var(--muted);font-size:20px;overflow:hidden}.photo-preview img{width:100%;height:100%;object-fit:cover}.photo-step strong{font-size:12px;margin:8px 0}.photo-step label{position:relative;display:grid;place-items:center;min-height:44px;text-align:center;padding:8px;border-radius:7px;background:var(--blue);color:#fff;font-size:11px;font-weight:700;cursor:pointer}.photo-step label:focus-within{outline:3px solid var(--focus-ring);outline-offset:2px}.photo-step input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}@media(max-width:360px){.photo-grid{grid-template-columns:1fr}}
+
+/* style: ios-work-surface */
+:root{
+ --blue:#0a66d8;
+ --blue-dark:#084faa;
+ --blue-soft:#eaf3ff;
+ --ink:#475467;
+ --muted:#65758b;
+ --bg:#f2f4f7;
+ --surface:#fff;
+ --line:#e4e7ec;
+ --green:#087a62;
+ --green-soft:#e8f7f2;
+ --orange:#a75b0b;
+ --orange-soft:#fff3e3;
+ --red:#b42318;
+ --red-soft:#fff0ee;
+ --shadow-soft:0 2px 8px rgba(16,24,40,.06);
+ --shadow:0 8px 24px rgba(16,24,40,.08);
+ --shadow-modal:0 20px 48px rgba(16,24,40,.18);
+ --radius:14px;
+}
+html{background:#e7ebf0}
+body{width:100%;max-width:520px;font-size:15px;line-height:1.45;overflow-x:hidden}
+.app{min-height:calc(100dvh - var(--safe-top) - var(--safe-bottom));background:var(--bg)}
+button,input,select{font-size:16px}
+button{transition:background-color .16s ease,transform .16s ease,opacity .16s ease}
+button:active:not(:disabled){transform:scale(.98)}
+button:disabled{opacity:.42}
+
+.topbar{top:0;min-height:60px;padding:8px 16px;background:rgba(255,255,255,.96);border-color:var(--line);box-shadow:none;backdrop-filter:saturate(160%) blur(16px)}
+.topbar-row{min-height:44px;gap:10px}
+.page-heading{flex:1;gap:8px;overflow:hidden}
+.page-heading>div{min-width:0}
+.page-heading h1{font-size:19px;line-height:1.2;font-weight:750;letter-spacing:0;white-space:normal;overflow-wrap:anywhere}
+.page-heading p{font-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere}
+.back-btn{display:grid;place-items:center;background:transparent;color:var(--blue);font-size:31px;font-weight:400}
+.top-actions{flex:0 0 auto;gap:6px}
+.avatar{border:1px solid #d8e8ff;background:var(--blue-soft);font-size:14px}
+.lang-pill{gap:0;padding:2px;border-radius:10px;background:#eef1f5}
+.lang-pill button{min-width:44px;padding:0 7px;border-radius:8px;color:#596579;font-size:12px}
+.lang-pill button.active{color:var(--blue);background:var(--surface);box-shadow:0 1px 3px rgba(16,24,40,.09)}
+.content{width:100%;max-width:680px;padding:18px 16px calc(24px + var(--safe-bottom))}
+
+.login-wrap{min-height:calc(100dvh - var(--safe-top) - var(--safe-bottom));padding:24px 18px}
+.login-card{width:min(420px,100%);padding:26px 22px;border-color:var(--line);border-radius:16px;box-shadow:var(--shadow)}
+.login-card .brand{margin-bottom:24px}
+.brand-mark{width:44px;height:44px;border-radius:12px}
+.brand-title{font-size:17px;letter-spacing:0}
+.brand-sub{font-size:12px}
+.login-card h1{font-size:25px;line-height:1.22;letter-spacing:0}
+.login-card .intro{font-size:14px;line-height:1.55;margin-bottom:20px}
+.field{gap:7px;margin-bottom:15px}
+.field label{font-size:13px;color:#475467}
+.field input,.field select{height:50px;border-color:#d0d5dd;border-radius:11px;padding-inline:14px;font-size:16px}
+.field input:focus,.field select:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--focus-ring)}
+.login-btn{height:50px;border-radius:11px;font-size:16px}
+.demo-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
+.demo-row button{min-width:0;padding:8px;border-color:var(--line);background:#f8fafc;color:#475467;font-size:12px;white-space:normal}
+.demo-tip{font-size:12px}
+
+.welcome{padding:18px;border-radius:16px;background:var(--blue);box-shadow:0 7px 18px rgba(16,24,40,.12)}
+.welcome-kicker{font-size:13px}
+.welcome-name{font-size:24px;letter-spacing:0}
+.welcome-meta{font-size:12px;line-height:1.4}
+.shift{min-height:32px;padding:7px 9px;border:1px solid rgba(255,255,255,.22);border-radius:9px;background:rgba(255,255,255,.12);font-size:11px;white-space:normal;text-align:center}
+.metrics{gap:8px;margin:12px 0 20px}
+.metric{min-height:88px;padding:12px 10px;border-color:var(--line);border-radius:12px;box-shadow:none}
+.metric-label{font-size:12px;line-height:1.35;overflow-wrap:anywhere}
+.metric-value{font-size:25px;line-height:1.05;margin-top:8px}
+.section-title{margin:23px 2px 10px}
+.section-title h2{font-size:17px;line-height:1.25}
+.section-title span{font-size:12px}
+.entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
+.entry{min-width:0;min-height:124px;padding:14px;border-color:var(--line);border-radius:14px;box-shadow:none}
+.entry:hover{border-color:var(--line)}
+.entry:active{background:#f8fafc}
+.entry .entry-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:10px;background:var(--blue-soft);color:var(--blue);font-size:19px;font-weight:700}
+.entry h3{font-size:15px;line-height:1.25;margin:12px 0 5px;overflow-wrap:anywhere}
+.entry p{font-size:12px;line-height:1.4;overflow-wrap:anywhere}
+.entry-grid .entry p{display:none}
+.inbound-entry-grid{max-width:none}
+.outbound-entry-grid{max-width:none}
+.internal-entry-grid{max-width:none}
+.section-title h2{font-size:15px;line-height:1.2;white-space:nowrap}
+.section-title{margin:16px 2px 8px}
+.page-heading h1{font-size:17px;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
+.page-heading p{display:none}
+.entry-grid .entry{text-align:center;border-radius:10px}
+.entry-grid .entry .entry-icon{margin-inline:auto}
+.entry-grid .entry h3{font-size:12px;line-height:1.2;color:#667085;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
+.entry .badge{top:12px;right:12px;min-width:24px;text-align:center;border-radius:99px;font-size:11px}
+.entry.merge-entry .entry-icon{background:var(--blue-soft);color:var(--blue)}
+.task-strip{margin-top:22px;padding-top:18px;border-color:var(--line)}
+.task-row{min-width:0;padding:12px 13px;border-color:var(--line);border-radius:12px;margin-bottom:8px;box-shadow:none}
+.task-main strong{font-size:14px;overflow-wrap:anywhere}
+.task-main p{font-size:12px;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.35}
+.task-row button{flex:0 0 auto;min-width:44px;min-height:44px;padding:0 12px;border-radius:10px;background:var(--blue-soft);font-size:12px;font-weight:700}
+
+.toolbar{margin:4px 0 12px;min-height:32px}
+.toolbar .subtle{font-size:13px}
+.list{gap:10px}
+.list-card,.work-card{border-color:var(--line);border-radius:14px;background:var(--surface);box-shadow:none}
+.list-card{padding:15px}
+.list-top{align-items:flex-start}
+.list-title{font-size:15px;line-height:1.3;overflow-wrap:anywhere}
+.list-meta{font-size:12px;line-height:1.5;overflow-wrap:anywhere}
+.status{max-width:100%;padding:5px 8px;border-radius:99px;font-size:11px;line-height:1.25;white-space:normal;text-align:center;overflow-wrap:anywhere}
+.list-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:13px 0}
+.list-grid div{min-width:0;padding:9px;border-radius:9px;background:#f7f8fa}
+.list-grid span{font-size:11px;line-height:1.25}
+.list-grid strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
+.card-actions{gap:8px;padding-top:12px;border-color:var(--line);flex-wrap:wrap}
+.btn{min-height:44px;border-radius:10px;padding:0 14px;font-size:13px}
+.btn.primary{background:var(--blue)}
+.btn.secondary{background:var(--blue-soft)}
+.btn.ghost{border-color:var(--line);background:#fff;color:#475467}
+
+.work-card{padding:16px}
+.work-card+.work-card{margin-top:12px}
+.work-head h2{font-size:17px;line-height:1.3}
+.work-head p{font-size:12px;line-height:1.45;overflow-wrap:anywhere}
+.detail-list{gap:0;margin-top:13px}
+.detail-row{align-items:flex-start;min-height:42px;padding:10px 0;border-color:var(--line);font-size:13px;line-height:1.4}
+.detail-row:last-child{border-bottom:0}
+.detail-row span{flex:0 0 38%}
+.detail-row strong{min-width:0;overflow-wrap:anywhere}
+.scan-box{gap:8px;margin:16px 0 12px}
+.scan-box input{height:50px;border:1px solid #b9c4d1;border-radius:11px;font-size:16px}
+.scan-box button{width:50px;height:50px;border-radius:11px;background:var(--blue)}
+.scan-result{padding:12px;border-radius:10px;font-size:13px}
+.progress{height:7px;margin:16px 0 8px;background:#e9edf2}
+.progress span{background:var(--blue)}
+.progress-line{font-size:12px}
+.chip{min-height:32px;font-size:11px}
+.search-row{gap:8px;margin:8px 0 14px}
+.search-row input,.search-row button{height:48px}
+
+.table-wrap{margin-top:13px;border-color:var(--line);border-radius:11px;background:#fff;-webkit-overflow-scrolling:touch}
+.table{min-width:620px}
+.table th,.table td{padding:12px 10px;border-color:var(--line);font-size:12px}
+.table th{background:#f7f8fa}
+.empty{padding:36px 16px;font-size:13px}
+.express-order-list{display:grid;gap:10px;margin-top:13px}
+.express-order-card{background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px}
+.express-order-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;min-width:0}
+.express-order-row+.express-order-row{grid-template-columns:minmax(0,.75fr) minmax(0,1.25fr) auto 72px;align-items:end;margin-top:11px;padding-top:11px;border-top:1px solid var(--line)}
+.express-order-field{min-width:0}
+.express-order-field>span{display:block;color:var(--muted);font-size:10px;line-height:1.25;margin-bottom:3px}
+.express-order-field>strong{display:block;min-width:0;font-size:12px;line-height:1.35;overflow-wrap:anywhere;word-break:break-word}
+.express-order-action{min-width:72px}
+.express-order-action .btn{width:100%;padding-inline:10px}
+.express-scan-card .scan-box{margin-bottom:0}
+.express-quantity-field{margin-top:14px}
+.express-quantity-field input{width:100%;height:50px;border:1px solid #b9c4d1;border-radius:11px;padding:0 14px;background:#fff;color:var(--text);font:inherit;font-size:16px}
+.express-photo-row{display:flex;align-items:flex-start;gap:12px;margin-top:14px}
+.express-waybill-preview{width:92px;height:92px;border-radius:11px;background:#e9edf2;display:grid;place-items:center;overflow:hidden;color:var(--muted)}
+.express-waybill-preview img{width:100%;height:100%;object-fit:cover}
+.express-waybill-preview svg{width:26px;height:26px;stroke:currentColor;fill:none}
+.express-photo-add{position:relative;display:grid;place-items:center;width:92px;height:92px;border:1px dashed #98a2b3;border-radius:11px;background:#fff;color:var(--blue);font-size:34px;line-height:1;cursor:pointer}
+.express-photo-add input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
+.express-photo-add:focus-within{outline:3px solid var(--focus-ring);outline-offset:2px}
+.app[data-page="express-signin-detail"]{display:flex;min-height:100dvh;flex-direction:column}
+.app[data-page="express-signin-detail"] .content{display:flex;flex:1;flex-direction:column}
+.app[data-page="express-signin-detail"] .bottom-bar{margin-top:auto}
+@media(max-width:639px){
+ .express-order-row{gap:8px}
+ .express-order-row+.express-order-row{grid-template-columns:minmax(0,.7fr) minmax(0,1.2fr) auto 72px;gap:7px}
+ .express-order-row+.express-order-row .express-order-field>strong{font-size:11px}
+}
+.photo-grid{grid-template-columns:1fr;gap:10px}
+.photo-step{min-height:150px;padding:13px;border-color:var(--line);border-radius:12px;background:#f8fafc}
+.photo-preview{height:70px;border-radius:9px;background:#e9edf2}
+.photo-step strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere}
+.photo-step label{border-radius:10px;font-size:13px}
+.bottom-bar{z-index:12;margin:18px -16px calc(-24px - var(--safe-bottom));padding:12px 16px calc(12px + var(--safe-bottom));background:rgba(242,244,247,.96);border-top:1px solid var(--line);backdrop-filter:saturate(150%) blur(14px)}
+.bottom-bar>div{align-items:stretch;flex-wrap:wrap}
+.bottom-bar .btn{height:50px;min-width:120px;font-size:14px}
+.modal-backdrop{padding:max(12px,var(--safe-top)) max(12px,var(--safe-right)) calc(12px + var(--safe-bottom)) max(12px,var(--safe-left));background:rgba(16,24,40,.46)}
+.modal{padding:20px;border-radius:16px;box-shadow:var(--shadow-modal)}
+.modal h2{font-size:18px}
+.modal p{font-size:14px}
+.toast{bottom:calc(20px + var(--safe-bottom));border-radius:11px;box-shadow:var(--shadow)}
+.password-wrap button,.lang-select button{min-width:44px;min-height:44px}
+
+@media (max-width:359px){
+ .topbar{padding-inline:12px}
+ .top-actions{gap:4px}
+ .topbar-row:has(.back-btn) .avatar{display:none}
+ .lang-pill button{min-width:44px;padding-inline:5px}
+ .page-heading h1{font-size:17px}
+ .content{padding-inline:12px}
+ .welcome{padding:15px}
+ .welcome-name{font-size:21px}
+ .metrics{gap:6px}
+ .metric{padding:10px 7px}
+ .metric-label{font-size:11px}
+ .metric-value{font-size:22px}
+ .entry-grid{max-width:288px;margin-inline:auto;gap:8px}
+ .inbound-entry-grid,.outbound-entry-grid{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));margin-inline:0}
+ .inbound-entry-grid .entry,.outbound-entry-grid .entry{min-height:92px;padding:10px 6px}
+ .internal-entry-grid{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));margin-inline:0}
+ .internal-entry-grid .entry{min-height:92px;padding:10px 6px}
+ .entry{min-height:92px;padding:11px}
+ .entry h3{font-size:14px}
+ .bottom-bar{margin-inline:-12px;padding-inline:12px}
+}
+@media (min-width:360px) and (max-width:639px){
+ .entry-grid{max-width:348px;margin-inline:auto;gap:8px}
+ .inbound-entry-grid{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));margin-inline:0}
+ .inbound-entry-grid .entry{min-height:94px;padding:11px 8px}
+ .outbound-entry-grid{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));margin-inline:0}
+ .outbound-entry-grid .entry{min-height:94px;padding:11px 8px}
+ .internal-entry-grid{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));margin-inline:0}
+ .internal-entry-grid .entry{min-height:94px;padding:11px 8px}
+ .entry{min-height:94px;padding:12px}
+ .entry h3{margin-top:10px}
+}
+@media (min-width:390px){
+ .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
+}
+@media (min-width:640px){
+ body{max-width:700px}
+ .content{padding:24px 22px calc(28px + var(--safe-bottom))}
+ .topbar{padding-inline:22px}
+ .entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
+ .bottom-bar{margin-inline:-22px;padding-inline:22px}
+}
+@media (min-width:768px){
+ body{max-width:760px}
+ .content{max-width:720px}
+ .list-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
+}
+@media (hover:hover) and (pointer:fine){
+ .entry:hover,.list-card:hover{border-color:#cdd5df;background:#fcfcfd}
+ .btn.primary:hover,.login-btn:hover,.scan-box button:hover{background:var(--blue-dark)}
+}
+@media (prefers-reduced-motion:reduce){
+ *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
+}
+
+/* style: ios-icon-system */
+.entry .entry-icon{position:relative;isolation:isolate;width:40px;height:40px;border-radius:10px;font-size:0;line-height:0;box-shadow:0 2px 5px rgba(16,24,40,.07),inset 0 0 0 1px rgba(16,24,40,.025);transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s ease}
+.entry .entry-icon::after{content:"";position:absolute;z-index:-1;inset:1px;border-radius:9px;box-shadow:inset 0 1px 0 rgba(255,255,255,.82);pointer-events:none}
+.entry .entry-icon svg{width:22px;height:22px;display:block;stroke:currentColor;stroke-width:1.75;fill:none;stroke-linecap:round;stroke-linejoin:round}
+.entry .entry-icon .icon-fill{fill:currentColor;stroke:none;opacity:.11}
+.entry:active .entry-icon{transform:scale(.94);box-shadow:0 1px 2px rgba(16,24,40,.08),inset 0 0 0 1px rgba(16,24,40,.04)}
+.entry.receive-entry .entry-icon{background:var(--orange-soft);color:var(--orange)}
+.entry.pallet-entry .entry-icon{background:var(--blue-soft);color:var(--blue)}
+.entry.pick-entry .entry-icon{background:var(--orange-soft);color:var(--orange)}
+.entry.review-entry .entry-icon{background:var(--green-soft);color:var(--green)}
+.entry.handover-entry .entry-icon{background:var(--green-soft);color:var(--green)}
+.entry.inventory-entry .entry-icon{background:#e8f5f3;color:#26766f}
+.entry.relabel-entry .entry-icon{background:#eef1ff;color:#4f5fc7}
+.entry.exception-entry .entry-icon{background:var(--red-soft);color:var(--red)}
+.entry.more-entry .entry-icon{background:#eef1f5;color:#475467}
+.outbound-entry-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
+.back-btn svg{width:21px;height:21px;display:block;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
+.scan-box button{display:grid;place-items:center}
+.scan-box button svg{width:22px;height:22px;display:block;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
+.photo-preview svg{width:24px;height:24px;display:block;stroke:currentColor;stroke-width:1.7;fill:none;stroke-linecap:round;stroke-linejoin:round}
+.photo-step.done .photo-preview{color:var(--green);background:#d9f2eb}
+.photo-step.done .photo-preview svg{stroke-width:2}
+.photo-capture{width:100%;height:50px;background:var(--blue)!important;color:#fff!important;border:0!important;border-radius:10px}
+.photo-capture svg{width:20px;height:20px;display:block;flex:0 0 20px;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
+.photo-capture span{display:block;white-space:nowrap;letter-spacing:0}
+.photo-add-tile:active{background:#f7f8fa!important}
+.photo-add-tile:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}
+
+/* style: ios-final-report */
+:root{
+ --ios-blue:#155eef;
+ --ios-blue-pressed:#004eeb;
+ --ios-blue-soft:#edf4ff;
+ --ios-bg:#f5f5f7;
+ --ios-surface:#fff;
+ --ios-surface-muted:#f9fafb;
+ --ios-ink:#1d1d1f;
+ --ios-secondary:#62626a;
+ --ios-tertiary:#85858d;
+ --ios-border:#e5e5ea;
+ --ios-green:#067a57;
+ --ios-green-soft:#e9f7f1;
+ --ios-orange:#a84f00;
+ --ios-orange-soft:#fff3e5;
+ --ios-red:#b42318;
+ --ios-red-soft:#fff0ee;
+ --ios-indigo:#4f5fc7;
+ --ios-indigo-soft:#eef0ff;
+ --ios-focus:rgba(21,94,239,.28);
+ --blue:var(--ios-blue);
+ --blue-dark:var(--ios-blue-pressed);
+ --blue-soft:var(--ios-blue-soft);
+ --ink:var(--ios-ink);
+ --muted:var(--ios-secondary);
+ --bg:var(--ios-bg);
+ --surface:var(--ios-surface);
+ --line:var(--ios-border);
+ --green:var(--ios-green);
+ --green-soft:var(--ios-green-soft);
+ --orange:var(--ios-orange);
+ --orange-soft:var(--ios-orange-soft);
+ --red:var(--ios-red);
+ --red-soft:var(--ios-red-soft);
+ --focus-ring:var(--ios-focus);
+ --shadow-soft:0 2px 8px rgba(16,24,40,.05);
+ --shadow:0 10px 30px rgba(16,24,40,.1);
+ --shadow-modal:0 22px 56px rgba(16,24,40,.2);
+}
+html{background:#eceef1}
+body{color:var(--ios-ink);font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Segoe UI","PingFang SC","Noto Sans SC",Arial,sans-serif;font-feature-settings:"tnum" 1,"kern" 1;text-rendering:optimizeLegibility}
+.app{min-height:100dvh;background:var(--ios-bg)}
+button,input,select{min-height:44px;color:inherit;letter-spacing:0}
+button{touch-action:manipulation}
+button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--ios-focus);outline-offset:2px}
+button:disabled{cursor:not-allowed;opacity:.42;transform:none!important}
+
+.topbar{min-height:62px;padding:8px 16px;background:rgba(255,255,255,.94);border-bottom:1px solid rgba(60,60,67,.15);backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px)}
+.topbar-row{min-height:45px}
+.page-heading{gap:6px}
+.page-heading h1{color:var(--ios-ink);font-size:17px;font-weight:700;line-height:1.2}
+.page-heading p{display:none}
+.back-btn{border-radius:10px;color:var(--ios-blue);background:transparent}
+.back-btn:active{background:var(--ios-blue-soft)}
+.lang-pill{padding:2px;border-radius:10px;background:#edeef1}
+.lang-pill button{min-width:44px;min-height:44px;padding:0 7px;border-radius:8px;color:var(--ios-secondary);font-size:12px}
+.lang-pill button.active{color:var(--ios-blue);background:#fff;box-shadow:0 1px 4px rgba(16,24,40,.1)}
+.avatar{border:1px solid #d7e5ff;background:var(--ios-blue-soft);color:var(--ios-blue);box-shadow:inset 0 1px 0 rgba(255,255,255,.8)}
+.content{padding:18px 16px calc(28px + env(safe-area-inset-bottom,0px))}
+
+.login-wrap{background:var(--ios-surface);padding:20px 18px calc(20px + env(safe-area-inset-bottom,0px))}
+.login-card{border:0;border-radius:0;background:transparent;box-shadow:none}
+.brand{gap:12px}.brand-mark{background:var(--ios-blue);box-shadow:0 4px 12px rgba(16,24,40,.14)}
+.brand-title{color:var(--ios-ink);font-weight:760}.brand-sub{color:var(--ios-secondary)}
+.login-card h1{color:var(--ios-ink);font-size:26px;font-weight:760}
+.login-card .intro{color:var(--ios-secondary)}
+.field label{color:#414149;font-weight:650}
+.field input,.field select,.search-row input,.scan-box input{border:1px solid #c7c7cc;background:#fff;color:var(--ios-ink);box-shadow:inset 0 1px 0 rgba(0,0,0,.015)}
+.field input::placeholder,.search-row input::placeholder,.scan-box input::placeholder{color:#777780;opacity:1}
+.field input:focus,.field select:focus,.search-row input:focus,.scan-box input:focus{border-color:var(--ios-blue);box-shadow:0 0 0 3px var(--ios-focus)}
+.login-error{color:var(--ios-red);font-size:13px}
+.login-btn,.btn.primary,.search-row button,.scan-box button{background:var(--ios-blue);color:#fff;box-shadow:0 2px 5px rgba(16,24,40,.12)}
+.login-btn:active,.btn.primary:active,.search-row button:active,.scan-box button:active{background:var(--ios-blue-pressed)}
+.demo-row button{border:1px solid var(--ios-border);background:var(--ios-surface-muted);color:#414149}
+.demo-row button:active{background:#eeeef0}
+
+.welcome{border-radius:16px;background:var(--ios-blue);box-shadow:0 10px 24px rgba(16,24,40,.13)}
+.welcome-kicker{color:rgba(255,255,255,.8)}
+.welcome-name{font-weight:780}.welcome-meta{color:rgba(255,255,255,.86)}
+.shift{border-color:rgba(255,255,255,.28);background:rgba(255,255,255,.12);color:#fff}
+.metrics{margin:12px 0 18px}
+.metric{border:1px solid var(--ios-border);background:var(--ios-surface);box-shadow:0 1px 2px rgba(16,24,40,.025)}
+.metric-label{color:var(--ios-secondary)}
+.metric-value{font-weight:760}.metric.warn .metric-value{color:var(--ios-orange)}.metric.good .metric-value{color:var(--ios-green)}.metric.blue .metric-value{color:var(--ios-blue)}
+.section-title{margin:18px 2px 8px}.section-title h2{color:#3a3a40;font-size:15px;font-weight:730}
+.entry-grid{gap:8px}
+.entry{border:1px solid var(--ios-border);border-radius:10px;background:var(--ios-surface);box-shadow:0 1px 2px rgba(16,24,40,.025);transition:background-color .16s ease,border-color .16s ease,transform .16s cubic-bezier(.2,.8,.2,1)}
+.entry:active{border-color:#d2d2d7;background:#fafafa;transform:scale(.975)}
+.entry-grid .entry h3{color:#5b5b63;font-size:12px;font-weight:680}
+.entry .entry-icon{box-shadow:0 3px 8px rgba(16,24,40,.07),inset 0 0 0 1px rgba(16,24,40,.025)}
+.entry.relabel-entry .entry-icon{background:var(--ios-indigo-soft);color:var(--ios-indigo)}
+.app[data-page="workbench"] .entry .entry-icon{background:var(--ios-blue-soft);color:var(--ios-blue)}
+
+.toolbar{margin:2px 0 12px}.toolbar .subtle{color:var(--ios-secondary);font-size:13px}
+.list{gap:10px}
+.list-card,.work-card{border:1px solid var(--ios-border);border-radius:12px;background:var(--ios-surface);box-shadow:0 1px 2px rgba(16,24,40,.02)}
+.list-card{padding:15px}.work-card{padding:16px}
+.list-title,.work-head h2{color:var(--ios-ink);font-weight:720}
+.list-meta,.work-head p{color:var(--ios-secondary)}
+.list-grid div{background:var(--ios-surface-muted)}
+.list-grid span{color:var(--ios-tertiary)}
+.list-grid strong{color:#34343a;font-weight:680}
+.status{border-radius:6px;font-weight:680}
+.status.good{color:var(--ios-green);background:var(--ios-green-soft)}
+.status.wait{color:var(--ios-orange);background:var(--ios-orange-soft)}
+.status.bad{color:var(--ios-red);background:var(--ios-red-soft)}
+.status.blue{color:var(--ios-blue);background:var(--ios-blue-soft)}
+.card-actions{border-color:var(--ios-border)}
+.btn{border-radius:10px;font-weight:680}
+.btn.secondary{background:var(--ios-blue-soft);color:var(--ios-blue)}
+.btn.ghost{border:1px solid var(--ios-border);background:#fff;color:#4f4f57}
+.btn.danger{background:var(--ios-red-soft);color:var(--ios-red)}
+.btn.secondary:active,.btn.ghost:active{background:#eeeef1}
+
+.detail-row{border-color:var(--ios-border)}
+.detail-row span{color:var(--ios-secondary)}
+.detail-row strong{color:#303036;font-weight:660}
+.progress{height:7px;background:#e8e8ed}.progress span{background:var(--ios-blue)}
+.progress-line{color:var(--ios-secondary)}.progress-line strong{color:#45454d}
+.scan-box button{border-radius:11px}
+.scan-result{border:1px solid transparent}
+.scan-result.info{border-color:#d7e5ff;background:var(--ios-blue-soft);color:#174ea6}
+.scan-result.good{border-color:#ccebdd;background:var(--ios-green-soft);color:var(--ios-green)}
+.scan-result.error{border-color:#f2cbc7;background:var(--ios-red-soft);color:var(--ios-red)}
+.chip{border-radius:6px;background:#f0f0f3;color:var(--ios-secondary)}
+
+.photo-grid{gap:10px}.photo-step{border-color:var(--ios-border);border-radius:12px;background:var(--ios-surface-muted)}
+.photo-step.done{border-color:#ccebdd;background:var(--ios-green-soft)}
+.photo-preview{background:#eceef1}.photo-step label{background:var(--ios-blue);border-radius:10px}
+.photo-add-tile{border-color:#c7c7cc!important;border-radius:10px!important;color:#7a7a83!important}
+.bottom-bar{border-top:1px solid rgba(60,60,67,.15);background:rgba(245,245,247,.94);padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));backdrop-filter:saturate(180%) blur(18px);-webkit-backdrop-filter:saturate(180%) blur(18px)}
+
+.modal-backdrop{background:rgba(0,0,0,.38)}
+.modal{border-radius:16px 16px 12px 12px;background:#fff;box-shadow:var(--shadow-modal)}
+.modal h2{color:var(--ios-ink);font-weight:740}.modal p{color:var(--ios-secondary)}
+.toast{width:max-content;max-width:min(88vw,390px);border-radius:10px;background:#2c2c2e;color:#fff;box-shadow:0 8px 24px rgba(0,0,0,.2)}
+.toast.good{background:#176b52}.toast.bad{background:#9f2d24}.toast.info{background:#2c2c2e}
+.empty{color:var(--ios-secondary)}
+
+.inventory-results{display:grid;gap:10px}
+.inventory-card{border:1px solid var(--ios-border);border-radius:12px;background:#fff;padding:15px;box-shadow:0 1px 2px rgba(16,24,40,.02)}
+.inventory-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:12px;border-bottom:1px solid var(--ios-border)}
+.inventory-card-title{min-width:0;color:var(--ios-ink);font-size:15px;font-weight:720;line-height:1.35;overflow-wrap:anywhere}
+.inventory-card-customer{margin-top:4px;color:var(--ios-secondary);font-size:12px;line-height:1.4;overflow-wrap:anywhere}
+.inventory-facts{display:grid;grid-template-columns:minmax(0,1fr) minmax(88px,.55fr);gap:8px;margin-top:12px}
+.inventory-fact{min-width:0;padding:9px 10px;border-radius:9px;background:var(--ios-surface-muted)}
+.inventory-fact span{display:block;color:var(--ios-tertiary);font-size:11px;line-height:1.3}
+.inventory-fact strong{display:block;margin-top:4px;color:#34343a;font-size:13px;line-height:1.35;overflow-wrap:anywhere}
+.inventory-fact.qty strong{font-size:18px;color:var(--ios-blue)}
+.profile-line{border-color:var(--ios-border)}.profile-line span{color:var(--ios-secondary)}
+.lang-select{flex-wrap:wrap}.lang-select button{border:1px solid transparent;background:#f0f0f3;color:#4f4f57}.lang-select button.active{border-color:#d7e5ff;background:var(--ios-blue-soft);color:var(--ios-blue)}
+
+@media(max-width:359px){
+ .topbar{padding-inline:12px}.content{padding-inline:12px}
+ .topbar-row{gap:4px}.page-heading{gap:2px}.page-heading h1{font-size:16px}
+ .topbar-row:has(.back-btn) .avatar{display:none}
+ .lang-pill button{min-width:42px;padding-inline:4px}
+ .welcome{padding:15px}.shift{max-width:88px}
+ .metric{min-height:84px;padding:10px 7px}.metric-label{font-size:11px}.metric-value{font-size:23px}
+ .inbound-entry-grid .entry,.outbound-entry-grid .entry,.internal-entry-grid .entry{padding:9px 5px}
+ .entry .entry-icon{width:38px;height:38px}.entry-grid .entry h3{font-size:11px}
+ .list-card,.work-card{padding:14px}.card-actions .btn{flex:1 1 auto}
+ .inventory-facts{grid-template-columns:1fr 82px}
+ .bottom-bar{margin-inline:-12px;padding-inline:12px}
+}
+@media(max-width:480px){
+ .topbar-row:has(.back-btn) .avatar{display:none}
+}
+@media(min-width:390px){
+ .photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
+}
+@media(min-width:640px){
+ body{max-width:720px;box-shadow:0 0 0 1px rgba(16,24,40,.06),0 18px 60px rgba(16,24,40,.12)}
+ .login-card{padding:28px;border:1px solid var(--ios-border);border-radius:16px;background:#fff;box-shadow:var(--shadow)}
+ .modal-backdrop{place-items:center}.modal{max-width:440px;border-radius:16px}
+ .inventory-results{grid-template-columns:repeat(2,minmax(0,1fr))}
+}
+@media(hover:hover) and (pointer:fine){
+ .entry:hover,.list-card:hover,.inventory-card:hover{border-color:#d1d1d6;background:#fcfcfd}
+ .btn.primary:hover,.login-btn:hover,.search-row button:hover,.scan-box button:hover{background:var(--ios-blue-pressed)}
+}
+@media(prefers-reduced-motion:reduce){
+ *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
+}
+
+/* style: pallet-list-toolbar */
+.pallet-list-toolbar{display:flex!important;align-items:center;justify-content:space-between;flex-direction:row!important}
+.pallet-list-toolbar .generate-pallet-label{min-height:32px;padding:0;color:var(--blue);background:transparent;border:0}
+.pallet-list-footer>div{display:flex;gap:8px;width:100%}
+.pallet-list-footer .btn{flex:1}
+.pallet-progress-card{margin-bottom:10px}
+.pallet-list-table{min-width:0;table-layout:fixed}
+.pallet-list-table th,.pallet-list-table td{padding:8px 6px;font-size:11px;white-space:normal;overflow-wrap:anywhere;vertical-align:middle}
+.pallet-list-table tbody td:nth-child(-n+3){font-size:14px}
+.pallet-list-table th:nth-child(1),.pallet-list-table td:nth-child(1){width:35%}
+.pallet-list-table th:nth-child(2),.pallet-list-table td:nth-child(2){width:25%}
+.pallet-list-table th:nth-child(3),.pallet-list-table td:nth-child(3){width:15%;text-align:left}
+.pallet-list-table th:nth-child(4),.pallet-list-table td:nth-child(4){width:25%}
+.pallet-list-table .status{display:inline-block;max-width:100%;padding:4px 6px;font-size:10px;line-height:1.25;white-space:normal}
+.pallet-order-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:3px;padding:3px;border-radius:10px;background:#e9e9ee}
+.pallet-order-tabs button{min-width:0;min-height:40px;padding:6px 4px;border:0;border-radius:8px;background:transparent;color:#55555d;font-size:12px;font-weight:680}
+.pallet-order-tabs button.active{background:#fff;color:var(--ios-blue);box-shadow:0 1px 4px rgba(0,0,0,.08)}
+.pallet-order-tabs button:focus-visible{outline:2px solid var(--ios-blue);outline-offset:1px}
+.fba-pallet-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin-top:12px}
+.fba-pallet-choice{min-width:0;min-height:44px;padding:8px;border:1px solid var(--ios-border);border-radius:9px;background:#fff;color:var(--ios-secondary);font-size:11px;font-weight:680;overflow-wrap:anywhere}
+.fba-pallet-choice.selected{border-color:#a9c8ff;background:var(--ios-blue-soft);color:var(--ios-blue)}
+.fba-pallet-choice:disabled{cursor:not-allowed;background:#f3f4f6;color:#8b8d94;opacity:.68}
+.fba-pallet-choice:focus-visible{outline:2px solid var(--ios-blue);outline-offset:1px}
+
+/* style: pick-layout */
+.pick-scan-card .scan-box{margin-top:0}
+.pick-order-head{align-items:center}
+.pick-details-toggle{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 10px;border:1px solid var(--line);border-radius:10px;background:#f7f9fc;color:var(--blue);font-size:12px;font-weight:700;white-space:nowrap}
+.pick-details-toggle svg{width:16px;height:16px;display:block;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
+.pick-order-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
+.pick-order-summary .summary-item{min-width:0;padding:9px;border-radius:9px;background:#f7f9fc}
+.pick-order-summary .summary-item span{display:block;color:var(--muted);font-size:10px;line-height:1.3}
+.pick-order-summary .summary-item strong{display:block;margin-top:3px;font-size:12px;overflow-wrap:anywhere}
+.pick-order-details.is-collapsed .detail-list{display:none}
+@media(max-width:360px){.pick-order-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.pick-details-toggle span{display:none}}
+
+/* style: packing-page */
+.entry.packing-entry .entry-icon{background:var(--ios-blue-soft);color:var(--ios-blue)}
+.packing-scan-card .scan-box{margin:0}
+.packing-customer-field{margin:0}
+.packing-customer-field input[aria-invalid="true"]{border-color:var(--ios-red);box-shadow:0 0 0 3px rgba(180,35,24,.12)}
+.packing-customer-field input[aria-invalid="true"]:focus-visible{outline:3px solid rgba(180,35,24,.22)}
+.packing-customer-error{min-height:18px;margin:5px 2px 0;color:var(--ios-red);font-size:12px;line-height:1.5}
+.packing-details-card{padding-bottom:8px}
+.packing-details-table{min-width:0;table-layout:fixed}
+.packing-details-table th,.packing-details-table td{padding:13px 10px;font-size:13px;white-space:normal;overflow-wrap:anywhere}
+.packing-details-table th{font-size:11px}
+.packing-details-table th:first-child,.packing-details-table td:first-child{width:46%}
+.packing-details-table th:nth-child(2),.packing-details-table td:nth-child(2){width:34%}
+.packing-details-table th:last-child,.packing-details-table td:last-child{width:20%}
+.packing-actions{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px}
+.packing-actions .btn{width:100%}
+@media(max-width:359px){.packing-details-table th,.packing-details-table td{padding-inline:7px;font-size:12px}}
+@media(min-width:640px){.app[data-page="packing"] .bottom-bar{margin-inline:0}}
+
+/* style: base */
+.relabel-mode-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;background:#eef2f6;border-radius:12px;margin:0 0 14px}
+.relabel-mode-tabs button{min-height:42px;border:0;border-radius:9px;background:transparent;color:var(--muted);font-weight:750;cursor:pointer}
+.relabel-mode-tabs button.active{background:#fff;color:var(--blue);box-shadow:0 2px 7px rgba(16,24,40,.1)}
+.relabel-list-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
+.relabel-label-preview{border:1px dashed #b8c8d8;border-radius:12px;background:#f8fafc;padding:18px;margin-top:14px;min-height:170px;display:grid;align-content:center;gap:10px;text-align:center}
+.relabel-label-preview .preview-kind{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
+.relabel-label-preview .preview-value{font-size:25px;font-weight:850;color:var(--ink);word-break:break-word}
+.relabel-label-preview .preview-meta{font-size:12px;color:var(--muted)}
+.relabel-print-actions{display:flex;gap:8px;margin-top:14px}.relabel-print-actions .btn{flex:1}
+@media print{body>*{display:none!important}#app{display:block!important}.topbar,.bottom-bar,.scan-box,.relabel-print-actions{display:none!important}.content{padding:0!important}.relabel-label-preview{border:0;min-height:0;margin:0;font-size:18pt}}
diff --git a/悦/PDA(海外)/assets/app.js b/悦/PDA(海外)/assets/app.js
new file mode 100644
index 0000000..4d03b46
--- /dev/null
+++ b/悦/PDA(海外)/assets/app.js
@@ -0,0 +1,471 @@
+/*
+THESIS: A warehouse operator should see the next physical move before the paperwork.
+OWN-WORLD: A calm blue work surface, white task sheets, and status colors that read at a glance.
+STORY: Sign in, unload a container, consolidate same-destination freight, then move to outbound work.
+FIRST VIEWPORT: Workbench metrics lead directly to the three inbound actions; scan controls stay thumb-ready.
+FORM: Mobile task board with anchored action bars, chosen to extend the domestic PDA's direct-action grammar.
+*/
+const LANGS=['zh','en','es'];
+const I18N={
+zh:{brand:'柏悦物流 PDA',sub:'海外仓移动作业平台',loginTitle:'海外仓作业登录',loginIntro:'登录后处理卸柜、打托、出库和库存查询。',username:'工号',password:'密码',login:'登录',show:'显示',hide:'隐藏',demo:'演示账号',welcome:'欢迎回来',shift:'白班 · 作业中',warehouse:'洛杉矶海外仓',profile:'个人中心',logout:'退出登录',today:'今日',unload:'待卸货集装箱',receivedToday:'今日已入库',outboundToday:'今日待出库',inbound:'入库作业',outbound:'出库作业',internal:'库内作业',plan:'入库计划',planDesc:'按计划拆柜并核对托数',receive:'拆柜收货',receiveDesc:'拍摄 3 张作业照片完成收货',pallet:'打托',palletDesc:'按计划托数装对应货物',pick:'出库拣货',pickDesc:'扫描 SKU 或箱号完成拣货',review:'复核出库',reviewDesc:'核对数量后完成复核',handover:'出库交接',handoverDesc:'确认车辆和货物交接',inventory:'库存查询',inventoryDesc:'查询 SKU、箱号和托盘',stocktake:'库存盘点',transfer:'移库作业',relabel:'换标作业',exception:'异常处理',more:'更多作业',demoOnly:'当前版本仅展示入口',task:'待处理任务',empty:'暂无待处理任务',choose:'选择',details:'详情',status:'状态',customer:'客户',destination:'目的地',destinationCode:'目的地代码',destinationAddress:'目的地地址',ticket:'票号',planNo:'入库计划',container:'集装箱',boxes:'箱',expected:'预计',received:'已收',arrived:'预计到仓',startReceive:'开始拆柜',scanBox:'扫描或输入箱号',scan:'扫码',normal:'正常',short:'短少',damaged:'破损',hold:'待处理',receiveProgress:'收货进度',receivedList:'已收箱明细',goPallet:'进入打托',newPallet:'新建托盘',currentPallet:'当前托盘',palletNo:'托盘号',items:'明细',pieces:'件数',addCargo:'扫描箱号或 SKU 加入托盘',remove:'移除',submitPallet:'提交打托',sameDest:'同目的地可跨票合托',lockedDest:'已锁定目的地',mergeOk:'已加入托盘',mergeBlocked:'该货物目的地不一致,不能合托',duplicate:'该箱号已收货',notFound:'未找到匹配货物',emptyPallet:'托盘还没有货物,不能提交',submitted:'打托已完成',trace:'明细追溯',back:'返回',next:'下一步',complete:'完成',search:'查询',clear:'清空',sku:'SKU',boxNo:'箱号',qty:'数量',operator:'操作员',role:'角色',shiftLabel:'班次',language:'语言',version:'版本',selectPlan:'请选择入库计划',scanContainer:'扫描柜号或输入柜号',unloadTask:'待卸柜任务',pickTask:'待出库任务',startPick:'开始拣货',pickProgress:'拣货进度',picked:'已拣',partial:'部分',skipped:'跳拣',pending:'待处理',confirmPick:'确认拣出',partialPick:'部分拣货',skipPick:'跳拣',undo:'撤销',submitPick:'提交拣货完成',reviewScan:'扫描出库单或 SKU',confirmReview:'完成复核',carrier:'承运商',driver:'司机',vehicle:'车辆',handoverDone:'确认交接',queryHint:'输入 SKU、箱号或托盘号',noResult:'没有找到匹配库存',inventoryStatus:'库存状态',inStock:'在库',inTransit:'在途',newPalletConfirm:'当前托盘尚未提交,确认新建托盘吗?',exitConfirm:'当前作业有未提交内容,确认退出吗?',yes:'确认',cancel:'取消',success:'操作成功',loginError:'工号或密码错误',required:'请输入内容',scanSuccess:'扫码成功',unknownScan:'未找到匹配编码',taskDone:'任务已完成',demoAccount:'演示账号:W001 / 123456',containerMeta:'柜号 {container} · {boxes} 箱',planMeta:'{customer} · {destinationCode}',palletMeta:'{count} 票货物 · {pieces} 件',inventoryMeta:'{customer} · {destinationCode}',unavailable:'暂未开放'},
+en:{brand:'Baiyue PDA',sub:'Overseas warehouse operations',loginTitle:'Overseas warehouse sign in',loginIntro:'Unload containers, consolidate pallets, process outbound work and search inventory.',username:'Worker ID',password:'Password',login:'Sign in',show:'Show',hide:'Hide',demo:'Demo account',welcome:'Welcome back',shift:'Day shift · Active',warehouse:'Los Angeles Overseas WH',profile:'Profile',logout:'Sign out',today:'Today',unload:'Containers to unload',receivedToday:'Received today',outboundToday:'Outbound due',inbound:'Inbound',outbound:'Outbound',internal:'Warehouse',plan:'Inbound plans',planDesc:'Unload and reconcile by plan',receive:'Unload & receive',receiveDesc:'Capture 3 operation photos to receive',pallet:'Palletize',palletDesc:'Load freight by planned pallet count',pick:'Outbound picking',pickDesc:'Scan SKU or carton to pick',review:'Outbound review',reviewDesc:'Verify quantity before release',handover:'Outbound handover',handoverDesc:'Confirm vehicle and freight',inventory:'Inventory search',inventoryDesc:'Search SKU, carton or pallet',more:'More operations',demoOnly:'Demo entry only in this version',task:'Open tasks',empty:'No open tasks',choose:'Open',details:'Details',status:'Status',customer:'Customer',destination:'Destination',destinationCode:'Destination code',destinationAddress:'Destination address',ticket:'Ticket',planNo:'Inbound plan',container:'Container',boxes:'Cartons',expected:'Expected',received:'Received',arrived:'ETA',startReceive:'Start unload',scanBox:'Scan or enter carton ID',scan:'Scan',normal:'Normal',short:'Short',damaged:'Damaged',hold:'Hold',receiveProgress:'Receiving progress',receivedList:'Received cartons',goPallet:'Continue to palletize',newPallet:'New pallet',currentPallet:'Current pallet',palletNo:'Pallet ID',items:'Lines',pieces:'Pieces',addCargo:'Scan carton or SKU to add',remove:'Remove',submitPallet:'Submit pallet',sameDest:'Same destination can merge across tickets',lockedDest:'Destination locked',mergeOk:'Added to pallet',mergeBlocked:'Destination mismatch. Cannot merge.',duplicate:'This carton was already received',notFound:'No matching freight found',emptyPallet:'Add freight before submitting the pallet',submitted:'Pallet completed',trace:'Traceable lines',back:'Back',next:'Next',complete:'Complete',search:'Search',clear:'Clear',sku:'SKU',boxNo:'Carton ID',qty:'Qty',operator:'Operator',role:'Role',shiftLabel:'Shift',language:'Language',version:'Version',selectPlan:'Select an inbound plan',scanContainer:'Scan or enter container ID',unloadTask:'Containers to unload',pickTask:'Outbound tasks',startPick:'Start picking',pickProgress:'Picking progress',picked:'Picked',partial:'Partial',skipped:'Skipped',pending:'Pending',confirmPick:'Confirm pick',partialPick:'Partial pick',skipPick:'Skip',undo:'Undo',submitPick:'Submit picking',reviewScan:'Scan order or SKU',confirmReview:'Complete review',carrier:'Carrier',driver:'Driver',vehicle:'Vehicle',handoverDone:'Confirm handover',queryHint:'Enter SKU, carton or pallet ID',noResult:'No matching inventory',inventoryStatus:'Inventory status',inStock:'In stock',inTransit:'In transit',newPalletConfirm:'This pallet is not submitted. Start a new pallet?',exitConfirm:'There are unsaved changes. Exit anyway?',yes:'Confirm',cancel:'Cancel',success:'Action completed',loginError:'Invalid worker ID or password',required:'Enter a value',scanSuccess:'Scan accepted',unknownScan:'No matching code',taskDone:'Task completed',demoAccount:'Demo: W001 / 123456',containerMeta:'{container} · {boxes} cartons',planMeta:'{customer} · {destinationCode}',palletMeta:'{count} tickets · {pieces} pcs',inventoryMeta:'{customer} · {destinationCode}',unavailable:'Not available'},
+es:{brand:'PDA Baiyue',sub:'Operaciones de almacén en el extranjero',loginTitle:'Acceso al almacén',loginIntro:'Descarga contenedores, consolida pallets, procesa salidas y consulta inventario.',username:'ID de trabajador',password:'Contraseña',login:'Entrar',show:'Mostrar',hide:'Ocultar',demo:'Cuenta demo',welcome:'Bienvenido',shift:'Turno de día · Activo',warehouse:'Almacén Los Ángeles',profile:'Perfil',logout:'Salir',today:'Hoy',unload:'Contenedores por descargar',receivedToday:'Recibidos hoy',outboundToday:'Salidas pendientes',inbound:'Entrada',outbound:'Salida',internal:'Almacén',plan:'Planes de entrada',planDesc:'Descarga y verifica por plan',receive:'Descarga y recepción',receiveDesc:'Captura 3 fotos para recibir',pallet:'Paletizar',palletDesc:'Carga según los pallets del plan',pick:'Picking de salida',pickDesc:'Escanea SKU o caja',review:'Revisión de salida',reviewDesc:'Verifica cantidades antes de liberar',handover:'Entrega de salida',handoverDesc:'Confirma vehículo y carga',inventory:'Buscar inventario',inventoryDesc:'Busca SKU, caja o pallet',more:'Más operaciones',demoOnly:'Solo demostración en esta versión',task:'Tareas abiertas',empty:'No hay tareas abiertas',choose:'Abrir',details:'Detalles',status:'Estado',customer:'Cliente',destination:'Destino',destinationCode:'Código de destino',destinationAddress:'Dirección de destino',ticket:'Referencia',planNo:'Plan de entrada',container:'Contenedor',boxes:'Cajas',expected:'Previsto',received:'Recibido',arrived:'ETA',startReceive:'Iniciar descarga',scanBox:'Escanea o escribe la caja',scan:'Escanear',normal:'Normal',short:'Faltante',damaged:'Dañada',hold:'En espera',receiveProgress:'Progreso de recepción',receivedList:'Cajas recibidas',goPallet:'Continuar a paletizar',newPallet:'Nuevo pallet',currentPallet:'Pallet actual',palletNo:'ID de pallet',items:'Líneas',pieces:'Unidades',addCargo:'Escanea caja o SKU para añadir',remove:'Quitar',submitPallet:'Enviar pallet',sameDest:'Mismo destino permite consolidar referencias',lockedDest:'Destino bloqueado',mergeOk:'Añadido al pallet',mergeBlocked:'Destino distinto. No se puede consolidar.',duplicate:'Esta caja ya fue recibida',notFound:'No se encontró la carga',emptyPallet:'Añade carga antes de enviar el pallet',submitted:'Pallet completado',trace:'Trazabilidad',back:'Volver',next:'Siguiente',complete:'Completar',search:'Buscar',clear:'Limpiar',sku:'SKU',boxNo:'ID de caja',qty:'Cantidad',operator:'Operador',role:'Rol',shiftLabel:'Turno',language:'Idioma',version:'Versión',selectPlan:'Selecciona un plan de entrada',scanContainer:'Escanea o escribe el contenedor',unloadTask:'Contenedores por descargar',pickTask:'Tareas de salida',startPick:'Iniciar picking',pickProgress:'Progreso de picking',picked:'Recogido',partial:'Parcial',skipped:'Omitido',pending:'Pendiente',confirmPick:'Confirmar picking',partialPick:'Picking parcial',skipPick:'Omitir',undo:'Deshacer',submitPick:'Enviar picking',reviewScan:'Escanea orden o SKU',confirmReview:'Completar revisión',carrier:'Transportista',driver:'Conductor',vehicle:'Vehículo',handoverDone:'Confirmar entrega',queryHint:'Escribe SKU, caja o pallet',noResult:'No hay inventario coincidente',inventoryStatus:'Estado de inventario',inStock:'En stock',inTransit:'En tránsito',newPalletConfirm:'El pallet no está enviado. ¿Crear otro?',exitConfirm:'Hay cambios sin enviar. ¿Salir?',yes:'Confirmar',cancel:'Cancelar',success:'Operación completada',loginError:'ID o contraseña incorrectos',required:'Introduce un valor',scanSuccess:'Escaneo aceptado',unknownScan:'Código no encontrado',taskDone:'Tarea completada',demoAccount:'Demo: W001 / 123456',containerMeta:'{container} · {boxes} cajas',planMeta:'{customer} · {destinationCode}',palletMeta:'{count} referencias · {pieces} uds.',inventoryMeta:'{customer} · {destinationCode}',unavailable:'No disponible'}
+};
+const users={W001:{pass:'123456',name:'张伟',role:'仓管员',warehouse:'洛杉矶海外仓'},W002:{pass:'123456',name:'李敏',role:'仓库组长',warehouse:'洛杉矶海外仓'},W003:{pass:'123456',name:'王磊',role:'收货员',warehouse:'新泽西海外仓'}};
+const plans=[
+ {id:'INB-260819-018',customer:'杭州积乐贸易',destinationCode:'ONT8',destinationWarehouses:['ONT8','LAX9'],destinationAddress:'24300 Nandina Ave, Moreno Valley, CA',tickets:'TK-88401 / TK-88402',inboundCode:'FBA-ONT8-260819-018',tractorDriver:'Robert Chen',tractorPlate:'CA 8TR-221',expectedPallets:18,receivedPallets:5,eta:'2026-08-19 10:30',status:'待卸货',container:'D2222'},
+ {id:'INB-260819-021',customer:'深圳璟智供应链',destinationCode:'ONT8',destinationWarehouses:['ONT8','LAX9','SNA6'],destinationAddress:'24300 Nandina Ave, Moreno Valley, CA',tickets:'TK-88416',inboundCode:'FBA-ONT8-260819-021',tractorDriver:'Luis Garcia',tractorPlate:'CA 7LG-333',expectedPallets:12,receivedPallets:0,eta:'2026-08-19 13:00',status:'待卸货',container:'D3333'},
+ {id:'INB-260819-026',customer:'宁波远航电商',destinationCode:'LGB8',destinationWarehouses:['LGB8'],destinationAddress:'1568 N Linden Ave, Rialto, CA',tickets:'TK-88429',inboundCode:'FBA-LGB8-260819-026',tractorDriver:'Kevin Wu',tractorPlate:'CA 5KW-444',expectedPallets:8,receivedPallets:0,eta:'2026-08-18 16:20',status:'待打托',container:'D4444'}
+];
+plans.forEach(p=>{p.expectedBoxes=p.expectedPallets;p.receivedBoxes=p.receivedPallets});
+const cargo=[
+ {id:'C-001',planNo:'INB-260819-018',ticketNo:'TK-88401',customer:'杭州积乐贸易',container:'D2222',boxNo:'BX-88401-01',sku:'YQ-CASE-01',name:'Phone case set',qty:120,receivedQty:120,destinationCode:'ONT8',destinationAddress:'24300 Nandina Ave, Moreno Valley, CA',received:true},
+ {id:'C-002',planNo:'INB-260819-018',ticketNo:'TK-88402',customer:'杭州积乐贸易',container:'D2222',boxNo:'BX-88402-01',sku:'YQ-CABLE-02',name:'USB-C cable',qty:80,receivedQty:80,destinationCode:'ONT8',destinationAddress:'24300 Nandina Ave, Moreno Valley, CA',received:true},
+ {id:'C-003',planNo:'INB-260819-021',ticketNo:'TK-88416',customer:'深圳璟智供应链',container:'D3333',boxNo:'BX-88416-01',sku:'JZ-LAMP-03',name:'Desk lamp',qty:60,receivedQty:0,destinationCode:'ONT8',destinationAddress:'24300 Nandina Ave, Moreno Valley, CA',received:false},
+ {id:'C-004',planNo:'INB-260819-026',ticketNo:'TK-88429',customer:'宁波远航电商',container:'D4444',boxNo:'BX-88429-01',sku:'NH-BAG-04',name:'Travel bag',qty:32,receivedQty:32,destinationCode:'LGB8',destinationAddress:'1568 N Linden Ave, Rialto, CA',received:true},
+ {id:'C-005',planNo:'INB-260819-021',ticketNo:'TK-88416',customer:'深圳璟智供应链',container:'D3333',boxNo:'BX-88416-02',sku:'JZ-HOLDER-05',name:'Tablet holder',qty:40,receivedQty:0,destinationCode:'ONT8',destinationAddress:'24300 Nandina Ave, Moreno Valley, CA',received:false},
+ {id:'C-006',planNo:'INB-260819-026',ticketNo:'TK-88429',customer:'宁波远航电商',container:'D4444',boxNo:'BX-88429-02',sku:'NH-BAG-06',name:'Packing pouch',qty:48,receivedQty:48,destinationCode:'LGB8',destinationAddress:'1568 N Linden Ave, Rialto, CA',received:true}
+ ,{id:'C-007',planNo:'INB-260819-026',ticketNo:'TK-88429',customer:'宁波远航电商',container:'D4444',boxNo:'BX-88429-03',sku:'NH-BAG-07',name:'Travel bag accessory',qty:36,receivedQty:36,destinationCode:'LGB8',destinationAddress:'1568 N Linden Ave, Rialto, CA',received:true}
+ ,{id:'C-008',planNo:'INB-260819-026',ticketNo:'TK-88429',customer:'宁波远航电商',container:'D4444',boxNo:'BX-88429-04',sku:'NH-BAG-08',name:'Packing strap',qty:28,receivedQty:28,destinationCode:'LGB8',destinationAddress:'1568 N Linden Ave, Rialto, CA',received:true}
+ ,{id:'C-009',planNo:'INB-260819-026',ticketNo:'TK-88429',customer:'宁波远航电商',container:'D4444',boxNo:'BX-88429-05',sku:'NH-BAG-09',name:'Luggage tag',qty:24,receivedQty:24,destinationCode:'LGB8',destinationAddress:'1568 N Linden Ave, Rialto, CA',received:true}
+ ,{id:'C-010',planNo:'INB-260819-026',ticketNo:'TK-88429',customer:'宁波远航电商',container:'D4444',boxNo:'BX-88429-06',sku:'NH-BAG-10',name:'Carry pouch',qty:42,receivedQty:42,destinationCode:'LGB8',destinationAddress:'1568 N Linden Ave, Rialto, CA',received:true}
+ ,{id:'C-011',planNo:'INB-260819-026',ticketNo:'TK-88429',customer:'宁波远航电商',container:'D4444',boxNo:'BX-88429-07',sku:'NH-BAG-11',name:'Shoe bag',qty:30,receivedQty:30,destinationCode:'LGB8',destinationAddress:'1568 N Linden Ave, Rialto, CA',received:true}
+ ,{id:'C-012',planNo:'INB-260819-026',ticketNo:'TK-88429',customer:'宁波远航电商',container:'D4444',boxNo:'BX-88429-08',sku:'NH-BAG-12',name:'Foldable tote',qty:38,receivedQty:38,destinationCode:'LGB8',destinationAddress:'1568 N Linden Ave, Rialto, CA',received:true}
+ ,{id:'C-013',planNo:'INB-260819-021',ticketNo:'TK-88416',customer:'深圳璟智供应链',container:'D3333',boxNo:'BX-88416-03',sku:'JZ-MOUSE-07',name:'Wireless mouse',qty:90,receivedQty:90,destinationCode:'ONT8',destinationAddress:'24300 Nandina Ave, Moreno Valley, CA',received:true}
+];
+ const pickTasks=[{id:'OUT-260819-004',inboundCode:'FBA-ONT8-260819-004',plateNo:'CA 8KX-217',driver:'Michael Chen',outboundTime:'2026-08-20 09:30',destination:'ONT8',customer:'杭州积乐贸易',boxes:6,palletCount:3,totalWeightLb:203.0,totalPallets:3,orderInfo:'SO-260819-004 / AMZ-PO-88401',items:[{sku:'YQ-CASE-01',qty:45,picked:0},{sku:'YQ-CABLE-02',qty:20,picked:0}]},{id:'OUT-260819-006',inboundCode:'FBA-LGB8-260819-006',plateNo:'CA 6MP-908',driver:'David Lee',outboundTime:'2026-08-20 13:00',destination:'LGB8',customer:'宁波远航电商',boxes:3,palletCount:2,totalWeightLb:99.9,totalPallets:2,orderInfo:'SO-260819-006 / AMZ-PO-88412',items:[{sku:'NH-BAG-04',qty:12,picked:0},{sku:'NH-BAG-06',qty:18,picked:0}]}];
+const cartonWeights=[18.5,12.2,9.8,14.6,7.4,16.1,13.8,5.6,3.2,11.7,4.8,10.9,8.3];
+cargo.forEach((item,index)=>{item.weight=cartonWeights[index]||0});
+const inventory=[...cargo.map((x,i)=>({sku:x.sku,name:x.name,customer:x.customer,boxNo:x.boxNo,palletNo:i<2?'D2222-TC-001':'—',destinationCode:x.destinationCode,qty:x.receivedQty,status:x.receivedQty?'在库':'在途'})),{sku:'JZ-MOUSE-07',name:'Wireless mouse',customer:'深圳璟智供应链',boxNo:'BX-88416-03',palletNo:'—',destinationCode:'ONT8',qty:90,status:'在途'}];
+const packingCartons=[
+ {sku:'YQ-CASE-01',boxNo:'BX-PACK-001',unitsPerCarton:120,cartons:1},
+ {sku:'YQ-CABLE-02',boxNo:'BX-PACK-002',unitsPerCarton:80,cartons:1},
+ {sku:'YQ-HOLDER-03',boxNo:'BX-PACK-003',unitsPerCarton:60,cartons:1}
+];
+const demoPalletizedPallets=[{id:'D2222-TC-001',mode:'palletize',planId:'INB-260819-018',targetPallets:18,container:'D2222',destinationCode:'ONT8',destinationAddress:'24300 Nandina Ave, Moreno Valley, CA',items:[{...cargo[0],palletNo:'D2222-TC-001'},{...cargo[1],palletNo:'D2222-TC-001'}]}];
+cargo[0].palletNo='D2222-TC-001';cargo[1].palletNo='D2222-TC-001';
+const demoConsolidatedPallets=[{id:'D2222-TC-019',mode:'consolidate',planId:null,targetPallets:null,container:'D2222',destinationCode:'ONT8',destinationAddress:'24300 Nandina Ave, Moreno Valley, CA',items:[{...cargo[0],isMerged:false,mergeFlag:'否'},{...cargo[1],isMerged:true,mergeFlag:'是'}]}];
+ const WORK_LABELS={zh:{inboundPallet:'入库打托',inboundPalletDesc:'按入库计划托数完成打托',pallet:'入库打托',palletDesc:'按计划托数装对应货物',palletList:'托盘列表',palletTotal:'托盘数',palletBoxSummary:'托盘数/箱数',palletListDesc:'选择托盘进入详情',pendingPallet:'待创建托盘',cartonCount:'箱数',boxMark:'箱唛',productName:'产品名称',palletStatus:'托盘状态',idle:'闲置',occupied:'占用',viewPalletDetails:'查看明细',directEnter:'直接进入',selectPalletLabel:'选择托盘标',palletLabel:'托盘标',scanBoxSku:'扫描箱唛/SKU',scanPalletLabel:'扫描托盘标',unknownPalletScan:'未找到匹配托盘',palletCompleted:'已完成',palletPending:'未完成',palletizeAction:'卸货打托',planDesc:'按入库计划选择打托任务',mergeOnly:'合托',mergeDesc:'将不足一托的箱子合成一托',startPallet:'开始打托',palletProgress:'打托进度',palletTargetReached:'已达到计划托数,不能继续提交'},en:{inboundPallet:'Inbound palletizing',inboundPalletDesc:'Palletize against the inbound plan',pallet:'Inbound palletizing',palletDesc:'Load freight by planned pallet count',palletList:'Pallet list',palletTotal:'Pallets',palletBoxSummary:'Pallets/Cartons',palletListDesc:'Select a pallet to view details',pendingPallet:'Pallet to create',cartonCount:'Cartons',boxMark:'Carton mark',productName:'Product name',palletStatus:'Pallet status',idle:'Idle',occupied:'Occupied',viewPalletDetails:'View pallet details',directEnter:'Enter directly',selectPalletLabel:'Select pallet label',palletLabel:'Pallet label',scanBoxSku:'Scan carton mark/SKU',scanPalletLabel:'Scan pallet label',unknownPalletScan:'No matching pallet found',palletCompleted:'Completed',palletPending:'Incomplete',palletizeAction:'Palletize',planDesc:'Choose an inbound plan to palletize',mergeOnly:'Consolidate',mergeDesc:'Combine cartons that do not fill a pallet',startPallet:'Start palletizing',palletProgress:'Palletizing progress',palletTargetReached:'Planned pallet count reached'},es:{inboundPallet:'Paletizado de entrada',inboundPalletDesc:'Paletiza según el plan de entrada',pallet:'Paletizado de entrada',palletDesc:'Carga según los pallets del plan',palletList:'Lista de pallets',palletTotal:'Pallets',palletBoxSummary:'Pallets/Cajas',palletListDesc:'Selecciona un pallet para ver detalles',pendingPallet:'Pallet por crear',cartonCount:'Cajas',boxMark:'Marca de caja',productName:'Nombre del producto',palletStatus:'Estado del pallet',idle:'Libre',occupied:'Ocupado',viewPalletDetails:'Ver detalles de pallets',directEnter:'Entrar directamente',selectPalletLabel:'Seleccionar etiqueta de pallet',palletLabel:'Etiqueta de pallet',scanBoxSku:'Escanear marca de caja/SKU',scanPalletLabel:'Escanear etiqueta de pallet',unknownPalletScan:'No se encontró el pallet',palletCompleted:'Completado',palletPending:'Incompleto',palletizeAction:'Paletizar',planDesc:'Elige un plan de entrada para paletizar',mergeOnly:'Consolidar',mergeDesc:'Combina cajas que no llenan un pallet',startPallet:'Iniciar paletizado',palletProgress:'Progreso de paletizado',palletTargetReached:'Se alcanzó el total de pallets del plan'}};
+const expressOrders=[
+ {id:'PO-260819-001',type:'purchase',customerCode:'HZJL',boxMark:'BX-EXP-001',sku:'YQ-CASE-01',cartons:4,pieces:120,carrier:'FedEx',trackingNo:'7845 2210 9931',signedIn:false},
+ {id:'PO-260819-002',type:'purchase',customerCode:'SZJZ',boxMark:'BX-EXP-002',sku:'JZ-LAMP-03',cartons:2,pieces:60,carrier:'UPS',trackingNo:'1Z84A72E0391',signedIn:false},
+ {id:'RT-260819-001',type:'return',customerCode:'NBHY',boxMark:'BX-RET-001',sku:'NH-BAG-04',cartons:1,pieces:32,carrier:'USPS',trackingNo:'9400 1118 8821',signedIn:false},
+ {id:'RT-260819-002',type:'return',customerCode:'HZJL',boxMark:'BX-RET-002',sku:'YQ-CABLE-02',cartons:2,pieces:80,carrier:'DHL',trackingNo:'JD0146000068',signedIn:false}
+];
+const state={lang:localStorage.getItem('overseas-pda-lang')||'zh',page:'login',user:null,error:'',selectedPlanId:null,receiveScan:[],receiveStatus:{},unloadPhotos:{},pallet:null,palletMode:'palletize',palletOrderType:'fba',fbaPalletLabels:[],dropshipPalletLabel:'',palletTypeMessage:null,fbaPalletMessage:null,dropshipScanMessage:null,pallets:[...demoPalletizedPallets,...demoConsolidatedPallets].map(pallet=>({...pallet,items:pallet.items.map(item=>({...item}))})),palletMessage:null,palletScanQty:'1',palletTopMessage:null,palletPhotos:{},photoPalletId:'',pickTaskId:null,pickMessage:null,reviewScanned:[],handoverDone:false,handoverPhotos:{},inventoryQuery:'',packingMessage:null,packingCustomerCode:'',packingCustomerError:'',packingInboundDone:false,relabelMessage:null,relabelDoneOrders:{},selectedRelabelId:null,relabelPhotos:{},relabelMode:'box',relabelScans:{box:{},sku:{}},exceptionRefValue:'',exceptionMessage:null,expressOrderType:'purchase',selectedExpressOrderId:null,expressScan:null,expressMessage:null,expressWaybillPhotos:{}};
+const EXTRA_LABELS={zh:{planDesc:'按计划核对托数并打托',startPallet:'开始打托',mergeOnly:'合托',receiveDesc:'拍摄 3 张作业照片完成收货',receiveListTitle:'待卸货集装箱',receiveListDesc:'选择集装箱后拍摄 3 张照片完成收货',pendingContainers:'个待卸货集装箱',startUnload:'开始拆柜',stocktake:'库存盘点',transfer:'移库作业',relabel:'换标作业',exception:'异常处理',palletCount:'托数',palletQty:'托盘数量',linkedOrder:'关联订单',licensePlate:'车牌照片',containerSeal:'集装箱封签',doorOpen:'开柜照片',unloading:'卸货照片',unloadComplete:'卸货完成照片',takePhoto:'拍照',retake:'重拍',photoProgress:'拍照进度',confirmUnload:'确认拆柜收货',photosRequired:'请完成全部 3 张照片',handoverPhotosRequired:'请完成全部 7 张交接照片',mergeFlag:'是否合托',yesMerge:'是',noMerge:'否',licensePlatePhoto:'车牌照片',vehicleCabPhoto:'车厢照片',driverLicense:'司机驾照',loadingSealPhoto:'装货封门照片',lockSealPhoto:'锁门 SEAL 照片',bolDriverSigned:'BOL(含司机签字)',amazonAppointment:'亚马逊预约单',handoverPhotos:'交接照片(7张)',relabelTitle:'换标作业',relabelHint:'订单列表中提交换标完成',newLabel:'新标签 / 新 SKU',submitRelabel:'换标完成',relabelDone:'换标已完成',relabelStatus:'换标状态',relabelPhotoRequired:'请先完成换标拍照',exceptionTitle:'异常处理',exceptionType:'异常类型',exceptionRef:'关联尾程订单号 / 入仓码 / 托盘号',exceptionDesc:'异常描述',submitException:'提交异常',exceptionDone:'异常已记录',selectException:'请选择异常类型',queryHint:'输入托盘号或产品名称',inventoryDesc:'查询产品名称或托盘号'},en:{planDesc:'Verify pallet count and start palletizing',startPallet:'Start palletizing',mergeOnly:'Consolidate',receiveDesc:'Capture 3 operation photos to receive',receiveListTitle:'Containers to unload',receiveListDesc:'Choose a container, then capture 3 photos to receive it',pendingContainers:'containers to unload',startUnload:'Start unload',stocktake:'Stocktake',transfer:'Stock transfer',relabel:'Relabeling',exception:'Exceptions',palletCount:'Pallets',palletQty:'Pallet quantity',linkedOrder:'Linked order',licensePlate:'License plate photo',containerSeal:'Container seal',doorOpen:'Door open',unloading:'Unloading',unloadComplete:'Unload complete',takePhoto:'Take photo',retake:'Retake',photoProgress:'Photo progress',confirmUnload:'Confirm unloading',photosRequired:'Complete all 3 photos',handoverPhotosRequired:'Complete all 7 handover photos',mergeFlag:'Merged pallet',yesMerge:'Yes',noMerge:'No',licensePlatePhoto:'License plate photo',vehicleCabPhoto:'Vehicle cab photo',driverLicense:'Driver license',loadingSealPhoto:'Loading door photo',lockSealPhoto:'Lock SEAL photo',bolDriverSigned:'BOL with driver signature',amazonAppointment:'Amazon appointment',handoverPhotos:'Handover photos (7)',relabelTitle:'Relabeling',relabelHint:'Submit completion from the order list',newLabel:'New label / new SKU',submitRelabel:'Relabel complete',relabelDone:'Relabel completed',relabelStatus:'Relabel status',relabelPhotoRequired:'Take a relabel photo before completing',exceptionTitle:'Exception handling',exceptionType:'Exception type',exceptionRef:'Outbound order / inbound code / pallet ID',exceptionDesc:'Exception description',submitException:'Log exception',exceptionDone:'Exception recorded',selectException:'Select an exception type',queryHint:'Enter pallet ID or product name',inventoryDesc:'Search product name or pallet ID'},es:{planDesc:'Verifica pallets e inicia paletizado',startPallet:'Iniciar paletizado',mergeOnly:'Consolidar',receiveDesc:'Captura 3 fotos para recibir',receiveListTitle:'Contenedores por descargar',receiveListDesc:'Elige un contenedor y captura 3 fotos para recibirlo',pendingContainers:'contenedores por descargar',startUnload:'Iniciar descarga',stocktake:'Inventario físico',transfer:'Traslado interno',relabel:'Reetiquetado',exception:'Excepciones',palletCount:'Pallets',palletQty:'Cantidad de pallets',linkedOrder:'Pedido relacionado',licensePlate:'Matrícula',containerSeal:'Sello del contenedor',doorOpen:'Apertura',unloading:'Descarga',unloadComplete:'Descarga terminada',takePhoto:'Tomar foto',retake:'Repetir',photoProgress:'Progreso de fotos',confirmUnload:'Confirmar descarga',photosRequired:'Completa las 3 fotos',handoverPhotosRequired:'Completa las 7 fotos de entrega',mergeFlag:'Pallet consolidado',yesMerge:'Sí',noMerge:'No',licensePlatePhoto:'Foto de matrícula',vehicleCabPhoto:'Foto de cabina',driverLicense:'Licencia del conductor',loadingSealPhoto:'Puerta de carga',lockSealPhoto:'Foto del SEAL',bolDriverSigned:'BOL firmado por conductor',amazonAppointment:'Cita de Amazon',handoverPhotos:'Fotos de entrega (7)',relabelTitle:'Reetiquetado',relabelHint:'Envía la finalización desde la lista de pedidos',newLabel:'Nueva etiqueta / SKU',submitRelabel:'Reetiquetado completo',relabelDone:'Reetiquetado completado',relabelStatus:'Estado del reetiquetado',relabelPhotoRequired:'Toma una foto del reetiquetado antes de completar',exceptionTitle:'Gestión de excepciones',exceptionType:'Tipo de excepción',exceptionRef:'Orden de salida / código de entrada / ID de pallet',exceptionDesc:'Descripción de la excepción',submitException:'Registrar excepción',exceptionDone:'Excepción registrada',selectException:'Selecciona un tipo',queryHint:'Escribe ID de pallet o nombre del producto',inventoryDesc:'Busca nombre del producto o ID de pallet'}};
+Object.assign(EXTRA_LABELS.zh,{expressSignIn:'快递签收',expressSignInDesc:'签收采购或退货快递订单',purchase:'采购',return:'退货',customerCode:'客户简码',cartonPiece:'箱数/件数',trackingNo:'快递号',expressSign:'签收',expressSigned:'已签收'});
+Object.assign(EXTRA_LABELS.en,{expressSignIn:'Express receiving',expressSignInDesc:'Receive purchase or return parcels',purchase:'Purchase',return:'Return',customerCode:'Customer code',cartonPiece:'Cartons/Pieces',trackingNo:'Tracking no.',expressSign:'Sign in',expressSigned:'Received'});
+Object.assign(EXTRA_LABELS.es,{expressSignIn:'Recepción de paquetería',expressSignInDesc:'Recibe paquetes de compras o devoluciones',purchase:'Compra',return:'Devolución',customerCode:'Código de cliente',cartonPiece:'Cajas/Unidades',trackingNo:'N.º de seguimiento',expressSign:'Recibir',expressSigned:'Recibido'});
+Object.assign(EXTRA_LABELS.zh,{expressScanHint:'扫描箱唛或SKU',cartonQuantity:'箱数',pieceQuantity:'个数',photoInfo:'照片信息',waybill:'面单',expressComplete:'签收完成',expressScanRequired:'请先扫描箱唛或SKU',expressPhotoRequired:'请拍摄面单照片',expressQuantityRequired:'请输入有效数量'});
+Object.assign(EXTRA_LABELS.en,{expressScanHint:'Scan carton mark or SKU',cartonQuantity:'Carton count',pieceQuantity:'Unit count',photoInfo:'Photo information',waybill:'Waybill',expressComplete:'Complete receiving',expressScanRequired:'Scan a carton mark or SKU first',expressPhotoRequired:'Take a waybill photo',expressQuantityRequired:'Enter a valid quantity'});
+Object.assign(EXTRA_LABELS.es,{expressScanHint:'Escanea marca de caja o SKU',cartonQuantity:'Cantidad de cajas',pieceQuantity:'Cantidad de unidades',photoInfo:'Información fotográfica',waybill:'Etiqueta de envío',expressComplete:'Completar recepción',expressScanRequired:'Escanea una caja o SKU primero',expressPhotoRequired:'Toma una foto de la etiqueta',expressQuantityRequired:'Introduce una cantidad válida'});
+const PICK_LABELS={zh:{outboundOrderNo:'出库单号',inboundCode:'入仓码',plateNo:'车牌号',outboundTime:'出库时间',totalPalletBoxes:'总托数 / 总箱数',totalBoxes:'总箱数',totalWeight:'总重量',orderList:'订单列表',tractorDriver:'拖车司机',tractorPlate:'拖车车牌',destinationWarehouse:'目的仓编码'},en:{outboundOrderNo:'Outbound order',inboundCode:'Inbound code',plateNo:'Plate number',outboundTime:'Outbound time',totalPalletBoxes:'Total pallets / cartons',totalBoxes:'Total cartons',totalWeight:'Total weight',orderList:'Order list',tractorDriver:'Tractor driver',tractorPlate:'Tractor plate',destinationWarehouse:'Destination warehouse'},es:{outboundOrderNo:'Orden de salida',inboundCode:'Código de entrada',plateNo:'Matrícula',outboundTime:'Hora de salida',totalPalletBoxes:'Pallets / cajas totales',totalBoxes:'Total de cajas',totalWeight:'Peso total',orderList:'Lista de pedidos',tractorDriver:'Conductor del tractor',tractorPlate:'Matrícula del tractor',destinationWarehouse:'Almacén de destino'}};
+Object.assign(EXTRA_LABELS.zh,{packing:'拣货装箱',packingHint:'扫描箱号或 SKU 完成拣货装箱',packingScanHint:'扫描箱号或 SKU',customerInfo:'客户信息',customerCode:'客户简码',customerCodeHint:'请输入客户简码',customerCodeRequired:'请输入客户简码',cartonDetails:'箱子详情',unitsPerCarton:'每箱数量',backToOrderList:'返回订单列表',confirmInbound:'确认入库',packingInboundDone:'拣货装箱已入库'});
+Object.assign(EXTRA_LABELS.en,{packing:'Pick & pack',packingHint:'Scan a carton or SKU to pick and pack',packingScanHint:'Scan carton ID or SKU',customerInfo:'Customer information',customerCode:'Customer code',customerCodeHint:'Enter customer code',customerCodeRequired:'Enter a customer code',cartonDetails:'Carton details',unitsPerCarton:'Units per carton',backToOrderList:'Back to order list',confirmInbound:'Confirm inbound',packingInboundDone:'Pick and pack received'});
+Object.assign(EXTRA_LABELS.es,{packing:'Picking y embalaje',packingHint:'Escanea una caja o SKU para preparar',packingScanHint:'Escanea caja o SKU',customerInfo:'Información del cliente',customerCode:'Código de cliente',customerCodeHint:'Introduce el código del cliente',customerCodeRequired:'Introduce el código del cliente',cartonDetails:'Detalles de cajas',unitsPerCarton:'Unidades por caja',backToOrderList:'Volver a pedidos',confirmInbound:'Confirmar entrada',packingInboundDone:'Picking y embalaje recibido'});
+state.pickDetailsCollapsed=false;
+const SECTION_FILES={
+ home:'index.html',
+ receive:'receive.html',
+ pallet:'pallet.html',
+ 'express-signin':'express-signin.html',
+ consolidation:'consolidation.html',
+ pick:'pick.html',
+ handover:'handover.html',
+ packing:'packing.html',
+ relabel:'relabel.html',
+ exception:'exception.html'
+};
+const SECTION_LANDING_PAGES={home:'workbench',receive:'receive-list',pallet:'plans','express-signin':'express-signin',consolidation:'pallet-list',pick:'pick',handover:'handover',packing:'packing',relabel:'relabel',exception:'exception'};
+const SECTION_PAGE_GROUPS={
+ home:['login','workbench','profile','inventory'],
+ receive:['receive-list','receive'],
+ pallet:['plans','pallet-list','pallet','photo-detail'],
+ 'express-signin':['express-signin','express-signin-detail'],
+ consolidation:['pallet-list','pallet','photo-detail'],
+ pick:['pick','review'],
+ handover:['handover'],
+ packing:['packing'],
+ relabel:['relabel','relabel-photo','relabel-box','relabel-sku'],
+ exception:['exception']
+};
+const APP_SESSION_KEY='overseas-pda-session';
+function currentSection(){return document.body?.dataset.section||'home';}
+function currentHtmlFile(){const file=window.location?.pathname?.split('/').pop();return file||'index.html';}
+function sectionForPage(page){
+ if(['pallet-list','pallet','photo-detail'].includes(page))return state.palletMode==='consolidate'?'consolidation':'pallet';
+ return Object.keys(SECTION_PAGE_GROUPS).find(section=>SECTION_PAGE_GROUPS[section].includes(page))||'home';
+}
+function fileForPage(page){return SECTION_FILES[sectionForPage(page)]||SECTION_FILES.home;}
+function persistAppSession(){
+ localStorage.setItem(APP_SESSION_KEY,JSON.stringify({state,plans,cargo,pickTasks,expressOrders}));
+}
+function restoreAppSession(){
+ const raw=localStorage.getItem(APP_SESSION_KEY);
+ if(!raw)return;
+ try{
+ const saved=JSON.parse(raw);
+ if(saved.state&&typeof saved.state==='object')Object.assign(state,saved.state);
+ if(Array.isArray(saved.plans))plans.splice(0,plans.length,...saved.plans);
+ if(Array.isArray(saved.cargo))cargo.splice(0,cargo.length,...saved.cargo);
+ if(Array.isArray(saved.pickTasks))pickTasks.splice(0,pickTasks.length,...saved.pickTasks);
+ if(Array.isArray(saved.expressOrders))expressOrders.splice(0,expressOrders.length,...saved.expressOrders);
+ }catch(error){localStorage.removeItem?.(APP_SESSION_KEY);}
+}
+function initializeSectionPage(){
+ const section=currentSection();
+ if(!state.user){state.page='login';return;}
+ if(!SECTION_PAGE_GROUPS[section]?.includes(state.page))state.page=SECTION_LANDING_PAGES[section]||'workbench';
+ if(section==='consolidation')state.palletMode='consolidate';
+ if(section==='pallet'&&state.palletMode==='consolidate')state.palletMode='palletize';
+}
+function redirectForCurrentPage(){
+ if(state.page==='login')return false;
+ const target=fileForPage(state.page);
+ if(currentHtmlFile()===target)return false;
+ persistAppSession();
+ window.location.href=target;
+ return true;
+}
+function t(key,vars={}){let value=WORK_LABELS[state.lang]?.[key]||EXTRA_LABELS[state.lang]?.[key]||PICK_LABELS[state.lang]?.[key]||(I18N[state.lang]&&I18N[state.lang][key])||WORK_LABELS.zh[key]||EXTRA_LABELS.zh[key]||PICK_LABELS.zh[key]||I18N.zh[key]||key;return String(value).replace(/\{(\w+)\}/g,(_,k)=>vars[k]??'');}
+function esc(value){return String(value??'').replace(/[&<>"']/g,c=>({'&':'&','<':'<','>':'>','"':'"',"'":'''}[c]));}
+const ICON_PATHS={
+ pallet:'
${t('loginIntro')}
${esc(p.customer)} · ${esc(p.destinationCode)} · ${p.expectedPallets} ${t('palletCount')}
| ${t('palletLabel')} | ${t('destinationWarehouseShort')} | ${t('cartonCount')} | ${t('palletStatus')} |
|---|---|---|---|
| ${esc(pallet.id)} | ${esc(pallet.destinationCode||'—')} | ${pallet.items.length} | ${completed?t('palletCompleted'):t('palletPending')} |
${esc(p.id)} · ${esc(p.customer)}
${esc(p.customer)} · ${esc(p.container)}
${t('containerMeta',{container:p.container,boxes:received.length})}
${esc(c.sku)} · ${c.receivedQty} ${t('pieces')} · ${esc(c.ticketNo)}
${esc(order.id)} · ${esc(order.customerCode)}
${t('waybill')}
${t('trace')}
| ${t('boxNo')} | ${t('sku')} | ${t('customer')} | ${t('planNo')} | ${t('qty')} | |
|---|---|---|---|---|---|
| ${esc(item.boxNo)} | ${esc(item.sku)} | ${esc(item.customer)} | ${esc(item.planNo)} | ${item.qty} |
${t('palletLabel')} · ${t('palletStatus')}
${description}
${esc(c.customer)} · ${esc(c.planNo)} · ${esc(c.destinationCode)}
${state.pallet.destinationCode?`${t('lockedDest')}: ${esc(state.pallet.destinationCode)}`:description}
${esc(task.customer)} · ${esc(task.destination)}
${t('qty')}: 1 - ${item.qty-1}
${t('reviewDesc')}
${t('scanSuccess')}
${t('handoverDesc')}
| ${t('sku')} | ${t('unitsPerCarton')} | ${t('cartonCount')} |
|---|---|---|
| ${esc(item.sku)} | ${item.unitsPerCarton} | ${item.cartons} |
${esc(p.id)} · ${esc(p.customer)}
${esc(message)}
${esc(key)} · ${esc(saved?.destinationCode||plan?.destinationCode||'—')}
${t('palletPhotoHint')}
${t('palletLabel')} · ${t('palletStatus')}
${esc(key)} · ${esc(saved?.destinationCode||plan?.destinationCode||'—')}
${t('palletPhotoHint')}
${t('palletLabel')} · ${t('palletStatus')}
${t('mergeDesc')}
${t('sameDest')}
${t('trace')}
| ${t('boxMark')} | ${t('inboundCode')} | ${t('productName')} | ${t('remove')} |
|---|---|---|---|
| ${esc(item.boxNo)} | ${esc(plan?.inboundCode||'—')} | ${esc(item.name||'—')} |
${t('palletPhotoHint')}
${t('palletPhotoHint')}
${esc(task.id)} · ${esc(task.customer)}
${esc(task.id)} · ${esc(task.customer)}
`;const destinationSubMarkup=`${esc(task.destination)}
`;return rendered.replace(orderTitleMarkup,orderNumberMarkup).replace(orderSubMarkup,destinationSubMarkup);}; +const basePickViewForDestinationLabel=pickView; +pickView=function(){const task=pickTasks.find(x=>x.id===state.pickTaskId)||pickTasks.find(x=>!x.done)||pickTasks[0];let rendered=basePickViewForDestinationLabel();if(state.page!=='pick'||!task)return rendered;const destinationSubMarkup=`${esc(task.destination)}
`;const labeledDestinationSub=`${t('destinationWarehouseShort')}:${esc(task.destination)}
`;const redundantDestinationRow=`${t('relabelWorkHint')}