/* Alerts pagination owns its geometry independently of the shared shell. */
.alert-pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; max-width: 1400px; margin: 8px auto; color: var(--muted); font-size:14px; font-variant-numeric: tabular-nums; scroll-margin-top: 100px; }
.alert-pagination label { display: flex; align-items: center; gap: 6px; }
.alert-pagination select { min-height: 34px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); color: var(--text); font: inherit; padding: 4px 8px; color-scheme: dark; }
.alert-pagination [data-alert-page-summary] { margin-right: auto; }
.alert-filter-controls .filter-chip span { display: inline-block; min-width: 3ch; font-variant-numeric: tabular-nums; }
.alert-pagination:has([data-alert-page-step="-1"]:disabled):has([data-alert-page-step="1"]:disabled) [data-alert-page-step] { visibility:hidden; }
@media (max-width: 900px) {
    .alert-pagination { font-size:14px; gap: 6px; }
    .alert-pagination [data-alert-page-summary] { flex: 1 1 auto; text-align: right; }
    .alert-pagination .compact-btn, .alert-pagination select { min-height: 40px; }
}
/* Unknown result counts use one stable region, never invented alert cards. */
#alert-list { min-height: 260px; align-content: start; }
#alert-list > .ui-loading-message, #alert-list > .alerts-empty { min-height: 260px; }
.alerts-page .alert-snapshot { position: relative; aspect-ratio: 16 / 9; min-height: 0; }
.alerts-page .alert-snapshot img { position: absolute; inset: 0; min-height: 0; width: 100%; height: 100%; }
.alerts-page .alert-snapshot img:not([src]) { visibility: hidden; }


.alert-action-label {display:none;}
.alert-actions .compact-btn {gap:6px;}
.alert-actions .ui-glyph {width:18px;height:18px;}
.alert-visit {display:flex;flex-wrap:wrap;gap:4px 16px;margin:0;color:var(--muted);font-size:14px;font-variant-numeric:tabular-nums;}
.alert-visit strong {font-weight:500;color:var(--text);}
@media(min-width:901px) {
 .alerts-page :is(.alert-filters,.alert-pagination,.alert-bulk-toolbar,.alert-list) {max-width:1040px;box-sizing:border-box;}
 .alerts-page .alert-card {grid-template-columns:minmax(260px,40%) minmax(0,1fr);}
 /* Keep state beside its actions, with one aligned picture/content column. */
 .alerts-page .alert-copy {display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto auto 1fr auto;gap:8px 16px;}
 .alerts-page .alert-copy header {display:contents;}
 .alerts-page .alert-copy h3 {grid-column:1 / -1;grid-row:1;}
 .alerts-page .alert-meta {grid-column:1 / -1;grid-row:2;}
 .alerts-page .alert-visit {grid-column:1 / -1;grid-row:3;}
 .alerts-page .alert-note {grid-column:1 / -1;grid-row:4;}
 .alerts-page .alert-actions {grid-column:1;grid-row:5;margin:0;}
 .alerts-page .alert-state {grid-column:2;grid-row:5;align-self:center;justify-self:start;white-space:nowrap;}
 .alerts-page .alert-filter-controls .filter-chip,.alerts-page .compact-btn,.alerts-page .alert-pagination {font-size:16px;min-height:44px;}
 .alerts-page .alert-state {font-size:15px;letter-spacing:0;text-transform:none;padding:6px 10px;}
 .alerts-page .alert-actions {gap:8px;}
 .alerts-page .alert-actions .icon-btn {width:auto;min-height:44px;padding:8px 12px;display:inline-flex;align-items:center;gap:8px;font-size:16px;}
 .alerts-page .alert-action-label {display:inline;}
 .alerts-page .alert-meta,.alerts-page .alert-time,.alerts-page .alert-pagination select {font-size:15px;}
}
