/* Measure the workspace after the sidebar, rather than the browser width. */
#content{container-type:inline-size;container-name:list-content}
#content .anomaly-workspace{padding:18px!important}
#content .anomaly-workspace .anomaly-heading{margin-bottom:14px}
#content .anomaly-summary{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin-bottom:16px}
#content .anomaly-summary .anomaly-metric{padding:12px 14px;gap:6px}
#content .anomaly-summary strong{font-size:26px;line-height:30px}
#content .anomaly-quick-heading{margin-bottom:8px}
#content .anomaly-tabs{display:flex;flex-wrap:nowrap;gap:8px;margin-bottom:14px;max-width:100%;overflow-x:auto;padding:3px;scrollbar-width:thin}
#content .anomaly-tabs button{flex:0 0 auto;justify-content:center;padding:8px 11px!important;font-size:13px;gap:8px;min-height:40px}
#content .anomaly-tabs button>span{height:22px;line-height:22px;min-width:24px;padding:0 5px}
#content .anomaly-filters{display:grid;grid-template-columns:minmax(150px,210px) minmax(150px,210px) minmax(180px,1fr) auto auto;gap:12px;align-items:end;padding:14px 0;margin:0}
#content .anomaly-filters label{min-width:0;gap:6px}
#content .anomaly-filters :is(input,select){width:100%;min-width:0;height:38px;font-size:13px}
#content .anomaly-filters button{height:38px;min-height:38px;white-space:nowrap}
#content .anomaly-scope{margin:0 0 10px;font-size:12px}
#content .anomaly-workspace footer{font-size:12px;padding-top:12px}
#content .trace-console-page{gap:18px}
#content .trace-panel .rev-panel-header{display:block!important;width:100%;padding:0;margin:0 0 14px;min-height:0;border:0}
#content .trace-panel .rev-title-group{display:block;width:100%;max-width:none;flex:none}
#content .trace-panel .rev-title-group h2{margin:0 0 6px;font-size:18px}
#content .trace-panel .rev-title-group p{display:block;width:100%;max-width:none;margin:0;font-size:12px;line-height:1.6;white-space:normal}
#content #trace-filter{display:grid;grid-template-columns:120px 120px minmax(90px,.8fr) minmax(130px,1fr) 100px minmax(170px,1.4fr) auto;gap:10px;align-items:end;width:100%;padding:14px;margin:0 0 14px;box-sizing:border-box}
#content #trace-filter .filter-field{min-width:0;width:auto;max-width:none;flex:none;gap:6px}
#content #trace-filter .filter-field label{white-space:nowrap}
#content #trace-filter :is(input,select){height:38px;min-width:0;width:100%;padding:6px 8px;box-sizing:border-box}
#content #trace-filter .trace-product-picker{width:100%;min-width:0}
#content #trace-filter .filter-btn-group{display:flex;margin:0;gap:8px;align-self:end}
#content #trace-filter .filter-btn-group button{height:38px;min-height:38px;padding:7px 12px}
#content .list-records-anchor{scroll-margin-top:16px}
#content .list-pagination{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;margin:0;background:none;border:0;width:100%;min-width:0;flex-direction:row}
#content .list-page-summary{font-size:12px;line-height:20px;color:#5c6c62;white-space:nowrap;font-variant-numeric:tabular-nums}
#content .list-page-buttons{display:flex;align-items:center;gap:6px;flex-wrap:nowrap}
#content .list-page-buttons button{height:34px;min-height:34px;min-width:34px;padding:5px 10px!important;border:1px solid #c7d2ca!important;border-radius:5px;background:#fff!important;color:#354a3c!important;box-shadow:none!important;font-size:13px;white-space:nowrap;cursor:pointer;font-variant-numeric:tabular-nums}
#content .list-page-buttons button:hover:not(:disabled){background:#edf3ef!important;border-color:#8ba292!important}
#content .list-page-buttons button[aria-current=page]{background:#293f33!important;border-color:#293f33!important;color:#fff!important}
#content .list-page-buttons button:disabled{color:#97a299!important;background:#f6f8f6!important;border-color:#e4e9e5!important;cursor:not-allowed}
#content .list-page-buttons button:focus-visible{outline:2px solid #739580;outline-offset:2px}
#content .list-page-gap{padding:0 2px;color:#738077}
#content .list-query-note{margin:0;font-size:12px;line-height:1.6;color:#617066}
@container list-content (max-width:1050px){
  #content #trace-filter{grid-template-columns:repeat(4,minmax(0,1fr))}
  #content #trace-filter .filter-field:nth-child(6){grid-column:span 2}
  #content #trace-filter .filter-btn-group{justify-content:flex-end}
}
@container list-content (max-width:760px){
  #content .anomaly-summary{grid-template-columns:repeat(3,minmax(0,1fr))}
  #content .anomaly-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
  #content .anomaly-filters label:nth-child(1),#content .anomaly-filters label:nth-child(2){grid-column:span 2}
  #content .list-pagination{flex-wrap:wrap;gap:8px}
  #content .trace-panel .rev-title-group p{white-space:normal}
}

