.mobile-section-categories{display:none}
.mobile-record-tools{display:none}
/* The same table remains available for comparison; cards never clip a field. */
.mobile-layout .mobile-record-grid{min-height:0;max-width:100%;overflow-x:auto}
.mobile-layout .mobile-record-tools{display:flex;gap:6px;align-items:center;flex-wrap:wrap;position:sticky;left:0;padding:8px 0;background:#f5f5f7;width:100%;box-sizing:border-box}
.mobile-layout .mobile-record-tools button{font-size:12px;min-height:40px;padding:8px}
.mobile-layout .mobile-record-grid:not(.mobile-settings-open)>.table-display-controls{display:none}
.mobile-layout .mobile-record-grid:has(.mobile-record-cards) .mobile-auto-fit{display:none}
.mobile-layout table.mobile-record-table td{height:auto;min-height:var(--table-row-height,52px);white-space:normal;overflow-wrap:anywhere}
.mobile-layout table.mobile-record-table:not(.mobile-record-cards) .mobile-identity{position:sticky;left:0;background:#fff;z-index:2;box-shadow:2px 0 4px #0001}
.mobile-layout table.mobile-record-cards,.mobile-layout table.mobile-record-cards.adjustable-table{display:block;width:100%!important;min-width:0!important;max-width:100%}
.mobile-layout .mobile-record-cards colgroup{display:none}
.mobile-layout .mobile-record-cards thead,.mobile-layout .mobile-record-cards thead tr{display:block;border:0;background:transparent}
.mobile-layout .mobile-record-cards thead th{display:none}
.mobile-layout .mobile-record-cards thead th.mobile-selection:not([hidden]){display:flex;align-items:center;gap:8px;padding:10px 4px;width:auto;border:0;background:transparent;min-height:42px}
.mobile-layout .mobile-record-cards thead th.mobile-selection:after{content:'全选当前页';font-size:12px;font-weight:400}
.mobile-layout .mobile-record-cards .column-resize{display:none}
.mobile-layout .mobile-record-cards tbody{display:block}
.mobile-layout .mobile-record-cards tbody>tr{display:flex;flex-direction:column;position:relative;background:#fff!important;border:1px solid #e9e3e8;border-radius:14px;padding:12px;margin:0 0 12px;gap:0}
.mobile-layout .mobile-record-cards tbody>tr>td{display:block;width:auto!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:0;overflow:visible;padding:7px 0;border:0;text-align:left!important;font-size:14px;line-height:1.65;background:transparent!important;white-space:normal!important;overflow-wrap:anywhere}
.mobile-layout .mobile-record-cards tbody>tr>td:before{content:attr(data-mobile-label);display:block;font-size:11px;line-height:1.5;color:#8a7c84;margin-bottom:2px;font-weight:400}
.mobile-layout .mobile-record-cards tbody>tr>td.mobile-identity{order:-1;font-weight:650;font-size:16px;padding-right:30px;border-bottom:1px solid #f2edf0;padding-bottom:10px;margin-bottom:2px}
.mobile-layout .mobile-record-cards tbody>tr>td.mobile-selection{position:absolute;top:12px;right:12px;padding:0;min-height:32px}
.mobile-layout .mobile-record-cards tbody>tr>td.mobile-selection:before,.mobile-layout .mobile-record-cards tbody>tr>td.mobile-empty:before{display:none}
.mobile-layout .mobile-record-cards td[hidden],.mobile-layout .mobile-record-cards th[hidden]{display:none!important}
.mobile-layout .mobile-record-cards td button{max-width:100%;height:auto;white-space:normal;font-size:13px;min-height:40px}
.mobile-layout .mobile-record-cards td input:not([type=checkbox]),.mobile-layout .mobile-record-cards td select,.mobile-layout .mobile-record-cards td textarea{width:100%;min-width:0;max-width:100%}
/* Module and activity categories sit above the content, never beside it. */
.mobile-layout body #workspace.mobile-browse-layout:not([hidden]){display:block!important}
.mobile-layout body #workspace.mobile-browse-layout>.table-directory{display:block!important;position:static;border:0;background:#fff;border-radius:14px;max-height:none;overflow:visible;margin:0 0 14px;padding:6px}
.mobile-layout .mobile-browse-layout>.table-directory>details>summary{display:none}
.mobile-layout body .mobile-browse-layout #tabs{padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.mobile-layout body .mobile-browse-layout #tabs button{width:100%;margin:0;font-size:13px;min-height:44px;line-height:1.4;padding:8px 4px;text-align:center;background:transparent;border-radius:9px;min-width:0;flex:none}
.mobile-layout body .mobile-browse-layout #tabs button[aria-selected=true]{color:#95243a;background:#faedf1;font-weight:650}
.mobile-layout .mobile-category-body{display:block}
.mobile-layout .mobile-section-categories{position:static;display:grid;grid-template-columns:repeat(auto-fit,minmax(96px,1fr));gap:6px;margin:0 0 14px;background:#fff;padding:6px;border-radius:12px}
.mobile-layout .mobile-section-categories button{font-size:13px;line-height:1.4;min-height:44px;padding:8px;white-space:normal}
.mobile-layout .mobile-section-categories [aria-current=true]{color:#94213a;background:#faedf1;border:0;font-weight:650}
.mobile-layout .mobile-category-content{min-width:0}
.mobile-layout .mobile-category-inactive{display:none}
.mobile-layout .mobile-category-content .activity-section{margin:0;padding:0;border:0;background:transparent}
.mobile-layout .mobile-category-content .section-heading{display:flex;flex-wrap:wrap;gap:6px;padding:10px 0}
.mobile-layout .mobile-category-content .section-heading h3{font-size:16px;margin:0}
.mobile-layout .mobile-category-content .section-actions{display:flex;flex-wrap:wrap;gap:6px}
.mobile-layout .mobile-category-content .section-actions button{font-size:12px;padding:8px}
.mobile-layout .mobile-browse-layout .toolbar,.mobile-layout .mobile-browse-layout .registration-bar{gap:5px}
.mobile-layout .mobile-browse-layout .toolbar>button,.mobile-layout .mobile-browse-layout .registration-bar>button{font-size:12px;padding:8px;min-height:40px}
.mobile-layout .mobile-browse-layout .searchbar{margin:10px 0;max-width:100%}
.mobile-layout .mobile-browse-layout .record-view-controls{display:flex;flex-wrap:wrap;gap:6px}
.mobile-layout .mobile-browse-layout .record-view-controls select{width:100%;max-width:100%}
.mobile-layout .mobile-browse-layout .record-view-controls button{font-size:12px;padding:6px}
.mobile-layout .mobile-browse-layout .page-path{flex-wrap:wrap}
.mobile-layout .mobile-browse-layout .page-path-items{flex-basis:100%}
.mobile-layout .mobile-more-tools{position:relative;font-size:12px}
.mobile-layout .mobile-more-tools>summary{cursor:pointer;padding:11px 8px;list-style:none;border:1px solid #e8dfe4;border-radius:9px;background:white}
.mobile-layout .mobile-more-tools[open]{display:flex;flex-direction:column;gap:5px;background:#fff;padding:4px;border-radius:10px;width:100%}
.mobile-layout .mobile-more-tools>button{font-size:12px;text-align:left}
.mobile-layout .table-pagination{position:static;font-size:12px}
.mobile-layout .mobile-record-cards tbody>tr>td{padding:6px 0 6px 76px;position:relative;min-height:23px;font-size:13px}
.mobile-layout .mobile-record-cards tbody>tr>td:before{position:absolute;left:0;top:7px;width:68px;font-size:12px;margin:0}
.mobile-layout .mobile-record-cards tbody>tr>td.mobile-identity{padding:3px 30px 10px 0;font-size:16px}
.mobile-layout .mobile-record-cards td.mobile-identity:before{display:none}
.mobile-layout .mobile-record-cards tbody>tr>td.mobile-selection{position:absolute;padding:0;min-height:0}
.mobile-layout .mobile-record-cards tbody>tr>td.mobile-actions,.mobile-layout .mobile-record-cards tbody>tr>td.mobile-empty{padding:8px 0 0}
.mobile-layout .mobile-record-cards td.mobile-actions:before{display:none}
.mobile-layout .mobile-record-cards tr:not(.mobile-expanded)>td.mobile-secondary{display:none}
.mobile-expand{display:none}
.mobile-layout .mobile-record-cards button.mobile-expand{display:block;width:100%;font-size:12px;color:#95243a;background:#fcf4f6;margin-top:8px;font-weight:400}

/* A consistent mobile order: title, primary actions, filters, view tools, records. */
.mobile-layout body .registration-bar,.mobile-layout body #workspace-content>.toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:8px!important;margin:0 0 14px;padding:0}
.mobile-layout body .registration-bar>h2,.mobile-layout body .registration-bar>h3{grid-column:1/-1;width:100%;min-width:0;margin:2px 0 6px!important;font-size:22px;line-height:1.45;overflow-wrap:anywhere}
.mobile-layout body .registration-bar>button,.mobile-layout body #workspace-content>.toolbar>button,.mobile-layout body .registration-bar>.table-edit-toolbar>button,.mobile-layout body .toolbar>.table-edit-toolbar>button{width:100%;height:100%;min-height:44px;margin:0;font-size:13px!important;padding:9px 6px!important;white-space:normal}
.mobile-layout .registration-bar>.table-edit-toolbar,.mobile-layout .toolbar>.table-edit-toolbar{display:contents}
.mobile-layout .table-edit-toolbar>[role=status]{grid-column:1/-1;font-size:12px;line-height:1.6}
.mobile-layout .table-edit-toolbar>[role=status]:empty{display:none}
.mobile-layout .registration-bar>.inline-table-tools,.mobile-layout .toolbar>.inline-table-tools,.mobile-layout .mobile-more-tools{margin:0;min-width:0;align-self:stretch}
.mobile-layout body .mobile-more-tools>summary,.mobile-layout body .inline-table-tools>summary,.mobile-layout body .file-tools>summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;min-height:44px;height:100%;margin:0;padding:9px 6px;font-size:13px;line-height:1.4;list-style:none;border:1px solid #e4e2e7;border-radius:10px;background:#fff;white-space:normal}
.mobile-layout .mobile-more-tools>summary::-webkit-details-marker,.mobile-layout .inline-table-tools>summary::-webkit-details-marker{display:none}
.mobile-layout .mobile-more-tools[open]{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:auto;padding:8px;border:1px solid #e7dfe4}
.mobile-layout .mobile-more-tools[open]>summary{grid-column:1/-1;justify-content:space-between}
.mobile-layout .mobile-more-tools[open]>summary:after{content:'收起';font-size:12px;color:#88717b}
.mobile-layout .mobile-more-tools>button{width:100%;margin:0;min-height:44px;font-size:13px;text-align:center;white-space:normal}
.mobile-layout body .activity-list-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 12px}
.mobile-layout .activity-list-filters input{grid-column:1/-1;width:100%;min-width:0}
.mobile-layout .activity-list-filters select{width:100%;min-width:0}
.mobile-layout body .mobile-record-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 8px;padding:8px 0;align-items:stretch}
.mobile-layout .mobile-record-tools button{min-height:44px;padding:8px 6px;font-size:13px}
.mobile-layout .mobile-record-tools:has(+.mobile-record-cards),.mobile-layout .mobile-record-grid:has(.mobile-record-cards)>.mobile-record-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
.mobile-layout body .activity-heading{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px}
.mobile-layout .activity-heading>strong{font-size:20px;line-height:1.5;flex:1 1 180px;min-width:0}
.mobile-layout .activity-heading>span{font-size:12px;color:#80747b}
.mobile-layout .mobile-category-content .section-heading{display:block;padding:0 0 12px}
.mobile-layout .mobile-category-content .section-heading h3{font-size:18px;margin:0 0 10px}
.mobile-layout .mobile-category-content .section-actions,.mobile-layout .task-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;width:100%}
.mobile-layout body .section-actions button,.mobile-layout body .task-actions button{min-height:44px;margin:0;padding:8px;font-size:13px;white-space:normal}
.mobile-layout body .mobile-record-cards tbody>tr>td.mobile-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;padding-top:12px}
.mobile-layout body .mobile-record-cards td.mobile-actions>button{width:100%;min-height:44px;margin:0!important;padding:8px;font-size:13px}
.mobile-layout body .mobile-record-cards td.mobile-actions>button.mobile-expand{grid-column:1/-1;margin:0}
.mobile-layout body .file-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.mobile-layout body .file-toolbar>h2,.mobile-layout body .file-toolbar>input{grid-column:1/-1;width:100%;margin:0 0 4px}
.mobile-layout body .file-toolbar>button,.mobile-layout body .file-toolbar>.file-link{width:100%;min-height:44px;margin:0;font-size:13px;padding:9px 6px}
.mobile-layout body .file-toolbar>.file-tools{margin:0;width:100%}
.mobile-layout body .file-dialog>.file-toolbar{display:flex}
.mobile-layout body .record-view-controls{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 12px}
.mobile-layout .record-view-controls select{width:100%}
.mobile-layout .record-view-controls>button{flex:1;min-height:44px;font-size:12px;margin:0}
.mobile-layout .record-view-controls>button:disabled{display:none}
.mobile-layout body .table-pagination{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;align-items:center}
.mobile-layout .table-pagination>label,.mobile-layout .table-pagination>span{grid-column:1/-1;margin:0;min-width:0}
.mobile-layout .table-pagination>button{width:100%;min-height:44px;margin:0}
.mobile-layout body dialog footer,.mobile-layout body .activity-create-actions{gap:8px}
.mobile-layout body dialog footer>button,.mobile-layout body .activity-create-actions>button{min-height:46px;margin:0}
.mobile-layout .activity-info{display:flex;flex-wrap:wrap;gap:8px;padding:14px!important}
.mobile-layout .activity-info>.registration-bar,.mobile-layout .activity-info>p,.mobile-layout .activity-info>h2{flex-basis:100%;width:100%;margin:0 0 4px}
.mobile-layout .activity-info>button{flex:1 1 calc(50% - 8px);min-height:44px;font-size:13px;padding:9px 6px;margin:0;white-space:normal}
.mobile-layout .mobile-context-back{display:none!important}
.mobile-layout .mobile-category-body{margin-bottom:14px}
.mobile-layout .activity-info .registration-bar{margin-bottom:4px}
.mobile-layout .mobile-record-grid>.table-display-controls:empty{display:none}
