:root{--ink:#15312f;--muted:#7b8983;--green:#195b48;--lime:#d8edaa;--paper:#f4f5ef;--line:#e4e8df;--orange:#e9ad6b;--white:#fff; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif;color:var(--ink);background:var(--paper);font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:9px;padding:11px 17px;background:var(--green);color:white;font-weight:600;transition:background .15s}button:hover{background:#26735b}button:disabled{opacity:.45;cursor:not-allowed}button.secondary{background:#eef2e9;color:var(--ink)}button.secondary:hover{background:#e0e8d7}button.danger{background:#f9e7dc;color:#a84c30}button.small{padding:7px 12px;font-size:12px}a{color:var(--green)}input,select,textarea{width:100%;padding:11px 12px;border:1px solid #dce2d6;border-radius:8px;background:#fff;color:var(--ink);outline:none}input:focus,textarea:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #195b4810}input[type=checkbox]{width:auto}textarea{min-height:90px;resize:vertical}label{display:grid;gap:7px;font-size:12px;color:#607269;margin-bottom:16px}h1,h2,h3,p{margin-top:0}h1{font-size:29px;letter-spacing:-1px;font-weight:650}h2{font-size:18px}h3{font-size:15px}p{line-height:1.8}.muted{color:var(--muted)}.tiny{font-size:11px}.eyebrow{font-size:10px;letter-spacing:2px;text-transform:uppercase;color:var(--muted)}.shell{display:grid;grid-template-columns:235px 1fr;min-height:100vh}.sidebar{background:#fcfdf8;border-right:1px solid var(--line);padding:34px 21px;display:flex;flex-direction:column;position:fixed;width:235px;height:100vh}.brand{display:flex;gap:11px;align-items:center;padding:0 11px 34px;font-size:22px;font-weight:750;letter-spacing:1px}.brandmark{width:34px;height:34px;background:var(--green);color:var(--lime);border-radius:11px;display:grid;place-items:center;font-size:22px}.brand small{font-size:12px;font-weight:400;letter-spacing:0;color:var(--muted);display:block;margin-top:3px}.workspace{background:#edf1e6;border-radius:10px;padding:13px;margin-bottom:30px;font-size:12px;line-height:1.8}.navlabel{padding:0 13px 9px;color:#9aa599;font-size:10px;letter-spacing:2px}.nav{display:flex;flex-direction:column;gap:6px}.nav button{background:transparent;color:#738177;text-align:left;font-weight:500;padding:13px}.nav button.active{background:var(--green);color:#fff}.nav button span{display:inline-block;width:26px;font-size:17px}.sidebar-bottom{margin-top:auto;border-top:1px solid var(--line);padding:20px 9px 0;font-size:12px}.avatar{width:33px;height:33px;border-radius:50%;background:#e4e9d8;display:grid;place-items:center;font-weight:700}.person{display:flex;align-items:center;gap:9px;margin-bottom:14px}.main{grid-column:2;padding:0 42px 40px;min-width:0}.topbar{height:81px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin-bottom:32px;font-size:12px;color:var(--muted)}.online{display:flex;align-items:center;gap:7px}.dot{width:6px;height:6px;border-radius:50%;background:#79a069}.heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:27px}.heading p{font-size:12px;color:var(--muted);margin:0}.heading h1{margin:0 0 9px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:17px;margin-bottom:26px}.metric{border:1px solid var(--line);border-radius:13px;padding:21px;background:var(--white)}.metric:first-child{background:var(--green);color:white;border-color:var(--green)}.metric .label{font-size:12px;opacity:.7}.metric strong{display:block;font-size:31px;font-weight:600;margin:17px 0 12px;letter-spacing:-1px}.metric small{font-size:11px;opacity:.65}.panel{background:white;border:1px solid var(--line);border-radius:13px;padding:24px;margin-bottom:23px}.sectionhead{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}.sectionhead h2{margin:0}.route-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.route-tile{border:1px solid var(--line);border-radius:9px;padding:15px;display:flex;align-items:center;justify-content:space-between}.route-icon{font-size:24px;background:#f1f4e9;padding:8px;border-radius:9px;margin-right:10px}.row{display:flex;align-items:center;gap:10px}.between{justify-content:space-between}.badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;padding:5px 9px;border-radius:6px;background:#edf4e5;color:#54763e;white-space:nowrap}.badge.warn{background:#fff1df;color:#b68336}.badge.gray{background:#f0f1ef;color:#8c958e}.fleet-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:17px}.fleet-card{border:1px solid var(--line);border-radius:12px;padding:21px;background:white}.fleet-card h3{margin:19px 0 10px;font-size:17px}.fleet-card .sub{font-size:11px;color:var(--muted)}.route-line{display:flex;align-items:center;gap:8px;margin:25px 0;font-size:12px}.route-line i{height:1px;flex:1;background:var(--line);position:relative}.route-line i:after{content:'›';position:absolute;right:0;top:-9px;color:#99aa92;font-style:normal}.progress{height:5px;background:#edf0e8;border-radius:10px;overflow:hidden;margin:10px 0}.progress div{height:100%;background:#82a65a;border-radius:10px}.fleet-foot{border-top:1px solid var(--line);margin-top:20px;padding-top:15px;display:flex;justify-content:space-between;align-items:center}.empty{padding:35px;text-align:center;border:1px dashed #dce3d5;border-radius:12px;color:var(--muted);background:#fbfcf8}.empty strong{display:block;font-size:16px;color:var(--ink);margin-bottom:8px}.two-col{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.note{background:#f0f4e8;border-radius:9px;padding:14px;font-size:12px;line-height:1.8;color:#6a7b5c}.steps{display:flex;gap:8px;flex-wrap:wrap}.step{padding:8px 12px;background:#f1f3ee;color:#8b958d;border-radius:7px;font-size:11px}.step.yes{background:#e7f2dd;color:#527a38}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:12px;text-align:left}th{font-weight:500;color:#8b978b;padding:13px 9px;background:#f8faf5}td{padding:15px 9px;border-bottom:1px solid #edf0e8;vertical-align:middle}.stack{display:flex;gap:7px;flex-wrap:wrap}.member{border:1px solid var(--line);border-radius:10px;padding:20px;margin-top:16px}.member h3{margin-bottom:5px}.photos{display:flex;gap:9px;overflow:auto;margin:15px 0}.photos img{height:120px;width:140px;object-fit:cover;border-radius:8px}.photos a{display:block}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.form-grid .wide{grid-column:1/-1}.money{font-variant-numeric:tabular-nums}.timeline{border-left:2px solid #dce7cd;padding-left:20px;margin:20px 0}.timeline p{position:relative;font-size:12px}.timeline p:before{content:'';position:absolute;left:-26px;top:8px;width:9px;height:9px;border-radius:50%;background:#77a05a}.timeline small{display:block;color:var(--muted)}.footer{font-size:10px;color:#a1ab9d;display:flex;justify-content:space-between;margin-top:32px;letter-spacing:.5px}.login{min-height:100vh;display:grid;grid-template-columns:1.1fr 1fr}.login-story{background:var(--green);color:#fff;padding:60px 12%;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.login-story .brand{padding:0;color:white}.login-story .brand small{color:#b8cdbb}.login-story h1{font-size:52px;line-height:1.3;font-weight:500;letter-spacing:-2px}.login-story h1 em{font-style:normal;color:var(--lime)}.login-story p{color:#bacfc0;font-size:13px;max-width:320px}.journey{display:flex;gap:25px;font-size:12px;padding:27px 0;border-top:1px solid #ffffff30}.login-form{display:grid;place-items:center;padding:35px}.login-box{width:100%;max-width:360px}.login-box h2{font-size:27px}.tabs{display:flex;gap:5px;background:#e9eee2;padding:5px;border-radius:10px;margin:27px 0}.tabs button{flex:1;background:transparent;color:#78866f}.tabs button.active{background:white;color:var(--ink);box-shadow:0 2px 6px #15312f08}.full{width:100%}.boot{padding:80px;text-align:center;color:var(--muted)}dialog{border:1px solid var(--line);border-radius:17px;width:min(560px,94vw);padding:29px;color:var(--ink);max-height:90vh;overflow:auto;box-shadow:0 25px 100px #152e2733}dialog::backdrop{background:#18352d55;backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.dialog-top h2{margin:0}.close{background:#f0f3e9;color:#6e7c65;padding:5px 11px;font-size:20px}.form-error{color:#a44e35;font-size:12px;line-height:1.6;margin:12px 0}.identity{font-size:19px;word-break:break-all;background:#eef3e5;border:1px dashed #a6b995;padding:22px;border-radius:9px;margin:20px 0;user-select:all}#toast{display:none;position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#173d31;color:white;padding:13px 25px;border-radius:10px;box-shadow:0 6px 30px #173d3120;z-index:100}.qr{width:170px;height:170px;object-fit:contain;margin:15px auto;display:block}.mobile-brand{display:none}.route-setting{border:1px solid var(--line);padding:20px;border-radius:10px}.route-setting h3{margin:0 0 20px}@media(min-width:1600px){.main{max-width:1700px;padding-left:60px;padding-right:60px}}@media(max-width:1150px){.shell{grid-template-columns:190px 1fr}.sidebar{width:190px;padding:25px 13px}.main{padding:0 24px 30px}.fleet-grid{grid-template-columns:repeat(2,1fr)}.metrics{gap:10px}.metric{padding:16px}.route-strip{grid-template-columns:repeat(2,1fr)}.two-col{grid-template-columns:1fr}}@media(max-width:760px){.shell{display:block}.sidebar{position:static;width:100%;height:auto;padding:14px 16px;border-right:0}.sidebar .brand{padding:0;font-size:19px}.sidebar .brand small,.workspace,.navlabel,.sidebar-bottom{display:none}.nav{flex-direction:row;overflow:auto;margin-top:15px}.nav button{white-space:nowrap;padding:9px 12px;font-size:12px}.nav button span{width:20px}.main{padding:0 16px 25px}.topbar{height:52px;margin-bottom:22px}.heading{align-items:flex-start;gap:12px}.heading h1{font-size:23px}.heading button{font-size:12px;padding:10px}.metrics{grid-template-columns:1fr 1fr}.metric strong{font-size:27px;margin:12px 0}.fleet-grid{grid-template-columns:1fr}.panel{padding:17px}.route-tile{padding:11px}.route-icon{font-size:19px;padding:5px;margin-right:4px}.login{grid-template-columns:1fr}.login-story{padding:26px 25px}.login-story h1{font-size:30px;margin:25px 0 12px}.login-story p,.journey,.login-story>.tiny{display:none}.login-form{padding:28px 25px}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.footer{gap:15px}.sectionhead{gap:10px}.sectionhead .muted{font-size:10px}.route-strip{gap:8px}}

/* 客户单页：大厅 → 包裹 → 运输，有待处理事项时包裹置顶。 */
.customer-shell{min-height:100vh}.customer-header{max-width:1200px;margin:0 auto;padding:26px 32px;display:flex;justify-content:space-between;align-items:center;gap:18px;border-bottom:1px solid var(--line)}.customer-header .brand{padding:0;font-size:21px;letter-spacing:0}.customer-account{display:flex;flex-direction:column;gap:5px;text-align:right;font-size:12px}.customer-main{max-width:1200px;margin:0 auto;padding:32px}.customer-section{margin-bottom:42px;scroll-margin-top:20px}.customer-sectionhead{align-items:center;margin-bottom:19px;gap:15px}.customer-sectionhead h1,.customer-sectionhead h2{margin:0;font-size:24px;display:flex;align-items:center;gap:12px}.customer-sectionhead p{margin:9px 0 0;font-size:12px}.customer-sectionhead button{white-space:nowrap}.customer-section.needs-action{padding:22px;border:1px solid #e3d8b9;background:#fbf8ee;border-radius:14px}.customer-section>.panel:last-child{margin-bottom:0}.customer-section .fleet-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.customer-main .empty{background:#fcfdf8}.customer-main .member .row{flex-wrap:wrap;gap:12px}.customer-main .panel>.row{gap:12px;flex-wrap:wrap}@media(max-width:1000px){.customer-section .fleet-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.customer-header{padding:19px 16px;gap:10px}.customer-header .brand{font-size:17px;gap:8px}.customer-header .brand small{font-size:10px}.customer-header .brandmark{width:30px;height:30px}.customer-account strong{max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.customer-account .tiny{font-size:10px}.customer-header>.row{gap:8px}.customer-main{padding:25px 16px}.customer-section{margin-bottom:32px}.customer-section .fleet-grid{grid-template-columns:1fr}.customer-sectionhead h1,.customer-sectionhead h2{font-size:21px;flex-wrap:wrap;gap:7px}.customer-sectionhead button{padding:10px 12px;font-size:12px}.customer-sectionhead p{font-size:11px}.customer-section.needs-action{padding:15px}.customer-main .footer{flex-wrap:wrap}.customer-main .table-wrap table{min-width:310px}}
.add-package{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;padding:0;border:1px dashed #8ba796;background:#eff5eb;color:var(--green);font-size:24px;font-weight:400}.add-package:hover{background:#e0ecd9}.add-package:focus-visible{outline:3px solid #a9c68c;outline-offset:3px}
.owner-switch-bar{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:14px 17px;border:1px solid #d5dfbc;background:#edf3df;border-radius:10px;margin-bottom:26px;font-size:12px;line-height:1.7}.owner-switch-bar button{white-space:nowrap}.warehouse-shell .customer-sectionhead{margin-bottom:20px}.warehouse-shell .customer-sectionhead h1{font-size:24px}.warehouse-shell .heading h1{font-size:23px}@media(max-width:600px){.owner-switch-bar{align-items:flex-start;flex-wrap:wrap}.warehouse-shell .steps{gap:6px}}
.unpack-action{display:flex;justify-content:center;padding:23px 0 7px}.unpack-action button{min-width:165px}.package-case{background:#fafbf6;border:1px solid var(--line);padding:16px;border-radius:9px}.package-case h3{overflow-wrap:anywhere}.customer-main .table-wrap td:first-child{overflow-wrap:anywhere;max-width:220px}.customer-main .table-wrap td:last-child{min-width:128px}
.batch-title{font-size:24px!important;font-weight:700;line-height:1.4;overflow-wrap:anywhere}.append-batch-button{margin-top:18px}.customer-main .panel>.row>div:first-child{min-width:0}
.package-batch{scroll-margin-top:22px}
.fleet-weight-track{display:flex;height:13px;background:#edf0e8;border-radius:5px;overflow:hidden;margin:12px 0 13px}.weight-segment{display:block;height:100%;min-width:0;border-radius:0;flex-shrink:0}.mine-ordinary{background:#1c6b51}.mine-sensitive{background:#b45b20}.others-ordinary{background:#9ac4b2}.others-sensitive{background:#ebc29a}.weight-legend{display:grid;grid-template-columns:1fr 1fr;gap:9px 12px;font-size:10px;color:#64796d;line-height:1.6}.weight-legend span{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.weight-legend i{display:inline-block;width:9px;height:9px;border-radius:2px;flex-shrink:0}.weight-legend strong{font-weight:550;color:var(--ink)}.weight-caption{font-size:10px;color:var(--muted);margin:11px 0 0;line-height:1.7}@media(max-width:400px){.weight-legend{grid-template-columns:1fr}}
.package-cargo{margin-top:7px}.package-photo-gallery{display:grid;gap:15px}.package-photo-gallery img{display:block;width:100%;max-height:65vh;object-fit:contain;border-radius:10px;background:#f6f7f1}.warehouse-shell .package-batch>.row{align-items:flex-start}.warehouse-shell .package-batch>.row>.stack{justify-content:flex-end;max-width:45%}

.inspection-group,.inspection-record{border:1px solid var(--line,#dfe5da);border-radius:16px;padding:18px;margin:16px 0}.inspection-toolbar{gap:16px}.inspection-record h4{margin:0 0 12px}.inspection-record .photos{margin-top:12px}

.collapsed-batch>summary,.collapsed-tracking>summary,.history-order>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.collapsed-batch>summary:after,.collapsed-tracking>summary:after,.history-order>summary:after{content:'⌄';font-size:22px}.collapsed-batch[open]>summary:after,.collapsed-tracking[open]>summary:after,.history-order[open]>summary:after{content:'⌃'}.collapsed-batch>summary h2,.history-order>summary h3{margin:0 0 6px}.collapsed-batch>.panel,.collapsed-tracking>.panel,.history-order>.panel{margin-top:20px;box-shadow:none}.pickup-batch{border:2px solid #e7a437;background:#fffaf0}.badge.pickup-status{background:#ffdf8c;color:#714000;font-weight:800}.order-action{margin:12px 0}#warehouse-ready .panel{border:2px solid #d6a23d}summary:focus-visible{outline:3px solid #1a6a54;outline-offset:5px}

.combined-routes{margin-bottom:24px}.route-cargo-row{padding:15px 0;border-top:1px solid var(--line)}.route-cargo-row h4{margin:0}.route-cargo-row p{margin:8px 0}.urgent-setting .money{font-size:24px}.login-logo{width:48px;height:48px;object-fit:contain;border-radius:9px}.login-preview-dialog{width:min(1100px,96vw)}.login-preview .login{min-height:550px}.login-preview .login-story{padding:35px}.login-preview .login-story h1{font-size:32px}.login-preview .login-form{padding:30px}.login-preview .login-box{max-width:340px}.login-story h1,.login-story p{overflow-wrap:anywhere}.login .login-story .brandmark{background:var(--lime);color:var(--green)}

input[name="transfer-package"]{width:auto;margin-right:12px;accent-color:var(--green);transform:scale(1.2)}.transfer-notice{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:10px;background:#fff4dc;border-radius:9px}.order-finance .steps{margin-bottom:18px}.order-finance td{white-space:nowrap}.collapsed-batch>summary .stack{align-items:center}

/* 仓库标题优先显示所属车队；普货、敏货保留独立开关。 */
.warehouse-shell .batch-title{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin-bottom:7px}
.warehouse-fleet-name{font-weight:750;min-width:0;overflow-wrap:anywhere}
.warehouse-customer-number{font-size:18px;color:var(--muted);font-weight:650;white-space:nowrap}
.route-cargo-grid{min-width:0}.route-setting{min-width:0}.route-setting h3{overflow-wrap:anywhere}

/* 客户与仓库手机工作台：单号卡片、可触摸操作和单列弹窗。 */
@media(max-width:640px){
  .customer-shell{min-height:100svh}
  .customer-header{padding:16px max(12px,env(safe-area-inset-right)) 16px max(12px,env(safe-area-inset-left));gap:10px;flex-wrap:wrap}
  .customer-header .brand{min-width:0;flex:1;gap:8px;font-size:17px}
  .customer-header .brand>div{min-width:0;overflow-wrap:anywhere}.customer-header .brandmark{flex-shrink:0}
  .customer-header>.row{min-width:0;gap:8px}.customer-header .customer-account{font-size:11px;max-width:98px}
  .customer-header .customer-account strong{max-width:98px}.customer-header .brand small{font-size:10px;line-height:1.5}
  .customer-main{padding:22px max(12px,env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));min-width:0}
  .customer-main button{min-height:44px;touch-action:manipulation;line-height:1.45;font-size:13px;padding:10px 13px;white-space:normal}
  .customer-header button{min-height:44px;padding:10px 12px;font-size:13px}
  .customer-main .add-package{width:44px;height:44px;font-size:27px;padding:0;flex:0 0 44px}
  .customer-section{margin-bottom:28px}.customer-section.needs-action{padding:12px;border-radius:14px}
  .customer-sectionhead{flex-wrap:wrap;align-items:flex-start;gap:12px;margin-bottom:16px}
  .customer-sectionhead h1,.customer-sectionhead h2,.warehouse-shell .customer-sectionhead h1{font-size:22px;letter-spacing:-.5px;line-height:1.4}
  .customer-sectionhead p{font-size:12px;line-height:1.7}.customer-sectionhead>.muted{min-width:0}
  .customer-main .panel,.customer-main .fleet-card{padding:16px;border-radius:14px;min-width:0;margin-bottom:16px}
  .customer-main .batch-title{font-size:21px!important;line-height:1.45;letter-spacing:0;margin:0 0 8px}
  .warehouse-shell .warehouse-customer-number{font-size:16px}
  .customer-main .package-batch>.row{display:flex;flex-direction:column;align-items:stretch;gap:12px}
  .customer-main .package-batch>.row>.stack,.warehouse-shell .package-batch>.row>.stack{max-width:none;justify-content:flex-start;width:100%;gap:8px;align-items:center}
  .customer-main .package-batch .tiny{font-size:12px;line-height:1.7}
  .customer-main .badge{font-size:11px;line-height:1.45;padding:6px 9px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
  .customer-main .transfer-notice{width:100%;font-size:12px;line-height:1.7;padding:12px}
  .customer-main .transfer-notice button{flex:1 0 auto}
  .customer-main .parcel-table-wrap{overflow:visible;margin-top:16px}
  .customer-main .parcel-table{display:block;min-width:0!important;width:100%;font-size:13px}
  .customer-main .parcel-table thead{display:none}.customer-main .parcel-table tbody{display:block}
  .customer-main .parcel-table .parcel-row{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'tracking status' 'actions actions';gap:12px;background:#f7f9f4;border:1px solid var(--line);border-radius:11px;padding:13px;margin:0 0 12px}
  .customer-main .parcel-table td{display:block;padding:0;border:0;min-width:0!important;max-width:none!important}
  .customer-main .parcel-table .parcel-tracking{grid-area:tracking;line-height:1.7;overflow-wrap:anywhere;font-weight:600}
  .customer-main .parcel-table .parcel-status{grid-area:status;align-self:start;max-width:95px!important}
  .customer-main .parcel-table .parcel-actions{grid-area:actions}
  .customer-main .parcel-actions>.stack{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .customer-main .parcel-actions button{width:100%;min-width:0;margin:0;line-height:1.5}
  .customer-main .parcel-case-row{display:block;margin:0 0 16px}.customer-main .package-case{padding:12px}
  .customer-main input[name='transfer-package']{width:24px;height:24px;min-height:24px;vertical-align:middle;transform:none;margin:0 9px 0 0}
  .customer-main .package-cargo{margin-top:7px;font-weight:400}
  .customer-main .member{padding:13px;margin-top:17px;border-radius:11px;min-width:0}
  .customer-main .member .row{align-items:flex-start;gap:10px}
  .customer-main .member>.stack:last-child{display:grid;grid-template-columns:1fr;width:100%;gap:9px}
  .customer-main .member>.stack:last-child button{width:100%;min-height:46px}
  .customer-main .member .money{font-size:18px}.customer-main .member p{font-size:13px}
  .customer-main .step{font-size:12px;line-height:1.6;padding:8px 10px;overflow-wrap:anywhere}
  .warehouse-shell #warehouse-ready .steps,.warehouse-shell #warehouse-fleets .steps{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .warehouse-shell #warehouse-ready .panel>div:last-child button,.warehouse-shell #warehouse-fleets .panel>div:last-child button{width:100%;min-height:46px}
  .customer-main .unpack-action{padding:12px 0}.customer-main .unpack-action button{width:100%}
  .customer-main .photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;overflow:visible}
  .customer-main .photos img{display:block;width:100%;height:140px;object-fit:cover}.customer-main .photos a{min-width:0}
  .customer-main .inspection-record{padding:12px;border-radius:11px}.inspection-record h4{font-size:14px;line-height:1.6}
  .customer-main .collapsed-batch>summary{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px}
  .customer-main .collapsed-batch>summary>div:first-child{grid-column:1/-1;min-width:0}
  .customer-main .collapsed-batch>summary>.stack{grid-column:1;min-width:0;flex-wrap:wrap}
  .customer-main .collapsed-batch>summary:after{grid-column:2;grid-row:2}
  .customer-main .collapsed-batch>.panel,.customer-main .collapsed-tracking>.panel,.customer-main .history-order>.panel{padding:0;border:0;border-radius:0;margin:18px 0 0;background:transparent}
  .customer-main .collapsed-tracking>summary,.customer-main .history-order>summary{gap:10px;flex-wrap:wrap}
  .customer-main summary strong,.customer-main summary h3{font-size:16px;line-height:1.6;overflow-wrap:anywhere}
  .customer-main summary::-webkit-details-marker{display:none}
  .customer-main .combined-routes{grid-template-columns:minmax(0,1fr);gap:14px}
  .customer-main .combined-routes .route-setting{background:#fff;padding:15px;border-radius:12px}
  .customer-main .combined-routes .route-setting h3{font-size:18px;margin-bottom:12px}
  .customer-main .route-cargo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
  .customer-main .route-cargo-row{min-width:0;padding:12px 0 0}.customer-main .route-cargo-row>.row{flex-wrap:wrap}
  .customer-main .route-cargo-row h4{font-size:15px}.customer-main .route-cargo-row button{width:100%;min-height:44px}
  .customer-main .route-cargo-row .tiny{font-size:11px;line-height:1.8}
  .customer-main .weight-legend{font-size:11px;gap:10px}.customer-main .weight-caption{font-size:11px}
  .customer-main .fleet-foot{gap:10px;flex-wrap:wrap}.customer-main .fleet-card h3{font-size:19px;overflow-wrap:anywhere}
  .customer-main .fleet-card .sub{font-size:12px;line-height:1.6}
  .customer-main .footer{font-size:11px;line-height:1.7;flex-wrap:wrap;gap:8px}
  dialog{width:calc(100vw - 20px);max-width:560px;max-height:calc(100dvh - 24px);padding:18px;border-radius:15px;overscroll-behavior:contain}
  .dialog-top{gap:12px;align-items:flex-start;margin-bottom:22px}.dialog-top h2{font-size:21px;line-height:1.4;overflow-wrap:anywhere}
  .dialog-top .close{min-width:44px;min-height:44px;flex-shrink:0;padding:4px;font-size:26px}
  dialog input,dialog select,dialog textarea{font-size:16px;min-height:46px;min-width:0;max-width:100%;line-height:1.5}
  dialog input[type=checkbox]{min-height:24px;width:24px}.form-grid{grid-template-columns:minmax(0,1fr)}
  dialog label{font-size:13px;line-height:1.6;min-width:0}.form-grid .wide{grid-column:auto}
  dialog input[type=file]{font-size:12px;padding:7px;overflow:hidden}dialog input[type=file]::file-selector-button{padding:9px 10px;border:0;border-radius:6px;margin-right:6px;font-size:13px;background:#eef2e9;color:var(--ink)}
  dialog button{min-height:44px;touch-action:manipulation;font-size:14px}
  #modal-form>.row:last-child{position:sticky;bottom:-18px;display:grid;grid-template-columns:1fr 1.4fr;background:#fff;padding:12px 0 2px;border-top:1px solid var(--line);z-index:2;gap:10px}
  #modal-form>.row:last-child button{width:100%;min-height:46px;line-height:1.5}
  .inspection-group{padding:12px;margin:12px 0;border-radius:12px}.inspection-toolbar{align-items:center;gap:10px}
  .inspection-toolbar p{font-size:13px;margin:0}.inspection-toolbar .add-package{width:44px;height:44px;flex-shrink:0}
  .package-photo-gallery img{max-height:55svh}dialog .note,dialog .muted{overflow-wrap:anywhere;line-height:1.8}
  #toast{max-width:calc(100vw - 24px);width:max-content;font-size:13px;line-height:1.5;bottom:calc(18px + env(safe-area-inset-bottom));text-align:center}
}
@media(max-width:360px){
  .customer-header{align-items:flex-start}.customer-header>.row{width:100%;justify-content:flex-end}
  .customer-sectionhead h1,.customer-sectionhead h2{font-size:20px}
  .customer-main .package-batch .batch-title{font-size:20px!important}
  .customer-main .weight-legend{grid-template-columns:1fr}
}

.parcel-select{display:inline-flex;align-items:center;justify-content:center;min-width:38px;min-height:38px;margin:0;vertical-align:middle}
@media(max-width:640px){.customer-main .panel{overflow-wrap:anywhere}.customer-main .parcel-select{min-width:44px;min-height:44px;margin:0 6px 0 0}.customer-main .parcel-select input[name="transfer-package"]{margin:0}.login-form input{font-size:16px;min-height:48px}.login-form button{min-height:44px}}

/* 两端固定在页面上方的模块导航。 */
html{scroll-behavior:smooth}.module-nav{position:sticky;top:0;z-index:40;background:#fcfdf9f2;backdrop-filter:blur(12px);border-bottom:1px solid var(--line)}
.module-nav>div{display:flex;gap:10px;max-width:1200px;margin:0 auto;padding:8px 32px}.module-nav a{flex:1;text-align:center;text-decoration:none;color:#61766c;font-size:13px;font-weight:650;min-height:44px;padding:12px 16px;border-radius:9px;line-height:1.5;white-space:nowrap}
.module-nav a:hover,.module-nav a.active{background:#e7efdf;color:var(--green)}.module-nav a:focus-visible{outline:3px solid #96bba5;outline-offset:1px}
.customer-section,.package-batch{scroll-margin-top:82px}.customer-main .package-batch.customer-task{border:2px solid #dbc58d}
.dashboard-stat{display:block;text-align:left;color:var(--ink);line-height:1.5;font-weight:400;min-width:0}.dashboard-stat:first-child{color:#fff}.dashboard-stat:hover{background:#edf3e7}.dashboard-stat:first-child:hover{background:#26735b}.dashboard-stat strong{font-size:32px}.dashboard-stat small{line-height:1.7}
.workflow-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px}.exception-stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.workflow-stat{display:flex;flex-direction:column;text-align:left;border:1px solid var(--line);background:#f9fbf6;color:var(--ink);border-radius:12px;padding:18px 14px;gap:14px;font-size:12px;line-height:1.6;min-width:0;font-weight:500}
.workflow-stat.has-tasks{background:#f0f5e8;border-color:#c5d5b7}.workflow-stat:hover{background:#e7efdc}.workflow-stat strong{font-size:28px;font-weight:700;line-height:1.3}.workflow-stat strong small{font-size:10px;color:var(--muted);font-weight:400;margin-left:7px;display:inline-block}.workflow-actor{font-size:10px;color:var(--muted)}
.journey-panel{margin-top:24px}.journey-flow{padding:0;margin:0;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.journey-flow li{display:flex;gap:14px;padding:14px 0;min-width:0}.journey-number{display:grid;place-items:center;align-self:flex-start;width:36px;height:36px;flex-shrink:0;border-radius:10px;background:#e8f0df;color:var(--green);font-weight:700;font-size:12px}.journey-flow h3{font-size:14px;margin:2px 0 6px}.journey-flow p{margin:0;color:var(--muted);font-size:12px;line-height:1.8}
.task-status{background:#fff3dc;color:#8f6828;border:1px solid #eddbaf;font-size:11px;line-height:1.6;font-weight:500;padding:5px 9px}.task-status:hover{background:#f6e5bc}.owner-task-record{margin-bottom:24px}.owner-task-record>.row{gap:12px;flex-wrap:wrap;margin-bottom:10px;font-size:12px;color:var(--muted)}
.owner-history>summary{display:flex;justify-content:space-between;align-items:center;gap:16px;cursor:pointer;list-style:none}.owner-history>summary:after{content:'⌄';font-size:22px}.owner-history[open]>summary:after{content:'⌃'}.owner-history>summary h2{margin:0 0 8px;overflow-wrap:anywhere}.owner-history>summary::-webkit-details-marker{display:none}
@media(max-width:1100px){.workflow-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:640px){.module-nav>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));padding:8px 8px;gap:4px}.module-nav a{font-size:12px;padding:12px 2px;min-width:0;min-height:44px}.customer-section,.package-batch{scroll-margin-top:78px}.workflow-stats,.exception-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.workflow-stat{padding:14px 12px}.journey-flow{grid-template-columns:1fr;gap:6px}.dashboard-stat strong{font-size:28px}.owner-history>summary{flex-wrap:wrap}.owner-history>summary .tiny{overflow-wrap:anywhere}.customer-task .transfer-notice{min-width:0}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
