/* ==========================================================================
   THE JOY JOURNEYS — Song Journey Template
   The shared visual skin for every Song Journey (Ho'oponopono, My Healing,
   and future songs). Screens are shown/hidden by journey.js; content (theme
   titles, journal questions, resource links) lives in a `SONG_JOURNEY` data
   object defined per-page, so a new Song Journey is mostly a content file.
   ========================================================================== */

:root {
  /* THE JOY JOURNEYS brand guide — crisp white, vivid accents, no muted
     tints. Joy Green is the primary accent (buttons, links, active states);
     the other five brand colors rotate through theme-card icons. Headings/
     body text use plain ink, not brand color, so green doesn't compete
     with the logo for attention. */
  --jt-green-700: #11963A;   /* Joy Green — primary buttons, links, active states */
  --jt-green-500: #1AAE47;   /* Joy Green, lightened — hover */
  --jt-green-100: #E8F5EC;   /* pale green tint — subtle note/card backgrounds only */
  --jt-red: #E53935;         /* Radiant Red */
  --jt-orange: #FF8A05;      /* Sunrise Orange */
  --jt-flower-red: #F3070F;  /* exact red sampled from the logo's center flower — used only for the bloom/hero-bloom motifs, not the general Radiant Red accent */
  --jt-gold: #FFC107;        /* Golden Light */
  --jt-blue: #00A9E0;        /* Sky Blue */
  --jt-purple: #9C27B0;      /* Sacred Purple */
  --jt-white: #FFFFFF;
  --jt-border: #E3E3E3;
  --jt-ink: #1A1A1A;
  --jt-ink-soft: #4A4A4A;

  --jt-font-display: 'Playfair Display', 'Fraunces', Georgia, serif;
  --jt-font-body: 'Lato', 'Inter', -apple-system, sans-serif;

  --jt-radius: 18px;
  --jt-transition: 320ms cubic-bezier(0.25, 0.1, 0.25, 1);
}

body.journey-app {
  margin: 0;
  font-family: var(--jt-font-body);
  color: var(--jt-ink);
  background: var(--jt-white);
  min-height: 100vh;
}

.journey-app *, .journey-app *::before, .journey-app *::after { box-sizing: border-box; }
/* [hidden] must always win over component display rules (.icon-btn, .app-menu, etc). */
.journey-app [hidden] { display: none !important; }
.journey-app img { max-width: 100%; display: block; }
/* Bare element selectors here (not ".journey-app button") so every single-class
   button/card variant below can override this reset without a specificity fight. */
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
.journey-app ul { list-style: none; margin: 0; padding: 0; }
/* Bare h1-h3/p here too, for the same reason as the button reset above —
   single-class spacing overrides (like .pathway-prompt-label's margin-top)
   need to beat this base reset without a specificity fight. */
h1, h2, h3 {
  font-family: var(--jt-font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
  color: var(--jt-ink);
}
p { margin: 0; color: var(--jt-ink-soft); line-height: 1.65; }

.journey-app :focus-visible {
  outline: 2px solid var(--jt-green-700);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--jt-ink);
  color: var(--jt-white);
  padding: 0.8em 1.2em;
  z-index: 300;
}
.skip-link:focus { left: 0.8em; top: 0.8em; }

/* ---------- App frame ---------- */
.app-frame {
  max-width: 520px;
  margin-inline: auto;
  min-height: 100vh;
  background: var(--jt-white);
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.12);
}
@media (min-width: 560px) {
  .app-frame { min-height: 92vh; margin-block: 4vh; border-radius: 28px; overflow: hidden; border: 1px solid var(--jt-border); }
}

/* ---------- Top bar ---------- */
.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.1rem;
  background: var(--jt-white);
  border-bottom: 1px solid var(--jt-border);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--jt-ink);
  transition: background var(--jt-transition);
}
.icon-btn:hover { background: var(--jt-green-100); }
.icon-btn svg { width: 22px; height: 22px; }
.app-topbar-spacer { flex: 1; }

/* ---------- Slide-over menu ---------- */
.app-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 40;
  opacity: 0;
  transition: opacity var(--jt-transition);
}
.app-menu-overlay.is-visible { opacity: 1; }

