/* =========================================================
   WIRTZ HUB · MI PERFIL · NOTIFICACIONES
   CSS completo limpio
   Centro de avisos simple · 2 bloques · reglas resumidas
   Minimalista · moderno · responsive · dark safe
   ========================================================= */

/* =========================================================
   RESET LOCAL
   ========================================================= */

.notifications-page,
.notifications-page *,
.notification-modal,
.notification-modal *,
.notifications-toast {
  box-sizing: border-box;
  font-family:
    "ATF Franklin Gothic",
    "Franklin Gothic Medium",
    "Arial Narrow",
    Arial,
    sans-serif !important;
}

/* =========================================================
   PAGE
   ========================================================= */

.notifications-page {
  --notify-bg: rgba(255, 255, 255, 0.96);
  --notify-bg-solid: #ffffff;
  --notify-bg-soft: #f8fafc;
  --notify-bg-soft-2: #f3f4f6;
  --notify-hover: rgba(15, 23, 42, 0.045);

  --notify-border: rgba(15, 23, 42, 0.095);
  --notify-border-strong: rgba(15, 23, 42, 0.16);

  --notify-text: #111827;
  --notify-muted: #6b7280;
  --notify-muted-2: #9ca3af;

  --notify-green: #16a34a;
  --notify-blue: #2563eb;
  --notify-purple: #7c3aed;
  --notify-yellow: #ca8a04;
  --notify-red: #dc2626;

  --notify-radius-lg: 14px;
  --notify-radius-md: 11px;
  --notify-radius-sm: 9px;

  --notify-shadow:
    0 1px 0 rgba(255, 255, 255, 0.68) inset,
    0 10px 26px rgba(15, 23, 42, 0.045);

  --notify-transition: 0.18s ease;

  display: grid;
  grid-auto-rows: max-content;
  align-content: start;
  gap: 8px;

  width: 100%;
  min-width: 0;
  min-height: calc(100vh - var(--topbar-height) - 42px);

  color: var(--notify-text);
  overflow: hidden;

  animation: notificationsPageIn 0.2s ease both;
}

html[data-theme="dark"] .notifications-page {
  --notify-bg: rgba(13, 13, 13, 0.96);
  --notify-bg-solid: #101010;
  --notify-bg-soft: #151515;
  --notify-bg-soft-2: #1d1d1d;
  --notify-hover: rgba(255, 255, 255, 0.055);

  --notify-border: rgba(255, 255, 255, 0.095);
  --notify-border-strong: rgba(255, 255, 255, 0.15);

  --notify-text: rgba(255, 255, 255, 0.92);
  --notify-muted: rgba(255, 255, 255, 0.54);
  --notify-muted-2: rgba(255, 255, 255, 0.34);

  --notify-green: #4ade80;
  --notify-blue: #60a5fa;
  --notify-purple: #a78bfa;
  --notify-yellow: #facc15;
  --notify-red: #f87171;

  --notify-shadow:
    0 1px 0 rgba(255, 255, 255, 0.045) inset,
    0 14px 34px rgba(0, 0, 0, 0.34);
}

/* =========================================================
   BASE
   ========================================================= */

.notifications-hero,
.notifications-quick-summary,
.notifications-card,
.notifications-note {
  width: 100%;
  max-width: 100%;
  min-width: 0;

  border: 1px solid var(--notify-border);
  border-radius: var(--notify-radius-lg);
  background: var(--notify-bg);
  box-shadow: var(--notify-shadow);

  overflow: hidden;

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition),
    box-shadow var(--notify-transition),
    transform var(--notify-transition);
}

.notifications-hero:hover,
.notifications-card:hover {
  border-color: var(--notify-border-strong);
}

/* =========================================================
   HERO
   ========================================================= */

.notifications-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;

  min-height: 58px;
  padding: 9px 10px;
}

.notifications-hero__copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notifications-hero span,
.notifications-section-head span,
.notification-field span,
.notification-mail-route span,
.notification-modal__head span,
.notification-rule-group span,
.notification-rule-detail span,
.notifications-quick-summary span {
  color: var(--notify-muted);

  font-size: 7px;
  font-weight: 950;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

.notifications-hero h2 {
  margin: 0;

  color: var(--notify-text);

  font-size: 17px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;
}

.notifications-hero p {
  max-width: 720px;
  margin: 0;

  color: var(--notify-muted);

  font-size: 8.5px;
  font-weight: 720;
  line-height: 1.32;
}

.notifications-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;

  min-width: 0;
}

/* =========================================================
   BOTONES
   ========================================================= */

.notifications-btn,
.notifications-section-head button,
.notification-digest__edit,
.notification-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  min-height: 29px;
  padding: 0 9px;

  border: 1px solid var(--notify-border-strong);
  border-radius: 10px;
  background: transparent;

  color: var(--notify-text) !important;

  font-size: 8.5px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;

  cursor: pointer;
  outline: none;

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition),
    color var(--notify-transition),
    transform var(--notify-transition),
    opacity var(--notify-transition);
}

.notifications-btn span,
.notifications-section-head button span,
.notification-digest__edit span,
.notification-modal__close span {
  color: inherit !important;
}

.notifications-btn .icon,
.notifications-section-head button .icon,
.notification-digest__edit .icon,
.notification-modal__close .icon {
  width: 11.5px;
  height: 11.5px;
  min-width: 11.5px;
  min-height: 11.5px;

  color: currentColor !important;
  stroke: currentColor !important;
  stroke-width: 2.15;
}

.notifications-btn:hover,
.notifications-section-head button:hover,
.notification-digest__edit:hover,
.notification-modal__close:hover {
  border-color: color-mix(in srgb, var(--notify-text) 24%, transparent);
  background: var(--notify-hover);
  transform: translateY(-1px);
}

.notifications-btn:active,
.notifications-section-head button:active,
.notification-digest__edit:active,
.notification-modal__close:active {
  transform: translateY(0) scale(0.985);
}

.notifications-btn:focus-visible,
.notifications-section-head button:focus-visible,
.notification-digest__edit:focus-visible,
.notification-modal__close:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--notify-text) 15%, transparent);
}

.notifications-btn:disabled,
.notifications-btn[disabled],
.notification-digest__edit:disabled,
.notification-digest__edit[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
}

.notifications-btn--dark {
  border-color: #111827 !important;
  background: #111827 !important;
  color: #ffffff !important;
}

.notifications-btn--dark:hover {
  border-color: #030712 !important;
  background: #030712 !important;
  color: #ffffff !important;
}

html[data-theme="dark"] .notifications-btn--dark {
  border-color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.92) !important;
  color: #090909 !important;
}

html[data-theme="dark"] .notifications-btn--dark:hover {
  border-color: rgba(255, 255, 255, 0.98) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #090909 !important;
}

/* =========================================================
   RESUMEN RÁPIDO
   ========================================================= */

.notifications-quick-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notifications-quick-summary article {
  display: grid;
  align-content: center;
  gap: 4px;

  min-height: 48px;
  padding: 9px 10px;

  border-right: 1px solid var(--notify-border);

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition);
}

.notifications-quick-summary article:last-child {
  border-right: 0;
}

.notifications-quick-summary article:hover {
  background: var(--notify-hover);
}

.notifications-quick-summary strong {
  color: var(--notify-text);

  font-size: 15px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.055em;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notifications-quick-summary small {
  color: var(--notify-muted-2);

  font-size: 7.5px;
  font-weight: 820;
  line-height: 1.05;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notifications-quick-summary article:nth-child(1) strong {
  color: var(--notify-purple);
}

.notifications-quick-summary article:nth-child(2) strong {
  color: var(--notify-green);
}

.notifications-quick-summary article:nth-child(3) strong {
  color: var(--notify-blue);
}

/* =========================================================
   WORKSPACE
   ========================================================= */

.notifications-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.4fr);
  gap: 8px;
  min-width: 0;
}

.notifications-card {
  display: grid;
  align-content: start;
  gap: 8px;

  padding: 9px;
}

.notifications-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  min-height: 32px;
  min-width: 0;
}

