/* Prayer Experience — MP 06.1 (Foundation + Guided Prayer)
   Visual language mirrors the Bible reader and Home shells so the app
   feels coherent when the user switches tabs. Uses tokens.css palette. */

.prayer-shell {
  background: var(--color-cream-50);
}

.prayer-screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 0 0 6.5rem;
  color: var(--color-ink);
  overflow-y: auto;
}

/* -------- Hero -------- */

.prayer-hero {
  position: relative;
  padding: 0;
  overflow: hidden;
  border-bottom-left-radius: var(--radius-xl);
  border-bottom-right-radius: var(--radius-xl);
  color: var(--color-white);
  isolation: isolate;
  min-height: 22rem;
}
.prayer-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: -2;
  display: block;
}
.prayer-hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(24, 53, 41, 0) 45%,
    rgba(24, 53, 41, 0.55) 82%,
    rgba(24, 53, 41, 0.82) 100%
  );
  pointer-events: none;
}
.prayer-hero-logo {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 0.85rem);
  left: 0.9rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 4px 12px -6px rgba(24, 53, 41, 0.4);
  backdrop-filter: blur(6px);
}
.prayer-hero-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.prayer-hero-copy {
  position: absolute;
  left: 1.35rem;
  right: 1.35rem;
  bottom: 1.25rem;
  padding-top: calc(env(safe-area-inset-top, 0px) + 1rem);
  text-shadow: 0 1px 12px rgba(24, 53, 41, 0.5);
}
.prayer-hero-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.92;
  margin: 0 0 0.35rem;
}
.prayer-hero-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  font-weight: 500;
  color: var(--color-white);
}
.prayer-hero-invitation {
  margin: 0;
  font-size: var(--text-base);
  opacity: 0.94;
  max-width: 26ch;
  color: var(--color-white);
}

/* -------- Section headers -------- */

