/* /alerts/ (Kai 2026-10-08 A). Builds on cohorts.css and tracked.css; tokens from swan.css only. */
.al-channel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--card-pad); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card, 10px); font-size: var(--fs-md); color: var(--text-mid); }
.al-channel b { color: var(--text); }
.al-rules { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--space-3); }
.al-rule { display: flex; flex-direction: column; gap: var(--space-1); padding: var(--card-pad); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card, 10px); min-width: 0; }
.al-rule .al-k { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-tag); text-transform: uppercase; color: var(--text-mid); }
.al-rule .al-k i { font-style: normal; font-weight: 600; font-size: var(--fs-xs); padding: 1px var(--space-1); border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text); }
.al-rule b { font-size: var(--fs-base); color: var(--text); }
.al-rule p { margin: 0; font-size: var(--fs-md); line-height: var(--lh-prose); color: var(--text-mid); }
.al-list { display: flex; flex-direction: column; gap: var(--space-2); }
.al-item { display: grid; grid-template-columns: minmax(0, 1fr) max-content; grid-template-areas: "t when" "x when" "l when"; gap: var(--space-1) var(--space-4); padding: var(--card-pad); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card, 10px); min-width: 0; }
.al-item > * { min-width: 0; }
.al-item .al-t { grid-area: t; font-size: var(--fs-md); font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.al-item .al-x { grid-area: x; }
.al-item .al-l { grid-area: l; }
.al-item .al-when { grid-area: when; align-self: start; font-size: var(--fs-xs); color: var(--text-dim); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.al-item .al-x { font-size: var(--fs-md); color: var(--text-mid); line-height: var(--lh-prose); overflow-wrap: anywhere; }
.al-item .al-l { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--fs-md); }
.al-item .al-kind { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-tag); padding: 1px var(--space-1); border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text-mid); margin-right: var(--space-1); vertical-align: 1px; }
.al-item .al-sent { font-size: var(--fs-xs); color: var(--text-dim); }
@media (max-width: 600px) {
  .al-item { grid-template-columns: minmax(0, 1fr); grid-template-areas: "t" "when" "x" "l"; }
  .al-item .al-when { text-align: left; white-space: normal; }
}
/* 2026-10-15 round 3: kind chips, "new since your last visit" band, Copy and ☆ per alert (tokens only). */
.al-kinds { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-3); }
.al-kinds[hidden] { display: none; }
.al-band { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-tag); color: var(--accent); padding: var(--space-1) 0; border-bottom: 1px solid var(--border); }
.al-band.al-band-old { color: var(--text-dim); margin-top: var(--space-2); }
.al-item.al-new { border-color: rgba(var(--accent-rgb), .5); }
.al-item .al-newtag { font-size: var(--fs-xs); font-weight: 600; letter-spacing: var(--ls-tag); color: var(--accent); }
#alMeta .al-newcount { color: var(--accent); }
.al-item .al-copy { margin-left: auto; }
.al-item .al-t .vn-star { margin-left: var(--space-1); }
@media (max-width: 767px) {
  .al-item .al-copy, .al-item .vn-star, .al-kinds .chip { min-height: var(--control-height); }
  .al-item .vn-star { min-width: var(--control-height); }
}
.al-dir-link { margin: var(--space-3) 0 0; }
