.alert-hero{background:linear-gradient(135deg,#172554,#0f766e);color:#fff;border-radius:18px;padding:22px;margin-bottom:16px}.alert-hero h2{margin:0 0 8px}.alert-status-row,.alert-filter-row,.alert-source-grid{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.alert-chip{padding:7px 11px;border-radius:999px;background:rgba(255,255,255,.16);font-size:.88rem}.alert-filter-row{margin:14px 0}.alert-filter-row input,.alert-filter-row select{padding:10px;border:1px solid #cbd5e1;border-radius:9px;min-width:180px}.alert-filter-row input{flex:1;min-width:240px}.alert-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:14px}.clinical-alert-card{border:1px solid #dbe3ea;border-left:6px solid #64748b;border-radius:14px;padding:15px;background:var(--card-bg,#fff);box-shadow:0 2px 8px rgba(15,23,42,.06)}.clinical-alert-card.critical{border-left-color:#b91c1c}.clinical-alert-card.high{border-left-color:#ea580c}.clinical-alert-card.watch{border-left-color:#ca8a04}.clinical-alert-card.info{border-left-color:#2563eb}.alert-card-top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}.alert-badge{font-size:.75rem;font-weight:700;padding:5px 8px;border-radius:999px;background:#eef2f7}.alert-region{font-size:.78rem;font-weight:700;color:#475569}.clinical-alert-card h3{font-size:1.05rem;margin:10px 0 7px}.clinical-alert-card p{font-size:.92rem}.alert-meta{font-size:.8rem;color:#64748b;margin:8px 0}.alert-actions{display:flex;gap:8px;flex-wrap:wrap}.alert-actions a,.alert-actions button{display:inline-block;padding:8px 10px;border-radius:8px;border:1px solid #cbd5e1;background:#f8fafc;color:#0f172a;text-decoration:none;cursor:pointer}.alert-source-grid{margin:14px 0}.alert-source-tile{flex:1 1 180px;border:1px solid #dbe3ea;border-radius:12px;padding:12px;background:#f8fafc}.alert-source-tile strong{display:block}.alert-source-tile small{display:block;color:#64748b;margin-top:4px}.alert-empty{padding:24px;text-align:center;border:1px dashed #94a3b8;border-radius:12px}.alert-disclaimer{margin-top:16px;padding:12px;border-radius:10px;background:#fff7ed;border:1px solid #fed7aa;font-size:.88rem}.alert-refresh{padding:10px 13px;border:0;border-radius:9px;background:#0f766e;color:white;font-weight:700;cursor:pointer}.alert-refresh:disabled{opacity:.6}.dark-mode .clinical-alert-card,.dark-mode .alert-source-tile{background:#172033;border-color:#334155;color:#e2e8f0}.dark-mode .alert-filter-row input,.dark-mode .alert-filter-row select{background:#111827;color:#e5e7eb;border-color:#475569}.dark-mode .alert-actions a,.dark-mode .alert-actions button{background:#1f2937;color:#e5e7eb;border-color:#475569}
/* v1.23 source identity cards */
.alert-source-tile{display:flex;align-items:center;gap:12px;min-height:74px}.alert-source-flag{display:flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;height:48px;border-radius:12px;background:#fff;font-size:1.9rem;box-shadow:0 1px 5px rgba(15,23,42,.09)}.alert-source-tile>div{min-width:0}.alert-source-tile strong{font-size:.95rem}.alert-source-tile small{line-height:1.3}.dark-mode .alert-source-flag{background:#302126}

/* v1.23.1 — real inline flag graphics + per-source reachability. */
.alert-source-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:12px;align-items:stretch}
.alert-source-tile{display:flex;align-items:center;gap:13px;min-height:92px;padding:14px!important;box-sizing:border-box;transition:border-color .18s,box-shadow .18s}
.alert-source-tile.ok{border-color:#bad9c5!important}
.alert-source-tile.fail{border-color:#e5b6bd!important}
.alert-source-flag{display:flex;align-items:center;justify-content:center;flex:0 0 62px;width:62px;height:46px;border-radius:8px;overflow:hidden;background:#fff;box-shadow:0 2px 7px rgba(15,23,42,.13);font-size:0}
.alert-flag-svg{display:block;width:62px;height:42px}
.alert-source-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.alert-source-tile strong{font-size:.98rem;line-height:1.2}
.alert-source-tile small{line-height:1.3;min-height:2.5em}
.alert-source-state{display:inline-flex;align-items:center;margin-top:7px;padding:3px 8px;border-radius:999px;font-size:.72rem;font-weight:700;line-height:1.2}
.alert-source-state.ok{background:#e8f5ec;color:#1e6b39}
.alert-source-state.fail{background:#fbeaec;color:#8f1d2c}
.alert-source-state.pending{background:#f1f3f5;color:#596068}
.dark-mode .alert-source-state.ok{background:#163c25;color:#bde7c9}
.dark-mode .alert-source-state.fail{background:#482027;color:#ffd5da}
.dark-mode .alert-source-state.pending{background:#30343a;color:#e1e4e8}
@media(max-width:720px){.alert-source-grid{grid-template-columns:1fr}.alert-source-tile{min-height:82px}}

/* v1.23.2 source reachability states */
.alert-source-tile.blocked{border-color:#d8b35a;background:#fffaf0}
.alert-source-state.blocked{color:#7a5810;background:#fff2c7;border:1px solid #edd58c}
.alert-source-tile.fail{border-color:#d9a0a0;background:#fff7f7}