.prayer-section {
  padding: 1.5rem 1.35rem 0;
}
.prayer-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 0.85rem;
}
.prayer-section-title h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 500;
  margin: 0;
  color: var(--color-forest-950);
}
.prayer-section-title .prayer-section-count {
  font-size: var(--text-xs);
  color: var(--color-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* -------- Guided prayer cards -------- */

.prayer-guided-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.prayer-guided-card {
  --card-tint: rgba(24, 53, 41, 0.06);
  background: var(--color-white);
  border: 1px solid rgba(24, 53, 41, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  box-shadow: 0 8px 24px -18px rgba(24, 53, 41, 0.35);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.prayer-guided-card:active {
  transform: scale(0.99);
  box-shadow: 0 4px 12px -8px rgba(24, 53, 41, 0.35);
}

.prayer-guided-card[data-tone="moss"]    { --card-tint: #e0ead6; }
.prayer-guided-card[data-tone="sky"]     { --card-tint: #d8e5f2; }
.prayer-guided-card[data-tone="dusk"]    { --card-tint: #dcd6ea; }
.prayer-guided-card[data-tone="sunrise"] { --card-tint: #f7e2c2; }
.prayer-guided-card[data-tone="rose"]    { --card-tint: #f1d5d9; }
.prayer-guided-card[data-tone="forest"]  { --card-tint: #cddcc7; }

.prayer-guided-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.prayer-guided-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--card-tint);
  color: var(--color-forest-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prayer-guided-icon svg { width: 1.35rem; height: 1.35rem; stroke: currentColor; fill: none; stroke-width: 1.8; }
.prayer-guided-heading { flex: 1; min-width: 0; }
.prayer-guided-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-forest-950);
  margin: 0;
  line-height: 1.25;
  font-weight: 500;
}
.prayer-guided-theme {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0.15rem 0 0;
}
.prayer-guided-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-forest-700);
}
.prayer-guided-pill {
  background: var(--card-tint);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.65rem;
  font-weight: 500;
}
.prayer-guided-scripture {
  color: var(--color-muted);
  letter-spacing: 0.04em;
}
.prayer-guided-saved-badge {
  margin-left: auto;
  color: var(--color-forest-700);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 500;
}
.prayer-guided-saved-badge svg { width: 0.95rem; height: 0.95rem; stroke: currentColor; fill: currentColor; }

/* -------- Saved rail -------- */

.prayer-saved-row {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.25rem 0 0.35rem;
  margin: 0 -1.35rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
  scrollbar-width: none;
}
.prayer-saved-row::-webkit-scrollbar { display: none; }
.prayer-saved-chip {
  scroll-snap-align: start;
  background: var(--color-white);
  border: 1px solid rgba(24, 53, 41, 0.1);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  min-width: 12.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
  cursor: pointer;
}
.prayer-saved-chip strong {
  font-family: var(--font-serif);
  color: var(--color-forest-950);
  font-size: var(--text-base);
  line-height: 1.2;
  font-weight: 500;
}
.prayer-saved-chip span {
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.prayer-empty {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin: 0.25rem 0 0;
  line-height: 1.5;
}

/* -------- Activity feed -------- */

.prayer-activity {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.5rem;
}
.prayer-activity-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(24, 53, 41, 0.06);
}
.prayer-activity-item:last-child { border-bottom: none; }
.prayer-activity-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: var(--color-sage-100);
  color: var(--color-forest-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prayer-activity-icon svg { width: 1.05rem; height: 1.05rem; stroke: currentColor; fill: none; stroke-width: 1.8; }
.prayer-activity-body { flex: 1; min-width: 0; }
.prayer-activity-title {
  margin: 0;
  font-size: var(--text-sm);
  color: var(--color-forest-950);
  line-height: 1.35;
}
.prayer-activity-time {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0.15rem 0 0;
}

/* -------- Guided prayer detail sheet -------- */

.prayer-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(24, 53, 41, 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 60;
}
.prayer-sheet {
  background: var(--color-cream-50);
  width: min(100%, var(--app-width));
  max-height: 92vh;
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  padding: 0.85rem 1.35rem calc(1.35rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  color: var(--color-ink);
  animation: prayerSheetIn 0.22s ease-out;
}
@keyframes prayerSheetIn {
  from { transform: translateY(24px); opacity: 0.4; }
  to   { transform: translateY(0);   opacity: 1;   }
}
.prayer-sheet-handle {
  width: 2.5rem;
  height: 0.28rem;
  border-radius: 999px;
  background: rgba(24, 53, 41, 0.2);
  margin: 0 auto 0.75rem;
}
.prayer-sheet-eyebrow {
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-forest-700);
  margin: 0 0 0.35rem;
}
.prayer-sheet-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--color-forest-950);
  margin: 0 0 0.5rem;
  font-weight: 500;
}
.prayer-sheet-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0 0 1rem;
}
.prayer-sheet-meta .prayer-guided-pill {
  color: var(--color-forest-900);
}
.prayer-sheet-body p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--color-forest-950);
  margin: 0 0 0.85rem;
  font-family: var(--font-serif);
}
.prayer-sheet-closing {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--color-forest-700);
  margin: 0.35rem 0 1.25rem;
}
.prayer-sheet-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-top: 0.35rem;
  position: sticky;
  bottom: 0;
  padding: 0.85rem 0 0.15rem;
  background: linear-gradient(to top, var(--color-cream-50) 65%, rgba(255,250,240,0));
}
.prayer-sheet-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 53, 41, 0.12);
  background: var(--color-white);
  padding: 0.55rem 0.5rem;
  color: var(--color-forest-900);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
}
.prayer-sheet-action[data-active="true"] {
  background: var(--color-forest-900);
  color: var(--color-white);
  border-color: var(--color-forest-900);
}
.prayer-sheet-action svg {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.prayer-sheet-action[data-icon-filled="true"] svg { fill: currentColor; }
.prayer-sheet-close {
  align-self: center;
  margin-top: 0.75rem;
  background: transparent;
  border: none;
  color: var(--color-muted);
  font-size: var(--text-sm);
  cursor: pointer;
}

/* Toast reuses bible-toast look; keep prayer-toast for the same
   floating notification pattern to avoid cross-tab class coupling. */
.prayer-toast {
  position: fixed;
  left: 50%;
  bottom: 6rem;
  transform: translateX(-50%);
  background: var(--color-forest-950);
  color: var(--color-white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  z-index: 70;
  box-shadow: 0 10px 22px -12px rgba(24, 53, 41, 0.5);
}

/* -------- Prayer for Today (featured card) -------- */

.prayer-daily-card {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 1.1rem 1.1rem 1rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24, 53, 41, 0.1);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(249, 220, 163, 0.55), transparent 60%),
    linear-gradient(155deg, #fffaf0 0%, #f5ead0 100%);
  color: var(--color-forest-950);
  box-shadow: 0 12px 28px -22px rgba(24, 53, 41, 0.45);
  position: relative;
  cursor: pointer;
}
.prayer-daily-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-forest-700);
}
.prayer-daily-eyebrow-icon {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prayer-daily-eyebrow-icon svg { width: 1.15rem; height: 1.15rem; stroke: currentColor; fill: none; stroke-width: 1.8; }
.prayer-daily-title {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  margin: 0;
  line-height: 1.2;
  font-weight: 500;
}
.prayer-daily-preview {
  font-size: var(--text-sm);
  color: var(--color-forest-900);
  margin: 0;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prayer-daily-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-forest-900);
  margin-top: 0.25rem;
}
.prayer-daily-cta svg { width: 1rem; height: 1rem; stroke: currentColor; fill: none; stroke-width: 2; }
.prayer-daily-saved {
  position: absolute;
  top: 0.75rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-forest-700);
}
.prayer-daily-saved svg { width: 0.9rem; height: 0.9rem; stroke: currentColor; fill: currentColor; }

