/*
 * View 样式：system mobile style。
 * 源码：frontend/src/views/styles/017-system-mobile-style.css
 * 依赖：页面 DOM 的既有 class/id；加载位置由 frontend/src/modules.json 决定。
 * 维护：保留选择器作用域及层叠顺序；修改后构建并检查桌面/手机布局。
 */
/* Shared mobile rules. Keep compact driver rows and print layouts intact. */
@media screen and (max-width:850px){
 body.signed{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
 body.signed main,body.signed .content,body.signed #app,body.signed .panel{min-width:0;max-width:100%}
 body.signed .content{padding:16px 12px 24px}
 body.signed .page-heading{align-items:flex-start;gap:10px;margin-bottom:16px}
 body.signed .page-heading>div{min-width:0}
 body.signed h1{font-size:23px;line-height:1.35;letter-spacing:0;overflow-wrap:anywhere}
 body.signed .eyebrow{display:none}
 body.signed .page-heading p{font-size:12px;line-height:1.6}
 body.signed .panel{padding:16px 12px}
 body.signed :is(p,h2,h3,pre,.intro,.review-group,.bundle-card-head){overflow-wrap:anywhere}
 body.signed pre{white-space:pre-wrap;word-break:break-word;max-width:100%}
 body.signed input:not([type=checkbox]):not([type=radio]),body.signed select,body.signed textarea{font-size:16px;min-width:0;max-width:100%;min-height:44px}
 body.signed :is(button.secondary,button.primary,button.text-btn){min-height:44px;white-space:normal}
 body.signed .cloud-toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 body.signed .cloud-toolbar>label{min-width:0;flex-basis:100%}
 body.signed .cloud-toolbar>button{flex:1 1 auto;margin:0;font-size:12px;padding:9px 10px}
 body.signed .cloud-order{padding:14px 0;margin-top:14px}
 body.signed .cloud-order h3{font-size:15px;line-height:1.5}
 body.signed .cloud-order .tag{display:inline-block;max-width:100%;font-size:10px;vertical-align:middle}
 body.signed .cloud-order>button{margin:6px 6px 0 0}
 body.signed .order-date-filter{padding:12px;margin:14px 0}
 body.signed .date-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;align-items:end}
 body.signed .date-filter-fields>label{grid-column:1/-1;min-width:0}
 body.signed .date-filter-fields button{padding:8px 4px;margin:0;min-width:0}
 body.signed header{display:flex;flex-direction:column;align-items:stretch;height:auto;gap:8px;padding:10px 14px!important}
 body.signed header>div:first-child{min-width:0;padding-right:76px;font-size:12px;overflow-wrap:anywhere}
 body.signed .cloud-controls{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto;width:100%;min-width:0;gap:7px!important;align-items:center}
 body.signed .cloud-controls small{min-width:0;max-width:none!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;margin:0!important}
 body.signed .cloud-controls button{padding:7px 9px!important;min-height:40px!important;white-space:nowrap;font-size:12px}
 body:is([data-business-role=china_driver],[data-business-role=japan_driver],[data-business-role=courier]) header>div:first-child{min-height:36px}
 body.signed #languageSwitch{position:absolute!important;top:12px!important;bottom:auto!important;right:14px!important}
 body.signed .sidebar .brand{padding-right:80px}
 body.signed .bundle-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 body.signed .bundle-filters input{width:100%;min-width:0;margin:0}
 body.signed .bundle-filters input:first-child,body.signed .bundle-filters input[type=date]{grid-column:1/-1}
 body.signed .bundle-select-tools{gap:8px;align-items:center;flex-wrap:wrap}
 body.signed .bundle-select-tools button{font-size:12px}
 body.signed .bundle-list{grid-template-columns:minmax(0,1fr)}
 body.signed .bundle-tabs button{min-width:0;padding:8px 4px;font-size:12px}
 body.signed .bundle-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 body.signed .bundle-actions button{min-width:0;font-size:12px}
 body.signed .bundle-actions .primary{grid-column:1/-1}
 body.signed .bundle-selection-summary{position:static;box-shadow:none}
 body.signed .bundle-order{min-height:56px;padding:10px}
 body.signed .bundle-order input{width:20px;height:20px}
 body.signed .driver-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
 body.signed .driver-tabs button{min-width:0;min-height:44px;padding:8px 3px;font-size:12px}
 body.signed .driver-search{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px;margin:8px 0 12px}
 body.signed .driver-search input{width:100%;margin:0}
 body.signed .driver-expanded-content{padding:10px}
 body.signed .driver-expanded-content :is(p,div){overflow-wrap:anywhere}
 body.signed :is(.cloud-photos,.photo-grid){max-width:100%;min-width:0}
 body.signed .cloud-photos img{max-width:100%;height:auto}
 body.signed dialog{box-sizing:border-box;width:calc(100% - 24px)!important;max-width:520px!important;max-height:calc(100dvh - 24px)!important;overflow:auto;overscroll-behavior:contain;padding:16px!important;border-radius:12px}
 body.signed dialog .dialog-title{gap:10px;align-items:center;margin-bottom:12px}
 body.signed dialog .dialog-title h2{font-size:18px;line-height:1.4;min-width:0}
 body.signed dialog .dialog-title button{flex:0 0 44px;width:44px;height:44px;min-height:44px;font-size:22px;padding:0}
 body.signed dialog .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px;margin-top:14px}
 body.signed dialog .fields>label{min-width:0}
 body.signed dialog .fields>.full{grid-column:1/-1}
 body.signed dialog textarea{min-height:76px}
 body.signed dialog button[type=submit]{width:100%;margin-top:12px}
 body.signed dialog :is(svg,video,canvas){max-width:100%}
 body.signed #toast{max-width:calc(100vw - 24px);white-space:normal;overflow-wrap:anywhere;bottom:calc(18px + env(safe-area-inset-bottom))}
 body.signed footer{display:none}
 body[data-business-role=customer]{padding-bottom:calc(84px + env(safe-area-inset-bottom))}
 body[data-business-role=customer] #toast{bottom:calc(90px + env(safe-area-inset-bottom))}
 body[data-business-role=customer] .form-bottom small{max-width:none}
 body[data-business-role=customer] .steps{scroll-snap-type:x proximity}
 body[data-business-role=customer] .step{scroll-snap-align:center}
 body[data-business-role$=driver] .content,body[data-business-role=courier] .content{padding:12px 8px 20px}
}
@media screen and (max-width:360px){
 body.signed dialog .fields{grid-template-columns:minmax(0,1fr)!important}
 body.signed .driver-tabs button{font-size:11px}
 body.signed .bundle-card-head{flex-wrap:wrap}
}
