* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f3f4f6;
  color: #111827;
}
.app-header {
  background: linear-gradient(135deg, #234f32, #3b7a57);
  color: #f9fafb;
  padding: 1rem 1.25rem;
  text-align: center;
}
.app-header h1 {
  margin: 0;
  font-size: 1.4rem;
}
.subtitle {
  margin: 0.25rem 0 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
.app-footer {
  text-align: center;
  padding: 0.75rem;
  font-size: 0.8rem;
  color: #6b7280;
}
#app {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
}
.view { display: none; }
.view.active { display: block; }
.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}
h2, h3 { margin-top: 0; }
.muted { color: #6b7280; }
.key-verse { font-style: italic; }
.btn-primary,
.btn-secondary,
.btn-back {
  display: inline-block;
  border-radius: 999px;
  border: none;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}
.btn-primary {
  background: #2563eb;
  color: #f9fafb;
}
.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}
.btn-back {
  background: transparent;
  color: #2563eb;
  padding-left: 0;
}
.progress-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #22c55e, #16a34a);
  transition: width 0.3s ease;
}
.progress-text {
  margin-top: 0.4rem;
  font-size: 0.9rem;
  color: #374151;
}
#weeks-list, #days-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.week-item, .day-item {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  cursor: pointer;
}
.week-title { font-weight: 600; }
.week-sub { font-size: 0.85rem; color: #6b7280; }
.day-title { font-weight: 600; }
.day-sub { font-size: 0.85rem; color: #6b7280; }
textarea {
  width: 100%;
  min-height: 70px;
  border-radius: 0.75rem;
  border: 1px solid #d1d5db;
  padding: 0.6rem;
  margin-bottom: 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}
.field-label {
  display: block;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.save-status {
  font-size: 0.85rem;
  color: #16a34a;
  min-height: 1em;
}
@media (min-width: 768px) {
  .app-header h1 { font-size: 1.8rem; }
}