/* Six desktop columns: product, event, image, cause, linkage, actions. */
#content .anomaly-table{min-width:1120px}
#content .anomaly-table th:nth-child(1){width:160px}
#content .anomaly-table th:nth-child(2){width:157px}
#content .anomaly-table th:nth-child(3){width:144px}
#content .anomaly-table th:nth-child(4){width:25%}
#content .anomaly-table th:nth-child(5){width:auto}
#content .anomaly-table th:nth-child(6){width:150px}
#content .anomaly-product strong{font-size:14px;font-weight:600;line-height:1.6;overflow-wrap:anywhere}
.failed-comparisons .failed-comparison{border-top:1px solid #e9ece9;padding:12px 0;overflow-wrap:anywhere}
.failed-comparisons .failed-comparison small{display:block;color:#68716e;margin-top:4px}
.failed-comparisons .failed-comparison p{margin:6px 0;white-space:pre-wrap}
#content .anomaly-table td{padding:12px;line-height:1.55}
#content .anomaly-table time{white-space:nowrap;font-variant-numeric:tabular-nums}
#content .anomaly-thumbnail{display:flex;align-items:center;justify-content:center;width:128px;height:108px;padding:0!important;border:1px solid #cbd4ce!important;border-radius:4px;background:#f3f5f3!important;color:#56655c!important;box-shadow:none!important;overflow:hidden;cursor:zoom-in}
#content .anomaly-thumbnail img{width:100%;height:100%;object-fit:contain}
#content .anomaly-thumbnail [hidden]{display:none}
#content .anomaly-thumbnail span,.anomaly-no-image{font-size:12px;padding:8px}
#content .anomaly-thumbnail:focus-visible{outline:2px solid #334b40;outline-offset:3px}
#content .anomaly-actions{gap:6px}
#content .anomaly-actions button{white-space:nowrap}

/* Two review lists: omit obsolete line display; keep all data columns accessible. */
#content .consensus-list-head,#content .consensus-row{grid-template-columns:140px minmax(140px,1fr) minmax(160px,1.2fr) minmax(200px,1.5fr) 220px}
#content .trace-console-page .rev-table-fixed{min-width:1220px}
@container list-content (max-width:760px){
 #content .manual-review{grid-template-columns:minmax(0,1fr)}
 #content .manual-review-actions{flex-wrap:wrap;justify-content:flex-start;min-width:0}
 #content .anomaly-filters .anomaly-reason-filter{grid-column:span 2}
}
@container list-content (max-width:500px){
 #content #trace-filter{grid-template-columns:repeat(2,minmax(0,1fr))}
 #content .list-page-buttons{flex-wrap:wrap}
}