.notifications-section-head h3 {
  margin: 2px 0 0;

  color: var(--notify-text);

  font-size: 12px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.notifications-section-head > .icon {
  width: 15px;
  height: 15px;
  min-width: 15px;

  color: var(--notify-purple);
  stroke-width: 2.15;
}

/* =========================================================
   CANALES
   ========================================================= */

.notifications-channels {
  display: grid;
  gap: 7px;
}

.notification-channel {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;

  min-height: 48px;
  padding: 8px;

  border: 1px solid var(--notify-border);
  border-radius: 12px;
  background: var(--notify-bg-soft);

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition),
    transform var(--notify-transition);
}

.notification-channel:hover {
  border-color: var(--notify-border-strong);
  background: var(--notify-hover);
  transform: translateY(-1px);
}

.notification-channel__icon {
  display: grid;
  width: 28px;
  height: 28px;
  min-width: 28px;
  place-items: center;

  border: 1px solid color-mix(in srgb, var(--notify-purple) 32%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--notify-purple) 7%, transparent);

  color: var(--notify-purple);
}

.notification-channel__icon .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.15;
}

.notification-channel__body {
  min-width: 0;
}

.notification-channel strong {
  display: block;

  color: var(--notify-text);

  font-size: 9.4px;
  font-weight: 950;
  line-height: 1.1;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-channel p {
  display: block;

  margin: 2px 0 0;

  color: var(--notify-muted);

  font-size: 7.7px;
  font-weight: 720;
  line-height: 1.22;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   SWITCHES
   ========================================================= */

.notification-switch,
.mini-switch {
  position: relative;

  display: inline-flex;
  flex: 0 0 auto;

  border: 1px solid var(--notify-border-strong);
  border-radius: 999px;
  background: transparent;

  padding: 0;

  cursor: pointer;
  outline: none;

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition),
    transform var(--notify-transition);
}

.notification-switch:hover,
.mini-switch:hover {
  border-color: color-mix(in srgb, var(--notify-text) 26%, transparent);
  background: var(--notify-hover);
}

.notification-switch:active,
.mini-switch:active {
  transform: scale(0.985);
}

.notification-switch:focus-visible,
.mini-switch:focus-visible {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--notify-text) 15%, transparent);
}

.notification-switch {
  width: 36px;
  height: 20px;
}

.notification-switch span,
.mini-switch span {
  position: absolute;
  top: 50%;

  display: block;

  border-radius: 999px;
  background: var(--notify-muted-2);

  transform: translateY(-50%);

  transition:
    left var(--notify-transition),
    background var(--notify-transition),
    transform var(--notify-transition);
}

.notification-switch span {
  left: 3px;
  width: 14px;
  height: 14px;
}

.notification-switch.is-on span {
  left: 18px;
  background: var(--notify-green);
}

.mini-switch {
  width: 34px;
  height: 20px;
}

.mini-switch span {
  left: 3px;
  width: 13px;
  height: 13px;
}

.mini-switch.is-on span {
  left: 17px;
  background: var(--notify-green);
}

/* =========================================================
   REGLAS RESUMIDAS
   ========================================================= */

.notification-rules-list {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.notification-rule-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;

  min-height: 74px;
  padding: 9px;

  border: 1px solid var(--notify-border);
  border-radius: 12px;
  background: var(--notify-bg-soft);

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition),
    transform var(--notify-transition);
}

.notification-rule-group:hover {
  border-color: var(--notify-border-strong);
  background: var(--notify-hover);
  transform: translateY(-1px);
}

.notification-rule-group__main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.notification-rule-group__title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.notification-rule-group__title strong {
  color: var(--notify-text);

  font-size: 10.5px;
  font-weight: 950;
  line-height: 1.1;
  letter-spacing: -0.025em;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-rule-group__title em {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 18px;
  padding: 0 7px;

  border: 1px solid var(--notify-border);
  border-radius: 999px;
  background: transparent;

  color: var(--notify-muted);

  font-size: 7px;
  font-weight: 950;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}

.notification-rule-group__title em.is-active {
  border-color: color-mix(in srgb, var(--notify-green) 35%, transparent);
  background: color-mix(in srgb, var(--notify-green) 8%, transparent);
  color: var(--notify-green);
}

.notification-rule-group__title em.is-partial {
  border-color: color-mix(in srgb, var(--notify-yellow) 35%, transparent);
  background: color-mix(in srgb, var(--notify-yellow) 8%, transparent);
  color: var(--notify-yellow);
}

.notification-rule-group__title em.is-inactive {
  border-color: color-mix(in srgb, var(--notify-red) 35%, transparent);
  background: color-mix(in srgb, var(--notify-red) 7%, transparent);
  color: var(--notify-red);
}

.notification-rule-group p {
  margin: 0;

  color: var(--notify-muted);

  font-size: 8px;
  font-weight: 720;
  line-height: 1.28;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-rule-group__meta {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;

  min-width: 0;
}

.notification-rule-group__meta small {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 18px;
  padding: 0 7px;

  border: 1px solid var(--notify-border);
  border-radius: 999px;
  background: transparent;

  color: var(--notify-muted);

  font-size: 7px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.notification-rule-group__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

/* =========================================================
   REGLAS MODAL DETALLE
   ========================================================= */

.notification-rules-modal-list {
  display: grid;
  gap: 7px;
}

.notification-rule-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;

  min-height: 54px;
  padding: 8px;

  border: 1px solid var(--notify-border);
  border-radius: 12px;
  background: var(--notify-bg-soft);

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition);
}

.notification-rule-detail:hover {
  border-color: var(--notify-border-strong);
  background: var(--notify-hover);
}

.notification-rule-detail div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.notification-rule-detail strong {
  color: var(--notify-text);

  font-size: 9.5px;
  font-weight: 950;
  line-height: 1.1;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-rule-detail p {
  margin: 0;

  color: var(--notify-muted);

  font-size: 7.8px;
  font-weight: 720;
  line-height: 1.25;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-rule-empty {
  display: grid;
  gap: 4px;

  padding: 12px;

  border: 1px solid var(--notify-border);
  border-radius: 12px;
  background: var(--notify-bg-soft);
}

.notification-rule-empty strong {
  color: var(--notify-text);

  font-size: 10px;
  font-weight: 950;
}

.notification-rule-empty p {
  margin: 0;

  color: var(--notify-muted);

  font-size: 8px;
  font-weight: 720;
  line-height: 1.3;
}

/* =========================================================
   PRIORIDADES
   ========================================================= */

.priority-alta,
.priority-media,
.priority-baja {
  display: inline-flex;
  align-items: center;
  gap: 5px;

  min-height: 19px;
  padding: 2px 7px;

  border: 1px solid var(--notify-border);
  border-radius: 999px;
  background: transparent;

  color: var(--notify-text);

  font-size: 7.4px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.priority-alta::before,
.priority-media::before,
.priority-baja::before {
  content: "";

  width: 5px;
  height: 5px;

  border-radius: 999px;
  background: currentColor;
}

.priority-alta {
  border-color: color-mix(in srgb, var(--notify-red) 35%, transparent);
  background: color-mix(in srgb, var(--notify-red) 7%, transparent);
  color: var(--notify-red);
}

.priority-media {
  border-color: color-mix(in srgb, var(--notify-yellow) 35%, transparent);
  background: color-mix(in srgb, var(--notify-yellow) 7%, transparent);
  color: var(--notify-yellow);
}

.priority-baja {
  border-color: color-mix(in srgb, var(--notify-blue) 35%, transparent);
  background: color-mix(in srgb, var(--notify-blue) 7%, transparent);
  color: var(--notify-blue);
}

/* =========================================================
   RESÚMENES
   ========================================================= */

.notifications-card--digests {
  gap: 8px;
}

.notification-digests {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.notification-digest {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;

  min-height: 60px;
  padding: 8px;

  border: 1px solid var(--notify-border);
  border-radius: 12px;
  background: var(--notify-bg-soft);

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition),
    transform var(--notify-transition);
}

.notification-digest:hover {
  border-color: var(--notify-border-strong);
  background: var(--notify-hover);
  transform: translateY(-1px);
}

.notification-digest strong {
  display: block;

  color: var(--notify-text);

  font-size: 9.5px;
  font-weight: 950;
  line-height: 1.1;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-digest p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;

  margin: 2px 0 0;

  color: var(--notify-muted);

  font-size: 7.7px;
  font-weight: 720;
  line-height: 1.28;

  overflow: hidden;
}

.notification-digest small {
  display: block;
  margin-top: 4px;

  color: var(--notify-muted-2);

  font-size: 7px;
  font-weight: 820;
  line-height: 1.15;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-digest__meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.notification-digest__edit {
  min-height: 25px;
  padding: 0 8px;

  font-size: 7.8px;
}

/* =========================================================
   NOTA / STATUS
   ========================================================= */

.notifications-note {
  display: none;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;

  padding: 8px 10px;
}

.notifications-note.is-visible {
  display: grid;
  animation: notificationsNoteIn 0.18s ease both;
}

.notifications-note.is-error {
  border-color: color-mix(in srgb, var(--notify-red) 35%, transparent);
}

.notifications-note__icon {
  display: grid;
  width: 26px;
  height: 26px;
  min-width: 26px;
  place-items: center;

  border: 1px solid color-mix(in srgb, var(--notify-blue) 32%, transparent);
  border-radius: 9px;
  background: color-mix(in srgb, var(--notify-blue) 7%, transparent);

  color: var(--notify-blue);
}

.notifications-note.is-error .notifications-note__icon {
  border-color: color-mix(in srgb, var(--notify-red) 32%, transparent);
  background: color-mix(in srgb, var(--notify-red) 7%, transparent);
  color: var(--notify-red);
}

.notifications-note__icon .icon {
  width: 12.5px;
  height: 12.5px;
  stroke-width: 2.15;
}

.notifications-note strong {
  display: block;

  color: var(--notify-text);

  font-size: 9.5px;
  font-weight: 950;
  line-height: 1.1;
}

.notifications-note p {
  margin: 2px 0 0;

  color: var(--notify-muted);

  font-size: 8px;
  font-weight: 720;
  line-height: 1.3;
}

/* =========================================================
   MODAL
   ========================================================= */

.notification-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  place-items: center;

  padding: 14px;

  background: rgba(15, 23, 42, 0.44);
  backdrop-filter: blur(12px) saturate(0.95);
  -webkit-backdrop-filter: blur(12px) saturate(0.95);

  overflow: hidden;
}

.notification-modal.is-open {
  display: grid;
  animation: notificationModalBackdropIn 0.16s ease both;
}

#notificationResumenModalMount,
#notificationRulesModalMount {
  display: grid;
  place-items: center;

  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;

  overflow: hidden;
}

.notification-modal__card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;

  width: min(760px, calc(100vw - 28px));
  height: auto;
  max-height: calc(100vh - 28px);
  min-height: 0;

  border: 1px solid var(--notify-border);
  border-radius: 18px;
  background: var(--notify-bg-solid);
  color: var(--notify-text);

  box-shadow:
    0 30px 95px rgba(15, 23, 42, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.88) inset;

  overflow: hidden;

  animation: notificationModalIn 0.2s ease both;
}

.notification-modal__card--rules {
  width: min(860px, calc(100vw - 28px));
}

html[data-theme="dark"] .notification-modal__card {
  background: var(--notify-bg-solid);

  box-shadow:
    0 34px 110px rgba(0, 0, 0, 0.74),
    0 1px 0 rgba(255, 255, 255, 0.055) inset;
}

.notification-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  min-height: 58px;
  padding: 11px 14px;

  border-bottom: 1px solid var(--notify-border);
  background: var(--notify-bg-soft);

  overflow: hidden;
}

.notification-modal__head h3 {
  margin: 3px 0 0;

  color: var(--notify-text);

  font-size: 14px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.04em;
}

.notification-modal__head p {
  margin: 3px 0 0;

  color: var(--notify-muted);

  font-size: 8.5px;
  font-weight: 760;
  line-height: 1.25;
}

.notification-modal__close {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0;

  background: var(--notify-bg-solid);
}

.notification-modal__body {
  display: grid;
  gap: 9px;

  min-height: 0;
  padding: 12px 14px;

  overflow-y: auto;
  overflow-x: hidden;

  scrollbar-width: thin;
  scrollbar-color: rgba(120, 128, 145, 0.5) transparent;
}

.notification-modal__body::-webkit-scrollbar {
  width: 8px;
}

.notification-modal__body::-webkit-scrollbar-track {
  background: transparent;
}

.notification-modal__body::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(120, 128, 145, 0.5);
  background-clip: content-box;
}