.prayer-sheet-actions-quad {
  grid-template-columns: repeat(4, 1fr);
}

/* -------- Segmented control -------- */

.prayer-segmented-section .prayer-segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.25rem;
  padding: 0.3rem;
  background: rgba(24, 53, 41, 0.06);
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
}
.prayer-segmented-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.5rem;
  border-radius: calc(var(--radius-md) - 0.3rem);
  background: transparent;
  border: none;
  color: var(--color-forest-700);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.prayer-segmented-tab.is-active {
  background: var(--color-white);
  color: var(--color-forest-950);
  box-shadow: 0 3px 10px -6px rgba(24, 53, 41, 0.3);
}
.prayer-segmented-count {
  min-width: 1.4rem;
  height: 1.15rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: rgba(24, 53, 41, 0.08);
  color: var(--color-forest-900);
  font-size: var(--text-xs);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.prayer-segmented-tab.is-active .prayer-segmented-count {
  background: var(--color-forest-900);
  color: var(--color-white);
}
.prayer-segment-panel {
  min-height: 6rem;
}

/* -------- My Prayers (Add + request cards) -------- */

.prayer-request-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.prayer-request-add {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.95rem 1rem;
  background: var(--color-white);
  border: 1.5px dashed rgba(24, 53, 41, 0.28);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  color: var(--color-forest-950);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.prayer-request-add:active { transform: scale(0.99); }
.prayer-request-add:hover  { border-color: var(--color-forest-700); }
.prayer-request-add-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: var(--radius-md);
  background: var(--color-sage-100);
  color: var(--color-forest-900);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prayer-request-add-icon svg { width: 1.15rem; height: 1.15rem; stroke: currentColor; fill: none; stroke-width: 2.2; }
.prayer-request-add-copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--color-forest-950);
  font-weight: 500;
}
.prayer-request-add-copy em {
  display: block;
  margin-top: 0.15rem;
  font-style: normal;
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.prayer-request-card {
  background: var(--color-white);
  border: 1px solid rgba(24, 53, 41, 0.08);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  box-shadow: 0 6px 20px -18px rgba(24, 53, 41, 0.35);
}
.prayer-request-head {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.prayer-request-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.prayer-request-title {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  margin: 0;
  color: var(--color-forest-950);
  font-weight: 500;
  line-height: 1.2;
}
.prayer-request-tag {
  font-size: var(--text-xs);
  color: var(--color-forest-700);
  background: var(--color-sage-100);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.55rem;
  letter-spacing: 0.04em;
}
.prayer-request-meta {
  font-size: var(--text-xs);
  color: var(--color-muted);
  margin: 0;
}
.prayer-request-body {
  font-size: var(--text-sm);
  color: var(--color-forest-950);
  line-height: 1.5;
  margin: 0;
}
.prayer-request-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 0.1rem;
}
.prayer-request-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 53, 41, 0.1);
  background: transparent;
  color: var(--color-forest-900);
  font-size: var(--text-xs);
  font-weight: 500;
  cursor: pointer;
}
.prayer-request-action svg { width: 0.95rem; height: 0.95rem; stroke: currentColor; fill: none; stroke-width: 1.8; }
.prayer-request-primary {
  background: var(--color-forest-900);
  color: var(--color-white);
  border-color: var(--color-forest-900);
}
.prayer-request-primary svg { stroke: currentColor; }
.prayer-request-danger  { color: #983131; border-color: rgba(152, 49, 49, 0.24); }
.prayer-request-danger svg { stroke: currentColor; }

/* -------- Answered cards -------- */

.prayer-answered-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.prayer-answered-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, #f2f6ea 0%, #e6efd8 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(24, 53, 41, 0.1);
  text-align: left;
  cursor: pointer;
  color: var(--color-forest-950);
}
.prayer-answered-badge {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  background: var(--color-forest-900);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.prayer-answered-badge svg { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 2.4; }
.prayer-answered-body { flex: 1; min-width: 0; }
.prayer-answered-title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--color-forest-950);
  margin: 0;
  font-weight: 500;
  line-height: 1.2;
}
.prayer-answered-when {
  font-size: var(--text-xs);
  color: var(--color-forest-700);
  margin: 0.15rem 0 0.35rem;
}
.prayer-answered-excerpt {
  font-size: var(--text-sm);
  color: var(--color-forest-900);
  margin: 0;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.prayer-answered-block {
  background: rgba(24, 53, 41, 0.04);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.85rem;
  margin: 0 0 0.6rem;
}
.prayer-answered-block h4 {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-forest-700);
  margin: 0 0 0.3rem;
}
.prayer-answered-block p {
  font-size: var(--text-sm);
  color: var(--color-forest-950);
  line-height: 1.5;
  margin: 0;
}
.prayer-answered-copy {
  color: var(--color-forest-700);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: 0 0 1rem;
}