.app-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 360px);
  background: var(--jt-white);
  z-index: 50;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--jt-transition);
  box-shadow: -12px 0 40px rgba(26, 26, 26, 0.18);
}
.app-menu.is-open { transform: translateX(0); }

.app-menu-close {
  align-self: flex-end;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--jt-ink);
}
.app-menu-close:hover { background: var(--jt-green-100); }
.app-menu-close svg { width: 20px; height: 20px; }

.app-menu ul { margin-top: 1rem; display: grid; gap: 0.25rem; }
.app-menu a {
  display: block;
  padding: 0.85em 0.4em;
  font-family: var(--jt-font-display);
  font-size: 1.15rem;
  color: var(--jt-ink);
  text-decoration: none;
  border-bottom: 1px solid var(--jt-border);
}
.app-menu a:hover { color: var(--jt-green-700); }

.app-menu-footer {
  margin-top: auto;
  padding-top: 1.2rem;
  display: grid;
  gap: 0.8rem;
}
.app-menu-footer .copy-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  justify-content: center;
  border: 1px solid var(--jt-green-500);
  border-radius: 999px;
  padding: 0.7em 1.2em;
  font-size: 0.92rem;
  color: var(--jt-green-700);
  transition: background var(--jt-transition);
}
.app-menu-footer .copy-link-btn:hover { background: var(--jt-green-100); }
.app-menu-footer .copy-link-btn[data-copied="true"] { background: var(--jt-green-100); }
.app-menu-footer .back-to-site {
  font-size: 0.88rem;
  color: var(--jt-ink-soft);
  text-decoration: none;
  text-align: center;
}
.app-menu-footer .back-to-site:hover { color: var(--jt-green-700); }

/* ---------- Screens ---------- */
.app-screens { flex: 1; display: flex; flex-direction: column; }

.jscreen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem 6rem;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 280ms ease, transform 280ms ease;
}
.jscreen[hidden] { display: none; }
.jscreen.is-entering { opacity: 0; transform: translateY(10px); }
.jscreen.is-leaving { opacity: 0; transform: translateY(-6px); }

/* The Home/Begin/Write screens carry a data-tone="deep" attribute from an
   earlier dark-hero design. Every screen is white now, so that attribute is
   intentionally inert — kept in the markup rather than stripped from three
   HTML files for zero visual purpose. */

.screen-eyebrow {
  font-family: var(--jt-font-body);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--jt-green-700);
  font-weight: 700;
}

.screen-title { font-size: clamp(2.2rem, 8vw, 2.8rem); margin-top: 0.4rem; }
.screen-subtitle {
  font-family: 'Lora', var(--jt-font-display);
  font-style: italic;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--jt-ink);
  margin-top: 0.2rem;
}
.screen-tagline {
  margin-top: 0.9rem;
  font-family: var(--jt-font-display);
  font-size: 1.05rem;
  color: var(--jt-ink);
}

.screen-heading { font-size: clamp(1.5rem, 6vw, 1.9rem); }
.screen-lede { margin-top: 0.6rem; font-size: 1rem; }

/* ---------- Decorative bloom motif (echoes the logo's flower form) ---------- */
.bloom {
  width: 56px;
  height: 56px;
  margin-inline: auto;
  color: var(--jt-flower-red);
  opacity: 0.9;
}
.bloom svg { width: 100%; height: 100%; }

.hero-bloom {
  width: 120px;
  height: 120px;
  margin: 0.5rem 0 0.75rem -8px;
  color: var(--jt-flower-red);
  opacity: 0.9;
}
.hero-bloom svg {
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  animation: jt-bloom-spin-once 1.4s cubic-bezier(0.34, 0.9, 0.32, 1) 1;
}

@keyframes jt-bloom-spin-once {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bloom svg { animation: none; }
}

/* ---------- Note / aside ---------- */
.jt-note {
  margin-top: 1.4rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  background: var(--jt-green-100);
  color: var(--jt-ink);
}
.jt-note svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 0.15em; }
.jt-note strong { font-weight: 700; }