.notification-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;

  min-height: 50px;
  padding: 10px 14px;

  border-top: 1px solid var(--notify-border);
  background: var(--notify-bg-soft);

  overflow: hidden;
}

/* =========================================================
   RUTA MAIL
   ========================================================= */

.notification-mail-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr);
  gap: 8px;
  align-items: center;

  padding: 9px;

  border: 1px solid var(--notify-border);
  border-radius: 12px;
  background: var(--notify-bg-soft);
}

.notification-mail-route article {
  display: grid;
  gap: 3px;

  min-width: 0;
}

.notification-mail-route strong {
  color: var(--notify-text);

  font-size: 9.2px;
  font-weight: 900;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notification-mail-route .icon {
  width: 13px;
  height: 13px;
  justify-self: center;

  color: var(--notify-purple);
  stroke-width: 2.15;
}

/* =========================================================
   FORM MODAL
   ========================================================= */

.notification-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));

  border: 1px solid var(--notify-border);
  border-radius: 12px;

  overflow: hidden;
}

.notification-field,
.notification-active-box {
  display: grid;
  gap: 5px;

  min-height: 54px;
  padding: 9px;

  border-right: 1px solid var(--notify-border);
  border-bottom: 1px solid var(--notify-border);
  background: transparent;

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition);
}

.notification-field:hover,
.notification-field:focus-within,
.notification-active-box:hover {
  background: var(--notify-hover);
}

.notification-field:nth-child(2n),
.notification-active-box:nth-child(2n) {
  border-right: 0;
}

.notification-field--full {
  grid-column: 1 / -1;
  border-right: 0;
}

.notification-field input,
.notification-field select,
.notification-field textarea {
  width: 100%;
  min-width: 0;

  border: 0;
  background: transparent;

  color: var(--notify-text);
  outline: none;

  font-size: 9.2px;
  font-weight: 820;
}

.notification-field input::placeholder,
.notification-field textarea::placeholder {
  color: var(--notify-muted-2);
}

.notification-field textarea {
  min-height: 62px;
  resize: vertical;
}

.notification-active-box {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-right: 0;
}

.notification-active-box span {
  display: grid;
  gap: 3px;
}

.notification-active-box strong {
  color: var(--notify-text);

  font-size: 9.5px;
  font-weight: 950;
}

.notification-active-box small {
  color: var(--notify-muted);

  font-size: 7.8px;
  font-weight: 760;
}

.notification-active-box input {
  display: none;
}

.notification-active-box b {
  position: relative;

  width: 36px;
  height: 20px;

  border: 1px solid var(--notify-border-strong);
  border-radius: 999px;
  background: transparent;

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition);
}

.notification-active-box b::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;

  width: 14px;
  height: 14px;

  border-radius: 999px;
  background: var(--notify-muted-2);

  transition:
    transform var(--notify-transition),
    background var(--notify-transition);
}

.notification-active-box input:checked + b {
  border-color: color-mix(in srgb, var(--notify-green) 36%, transparent);
  background: color-mix(in srgb, var(--notify-green) 8%, transparent);
}

.notification-active-box input:checked + b::before {
  transform: translateX(16px);
  background: var(--notify-green);
}

/* =========================================================
   TOAST
   ========================================================= */

.notifications-toast {
  position: fixed;
  right: 14px;
  bottom: 38px;
  z-index: 10000;

  max-width: min(390px, calc(100vw - 28px));
  padding: 9px 11px;

  border: 1px solid var(--notify-border-strong);
  border-radius: 12px;
  background: var(--notify-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);

  color: var(--notify-text);

  font-size: 9px;
  font-weight: 900;
  line-height: 1.25;

  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.12) inset;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) scale(0.98);

  transition:
    opacity var(--notify-transition),
    transform var(--notify-transition),
    background var(--notify-transition),
    border-color var(--notify-transition),
    color var(--notify-transition);
}

