:root {
  --bg: #f1f5f9;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #0d9488;
  --accent-dim: #ccfbf1;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #059669;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
  --topbar-h: auto;
  /* Barras de desplazamiento (Firefox scrollbar-color + WebKit) */
  --scrollbar-size: 10px;
  --scrollbar-track: #e2e8f0;
  --scrollbar-thumb: #94a3b8;
  --scrollbar-thumb-hover: #64748b;
  --scrollbar-thumb-active: #475569;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

/* WebKit / Chromium / Safari: barras en cualquier elemento con overflow (modales, paneles, body) */
*::-webkit-scrollbar {
  width: var(--scrollbar-size);
  height: var(--scrollbar-size);
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
  background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  border-color: var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb:active {
  background: var(--scrollbar-thumb-active);
  border-color: var(--scrollbar-track);
}

*::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  padding-bottom: env(safe-area-inset-bottom);
}

.app {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem 5.5rem;
}

@media (min-width: 900px) {
  .app {
    display: grid;
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto 1fr;
    gap: 0 1.5rem;
    padding: 1rem 1.5rem 2rem;
    padding-bottom: 2rem;
  }

  .topbar {
    grid-column: 1 / -1;
  }

  .nav--desktop {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
    position: sticky;
    top: 1rem;
    height: fit-content;
  }

  .main {
    grid-column: 2;
    min-width: 0;
  }

  .nav--mobile {
    display: none !important;
  }

  .app {
    padding-bottom: 2rem;
  }
}

.topbar {
  position: relative;
  z-index: 120;
  padding: 1rem 0 0.75rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1rem;
}

.topbar__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.brand__mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #0f766e);
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}

.brand__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 20rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 899px) {
  .topbar__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .brand {
    width: 100%;
    min-width: 0;
  }

  .topbar__actions {
    width: 100%;
    justify-content: space-between;
    gap: 0.5rem;
    flex-shrink: 1;
  }

  .topbar__user {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .topbar__refresh {
    margin-left: auto;
  }
}

@media (max-width: 520px) {
  .brand__sub {
    max-width: 100%;
  }

  .topbar__actions {
    justify-content: flex-start;
  }

  .topbar__refresh {
    margin-left: 0;
  }
}

.topbar__user {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0.15rem;
  padding-left: 0.5rem;
  border-left: 1px solid var(--line);
}

.topbar__user-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .topbar__user-name {
    max-width: 4.25rem;
  }
}

.topbar__notif {
  position: relative;
}

.topbar__bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid transparent;
  background: rgba(15, 23, 42, 0.04);
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  line-height: 0;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.topbar__bell:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.2);
}

.topbar__notif.notif-open .topbar__bell {
  background: rgba(13, 148, 136, 0.14);
  border-color: rgba(13, 148, 136, 0.28);
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.15);
}

.topbar__bell:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.topbar__bell-svg {
  display: block;
  color: var(--text);
  opacity: 0.88;
  transition: color 0.15s, opacity 0.15s;
}

.topbar__bell:hover .topbar__bell-svg,
.topbar__notif.notif-open .topbar__bell-svg {
  color: var(--accent);
  opacity: 1;
}

.topbar__bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.1rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #e11d48, #dc2626);
  border-radius: 999px;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.45);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(calc(100vw - 1.5rem), 22rem);
  max-height: min(78vh, 30rem);
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 16px 40px rgba(15, 23, 42, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s;
  z-index: 200;
  pointer-events: none;
}

.topbar__notif.notif-open .notification-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.notification-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.6), var(--surface));
  border-radius: 14px 14px 0 0;
}

.notification-panel__title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.notification-panel__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin: -0.25rem -0.35rem -0.25rem 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.notification-panel__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}

.notification-panel__body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0.25rem 0;
  -webkit-overflow-scrolling: touch;
}

.notification-panel__body .modal__empty {
  padding: 1.25rem 1rem;
  text-align: center;
}

.notification-panel__body .reminders-list {
  padding: 0 0.5rem 0.5rem;
}

.notification-panel__footer {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--line);
  background: rgba(241, 245, 249, 0.35);
  border-radius: 0 0 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

@media (max-width: 400px) {
  .notification-panel {
    right: -0.25rem;
    width: calc(100vw - 1rem);
  }
}