/* ---------- Personal note (Ann, on why this song was chosen) ---------- */
.jt-personal-note {
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  max-width: 40ch;
  border-left: 3px solid var(--jt-green-700);
  background: var(--jt-green-100);
  border-radius: 0 12px 12px 0;
}
.jt-personal-note p {
  font-family: 'Lora', var(--jt-font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--jt-ink);
  margin: 0;
}
.jt-personal-note-sig {
  display: block;
  margin-top: 0.6rem;
  font-family: var(--jt-font-body);
  font-style: normal;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--jt-ink-soft);
}

/* ---------- Buttons ---------- */
.jt-btn {
  display: flex;
  align-items: center;
  gap: 0.7em;
  justify-content: center;
  width: 100%;
  padding: 0.95em 1.3em;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--jt-transition), background var(--jt-transition), box-shadow var(--jt-transition);
}
.jt-btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.jt-btn:active { transform: scale(0.98); }

.jt-btn-primary {
  background: var(--jt-green-700);
  color: var(--jt-white);
  box-shadow: 0 10px 28px rgba(17, 150, 58, 0.28);
}
.jt-btn-primary:hover { background: var(--jt-green-500); }

.jt-btn-listen {
  background: var(--jt-green-700);
  color: var(--jt-white);
  box-shadow: 0 10px 28px rgba(17, 150, 58, 0.28);
}
.jt-btn-listen:hover { background: var(--jt-green-500); }

.jt-btn-ghost-light {
  background: var(--jt-green-100);
  color: var(--jt-green-700);
}
.jt-btn-ghost-light:hover { background: #DCF0E1; }

.jt-btn-ghost {
  background: transparent;
  color: var(--jt-green-700);
  border: 1px solid var(--jt-green-500);
}
.jt-btn-ghost:hover { background: var(--jt-green-100); }

.jt-btn-stack { display: grid; gap: 0.8rem; margin-top: 1.8rem; }

.jt-btn-sub { display: block; font-size: 0.78rem; font-weight: 400; opacity: 0.85; margin-top: 0.1em; }

/* ---------- Choice cards (themes, prompts, questions) ---------- */
.jt-card-list { display: grid; gap: 0.8rem; margin-top: 1.6rem; }

.jt-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  text-align: left;
  background: var(--jt-white);
  border: 1px solid var(--jt-border);
  border-radius: var(--jt-radius);
  padding: 1rem 1.1rem;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.05);
  transition: transform var(--jt-transition), box-shadow var(--jt-transition), border-color var(--jt-transition);
}
.jt-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.1);
  border-color: var(--jt-green-500);
}

.jt-card-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.jt-card-icon svg { width: 20px; height: 20px; }

.jt-card-body { flex: 1; min-width: 0; }
.jt-card-title { display: block; font-family: var(--jt-font-display); font-size: 1.05rem; color: var(--jt-ink); font-weight: 600; }
.jt-card-desc { display: block; font-size: 0.88rem; margin-top: 0.15em; color: var(--jt-ink-soft); }

.jt-card-chevron { flex-shrink: 0; width: 18px; height: 18px; color: var(--jt-ink-soft); }

/* Per-theme accent colors for the icon chip — every brand color except
   green gets a turn, since green is reserved for buttons/links. */
.jt-theme-1 .jt-card-icon { background: var(--jt-red); }
.jt-theme-2 .jt-card-icon { background: var(--jt-orange); }
.jt-theme-3 .jt-card-icon { background: var(--jt-gold); }
.jt-theme-4 .jt-card-icon { background: var(--jt-blue); }
.jt-theme-5 .jt-card-icon { background: var(--jt-purple); }

/* ---------- Pathway screen ---------- */
.pathway-heading { text-align: center; margin-top: 1rem; }
.pathway-prompt-label {
  margin-top: 3rem;
  margin-bottom: 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--jt-green-700);
  text-align: center;
}

/* Prompt-choice cards read as quotes rather than menu rows */
.jt-prompt-option {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--jt-white);
  border: 1px solid var(--jt-border);
  border-radius: var(--jt-radius);
  padding: 1rem 1.2rem;
  font-family: var(--jt-font-display);
  font-size: 1.02rem;
  color: var(--jt-ink);
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.05);
  transition: transform var(--jt-transition), box-shadow var(--jt-transition), border-color var(--jt-transition);
}
.jt-prompt-option:hover {
  transform: translateY(-2px);
  border-color: var(--jt-orange);
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.1);
}

