.diagnostics-view { display:grid; gap:18px; min-width:0; }
.diag-note { margin:0; color:var(--muted); font-size:.82rem; line-height:1.65; overflow-wrap:anywhere; }
.diag-stats { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.diag-stat { display:grid; align-content:center; gap:9px; padding:21px 16px; text-align:center; }
.diag-stat>span { color:var(--muted); font-size:.8rem; }
.diag-stat>strong { font-size:1.05rem; overflow-wrap:anywhere; }
.diag-stat>strong.is-text-value { font-size:.9rem; font-weight:600; line-height:1.5; }
.diag-toolbar { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; }
.diag-filters { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; align-items:end; }
.diag-field { display:flex; flex-direction:column; gap:6px; min-width:0; }
.diag-field input,.diag-field select { width:100%; min-width:0; }
.diag-field>.cas-select { flex:0 0 auto; width:100%; }
.diag-list-status:empty { display:none; }
.diag-results { min-width:0; }
.diag-table-scroll { border:1px solid var(--line); border-radius:18px; }
.diag-table { width:100%; border-collapse:collapse; min-width:850px; font-size:.81rem; }
.diag-table th { background:#f5f8f1; color:var(--muted); text-align:left; font-size:.75rem; font-weight:700; }
.diag-table th,.diag-table td { padding:13px 12px; border-bottom:1px solid var(--line); vertical-align:top; }
.diag-table th:first-child,.diag-table td:first-child { width:180px; }
.diag-table th:nth-child(4),.diag-table td:nth-child(4) { min-width:200px; }
.diag-table td p { margin:5px 0 0; overflow-wrap:anywhere; }
.diag-table td strong { overflow-wrap:anywhere; }
.diag-table td .button { white-space:normal; overflow-wrap:anywhere; }
.diag-table tbody>tr:not(.diag-detail-row):hover { background:#fbfcf9; }
.diag-detail-row>td { padding:20px; background:#f8faf5; }
.diag-detail-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:0 0 18px; }
.diag-detail-grid>div { display:grid; gap:5px; text-align:center; }
.diag-detail-grid dt { font-size:.75rem; color:var(--muted); }
.diag-detail-grid dd { margin:0; font-size:.82rem; overflow-wrap:anywhere; }
.diag-context { white-space:pre-wrap; overflow-wrap:anywhere; font-size:.76rem; line-height:1.6; border:1px solid var(--line); background:white; padding:14px; border-radius:12px; }
.diag-pagination>.diag-field { flex-direction:row; align-items:center; gap:9px; }
.diag-pagination>.diag-field>.cas-select { width:90px; flex:0 0 90px; }
.diag-retention { display:grid; gap:14px; padding:24px; }
.diag-retention h2 { font-size:1.1rem; }
.diag-retention-form { display:flex; align-items:flex-end; flex-wrap:wrap; gap:12px; }
.diag-retention-form>.diag-field { flex:1 1 320px; }
.diag-retention-form>.button { min-height:40px; }
.diag-danger-button { color:#883c32; border-color:#dbb8b1; background:#fff8f6; }
.diag-danger-button:hover:not(:disabled) { color:#762f27; border-color:#b37a70; background:#fff0eb; }
.diag-purge-dialog { max-width:680px; }
.diag-purge-result { display:grid; gap:14px; }
.diag-purge-result:empty { display:none; }
.diag-purge-result>.button { justify-self:start; white-space:normal; }
.diag-confirm { display:flex; gap:11px; align-items:flex-start; font-size:.82rem; line-height:1.6; }
.diag-confirm>input { flex:0 0 18px; width:18px; height:18px; margin-top:3px; }
.diag-filter-summary { font-size:.8rem; line-height:1.6; overflow-wrap:anywhere; }
@media(max-width:1100px) { .diag-filters { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .diag-stats { grid-template-columns:1fr; } .diag-filters { grid-template-columns:1fr; } .diag-toolbar { justify-content:flex-start; } .diag-retention { padding:18px; } .diag-retention-form>.button { width:100%; white-space:normal; } .diag-detail-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
