/* ==========================================================
   BECOMING LIKE JESUS — Editorial iOS PWA Stylesheet
   ========================================================== */

:root {
  --bg: #FAF8F4;
  --card: #FFFFFF;
  --soft: #F2EFE8;
  --border: #E5DFD3;
  --primary: #2F483E;
  --primary-dark: #1E3029;
  --primary-light: #4E7062;
  --accent: #B88A44;
  --text: #1D2421;
  --muted: #6F7772;
  --ring-track: #E6E2D8;
  --hero-from: #1E3029;
  --hero-to: #3B594D;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 3px 12px rgba(20, 26, 23, 0.04);
  --shadow-md: 0 10px 28px rgba(20, 26, 23, 0.08);
  --tab-height: 68px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
}

.app-root {
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  background: var(--bg);
  position: relative;
  display: flex;
  flex-direction: column;
}

.view-container {
  flex: 1;
  padding-top: calc(env(safe-area-inset-top, 12px) + 14px);
  padding-bottom: calc(var(--tab-height) + env(safe-area-inset-bottom, 14px) + 22px);
  padding-left: 18px;
  padding-right: 18px;
}

.tab-view {
  display: none;
  animation: fadeSlideIn 0.22s ease;
}

.tab-view.active {
  display: block;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Typography */
.serif {
  font-family: 'Playfair Display', Georgia, serif;
}

.italic-serif {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
}

.kicker {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 22px 2px 12px;
}

.section-title {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  font-weight: 600;
  color: var(--primary-dark);
}

.section-action {
  border: none;
  background: transparent;
  color: var(--primary);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  padding: 4px 6px;
}

/* Top Header */
.top-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.brand-title {
  margin: 3px 0 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  line-height: 1.08;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: -0.015em;
}

.brand-title .accent-word {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
  font-size: 37px;
  margin-left: 3px;
}

.era-sub {
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.icon-pill-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}

.icon-pill-btn:active {
  transform: scale(0.92);
}

/* Hero Card */
.hero-card {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 20px 20px 18px;
  background: linear-gradient(132deg, var(--hero-from) 0%, var(--primary) 55%, var(--hero-to) 100%);
  color: #FAF8F4;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 13px;
  cursor: pointer;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(214, 174, 104, 0.25), transparent 55%);
  pointer-events: none;
}

.hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hero-badge {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  color: #F4E6CA;
}

.hero-tap-hint {
  font-size: 10px;
  opacity: 0.72;
}

.hero-quote {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 24px;
  line-height: 1.24;
  font-weight: 600;
  margin: 0 0 10px;
  color: #FFFFFF;
}

.hero-author {
  position: relative;
  z-index: 1;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(248, 240, 224, 0.85);
}

/* Countdown Card */
.countdown-bar {
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1.5px solid var(--border);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}

.cd-left {
  padding-right: 10px;
  border-right: 1px solid var(--border);
  min-width: 102px;
}

.cd-tag {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2px;
}

.cd-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.cd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  flex: 1;
  text-align: center;
}

.cd-num {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.cd-unit {
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 600;
}

/* 3 Goal Rings */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.goal-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 12px 6px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.ring-wrap {
  position: relative;
  width: 78px;
  height: 78px;
  margin-bottom: 7px;
}

.ring-svg {
  width: 78px;
  height: 78px;
  transform: rotate(-90deg);
}

.ring-track {
  fill: none;
  stroke: var(--ring-track);
  stroke-width: 7.5;
}

.ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 7.5;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.ring-fill.goal-2 { stroke: var(--accent); }
.ring-fill.goal-3 { stroke: var(--primary-light); }

.ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}

.goal-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

/* Cards */
.card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}

.card-soft {
  background: var(--soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 14px;
}

/* Slot Filter Pills */
.pill-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 12px;
  scrollbar-width: none;
}

.pill-row::-webkit-scrollbar { display: none; }

.pill-btn {
  border: 1.5px solid var(--border);
  background: var(--soft);
  color: var(--muted);
  border-radius: 99px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Habit Rows */
.habit-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.habit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 8px;
  border-radius: var(--radius-md);
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease;
}

.habit-row:active {
  background: var(--soft);
}