/* ---------- Write / transition screen ---------- */
.write-lines {
  margin-top: 1rem;
  font-family: var(--jt-font-body);
  font-weight: 700;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  line-height: 1.5;
  color: var(--jt-ink);
}
.write-reference {
  margin-top: 1.6rem;
  padding: 1.3rem 1.4rem;
  border-radius: 14px;
  background: var(--jt-green-100);
  border: 1px solid var(--jt-border);
  color: var(--jt-ink);
  font-family: var(--jt-font-display);
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  line-height: 1.4;
}

/* ---------- Paragraph groups rendered from data (Why This Journey?, Before You Go) ---------- */
.jt-copy-group { margin-top: 1.4rem; display: grid; gap: 1rem; }
.jt-copy-group p { font-size: 1rem; }

/* ---------- Journal textarea (write screen) ---------- */
.jt-textarea {
  margin-top: 1.6rem;
  width: 100%;
  min-height: 9rem;
  resize: vertical;
  padding: 1rem 1.1rem;
  border-radius: 14px;
  border: 1px solid var(--jt-border);
  background: var(--jt-white);
  color: var(--jt-ink);
  font-family: var(--jt-font-body);
  font-size: 1rem;
  line-height: 1.6;
}
.jt-textarea::placeholder { color: var(--jt-ink-soft); opacity: 0.7; }
.jt-textarea:focus-visible { outline: 2px solid var(--jt-green-500); outline-offset: 2px; }

.jt-write-save {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--jt-green-700);
}

/* ---------- Brand signature (closes every Song Journey) ---------- */
.brand-signature {
  margin-top: 2.4rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--jt-border);
  text-align: center;
}
.brand-signature img {
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 0.7rem;
  filter: saturate(1.3) contrast(1.08);
}
.brand-signature .bs-name {
  font-family: var(--jt-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--jt-green-700);
}
.brand-signature .bs-tagline {
  margin-top: 0.4rem;
  font-family: var(--jt-font-body);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--jt-ink-soft);
}


/* ---------- Links screen ---------- */
.link-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  background: var(--jt-white);
  border: 1px solid var(--jt-border);
  border-radius: var(--jt-radius);
  padding: 1rem 1.2rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.05);
  transition: transform var(--jt-transition), box-shadow var(--jt-transition);
}
.link-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 26, 26, 0.1); }
.link-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--jt-green-700);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.link-card-icon svg { width: 21px; height: 21px; }
.link-card-title { display: block; font-family: var(--jt-font-display); font-size: 1.05rem; color: var(--jt-ink); font-weight: 600; }
.link-card-desc { display: block; font-size: 0.85rem; color: var(--jt-ink-soft); margin-top: 0.1em; }
.link-card-go { margin-left: auto; width: 18px; height: 18px; color: var(--jt-ink-soft); flex-shrink: 0; }

.jt-text-link {
  display: block;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--jt-green-700);
  text-decoration: underline;
}
.jt-text-link:hover { color: var(--jt-red); }

/* ---------- Back-to-list link (Song Journey home screen, above the hero flower) ---------- */
.jt-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  font-size: 0.85rem;
  color: var(--jt-ink-soft);
  text-decoration: none;
  margin-bottom: 0.5rem;
}
.jt-back-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.jt-back-link:hover { color: var(--jt-red); }

/* ---------- Inline "Learn more" disclosure (e.g. the write screen's
   storage note) — expands a panel in place, no popup. ---------- */
.jt-info-toggle {
  display: inline;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--jt-green-700);
  text-decoration: underline;
  text-decoration-color: var(--jt-border);
}
.jt-info-toggle:hover { text-decoration-color: var(--jt-green-700); }

.jt-info-panel {
  margin-top: 0.8rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  background: var(--jt-green-100);
  font-size: 0.88rem;
  color: var(--jt-ink);
  display: grid;
  gap: 0.6rem;
}

