/* Record lists only. Existing compact home/work/task rows, month pickers,
   attachments and professional input forms deliberately keep their dimensions. */
/* A system result is a readable two-line summary, with the existing result
   colors and full-card navigation retained. */
body.mobile-ui-active :is(.ia-system-summary,.as-system-summary){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:3px 6px;padding:8px 10px!important;border-radius:9px;}
body.mobile-ui-active :is(.ia-system-summary,.as-system-summary)>strong{grid-column:1;grid-row:1;margin:0!important;font-size:14px;line-height:20px;}
body.mobile-ui-active :is(.ia-system-summary,.as-system-summary)>span{grid-column:1/-1;grid-row:2;min-width:0;line-height:17px;}
body.mobile-ui-active :is(.ia-system-summary,.as-system-summary)>b{grid-column:2;grid-row:1;margin:0!important;white-space:nowrap;font-size:12px;line-height:18px;}

body.mobile-ui-active .task-detail-history .task-history-item{padding:8px 10px;border-radius:9px;margin-bottom:7px;}
body.mobile-ui-active .task-detail-history .task-history-head{flex-direction:row;flex-wrap:nowrap;gap:6px;margin-bottom:3px;}
body.mobile-ui-active .task-detail-history .task-history-head>div{min-width:0;}
body.mobile-ui-active .task-detail-history .task-history-index{font-size:14px;line-height:20px;margin-bottom:3px;}
body.mobile-ui-active .task-detail-history .task-history-meta{font-size:11px;line-height:16px;gap:3px 8px;}
body.mobile-ui-active .task-detail-history .task-history-head>.badge{flex:none;padding:0;border:0;background:transparent;font-size:11px;line-height:16px;}
body.mobile-ui-active .task-detail-history .task-history-grid{grid-template-columns:minmax(0,1fr);gap:3px;font-size:12px;line-height:17px;overflow-wrap:anywhere;}
body.mobile-ui-active .task-detail-history .task-history-grid strong{font-size:12px;}

body.mobile-ui-active .ca-catalog-list{gap:7px;}
body.mobile-ui-active .ca-catalog-row .ca-group-head{display:grid;grid-template-columns:minmax(0,1fr) auto;padding:8px 10px;gap:3px;}
body.mobile-ui-active .ca-catalog-row .ca-group-head>div:first-child{grid-column:1/-1;}
body.mobile-ui-active .ca-catalog-row .ca-catalog-link{min-height:0;font-size:14px;line-height:20px;}
body.mobile-ui-active .ca-catalog-row .ca-group-head h3{margin-bottom:3px;line-height:20px;}
body.mobile-ui-active .ca-catalog-row .ca-group-head small{font-size:12px;line-height:17px;}
body.mobile-ui-active .ca-catalog-row .ca-catalog-summary{display:contents;font-size:12px;line-height:17px;}
body.mobile-ui-active .ca-catalog-row .ca-catalog-reminders{grid-column:1/-1;}
body.mobile-ui-active .ca-catalog-row .ca-group-head button:not(.ca-catalog-link){min-height:32px;padding:5px 6px;font-size:12px;line-height:18px;}
body.mobile-ui-active .ca-catalog-row .ca-group-head>button{margin-left:auto;border-color:transparent;background:transparent;}
body.mobile-ui-active :is(.ca-workspace,.ca-modal) tr.mobile-execution-data-card{padding:8px 10px;gap:3px 10px;margin:7px 0;}
body.mobile-ui-active :is(.ca-workspace,.ca-modal) tr.mobile-execution-data-card>td{font-size:12px;line-height:17px;}
body.mobile-ui-active :is(.ca-workspace,.ca-modal) tr.mobile-execution-data-card>td::before{display:inline;margin-right:5px;line-height:16px;}
body.mobile-ui-active :is(.ca-workspace,.ca-modal) tr.mobile-execution-data-card>td:first-child{font-size:14px;line-height:20px;}
body.mobile-ui-active :is(.ca-workspace,.ca-modal) tr.mobile-execution-data-card>td:last-child:has(button){text-align:right;}
body.mobile-ui-active :is(.ca-workspace,.ca-modal) tr.mobile-execution-data-card :is(button,summary){min-height:32px;font-size:12px;line-height:18px;}
body.mobile-ui-active :is(.ca-workspace,.ca-modal) tr.mobile-execution-data-card small{font-size:11px;line-height:16px;margin-top:3px;}
body.mobile-ui-active :is(.ca-workspace,.ca-modal) tr.mobile-execution-data-card .ca-row-actions{justify-content:flex-end;}
body.mobile-ui-active tr.mobile-execution-data-card .ca-row-more{position:relative;}
body.mobile-ui-active tr.mobile-execution-data-card .ca-row-more>div{position:absolute;top:calc(100% + 4px);right:0;bottom:auto;min-width:120px;max-width:min(240px,70vw);z-index:6;}
body.mobile-ui-active tr.mobile-execution-data-card .ca-row-more.ca-menu-up>div{top:auto;bottom:calc(100% + 4px);}
body.mobile-ui-active .ca-detail-overlay tr.mobile-execution-data-card>td:first-child :is(strong,.cal-position-label){font-size:14px;line-height:20px;}

