/*
 * The bell in the top bar: each person's own alerts (lane t22-leadux, 7 Oct 2026; js/v21_alerts.js 1.0.0). The desk's
 * own tokens, so every theme follows, light and dark and High contrast. No inline styles.
 */
.alb-bell {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: 6px; padding: 0;
  border: 1px solid var(--glass-rim); border-radius: 50%; background: var(--solid); color: var(--ink-2); cursor: pointer;
  box-shadow: var(--shadow-1);
}
.alb-bell:hover { color: var(--ink); }
.alb-bell:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.alb-bell.has-unread { color: var(--ink); }
.alb-n {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  display: inline-grid; place-items: center; background: var(--danger); color: #fff; font-size: .6875rem; font-weight: 800;
  line-height: 1; font-variant-numeric: tabular-nums; border: 2px solid var(--solid);
}

.alb-pop { width: min(26rem, calc(100vw - 24px)); padding: 0; }
.alb-body { display: grid; gap: 6px; padding: 12px; max-height: min(70vh, 34rem); overflow: auto; overscroll-behavior: contain; }
.alb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.alb-h { margin: 0; font-size: 1rem; }
.alb-empty, .alb-foot { margin: 0; font-size: .8125rem; line-height: 1.25rem; }
.alb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.alb-item {
  display: grid; grid-template-columns: 10px minmax(0, 1fr); align-items: start; gap: 10px; width: 100%; padding: 8px 10px;
  border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink); font: inherit;
  text-align: left; cursor: pointer;
}
.alb-item:hover { background: var(--glass-hover); }
.alb-item:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.alb-item.is-unread { background: color-mix(in srgb, var(--info) var(--tint-alpha, 8%), var(--solid)); border-color: var(--glass-rim); }
.alb-dot { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: transparent; }
.alb-item.is-unread .alb-dot { background: var(--info); }
.alb-item.is-unread.is-reminder .alb-dot, .alb-item.is-unread.is-failed .alb-dot { background: var(--danger); }
.alb-text { display: grid; gap: 2px; min-width: 0; }
.alb-line { font-size: .875rem; line-height: 1.3rem; overflow-wrap: anywhere; }
.alb-item.is-unread .alb-line { font-weight: 700; }
.alb-meta { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--ink-2); font-size: .75rem; }
.alb-where { color: var(--warn); font-weight: 700; }

/* t22-fixCA (js/v21_alerts.js 1.1.0): a lead's reply is red, and stays at the top while unread. */
.alb-item.is-red.is-unread { background: color-mix(in srgb, var(--danger) 14%, var(--solid)); border-color: var(--danger); }
.alb-item.is-red.is-unread .alb-dot { background: var(--danger); }
.alb-item.is-red.is-unread .alb-line { color: var(--danger); }
.alb-item.is-pinned { box-shadow: inset 3px 0 0 var(--danger); }

@media (max-width: 760px) {
  .alb-bell { width: 36px; height: 36px; margin-right: 4px; }
}
@media (forced-colors: active) {
  .alb-item.is-unread { border: 1px solid Highlight; }
  .alb-item.is-red.is-unread { border: 2px solid Mark; }
  .alb-n { border: 1px solid CanvasText; }
}