/* ---------- Screen footer mark ---------- */
.screen-mark {
  margin-top: auto;
  padding-top: 2.2rem;
  text-align: center;
  font-family: var(--jt-font-body);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--jt-ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
}
.screen-mark img { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- "Welcome back" toast ----------
   Shown when a visitor returns to this tab after tapping Play — see
   journey.js's visibilitychange handler. Confirms they haven't lost their
   place rather than leaving them to wonder. */
.jt-toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translate(-50%, 12px);
  z-index: 60;
  max-width: min(90vw, 440px);
  background: var(--jt-ink);
  color: var(--jt-white);
  padding: 0.9rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(26, 26, 26, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--jt-transition), transform var(--jt-transition);
}
.jt-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
  cursor: pointer;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .jscreen, .app-menu, .app-menu-overlay, .jt-card, .jt-prompt-option, .link-card, .jt-toast {
    transition: none !important;
  }
}

/* ==========================================================================
   Gratitude Journey (journey/gratitude-journey.html, js/gratitude.js)
   A private, on-device journal with a daily rotating prompt. Reuses the
   shared app-frame/jt-* components above wherever they fit (write-reference
   for the day's prompt, jt-textarea, jt-btn, jt-note); the rules below are
   only what's genuinely new — the reroll link, the four-word progression
   line, and the journal history list.
   ========================================================================== */

.grat-reroll-btn {
  display: inline-block;
  margin-top: 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--jt-green-700);
  text-decoration: underline;
  text-decoration-color: var(--jt-border);
}
.grat-reroll-btn:hover { text-decoration-color: var(--jt-green-700); }

.grat-progression {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4em;
  margin-top: 0.9rem;
  font-family: var(--jt-font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--jt-green-700);
}
.grat-progression span:not(:last-child)::after {
  content: "→";
  margin-left: 0.5em;
  font-style: normal;
  color: var(--jt-border);
}

.grat-count {
  display: block;
  font-family: var(--jt-font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--jt-ink-soft);
  margin-top: 0.3rem;
}

/* ---------- Streak (Home badge, Write nudge, History stats) ---------- */
.grat-streak-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin-top: 1.2rem;
  padding: 0.6em 1em;
  border-radius: 999px;
  background: var(--jt-green-100);
  color: var(--jt-green-700);
  font-size: 0.9rem;
  font-weight: 700;
}
.grat-streak-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--jt-orange);
  animation: tjj-streak-flicker 2.6s ease-in-out infinite;
}
@keyframes tjj-streak-flicker {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.82; }
}

.grat-streak-note {
  margin-top: 0.5rem;
  font-family: var(--jt-font-display);
  font-style: italic;
  font-size: 0.95rem;
  color: var(--jt-green-700);
}

/* ---------- Journal stats (History screen: current + best streak) ---------- */
.grat-stats-row {
  display: flex;
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.grat-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 0.6rem;
  border-radius: var(--jt-radius);
  background: var(--jt-green-100);
}
.grat-stat-num {
  font-family: var(--jt-font-display);
  font-weight: 700;
  font-size: 2rem;
  line-height: 1;
  color: var(--jt-green-700);
}
.grat-stat-label {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--jt-ink-soft);
  text-align: center;
}

/* ---------- Journal history (My Gratitude Journal screen) ---------- */
.grat-history-list { display: grid; gap: 1rem; margin-top: 1.4rem; }

.grat-entry {
  background: var(--jt-white);
  border: 1px solid var(--jt-border);
  border-radius: var(--jt-radius);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 4px 14px rgba(26, 26, 26, 0.05);
}
.grat-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}
.grat-entry-date {
  font-family: var(--jt-font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--jt-ink);
}
.grat-entry-delete {
  font-size: 0.78rem;
  color: var(--jt-ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--jt-border);
  flex-shrink: 0;
  white-space: nowrap;
}
.grat-entry-delete:hover { color: var(--jt-red); text-decoration-color: var(--jt-red); }
.grat-entry-delete[data-armed="true"] { color: var(--jt-red); font-weight: 700; }

.grat-entry-prompt {
  margin-top: 0.6rem;
  font-family: 'Lora', var(--jt-font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--jt-green-700);
}
.grat-entry-text {
  margin-top: 0.5rem;
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--jt-ink);
  white-space: pre-wrap;
}

.grat-empty {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--jt-ink-soft);
}
.grat-empty p + p { margin-top: 0.6rem; }