body.mobile-ui-active .activity-panel #logRows>tr[data-row-id]{padding:8px 10px;gap:3px 8px;border-radius:9px;}
body.mobile-ui-active .activity-panel #logRows>tr[data-row-id]>td{line-height:17px;}
body.mobile-ui-active .activity-panel #logRows>tr[data-row-id]>td:first-child{line-height:16px;}
body.mobile-ui-active .activity-panel #logRows .activity-event-heading strong{font-size:14px;line-height:20px;}
body.mobile-ui-active .activity-panel #logRows .activity-content{font-size:12px;line-height:17px;}
body.mobile-ui-active .activity-panel #logRows>tr[data-row-id] button{min-height:32px;padding:5px 6px;font-size:12px;line-height:18px;border-color:transparent;background:transparent;}

/* Second pass: only records taller than 120px receive these structures.
   Short existing rows and table cells stay in their original positions. */
body.mobile-ui-active .ed-original-empty{display:none!important;}
body.mobile-ui-active .ed-task-top{display:flex;align-items:baseline;justify-content:space-between;gap:6px;}
body.mobile-ui-active .ed-task-top>span{font-size:11px;line-height:16px;color:#657991;}
body.mobile-ui-active .ed-task-top .task-history-index{margin:0;}
/* Pair each original filename with its thumbnail without resizing the thumbnail or moving its DOM. */
body.mobile-ui-active .task-detail-history .ed-task-attachment-pairs{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 8px;margin-top:6px;align-items:center;}
body.mobile-ui-active .task-detail-history .ed-task-attachment-pairs>:is(.voucher-thumbs,.ed-task-file-names){display:contents;}
body.mobile-ui-active .task-detail-history .ed-task-attachment-pairs .voucher-thumb-link{grid-column:1;grid-row:var(--task-file-row);justify-self:start;align-self:start;}
body.mobile-ui-active .task-detail-history .ed-task-file-names>a{grid-column:2;grid-row:var(--task-file-row);display:block;min-width:0;margin:0;padding:0;white-space:normal;overflow-wrap:anywhere;font-size:12px;line-height:18px;}
body.mobile-ui-active .task-detail-history .ed-task-file-names>a.ed-task-file-only{grid-column:1/-1;}
body.mobile-ui-active .ed-task-facts{display:flex;align-items:baseline;gap:3px 8px;flex-wrap:wrap;font-size:11px;line-height:16px;margin:3px 0;}
body.mobile-ui-active .ed-task-facts strong{font-size:11px;font-weight:400;}
body.mobile-ui-active .ed-task-facts>.ed-record-details{display:contents;}
body.mobile-ui-active .ed-task-facts>.ed-record-details>summary{margin-left:auto;min-height:28px;}
body.mobile-ui-active .ed-task-facts>.ed-record-details>.ed-record-details-body{flex-basis:100%;}
body.mobile-ui-active .ed-record-details{margin:3px 0 0;padding:0;border:0;}
body.mobile-ui-active .ed-record-details>summary{font-size:12px;line-height:18px;min-height:28px;padding:0;display:flex;align-items:center;gap:5px;cursor:pointer;color:#42617e;list-style:none;}
body.mobile-ui-active .ed-record-details>summary::after{content:'⌄';font-size:12px;}
body.mobile-ui-active .ed-record-details[open]>summary::after{content:'⌃';}
body.mobile-ui-active .ed-record-details-body{font-size:12px;line-height:17px;display:flex;flex-wrap:wrap;gap:3px 9px;padding:3px 0;}
body.mobile-ui-active .ed-record-details:not([open])>.ed-record-details-body{display:none!important;}
body.mobile-ui-active .ed-record-details-body>div{flex-basis:100%;}
body.mobile-ui-active .ed-record-details-body .badge{padding:0;border:0;background:transparent;font-size:11px;line-height:16px;}
body.mobile-ui-active .ed-asset-catalog .ca-catalog-count{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 4px;}
body.mobile-ui-active .ed-asset-catalog .ca-catalog-count>small{flex-basis:100%;}
body.mobile-ui-active :is(.ed-asset-summary,.ed-asset-distribution,.ed-asset-position):not(.ed-record-expanded)>.ed-record-extra{display:none!important;}
body.mobile-ui-active :is(.ed-asset-summary,.ed-asset-distribution,.ed-asset-position)>.ed-record-extra{order:40;}
body.mobile-ui-active :is(.ed-asset-summary,.ed-asset-distribution,.ed-asset-position)>.ed-record-actions{order:50;}
body.mobile-ui-active tr.mobile-execution-data-card.ed-asset-summary>td:first-child::before,
body.mobile-ui-active tr.mobile-execution-data-card.ed-asset-position>td:first-child::before{display:none;}
body.mobile-ui-active tr.mobile-execution-data-card:is(.ed-asset-summary,.ed-asset-distribution) .ca-name-link{min-height:20px;padding:0;font-size:14px;line-height:20px;}
body.mobile-ui-active tr.ed-asset-summary>td:nth-child(3) small{display:inline;margin:0 0 0 5px;}
body.mobile-ui-active tr.ed-asset-summary>td:nth-child(5) .ca-status-set{display:inline-flex;}
body.mobile-ui-active tr.ed-asset-summary>td:nth-child(6),
body.mobile-ui-active tr.ed-asset-distribution>td:nth-child(2),
body.mobile-ui-active tr.ed-asset-distribution>td:nth-child(9){grid-column:1/-1;}
body.mobile-ui-active tr.ed-asset-distribution>td:nth-child(6) small{display:inline-flex;margin:0 0 0 5px;}
body.mobile-ui-active tr.mobile-execution-data-card .ed-record-toggle{border:0;background:transparent;color:#42617e;padding:5px 4px;}
body.mobile-ui-active .ed-record-actions>:is(button,.ca-row-actions,.cal-actions){vertical-align:middle;}
body.mobile-ui-active tr.ed-asset-distribution .ca-row-actions>.ed-deadline-date{margin:0 auto 0 0;white-space:nowrap;font-size:11px;line-height:16px;}
body.mobile-ui-active tr.ed-asset-distribution .ca-row-actions{align-items:center;}
body.mobile-ui-active .ed-asset-note .ca-distribution-note>summary{min-height:28px;display:flex;align-items:center;justify-content:flex-end;}
body.mobile-ui-active .ed-asset-note .ca-distribution-note:not([open]) .ca-note-preview{display:none;}
body.mobile-ui-active .ed-asset-note .ca-distribution-note:not([open]) .ca-note-open::before{content:'备注 · ';}
body.mobile-ui-active .activity-panel #logRows>tr.ed-project-event>td:nth-child(3){order:0;display:flex;flex-direction:column;gap:3px;}
body.mobile-ui-active .ed-project-event .ed-log-heading{order:-1;display:flex;align-items:baseline;gap:6px;}
body.mobile-ui-active .ed-log-heading .activity-event-heading{min-width:0;flex:1;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 6px;}
body.mobile-ui-active .ed-log-heading .activity-event-heading>span{font-size:11px;line-height:16px;color:#657991;}
body.mobile-ui-active .activity-panel #logRows>tr.ed-project-event>td:nth-child(2){order:1;}
body.mobile-ui-active .activity-panel #logRows>tr.ed-project-event>td:first-child{order:2;display:flex;align-items:center;flex-wrap:wrap;gap:0 8px;}
body.mobile-ui-active .ed-project-event .ed-log-meta{flex:1;min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:0 7px;font-size:11px;line-height:16px;}
body.mobile-ui-active .ed-project-event .ed-log-meta>.activity-sub{display:inline;margin:0;font-size:11px;line-height:16px;}
body.mobile-ui-active .ed-project-event .ed-log-actions{flex:none;display:flex;align-items:center;gap:4px;margin-left:auto;}
body.mobile-ui-active .activity-panel #logRows>tr.ed-project-event .ed-log-actions>button{width:auto;min-height:28px;margin:-4px 0;padding:5px 4px;}
body.mobile-ui-active .ed-project-event .ed-log-source{display:contents;}
body.mobile-ui-active .ed-project-event .ed-log-source>.activity-sub{display:inline;margin:0;font-size:11px;line-height:16px;overflow-wrap:anywhere;}
body.mobile-ui-active .ed-project-event .ed-log-source>[data-activity-source-error]{flex-basis:100%;}
body.mobile-ui-active .ed-project-event .ed-record-details{margin:0;}
body.mobile-ui-active .ed-project-event .ed-record-details>summary{min-height:0;padding:0;align-items:baseline;font-size:12px;line-height:17px;}
body.mobile-ui-active .ed-project-event .ed-record-details>summary>strong{font-size:12px;line-height:17px;font-weight:400;}
body.mobile-ui-active .ed-project-event .ed-log-meta>.ed-record-details{display:contents;}
body.mobile-ui-active .ed-project-event .ed-log-meta>.ed-record-details>summary{min-height:24px;font-size:11px;line-height:16px;}
body.mobile-ui-active .ed-project-event .ed-log-meta>.ed-record-details>.ed-record-details-body{flex-basis:100%;}
body.mobile-ui-active .ed-project-event .ed-record-details-body .activity-sub{display:inline;margin:0;}
body.mobile-ui-active .ed-project-event .ed-record-details-body[data-fixed-row-menu]{position:static!important;inset:auto!important;width:100%!important;min-width:0!important;max-width:none!important;max-height:none!important;display:flex;flex-direction:column;gap:3px;padding:5px 0;margin:0;border:0;box-shadow:none;background:transparent;overflow:visible;}
body.mobile-ui-active .ed-project-event .activity-content{margin:0;}
body.mobile-ui-active .activity-panel #logRows>tr.ed-project-event>td:nth-child(3)>.activity-sub{margin:0;font-size:12px;line-height:17px;}
body.mobile-ui-active .activity-panel #logRows>tr.ed-project-event button.activity-expand{align-self:flex-start;width:auto;min-height:28px;padding:3px 0;margin:0;font-size:12px;line-height:18px;}
