.reminder-rail {
  position: fixed;
  right: 28px;
  bottom: 0;
  z-index: 3000;
  display: inline-flex;
  align-items: flex-end;
  gap: 0;
}

.reminder-dock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(55, 53, 47, 0.12);
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  color: #37352f;
  cursor: pointer;
}

.reminder-dock--voice {
  border-right: 0;
  border-radius: 14px 0 0 0;
}

.reminder-dock--panel {
  position: relative;
  border-radius: 0;
}

.reminder-dock--todo {
  position: relative;
  border-left: 0;
  border-radius: 0;
}

.reminder-dock--tracker {
  position: relative;
  border-left: 0;
  border-radius: 0 14px 0 0;
}

.reminder-dock--voice.is-active,
#reminderVoiceBtn.is-active,
.reminder-dock--todo.is-open,
.reminder-dock--tracker.is-open {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.3);
}

.reminder-dock .icon-img {
  width: 16px;
  height: 16px;
}

.reminder-dock__count {
  position: absolute;
  top: 7px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #2f2f2f;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
}

#todoDockCount {
  background: var(--accent, #9b8af4);
}

.reminder-rail .hidden {
  display: none !important;
}

.reminder-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
}

.reminder-modal.hidden {
  display: none !important;
}

.reminder-toast-stack {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 160;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 36px));
  pointer-events: none;
}

.reminder-toast-stack.hidden {
  display: none !important;
}

.reminder-toast {
  pointer-events: auto;
  display: grid;
  gap: 8px;
  padding: 14px 14px 12px;
  border: 1px solid rgba(55, 53, 47, 0.12);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  color: #37352f;
}

.reminder-toast__eyebrow {
  color: rgba(55, 53, 47, 0.52);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reminder-toast__title {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.reminder-toast__meta {
  color: rgba(55, 53, 47, 0.58);
  font-size: 0.78rem;
  line-height: 1.4;
}

.reminder-toast__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 2px;
}

.reminder-voice-popup {
  position: fixed;
  right: 28px;
  bottom: 54px;
  z-index: 130;
  width: min(320px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid rgba(55, 53, 47, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  color: #37352f;
}

.reminder-voice-popup.hidden {
  display: none !important;
}

.reminder-voice-popup__eyebrow {
  color: rgba(55, 53, 47, 0.55);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reminder-voice-popup__title {
  margin: 6px 0 0;
  font-size: 1rem;
}

.reminder-voice-popup__status {
  margin: 8px 0 0;
  color: rgba(55, 53, 47, 0.72);
  font-size: 0.84rem;
  line-height: 1.45;
}

.reminder-voice-popup__preview {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(247, 246, 243, 0.9);
  color: #37352f;
  font-size: 0.82rem;
  line-height: 1.5;
}

.reminder-voice-popup__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}

.reminder-modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(247, 246, 243, 0.78);
  backdrop-filter: blur(8px);
}

.reminder-modal__panel {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(620px, calc(100vw - 40px));
  max-height: min(72vh, 760px);
  transform: translate(-50%, -50%);
  border: 1px solid rgba(55, 53, 47, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  overflow: hidden;
  color: #37352f;
}

.reminder-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px 14px;
  border-bottom: 1px solid rgba(55, 53, 47, 0.08);
  background: #ffffff;
}

.reminder-modal__eyebrow {
  margin: 0 0 6px;
  color: rgba(55, 53, 47, 0.55);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.reminder-modal__title {
  margin: 0;
  font-size: 1.25rem;
}

.reminder-modal__subtitle {
  margin: 6px 0 0;
  color: rgba(55, 53, 47, 0.55);
  font-size: 0.88rem;
  line-height: 1.45;
}

.reminder-modal__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reminder-modal__body {
  display: grid;
  gap: 16px;
  padding: 18px 22px 22px;
}

.reminder-composer {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(55, 53, 47, 0.08);
  border-radius: 16px;
  background: rgba(247, 246, 243, 0.55);
}

.reminder-composer__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.reminder-composer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 10px;
}

.reminder-composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.reminder-status {
  color: rgba(55, 53, 47, 0.55);
  font-size: 0.82rem;
  line-height: 1.4;
}

.reminder-status.is-live {
  color: #8a5a00;
}

.reminder-list-wrap {
  display: grid;
  gap: 12px;
}

.reminder-list-wrap__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}

.reminder-list-wrap__meta {
  color: rgba(55, 53, 47, 0.55);
}

.reminder-list {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.reminder-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(55, 53, 47, 0.08);
  border-radius: 14px;
  background: #ffffff;
}

.reminder-item.is-overdue {
  border-color: rgba(202, 138, 4, 0.22);
  background: rgba(255, 251, 235, 0.9);
}

.reminder-item__title {
  font-size: 0.94rem;
  font-weight: 600;
}

.reminder-item__meta {
  margin-top: 4px;
  color: rgba(55, 53, 47, 0.55);
  font-size: 0.78rem;
  line-height: 1.4;
}

.reminder-item__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.reminder-item__pill {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(55, 53, 47, 0.08);
  color: rgba(55, 53, 47, 0.55);
  font-size: 0.72rem;
}

.reminder-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(55, 53, 47, 0.1);
  border-radius: 999px;
  background: #ffffff;
  cursor: pointer;
}

.reminder-item__remove .icon-img {
  width: 14px;
  height: 14px;
}

.reminder-empty {
  padding: 18px 16px;
  border: 1px dashed rgba(55, 53, 47, 0.12);
  border-radius: 16px;
  color: rgba(55, 53, 47, 0.55);
  text-align: center;
  background: rgba(247, 246, 243, 0.52);
}

@media (max-width: 780px) {
  .reminder-toast-stack {
    top: 12px;
    left: 12px;
    width: calc(100vw - 24px);
  }

  .reminder-dock {
    width: 42px;
    height: 40px;
  }

  .reminder-rail {
    right: 16px;
    bottom: 0;
  }

  .reminder-voice-popup {
    right: 16px;
    bottom: 50px;
  }

  .reminder-modal__panel {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }

  .reminder-modal__header,
  .reminder-modal__body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .reminder-composer__row,
  .reminder-composer__grid {
    grid-template-columns: 1fr;
  }

  .reminder-composer__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .reminder-list-wrap__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .reminder-item {
    grid-template-columns: 1fr;
  }

  .reminder-item__actions {
    justify-content: space-between;
  }
}
