/* 所有产品布局覆盖仅在脚本成功挂载且宽度不超过 760px 时生效。 */
.am-bottom-nav,.am-reg-view,.am-top-menu,.am-overlay{display:none;}
@media (max-width:760px){
  html.ui-mobile-ready{font-size:15px;scroll-padding-bottom:96px;}
  html.ui-mobile-ready body{font-size:15px;line-height:1.5;zoom:1;}
  html.ui-mobile-ready.ui-mobile-logged-in body{padding-bottom:calc(84px + env(safe-area-inset-bottom,0px));}
  html.ui-mobile-ready.ui-mobile-sheet-open{overflow:hidden;}
  html.ui-mobile-ready #mainContainer{width:100%;max-width:100%;margin:0 auto;padding:12px;box-sizing:border-box;min-width:0;}
  html.ui-mobile-ready #mainContainer > .tab-nav{display:none!important;}
  html.ui-mobile-ready #mainTopbar{flex-wrap:wrap;gap:10px;padding:14px 12px;box-sizing:border-box;}
  html.ui-mobile-ready #mainTopbar h1{font-size:18px;line-height:1.5;flex:1;min-width:0;overflow-wrap:anywhere;margin:0;}
  html.ui-mobile-ready #roleBadge{display:inline-block;font-size:14px!important;max-width:100%;box-sizing:border-box;white-space:normal;}
  html.ui-mobile-ready #mainTopbar > #filterRegion{flex:0 0 100%;width:100%;min-height:44px;min-width:0;font-size:16px!important;}
  html.ui-mobile-ready .am-top-menu{display:block;flex:none;min-height:44px;padding:8px 12px;font-size:14px;border:1px solid #cbd7e6;border-radius:10px;color:#123b67;background:#fff;}
  html.ui-mobile-ready .am-bottom-nav{display:grid;grid-template-columns:repeat(var(--am-nav-count,4),minmax(0,1fr));position:fixed;inset:auto 0 0;z-index:900;gap:4px;background:#fff;border-top:1px solid #dbe3ef;padding:8px 8px calc(8px + env(safe-area-inset-bottom,0px));box-shadow:0 -4px 20px #0f172a0a;}
  html.ui-mobile-ready .am-bottom-nav button{background:transparent;border:0;color:#475569;border-radius:10px;min-width:0;font-size:14px;font-weight:600;padding:10px 2px;min-height:48px;line-height:1.4;}
  html.ui-mobile-ready .am-bottom-nav .is-active{color:#1d4ed8;background:#edf3ff;box-shadow:inset 0 -3px #1d4ed8;}
  html.ui-mobile-ready .am-event-selector{padding:12px!important;gap:8px!important;margin-top:4px!important;min-width:0;}
  html.ui-mobile-ready #globalEvent,html.ui-mobile-ready #archEventSelect{flex:0 0 100%;width:100%;max-width:100%!important;min-width:0!important;font-size:16px!important;min-height:48px;box-sizing:border-box;}
  html.ui-mobile-ready #globalEventInfo,html.ui-mobile-ready #archEventInfo{flex-basis:100%;overflow-wrap:anywhere;}
  html.ui-mobile-ready .am-subnav{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px!important;border:0!important;padding:6px 0;}
  html.ui-mobile-ready #archSubNav[style*="display:none"],html.ui-mobile-ready #archSubNav[style*="display: none"]{display:none!important;}
  html.ui-mobile-ready .am-subnav .sub-tab{margin:0!important;padding:10px 4px!important;min-height:46px;border:1px solid #e2e8f0!important;border-radius:10px;background:#fff!important;font-size:14px!important;line-height:1.4;white-space:normal;min-width:0;}
  html.ui-mobile-ready .am-subnav .sub-tab.active{background:#edf3ff!important;color:#1d4ed8!important;border-color:#93b4ff!important;font-weight:700!important;box-shadow:inset 0 -2px #1d4ed8;}
  html.ui-mobile-ready #subPanelStudent .filters{display:flex;flex-wrap:wrap;gap:8px;min-width:0;}
  html.ui-mobile-ready #subPanelStudent .filters > input,html.ui-mobile-ready #subPanelStudent .filters > select{flex:1 1 135px;min-width:0;max-width:100%;min-height:44px;font-size:16px;box-sizing:border-box;}
  html.ui-mobile-ready #searchInput{flex-basis:100%!important;width:100%;}
  html.ui-mobile-ready #subPanelStudent .filters > button{margin-left:0!important;min-height:44px;font-size:14px;padding:8px 10px;white-space:normal;}
  /* 原统计值同时承载住宿/尺码汇总，不能沿用数字用的 nowrap。 */
  html.ui-mobile-ready #subPanelStudent #stats .num{white-space:normal;overflow-wrap:anywhere;min-width:0;}
  html.ui-mobile-ready #subPanelStudent #stats .num[style*="font-size"]{font-size:15px!important;}
  html.ui-mobile-ready #batchBar{padding:12px!important;gap:8px!important;}
  html.ui-mobile-ready #batchBar button{min-height:44px;font-size:14px;white-space:normal;}
  html.ui-mobile-ready .am-reg-view{display:block;min-width:0;}
  html.ui-mobile-ready .am-reg-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:12px 0;}
  html.ui-mobile-ready .am-select-label{display:flex;align-items:center;gap:8px;min-height:44px;font-size:15px;color:#334155;}
  html.ui-mobile-ready .am-count{font-size:14px;color:#64748b;flex:1;}
  html.ui-mobile-ready .am-reg-toolbar > button{margin-left:auto;}
  html.ui-mobile-ready .am-cards{display:grid;gap:12px;}
  html.ui-mobile-ready .am-card{min-width:0;border:1px solid #e2e8f0;border-radius:16px;padding:16px;background:#fff;box-shadow:0 3px 12px #0f172a04;}
  html.ui-mobile-ready .am-card.is-selected{border-color:#1d4ed8;box-shadow:0 0 0 1px #1d4ed8;}
  html.ui-mobile-ready .am-card-heading{display:flex;align-items:center;gap:10px;}
  html.ui-mobile-ready .am-card h3{font-size:19px;line-height:1.4;color:#0f172a;font-weight:700;flex:1;min-width:70px;margin:0;overflow-wrap:anywhere;}
  html.ui-mobile-ready .am-row-number{flex:none;font-size:14px;color:#64748b;}
  html.ui-mobile-ready .am-card input[type=checkbox],html.ui-mobile-ready .am-select-label input[type=checkbox]{width:24px;height:24px;min-width:24px;flex:none;accent-color:#1d4ed8;margin:0;cursor:pointer;box-shadow:0 0 0 10px transparent;}
  html.ui-mobile-ready .am-company{font-size:15px;font-weight:600;color:#334155;margin:10px 0 4px;white-space:normal;overflow-wrap:anywhere;}
  html.ui-mobile-ready .am-name-note,html.ui-mobile-ready .am-stay{font-size:14px;color:#64748b;margin:6px 0;white-space:normal;overflow-wrap:anywhere;}
  html.ui-mobile-ready .am-phone{display:inline-flex;align-items:center;min-height:44px;font-size:15px;color:#1d4ed8;text-decoration:none;overflow-wrap:anywhere;}
  html.ui-mobile-ready .am-fees{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0;}
  html.ui-mobile-ready .am-fees > div{padding:10px;border-radius:10px;background:#f8fafc;border:1px solid #eef2f6;min-width:0;}
  html.ui-mobile-ready .am-fees dt{font-size:14px;color:#64748b;margin-bottom:4px;}
  html.ui-mobile-ready .am-fees dd{font-size:14px;font-weight:600;color:#334155;margin:0;overflow-wrap:anywhere;white-space:normal;}
  html.ui-mobile-ready .am-fees .is-paid dd{color:#166534;}
  html.ui-mobile-ready .am-fees .is-unpaid dd{color:#9a3412;}
  html.ui-mobile-ready .am-card-actions,html.ui-mobile-ready .am-card-secondary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:12px;}
  html.ui-mobile-ready .am-card-actions .am-button{color:#1d4ed8;background:#edf3ff;border-color:#cbd7e6;}
  html.ui-mobile-ready .am-card-secondary .am-button{border-color:transparent;background:transparent;color:#475569;}
  html.ui-mobile-ready .am-button{min-height:44px;box-sizing:border-box;border:1px solid #dbe3ef;border-radius:10px;background:#fff;color:#334155;padding:10px 12px;font-size:14px;line-height:1.5;cursor:pointer;white-space:normal;overflow-wrap:anywhere;}
  html.ui-mobile-ready .am-button:disabled{opacity:.5;cursor:not-allowed;}
  html.ui-mobile-ready .am-warning{background:#fffbeb;color:#92400e;padding:8px;border-radius:8px;font-size:14px;overflow-wrap:anywhere;}
  html.ui-mobile-ready #ctxMenu{max-width:calc(100vw - 24px);max-height:80dvh;overflow:auto;}
  html.ui-mobile-ready #ctxMenu .ctx-item{min-height:44px;display:flex;align-items:center;font-size:14px;}
  html.ui-mobile-ready .am-empty{padding:32px 14px;background:#fff;border:1px dashed #cbd5e1;border-radius:12px;text-align:center;color:#64748b;font-size:15px;}
  html.ui-mobile-ready .am-reg-table-wrap{width:100%;max-width:100%;min-width:0;overflow-x:auto!important;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
  html.ui-mobile-ready .am-reg-table-wrap.am-cards-mode{display:none!important;}
  html.ui-mobile-ready #regTable th,html.ui-mobile-ready #regTable td{position:static!important;left:auto!important;font-size:14px!important;}
  html.ui-mobile-ready #regTable button,html.ui-mobile-ready #regTable .imp-warn{min-height:44px;font-size:14px!important;}
  html.ui-mobile-ready #regTable .imp-autofix{display:inline-block!important;opacity:1!important;visibility:visible!important;}
  html.ui-mobile-ready .am-overlay{display:flex;position:fixed;inset:0;z-index:10001;background:#0f172a66;align-items:flex-end;justify-content:center;padding:12px 8px 0;box-sizing:border-box;}
  html.ui-mobile-ready .am-sheet{background:#fff;border-radius:20px 20px 0 0;width:100%;max-width:600px;max-height:92vh;max-height:92dvh;display:flex;flex-direction:column;overflow:hidden;box-shadow:0 -12px 60px #0f172a26;}
  html.ui-mobile-ready .am-sheet-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:12px 16px;border-bottom:1px solid #e2e8f0;background:#fff;}
  html.ui-mobile-ready .am-sheet-header h2{font-size:18px;color:#0f172a;margin:0;}
  html.ui-mobile-ready .am-sheet-body{overflow:auto;overscroll-behavior:contain;padding:16px 16px calc(20px + env(safe-area-inset-bottom,0px));min-height:0;display:grid;gap:10px;}
  html.ui-mobile-ready .am-sheet-body .actions{display:grid;gap:10px;min-width:0;}
  html.ui-mobile-ready .am-sheet-body .actions button,html.ui-mobile-ready .am-sheet-body .actions select{font-family:inherit;min-height:48px;width:100%;box-sizing:border-box;border:1px solid #dbe3ef;border-radius:10px;color:#334155;background:#f8fafc;padding:10px;font-size:16px;white-space:normal;}
  html.ui-mobile-ready .am-detail-list{margin:0;min-width:0;}
  html.ui-mobile-ready .am-detail-field{padding:12px 0;border-bottom:1px solid #e2e8f0;}
  html.ui-mobile-ready .am-detail-field dt{font-size:14px;color:#64748b;margin-bottom:6px;}
  html.ui-mobile-ready .am-detail-field dd{margin:0;font-size:15px;color:#0f172a;overflow-wrap:anywhere;white-space:pre-wrap;}
  html.ui-mobile-ready .am-detail-field dd .am-button{display:block;margin-top:8px;width:100%;}
  html.ui-mobile-ready .am-detail-note{font-size:14px;color:#64748b;margin:8px 0;}
  html.ui-mobile-ready .am-sheet :focus-visible,html.ui-mobile-ready .am-reg-view :focus-visible,html.ui-mobile-ready .am-bottom-nav :focus-visible{outline:3px solid #93b4ff;outline-offset:2px;}
  html.ui-mobile-ready .am-overlay[hidden],html.ui-mobile-ready .am-bottom-nav[hidden],html.ui-mobile-ready .am-bottom-nav button[hidden],html.ui-mobile-ready .am-sheet-body button[hidden],html.ui-mobile-ready .am-cards[hidden]{display:none!important;}
}
