.alert-bell-wrap { position: relative; flex-shrink: 0; }
.alert-follow[hidden],
.alert-dim[hidden],
.alert-bell-menu[hidden],
.alert-locked[hidden] { display: none !important; }
.alert-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(255,255,255,0.10);
  color: #fff;
  cursor: pointer;
}
.alert-bell:hover { background: rgba(255,255,255,0.16); }
.alert-bell .ico { width: 18px; height: 18px; }
.alert-bell-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 99px;
  background: #e23b32;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--chrome);
}
.alert-bell-menu {
  position: fixed;
  z-index: 80;
  width: min(400px, calc(100vw - 24px));
  max-height: min(520px, calc(100vh - 88px));
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(16, 18, 40, 0.22);
}
.alert-bell-head {
  position: sticky;
  top: 0;
  padding: 14px 16px;
  background: var(--chrome);
  color: #fff;
  font-weight: 700;
}
.alert-bell-row { display: flex; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.alert-bell-row h3 { margin: 0 0 4px; font-size: 14px; color: var(--navy); }
.alert-bell-row p { margin: 0 0 4px; font-size: 13px; }
.alert-bell-row .meta { color: var(--ink-soft); font-size: 12px; }
.alert-kind { width: 10px; flex: 0 0 10px; border-radius: 99px; background: var(--ok); }
.alert-bell-row.checkout .alert-kind { background: var(--danger); }
.alert-bell-row.extend .alert-kind { background: var(--brass); }
.alert-bell-row.due .alert-kind { background: var(--warn); }
.alert-bell-row.overdue .alert-kind { background: #5E1F1A; }
.alert-bell-row.checkin { background: #f3faf5; }
.alert-bell-row.checkout { background: #fff5f4; }
.alert-bell-row.extend { background: #fbf6ee; }
.alert-bell-row.due { background: #fff8ef; }
.alert-bell-row.due h3 { color: #8a4e12; }
.alert-bell-row.overdue { background: #fdeceb; }
.alert-bell-row.overdue h3 { color: #8d2b24; }
.alert-bell-actions { display: flex; gap: 8px; margin-top: 8px; }
.alert-bell-empty { margin: 0; padding: 16px; color: var(--ink-soft); }
.alert-dim {
  position: fixed;
  top: var(--topbar-h);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 54;
  background: rgba(12, 16, 48, 0.46);
}
.alert-follow {
  position: fixed;
  z-index: 55;
  top: 84px;
  left: 50%;
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 120px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(12, 16, 48, 0.28);
}
.alert-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 14px;
  color: #fff;
}
.alert-hero.urgent { background: linear-gradient(135deg, #8d2b24 0%, #c4523f 100%); }
.alert-hero.follow { background: linear-gradient(135deg, #8a5a22 0%, #d3923f 100%); }
.alert-hero.normal { background: linear-gradient(135deg, #1a1f86 0%, #3a46d6 100%); }
.alert-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.alert-pill {
  padding: 4px 8px;
  border-radius: 99px;
  background: rgba(255,255,255,0.2);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.alert-pill.soft { background: rgba(255,255,255,0.92); color: #1c2b39; }
.alert-pill.state { background: #1e22aa; }
.alert-x {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.alert-step { margin: 0 16px; color: var(--ink-soft); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.alert-follow h2 { margin: 0 16px; font-size: 22px; color: var(--navy); }
.alert-copy { margin: 0 16px; line-height: 1.45; }
.alert-follow.has-photo { width: min(960px, calc(100vw - 40px)); }
.alert-shot, .alert-nophoto { margin: 0 16px; border-radius: 14px; }
.alert-shot {
  width: calc(100% - 32px);
  height: auto;
  max-height: 68vh;
  object-fit: contain;
  background: #142033;
}
.alert-nophoto, .alert-photo {
  height: 108px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #d7ebe0 0%, #7faf90 45%, #315843 100%);
  color: #143024;
}
.alert-photo span { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.alert-nophoto { height: auto; padding: 10px 12px; background: var(--field-bg); color: var(--ink-soft); font-size: 13px; }
.alert-people { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 16px; }
.alert-person { display: flex; flex-direction: column; min-width: 120px; padding: 8px 10px; border-radius: 12px; font-size: 13px; font-weight: 700; }
.alert-person small { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.alert-person.brass { background: #f4ede2; color: #6d4e28; }
.alert-person.blue { background: #eceefe; color: #1e22aa; }
.alert-label { margin: 12px 16px 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.alert-comments { margin: 0 16px 12px; }
.alert-comment { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--paper); }
.alert-comment b { display: block; font-size: 13px; }
.alert-comment time { display: block; margin: 2px 0 4px; font-size: 11px; color: var(--ink-soft); }
.alert-comment p { margin: 0; font-size: 13.5px; white-space: pre-wrap; }
.alert-comment-empty { margin: 0; font-size: 13px; color: var(--ink-soft); }
.alert-time { list-style: none; margin: 0 16px; padding: 0; }
.alert-time li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: 13px; }
.alert-time i { width: 10px; height: 10px; margin-top: 4px; flex: 0 0 10px; border-radius: 50%; background: var(--brand-blue); box-shadow: 0 0 0 4px rgba(30, 34, 170, 0.12); }
.alert-form, .alert-locked, .alert-foot { margin: 0 16px 16px; }
.alert-form { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: var(--paper); }
.alert-follow label { display: grid; gap: 4px; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.alert-follow select, .alert-follow textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 10px;
  min-height: 38px;
  padding: 8px 10px;
  font: inherit;
}
.alert-follow textarea { min-height: 68px; }
.alert-next-more {
  background: var(--danger);
  color: #fff;
  border-color: transparent;
  animation: alert-next-flash 1.1s ease-in-out infinite;
}
@keyframes alert-next-flash {
  0%, 100% { box-shadow: 0 0 0 0 rgba(177, 75, 63, 0.25); }
  50% { box-shadow: 0 0 0 7px rgba(177, 75, 63, 0.45); }
}
@media (prefers-reduced-motion: reduce) {
  .alert-next-more { animation: none; box-shadow: 0 0 0 3px rgba(177, 75, 63, 0.45); }
}
.alert-actions, .alert-nav, .alert-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; }
.alert-foot { justify-content: space-between; }
.alert-snooze { min-width: 180px; }
.alert-locked { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #eef0fb; }
.alert-locked h3 { margin: 0; color: var(--brand-blue); }
.alert-locked p, .alert-error { margin: 0; font-size: 13px; }
.alert-locked p { color: var(--ink-soft); }
.alert-error { color: var(--danger); }
[data-theme="dark"] .alert-bell-row.checkin { background: #102c1d; }
[data-theme="dark"] .alert-bell-row.checkout, [data-theme="dark"] .alert-bell-row.overdue { background: #371614; }
[data-theme="dark"] .alert-bell-row.extend, [data-theme="dark"] .alert-bell-row.due { background: #352512; }
[data-theme="dark"] .alert-bell-row.due h3, [data-theme="dark"] .alert-bell-row.overdue h3 { color: #f3d2b0; }
[data-theme="dark"] .alert-person.brass { background: #3a2e1c; color: #f0d7b0; }
[data-theme="dark"] .alert-person.blue { background: #23275f; color: #d9dcff; }
[data-theme="dark"] .alert-locked { background: #1b2052; }
