/* 沿用现有浅色基调，统一可读性、选中态与键盘焦点。 */
:root{--muted:#5b6c7e;--ui-blue:#345f83;--ui-blue-soft:#e8f1f8;--ui-focus:#3976ad}
.caption,.subtitle,.task-eyebrow,.task-list-foot,.task-stat>span,.task-table td small,.task-table th,.task-help>summary,.page-tab{color:var(--muted)}
.sidebar .nav-item{color:#586d80}.sidebar .nav-item.active{background:var(--ui-blue-soft);color:#2d597c;font-weight:600;box-shadow:inset 3px 0 #648eaf}.sidebar .nav-folder>summary{color:#4e667c}
.button.primary{background:#e2eef8;border-color:#c5d9e9;color:#2d5879;font-weight:600}.button.primary:hover{background:#d4e5f2;border-color:#9ebed5;color:#244c6c}
.task-state.pending{background:#edf4f9;color:#416781}.task-state.running{background:#f5edf2;color:#85516e}.task-state.exception{background:#fbf0e7;color:#875238}.task-state.done{background:#edf6f1;color:#35664b}.task-stat.running strong{color:#8d5676}.task-stat.exception strong,.task-reason{color:#8d583e}
.task-filters button.selected,.station-state-filter.selected{background:var(--ui-blue-soft);color:#315d7e}.page-tab.active{color:#315d7e;box-shadow:0 -2px 0 #648eaf}.page-tab>a{min-height:36px}.page-tab.dashboard-shortcut{position:sticky;left:0;z-index:2;padding:0 12px;background:#e8f0f7;color:#315d7e;border:1px solid #d5e2ed;border-bottom:0;font-weight:600}.page-tab.dashboard-shortcut.active{background:#e3edf7;box-shadow:0 -2px 0 #4b85b6}
.select-trigger,.input,select,input:not([type=checkbox]):not([type=radio]),textarea{color:#344e65}.select-trigger::placeholder,input::placeholder,textarea::placeholder{color:#66798b;opacity:1}.select-popup [role=option][aria-selected=true],.wms-select-popup [role=option][aria-selected=true]{color:#2c597b}
.button:focus-visible,.select-trigger:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}.button:disabled{cursor:not-allowed}
.panel,.doc-card,.task-list{border-radius:12px}.field label,.field>span{line-height:1.5}.actions{flex-wrap:wrap}.table-wrap{max-width:100%;overscroll-behavior-x:contain}
.page-tab button{color:#61768a}.task-types>span,.task-filters button span{color:#596f84}.station-scan small,.task-board>.station-scan small{color:#5c7184}.history-details>summary{color:#596f84}.panel .caption,.panel-body .caption{color:var(--muted)}.notice,.handoff-note,.next-step,.return-context{color:#506a80}.empty{color:#5e7184}.tabs .tab,.tab{color:#596f84;background:transparent}.tabs .tab.active,.tab.active{color:#315d7e;background:var(--ui-blue-soft);border-color:#c5d9e9}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

.table-wrap td small,.shipping-options small{color:var(--muted)}
/* 全站导航使用同一套文字、悬停和选中色，不按业务分组换色。 */
:root{--nav-text:#50677b;--nav-hover:#f0f4f7;--nav-active:#e8f1f8;--nav-active-text:#315d7e}
.sidebar,.sidebar #nav{background:#fff}.sidebar .nav-item,.sidebar .nav-folder>summary,.sidebar .nav-folder[open]>summary{color:var(--nav-text);font-weight:500}.sidebar .nav-item:hover,.sidebar .nav-folder>summary:hover{background:var(--nav-hover);color:var(--nav-text)}.sidebar .nav-item.active{background:var(--nav-active);color:var(--nav-active-text);font-weight:600;box-shadow:inset 3px 0 #648eaf}.sidebar .nav-folder>summary{background:transparent}.compact-code{display:inline-block;max-width:18ch;white-space:nowrap;font-variant-numeric:tabular-nums}.appointment-list td:first-child{width:200px;max-width:200px}.appointment-list td small{max-width:220px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-origins,.uat-batch{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:14px}.master-origins small,.uat-batch span{font-size:12px;color:var(--muted)}.uat-batch{padding:12px 14px;border:1px solid var(--line);border-radius:10px;background:#fff}.uat-batch .button{margin-left:auto}.master-product{display:flex;align-items:center;gap:10px;min-width:220px}.master-product .shipping-product-photo{width:38px;height:48px;min-width:38px}.master-product .shipping-product-photo img{width:38px;height:48px;object-fit:contain}.master-name{display:block;max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.master-list td{white-space:normal}.uat-steps{padding-left:22px;line-height:1.8}.uat-steps li{margin-bottom:9px}
.uat-next{display:block;max-width:290px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 登录页：B版照片背景与轻透明浮卡，仅作用于未登录状态。 */
body.auth-screen{background:#253e4d;min-width:0}
body.auth-screen>.sidebar,body.auth-screen .shell>header,body.auth-screen .shell>footer,body.auth-screen #page-tabs{display:none!important}
body.auth-screen .shell{margin:0;width:100%;min-width:0;min-height:100vh;padding:0}
body.auth-screen #main{box-sizing:border-box;min-height:100vh;min-height:100dvh;padding:46px 7vw;margin:0;max-width:none;position:relative;isolation:isolate}
body.auth-screen .login-layout{min-height:calc(100vh - 92px);min-height:calc(100dvh - 92px);width:100%;display:flex;flex-direction:column;justify-content:space-between}
body.auth-screen .login-photo{position:fixed;inset:0;z-index:-3;width:100%;height:100%;object-fit:cover;object-position:50% 46%;filter:saturate(.45)}
body.auth-screen .login-visual-shade{position:fixed;inset:0;z-index:-2;background:linear-gradient(90deg,#102c3d66,#102c3d08),linear-gradient(0deg,#122c3cd9,transparent 75%)}
body.auth-screen .login-brand{display:flex;align-items:center;gap:13px;color:#fff;font-size:24px;font-weight:600;letter-spacing:.1em;line-height:1.3}
body.auth-screen .login-brand-mark{display:grid;place-items:center;width:42px;height:42px;border:1px solid #ffffffaa;border-radius:11px;font-size:26px}
body.auth-screen .login-brand small{display:block;font-size:9px;letter-spacing:.22em;margin-top:6px;font-weight:400}
body.auth-screen .login-content-row{width:100%;display:flex;align-items:center;justify-content:space-between;gap:80px;padding:36px 0}
body.auth-screen .login-visual-copy{color:#fff;align-self:flex-end;padding-bottom:22px}
body.auth-screen .login-eyebrow{font-size:11px;letter-spacing:.18em;font-weight:500}
body.auth-screen .login-visual-copy h2{font-size:40px;line-height:1.65;letter-spacing:.05em;font-weight:400;color:#fff;margin:16px 0}
body.auth-screen .login-visual-copy p{font-size:13px;letter-spacing:.14em;color:#ecf2f6;margin:0}
body.auth-screen .login-form-area{width:420px;flex:none;padding:42px 38px;background:rgba(248,252,254,.96);border:1px solid #ffffffc9;border-radius:18px;box-shadow:0 15px 55px #081e3322}
body.auth-screen .login-form-intro .login-eyebrow{color:#4c677d}
body.auth-screen .login-form-intro>p{font-size:30px;font-weight:500;color:#233c4f;letter-spacing:.04em;line-height:1.45;margin:13px 0 8px}
body.auth-screen .login-panel{width:100%;max-width:none;margin:0;background:transparent;border:0;border-radius:0;box-shadow:none;overflow:visible}
body.auth-screen .login-panel .panel-head{padding:0 0 28px;border:0;background:transparent}
body.auth-screen .login-panel h1{font-size:13px;color:#506a80;font-weight:400;letter-spacing:0;line-height:1.7}
body.auth-screen .login-panel .panel-body{padding:0;background:transparent}
body.auth-screen .login-panel .field{margin-bottom:19px;font-size:13px;font-weight:500;color:#304b60}
body.auth-screen .login-panel input{height:50px;padding:0 42px;border:1px solid #bdceda;border-radius:10px;color:#223e53;background-color:#fff;font-size:16px;background-repeat:no-repeat;background-position:15px center;background-size:17px;transition:border-color .18s,box-shadow .18s}
body.auth-screen .login-panel input[name=username]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23678095' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E")}
body.auth-screen .login-panel input[name=password]{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23678095' stroke-width='1.5' stroke-linecap='round'%3E%3Crect x='5' y='10' width='14' height='11' rx='2'/%3E%3Cpath d='M8 10V7a4 4 0 0 1 8 0v3M12 15v2'/%3E%3C/svg%3E")}
body.auth-screen .login-panel input:not([name=username]):not([name=password]){padding-left:13px}
body.auth-screen .login-panel input:focus{background-color:#fff;border-color:#537e9c;box-shadow:0 0 0 3px #547e9b14}
body.auth-screen .login-panel input::placeholder{color:#718595}
body.auth-screen .login-password-field{position:relative;display:flow-root;margin-bottom:19px}
body.auth-screen .login-password-field .field{margin-bottom:0}
body.auth-screen #login-password-toggle{position:absolute;right:4px;bottom:3px;width:44px;height:44px;border:0;border-radius:8px;background:transparent;color:#607a90;display:grid;place-items:center;cursor:pointer}
body.auth-screen #login-password-toggle svg{width:18px;height:18px}
body.auth-screen #login-password-toggle:hover{background:#335b7410}
body.auth-screen #login-password-toggle:focus-visible{outline:2px solid var(--ui-focus);outline-offset:2px}
body.auth-screen .login-panel .caption{font-size:12px;color:#506a7d;line-height:1.7;margin:3px 0 22px}
body.auth-screen .login-panel .button.primary{width:100%;height:50px;margin:0;border:1px solid #365e79;border-radius:10px;background:#365e79;color:#fff;font-size:14px;letter-spacing:.06em;transition:background .18s,box-shadow .18s}
body.auth-screen .login-panel .button.primary:hover{background:#294d67;border-color:#294d67;box-shadow:0 5px 14px #213e5522}
body.auth-screen .login-panel .button.primary:disabled{background:#56748a;box-shadow:none}
body.auth-screen .login-panel #login-error{color:#a03636;font-size:13px;line-height:1.6;margin-bottom:15px}
body.auth-screen .login-panel #login-error:empty{display:none}
body.auth-screen .login-form-footer{margin:30px 0 0;padding-top:21px;border-top:1px solid #39586d1a;font-size:11px;letter-spacing:.04em;color:#586f82}
body.auth-screen .login-scene-footer{color:#e8f0f4;font-size:10px;letter-spacing:.06em;margin:0}
@media(max-width:1000px){body.auth-screen #main{padding:30px}body.auth-screen .login-layout{min-height:calc(100dvh - 60px)}body.auth-screen .login-content-row{gap:30px}body.auth-screen .login-visual-copy h2{font-size:29px}body.auth-screen .login-form-area{width:390px;padding:34px}}
@media(max-width:700px){body.auth-screen #main{padding:26px 18px 20px}body.auth-screen .login-layout{min-height:calc(100dvh - 46px);justify-content:flex-start}body.auth-screen .login-brand{font-size:21px}body.auth-screen .login-brand-mark{width:38px;height:38px;font-size:23px}body.auth-screen .login-content-row{display:block;padding:38px 0 20px}body.auth-screen .login-visual-copy{display:none}body.auth-screen .login-form-area{width:100%;max-width:420px;padding:32px 26px;margin:auto;background:rgba(248,252,254,.98)}body.auth-screen .login-form-intro>p{font-size:26px}body.auth-screen .login-photo{object-position:50% 40%}body.auth-screen .login-scene-footer{margin-top:5px}}

body.auth-screen .login-ready{font-size:12px;color:#506a7d;margin:12px 0 0}
body.app-loading{min-width:0;background:#f1f4f6}
body.app-loading>.sidebar,body.app-loading .shell>header,body.app-loading .shell>footer,body.app-loading #page-tabs{display:none!important}
body.app-loading .shell{margin:0;width:100%;min-width:0;padding:0}
body.app-loading #main{min-height:100vh;min-height:100dvh;display:grid;place-items:center;margin:0;padding:24px}
.app-boot{text-align:center;color:#304e65;max-width:300px}
.app-boot-mark{width:48px;height:48px;display:grid;place-items:center;margin:0 auto 18px;border-radius:13px;background:#2e526f;color:#fff;font-size:28px}
.app-boot h1{font-size:24px;font-weight:500;margin:0 0 12px}
.app-boot p{font-size:13px;color:#62798d;margin:0}

/* 浏览器宽高共同约束登录布局，超宽屏保持内容聚合，小屏保留滚动空间。 */
body.auth-screen #main{--login-pad-y:clamp(24px,4vh,60px);display:flex;align-items:center;justify-content:center;padding:var(--login-pad-y) clamp(20px,5vw,96px)}
body.auth-screen .login-layout{width:100%;max-width:1480px;margin:0 auto;min-height:min(900px,calc(100vh - 2*var(--login-pad-y)));min-height:min(900px,calc(100dvh - 2*var(--login-pad-y)));display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto 1fr auto;justify-content:stretch;gap:clamp(20px,3vh,40px)}
body.auth-screen .login-brand{font-size:clamp(21px,1.3vw,28px)}
body.auth-screen .login-brand-mark{width:clamp(40px,2.2vw,52px);height:clamp(40px,2.2vw,52px);font-size:clamp(25px,1.5vw,32px)}
body.auth-screen .login-content-row{display:grid;grid-template-columns:minmax(0,1fr) clamp(400px,30vw,520px);gap:clamp(40px,7vw,160px);padding:0;align-items:center}
body.auth-screen .login-visual-copy{align-self:center;min-width:0;padding-bottom:0}
body.auth-screen .login-visual-copy h2{font-size:clamp(30px,2.25vw,50px);line-height:1.55}
body.auth-screen .login-form-area{width:100%;min-width:0;padding:clamp(30px,2.5vw,50px) clamp(30px,2.4vw,48px)}
body.auth-screen .login-form-intro>p{font-size:clamp(28px,1.8vw,36px)}
body.auth-screen .login-panel input,body.auth-screen .login-panel .button.primary{height:clamp(48px,3.2vw,58px)}
body.auth-screen #login-password-toggle{bottom:calc((clamp(48px,3.2vw,58px) - 44px)/2)}
body.auth-screen .login-scene-footer{align-self:end}
@media(max-width:1100px){body.auth-screen #main{padding-left:28px;padding-right:28px}body.auth-screen .login-content-row{grid-template-columns:minmax(0,1fr) 380px;gap:32px}body.auth-screen .login-form-area{padding:32px}}
@media(max-width:900px){body.auth-screen #main{--login-pad-y:28px;padding:var(--login-pad-y) 24px}body.auth-screen .login-layout{max-width:580px;gap:30px}body.auth-screen .login-content-row{display:block;padding:0}body.auth-screen .login-visual-copy{display:none}body.auth-screen .login-form-area{max-width:none;margin:0;padding:36px;background:rgba(248,252,254,.98)}body.auth-screen .login-brand{font-size:23px}body.auth-screen .login-brand-mark{width:42px;height:42px;font-size:27px}body.auth-screen .login-panel input,body.auth-screen .login-panel .button.primary{height:52px}body.auth-screen #login-password-toggle{bottom:4px}}
@media(max-width:600px){body.auth-screen #main{--login-pad-y:22px;padding:var(--login-pad-y) 18px}body.auth-screen .login-layout{gap:24px;max-width:440px}body.auth-screen .login-form-area{padding:30px 26px}body.auth-screen .login-brand{font-size:21px}body.auth-screen .login-brand-mark{width:38px;height:38px;font-size:23px}body.auth-screen .login-form-intro>p{font-size:26px}body.auth-screen .login-panel input,body.auth-screen .login-panel .button.primary{height:50px}body.auth-screen #login-password-toggle{bottom:3px}}
@media(max-height:740px) and (min-width:901px){body.auth-screen #main{--login-pad-y:16px}body.auth-screen .login-layout{gap:16px}body.auth-screen .login-scene-footer{display:none}body.auth-screen .login-form-area{padding:24px 30px}body.auth-screen .login-form-intro>p{font-size:25px;margin-top:8px}body.auth-screen .login-panel .panel-head{padding-bottom:18px}body.auth-screen .login-panel .field,body.auth-screen .login-password-field{margin-bottom:14px}body.auth-screen .login-password-field .field{margin-bottom:0}body.auth-screen .login-panel .caption{margin-bottom:16px}body.auth-screen .login-form-footer{margin-top:20px;padding-top:16px}body.auth-screen .login-panel input,body.auth-screen .login-panel .button.primary{height:46px}body.auth-screen #login-password-toggle{bottom:1px}body.auth-screen .login-visual-copy h2{font-size:clamp(28px,2.25vw,36px)}}

/* 桌面保持右侧登录窗，左侧品牌文案贴近边缘，不将整组内容居中。 */
@media(min-width:901px){body.auth-screen #main{padding-left:clamp(24px,2.5vw,64px);padding-right:clamp(24px,7vw,180px)}body.auth-screen .login-layout{max-width:none;min-height:calc(100vh - 2*var(--login-pad-y));min-height:calc(100dvh - 2*var(--login-pad-y))}}