.notifications-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .notifications-workspace {
    grid-template-columns: 1fr;
  }

  .notification-digests {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .notifications-page {
    gap: 7px;
  }

  .notifications-hero {
    grid-template-columns: 1fr;
    align-items: flex-start;
    min-height: auto;
  }

  .notifications-actions {
    justify-content: flex-start;
  }

  .notification-modal {
    padding: 10px;
  }

  .notification-modal__card,
  .notification-modal__card--rules {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  .notification-form-grid,
  .notification-mail-route {
    grid-template-columns: 1fr;
  }

  .notification-mail-route .icon {
    transform: rotate(90deg);
  }

  .notification-field,
  .notification-active-box {
    border-right: 0;
  }

  .notification-modal__footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .notification-modal__footer .notifications-btn {
    width: 100%;
    min-height: 32px;
  }
}

@media (max-width: 620px) {
  .notifications-hero,
  .notifications-quick-summary,
  .notifications-card,
  .notifications-note {
    border-radius: 13px;
  }

  .notifications-hero {
    gap: 9px;
    padding: 9px;
  }

  .notifications-hero h2 {
    font-size: 16px;
  }

  .notifications-hero p {
    font-size: 8.2px;
  }

  .notifications-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    width: 100%;
  }

  .notifications-actions .notifications-btn {
    width: 100%;
    min-height: 32px;
  }

  .notifications-quick-summary {
    grid-template-columns: 1fr;
  }

  .notifications-quick-summary article {
    min-height: 44px;
    border-right: 0;
    border-bottom: 1px solid var(--notify-border);
  }

  .notifications-quick-summary article:last-child {
    border-bottom: 0;
  }

  .notifications-card {
    padding: 8px;
  }

  .notifications-section-head {
    align-items: flex-start;
  }

  .notification-channel {
    grid-template-columns: 27px minmax(0, 1fr) auto;
    min-height: 46px;
    padding: 8px;
  }

  .notification-channel__icon {
    width: 27px;
    height: 27px;
    min-width: 27px;
  }

  .notification-rule-group {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: auto;
  }

  .notification-rule-group__actions {
    justify-content: space-between;
  }

  .notification-rule-group__actions .notifications-btn {
    min-width: 92px;
  }

  .notification-rule-detail {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .notification-rule-detail .mini-switch {
    justify-self: end;
  }

  .notification-digests {
    grid-template-columns: 1fr;
  }

  .notification-digest {
    min-height: auto;
  }

  .notifications-note {
    grid-template-columns: 1fr;
  }

  .notifications-note__icon {
    width: 26px;
    height: 26px;
  }

  .notification-modal__head {
    padding: 10px;
  }

  .notification-modal__head p {
    display: none;
  }

  .notification-modal__body {
    padding: 9px;
  }

  .notification-modal__footer {
    padding: 9px;
  }
}

@media (max-width: 420px) {
  .notifications-hero,
  .notifications-quick-summary,
  .notifications-card,
  .notifications-note {
    border-radius: 12px;
  }

  .notifications-hero h2 {
    font-size: 15px;
  }

  .notifications-actions .notifications-btn {
    min-height: 31px;
    font-size: 8px;
  }

  .notifications-section-head h3 {
    font-size: 11px;
  }

  .notification-channel strong {
    font-size: 9px;
  }

  .notification-channel p {
    font-size: 7.3px;
  }

  .notification-rule-group__title strong {
    font-size: 10px;
  }

  .notification-rule-group p {
    font-size: 7.6px;
  }

  .notification-rule-group__meta small {
    font-size: 6.8px;
  }

  .notification-digest strong {
    font-size: 9px;
  }

  .notification-digest p {
    font-size: 7.4px;
  }

  .notifications-toast {
    right: 10px;
    bottom: 34px;
    max-width: calc(100vw - 20px);
  }
}

/* =========================================================
   ANIMACIONES
   ========================================================= */

@keyframes notificationsPageIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes notificationsNoteIn {
  from {
    opacity: 0;
    transform: translateY(5px) scale(0.99);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes notificationModalBackdropIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes notificationModalIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* =========================================================
   ACCESIBILIDAD
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .notifications-page,
  .notifications-page *,
  .notifications-page *::before,
  .notifications-page *::after,
  .notification-modal,
  .notification-modal *,
  .notification-modal *::before,
  .notification-modal *::after,
  .notifications-toast {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}/* =========================================================
   FIX FINAL · NOTIFICACIONES · MODALES LIMPIOS
   Corrige variables fuera de .notifications-page
   Ventana compacta · fondo sólido · campos visibles
   ========================================================= */

/* =========================================================
   VARIABLES TAMBIÉN PARA MODALES
   El modal vive fuera de .notifications-page, por eso necesita
   sus propias variables.
   ========================================================= */

.notification-modal,
.notifications-toast {
  --notify-bg: rgba(255, 255, 255, 0.98);
  --notify-bg-solid: #ffffff;
  --notify-bg-soft: #f8fafc;
  --notify-bg-soft-2: #f3f4f6;
  --notify-hover: rgba(15, 23, 42, 0.045);

  --notify-border: rgba(15, 23, 42, 0.11);
  --notify-border-strong: rgba(15, 23, 42, 0.18);

  --notify-text: #111827;
  --notify-muted: #6b7280;
  --notify-muted-2: #9ca3af;

  --notify-green: #16a34a;
  --notify-blue: #2563eb;
  --notify-purple: #7c3aed;
  --notify-yellow: #ca8a04;
  --notify-red: #dc2626;

  --notify-transition: 0.18s ease;
}

html[data-theme="dark"] .notification-modal,
html[data-theme="dark"] .notifications-toast {
  --notify-bg: rgba(13, 13, 13, 0.98);
  --notify-bg-solid: #101010;
  --notify-bg-soft: #151515;
  --notify-bg-soft-2: #1d1d1d;
  --notify-hover: rgba(255, 255, 255, 0.055);

  --notify-border: rgba(255, 255, 255, 0.11);
  --notify-border-strong: rgba(255, 255, 255, 0.18);

  --notify-text: rgba(255, 255, 255, 0.92);
  --notify-muted: rgba(255, 255, 255, 0.54);
  --notify-muted-2: rgba(255, 255, 255, 0.34);

  --notify-green: #4ade80;
  --notify-blue: #60a5fa;
  --notify-purple: #a78bfa;
  --notify-yellow: #facc15;
  --notify-red: #f87171;
}

/* =========================================================
   MODAL · BASE CORREGIDA
   ========================================================= */

.notification-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 9999 !important;

  display: none !important;
  place-items: center !important;

  padding: 18px !important;

  background: rgba(15, 23, 42, 0.5) !important;
  backdrop-filter: blur(10px) saturate(0.95) !important;
  -webkit-backdrop-filter: blur(10px) saturate(0.95) !important;

  overflow: hidden !important;
}

.notification-modal.is-open {
  display: grid !important;
}

#notificationResumenModalMount,
#notificationRulesModalMount {
  display: grid !important;
  place-items: center !important;

  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;

  overflow: hidden !important;
}

/* =========================================================
   CARD · YA NO GIGANTE
   ========================================================= */

.notification-modal__card {
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto !important;

  width: min(620px, calc(100vw - 36px)) !important;
  max-width: 620px !important;
  height: auto !important;
  max-height: calc(100vh - 36px) !important;
  min-height: 0 !important;

  border: 1px solid var(--notify-border) !important;
  border-radius: 18px !important;
  background: var(--notify-bg-solid) !important;
  color: var(--notify-text) !important;

  box-shadow:
    0 28px 80px rgba(15, 23, 42, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.82) inset !important;

  overflow: hidden !important;

  animation: notificationModalIn 0.18s ease both !important;
}

.notification-modal__card--rules {
  width: min(720px, calc(100vw - 36px)) !important;
  max-width: 720px !important;
}

html[data-theme="dark"] .notification-modal__card {
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.76),
    0 1px 0 rgba(255, 255, 255, 0.055) inset !important;
}