/* -------- Editor form -------- */

.prayer-form-sheet .prayer-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0.5rem 0 0.9rem;
}
.prayer-form-sheet .prayer-field > span {
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-forest-700);
  font-weight: 500;
}
.prayer-form-sheet input[type="text"],
.prayer-form-sheet textarea {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 53, 41, 0.16);
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-forest-950);
  background: var(--color-white);
  resize: none;
}
.prayer-form-sheet textarea { line-height: 1.5; }
.prayer-form-sheet input[type="text"]:focus,
.prayer-form-sheet textarea:focus {
  outline: 2px solid var(--color-forest-700);
  outline-offset: 1px;
  border-color: transparent;
}
.prayer-form-actions {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0.5rem;
  padding-top: 0.35rem;
}
.prayer-form-actions-triple { grid-template-columns: 1fr 1.5fr; }
.prayer-form-cancel {
  border-radius: var(--radius-md);
  border: 1px solid rgba(24, 53, 41, 0.14);
  background: var(--color-white);
  color: var(--color-forest-900);
  padding: 0.7rem;
  font-weight: 500;
  cursor: pointer;
}
.prayer-form-save {
  border-radius: var(--radius-md);
  border: none;
  background: var(--color-forest-900);
  color: var(--color-white);
  padding: 0.7rem;
  font-weight: 500;
  cursor: pointer;
}
.prayer-form-danger {
  background: #983131;
}

.prayer-confirm-sheet .prayer-sheet-title {
  margin-bottom: 0.35rem;
}

/* -------- Habit reminder -------- */

.prayer-reminder {
  background: var(--color-white);
  border: 1px solid rgba(24, 53, 41, 0.1);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.prayer-reminder-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.prayer-reminder-copy { flex: 1; min-width: 0; }
.prayer-reminder-copy h3 {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  margin: 0 0 0.2rem;
  color: var(--color-forest-950);
  font-weight: 500;
}
.prayer-reminder-copy p {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin: 0;
  line-height: 1.5;
}
.prayer-toggle {
  width: 2.65rem;
  height: 1.55rem;
  border-radius: 999px;
  background: rgba(24, 53, 41, 0.18);
  border: none;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease;
}
.prayer-toggle::after {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.15rem;
  width: 1.25rem;
  height: 1.25rem;
  background: var(--color-white);
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(24, 53, 41, 0.25);
  transition: transform 0.2s ease;
}
.prayer-toggle[aria-checked="true"] { background: var(--color-forest-900); }
.prayer-toggle[aria-checked="true"]::after { transform: translateX(1.05rem); }

.prayer-reminder-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(24, 53, 41, 0.08);
}
.prayer-reminder-time > span {
  font-size: var(--text-sm);
  color: var(--color-forest-900);
  font-weight: 500;
}
.prayer-reminder-time input[type="time"] {
  border: 1px solid rgba(24, 53, 41, 0.14);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font: inherit;
  font-size: var(--text-base);
  color: var(--color-forest-950);
  background: var(--color-white);
}
.prayer-reminder-time.is-disabled {
  opacity: 0.5;
}
.prayer-reminder-time.is-disabled input { pointer-events: none; }

/* -------- Home prayer-reminder chip -------- */

.home-prayer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-forest-950);
  border: 1px solid rgba(24, 53, 41, 0.12);
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 6px 16px -12px rgba(24, 53, 41, 0.4);
  animation: prayerChipIn 0.28s ease-out;
}
@keyframes prayerChipIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}
.home-prayer-chip svg {
  width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 1.8;
}
.home-prayer-chip-dismiss {
  margin-left: 0.15rem;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 53, 41, 0.08);
  color: var(--color-forest-700);
  font-size: 1rem;
  line-height: 1;
}