.check-box {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  border: 1.8px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.habit-row.done .check-box,
.check-item.done .check-box {
  background: var(--primary);
  border-color: var(--primary);
}

.check-box svg {
  width: 14px;
  height: 14px;
  stroke: #FFFFFF;
  stroke-width: 2.8;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.18s ease;
}

.habit-row.done .check-box svg,
.check-item.done .check-box svg {
  opacity: 1;
  transform: scale(1);
}

.habit-info {
  flex: 1;
  min-width: 0;
}

.habit-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.habit-row.done .habit-text {
  opacity: 0.65;
  text-decoration: line-through;
}

.habit-meta {
  margin-top: 3px;
  font-size: 10.5px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.goal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 3px;
}

/* XP & Streak Stats */
.stats-2col {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 11px;
  margin-bottom: 14px;
}

.stat-box {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 14px 16px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-val {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1.1;
}

.stat-lbl {
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 600;
}

.progress-bar {
  margin-top: 10px;
  height: 7px;
  border-radius: 99px;
  background: var(--ring-track);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.35s ease;
}

/* 7-Day Rhythm Dots */
.week-strip {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  margin-top: 10px;
}

.week-day {
  flex: 1;
  text-align: center;
}

.week-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  margin: 0 auto 4px;
  border: 1.5px solid var(--border);
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.week-dot.active-day {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.week-dot.today-ring {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(184, 138, 68, 0.25);
}

.week-lbl {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
}

/* Sub-tabs inside views */
.segment-control {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 4px;
  margin-bottom: 16px;
}

.segment-control.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.seg-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 6px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.seg-btn.active {
  background: var(--card);
  color: var(--primary-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.sub-pane { display: none; }
.sub-pane.active { display: block; }

/* Solitude / Breathing Timer */
.timer-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 8px 10px;
  text-align: center;
}

.breath-orb-wrap {
  position: relative;
  width: 210px;
  height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 0 18px;
}

.breath-halo {
  position: absolute;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 138, 68, 0.16), rgba(47, 72, 62, 0.04));
  border: 1.5px solid var(--border);
  transform: scale(0.86);
  transition: transform 4s ease-in-out;
}

.breath-orb-wrap.running.inhale .breath-halo {
  transform: scale(1.06);
}

.breath-orb-wrap.running.exhale .breath-halo {
  transform: scale(0.82);
}

.timer-ring-svg {
  position: absolute;
  width: 204px;
  height: 204px;
  transform: rotate(-90deg);
}

.timer-center {
  position: relative;
  z-index: 2;
}

.timer-clock {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary-dark);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.breath-phase-lbl {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.breath-prayer-box {
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  width: 100%;
  margin-bottom: 14px;
}

.bp-line {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-style: italic;
  font-size: 20px;
  line-height: 1.3;
  color: var(--primary-dark);
  font-weight: 600;
}

.bp-line.dim {
  opacity: 0.45;
  font-size: 17px;
}

.dur-pills {
  display: flex;
  gap: 7px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

/* Practices Grid */
.practices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-bottom: 16px;
}

.practice-tile {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px 8px 12px;
  text-align: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, border-color 0.14s ease;
}

.practice-tile:active {
  transform: scale(0.95);
  border-color: var(--primary);
}

.practice-emoji {
  font-size: 24px;
  margin-bottom: 6px;
}

.practice-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.practice-goal-tag {
  margin-top: 4px;
  font-size: 9.5px;
  color: var(--muted);
  font-weight: 600;
}

/* Lie vs Truth Cards */
.truth-card {
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 15px;
  margin-bottom: 11px;
  box-shadow: var(--shadow-sm);
}

.lie-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(176, 58, 46, 0.12);
  color: #B03A2E;
  margin-bottom: 6px;
}

.truth-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(47, 72, 62, 0.14);
  color: var(--primary);
  margin: 10px 0 6px;
}

.lie-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
  text-decoration: line-through;
  text-decoration-color: rgba(176, 58, 46, 0.45);
}

.truth-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.45;
}

.verse-badge {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
}

/* Fruit Chips */
.chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 8px 0 12px;
}

