/*
 * View 样式：customer mobile style。
 * 源码：frontend/src/views/styles/009-customer-mobile-style.css
 * 依赖：页面 DOM 的既有 class/id；加载位置由 frontend/src/modules.json 决定。
 * 维护：保留选择器作用域及层叠顺序；修改后构建并检查桌面/手机布局。
 */
@media(max-width:600px){
 body:not(.signed){padding-bottom:0}
 body:not(.signed) #auth-screen{min-height:100svh}
 body:not(.signed) #languageSwitch{top:12px;right:12px;bottom:auto}
 #auth-screen .auth-story{padding:20px 18px}
 #auth-screen .auth-story .brand{padding-right:90px;font-size:15px}
 #auth-screen .auth-story h1{font-size:23px;margin:18px 0 8px;line-height:1.4}
 #auth-screen .auth-story p{font-size:12px}
 #auth-screen .auth-area{padding:24px 18px 36px}
 #auth-screen input{font-size:16px;min-height:46px}
 #auth-screen .primary{min-height:46px}
 body[data-business-role="customer"]{padding-bottom:calc(82px + env(safe-area-inset-bottom));overflow-wrap:anywhere}
 body[data-business-role="customer"] .sidebar{position:static;width:100%;padding:12px 14px;min-height:58px;border-bottom:1px solid var(--line);gap:0}
 body[data-business-role="customer"] .sidebar .brand{font-size:15px;gap:8px;padding-right:80px}
 body[data-business-role="customer"] .sidebar .brand .logo{width:32px;height:32px;font-size:22px;border-radius:9px;line-height:32px}
 body[data-business-role="customer"] .sidebar .brand small{display:none}
 body[data-business-role="customer"] .sidebar nav{position:fixed;left:0;right:0;bottom:0;z-index:40;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;margin:0;padding:6px 8px calc(6px + env(safe-area-inset-bottom));border-top:1px solid var(--line);background:#fff;box-shadow:0 -4px 16px #173f330a;gap:4px}
 body[data-business-role="customer"] nav button{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;min-width:0;min-height:54px;padding:6px;margin:0;font-size:18px;line-height:1.3;text-align:center}
 body[data-business-role="customer"] nav button span{display:block;margin:0;font-size:11px;line-height:1.4}
 body[data-business-role="customer"] nav i{display:none}
 body[data-business-role="customer"] #languageSwitch{position:absolute;top:12px;bottom:auto;right:12px;padding:3px 5px;font-size:10px;max-width:86px}
 body[data-business-role="customer"] #languageSwitch label{display:none}
 body[data-business-role="customer"] #languageSwitch select{font-size:13px;min-height:32px;max-width:76px;padding:3px}
 body[data-business-role="customer"] main{margin:0;min-width:0}
 body[data-business-role="customer"] header{height:auto;min-height:48px;padding:8px 14px}
 body[data-business-role="customer"] header>div:first-child{display:none}
 body[data-business-role="customer"] .cloud-controls{width:100%;justify-content:flex-end;gap:8px;min-width:0}
 body[data-business-role="customer"] .cloud-controls small{flex:1;margin-right:auto;min-width:0;max-width:160px;font-size:11px;white-space:nowrap}
 body[data-business-role="customer"] .cloud-controls button{flex:none;min-height:36px;padding:7px 10px;font-size:11px}
 body[data-business-role="customer"] .content{padding:18px 12px 22px;max-width:100%;min-width:0}
 body[data-business-role="customer"] .page-heading{margin-bottom:16px;gap:8px;align-items:flex-start}
 body[data-business-role="customer"] h1{font-size:23px;line-height:1.35;letter-spacing:0}
 body[data-business-role="customer"] .page-heading p{font-size:12px;line-height:1.5}
 body[data-business-role="customer"] .page-heading #saveDraft{min-height:38px;padding:7px 10px;margin-top:6px;font-size:11px}
 body[data-business-role="customer"] .panel,body[data-business-role="customer"] #orderForm.compact-order{padding:16px 14px;min-width:0;border-radius:10px}
 body[data-business-role="customer"] .layout{gap:14px;min-width:0}
 body[data-business-role="customer"] .steps{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 6px;padding:12px;margin-bottom:14px;overflow:visible}
 body[data-business-role="customer"] .steps .step{min-width:0;gap:5px;font-size:10px;line-height:1.4;white-space:normal}
 body[data-business-role="customer"] .step b{width:23px;height:23px;font-size:10px}
 body[data-business-role="customer"] .fields{grid-template-columns:1fr;gap:12px;margin-top:16px}
 body[data-business-role="customer"] label{min-width:0;font-size:12px}
 body[data-business-role="customer"] input:not([type=checkbox]):not([type=radio]),body[data-business-role="customer"] select,body[data-business-role="customer"] textarea{font-size:16px;max-width:100%;min-width:0}
 body[data-business-role="customer"] #orderForm input:not([type=checkbox]):not([type=radio]),body[data-business-role="customer"] #orderForm select{min-height:44px;padding:9px 10px}
 body[data-business-role="customer"] .primary,body[data-business-role="customer"] .secondary,body[data-business-role="customer"] .new-address{min-height:44px}
 body[data-business-role="customer"] .intro{margin-bottom:14px;line-height:1.55}
 body[data-business-role="customer"] .address-card{padding:14px}
 body[data-business-role="customer"] .address-card h3{font-size:14px;overflow-wrap:anywhere}
 body[data-business-role="customer"] .address-card .id{font-size:10px;overflow-wrap:anywhere;letter-spacing:0}
 body[data-business-role="customer"] .address-card .contact{display:flex;gap:6px 14px;flex-wrap:wrap;font-size:12px}
 body[data-business-role="customer"] .contact span{margin:0}
 body[data-business-role="customer"] #orderForm .cargo{padding:12px 10px;margin:12px 0}
 body[data-business-role="customer"] #orderForm .cargo .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 10px}
 body[data-business-role="customer"] #orderForm .cargo .fields>label:first-child,body[data-business-role="customer"] #orderForm .cargo .fields>.full{grid-column:1/-1}
 body[data-business-role="customer"] #orderForm .cargo .fields>label:nth-child(6){grid-column:1/-1;display:flex;align-items:center;justify-content:space-between}
 body[data-business-role="customer"] #orderForm .cargo textarea{min-height:70px;height:70px}
 body[data-business-role="customer"] #orderForm [data-save-preset]{font-size:12px;padding:8px 12px}
 body[data-business-role="customer"] #orderForm .form-bottom{flex-direction:column;align-items:stretch;gap:10px;margin-top:18px;padding-top:14px}
 body[data-business-role="customer"] .form-bottom .buttons{display:flex;gap:10px;width:100%}
 body[data-business-role="customer"] .form-bottom button{flex:1;min-height:46px;font-size:14px;padding:10px}
 body[data-business-role="customer"] .form-bottom small{order:2;max-width:none;text-align:center;font-size:10px}
 body[data-business-role="customer"] .review-grid{grid-template-columns:minmax(0,1fr);gap:0}
 body[data-business-role="customer"] .review-grid .review-group{grid-column:auto;padding:12px 0}
 body[data-business-role="customer"] .review-group p{overflow-wrap:anywhere;font-size:12px}
 body[data-business-role="customer"] .list-order{padding:14px;margin-top:12px}
 body[data-business-role="customer"] .list-order .tag{float:none;display:inline-block;margin:0 0 7px;font-size:10px}
 body[data-business-role="customer"] .list-order strong{display:block;font-size:14px;overflow-wrap:anywhere}
 body[data-business-role="customer"] .list-order p{font-size:12px;line-height:1.65;margin:8px 0}
 body[data-business-role="customer"] .list-order pre{overflow-wrap:anywhere}
 body[data-business-role="customer"] .list-order details .secondary{display:block;width:100%;margin-top:8px}
 body[data-business-role="customer"] .order-date-filter{padding:12px;margin:14px 0}
 body[data-business-role="customer"] .date-filter-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 body[data-business-role="customer"] .date-filter-fields label{grid-column:1/-1;min-width:0}
 body[data-business-role="customer"] .date-filter-fields input{min-height:44px}
 body[data-business-role="customer"] .date-filter-fields button{padding:8px;min-height:42px}
 body[data-business-role="customer"] dialog{width:calc(100% - 24px);max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:18px;overflow:auto}
 body[data-business-role="customer"] dialog input:not([type=checkbox]):not([type=radio]){min-height:44px}
 body[data-business-role="customer"] dialog .primary{width:100%}
 body[data-business-role="customer"] footer{display:none}
 body[data-business-role="customer"] #toast{bottom:calc(88px + env(safe-area-inset-bottom));max-width:calc(100vw - 28px)}
}