.field-help {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  margin: -0.15rem 0 0.75rem;
}

.nav--desktop {
  display: none;
}

.nav__link {
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.nav--mobile .nav__link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  font-size: 0.65rem;
  padding: 0.5rem 0.25rem;
  color: var(--muted);
  border-radius: 0;
  min-width: 0;
}

.nav__ico {
  font-size: 1rem;
  opacity: 0.85;
}

.nav__link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}

.nav__link.is-active {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav--mobile {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom));
  z-index: 50;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.06);
}

.nav--mobile .nav__link.is-active {
  background: transparent;
}

.main {
  padding-top: 0.25rem;
}

.panel {
  display: none;
}

.panel.is-active {
  display: block;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ----- Dashboard ----- */
.dashboard-hero {
  margin-bottom: 1rem;
  padding: 1.15rem 1.25rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(13, 148, 136, 0.09), rgba(15, 23, 42, 0.02));
  border: 1px solid rgba(13, 148, 136, 0.14);
}

.dashboard-hero__title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.dashboard-hero__sub {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.dashboard-hero__sub strong {
  color: var(--text);
  font-weight: 600;
}

.dashboard-hero__date {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.dashboard-quick {
  margin-bottom: 1.15rem;
}

.dashboard-quick__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.dash-chip {
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.dash-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

.dashboard-layout {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .dashboard-layout {
    grid-template-columns: 1fr minmax(260px, 300px);
    align-items: start;
  }
}

.dashboard-layout__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.dashboard-layout__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.dashboard-section-title--hero {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.dashboard-section-title span {
  color: var(--muted);
  font-weight: 500;
}

.dashboard-lead {
  margin: -0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
  max-width: 40rem;
}

.dashboard-metrics-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .dashboard-metrics-row {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.dashboard-metrics-row .dash-widget {
  margin-bottom: 0;
  min-height: 0;
}

.dashboard-secondary-block {
  margin: 0;
  padding: 1.1rem 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dashboard-subsection-title {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.dashboard-subsection-desc {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  max-width: 36rem;
}

.dashboard-layout__main .section-head--recent {
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.section-head--dashboard {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.section-head__meta {
  font-size: 0.78rem;
  color: var(--muted);
}

.dash-widget {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.dash-widget--flow {
  margin-bottom: 0;
}

.dash-widget--compare {
  margin-bottom: 0;
}

.dash-widget--snapshot {
  border-color: rgba(13, 148, 136, 0.22);
}

.dash-widget--tip {
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.55), var(--surface));
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.55;
}

.dash-widget__title {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.dash-flow__row {
  display: grid;
  grid-template-columns: 5.25rem 1fr auto;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.dash-flow__row:last-child {
  margin-bottom: 0;
}

.dash-flow__label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}

.dash-flow__track {
  height: 10px;
  border-radius: 999px;
  background: var(--bg);
  overflow: hidden;
}

.dash-flow__fill {
  height: 100%;
  border-radius: 999px;
  min-width: 4px;
  transition: width 0.45s ease;
}

.dash-flow__fill--in {
  background: linear-gradient(90deg, var(--accent), #0f766e);
}

.dash-flow__fill--out {
  background: linear-gradient(90deg, #fb923c, var(--danger));
}

.dash-flow__val {
  font-size: 0.76rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.dash-compare__head {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.dash-compare__line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.42rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.dash-compare__line:last-of-type {
  border-bottom: none;
}

.dash-compare__note {
  margin: 0.65rem 0 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
}

.dash-compare__label {
  color: var(--muted);
}

.dash-delta--good {
  color: var(--success);
  font-weight: 600;
  white-space: nowrap;
}

.dash-delta--bad {
  color: var(--danger);
  font-weight: 600;
  white-space: nowrap;
}

.dash-delta--neutral {
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.dash-snap__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.35rem 0;
  font-size: 0.86rem;
}

.dash-snap__row strong {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.dash-snap__note {
  margin: 0.55rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.45;
}

.dash-exp__item {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.38rem 0;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--line);
}

.dash-exp__item:last-child {
  border-bottom: none;
}

.dash-exp__label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-exp__amt {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--danger);
  opacity: 0.92;
  white-space: nowrap;
}

.dash-exp__empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.dash-tip__label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.section-head {
  margin: 1.5rem 0 0.75rem;
}

.dashboard-layout__main > .section-head {
  margin-top: 0;
}

.section-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.section-head--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* KPIs: primero "Qué te quedó" a ancho completo; debajo recibido y salió en 2 columnas */
.grid--stats-primary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 600px) {
  .grid--stats-primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-card--balance-hero {
    grid-column: 1 / -1;
  }
}

/* Pendientes / préstamos: 1 → 2 columnas (más legible que 4 en fila) */
.grid--stats-secondary {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 520px) {
  .grid--stats-secondary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Tercera tarjeta: ancho de las dos columnas (sin hueco vacío) */
  .grid--stats-secondary .stat-card--span-full {
    grid-column: 1 / -1;
  }
}

/* En pantallas un poco más anchas, reparte el contenido en fila (responsive) */
@media (min-width: 640px) {
  .grid--stats-secondary .stat-card--span-full {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "label val"
      "hint val";
    column-gap: 1.25rem;
    row-gap: 0.35rem;
    align-items: center;
  }

  .grid--stats-secondary .stat-card--span-full .stat-card__label {
    grid-area: label;
    margin-bottom: 0;
  }

  .grid--stats-secondary .stat-card--span-full .stat-card__value {
    grid-area: val;
    justify-self: end;
    font-size: 1.45rem;
  }

  .grid--stats-secondary .stat-card--span-full .stat-card__hint {
    grid-area: hint;
    margin-top: 0;
    max-width: 42rem;
  }
}

.stat-card {
  margin: 0;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.stat-card--muted {
  border-color: var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  background: var(--surface);
}

.stat-card__label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 0.35rem;
}

.stat-card__value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat-card__hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.stat-card--clickable {
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.stat-card--clickable:hover {
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.stat-card--clickable-expense:hover {
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 2px 12px rgba(220, 38, 38, 0.07);
}

.stat-card--clickable:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.stat-card--clickable-expense:focus {
  outline-color: var(--danger);
}

.stat-card--clickable-pending:hover {
  border-color: rgba(217, 119, 6, 0.45);
  box-shadow: 0 2px 12px rgba(217, 119, 6, 0.1);
}

.stat-card--clickable-pending:focus {
  outline-color: var(--warning);
}

.stat-card--clickable:focus:not(:focus-visible) {
  outline: none;
}

.stat-card__tap-hint {
  margin: 0.45rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.stat-card__tap-hint::after {
  content: "ⓘ";
  font-size: 0.75rem;
  opacity: 0.65;
}

.stat-card--accent .stat-card__value {
  color: var(--accent);
}

.stat-card--expense .stat-card__value {
  color: var(--danger);
}

.stat-card--balance .stat-card__value.positive {
  color: var(--success);
}

.stat-card--balance .stat-card__value.negative {
  color: var(--danger);
}

.stat-card__kicker {
  margin: 0 0 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.stat-card--balance-hero {
  padding: 1.2rem 1.25rem;
  border-width: 2px;
  box-shadow: 0 4px 22px rgba(15, 23, 42, 0.09);
}

.stat-card--balance-hero .stat-card__label {
  font-size: 0.76rem;
}

.stat-card--balance-hero .stat-card__value {
  font-size: clamp(1.55rem, 4.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.stat-card--balance-hero .stat-card__hint {
  font-size: 0.8rem;
  max-width: 36rem;
  line-height: 1.4;
}

.stat-card--balance-hero--positive {
  border-color: rgba(5, 150, 105, 0.45);
  background: linear-gradient(165deg, rgba(5, 150, 105, 0.1), var(--surface) 55%);
}

.stat-card--balance-hero--positive .stat-card__kicker {
  color: var(--success);
}

.stat-card--balance-hero--danger {
  border-color: rgba(220, 38, 38, 0.4);
  background: linear-gradient(165deg, rgba(220, 38, 38, 0.08), var(--surface) 55%);
}

.stat-card--balance-hero--danger .stat-card__kicker {
  color: var(--danger);
}

.hint--card {
  background: var(--surface);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.list-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--surface);
  padding: 0.9rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.list-item__main {
  min-width: 0;
}

.list-item__title {
  font-weight: 600;
  font-size: 0.9rem;
}

.list-item__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.list-item__amount {
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}

.list-item__amount.income {
  color: var(--success);
}

.list-item__amount.expense {
  color: var(--danger);
}

.list-item__amount.extra {
  color: var(--accent);
}

.badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: var(--bg);
  color: var(--muted);
  margin-right: 0.35rem;
  border: 1px solid var(--line);
  vertical-align: middle;
}

.badge--income {
  color: var(--success);
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.35);
}

.badge--extra {
  color: #0f766e;
  background: var(--accent-dim);
  border-color: rgba(13, 148, 136, 0.35);
}

.badge--expense {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.35);
}

.badge-legend {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(241, 245, 249, 0.55);
}

.badge-legend__title {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.badge-legend__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
}

.badge-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.badge-legend__item .badge {
  margin-right: 0;
}

.badge-legend__desc {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .badge-legend__desc {
    white-space: normal;
    max-width: 8rem;
    line-height: 1.25;
  }
}

.badge-notif-legend {
  margin: 0 0 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed var(--line);
}

.badge-notif-legend__title {
  margin: 0 0 0.4rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.badge-notif-legend__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.badge-notif-legend__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}

.badge-notif-legend__list li:last-child {
  margin-bottom: 0;
}

.badge-notif-legend__chip {
  flex-shrink: 0;
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.12rem 0.38rem;
  border-radius: 5px;
  border: 1px solid transparent;
  line-height: 1.2;
}

.badge-notif-legend__chip--danger {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.35);
}

.badge-notif-legend__chip--danger-soft {
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.4);
}

.badge-notif-legend__chip--warning {
  color: var(--warning);
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.4);
}

.badge-notif-legend__chip--success {
  color: var(--success);
  background: rgba(5, 150, 105, 0.12);
  border-color: rgba(5, 150, 105, 0.35);
}

.badge-notif-legend__chip--muted {
  color: var(--muted);
  background: var(--bg);
  border-color: var(--line);
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.card {
  margin: 0;
  flex-shrink: 0;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.card__head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--line);
}

.card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.card__sub {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.card__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}

.card__row strong {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}

.pay-history {
  margin: 0;
  padding: 0 1rem 1rem;
  list-style: none;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}

.pay-history__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}

.pay-history__row:last-child {
  border-bottom: none;
}

.pay-history__main {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.pay-history__main > span:last-child {
  flex-shrink: 0;
  white-space: nowrap;
}

.reminders-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.reminders-list__item {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.reminders-list__item:last-child {
  border-bottom: none;
}

.reminders-list__item--overdue {
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  border-left: 3px solid var(--danger);
}

.reminders-list__item--soon {
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  border-left: 3px solid var(--warning);
}

.reminders-list__item--owe {
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  border-left: 3px solid var(--warning);
}

.reminders-list__item--ok {
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  border-left: 3px solid rgba(5, 150, 105, 0.45);
}

.reminders-list__item--none {
  padding-left: 0.5rem;
  margin-left: -0.5rem;
  border-left: 3px solid var(--line);
}

.reminders-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.reminders-list__badge {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 0.18rem 0.42rem;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--bg);
}

.reminders-list__item--overdue .reminders-list__badge {
  color: var(--danger);
  background: rgba(220, 38, 38, 0.12);
  border-color: rgba(220, 38, 38, 0.38);
}

.reminders-list__item--soon .reminders-list__badge {
  color: var(--warning);
  background: rgba(217, 119, 6, 0.12);
  border-color: rgba(217, 119, 6, 0.42);
}

.reminders-list__item--owe .reminders-list__badge {
  color: #b45309;
  background: rgba(217, 119, 6, 0.14);
  border-color: rgba(217, 119, 6, 0.45);
}

.reminders-list__item--ok .reminders-list__badge {
  color: var(--success);
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.38);
}

.reminders-list__item--none .reminders-list__badge {
  color: var(--muted);
  background: var(--surface);
  border-color: var(--line);
}

.reminders-list__amt {
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.reminders-list__title {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.reminders-list__meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.modal__footer--split {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-app-dialog__message {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text);
}

.modal-app-dialog__footer--alert-only {
  justify-content: flex-end;
}

.pending-positive {
  color: var(--warning);
  font-weight: 600;
}

.pending-done {
  color: var(--success);
  font-weight: 600;
}

.btn {
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  border: none;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(13, 148, 136, 0.35);
}

.btn--primary:hover {
  background: #0f766e;
}

.btn--ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
}

.btn--ghost:hover {
  color: var(--text);
  border-color: #cbd5e1;
}

.btn--small {
  font-size: 0.78rem;
  padding: 0.35rem 0.65rem;
}

.btn--danger {
  color: var(--danger);
  border-color: #fecaca;
}

.topbar__refresh {
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.4rem 0.65rem;
}

.modal[hidden] {
  display: none !important;
}

.modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
}

@media (min-width: 540px) {
  .modal:not([hidden]) {
    align-items: center;
    padding: 1rem;
  }
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
}

.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: min(90dvh, 640px);
  overflow: auto;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: var(--shadow);
  animation: slideUp 0.25s ease;
}

@media (min-width: 540px) {
  .modal__dialog {
    border-radius: var(--radius);
  }
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0.9;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1rem 0.5rem;
  border-bottom: 1px solid var(--line);
}

.modal__head h3 {
  margin: 0;
  font-size: 1.05rem;
}

.modal__body {
  padding: 1rem;
}

.modal__body--prose {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text);
}

.modal__body--prose p {
  margin: 0 0 0.75rem;
  color: var(--muted);
}

.modal__body--prose ul {
  margin: 0;
  padding-left: 1.15rem;
}

.modal__body--prose li {
  margin: 0.35rem 0;
}

.modal__body--prose .modal__total-line {
  margin-top: 0;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.modal__empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.modal__income-lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.modal__income-lines li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}

.modal__income-lines li:last-child {
  border-bottom: none;
}

.modal__income-obs {
  min-width: 0;
  flex: 1;
  color: var(--text);
}

.modal__income-amt {
  flex-shrink: 0;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

.modal__total-line--expense {
  color: var(--danger);
}

.modal__income-amt--expense {
  color: var(--danger);
}

.modal__total-line--pending {
  color: var(--warning);
}

.modal__income-amt--pending {
  color: var(--warning);
}

.modal__footer {
  padding: 0 1rem 1rem;
  display: flex;
  justify-content: flex-end;
}

.modal__x {
  font-size: 1.5rem;
  line-height: 1;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem;
}

.modal__context {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.form {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.field input,
.field select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fafafa;
}

.field input:focus,
.field select:focus {
  outline: 2px solid var(--accent-dim);
  border-color: var(--accent);
  background: var(--surface);
}

.form__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 1rem);
  transform: translateX(-50%);
  z-index: 200;
  background: var(--text);
  color: #fff;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  max-width: calc(100% - 2rem);
  text-align: center;
}

@media (min-width: 900px) {
  .toast {
    bottom: 2rem;
  }
}

.empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.error-banner {
  background: #fef2f2;
  color: #991b1b;
  padding: 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

/* ----- Tema día / noche (preferencia en BD) ----- */
.theme-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

@media (max-width: 379px) {
  .theme-wrap__text {
    display: none;
  }

  .theme-wrap {
    gap: 0;
  }
}

.theme-wrap__text {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  user-select: none;
}

.theme-switch {
  position: relative;
  display: inline-block;
  width: 2.5rem;
  height: 1.35rem;
  flex-shrink: 0;
  cursor: pointer;
}

.theme-switch__input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.theme-switch__slider {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 999px;
  transition: background 0.2s ease;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.theme-switch__slider::before {
  content: "";
  position: absolute;
  height: 1.05rem;
  width: 1.05rem;
  left: 2px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease;
}

.theme-switch__input:focus-visible + .theme-switch__slider {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.theme-switch__input:checked + .theme-switch__slider {
  background: rgba(13, 148, 136, 0.45);
  border-color: rgba(13, 148, 136, 0.35);
}

.theme-switch__input:checked + .theme-switch__slider::before {
  transform: translate(1.1rem, -50%);
}

html[data-theme="dark"] .theme-switch__slider {
  background: #334155;
  border-color: #475569;
}

html[data-theme="dark"] .theme-switch__input:checked + .theme-switch__slider {
  background: rgba(45, 212, 191, 0.35);
  border-color: rgba(45, 212, 191, 0.4);
}

/* Modo noche */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #1e293b;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --line: #334155;
  --accent: #2dd4bf;
  --accent-dim: rgba(45, 212, 191, 0.14);
  --danger: #f87171;
  --warning: #fbbf24;
  --success: #4ade80;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
  --scrollbar-track: #1a2336;
  --scrollbar-thumb: #475569;
  --scrollbar-thumb-hover: #64748b;
  --scrollbar-thumb-active: #94a3b8;
}

html[data-theme="dark"] body {
  background: var(--bg);
}

html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select {
  background: #0f172a;
  border-color: var(--line);
  color: var(--text);
}

html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus {
  background: #1e293b;
}

html[data-theme="dark"] .toast {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
}

html[data-theme="dark"] .error-banner {
  background: rgba(127, 29, 29, 0.35);
  color: #fecaca;
}

html[data-theme="dark"] .topbar__bell:hover {
  background: rgba(148, 163, 184, 0.12);
}

html[data-theme="dark"] .topbar__notif.notif-open .topbar__bell {
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.25);
  box-shadow: 0 0 0 2px rgba(45, 212, 191, 0.12);
}

html[data-theme="dark"] .dashboard-hero {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1), rgba(15, 23, 42, 0.4));
  border-color: rgba(45, 212, 191, 0.18);
}

html[data-theme="dark"] .dash-widget--tip {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), var(--surface));
}

html[data-theme="dark"] .dashboard-secondary-block {
  background: rgba(30, 41, 59, 0.55);
  border-color: var(--line);
}

html[data-theme="dark"] .stat-card {
  border-color: rgba(51, 65, 85, 0.95);
}

html[data-theme="dark"] .stat-card--muted {
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--line);
  box-shadow: none;
}

html[data-theme="dark"] .stat-card--balance-hero--positive {
  background: linear-gradient(165deg, rgba(74, 222, 128, 0.14), var(--surface) 52%);
  border-color: rgba(74, 222, 128, 0.38);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .stat-card--balance-hero--danger {
  background: linear-gradient(165deg, rgba(248, 113, 113, 0.12), var(--surface) 52%);
  border-color: rgba(248, 113, 113, 0.38);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .notification-panel__head {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.95), var(--surface));
}

html[data-theme="dark"] .notification-panel__footer {
  background: rgba(15, 23, 42, 0.5);
}

html[data-theme="dark"] .modal__backdrop {
  background: rgba(0, 0, 0, 0.55);
}

html[data-theme="dark"] .brand__mark {
  box-shadow: 0 4px 14px rgba(45, 212, 191, 0.25);
}

html[data-theme="dark"] .badge--income {
  background: rgba(74, 222, 128, 0.14);
  border-color: rgba(74, 222, 128, 0.42);
}

html[data-theme="dark"] .badge--extra {
  color: var(--accent);
  background: rgba(45, 212, 191, 0.12);
  border-color: rgba(45, 212, 191, 0.38);
}

html[data-theme="dark"] .badge--expense {
  background: rgba(248, 113, 113, 0.14);
  border-color: rgba(248, 113, 113, 0.42);
}

html[data-theme="dark"] .badge-legend {
  background: rgba(15, 23, 42, 0.72);
}

html[data-theme="dark"] .reminders-list__item--overdue .reminders-list__badge {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.48);
}

html[data-theme="dark"] .reminders-list__item--soon .reminders-list__badge {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.42);
}

html[data-theme="dark"] .reminders-list__item--owe .reminders-list__badge {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
}

html[data-theme="dark"] .reminders-list__item--ok .reminders-list__badge {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.4);
}

html[data-theme="dark"] .reminders-list__item--ok {
  border-left-color: rgba(74, 222, 128, 0.55);
}

html[data-theme="dark"] .badge-notif-legend__chip--danger {
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.45);
}

html[data-theme="dark"] .badge-notif-legend__chip--danger-soft {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.4);
}

html[data-theme="dark"] .badge-notif-legend__chip--warning {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.42);
}

html[data-theme="dark"] .badge-notif-legend__chip--success {
  background: rgba(74, 222, 128, 0.12);
  border-color: rgba(74, 222, 128, 0.4);
}
