.crm-reminder-counter {
  background: #D99118;
}

.app-alert-stack {
  position: fixed;
  z-index: 95;
  top: 82px;
  right: 18px;
  width: min(370px, calc(100vw - 28px));
  max-height: calc(100vh - 100px);
  display: grid;
  gap: 10px;
  overflow-y: auto;
  overscroll-behavior: contain;
  pointer-events: none;
}

.app-alert-toast {
  position: relative;
  width: min(350px, 100%);
  margin-left: auto;
  min-width: 0;
  border: 1px solid #D4DEE5;
  border-left: 4px solid #109A83;
  border-radius: 7px;
  background: #FFFFFF;
  color: #213047;
  box-shadow: 0 16px 38px rgba(25, 42, 60, 0.2);
  pointer-events: auto;
  animation: crm-reminder-enter 180ms ease-out;
}

.app-alert-toast > header {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 5px;
}

.app-alert-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #E5F6F2;
  color: #07836F;
}

.app-alert-mark svg,
.app-alert-close svg {
  width: 17px;
  height: 17px;
}

.app-alert-heading {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.app-alert-heading small {
  overflow: hidden;
  color: #087E72;
  font-size: 10px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-alert-heading strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-alert-close {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #718095;
  cursor: pointer;
}

.app-alert-close:hover {
  background: #EEF3F5;
  color: #26384D;
}

.app-alert-content {
  display: grid;
  gap: 7px;
  padding: 0 10px 10px 52px;
}

.app-alert-content p {
  overflow: hidden;
  margin: 0;
  color: #3E4F64;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-alert-footer {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.app-alert-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #718095;
  font-size: 11px;
  white-space: nowrap;
}

.app-alert-count {
  padding: 2px 6px;
  border-radius: 10px;
  background: #E5F6F2;
  color: #087E72;
  font-weight: 800;
}

.app-alert-separator[hidden],
.app-alert-meta time[hidden] + .app-alert-separator {
  display: none;
}

.app-alert-button {
  min-height: 28px;
  padding: 5px 10px;
  border: 1px solid #008F83;
  border-radius: 6px;
  background: #FFFFFF;
  color: #087E72;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.app-alert-button.primary {
  background: #008F83;
  color: #FFFFFF;
}

.app-alert-button:hover {
  border-color: #087E72;
  background: #087E72;
  color: #FFFFFF;
}

.crm-reminder-toast {
  position: relative;
  min-width: 0;
  overflow: visible;
  border: 1px solid #D7E0E7;
  border-left: 4px solid #D99118;
  border-radius: 7px;
  background: #FFFFFF;
  color: #213047;
  box-shadow: 0 16px 38px rgba(25, 42, 60, 0.2);
  pointer-events: auto;
  animation: crm-reminder-enter 180ms ease-out;
}

.crm-reminder-toast > header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 10px;
  padding: 12px 12px 9px;
}

.crm-reminder-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #FFF3DD;
  color: #C77F08;
}

.crm-reminder-mark svg,
.crm-reminder-close svg {
  width: 19px;
  height: 19px;
}

.crm-reminder-heading {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.crm-reminder-heading small {
  color: #A56A08;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.crm-reminder-heading strong {
  overflow: hidden;
  font-size: 14px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-reminder-close {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #718095;
  cursor: pointer;
}

.crm-reminder-close:hover {
  background: #EEF3F5;
  color: #26384D;
}

.crm-reminder-content {
  display: grid;
  gap: 3px;
  padding: 0 14px 11px 60px;
}

.crm-reminder-content p {
  margin: 0;
  color: #3E4F64;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.crm-reminder-content time {
  color: #718095;
  font-size: 11px;
  text-transform: capitalize;
}

.crm-reminder-error {
  margin: 0 12px 9px;
  padding: 7px 9px;
  border-left: 3px solid #B8434B;
  background: #FFF0F1;
  color: #9E343B;
  font-size: 11px;
}

.crm-reminder-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  padding: 9px 12px;
  border-top: 1px solid #E2E8ED;
  background: #F8FAFB;
  border-radius: 0 0 6px 3px;
}

.crm-reminder-button,
.crm-reminder-snooze-option {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #CDD8E0;
  border-radius: 6px;
  background: #FFFFFF;
  color: #34465B;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.crm-reminder-button:hover,
.crm-reminder-snooze-option:hover {
  border-color: #7BB9BD;
  background: #F0FAF9;
  color: #087E83;
}

.crm-reminder-button.primary {
  border-color: #008F97;
  background: #008F97;
  color: #FFFFFF;
}

.crm-reminder-button.primary:hover {
  background: #087E83;
}

.crm-reminder-toast.busy {
  opacity: 0.75;
}

.crm-reminder-toast button:disabled {
  cursor: wait;
}

.crm-reminder-snooze {
  position: relative;
}

.crm-reminder-snooze-menu {
  position: absolute;
  z-index: 2;
  right: 0;
  top: calc(100% + 5px);
  min-width: 96px;
  padding: 5px;
  border: 1px solid #CED9E1;
  border-radius: 6px;
  background: #FFFFFF;
  box-shadow: 0 10px 24px rgba(25, 42, 60, 0.18);
}

.crm-reminder-snooze-menu[hidden] {
  display: none;
}

.crm-reminder-snooze-option {
  width: 100%;
  display: block;
  border-color: transparent;
  text-align: left;
}

@keyframes crm-reminder-enter {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .app-alert-stack {
    top: 74px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 84px);
  }

  .app-alert-toast {
    width: 100%;
  }

  .crm-reminder-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .crm-reminder-button,
  .crm-reminder-snooze,
  .crm-reminder-snooze > button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-alert-toast,
  .crm-reminder-toast {
    animation: none;
  }
}
