/* Verdant Plant Care Reminders & Reminder Dialogs */

.reminders-section,
.garden-reminder-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: var(--surface, #ffffff);
  border: 1px solid var(--pale-sage, #c8dbbf);
  border-radius: 14px;
}

.reminders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 12px;
}

.reminders-heading,
.reminders-header h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--garden-ink, #1a1f14);
  letter-spacing: -0.01em;
}

.reminders-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.smart-reminders-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-height: 38px;
  padding: 0 16px;
  background: linear-gradient(135deg, #2e4a23 0%, #3e6330 100%) !important;
  color: #ffffff !important;
  border: 1px solid #2e4a23 !important;
  border-radius: var(--garden-radius-pill, 100px) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(46, 74, 35, 0.25);
  transition: all 0.15s ease;
  line-height: 1;
  box-sizing: border-box;
}

.smart-reminders-btn:hover,
.smart-reminders-btn:focus-visible {
  background: linear-gradient(135deg, #223819 0%, #2e4a23 100%) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 74, 35, 0.35);
}

.smart-sparkle-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.reminder-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  min-height: 38px;
  padding: 0 16px;
  background: var(--garden-mist, #eef3eb) !important;
  color: var(--garden-moss, #2e4a23) !important;
  border: 1px solid var(--garden-pale-sage, #c2d1ba) !important;
  border-radius: var(--garden-radius-pill, 100px) !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  box-sizing: border-box;
}

.reminder-add-btn:hover,
.reminder-add-btn:focus-visible {
  background: #e2ecdd !important;
  border-color: var(--garden-sage, #5a7550) !important;
  color: var(--garden-moss-hover, #223819) !important;
  transform: translateY(-1px);
}

.reminder-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.reminder-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface, #ffffff);
  border: 1px solid var(--pale-sage, #c8dbbf);
  border-radius: 14px;
  gap: 14px;
  box-shadow: 0 2px 8px rgba(26, 31, 20, 0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}

.reminder-card:hover {
  box-shadow: 0 4px 14px rgba(26, 31, 20, 0.08);
}

.reminder-card-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 12px;
  background: var(--mist, #eef3eb);
  border: 1px solid var(--pale-sage, #c2d1ba);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--moss, #3d5c2e);
  flex-shrink: 0;
}

.reminder-card-icon .reminder-icon-svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.reminder-card.status-overdue {
  border-color: rgba(184, 92, 56, 0.3);
  background: #fdf8f6;
}

.reminder-card.status-due_today {
  border-color: rgba(212, 147, 58, 0.3);
  background: #fdfbf7;
}

.reminder-card.status-upcoming {
  border-color: var(--pale-sage, #c8dbbf);
}

.reminder-card.status-paused {
  opacity: 0.75;
}

.reminder-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 180px;
}

.reminder-title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink, #1a1f14);
}

.reminder-meta {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  color: #5a6654;
}

.reminder-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

.badge-overdue {
  background: #fde8d8;
  color: var(--rust, #b85c38);
}

.badge-due_today {
  background: #fef3e2;
  color: var(--amber, #d4933a);
}

.badge-upcoming {
  background: var(--mist, #e8ede4);
  color: var(--moss, #3d5c2e);
}

.badge-paused {
  background: var(--parchment, #f5f2eb);
  color: #6a7864;
}

.reminder-actions {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn-complete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--garden-moss, #2e4a23) !important;
  color: #ffffff !important;
  border: 1px solid var(--garden-moss, #2e4a23) !important;
  border-radius: 100px !important;
  padding: 0 20px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  height: 44px !important;
  min-height: 44px !important;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(46, 74, 35, 0.2);
  transition: all 0.15s ease;
  line-height: 1;
  box-sizing: border-box;
}

.btn-complete:hover,
.btn-complete:focus-visible {
  background: var(--garden-moss-hover, #223819) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(46, 74, 35, 0.3);
}

.reminder-actions .btn-more,
.reminder-actions .reminder-more,
.reminder-actions > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 1px solid var(--garden-pale-sage, #c2d1ba);
  background: var(--garden-surface, #ffffff);
  color: #5a6654;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  box-sizing: border-box;
}

.reminder-actions .btn-more:hover,
.reminder-actions .btn-more:focus-visible,
.reminder-actions .reminder-more:hover,
.reminder-actions .reminder-more:focus-visible,
.reminder-actions > button:hover,
.reminder-actions > button:focus-visible {
  background: var(--garden-mist, #eef3eb);
  border-color: var(--garden-sage, #5a7550);
  color: var(--garden-ink, #1a1f14);
}

.reminder-action-menu {
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 10;
  display: grid;
  min-width: 10rem;
  padding: 0.4rem;
  gap: 0.25rem;
  background: var(--surface, #ffffff);
  border: 1px solid var(--pale-sage, #c8dbbf);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(26, 31, 20, 0.12);
}

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

.reminder-action-menu button {
  width: 100%;
  padding: 8px 12px;
  border: none;
  background: transparent;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--ink, #1a1f14);
  border-radius: 6px;
  cursor: pointer;
}

.reminder-action-menu button:hover,
.reminder-action-menu button:focus-visible {
  background: var(--mist, #e8ede4);
}

/* Snooze Dialog */
.snooze-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}

.snooze-dialog-overlay.is-hidden {
  display: none;
}

.snooze-dialog {
  width: min(100%, 26rem);
  padding: 1.5rem;
  background: var(--surface, #ffffff);
  border: 1px solid var(--pale-sage, #c8dbbf);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(26, 31, 20, 0.16);
}

.snooze-dialog h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--moss, #3d5c2e);
  margin-bottom: 1rem;
}

.snooze-dialog input,
.snooze-dialog button {
  min-height: 44px;
}

.snooze-dialog input[type="date"] {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--pale-sage, #c8dbbf);
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  box-sizing: border-box;
}

.snooze-dialog button {
  margin-top: 1rem;
  margin-right: 0.5rem;
}

/* Reminder Editor Dialog */
.reminder-editor-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

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

.reminder-editor-modal {
  background: var(--surface, #ffffff);
  border: 1px solid var(--pale-sage, #c8dbbf);
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.16);
  max-height: 90vh;
  overflow-y: auto;
}

.reminder-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.reminder-editor-header h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--ink, #1a1f14);
  margin: 0;
}

.reminder-editor-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  color: #5a6654;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
}

.reminder-editor-close:hover,
.reminder-editor-close:focus-visible {
  background: var(--mist, #e8ede4);
  color: var(--ink, #1a1f14);
}

.reminder-editor-notice {
  font-size: 0.85rem;
  color: #5a6654;
  background: var(--cream, #faf9f5);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--sage, #7a9e6a);
  line-height: 1.45;
}

.reminder-editor-error {
  background: #fdf8f6;
  color: var(--rust, #b85c38);
  border: 1px solid rgba(184, 92, 56, 0.3);
  padding: 0.75rem 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

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

/* Suggestions Container */
.reminder-suggestions-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.reminder-suggestions-intro {
  font-size: 0.9rem;
  color: var(--ink, #1a1f14);
  font-weight: 500;
}

.reminder-suggestions-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.reminder-suggestion-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cream, #faf9f5);
  border: 1px solid var(--pale-sage, #c8dbbf);
  border-radius: 10px;
  cursor: pointer;
  min-height: 44px;
  font-size: 0.88rem;
  color: var(--ink, #1a1f14);
  transition: background 0.15s, border-color 0.15s;
}

.reminder-suggestion-item:hover {
  background: var(--mist, #e8ede4);
  border-color: var(--sage, #7a9e6a);
}

.reminder-suggestion-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--moss, #3d5c2e);
}

/* Reminder Form & Fields */
.reminder-editor-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.reminder-editor-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reminder-editor-field--row {
  display: flex;
  flex-direction: row;
  gap: 12px;
}

.reminder-editor-field--row > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.reminder-editor-field label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--moss, #3d5c2e);
}

.reminder-editor-field input,
.reminder-editor-field select,
.reminder-editor-field textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--pale-sage, #c8dbbf);
  border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--ink, #1a1f14);
  background: var(--surface, #ffffff);
  min-height: 44px;
  box-sizing: border-box;
}

.reminder-editor-field textarea {
  min-height: 80px;
  resize: vertical;
}

.reminder-editor-field input:focus-visible,
.reminder-editor-field select:focus-visible,
.reminder-editor-field textarea:focus-visible {
  outline: 2px solid var(--moss, #3d5c2e);
  outline-offset: 2px;
}

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

.reminder-editor-button {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 100px;
  min-height: 44px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.reminder-editor-button--primary {
  background: var(--moss, #3d5c2e);
  color: #fff;
  border: none;
}

.reminder-editor-button--primary:hover {
  background: #2e4622;
}

.reminder-editor-button--secondary {
  background: transparent;
  color: #5a6654;
  border: 1.5px solid var(--pale-sage, #c8dbbf);
}

.reminder-editor-button--secondary:hover {
  border-color: var(--sage, #7a9e6a);
  background: var(--mist, #e8ede4);
}

@media (max-width: 640px) {
  .reminder-editor-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .reminder-editor-modal {
    max-width: 100%;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
  }
  .reminder-editor-field--row {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Smart Reminders Dialog & Switch Styles */

.smart-reminders-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 31, 20, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.smart-reminders-overlay.hidden {
  display: none !important;
}

.smart-reminders-modal {
  background: var(--garden-surface, #ffffff);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--garden-pale-sage, #c2d1ba);
  overflow: hidden;
  animation: smartModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes smartModalFadeIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.smart-reminders-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem 1.75rem 1rem;
  border-bottom: 1px solid var(--garden-mist, #eef3eb);
}

.smart-reminders-title-group h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--garden-ink, #1a1f14);
}

.smart-reminders-subtitle {
  margin: 4px 0 0;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  color: var(--garden-moss, #2e4a23);
  font-weight: 500;
}

.smart-reminders-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #7a8a72;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.15s ease;
}

.smart-reminders-close:hover {
  background: var(--garden-mist, #eef3eb);
  color: var(--garden-ink, #1a1f14);
}

.smart-reminders-notices {
  padding: 0.75rem 1.75rem 0;
}

.smart-reminders-alert {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  line-height: 1.45;
}

.smart-reminders-alert--info {
  background: #f3f7f0;
  border: 1px solid #d5e5cf;
  color: #354e2a;
}

.smart-reminders-alert-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
}

.smart-reminders-error {
  margin: 0.75rem 1.75rem 0;
  padding: 10px 14px;
  background: #fdf2f0;
  border: 1px solid #f2c7c0;
  border-radius: 10px;
  color: #a82e1e;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
}

.smart-reminders-loading {
  padding: 3rem 2rem;
  text-align: center;
  color: #5a6654;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
}

.smart-reminders-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--garden-pale-sage, #c2d1ba);
  border-top-color: var(--garden-moss, #2e4a23);
  border-radius: 50%;
  margin: 0 auto 12px;
  animation: smartSpin 0.8s linear infinite;
}

@keyframes smartSpin {
  to { transform: rotate(360deg); }
}

.smart-reminders-content {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.smart-reminders-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.smart-reminder-card {
  background: #ffffff;
  border: 1px solid var(--garden-pale-sage, #c2d1ba);
  border-radius: 14px;
  padding: 14px;
  transition: all 0.2s ease;
}

.smart-reminder-card.has-existing {
  background: #fbfdf9;
  border-color: #d8e2d4;
}

.smart-reminder-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.smart-reminder-switch-container {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.smart-reminder-toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.smart-reminder-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  background: #d0d9ca;
  border-radius: 24px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.smart-reminder-switch::before {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.smart-reminder-toggle:checked + .smart-reminder-switch {
  background: var(--garden-moss, #2e4a23);
}

.smart-reminder-toggle:checked + .smart-reminder-switch::before {
  transform: translateX(18px);
}

.smart-reminder-type-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--garden-ink, #1a1f14);
}

.smart-reminder-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--garden-mist, #eef3eb);
  border-radius: 6px;
  color: var(--garden-moss, #2e4a23);
}

.smart-reminder-svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.smart-reminder-cadence-badge {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a5c43;
  background: var(--garden-mist, #eef3eb);
  padding: 4px 10px;
  border-radius: 100px;
}

.smart-reminder-existing-notice {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
}

.badge-existing {
  background: #eef2eb;
  color: #556b4f;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 500;
}

.existing-desc {
  color: #72826c;
}

.smart-reminder-card-body {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--garden-mist, #eef3eb);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: max-height 0.2s ease, opacity 0.2s ease;
}

.smart-reminder-card-body.is-collapsed {
  display: none;
}

.smart-reminder-field label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5a6654;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.smart-reminder-field input[type="text"],
.smart-reminder-field input[type="number"],
.smart-reminder-field input[type="time"],
.smart-reminder-field textarea {
  width: 100%;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  padding: 8px 12px;
  border: 1px solid var(--garden-pale-sage, #c2d1ba);
  border-radius: 8px;
  background: #ffffff;
  color: var(--garden-ink, #1a1f14);
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s ease;
}

.smart-reminder-field input:focus,
.smart-reminder-field textarea:focus {
  border-color: var(--garden-moss, #2e4a23);
  box-shadow: 0 0 0 2px rgba(46, 74, 35, 0.15);
}

.smart-reminder-field--row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.smart-reminders-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--garden-mist, #eef3eb);
  background: #fafcf9;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.smart-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 100px;
  min-height: 42px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  box-sizing: border-box;
}

.smart-btn--primary {
  background: var(--garden-moss, #2e4a23);
  color: #ffffff;
  border: 1px solid var(--garden-moss, #2e4a23);
  box-shadow: 0 2px 8px rgba(46, 74, 35, 0.25);
}

.smart-btn--primary:hover:not(:disabled),
.smart-btn--primary:focus-visible:not(:disabled) {
  background: var(--garden-moss-hover, #223819);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(46, 74, 35, 0.35);
}

.smart-btn--primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.smart-btn--secondary {
  background: transparent;
  color: #5a6654;
  border: 1.5px solid var(--garden-pale-sage, #c2d1ba);
}

.smart-btn--secondary:hover:not(:disabled),
.smart-btn--secondary:focus-visible:not(:disabled) {
  border-color: var(--garden-sage, #5a7550);
  background: var(--garden-mist, #eef3eb);
  color: var(--garden-ink, #1a1f14);
}

@media (max-width: 640px) {
  .reminders-section,
  .garden-reminder-section {
    padding: 1rem 0.85rem;
  }
  .reminders-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .reminders-heading,
  .reminders-header h3 {
    font-size: 1.35rem;
  }
  .reminders-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 8px;
  }
  .smart-reminders-btn,
  .reminder-add-btn {
    width: 100%;
    justify-content: center;
    font-size: 0.8rem !important;
    padding: 0 8px !important;
    min-height: 40px;
    white-space: nowrap;
  }
  .smart-reminders-overlay {
    padding: 0;
    align-items: flex-end;
  }
  .smart-reminders-modal {
    max-width: 100%;
    max-height: 88vh;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
  }
  .smart-reminder-field--row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .reminders-section *,
  .garden-reminder-section *,
  .reminder-editor-overlay *,
  .smart-reminders-overlay *,
  .snooze-dialog-overlay * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