/* =========================================================
   HEADER · COMPACTO
   ========================================================= */

.notification-modal__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;

  min-height: 58px !important;
  padding: 12px 14px !important;

  border-bottom: 1px solid var(--notify-border) !important;
  background: var(--notify-bg-soft) !important;

  overflow: hidden !important;
}

.notification-modal__head > div {
  min-width: 0 !important;
}

.notification-modal__head span {
  display: block !important;

  color: var(--notify-muted) !important;

  font-size: 7px !important;
  font-weight: 950 !important;
  letter-spacing: 0.1em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.notification-modal__head h3 {
  margin: 4px 0 0 !important;

  color: var(--notify-text) !important;

  font-size: 15px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
}

.notification-modal__head p {
  margin: 4px 0 0 !important;

  color: var(--notify-muted) !important;

  font-size: 8.5px !important;
  font-weight: 760 !important;
  line-height: 1.25 !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.notification-modal__close {
  display: grid !important;
  place-items: center !important;

  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;

  border: 1px solid var(--notify-border) !important;
  border-radius: 10px !important;
  background: var(--notify-bg-solid) !important;

  color: var(--notify-text) !important;
}

/* =========================================================
   BODY · SCROLL REAL
   ========================================================= */

.notification-modal__body {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;

  min-height: 0 !important;
  max-height: calc(100vh - 150px) !important;
  padding: 12px 14px !important;

  background: var(--notify-bg-solid) !important;
  color: var(--notify-text) !important;

  overflow-y: auto !important;
  overflow-x: hidden !important;

  scrollbar-width: thin !important;
  scrollbar-color: rgba(120, 128, 145, 0.5) transparent !important;
}

.notification-modal__body::-webkit-scrollbar {
  width: 8px !important;
}

.notification-modal__body::-webkit-scrollbar-track {
  background: transparent !important;
}

.notification-modal__body::-webkit-scrollbar-thumb {
  border: 2px solid transparent !important;
  border-radius: 999px !important;
  background: rgba(120, 128, 145, 0.5) !important;
  background-clip: content-box !important;
}

/* =========================================================
   RUTA EMAIL · NO MÁS SÁBANA
   ========================================================= */

.notification-mail-route {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 26px minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;

  padding: 10px !important;

  border: 1px solid var(--notify-border) !important;
  border-radius: 13px !important;
  background: var(--notify-bg-soft) !important;
}

.notification-mail-route article {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.notification-mail-route span {
  color: var(--notify-muted) !important;

  font-size: 7px !important;
  font-weight: 950 !important;
  letter-spacing: 0.09em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.notification-mail-route strong {
  color: var(--notify-text) !important;

  font-size: 9px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.notification-mail-route .icon {
  width: 13px !important;
  height: 13px !important;

  justify-self: center !important;

  color: var(--notify-purple) !important;
  stroke-width: 2.15 !important;
}

/* =========================================================
   FORM · CAMPOS VISIBLES Y COMPACTOS
   ========================================================= */

.notification-form-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;

  border: 0 !important;
  border-radius: 0 !important;

  overflow: visible !important;
}

.notification-field,
.notification-active-box {
  display: grid !important;
  gap: 6px !important;

  min-height: 58px !important;
  padding: 10px !important;

  border: 1px solid var(--notify-border) !important;
  border-radius: 13px !important;
  background: var(--notify-bg-soft) !important;

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition),
    transform var(--notify-transition) !important;
}

.notification-field:hover,
.notification-field:focus-within,
.notification-active-box:hover {
  border-color: var(--notify-border-strong) !important;
  background: var(--notify-hover) !important;
}

.notification-field:nth-child(2n),
.notification-active-box:nth-child(2n),
.notification-field--full {
  border-right: 1px solid var(--notify-border) !important;
}

.notification-field--full {
  grid-column: 1 / -1 !important;
}

.notification-field span {
  color: var(--notify-muted) !important;

  font-size: 7px !important;
  font-weight: 950 !important;
  letter-spacing: 0.09em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.notification-field input,
.notification-field select,
.notification-field textarea {
  width: 100% !important;
  min-width: 0 !important;

  border: 0 !important;
  background: transparent !important;

  color: var(--notify-text) !important;
  outline: none !important;

  font-size: 9.5px !important;
  font-weight: 850 !important;
  line-height: 1.2 !important;
}

.notification-field textarea {
  min-height: 66px !important;
  resize: vertical !important;
}

.notification-field input::placeholder,
.notification-field textarea::placeholder {
  color: var(--notify-muted-2) !important;
}

/* =========================================================
   ACTIVO · SWITCH ALINEADO
   ========================================================= */

.notification-active-box {
  grid-column: 1 / -1 !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.notification-active-box > span {
  display: grid !important;
  gap: 3px !important;
}

.notification-active-box strong {
  color: var(--notify-text) !important;

  font-size: 9.6px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
}

.notification-active-box small {
  color: var(--notify-muted) !important;

  font-size: 7.8px !important;
  font-weight: 760 !important;
  line-height: 1.2 !important;
}

.notification-active-box input {
  display: none !important;
}

.notification-active-box b {
  position: relative !important;

  display: block !important;
  width: 36px !important;
  height: 20px !important;
  min-width: 36px !important;

  border: 1px solid var(--notify-border-strong) !important;
  border-radius: 999px !important;
  background: transparent !important;

  transition:
    background var(--notify-transition),
    border-color var(--notify-transition) !important;
}

.notification-active-box b::before {
  content: "" !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;

  width: 14px !important;
  height: 14px !important;

  border-radius: 999px !important;
  background: var(--notify-muted-2) !important;

  transition:
    transform var(--notify-transition),
    background var(--notify-transition) !important;
}

.notification-active-box input:checked + b {
  border-color: color-mix(in srgb, var(--notify-green) 38%, transparent) !important;
  background: color-mix(in srgb, var(--notify-green) 9%, transparent) !important;
}

.notification-active-box input:checked + b::before {
  transform: translateX(16px) !important;
  background: var(--notify-green) !important;
}

/* =========================================================
   FOOTER · BOTONES ABAJO COMPACTOS
   ========================================================= */

.notification-modal__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 7px !important;
  flex-wrap: wrap !important;

  min-height: 52px !important;
  padding: 10px 14px !important;

  border-top: 1px solid var(--notify-border) !important;
  background: var(--notify-bg-soft) !important;

  overflow: hidden !important;
}

.notification-modal__footer .notifications-btn {
  min-height: 30px !important;
}

/* =========================================================
   DETALLE REGLAS · MODAL
   ========================================================= */

.notification-rules-modal-list {
  display: grid !important;
  gap: 7px !important;
}

.notification-rule-detail {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto !important;
  align-items: center !important;
  gap: 8px !important;

  min-height: 52px !important;
  padding: 9px !important;

  border: 1px solid var(--notify-border) !important;
  border-radius: 13px !important;
  background: var(--notify-bg-soft) !important;
}

.notification-rule-detail div {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}

.notification-rule-detail strong {
  color: var(--notify-text) !important;

  font-size: 9.6px !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.notification-rule-detail p {
  margin: 0 !important;

  color: var(--notify-muted) !important;

  font-size: 7.8px !important;
  font-weight: 720 !important;
  line-height: 1.25 !important;

  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* =========================================================
   RESPONSIVE MODAL
   ========================================================= */

@media (max-width: 720px) {
  .notification-modal {
    padding: 8px !important;
  }

  .notification-modal__card,
  .notification-modal__card--rules {
    width: calc(100vw - 16px) !important;
    max-width: calc(100vw - 16px) !important;
    max-height: calc(100vh - 16px) !important;
    border-radius: 15px !important;
  }

  .notification-modal__head {
    min-height: auto !important;
    padding: 10px !important;
  }

  .notification-modal__head h3 {
    font-size: 14px !important;
  }

  .notification-modal__head p {
    display: none !important;
  }

  .notification-modal__body {
    max-height: calc(100vh - 132px) !important;
    padding: 9px !important;
  }

  .notification-mail-route {
    grid-template-columns: 1fr !important;
  }

  .notification-mail-route .icon {
    transform: rotate(90deg) !important;
  }

  .notification-form-grid {
    grid-template-columns: 1fr !important;
  }

  .notification-field,
  .notification-active-box {
    min-height: 52px !important;
    padding: 9px !important;
  }

  .notification-rule-detail {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .notification-rule-detail .mini-switch {
    justify-self: end !important;
  }

  .notification-modal__footer {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 9px !important;
  }

  .notification-modal__footer .notifications-btn {
    width: 100% !important;
    min-height: 32px !important;
  }
}/* =========================================================
   NOTIFICACIONES · AGRANDAR UN POCO TODO
   ========================================================= */

.notifications-page {
  gap: 10px;
}

.notifications-hero {
  min-height: 64px;
  padding: 11px 12px;
}

.notifications-hero span,
.notifications-section-head span,
.notification-field span,
.notification-mail-route span,
.notification-modal__head span,
.notification-rule-group span,
.notification-rule-detail span,
.notifications-quick-summary span {
  font-size: 7.8px !important;
}

.notifications-hero h2 {
  font-size: 18px;
}

.notifications-hero p {
  font-size: 9.4px;
}

.notifications-btn,
.notifications-section-head button,
.notification-digest__edit,
.notification-modal__close {
  min-height: 32px;
  padding: 0 11px;
  font-size: 9.4px;
}

.notifications-btn .icon,
.notifications-section-head button .icon,
.notification-digest__edit .icon,
.notification-modal__close .icon {
  width: 12.5px;
  height: 12.5px;
  min-width: 12.5px;
  min-height: 12.5px;
}

/* Resumen rápido */
.notifications-quick-summary article {
  min-height: 54px;
  padding: 11px 12px;
}

.notifications-quick-summary strong {
  font-size: 16.5px;
}

.notifications-quick-summary small {
  font-size: 8.4px;
}

/* Cards principales */
.notifications-card {
  gap: 10px;
  padding: 11px;
}

.notifications-section-head {
  min-height: 38px;
}

.notifications-section-head h3 {
  font-size: 13px;
}

.notifications-section-head > .icon {
  width: 16.5px;
  height: 16.5px;
  min-width: 16.5px;
}

/* Canales */
.notifications-channels {
  gap: 9px;
}

.notification-channel {
  grid-template-columns: 31px minmax(0, 1fr) auto;
  gap: 10px;
  min-height: 56px;
  padding: 10px;
}

.notification-channel__icon {
  width: 31px;
  height: 31px;
  min-width: 31px;
}

.notification-channel__icon .icon {
  width: 14.5px;
  height: 14.5px;
}

.notification-channel strong {
  font-size: 10.4px;
}

.notification-channel p {
  font-size: 8.5px;
}

/* Switches */
.notification-switch {
  width: 38px;
  height: 21px;
}

.notification-switch span {
  width: 15px;
  height: 15px;
}

.notification-switch.is-on span {
  left: 19px;
}

.mini-switch {
  width: 36px;
  height: 21px;
}

.mini-switch span {
  width: 14px;
  height: 14px;
}

.mini-switch.is-on span {
  left: 18px;
}

/* Reglas */
.notification-rules-list {
  gap: 9px;
}

.notification-rule-group {
  min-height: 82px;
  padding: 11px;
}

.notification-rule-group__main {
  gap: 6px;
}

.notification-rule-group__title strong {
  font-size: 11.5px;
}

.notification-rule-group__title em {
  min-height: 20px;
  padding: 0 8px;
  font-size: 7.8px;
}

.notification-rule-group p {
  font-size: 8.8px;
}

.notification-rule-group__meta small {
  min-height: 20px;
  padding: 0 8px;
  font-size: 7.8px;
}

/* Resúmenes */
.notification-digests {
  gap: 9px;
}

.notification-digest {
  min-height: 68px;
  padding: 10px;
}

.notification-digest strong {
  font-size: 10.5px;
}

.notification-digest p {
  font-size: 8.5px;
}

.notification-digest small {
  font-size: 7.8px;
}

.notification-digest__edit {
  min-height: 28px;
  padding: 0 9px;
  font-size: 8.6px;
}

/* Nota inferior */
.notifications-note {
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
}

.notifications-note__icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
}

.notifications-note__icon .icon {
  width: 14px;
  height: 14px;
}

.notifications-note strong {
  font-size: 10.8px;
}

.notifications-note p {
  font-size: 8.9px;
}

/* Modales */
.notification-modal__head h3 {
  font-size: 15.8px !important;
}

.notification-modal__head p {
  font-size: 9.2px !important;
}

.notification-modal__body {
  gap: 11px !important;
}

.notification-field input,
.notification-field select,
.notification-field textarea {
  font-size: 10.4px !important;
}

.notification-active-box strong {
  font-size: 10.4px !important;
}

.notification-active-box small {
  font-size: 8.5px !important;
}

.notification-rule-detail strong {
  font-size: 10.4px !important;
}

.notification-rule-detail p {
  font-size: 8.5px !important;
}

.notifications-toast {
  font-size: 10px;
}/* =========================================================
   NOTIFICACIONES
   MISMO TAMAÑO + TODO EL ANCHO + SCROLL DE PÁGINA
   Agregar al FINAL de notificaciones.css
   ========================================================= */

/* =========================================================
   CONTENEDOR GENERAL
   ========================================================= */

.app-content:has(.notifications-page) {
  display: block !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  padding: 10px !important;

  overflow: visible !important;
}

.notifications-page {
  display: grid !important;

  grid-template-rows:
    auto
    auto
    auto
    auto
    auto
    auto !important;

  align-content: start !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  gap: 12px !important;

  overflow: visible !important;
}

/* =========================================================
   CABECERA
   ========================================================= */

.notifications-hero {
  display: grid !important;

  grid-template-columns:
    minmax(320px, 1fr)
    auto !important;

  align-items: center !important;

  width: 100% !important;

  min-height: 92px !important;

  padding:
    15px
    17px !important;

  gap: 16px !important;

  border-radius: 13px !important;
}

.notifications-hero__copy {
  gap: 5px !important;
}

.notifications-hero span,
.notifications-section-head span,
.notification-field span,
.notification-mail-route span,
.notification-modal__head span,
.notification-rule-group span,
.notification-rule-detail span,
.notifications-quick-summary span {
  font-size: 9px !important;
  font-weight: 950 !important;
}

.notifications-hero h2 {
  font-size:
    clamp(
      24px,
      2.1vw,
      30px
    ) !important;

  font-weight: 950 !important;
  line-height: 1 !important;
}

.notifications-hero p {
  max-width: 850px !important;

  font-size: 12px !important;
  font-weight: 650 !important;
  line-height: 1.45 !important;
}

/* =========================================================
   BOTONES
   ========================================================= */

.notifications-btn,
.notifications-section-head button,
.notification-digest__edit,
.notification-modal__close {
  min-height: 36px !important;
  height: 36px !important;

  padding:
    0
    12px !important;

  gap: 7px !important;

  border-radius: 9px !important;

  font-size: 11px !important;
  font-weight: 900 !important;
}

.notifications-btn .icon,
.notifications-btn svg,
.notifications-section-head button .icon,
.notifications-section-head button svg,
.notification-digest__edit .icon,
.notification-digest__edit svg,
.notification-modal__close .icon,
.notification-modal__close svg {
  width: 15px !important;
  height: 15px !important;

  min-width: 15px !important;
  min-height: 15px !important;

  margin: 0 !important;
}

.notifications-actions {
  gap: 7px !important;
}

/* =========================================================
   RESUMEN RÁPIDO
   ========================================================= */

.notifications-quick-summary {
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    ) !important;

  width: 100% !important;

  border-radius: 13px !important;
}

.notifications-quick-summary article {
  min-height: 72px !important;

  padding:
    11px
    12px !important;

  gap: 4px !important;
}

.notifications-quick-summary strong {
  font-size: 19px !important;
  font-weight: 950 !important;
}

.notifications-quick-summary small {
  font-size: 9.5px !important;
  font-weight: 700 !important;
}

/* =========================================================
   WORKSPACE
   ========================================================= */

.notifications-workspace {
  display: grid !important;

  grid-template-columns:
    minmax(360px, 0.78fr)
    minmax(0, 1.22fr) !important;

  align-items: start !important;

  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  gap: 12px !important;
}

.notifications-card {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;

  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;

  padding: 14px !important;

  gap: 12px !important;

  border-radius: 13px !important;

  overflow: visible !important;
}

.notifications-section-head {
  min-height: 42px !important;
}

.notifications-section-head h3 {
  margin-top: 4px !important;

  font-size: 16px !important;
  font-weight: 950 !important;
}

.notifications-section-head > .icon,
.notifications-section-head > svg {
  width: 18px !important;
  height: 18px !important;

  min-width: 18px !important;
  min-height: 18px !important;
}

/* =========================================================
   CANALES
   ========================================================= */

.notifications-channels {
  gap: 8px !important;
}

.notification-channel {
  grid-template-columns:
    42px
    minmax(0, 1fr)
    auto !important;

  min-height: 66px !important;

  padding:
    10px
    11px !important;

  gap: 11px !important;

  border-radius: 10px !important;
}

.notification-channel__icon {
  width: 40px !important;
  height: 40px !important;

  min-width: 40px !important;
  min-height: 40px !important;

  border-radius: 10px !important;
}

.notification-channel__icon .icon,
.notification-channel__icon svg {
  width: 18px !important;
  height: 18px !important;
}

.notification-channel strong {
  font-size: 12px !important;
  font-weight: 950 !important;
}

.notification-channel p {
  margin-top: 4px !important;

  font-size: 9.5px !important;
  line-height: 1.35 !important;
}

/* =========================================================
   SWITCHES
   ========================================================= */

.notification-switch {
  width: 42px !important;
  height: 23px !important;
}

.notification-switch span {
  left: 3px !important;

  width: 16px !important;
  height: 16px !important;
}

.notification-switch.is-on span {
  left: 21px !important;
}

.mini-switch {
  width: 40px !important;
  height: 23px !important;
}

.mini-switch span {
  left: 3px !important;

  width: 16px !important;
  height: 16px !important;
}

.mini-switch.is-on span {
  left: 19px !important;
}

/* =========================================================
   REGLAS
   ========================================================= */

.notification-rules-list {
  gap: 8px !important;
}

.notification-rule-group {
  grid-template-columns:
    minmax(0, 1fr)
    auto !important;

  min-height: 96px !important;

  padding:
    12px !important;

  gap: 12px !important;

  border-radius: 10px !important;
}

.notification-rule-group__main {
  gap: 7px !important;
}

.notification-rule-group__title {
  gap: 8px !important;
}

.notification-rule-group__title strong {
  font-size: 13px !important;
  font-weight: 950 !important;
}

.notification-rule-group__title em {
  min-height: 24px !important;

  padding:
    0
    9px !important;

  font-size: 8.5px !important;
}

.notification-rule-group p {
  font-size: 10px !important;
  line-height: 1.4 !important;
}

.notification-rule-group__meta {
  gap: 6px !important;
}

.notification-rule-group__meta small {
  min-height: 23px !important;

  padding:
    0
    8px !important;

  font-size: 8.5px !important;
}

.notification-rule-group__actions {
  gap: 7px !important;
}

/* =========================================================
   RESÚMENES
   ========================================================= */

.notifications-card--digests {
  width: 100% !important;
}

.notification-digests {
  grid-template-columns:
    repeat(
      3,
      minmax(0, 1fr)
    ) !important;

  width: 100% !important;

  gap: 10px !important;
}

.notification-digest {
  min-height: 104px !important;

  padding:
    12px !important;

  gap: 10px !important;

  border-radius: 10px !important;
}

.notification-digest strong {
  font-size: 12px !important;
  font-weight: 950 !important;
}

.notification-digest p {
  margin-top: 4px !important;

  font-size: 9.5px !important;
  line-height: 1.4 !important;
}

.notification-digest small {
  margin-top: 7px !important;

  font-size: 8.5px !important;
}

.notification-digest__edit {
  min-height: 32px !important;
  height: 32px !important;

  padding:
    0
    9px !important;

  font-size: 9px !important;
}

/* =========================================================
   NOTA INFERIOR
   ========================================================= */

.notifications-note {
  grid-template-columns:
    38px
    minmax(0, 1fr) !important;

  min-height: 66px !important;

  padding:
    11px
    13px !important;

  gap: 11px !important;

  border-radius: 13px !important;
}

.notifications-note__icon {
  width: 38px !important;
  height: 38px !important;

  min-width: 38px !important;
  min-height: 38px !important;

  border-radius: 10px !important;
}

.notifications-note__icon .icon,
.notifications-note__icon svg {
  width: 17px !important;
  height: 17px !important;
}

.notifications-note strong {
  font-size: 12px !important;
}

.notifications-note p {
  margin-top: 4px !important;

  font-size: 9.5px !important;
  line-height: 1.4 !important;
}

/* =========================================================
   SCROLL DE PÁGINA Y FOOTER
   ========================================================= */

body:has(.notifications-page) .app-main {
  min-height: 100vh !important;
  height: auto !important;

  overflow: visible !important;
}

body:has(.notifications-page) .app-shell {
  min-height: 100vh !important;
  height: auto !important;

  overflow: visible !important;
}

body:has(.notifications-page) .app-footer,
body:has(.notifications-page) #footerMount,
body:has(.notifications-page) footer.app-footer {
  position: static !important;

  inset: auto !important;

  width: 100% !important;

  margin-top: 12px !important;

  transform: none !important;
}

/* =========================================================
   MODALES
   ========================================================= */

.notification-modal {
  position: fixed !important;
  inset: 0 !important;

  z-index: 100000 !important;

  display: none !important;
  place-items: center !important;

  width: 100vw !important;
  height: 100dvh !important;

  padding: 18px !important;

  background:
    rgba(
      0,
      0,
      0,
      0.76
    ) !important;

  backdrop-filter: blur(7px) !important;
  -webkit-backdrop-filter: blur(7px) !important;

  overflow: hidden !important;

  isolation: isolate !important;
}

.notification-modal.is-open {
  display: grid !important;
}

.notification-modal[aria-hidden="true"] {
  display: none !important;

  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.notification-modal[aria-hidden="false"] {
  display: grid !important;

  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

#notificationResumenModalMount,
#notificationRulesModalMount {
  width: 100% !important;
  height: 100% !important;

  overflow: visible !important;
}

/* =========================================================
   TARJETAS DE MODAL
   ========================================================= */

.notification-modal__card,
.notification-modal__card--rules {
  display: grid !important;

  grid-template-rows:
    auto
    minmax(0, 1fr)
    auto !important;

  width:
    min(
      980px,
      calc(100vw - 36px)
    ) !important;

  max-width: none !important;

  height:
    min(
      780px,
      calc(100dvh - 36px)
    ) !important;

  max-height:
    calc(
      100dvh -
      36px
    ) !important;

  min-width: 0 !important;
  min-height: 0 !important;

  border-radius: 16px !important;

  overflow: hidden !important;
}

.notification-modal__card--rules {
  width:
    min(
      1080px,
      calc(100vw - 36px)
    ) !important;
}

/* =========================================================
   CABECERA MODAL
   ========================================================= */

.notification-modal__head {
  min-height: 76px !important;

  padding:
    13px
    15px !important;
}

.notification-modal__head h3 {
  margin-top: 5px !important;

  font-size: 19px !important;
  font-weight: 950 !important;
}

.notification-modal__head p {
  margin-top: 5px !important;

  font-size: 10.5px !important;
}

.notification-modal__close {
  width: 36px !important;
  height: 36px !important;

  min-width: 36px !important;
  max-width: 36px !important;

  min-height: 36px !important;
  max-height: 36px !important;

  padding: 0 !important;
}

/* =========================================================
   CUERPO MODAL
   ========================================================= */

.notification-modal__body {
  align-content: start !important;

  min-height: 0 !important;
  max-height: none !important;

  padding:
    14px !important;

  gap: 12px !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;
}

/* =========================================================
   RUTA DE EMAIL
   ========================================================= */

.notification-mail-route {
  grid-template-columns:
    minmax(0, 1fr)
    34px
    minmax(0, 1fr) !important;

  min-height: 70px !important;

  padding:
    11px
    12px !important;

  gap: 10px !important;

  border-radius: 10px !important;
}

.notification-mail-route strong {
  font-size: 11px !important;
}

.notification-mail-route .icon,
.notification-mail-route svg {
  width: 16px !important;
  height: 16px !important;
}

/* =========================================================
   FORMULARIO MODAL
   ========================================================= */

.notification-form-grid {
  grid-template-columns:
    repeat(
      2,
      minmax(0, 1fr)
    ) !important;

  gap: 10px !important;
}

.notification-field,
.notification-active-box {
  min-height: 70px !important;

  padding:
    11px
    12px !important;

  gap: 7px !important;

  border-radius: 10px !important;
}

.notification-field input,
.notification-field select,
.notification-field textarea {
  font-size: 11px !important;
  font-weight: 800 !important;
}

.notification-field textarea {
  min-height: 100px !important;
}

.notification-active-box strong {
  font-size: 11.5px !important;
}

.notification-active-box small {
  font-size: 9.5px !important;
  line-height: 1.35 !important;
}

/* =========================================================
   REGLAS DENTRO DEL MODAL
   ========================================================= */

.notification-rules-modal-list {
  gap: 8px !important;
}

.notification-rule-detail {
  grid-template-columns:
    minmax(0, 1fr)
    auto
    auto !important;

  min-height: 68px !important;

  padding:
    10px
    12px !important;

  gap: 10px !important;

  border-radius: 10px !important;
}

.notification-rule-detail strong {
  font-size: 11.5px !important;
}

.notification-rule-detail p {
  margin-top: 4px !important;

  font-size: 9.5px !important;
}

/* =========================================================
   FOOTER MODAL
   ========================================================= */

.notification-modal__footer {
  min-height: 64px !important;

  padding:
    12px
    15px !important;

  gap: 8px !important;
}

.notification-modal__footer .notifications-btn {
  min-height: 36px !important;
  height: 36px !important;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .notifications-workspace {
    grid-template-columns:
      1fr !important;
  }

  .notification-digests {
    grid-template-columns:
      repeat(
        2,
        minmax(0, 1fr)
      ) !important;
  }
}

@media (max-width: 900px) {
  .notifications-hero {
    grid-template-columns:
      1fr !important;
  }

  .notifications-actions {
    justify-content:
      flex-start !important;
  }
}

@media (max-width: 760px) {
  .notifications-hero {
    min-height: 0 !important;

    padding: 12px !important;
  }

  .notifications-hero h2 {
    font-size: 22px !important;
  }

  .notifications-hero p {
    font-size: 11px !important;
  }

  .notifications-quick-summary {
    grid-template-columns:
      1fr !important;
  }

  .notifications-quick-summary article {
    border-right: 0 !important;

    border-bottom:
      1px solid
      var(--notify-border) !important;
  }

  .notifications-quick-summary article:last-child {
    border-bottom: 0 !important;
  }

  .notification-digests {
    grid-template-columns:
      1fr !important;
  }

  .notification-rule-group {
    grid-template-columns:
      1fr !important;
  }

  .notification-rule-group__actions {
    justify-content:
      flex-start !important;
  }

  .notification-modal {
    padding: 8px !important;
  }

  .notification-modal__card,
  .notification-modal__card--rules {
    width:
      calc(
        100vw -
        16px
      ) !important;

    height:
      calc(
        100dvh -
        16px
      ) !important;

    max-height:
      calc(
        100dvh -
        16px
      ) !important;

    border-radius: 13px !important;
  }

  .notification-form-grid {
    grid-template-columns:
      1fr !important;
  }

  .notification-mail-route {
    grid-template-columns:
      1fr !important;
  }

  .notification-rule-detail {
    grid-template-columns:
      1fr !important;
  }

  .notification-modal__footer {
    display: grid !important;

    grid-template-columns:
      1fr !important;
  }

  .notification-modal__footer .notifications-btn {
    width: 100% !important;
  }
}

@media (max-width: 520px) {
  .notifications-actions {
    display: grid !important;

    grid-template-columns:
      1fr !important;

    width: 100% !important;
  }

  .notifications-actions .notifications-btn {
    width: 100% !important;
  }

  .notification-channel {
    grid-template-columns:
      38px
      minmax(0, 1fr)
      auto !important;
  }

  .notifications-note {
    grid-template-columns:
      1fr !important;
  }
}/* =========================================================
   NOTIFICACIONES · BORDES DE CARDS MÁS VISIBLES
   Agregar al FINAL de notificaciones.css
   ========================================================= */

.notifications-hero,
.notifications-quick-summary,
.notifications-card,
.notifications-note,
.notification-channel,
.notification-rule-group,
.notification-digest,
.notification-rule-detail,
.notification-rule-empty,
.notification-mail-route,
.notification-field,
.notification-active-box {
  border-color:
    rgba(
      15,
      23,
      42,
      0.18
    ) !important;
}

/* Cards principales un poco más marcadas */

.notifications-hero,
.notifications-quick-summary,
.notifications-card,
.notifications-note {
  border-width: 1px !important;

  box-shadow:
    0 1px 0
    rgba(
      255,
      255,
      255,
      0.85
    ) inset,
    0 5px 16px
    rgba(
      15,
      23,
      42,
      0.055
    ) !important;
}

/* Elementos internos */

.notification-channel,
.notification-rule-group,
.notification-digest,
.notification-rule-detail,
.notification-rule-empty,
.notification-mail-route,
.notification-field,
.notification-active-box {
  border-color:
    rgba(
      15,
      23,
      42,
      0.15
    ) !important;
}

/* Al pasar el mouse */

.notifications-hero:hover,
.notifications-card:hover,
.notification-channel:hover,
.notification-rule-group:hover,
.notification-digest:hover,
.notification-rule-detail:hover,
.notification-field:hover,
.notification-field:focus-within,
.notification-active-box:hover {
  border-color:
    rgba(
      15,
      23,
      42,
      0.28
    ) !important;
}

/* Separadores del resumen superior */

.notifications-quick-summary article {
  border-right-color:
    rgba(
      15,
      23,
      42,
      0.17
    ) !important;
}

/* =========================================================
   MODO OSCURO
   ========================================================= */

html[data-theme="dark"] .notifications-hero,
html[data-theme="dark"] .notifications-quick-summary,
html[data-theme="dark"] .notifications-card,
html[data-theme="dark"] .notifications-note {
  border-color:
    rgba(
      255,
      255,
      255,
      0.19
    ) !important;

  box-shadow:
    0 1px 0
    rgba(
      255,
      255,
      255,
      0.055
    ) inset,
    0 8px 20px
    rgba(
      0,
      0,
      0,
      0.32
    ) !important;
}

html[data-theme="dark"] .notification-channel,
html[data-theme="dark"] .notification-rule-group,
html[data-theme="dark"] .notification-digest,
html[data-theme="dark"] .notification-rule-detail,
html[data-theme="dark"] .notification-rule-empty,
html[data-theme="dark"] .notification-mail-route,
html[data-theme="dark"] .notification-field,
html[data-theme="dark"] .notification-active-box {
  border-color:
    rgba(
      255,
      255,
      255,
      0.15
    ) !important;
}

html[data-theme="dark"] .notifications-hero:hover,
html[data-theme="dark"] .notifications-card:hover,
html[data-theme="dark"] .notification-channel:hover,
html[data-theme="dark"] .notification-rule-group:hover,
html[data-theme="dark"] .notification-digest:hover,
html[data-theme="dark"] .notification-rule-detail:hover,
html[data-theme="dark"] .notification-field:hover,
html[data-theme="dark"] .notification-field:focus-within,
html[data-theme="dark"] .notification-active-box:hover {
  border-color:
    rgba(
      255,
      255,
      255,
      0.27
    ) !important;
}

html[data-theme="dark"]
.notifications-quick-summary
article {
  border-right-color:
    rgba(
      255,
      255,
      255,
      0.16
    ) !important;
}