.chip {
  border: 1.5px solid var(--border);
  background: var(--soft);
  color: var(--text);
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.chip.selected {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

/* Forms & Buttons */
.field {
  margin-bottom: 12px;
}

.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 5px;
}

input[type="text"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 16px; /* Prevents iOS Safari zoom! */
  line-height: 1.35;
}

textarea {
  min-height: 76px;
  resize: vertical;
}

.btn {
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.14s ease, opacity 0.14s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
}

.btn-accent {
  background: var(--accent);
  color: #FFFFFF;
}

.btn-soft {
  background: var(--soft);
  color: var(--primary-dark);
  border: 1.5px solid var(--border);
}

.btn-danger {
  background: rgba(176, 58, 46, 0.12);
  color: #B03A2E;
}

.btn-sm {
  width: auto;
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 10px;
}

.btn-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

/* Prayer Journal Items */
.prayer-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-md);
  background: var(--soft);
  border: 1px solid var(--border);
  margin-bottom: 8px;
}

.prayer-item.answered {
  border-color: var(--accent);
  background: rgba(184, 138, 68, 0.08);
}

/* Gospel Reading Plan */
.gospel-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.gospel-item:last-child { border-bottom: none; }

.gospel-day {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gospel-item.done .gospel-day {
  background: var(--primary);
  color: #FFFFFF;
}

/* Fruit Progress Bars */
.fruit-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.fruit-bar-name {
  width: 128px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.fruit-bar-track {
  flex: 1;
  height: 9px;
  border-radius: 99px;
  background: var(--ring-track);
  overflow: hidden;
}

.fruit-bar-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.fruit-bar-num {
  width: 24px;
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* Native iOS Bottom Tab Bar */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 460px;
  height: calc(var(--tab-height) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  z-index: 50;
}

[data-mode="dark"] .tab-bar {
  background: rgba(17, 22, 21, 0.9);
}

.tab-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 2px;
  font-family: inherit;
  transition: color 0.15s ease;
}

.tab-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.9;
  fill: none;
}

.tab-btn span {
  font-size: 10px;
  font-weight: 700;
}

.tab-btn.active {
  color: var(--primary);
}

/* Modal / Bottom Sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(14, 18, 16, 0.54);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 120;
}

.sheet-backdrop.open {
  display: flex;
}

.sheet-panel {
  width: 100%;
  max-width: 460px;
  max-height: 90dvh;
  overflow-y: auto;
  background: var(--card);
  border-radius: 26px 26px 0 0;
  padding: 18px 20px calc(env(safe-area-inset-bottom, 16px) + 26px);
  box-shadow: 0 -12px 38px rgba(0, 0, 0, 0.22);
  animation: sheetUp 0.22s ease;
}

@keyframes sheetUp {
  from { transform: translateY(30px); opacity: 0.7; }
  to { transform: translateY(0); opacity: 1; }
}

.sheet-handle {
  width: 40px;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
  margin: 0 auto 14px;
}

.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.sheet-header h2 {
  margin: 0;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  color: var(--primary-dark);
}

/* Onboarding Fullscreen Overlay */
.onboarding-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  display: none;
  justify-content: center;
  overflow-y: auto;
}

.onboarding-overlay.open {
  display: flex;
}

.onboarding-inner {
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  padding: calc(env(safe-area-inset-top, 16px) + 22px) 22px calc(env(safe-area-inset-bottom, 16px) + 28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ob-step { display: none; }
.ob-step.active { display: block; animation: fadeSlideIn 0.25s ease; }

.ob-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 24px;
}

.ob-bar {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: var(--border);
}

.ob-bar.filled {
  background: var(--primary);
}

.choice-card {
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 16px;
  margin-bottom: 11px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.choice-card.selected {
  border-color: var(--primary);
  background: var(--soft);
  box-shadow: 0 4px 16px rgba(47, 72, 62, 0.1);
}

.choice-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.choice-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Theme swatches */
.swatches {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.swatch-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.swatch-btn.active {
  border-color: var(--accent);
  transform: scale(1.1);
}

/* Toast notification */
.toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 12px) + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(-80px);
  background: var(--primary-dark);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
  z-index: 300;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 16px 0;
}

.muted-note {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
