:root {
  --parchment: #f8e6cd;
  --parchment-2: #ead8bd;
  --ink: #5b3a2b;
  --ink-soft: #7d5d4a;
  --olive: #857a48;
  --gold: #b48b42;
  --gold-soft: #d9bf8a;
  --rose: #c98478;
  --terracotta: #b8705a;
  --sage: #9ba886;
  --sage-deep: #66734f;
  --peach: #f1d2b6;
  --peach-deep: #e6b18c;
  --apricot: #f4dcc0;
  --butter: #f1e4b4;
  --cream: #faf2e6;
  --serif: "EB Garamond", "Cormorant Garamond", Georgia, serif;
  --display: "EB Garamond", Georgia, serif;
  --script: "EB Garamond", Georgia, serif;
  --title: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(91, 58, 43, 0.06), 0 6px 22px rgba(91, 58, 43, 0.08);
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  background-color: var(--parchment);
  background-image: radial-gradient(ellipse at 10% 0%, rgba(201, 132, 120, 0.07), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(155, 168, 134, 0.16), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
}
body.locked {
  overflow: hidden;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.15;
  margin: 0;
}
p {
  margin: 0 0 0.9em;
}
#app {
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
}

.eyebrow {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 0.72rem;
  color: var(--olive);
  margin: 0 0 0.3em;
  display: block;
}
.script {
  font-family: var(--script);
  font-weight: 400;
  font-size: 1.55em;
  line-height: 1.1;
  letter-spacing: 0;
  text-transform: none;
}
.small {
  font-size: 0.85rem;
}
.muted {
  color: var(--ink-soft);
  opacity: 0.85;
}
.center {
  text-align: center;
}

.sun {
  display: block;
  width: 150px;
  height: 22px;
  margin: 10px auto 14px;
  stroke: var(--gold);
  stroke-width: 1;
  fill: none;
}
.sun circle {
  fill: var(--gold);
  stroke: none;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  min-height: 46px;
  padding: 0.55em 1.3em;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 500 1rem/1.2 var(--serif);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.98);
}
.btn.primary {
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 4px 14px rgba(91, 58, 43, 0.22);
}
.btn.primary:hover {
  background: #4a2e22;
}
.btn.ghost {
  background: transparent;
  border-color: rgba(91, 58, 43, 0.25);
  color: var(--ink);
}
.btn.soft {
  background: rgba(255, 255, 255, 0.5);
  border-color: var(--gold-soft);
  color: var(--ink);
}
.btn.soft:hover {
  background: rgba(255, 255, 255, 0.8);
}
.btn.wide {
  width: 100%;
  margin-top: 1rem;
}
.btn.danger {
  color: #9a3f2c;
  border-color: rgba(154, 63, 44, 0.35);
}
.icon-btn {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
}
.icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-btn {
  width: auto;
  padding: 0 10px;
  border-radius: 999px;
  gap: 2px;
  font: 500 0.8rem var(--serif);
  color: var(--ink-soft);
}
.page-btn svg {
  width: 18px;
  height: 18px;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ---------- home ---------- */
.cover {
  position: relative;
  overflow: hidden;
  padding: 48px 20px 0;
}
.cover-text {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-left: auto;
  max-width: 400px;
}
.brand {
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 2.6rem;
  letter-spacing: 0.14em;
  line-height: 1;
  color: var(--olive);
  margin: 0;
}
.brand span {
  display: block;
  font-size: 0.55em;
  margin: 0.2em 0;
}
.cover h1 {
  font-size: clamp(3.2rem, 15vw, 4.6rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f4433;
  margin-top: 0.05em;
}
.cover-sub {
  font-size: 1.2rem;
  margin: 0.3em 0 0.8em;
}
.cover-tag {
  font-family: var(--display);
  font-size: 1.15rem;
  line-height: 1.35;
  color: var(--ink-soft);
  max-width: 280px;
  margin: 0 auto;
  padding-top: 0.8em;
  border-top: 1px solid rgba(184, 112, 90, 0.5);
}
/* the seedling: leaves behind DHARMA, seed and roots in the space below */
.cover-art {
  position: relative;
  z-index: 1;
  width: min(122%, 560px);
  max-width: none;
  margin: var(--seed-lift, -170px) 0 0 50%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 11%, #000 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
  mask-composite: intersect;
  opacity: clamp(0, calc(1 - var(--grow, 0) * 1.6), 1);
  transform: translateX(-50%) translateY(calc(var(--grow, 0) * 50px));
}
.cover .cover-tag {
  position: relative;
  z-index: 2;
  margin-top: -36px;
  text-align: center;
}

/* the seedling's tree, growing behind the home screen as you scroll */
.grow-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  justify-content: center;
  overflow: hidden;
}
.grow-bg img {
  width: 100%;
  max-width: 680px;
  height: 100%;
  object-fit: cover;
  object-position: 50% 100%;
  transform-origin: 50% 100%;
  transform: scale(calc(0.35 + var(--grow, 0) * 0.65));
  opacity: clamp(0, calc(var(--grow, 0) * 1.6 - 0.15), 0.85);
  mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%),
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%),
    linear-gradient(to right, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.home {
  position: relative;
  z-index: 1;
}
.home .credit {
  margin: 24px 16px 20px;
  padding: 18px 16px 22px;
  border-radius: var(--radius);
  background: rgba(248, 230, 205, 0.82);
}
.home .sec-card,
.home .book-link,
.home .credit {
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.greet {
  text-align: center;
  padding: 26px 20px 8px;
  position: relative;
  z-index: 3;
  margin-top: -16px;
}
.hello {
  font-family: var(--display);
  font-size: 1.6rem;
  margin-bottom: 0.6em;
}
.hello em {
  font-family: var(--script);
  font-style: normal;
  font-size: 1.25em;
  color: var(--terracotta);
}
.word-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1em;
  padding: 0.5em 1.4em;
  border: 1px solid var(--gold-soft);
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(255, 255, 255, 0.4);
}
.word-chip strong {
  font-family: var(--script);
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  font-size: 2rem;
  color: var(--terracotta);
  line-height: 1.2;
}
.greet .btn {
  width: 100%;
  max-width: 340px;
}
.meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.7em;
}

.list-title {
  text-align: center;
  font-size: 1.5rem;
  margin: 28px 0 12px;
}
.sections {
  list-style: none;
  margin: 0;
  padding: 0 16px;
  display: grid;
  gap: 12px;
}
.sec-card,
.book-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px 12px 12px;
  border-radius: var(--radius);
  background: rgba(250, 242, 230, 0.75);
  border: 1px solid rgba(180, 139, 66, 0.25);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.15s ease;
}
.sec-card:hover,
.book-link:hover {
  transform: translateY(-1px);
}
.sec-art {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
}
.sec-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sec-body .eyebrow {
  margin: 0;
  font-size: 0.65rem;
}
.sec-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.15;
}
.sec-blurb {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.bar {
  display: block;
  height: 3px;
  border-radius: 3px;
  background: rgba(91, 58, 43, 0.1);
  margin-top: 8px;
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--gold));
  border-radius: 3px;
}
.sec-mark {
  font-size: 1.4rem;
  color: var(--gold);
  width: 20px;
  text-align: center;
}
.complete .sec-mark {
  color: var(--sage-deep);
}
.book-link {
  margin: 16px 16px 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(155, 168, 134, 0.35), rgba(241, 210, 182, 0.5));
}

.credit {
  text-align: center;
  padding: 30px 20px 44px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.credit p {
  margin: 0.2em 0;
}
.credit .fine {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 0.8em;
}

/* ---------- reader ---------- */
.reader {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.rbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(6px + env(safe-area-inset-top)) 8px 6px;
  background: rgba(248, 230, 205, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(180, 139, 66, 0.18);
}
.rtitle {
  flex: 1;
  text-align: center;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rtitle .eyebrow {
  font-size: 0.6rem;
  margin: 0 0 2px;
}
.steps {
  display: flex;
  gap: 4px;
  padding: 10px 18px 0;
}
.steps span {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(91, 58, 43, 0.12);
}
.steps .past {
  background: var(--sage);
}
.steps .now {
  background: var(--gold);
}
.screen {
  flex: 1;
  padding: 22px 20px 30px;
  animation: rise 0.45s ease both;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
.rnav {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--parchment) 70%, rgba(248, 230, 205, 0));
  z-index: 10;
}
.rnav .btn {
  flex: 1;
}
.rnav .btn.primary {
  flex: 1.6;
}
.saved {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom));
  right: 18px;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(248, 230, 205, 0.9);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sage-deep);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 30;
}
.saved.show {
  opacity: 0.9;
}

/* ---------- screen headings & text ---------- */
.shead {
  text-align: center;
  margin-bottom: 18px;
}
.shead h2 {
  font-size: clamp(1.9rem, 7.5vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: #6a4232;
}
.subtitle {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0.6em 0 0;
}
.panel {
  background: rgba(250, 242, 230, 0.7);
  border-radius: var(--radius);
  padding: 20px 20px 8px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.intro {
  text-align: center;
  font-size: 1.05rem;
}
.band {
  background: rgba(155, 168, 134, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  font-style: italic;
  text-align: center;
}
.band strong {
  font-style: italic;
}
.accent {
  color: var(--terracotta);
  font-weight: 600;
  font-size: 1.08rem;
}
.terracotta-panel {
  margin: 0 0 18px;
  padding: 26px 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, #c47c64, #a9624d);
  color: var(--cream);
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.35;
  text-align: center;
  box-shadow: var(--shadow);
}
.blessing {
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.45;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--terracotta);
  margin: 24px 6px;
}
.footer-note {
  text-align: center;
  margin-top: 14px;
}

/* ---------- prompts ---------- */
.fields {
  display: grid;
  gap: 14px;
}
.prompt {
  display: block;
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  background: var(--cream);
  border: 1px solid rgba(91, 58, 43, 0.08);
  box-shadow: var(--shadow);
}
.tone-sage {
  background: #e3e4cf;
}
.tone-peach {
  background: #f6dcc6;
}
.tone-apricot {
  background: #f8e4cc;
}
.tone-butter {
  background: #f5ebc6;
}
.tone-terracotta {
  background: #ecc8b6;
}
.tone-cream {
  background: var(--cream);
}
.tone-plain {
  background: rgba(250, 242, 230, 0.6);
}
.plabel {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.2;
}
.psub {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 1.05rem;
  margin-top: 2px;
}
.pq {
  display: block;
  font-weight: 600;
  line-height: 1.4;
  margin: 6px 0 4px;
}
.plabel + .pq {
  font-weight: 400;
  font-style: italic;
}
.opt {
  font-family: var(--serif);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 400;
  color: var(--ink-soft);
  opacity: 0.8;
}
.hint {
  margin: 6px 0 2px;
  padding-left: 1.1em;
  font-size: 0.9rem;
  font-style: italic;
  color: var(--ink-soft);
}
textarea,
.prompt input,
.sheet input {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 10px;
  padding: 4px 10px 6px;
  font: 400 1.05rem/2 var(--serif);
  color: var(--ink);
  resize: none;
  overflow: hidden;
  min-height: 4.2em;
  background-color: rgba(255, 255, 255, 0.45);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent calc(2em - 1px),
    rgba(91, 58, 43, 0.22) calc(2em - 1px),
    rgba(91, 58, 43, 0.22) 2em
  );
  background-attachment: local;
  background-position: 0 4px;
}
.prompt input,
.sheet input {
  min-height: 0;
  background-image: none;
  border-bottom: 1px solid rgba(91, 58, 43, 0.3);
  border-radius: 10px 10px 0 0;
}
textarea:focus,
input:focus {
  outline: none;
  background-color: rgba(255, 255, 255, 0.75);
  box-shadow: 0 0 0 2px var(--gold-soft);
}
textarea::placeholder,
input::placeholder {
  color: rgba(125, 93, 74, 0.5);
  font-style: italic;
}
.prompt.word {
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}
.prompt.word input {
  text-align: center;
  font-family: var(--script);
  font-size: 2.4rem;
  line-height: 1.4;
  color: var(--terracotta);
  max-width: 300px;
}
.fields.grid {
  grid-template-columns: 1fr;
}
@media (min-width: 560px) {
  .fields.grid {
    grid-template-columns: 1fr 1fr;
  }
}
.share-btn {
  width: 100%;
  margin-bottom: 14px;
}

/* ---------- welcome / divider ---------- */
.welcome,
.divider {
  text-align: center;
}
.welcome h2,
.divider h2 {
  font-size: clamp(2rem, 9vw, 2.7rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6a4232;
}
.art-top {
  border-radius: var(--radius);
  margin: 0 auto 20px;
  max-height: 260px;
  width: 100%;
  object-fit: cover;
  object-position: 30% 40%;
  box-shadow: var(--shadow);
}
.lede {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.name-field {
  text-align: left;
  margin: 22px 0;
}
.toc {
  background: rgba(236, 200, 182, 0.35);
  border-radius: var(--radius);
  padding: 18px 20px;
  text-align: left;
}
.toc-title {
  font-family: var(--display);
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 0.4em;
}
.toc dl {
  margin: 0;
}
.toc dt {
  font-weight: 600;
  margin-top: 0.6em;
}
.toc dd {
  margin: 0 0 0 1em;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.note {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 18px;
}
.divider {
  padding-top: 24px;
}
.divider .verb {
  font-family: var(--display);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  font-size: 1.15rem;
  margin: 0.4em 0 0.6em;
  padding-left: 0.5em;
}
.divider-text {
  font-size: 1.25rem;
  font-weight: 500;
  max-width: 340px;
  margin: 0 auto 24px;
}
.divider-art {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 10px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%);
  mask-image: linear-gradient(to bottom, transparent, #000 25%);
}

/* ---------- purusharthas ---------- */
.aims {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
@media (max-width: 480px) {
  .aims {
    grid-template-columns: 1fr;
  }
}
.aim {
  position: relative;
  border-radius: var(--radius);
  padding: 22px 14px 14px;
  text-align: center;
  box-shadow: var(--shadow);
  font-size: 0.95rem;
  line-height: 1.45;
}
.aim h3 {
  font-size: 1.6rem;
  font-weight: 600;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  display: inline-block;
}
.aim .script {
  margin: 6px 0 8px;
  font-size: 1.9rem;
}
.aim.wide {
  grid-column: 1 / -1;
}
.aim.tone-peach {
  background: #ecc7a6;
}
.aim.tone-sage {
  background: #a9b493;
}
.aim.tone-sage .script {
  color: #f6ecd2;
}
.aim.tone-terracotta {
  background: #b9735d;
  color: var(--cream);
}
.aim.tone-cream {
  background: var(--cream) radial-gradient(circle at 50% 0%, rgba(217, 191, 138, 0.35), transparent 60%);
}
.aim.tone-cream .script {
  color: var(--gold);
}
.tag {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ---------- meditation ---------- */
.med-head {
  text-align: center;
  background: rgba(250, 242, 230, 0.85);
  border-radius: 50%;
  aspect-ratio: 1;
  max-width: 330px;
  margin: 0 auto 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  box-shadow: var(--shadow);
  background-image: url("img/tree.jpg");
  background-size: 180%;
  background-position: 50% 30%;
  background-blend-mode: soft-light;
}
.med-head h2 {
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.instruction {
  font-family: var(--display);
  font-style: italic;
  color: var(--terracotta);
  font-size: 1.25rem;
  line-height: 1.35;
  margin-top: 0.5em;
}
.breath {
  text-align: center;
  margin: 10px 0 22px;
}
.breath-ring {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto 6px;
  display: grid;
  place-items: center;
}
.breath-orb {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 132, 120, 0.45), rgba(155, 168, 134, 0.3) 60%, transparent 72%);
  transform: scale(0.6);
  transition: transform 1s ease;
}
.running .breath-orb {
  animation: breathe 10s ease-in-out infinite;
}
@keyframes breathe {
  0%,
  100% {
    transform: scale(0.55);
  }
  50% {
    transform: scale(1);
  }
}
.breath-word {
  position: relative;
  font-family: var(--script);
  font-size: 1.6rem;
  color: var(--ink);
}
.breath-time {
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  min-height: 1.6em;
  margin: 0;
}
.breath-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}
.breath-controls .btn {
  min-height: 40px;
  padding: 0.4em 1em;
}
.breath-controls .small {
  width: 100%;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.7rem;
  color: var(--olive);
}

/* ---------- three circles ---------- */
.circles {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.circle-row {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 12px;
  align-items: start;
  background: transparent !important;
}
.badge {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.bname {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.15rem;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.badge .script {
  font-size: 1.05rem;
  margin-top: 4px;
  line-height: 1.1;
  padding: 0 6px;
}
.cbox {
  border-radius: var(--radius);
  padding: 14px 16px 8px;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.cbox h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.cbox ul {
  margin: 0 0 8px;
  padding-left: 1.1em;
  font-style: italic;
}
.reflect-label {
  font-weight: 600;
  margin: 0;
}
.circle-row.tone-terracotta .badge {
  background: #c98f74;
  color: var(--cream);
}
.circle-row.tone-terracotta .cbox {
  background: #f1d6c2;
}
.circle-row.tone-sage .badge {
  background: #a5b18f;
  color: #3f3a26;
}
.circle-row.tone-sage .cbox {
  background: #dfe0c5;
}
.circle-row.tone-peach .badge {
  background: #f1d1b5;
}
.circle-row.tone-peach .cbox {
  background: #f8e9da;
}
@media (max-width: 400px) {
  .circle-row {
    grid-template-columns: 1fr;
    justify-items: center;
  }
}

/* ---------- venn ---------- */
.venn {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 4px auto 0;
  overflow: visible;
}
.vring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.8;
  opacity: 0.7;
}
.vc {
  opacity: 0.55;
  mix-blend-mode: multiply;
}
.vhit {
  cursor: pointer;
  outline: none;
}
.vtarget {
  fill: transparent;
  stroke: transparent;
  stroke-width: 1.5;
  transition: stroke 0.2s ease, fill 0.2s ease;
}
.vhit:hover .vtarget,
.vhit:focus-visible .vtarget,
.vhit.lit .vtarget {
  fill: rgba(255, 255, 255, 0.25);
  stroke: var(--gold);
  stroke-dasharray: 2 3;
}
.venn text {
  text-anchor: middle;
  fill: #4b2f22;
  pointer-events: none;
}
.vname {
  font: 600 15px var(--display);
}
.vword {
  font: 400 13px var(--script);
}
.vsmall {
  font: italic 500 10px var(--serif);
}
.vcentre {
  font: 600 10px var(--display);
  letter-spacing: 0.14em;
}
.vlotus {
  font-size: 14px;
  fill: var(--rose) !important;
}
.vtick {
  font: 700 14px var(--serif);
  fill: var(--sage-deep) !important;
}
.vtick.sm {
  font-size: 11px;
}
.overlaps {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.overlap {
  border-radius: var(--radius);
  padding: 16px 18px 6px;
  background: rgba(250, 242, 230, 0.75);
  box-shadow: var(--shadow);
  text-align: center;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}
.overlap.lit {
  background: #fff8ec;
  box-shadow: 0 0 0 2px var(--gold-soft), var(--shadow);
}
.overlap .pair {
  font-weight: 600;
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
}
.overlap h3 {
  color: var(--terracotta);
  margin: 2px 0 6px;
}
.overlap .line {
  font-style: italic;
}

/* ---------- seed ---------- */
.seed-box {
  border-radius: var(--radius);
  padding: 22px 18px;
  margin: 18px 0 14px;
  box-shadow: var(--shadow);
}
.seed-sentence {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 2.4;
  text-align: center;
  margin: 0;
}
.blank {
  display: inline-block;
  min-width: 9ch;
  max-width: 100%;
  padding: 0 8px;
  border-bottom: 1.5px solid var(--terracotta);
  font-family: var(--serif);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.15rem;
  font-style: italic;
  color: #7a3f2d;
  line-height: 1.5;
  outline: none;
  background: rgba(255, 255, 255, 0.35);
  border-radius: 6px 6px 0 0;
  cursor: text;
}
.blank:empty::before {
  content: attr(data-ph);
  color: rgba(122, 63, 45, 0.45);
}
.blank:focus {
  background: rgba(255, 255, 255, 0.8);
}
.seed-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--gold-soft);
  background: rgba(255, 255, 255, 0.35);
}
.seed-card img {
  width: 96px;
  height: 120px;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 12px;
}
.seed-card p {
  margin: 0;
}
.gap {
  color: var(--ink-soft);
}

/* ---------- quotes ---------- */
.quote-fig {
  margin: 0;
  position: relative;
  text-align: center;
}
.quote-fig img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quote-fig blockquote {
  margin: -60px 14px 0;
  position: relative;
  background: rgba(250, 242, 230, 0.93);
  border-radius: var(--radius);
  padding: 26px 22px 20px;
  box-shadow: var(--shadow);
}
.quote-fig.tall blockquote {
  margin: 10px 0 18px;
  background: transparent;
  box-shadow: none;
}
.quote-fig.tall img {
  box-shadow: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%);
  mask-image: linear-gradient(to bottom, transparent, #000 15%);
}
.quote-fig blockquote p {
  font-family: var(--display);
  font-style: italic;
  font-size: 1.55rem;
  line-height: 1.35;
}
.quote-fig figcaption {
  font-weight: 600;
}

/* ---------- compass ---------- */
.compass {
  display: grid;
  grid-template-columns: 1fr 1.9fr 1fr;
  grid-template-areas: ". n ." "w art e" ". s .";
  align-items: center;
  gap: 6px;
  margin-top: 6px;
}
.compass-art {
  grid-area: art;
  width: 100%;
  border-radius: 50%;
  -webkit-mask-image: radial-gradient(circle, #000 62%, transparent 71%);
  mask-image: radial-gradient(circle, #000 62%, transparent 71%);
}
.cpoint {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 8px 4px;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cpoint.on {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--gold-soft);
}
.dir-N {
  grid-area: n;
}
.dir-E {
  grid-area: e;
}
.dir-S {
  grid-area: s;
}
.dir-W {
  grid-area: w;
}
.cname {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.cline {
  font-family: var(--display);
  font-style: italic;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--ink-soft);
}
.cpoint .tick {
  position: absolute;
  top: 2px;
  right: 6px;
  color: var(--sage-deep);
  font-size: 0.8rem;
  opacity: 0;
}
.cpoint.is-filled .tick {
  opacity: 1;
}
.compass-detail {
  margin-top: 16px;
}
.cdir {
  text-align: center;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ---------- ecosystem ---------- */
.eco-boxes {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}
.eco {
  border-radius: var(--radius);
  padding: 16px 18px 6px;
  box-shadow: var(--shadow);
}
.eco h3 {
  font-size: 1.35rem;
  font-weight: 600;
}
.eco h3 span {
  font-weight: 500;
  font-style: italic;
}
.eco .line {
  font-style: italic;
  margin: 4px 0 6px;
}
.eco ul {
  padding-left: 1.1em;
  margin: 0 0 10px;
  font-size: 0.97rem;
}
.eco.tone-terracotta {
  background: #d39c84;
}
.eco.tone-sage {
  background: #c5cbab;
}

.tree {
  position: relative;
  margin: 6px -8px 10px;
}
.tree img {
  width: 100%;
  border-radius: var(--radius);
}
.tchip {
  position: absolute;
  transform: translate(-50%, -50%);
  max-width: 34%;
  min-width: 86px;
  padding: 5px 9px 6px;
  border-radius: 14px;
  background: rgba(250, 242, 230, 0.88);
  border: 1px solid var(--gold-soft);
  box-shadow: 0 2px 10px rgba(91, 58, 43, 0.12);
  font: inherit;
  color: var(--ink);
  text-align: center;
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
button.tchip {
  cursor: pointer;
}
button.tchip:hover {
  background: #fffaf1;
}
.tname {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
}
.tname {
  white-space: nowrap;
}
.tree:not(.editable) .tchip:not(.is-filled) {
  display: none;
}
.tval {
  font-size: 0.78rem;
  font-style: italic;
  overflow-wrap: anywhere;
}
.tval .add {
  color: var(--terracotta);
  font-style: normal;
  opacity: 0.85;
}
.tchip.trunk {
  background: rgba(241, 210, 182, 0.92);
}
.tchip.trunk .tval {
  font-family: var(--display);
  font-style: normal;
  font-weight: 600;
  font-size: 0.95rem;
}
.tchip.soil {
  max-width: 44%;
  background: rgba(211, 156, 132, 0.85);
}
.tchip.soil .tname {
  color: #5b3a2b;
}
.tchip.roots {
  background: rgba(241, 228, 180, 0.9);
}
.tchip.branch {
  background: rgba(227, 228, 207, 0.92);
}
.tchip.is-filled {
  border-color: var(--sage-deep);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 8px;
}
.chip {
  border: 1px solid rgba(91, 58, 43, 0.25);
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 8px 14px;
  font: 500 0.95rem var(--serif);
  color: var(--ink);
  cursor: pointer;
  min-height: 40px;
}
.chip.on {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  color: var(--cream);
}
.branch-note .pq {
  font-style: italic;
  font-weight: 400;
}
.branch-note .own {
  font-size: 0.92rem;
  margin: 0;
}

/* ---------- next month ---------- */
.next-band {
  background: #b5bd9d;
  border-radius: var(--radius);
  text-align: center;
  padding: 18px 12px;
  margin-bottom: 18px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.85rem;
  box-shadow: var(--shadow);
}
.next-band p {
  margin: 0.2em 0;
}
.next-band .big {
  font-size: 2.2rem;
  letter-spacing: 0.3em;
  font-weight: 600;
}

/* ---------- overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(60, 38, 28, 0.45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fade 0.2s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.overlay-inner {
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--parchment);
  border-radius: 22px 22px 0 0;
  padding: 26px 20px calc(22px + env(safe-area-inset-bottom));
  animation: up 0.28s ease;
}
@keyframes up {
  from {
    transform: translateY(30px);
  }
}
.overlay-x {
  position: absolute;
  top: 8px;
  right: 8px;
}
.page-wrap .overlay-inner {
  padding: 46px 12px 16px;
}
.page-img {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin-bottom: 8px;
}
.sheet h3 {
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.sheet .line {
  font-style: italic;
  margin-bottom: 4px;
}
.sheet [data-plant] {
  margin: 4px 0;
}
.share {
  text-align: center;
}
.share-seed {
  font-family: var(--display);
  font-size: 1.5rem;
  line-height: 1.4;
}
.share-label {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--olive);
  margin: 16px 0 6px;
}
.share-dharma {
  font-size: 1.2rem;
  font-style: italic;
}
.share .tree {
  margin: 0;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(90px + env(safe-area-inset-bottom));
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: var(--cream);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 200;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------- workbook ---------- */
.book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}
.more {
  width: 100%;
  text-align: center;
  font-size: 0.92rem;
  margin-top: 6px;
}
.more summary {
  cursor: pointer;
  color: var(--ink-soft);
  padding: 6px;
}
.more .btn {
  margin: 4px;
  min-height: 40px;
}
.file-btn {
  position: relative;
}
.book-sec {
  margin-bottom: 26px;
}
.book-sec h3 {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gold-soft);
  margin-bottom: 12px;
}
.book-head {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--terracotta);
  margin: 18px 0 8px;
}
.book-item {
  background: rgba(250, 242, 230, 0.75);
  border-radius: 14px;
  padding: 12px 16px 4px;
  margin-bottom: 10px;
  box-shadow: var(--shadow);
  break-inside: avoid;
}
.book-label {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 2px;
}
.book-q {
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 4px;
}
.book-a {
  white-space: normal;
}
.book-word {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--olive);
}
.book-word strong {
  display: block;
  font-family: var(--script);
  font-weight: 400;
  font-size: 2.6rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--terracotta);
}

@media print {
  body {
    background: #fff;
    font-size: 12pt;
  }
  .rbar,
  .book-actions,
  .rnav,
  .saved {
    display: none !important;
  }
  .book-item {
    box-shadow: none;
    border: 1px solid #e6d8c3;
  }
  .screen {
    animation: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- type: match the workbook (Garamond capitals, Garamond body, plain italics) ---------- */
.brand,
.cover h1 {
  font-family: var(--title);
}
.script,
.hello em,
.word-chip strong,
.breath-word,
.prompt.word input,
.book-word strong {
  font-style: italic;
  font-weight: 500;
}
.script {
  font-size: 1.15em;
}
.aim .script {
  font-size: 1.3rem;
}
.badge .script {
  font-size: 0.92rem;
}
.overlap h3.script {
  font-size: 1.35rem;
}
.hello em {
  font-size: 1em;
}
.word-chip strong {
  font-size: 1.6rem;
}
.prompt.word input {
  font-size: 1.8rem;
}
.book-word strong {
  font-size: 2rem;
}
.breath-word {
  font-size: 1.25rem;
}
.vword {
  font: italic 500 13px var(--serif);
}

/* ---------- printed page viewer: full screen, high resolution ---------- */
.page-wrap {
  align-items: stretch;
  background: #2f2119;
}
.page-wrap .overlay-inner {
  max-width: none;
  max-height: none;
  height: 100%;
  border-radius: 0;
  background: transparent;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: auto;
  animation: none;
  touch-action: pinch-zoom pan-x pan-y;
}
.page-wrap .page-img {
  width: auto;
  height: auto;
  max-width: 100vw;
  max-height: calc(100vh - 34px);
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  margin: 0;
}
.page-wrap .overlay-x {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  right: 10px;
  z-index: 2;
  background: rgba(248, 230, 205, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}
.page-cap {
  color: rgba(248, 230, 205, 0.75);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  margin: 8px 0 0;
}

/* ---------- large writable Circle of Dharma ---------- */
.venn.big {
  width: calc(100% + 32px);
  max-width: 640px;
  margin: 4px -16px 6px;
}
@media (min-width: 640px) {
  .venn.big {
    margin: 4px auto 6px;
    width: 100%;
  }
}
.vcell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1px;
  padding: 2px 3px;
  border: 1px dashed transparent;
  border-radius: 14px;
  background: transparent;
  color: #3f271c;
  font-family: var(--serif);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
  transition: background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}
.vcell:hover,
.vcell:focus-visible {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(91, 58, 43, 0.35);
  outline: none;
}
.vc-name {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: 0.02em;
}
.vc-word {
  font-style: italic;
  font-size: 12.5px;
  line-height: 1.1;
  padding-bottom: 2px;
  border-bottom: 0.5px solid rgba(63, 39, 28, 0.45);
}
.vc-q {
  font-style: italic;
  font-weight: 600;
  font-size: 10.5px;
  line-height: 1.2;
  margin-top: 2px;
}
.vc-text {
  font-size: 11px;
  line-height: 1.3;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  white-space: pre-line;
}
.vc-text .add {
  color: #7a3f2d;
  font-style: italic;
}
.vc-ov {
  font-style: italic;
  font-weight: 600;
  font-size: 10.5px;
  line-height: 1.15;
  margin-top: auto;
}
.vc-centre {
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.16em;
}
.vc-lotus {
  color: var(--rose);
  font-size: 15px;
  line-height: 1;
  margin-top: 6px;
}
.vc-tick {
  font-size: 11px;
  font-weight: 700;
  color: var(--sage-deep);
  opacity: 0;
  margin-bottom: auto;
}
.vcell.is-filled .vc-tick {
  opacity: 1;
}

/* ---------- evolution history ---------- */
.fwrap {
  display: flex;
  flex-direction: column;
}
.evo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 8px;
  padding: 6px 6px 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.evo:empty {
  display: none;
}
.evo-meta {
  margin-right: auto;
  font-style: italic;
  color: var(--olive);
}
.evo-btn {
  border: 1px solid rgba(180, 139, 66, 0.45);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  min-height: 32px;
  font: 500 0.82rem var(--serif);
  cursor: pointer;
}
.evo-btn:hover {
  background: #fff;
}
.evo-btn[data-evolve] {
  border-color: var(--sage-deep);
  color: var(--sage-deep);
}
.evo-prev {
  width: 100%;
  margin: 0 0 4px;
  padding: 8px 12px;
  border-left: 2px solid var(--gold-soft);
  background: rgba(255, 255, 255, 0.4);
  border-radius: 0 10px 10px 0;
  font-style: italic;
  color: var(--ink-soft);
}
.history .versions {
  list-style: none;
  margin: 12px 0 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--gold-soft);
}
.history .versions li {
  position: relative;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.45);
}
.history .versions li::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--parchment);
  border: 2px solid var(--gold);
}
.history .versions li.current {
  background: #fffaf1;
  box-shadow: 0 0 0 1.5px var(--sage);
}
.history .versions li.current::before {
  background: var(--sage-deep);
  border-color: var(--sage-deep);
}
.vmeta {
  display: block;
  font-size: 0.82rem;
  color: var(--olive);
  margin: 0 0 4px;
}
.badge-now {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  margin-left: 4px;
}
.vtext {
  margin: 0 0 6px;
}
.small-btn {
  min-height: 34px;
  padding: 0.3em 0.9em;
  font-size: 0.85rem;
}
.book-evo {
  font-size: 0.85rem;
  color: var(--olive);
  margin: 0 0 8px;
  font-style: italic;
}
details.book-evo summary {
  cursor: pointer;
}
details.book-evo ol {
  list-style: none;
  padding: 6px 0 0 12px;
  margin: 0;
  border-left: 2px solid var(--gold-soft);
  font-style: normal;
  color: var(--ink-soft);
}
details.book-evo li {
  margin-bottom: 8px;
}
@media print {
  .evo {
    display: none;
  }
  details.book-evo ol {
    display: block;
  }
}

/* ---------- animated, turnable compass ---------- */
.dial {
  grid-area: art;
  position: relative;
  aspect-ratio: 1;
  touch-action: none;
  cursor: grab;
  border-radius: 50%;
  outline: none;
  animation: dial-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.dial:active {
  cursor: grabbing;
}
.dial:focus-visible {
  box-shadow: 0 0 0 2px var(--gold);
}
@keyframes dial-in {
  from {
    transform: rotate(-40deg) scale(0.85);
    opacity: 0;
  }
}
.dial .compass-art {
  grid-area: auto;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.dial.complete .compass-art {
  animation: glow 3.5s ease-in-out infinite;
}
@keyframes glow {
  50% {
    filter: drop-shadow(0 0 14px rgba(217, 191, 138, 0.9)) saturate(1.15);
  }
}
.dial-marks,
.needle-rot {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.dial-marks {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mark {
  fill: rgba(255, 255, 255, 0.6);
  stroke: var(--gold-soft);
  stroke-width: 1;
  transition: fill 0.4s ease;
}
.mark.lit {
  fill: var(--gold);
  stroke: #fff6df;
  animation: twinkle 2.4s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes twinkle {
  50% {
    transform: scale(1.35);
    opacity: 0.75;
  }
}
.needle-rot {
  transition: transform 0.95s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform;
}
.needle-rot.seeking {
  transition: transform 1.7s cubic-bezier(0.25, 1.4, 0.5, 1);
}
.needle-rot.instant {
  transition: none;
}
.needle {
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(91, 58, 43, 0.35));
}
.wobble {
  animation: wobble 3.2s ease-in-out infinite;
  transform-origin: 0 0;
}
@keyframes wobble {
  0%,
  100% {
    transform: rotate(-2.5deg);
  }
  50% {
    transform: rotate(2.5deg);
  }
}
.n-tip {
  fill: #b8823a;
  stroke: #fff3d6;
  stroke-width: 0.8;
}
.n-tail {
  fill: #7d8c66;
  stroke: #fff3d6;
  stroke-width: 0.8;
}
.n-ring {
  fill: none;
  stroke: rgba(184, 130, 58, 0.55);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.cpoint {
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.3s ease;
}
.cpoint.on {
  transform: scale(1.06);
  box-shadow: 0 0 18px rgba(217, 191, 138, 0.55);
}
.cpoint.on .cname {
  color: #8a5a22;
}
.compass-hint {
  margin-top: 6px;
}
.compass-done {
  text-align: center;
  font-style: italic;
  color: var(--sage-deep);
  animation: rise 0.6s ease both;
}
.cd-in {
  animation: rise 0.45s ease both;
}
.cdir-arrow {
  display: inline-block;
  color: var(--gold);
  transition: transform 0.5s ease;
}

/* ---------- recall of earlier answers ---------- */
.recall {
  margin: 0 0 16px;
  padding: 10px 16px;
  border-radius: var(--radius);
  border: 1px dashed var(--gold-soft);
  background: rgba(255, 255, 255, 0.38);
  font-size: 0.95rem;
}
.recall summary {
  cursor: pointer;
  font-style: italic;
  color: var(--olive);
  padding: 2px 0;
}
.recall dl {
  margin: 8px 0 4px;
}
.recall dt {
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 8px;
}
.recall dd {
  margin: 2px 0 0;
  color: var(--ink-soft);
}

/* ---------- home tree matures with the participant ---------- */
.grow-bg img {
  transform: scale(calc(0.3 + var(--grow, 0) * (0.2 + 0.5 * var(--mature, 0))));
}
.grow-note {
  font-style: italic;
  font-size: 0.85rem;
  color: var(--olive);
  margin: 2px 0 0;
}
@media (max-width: 520px) {
  .compass {
    grid-template-columns: 44px 1fr 44px;
    gap: 2px;
  }
  .dir-E .cline,
  .dir-W .cline {
    display: none;
  }
  .dir-E .cname,
  .dir-W .cname {
    writing-mode: vertical-rl;
    letter-spacing: 0.3em;
    font-size: 1rem;
  }
  .dir-W .cname {
    transform: rotate(180deg);
  }
  .dir-E,
  .dir-W {
    padding: 14px 2px;
  }
  .dir-N .cline,
  .dir-S .cline {
    font-size: 0.88rem;
  }
}

/* ---------- fitting words inside the circles ---------- */
.vc-inner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 0;
}
.vcell .add {
  color: #7a3f2d;
  font-style: italic;
  font-size: 10.5px;
  margin-top: 3px;
}
.vc-text {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  -webkit-line-clamp: unset;
  font-size: 11.5px;
  line-height: 1.28;
  margin-top: 3px;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.vc-text.keys {
  font-weight: 600;
  white-space: normal;
}
.vcell.truncated .vc-text {
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent);
  mask-image: linear-gradient(to bottom, #000 72%, transparent);
}
.vc-more {
  display: none;
  flex: 0 0 auto;
  font-size: 9.5px;
  font-style: italic;
  font-weight: 600;
  color: #7a3f2d;
  line-height: 1.1;
  padding-top: 1px;
}
.vcell.truncated .vc-more {
  display: block;
}
.vc-ov,
.vc-centre {
  flex: 0 0 auto;
}
.vc-ov {
  margin-top: 0;
}

/* ---------- home: fuller seedling and tree, leaves never faded ---------- */
.cover-text {
  margin: 0 auto;
}
.cover-art {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 92%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%);
}
.grow-bg img {
  transform: scale(calc(0.3 + var(--grow, 0) * (0.45 + 0.25 * var(--mature, 0))));
}
@media (min-width: 700px) {
  .home .cover {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }
  .cover-art {
    width: min(92vw, 1000px);
    margin-top: calc(-77px - 0.193 * min(92vw, 1000px));
  }
  .cover .cover-tag {
    margin-top: calc(-0.06 * min(92vw, 1000px));
    font-size: 1.3rem;
    max-width: 360px;
  }
  .grow-bg img {
    max-width: none;
    width: min(100%, 92vh);
  }
}
@media (min-width: 700px) {
  #app {
    position: relative;
  }
  .grow-bg {
    position: absolute;
    inset: auto auto 0 50%;
    width: min(100vw, 1250px);
    height: auto;
    transform: translateX(-50%);
    overflow: visible;
  }
  .grow-bg img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}

/* ---------- seedling sits below the title; roots reach into the words beneath ---------- */
.cover-art {
  --seed-w: min(122%, 560px);
  width: var(--seed-w);
  margin-top: calc(6px - 0.06 * var(--seed-w));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 76%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%),
    radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 76%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 4%, #000 96%, transparent 100%),
    radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
  mask-composite: intersect;
}
.cover .cover-tag {
  margin-top: calc(-0.3 * var(--seed-w-tag, min(122vw, 560px)));
  text-shadow: 0 0 10px var(--parchment), 0 0 4px var(--parchment);
}
.greet .hello {
  text-shadow: 0 0 10px var(--parchment), 0 0 4px var(--parchment);
}
@media (min-width: 700px) {
  .cover-art {
    --seed-w: min(92vw, 1000px);
    margin-top: calc(6px - 0.06 * var(--seed-w));
  }
  .cover .cover-tag {
    --seed-w-tag: min(92vw, 1000px);
    margin-top: calc(-0.3 * var(--seed-w-tag));
  }
}

/* ---------- still images: the tree rests behind the lower page, sized by progress ---------- */
#app {
  position: relative;
}
.grow-bg {
  position: absolute;
  inset: auto auto 0 50%;
  width: min(100vw, 1250px);
  height: auto;
  transform: translateX(-50%);
  overflow: visible;
  display: block;
}
.grow-bg img,
.grow-bg img[src] {
  width: 100%;
  max-width: none;
  height: auto;
  object-fit: contain;
  opacity: 0.85;
  transform: scale(calc(0.78 + 0.22 * var(--mature, 0)));
  transform-origin: 50% 100%;
}
.cover-art {
  opacity: 1;
  transform: translateX(-50%);
}
@media (min-width: 700px) {
  .cover-art {
    --seed-w: min(78vw, 860px);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 76%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
      radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 76%, transparent 100%),
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%),
      radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
  }
  .cover .cover-tag {
    --seed-w-tag: min(78vw, 860px);
  }
  .grow-bg {
    width: min(100vw, 1050px);
  }
  .grow-bg img,
  .grow-bg img[src] {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 26%),
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 26%),
      linear-gradient(to right, transparent 0%, #000 12%, #000 88%, transparent 100%);
  }
}
.home .cover {
  overflow-x: clip;
  overflow-y: visible;
}

/* ---------- full-width seedling and tree; tagline clear of the roots ---------- */
body {
  overflow-x: clip;
}
.cover-art,
.cover .cover-tag {
  --seed-w: 100vw;
  --seed-w-tag: 100vw;
}
.cover-art {
  width: 100vw;
  max-width: none;
  margin-top: calc(6px - 0.06 * 100vw);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 74%, transparent 96%),
    radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 74%, transparent 96%),
    radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
  mask-composite: intersect;
}
.cover .cover-tag {
  margin-top: calc(-0.1 * 100vw);
  border-top: 0;
  padding-top: 0;
}
.grow-bg {
  width: 100vw;
}
.grow-bg img,
.grow-bg img[src] {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%);
}
@media (min-width: 700px) {
  .cover-art {
    width: 100vw;
    margin-top: calc(6px - 0.06 * 100vw);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 74%, transparent 96%),
      radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 74%, transparent 96%),
      radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
  }
  .cover .cover-tag {
    margin-top: calc(-0.1 * 100vw);
  }
  .grow-bg {
    width: 100vw;
  }
  .grow-bg img,
  .grow-bg img[src] {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 24%);
  }
}
.grow-bg img,
.grow-bg img[src] {
  transform: none;
  opacity: calc(0.6 + 0.3 * var(--mature, 0));
}
.greet .meta,
.greet .grow-note,
.home .list-title,
.cover .cover-tag {
  text-shadow: 0 0 12px var(--parchment), 0 0 6px var(--parchment), 0 0 2px var(--parchment);
}
.greet .meta {
  color: var(--ink);
}
@media (min-width: 700px) {
  .cover-art {
    width: min(62vw, 720px);
    margin-top: calc(6px - 0.06 * min(62vw, 720px));
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 74%, transparent 96%),
      linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
      radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
    -webkit-mask-composite: source-in, source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 4%, #000 74%, transparent 96%),
      linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
      radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
    mask-composite: intersect;
  }
  .cover .cover-tag {
    margin-top: calc(-0.1 * min(62vw, 720px));
  }
}

/* ---------- the tree lives only below the seedling ---------- */
.home-lower {
  position: relative;
  padding-bottom: 1px;
}
.home-lower > :not(.grow-bg) {
  position: relative;
  z-index: 1;
}
.home-lower .grow-bg {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  height: auto;
  transform: translateX(-50%);
  overflow: hidden;
  z-index: 0;
  display: flex;
  align-items: flex-end;
}
.home-lower .grow-bg img,
.home-lower .grow-bg img[src] {
  width: 100%;
  height: auto;
}
@media (min-width: 700px) {
  .home-lower .grow-bg img,
  .home-lower .grow-bg img[src] {
    height: 100%;
    object-fit: cover;
    object-position: 50% 78%;
  }
}
@media (min-width: 700px) {
  .home-lower {
    --tree-w: min(100vw, 1600px);
    display: flex;
    flex-direction: column;
    padding-top: 7vw;
    min-height: calc(var(--tree-w) * 1.4144 + 7vw);
  }
  .home-lower .credit {
    margin-top: auto;
  }
  .home-lower .grow-bg {
    width: var(--tree-w);
  }
  .home-lower .grow-bg img,
  .home-lower .grow-bg img[src] {
    height: auto;
    object-fit: contain;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 9%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 9%);
  }
}

/* ---------- the back cover, set in the soil beneath the roots ---------- */
.home .credit.back-cover {
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 0;
  margin: 28px auto 0;
  padding: 10px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.brand-mark {
  width: min(62vw, 300px);
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 54% 54% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 54% 54% at 50% 50%, #000 70%, transparent 100%);
}
.brand-url {
  font-size: 1.15rem;
  margin: 10px 0 0;
}
.brand-url a {
  text-decoration: none;
  color: #6a4232;
  text-shadow: 0 0 8px var(--parchment), 0 0 3px var(--parchment);
}
.back-cover .sun {
  margin: 6px auto 10px;
  width: 90px;
}
.back-cover .account-line,
.back-cover .account-actions,
.back-cover .fine {
  margin: 2px 0;
  font-size: 0.85rem;
  text-shadow: 0 0 8px var(--parchment), 0 0 3px var(--parchment);
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@media (min-width: 700px) {
  /* the soil oval of page 27's tree: about 31% of the tree's width tall, 8.5% up from the bottom */
  .home-lower .credit.back-cover {
    margin: auto auto calc(var(--tree-w) * 0.07);
    height: calc(var(--tree-w) * 0.33);
    max-width: calc(var(--tree-w) * 0.42);
    justify-content: center;
    padding: 0;
  }
  .brand-mark {
    width: min(calc(var(--tree-w) * 0.16), 300px);
  }
}

/* ---------- sign in ---------- */
.auth {
  max-width: 440px;
  margin: 0 auto;
  padding: 24px 20px 10px;
  text-align: center;
}
.auth-art {
  width: 210px;
  margin: 0 auto -6px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 60%, transparent 100%);
}
.auth .brand {
  font-family: var(--title);
  font-size: 2.2rem;
}
.auth-tabs {
  display: flex;
  margin: 18px 0 6px;
  border-bottom: 1px solid var(--gold-soft);
}
.auth-tabs a {
  flex: 1;
  padding: 10px 6px;
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.auth-tabs a.on {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--terracotta);
}
.auth-form {
  text-align: left;
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.auth-title {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 600;
}
.auth-intro {
  text-align: center;
  color: var(--ink-soft);
  margin: 0 0 4px;
}
.auth-form label {
  display: grid;
  gap: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}
.auth-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid rgba(91, 58, 43, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font: 400 1.05rem var(--serif);
  color: var(--ink);
}
.auth-form input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(217, 191, 138, 0.45);
}
.pw {
  position: relative;
  display: block;
}
.pw input {
  padding-right: 64px;
}
.pw .link-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--ink-soft);
}
.auth-error {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(184, 112, 90, 0.14);
  color: #8a3a26;
}
.auth-form .btn.wide {
  margin-top: 6px;
}
.auth-form .btn:disabled {
  opacity: 0.6;
}
.auth .credit {
  padding-top: 26px;
}

/* ---------- organiser view ---------- */
.org-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
.org-stats div {
  background: rgba(250, 242, 230, 0.8);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.org-stats strong {
  font-size: 1.6rem;
  color: var(--terracotta);
}
.org-stats span {
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.25;
}
.org-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.org-card {
  background: rgba(250, 242, 230, 0.85);
  border-radius: var(--radius);
  padding: 16px 18px 12px;
  box-shadow: var(--shadow);
}
.org-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.org-head h3 {
  font-size: 1.35rem;
  font-weight: 600;
}
.org-biz {
  margin: 0;
  font-style: italic;
}
.org-email {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.org-pct {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--sage-deep);
}
.org-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 6px 0;
}
.org-sections {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 0;
  margin: 8px 0;
}
.org-sections li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.org-sections .mini {
  width: 100%;
  height: 34px;
  border-radius: 6px;
  background: rgba(91, 58, 43, 0.08);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.org-sections .mini span {
  display: block;
  width: 100%;
  background: linear-gradient(to top, var(--sage), var(--gold-soft));
}
.org-sections .lbl {
  font-size: 0.68rem;
  color: var(--ink-soft);
}
.org-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.org-flag {
  font-size: 0.78rem;
  font-style: italic;
  color: var(--terracotta);
}
.temp-pw {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 1.35rem;
  text-align: center;
  padding: 14px;
  border-radius: 12px;
  background: #fffaf1;
  border: 1px dashed var(--gold);
  user-select: all;
  -webkit-user-select: all;
  overflow-wrap: anywhere;
}

/* ---------- desktop pages use the full width; text keeps a reading measure ---------- */
@media (min-width: 900px) {
  body[data-view="reader"] #app {
    max-width: none;
  }
  body[data-view="reader"] .rbar {
    padding-left: max(16px, calc(50vw - 620px));
    padding-right: max(16px, calc(50vw - 620px));
  }
  body[data-view="reader"] .steps {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 24px 0;
  }
  body[data-view="reader"] .screen {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 40px 48px;
  }
  body[data-view="reader"] .screen > *,
  body[data-view="reader"] .welcome > *,
  body[data-view="reader"] .divider > * {
    max-width: 780px;
    margin-left: auto;
    margin-right: auto;
  }
  body[data-view="reader"] .rnav {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding-left: 40px;
    padding-right: 40px;
  }
  body[data-view="reader"] .rnav .btn {
    flex: 0 1 260px;
  }
  body[data-view="reader"] .rnav {
    justify-content: space-between;
  }
  body[data-view="reader"] .shead h2 {
    font-size: 2.8rem;
  }
  body[data-view="reader"] body {
    font-size: 19px;
  }

  /* full-bleed artwork */
  body[data-view="reader"] .divider-art,
  body[data-view="reader"] .welcome .art-top,
  body[data-view="reader"] .quote-fig:not(.tall) img {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: 0;
    height: min(64vh, 680px);
    object-fit: cover;
    object-position: 50% 60%;
    border-radius: 0;
    box-shadow: none;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  }
  body[data-view="reader"] .welcome .art-top {
    height: min(52vh, 560px);
    max-height: none;
    object-position: 30% 45%;
  }
  body[data-view="reader"] .divider,
  body[data-view="reader"] .welcome,
  body[data-view="reader"] .quote-fig {
    max-width: none;
  }
  body[data-view="reader"] .quote-fig:not(.tall) blockquote {
    max-width: 720px;
    margin: -140px auto 0;
    padding: 36px 40px 28px;
  }
  body[data-view="reader"] .quote-fig blockquote p {
    font-size: 2rem;
  }
  body[data-view="reader"] .quote-fig.tall {
    max-width: 960px;
  }
  body[data-view="reader"] .quote-fig.tall img {
    max-width: 760px;
    margin: 0 auto;
  }

  /* larger interactive pieces */
  body[data-view="reader"] .venn.big {
    max-width: 900px;
    width: 100%;
    margin: 10px auto;
  }
  body[data-view="reader"] .venn:not(.big) {
    max-width: 640px;
  }
  body[data-view="reader"] .compass {
    max-width: 1000px;
    grid-template-columns: 1fr 2.2fr 1fr;
  }
  body[data-view="reader"] .cname {
    font-size: 1.15rem;
  }
  body[data-view="reader"] .cline {
    font-size: 1.05rem;
  }
  body[data-view="reader"] .tree {
    max-width: 920px;
    margin: 10px auto;
  }
  body[data-view="reader"] .tchip {
    max-width: 26%;
  }
  body[data-view="reader"] .tname {
    font-size: 0.85rem;
  }
  body[data-view="reader"] .tval {
    font-size: 0.95rem;
  }
  body[data-view="reader"] .fields.grid,
  body[data-view="reader"] .aims,
  body[data-view="reader"] .eco-boxes,
  body[data-view="reader"] .overlaps,
  body[data-view="reader"] .org-list {
    max-width: 1100px;
  }
  body[data-view="reader"] .eco-boxes,
  body[data-view="reader"] .overlaps,
  body[data-view="reader"] .org-list {
    grid-template-columns: 1fr 1fr;
  }
  body[data-view="reader"] .med-head {
    max-width: 420px;
  }
  body[data-view="reader"] .terracotta-panel {
    font-size: 1.8rem;
    padding: 40px 48px;
  }
}

/* leaves are never faded: only the plain paper above the leaf tip (top 2%) blends into the page */
.cover-art {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 2%, #000 74%, transparent 96%),
    radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 2%, #000 74%, transparent 96%),
    radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
  mask-composite: intersect;
}
@media (min-width: 700px) {
  .cover-art {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 2%, #000 74%, transparent 96%),
      linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
      radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
    -webkit-mask-composite: source-in, source-in;
    mask-image: linear-gradient(to bottom, transparent 0%, #000 2%, #000 74%, transparent 96%),
      linear-gradient(to right, transparent 0%, #000 9%, #000 91%, transparent 100%),
      radial-gradient(ellipse 62% 58% at 100% 100%, transparent 25%, #000 80%);
    mask-composite: intersect;
  }
}

/* sign-in seedling: shown whole, leaves untouched; only the soil at the bottom blends away */
.auth-art {
  width: min(86vw, 340px);
  margin: 0 auto -10px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 2%, #000 76%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 2%, #000 76%, transparent 100%);
}
.auth-art {
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 2%, #000 64%, transparent 98%),
    linear-gradient(to right, transparent 0%, #000 17%, #000 83%, transparent 100%),
    radial-gradient(ellipse 60% 62% at 100% 100%, transparent 30%, #000 82%);
  -webkit-mask-composite: source-in, source-in;
  mask-image: linear-gradient(to bottom, transparent 0%, #000 2%, #000 64%, transparent 98%),
    linear-gradient(to right, transparent 0%, #000 17%, #000 83%, transparent 100%),
    radial-gradient(ellipse 60% 62% at 100% 100%, transparent 30%, #000 82%);
  mask-composite: intersect;
}

/* ---------- account details, then the back cover set in the soil ---------- */
.account-card {
  margin: 16px 16px 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(250, 242, 230, 0.85);
  border: 1px solid rgba(180, 139, 66, 0.25);
  box-shadow: var(--shadow);
  text-align: center;
  font-size: 0.92rem;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.account-card p {
  margin: 4px 0;
}
.account-card .account-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 8px 0;
}
.account-card .fine {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.auth-privacy {
  margin: 14px 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  text-align: center;
  color: var(--ink-soft);
}


.home .back-cover {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 36px auto 0;
  padding: 26px 24px 34px;
  max-width: 340px;
  border-radius: 50%;
  /* on phones the roots sit behind it, so a soft pool of paper keeps it readable */
  background: radial-gradient(ellipse at center, rgba(248, 230, 205, 0.92) 55%, rgba(248, 230, 205, 0) 72%);
}
.back-cover .brand-mark {
  width: min(56vw, 230px);
  mix-blend-mode: normal;
  -webkit-mask-image: none;
  mask-image: none;
}
.back-cover .brand-url {
  font-size: 1.1rem;
  margin: 12px 0 0;
}
.back-cover .brand-url a {
  color: #6a4232;
  text-decoration: none;
  text-shadow: none;
}
.back-cover .sun {
  width: 90px;
  margin: 8px auto 0;
}

@media (min-width: 700px) {
  /* page 27's tree: its soil opening is about 30% of the tree's width tall and 8.5% up from the bottom */
  .home-lower {
    padding-bottom: calc(var(--tree-w) * 0.39);
  }
  .home .back-cover {
    position: absolute;
    left: 50%;
    bottom: calc(var(--tree-w) * 0.09);
    height: calc(var(--tree-w) * 0.29);
    width: calc(var(--tree-w) * 0.3);
    max-width: none;
    transform: translateX(-50%);
    margin: 0;
    padding: 0;
    justify-content: center;
    background: none;
    border-radius: 0;
    z-index: 1;
  }
  .back-cover .brand-mark {
    width: auto;
    height: calc(var(--tree-w) * 0.2);
    max-height: 330px;
  }
  .back-cover .brand-url {
    font-size: clamp(1rem, calc(var(--tree-w) * 0.011), 1.35rem);
  }
}

/* ---------- meditation music ---------- */
.music-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 4px auto 12px;
  padding: 10px 20px 10px 12px;
  min-height: 48px;
  border-radius: 999px;
  border: 1px solid var(--gold-soft);
  background: rgba(255, 255, 255, 0.5);
  font: 500 1rem var(--serif);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.music-btn:hover {
  background: rgba(255, 255, 255, 0.8);
}
.music-icon {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 1rem;
}
.music-btn.on {
  background: #fffaf1;
  box-shadow: 0 0 0 2px rgba(155, 168, 134, 0.5), 0 0 22px rgba(217, 191, 138, 0.45);
}
.music-btn.on .music-icon {
  background: var(--gold);
  animation: sway 2.6s ease-in-out infinite;
}
@keyframes sway {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }
  50% {
    transform: rotate(8deg) scale(1.08);
  }
}

/* ---------- music switch on every page ---------- */
.music-fab {
  position: fixed;
  z-index: 40;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: rgba(250, 242, 230, 0.92);
  color: var(--ink-soft);
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(91, 58, 43, 0.12);
  top: calc(12px + env(safe-area-inset-top));
  right: 12px;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
  -webkit-tap-highlight-color: transparent;
}
.music-fab::after {
  content: "";
  position: absolute;
  width: 26px;
  height: 1.5px;
  background: currentColor;
  transform: rotate(-45deg);
  opacity: 0.7;
}
.music-fab.on {
  color: #fff;
  background: var(--sage-deep);
  border-color: var(--sage-deep);
  box-shadow: 0 0 0 3px rgba(155, 168, 134, 0.3), 0 2px 12px rgba(91, 58, 43, 0.18);
}
.music-fab.on::after {
  display: none;
}
.music-fab.on span {
  animation: sway 2.6s ease-in-out infinite;
}
/* in the workbook pages, sit beside the home button in the top bar */
body[data-view="reader"] .music-fab {
  top: calc(8px + env(safe-area-inset-top));
  right: auto;
  left: 58px;
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}
@media (min-width: 900px) {
  body[data-view="reader"] .music-fab {
    left: calc(max(16px, calc(50vw - 620px)) + 50px);
  }
}
body[data-view="auth"] .music-fab {
  display: none;
}
@media print {
  .music-fab {
    display: none;
  }
}

/* ---------- music menu, top right on every page ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.music-fab,
body[data-view="reader"] .music-fab {
  top: calc(8px + env(safe-area-inset-top));
  right: 10px;
  left: auto;
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
}
.music-fab::after {
  display: none;
}
body[data-view="home"] .music-fab {
  top: calc(14px + env(safe-area-inset-top));
  right: 14px;
}
@media (min-width: 900px) {
  body[data-view="reader"] .music-fab {
    left: auto;
    right: max(12px, calc(50vw - 620px));
  }
}
/* make room in the top bar so the printed-page button sits left of the music button */
body[data-view="reader"] .rbar {
  padding-right: 58px;
}
@media (min-width: 900px) {
  body[data-view="reader"] .rbar {
    padding-right: calc(max(16px, calc(50vw - 620px)) + 50px);
  }
}
.music-menu {
  position: fixed;
  z-index: 41;
  top: calc(56px + env(safe-area-inset-top));
  right: 10px;
  width: min(300px, calc(100vw - 20px));
  padding: 16px 18px 14px;
  border-radius: var(--radius);
  background: #fbf3e6;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 12px 40px rgba(60, 38, 28, 0.22);
  animation: rise 0.2s ease both;
}
body[data-view="home"] .music-menu {
  top: calc(62px + env(safe-area-inset-top));
  right: 14px;
}
@media (min-width: 900px) {
  body[data-view="reader"] .music-menu {
    right: max(12px, calc(50vw - 620px));
  }
}
.mm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mm-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
}
.mm-switch {
  position: relative;
  cursor: pointer;
}
.mm-switch input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.mm-track {
  display: block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: rgba(91, 58, 43, 0.2);
  position: relative;
  transition: background 0.25s ease;
}
.mm-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
}
.mm-switch input:checked + .mm-track {
  background: var(--sage-deep);
}
.mm-switch input:checked + .mm-track::after {
  transform: translateX(20px);
}
.mm-switch input:focus-visible + .mm-track {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
.mm-now {
  margin: 4px 0 12px;
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-soft);
}
.mm-modes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(91, 58, 43, 0.08);
}
.mm-modes button {
  border: 0;
  border-radius: 999px;
  padding: 8px 4px;
  min-height: 36px;
  background: transparent;
  font: 500 0.85rem var(--serif);
  color: var(--ink);
  cursor: pointer;
}
.mm-modes button.on {
  background: #fff;
  box-shadow: 0 1px 4px rgba(91, 58, 43, 0.18);
  font-weight: 600;
}
.mm-hint {
  margin: 8px 2px 10px;
  font-size: 0.8rem;
  color: var(--olive);
  text-align: center;
}
.mm-vol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}
.mm-vol input {
  flex: 1;
  accent-color: var(--sage-deep);
}

/* ---------- main menu, top left ---------- */
.nav-btn {
  position: fixed;
  z-index: 40;
  top: calc(8px + env(safe-area-inset-top));
  left: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  background: rgba(250, 242, 230, 0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(91, 58, 43, 0.12);
}
.nav-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-btn.open span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.nav-btn.open span:nth-child(2) {
  opacity: 0;
}
.nav-btn.open span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
body[data-view="home"] .nav-btn {
  top: calc(14px + env(safe-area-inset-top));
  left: 14px;
}
body[data-view="auth"] .nav-btn,
body[data-view="auth"] .nav-menu {
  display: none;
}
/* the menu takes the home button's place in the top bar */
body.has-nav .rbar > a.icon-btn:first-child {
  visibility: hidden;
}
@media (min-width: 900px) {
  body[data-view="reader"] .nav-btn {
    left: max(12px, calc(50vw - 620px));
  }
}
.nav-menu {
  position: fixed;
  z-index: 41;
  top: calc(56px + env(safe-area-inset-top));
  left: 10px;
  width: min(260px, calc(100vw - 20px));
  padding: 14px 10px 10px;
  border-radius: var(--radius);
  background: #fbf3e6;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 12px 40px rgba(60, 38, 28, 0.22);
  display: flex;
  flex-direction: column;
  animation: rise 0.2s ease both;
}
body[data-view="home"] .nav-menu {
  top: calc(62px + env(safe-area-inset-top));
  left: 14px;
}
@media (min-width: 900px) {
  body[data-view="reader"] .nav-menu {
    left: max(12px, calc(50vw - 620px));
  }
}
.nm-who {
  margin: 0 10px 8px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.nm-who span {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sage-deep);
  border: 1px solid var(--sage);
  border-radius: 999px;
  padding: 2px 8px;
}
.nm-group {
  margin: 10px 10px 2px;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}
.nav-menu a,
.nav-menu button {
  display: block;
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  border: 0;
  background: none;
  font: 500 1rem var(--serif);
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.nav-menu a:hover,
.nav-menu button:hover {
  background: rgba(155, 168, 134, 0.18);
}
.nav-menu a.on {
  background: rgba(155, 168, 134, 0.28);
  font-weight: 600;
}
.nav-menu hr {
  border: 0;
  border-top: 1px solid rgba(180, 139, 66, 0.3);
  margin: 6px 8px;
  width: auto;
}

/* ---------- organiser dashboard and analytics ---------- */
.org-tabs {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 12px 16px 0;
}
.org-tabs a {
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink-soft);
  border: 1px solid transparent;
}
.org-tabs a.on {
  background: #fffaf1;
  color: var(--ink);
  font-weight: 600;
  border-color: var(--gold-soft);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}
body[data-view="reader"] .screen > .tiles {
  max-width: 1100px;
}
.tile {
  background: rgba(250, 242, 230, 0.9);
  border-radius: var(--radius);
  padding: 14px 10px;
  text-align: center;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tile strong {
  font-size: 1.6rem;
  line-height: 1.15;
  color: var(--ink);
}
.tile strong small {
  font-size: 0.55em;
  color: var(--ink-soft);
  font-weight: 500;
}
.tile span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.25;
}
.tile em {
  font-size: 0.72rem;
  color: var(--olive);
}
.org-pct span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--ink-soft);
  text-align: right;
}
.org-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px 10px;
  margin: 10px 0 4px;
}
.org-facts div {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 10px;
  padding: 6px 8px;
}
.org-facts dt {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
}
.org-facts dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
}
.org-sections li {
  position: relative;
}
.evo-n {
  font-size: 0.65rem;
  color: var(--sage-deep);
  font-weight: 600;
}
.chips-row {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0;
  margin: 6px 0;
}
.chips-row li {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(91, 58, 43, 0.3);
  color: var(--ink-soft);
}
.chips-row li.done {
  border: 1px solid var(--sage);
  background: rgba(155, 168, 134, 0.22);
  color: var(--ink);
}
.an-card {
  background: rgba(250, 242, 230, 0.9);
  border-radius: var(--radius);
  padding: 18px 20px 16px;
  margin: 14px 0;
  box-shadow: var(--shadow);
}
body[data-view="reader"] .screen > .an-card.wide {
  max-width: 1100px;
}
.an-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
}
.an-sub {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 2px 0 12px;
}
.an-foot {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 26px 0 0;
}
.an-cols {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 2px;
  height: 140px;
  align-items: end;
  border-bottom: 1px solid rgba(91, 58, 43, 0.15);
}
.an-cols .col {
  position: relative;
  height: 100%;
  display: flex;
  align-items: flex-end;
  cursor: default;
}
.an-cols .col > span {
  display: block;
  width: 100%;
  min-height: 0;
  background: var(--sage);
  border-radius: 4px 4px 0 0;
  transition: background 0.15s ease;
}
.an-cols .col:hover > span {
  background: var(--sage-deep);
}
.an-cols .col em {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  font-size: 0.65rem;
  font-style: normal;
  color: var(--ink-soft);
  white-space: nowrap;
}
.hbars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.hbars li {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}
.hb-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(91, 58, 43, 0.08);
  overflow: hidden;
}
.hb-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--sage);
}
.hb-val {
  font-weight: 600;
  font-size: 0.85rem;
  min-width: 52px;
  text-align: right;
}
.heat-wrap {
  overflow-x: auto;
}
.heat {
  width: 100%;
  border-collapse: separate;
  border-spacing: 3px;
  font-size: 0.85rem;
}
.heat th {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-align: center;
  padding: 4px;
}
.heat tbody th {
  text-align: left;
  color: var(--ink);
  white-space: nowrap;
}
.heat td {
  text-align: center;
  padding: 8px 4px;
  border-radius: 6px;
  min-width: 54px;
  background: rgba(91, 58, 43, 0.05);
  color: var(--ink-soft);
}
.heat td small {
  display: block;
  font-size: 0.68rem;
}
.heat .h1,
.heat-key .h1 {
  background: #e4e7d8;
  color: var(--ink);
}
.heat .h2,
.heat-key .h2 {
  background: #c8d0b2;
  color: var(--ink);
}
.heat .h3,
.heat-key .h3 {
  background: #9fae84;
  color: #23301a;
}
.heat .h4,
.heat-key .h4 {
  background: #66734f;
  color: #fff;
}
.heat-key {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
}
.heat-key span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 4px;
}
.q-list {
  margin: 0;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
}
.q-list li {
  font-size: 0.92rem;
}
.q-list li span {
  display: block;
}
.q-list li strong {
  font-size: 0.8rem;
  color: var(--sage-deep);
}
.quiet-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.quiet-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.92rem;
}
.quiet-list li span:last-child {
  color: var(--ink-soft);
  font-size: 0.85rem;
}
.quiet-dot {
  color: var(--terracotta);
}
@media (min-width: 900px) {
  body[data-view="reader"] .organiser .screen {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    align-content: start;
  }
  body[data-view="reader"] .organiser .screen > * {
    grid-column: 1 / -1;
  }
  body[data-view="reader"] .organiser .screen > .an-card:not(.wide) {
    grid-column: auto;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ---------- attendance colours: validated pair (teal in person, amber remote), always labelled ---------- */
:root {
  --in-person: #0087a3;
  --remote: #d08a22;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: 1px;
  background: rgba(91, 58, 43, 0.18);
}
.dot.in {
  background: var(--in-person);
}
.dot.remote {
  background: var(--remote);
}

/* participant home: my gatherings */
.gatherings,
.badges {
  margin: 8px 16px 0;
}
.g-intro {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin: -6px 0 12px;
  text-shadow: 0 0 8px var(--parchment);
}
.g-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.g-list li {
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgba(250, 242, 230, 0.85);
  border: 1px solid rgba(180, 139, 66, 0.25);
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.g-info {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}
.g-info span {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.g-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(91, 58, 43, 0.07);
}
.g-toggle button {
  border: 0;
  border-radius: 999px;
  min-height: 38px;
  padding: 6px 4px;
  background: transparent;
  font: 500 0.85rem var(--serif);
  color: var(--ink);
  cursor: pointer;
}
.g-toggle button.on {
  background: #fff;
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(91, 58, 43, 0.18);
}
.g-toggle .g-in.on {
  box-shadow: inset 0 -3px 0 var(--in-person), 0 1px 4px rgba(91, 58, 43, 0.18);
}
.g-toggle .g-remote.on {
  box-shadow: inset 0 -3px 0 var(--remote), 0 1px 4px rgba(91, 58, 43, 0.18);
}

/* badges */
.badge-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(102px, 1fr));
  gap: 10px;
}
.badge-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
  padding: 12px 6px 10px;
  border-radius: var(--radius);
  background: rgba(250, 242, 230, 0.85);
  border: 1px solid rgba(180, 139, 66, 0.22);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--ink-soft);
}
.badge-grid strong {
  font-size: 0.82rem;
  color: var(--ink);
}
.badge-grid li.locked {
  opacity: 0.62;
}
.badge-grid li.locked em {
  font-style: italic;
}
.medal {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  color: rgba(91, 58, 43, 0.35);
  background: rgba(91, 58, 43, 0.06);
  border: 1.5px dashed rgba(91, 58, 43, 0.25);
}
.medal.earned {
  color: #fff8e8;
  background: radial-gradient(circle at 35% 30%, #e6c983, #b48b42 60%, #8f6a2c);
  border: 2px solid #f3dfae;
  box-shadow: 0 0 0 2px rgba(180, 139, 66, 0.35), 0 4px 10px rgba(143, 106, 44, 0.3);
  text-shadow: 0 1px 1px rgba(80, 50, 10, 0.4);
}
.medal.sm {
  width: 22px;
  height: 22px;
  font-size: 0.72rem;
  border-width: 1px;
  box-shadow: none;
  display: inline-grid;
  vertical-align: middle;
}
.badge-toast {
  position: fixed;
  left: 50%;
  top: calc(64px + env(safe-area-inset-top));
  transform: translate(-50%, -16px) scale(0.96);
  opacity: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  border-radius: 18px;
  background: #fffaf1;
  border: 1px solid var(--gold-soft);
  box-shadow: 0 14px 40px rgba(60, 38, 28, 0.25);
  max-width: calc(100vw - 32px);
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-toast.show {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}
.badge-toast .medal {
  flex: 0 0 auto;
  animation: medal-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes medal-in {
  from {
    transform: rotate(-120deg) scale(0.3);
  }
}
.badge-toast span:last-child {
  display: flex;
  flex-direction: column;
}
.badge-toast em {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--olive);
}
.badge-toast strong {
  font-size: 1.05rem;
  color: var(--ink);
}

/* organiser: gatherings, attendance, badges */
.g-admin-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: grid;
  gap: 8px;
}
.g-admin-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
}
.g-admin-list li div {
  display: flex;
  flex-direction: column;
}
.g-admin-list li div span,
.g-count {
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.g-add {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}
.g-add input {
  min-height: 40px;
  padding: 6px 12px;
  border: 1px solid rgba(91, 58, 43, 0.25);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  font: 400 0.95rem var(--serif);
  color: var(--ink);
}
@media (max-width: 560px) {
  .g-admin-list li,
  .g-add {
    grid-template-columns: 1fr;
  }
}
.attend-row {
  list-style: none;
  padding: 0;
  margin: 6px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.attend-row li {
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(91, 58, 43, 0.15);
}
.remote-badge {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  vertical-align: middle;
  padding: 2px 8px;
  border-radius: 999px;
  color: #6b4205;
  background: rgba(208, 138, 34, 0.16);
  border: 1px solid var(--remote);
}
.org-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 6px 0;
}
.org-badge-n {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-left: 4px;
}
.legend {
  font-size: 0.8rem;
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  margin: 0 0 10px;
}
.att-bars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
.att-bars li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
  gap: 12px;
  align-items: center;
  font-size: 0.9rem;
}
.att-bars .hb-label {
  display: flex;
  flex-direction: column;
}
.att-bars .hb-label em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.att-track {
  display: flex;
  gap: 2px;
  height: 14px;
}
.att-track .seg {
  border-radius: 4px;
}
.att-track .seg.in {
  background: var(--in-person);
}
.att-track .seg.remote {
  background: var(--remote);
}
.att-track .seg.none {
  background: rgba(91, 58, 43, 0.12);
}
.badge-bars .hb-label {
  display: flex;
  align-items: center;
  gap: 6px;
}
@media (max-width: 560px) {
  .att-bars li,
  .hbars li {
    grid-template-columns: 1fr auto;
  }
  .att-bars .att-track,
  .hbars .hb-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* organiser pages: one centred column, wide enough for the grid */
@media (min-width: 900px) {
  body[data-view="reader"] .organiser .screen {
    display: block;
  }
  body[data-view="reader"] .organiser .screen > *,
  body[data-view="reader"] .organiser .screen > .an-card,
  body[data-view="reader"] .organiser .screen > .an-card.wide,
  body[data-view="reader"] .organiser .screen > .tiles,
  body[data-view="reader"] .organiser .screen > .org-list {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }
}
.heat td.h-na {
  background: transparent;
  color: rgba(91, 58, 43, 0.35);
}
@media (min-width: 900px) {
  body[data-view="reader"] .organiser .screen > .an-card:not(.wide),
  body[data-view="reader"] .organiser .screen > .an-card.wide {
    max-width: 1040px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ---------- achievement medallions ---------- */
.medal-art {
  display: block;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  overflow: visible;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}
.medal-art.earned {
  filter: drop-shadow(0 3px 6px rgba(143, 106, 44, 0.35));
}
.medal-art.locked {
  filter: grayscale(1) contrast(0.85) brightness(1.08);
  opacity: 0.38;
}
.medal-art.sm {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(143, 106, 44, 0.35));
}
.medal-art.toast-medal {
  width: 58px;
  height: 58px;
  animation: medal-in 0.9s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.badge-grid {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 12px;
}
.badge-grid li {
  position: relative;
  overflow: hidden;
  padding: 16px 8px 12px;
  gap: 6px;
}
.badge-grid li.earned {
  background: radial-gradient(circle at 50% 28%, rgba(246, 226, 168, 0.55), rgba(250, 242, 230, 0.9) 62%);
  border-color: rgba(212, 169, 79, 0.55);
  box-shadow: 0 6px 18px rgba(143, 106, 44, 0.14);
}
.badge-grid li.earned:hover .medal-art {
  transform: translateY(-3px) rotate(-6deg) scale(1.06);
}
/* a slow shimmer across earned achievements */
.badge-grid li.earned::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.55), transparent);
  transform: skewX(-18deg);
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}
.badge-grid li.earned:nth-child(3n + 1)::after {
  animation-delay: 1.2s;
}
.badge-grid li.earned:nth-child(3n + 2)::after {
  animation-delay: 2.4s;
}
@keyframes shimmer {
  0%,
  70% {
    left: -60%;
  }
  100% {
    left: 130%;
  }
}
.badge-grid li.locked {
  opacity: 1;
  background: rgba(250, 242, 230, 0.6);
}
.badge-grid li.locked strong,
.badge-grid li.locked span {
  opacity: 0.6;
}
.org-medal {
  display: inline-flex;
}
.badge-bars .hb-label .medal-art {
  margin-right: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .badge-grid li.earned::after {
    display: none;
  }
}

/* ---------- organiser: calm, summary-first ---------- */
.shead.compact {
  margin-bottom: 14px;
}
.shead.compact h2 {
  font-size: 2rem;
}
.shead.compact .subtitle {
  text-transform: none;
  letter-spacing: 0;
  font-style: italic;
  font-size: 0.95rem;
}
.tiles.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 560px) {
  .tiles.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.tiles.four .tile strong {
  font-size: 1.9rem;
}
.privacy-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-soft);
  margin: 18px 0 6px;
}

/* participant rows */
.p-list {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}
.p-row {
  border-radius: 14px;
  background: rgba(250, 242, 230, 0.92);
  border: 1px solid rgba(180, 139, 66, 0.2);
  box-shadow: 0 1px 2px rgba(91, 58, 43, 0.05);
  transition: box-shadow 0.2s ease;
}
.p-row[open] {
  box-shadow: var(--shadow);
}
.p-row summary {
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(86px, auto) 70px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  cursor: pointer;
}
.p-row summary::-webkit-details-marker {
  display: none;
}
.p-row summary:hover {
  background: rgba(255, 255, 255, 0.45);
  border-radius: 14px;
}
.p-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.p-name strong {
  font-size: 1.02rem;
}
.p-name em {
  font-size: 0.8rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.p-progress {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-progress .bar {
  flex: 1;
  margin: 0;
  height: 6px;
}
.p-progress b {
  font-size: 0.85rem;
  min-width: 36px;
  text-align: right;
}
.p-when {
  font-size: 0.8rem;
  color: var(--ink-soft);
  text-align: right;
}
.p-when.quiet {
  color: var(--terracotta);
}
.p-row .remote-badge {
  justify-self: end;
}
.p-detail {
  padding: 2px 16px 14px;
  border-top: 1px dashed rgba(180, 139, 66, 0.3);
}
.p-meta {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 10px 0 4px;
}
.p-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 12px 0 4px;
}
.p-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .p-row summary {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 6px;
  }
  .p-progress {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  .p-row .remote-badge {
    grid-column: 2;
    grid-row: 1;
  }
  .p-when {
    grid-column: 2;
  }
  .p-cols {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* folding panels */
.fold {
  border-radius: 14px;
  background: rgba(250, 242, 230, 0.92);
  border: 1px solid rgba(180, 139, 66, 0.2);
  margin: 8px 0;
}
.fold summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
}
.fold summary::-webkit-details-marker {
  display: none;
}
.fold summary::after {
  content: "\203A";
  font-size: 1.3rem;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.2s ease;
}
.fold[open] summary::after {
  transform: rotate(90deg);
}
.f-title {
  font-weight: 600;
  font-size: 1.05rem;
}
.f-note {
  flex: 1;
  text-align: right;
  font-size: 0.82rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fold-body {
  padding: 0 18px 16px;
}
.fold .g-admin {
  margin: 0;
  box-shadow: none;
  background: none;
  padding-top: 0;
}
.fold .g-admin > h3 {
  display: none;
}
.more-title {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
  margin: 26px 0 4px;
  text-align: center;
}

/* analytics infographics */
.ring-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 14px;
}
@media (max-width: 640px) {
  .ring-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.kpi {
  margin: 0;
  padding: 16px 10px 12px;
  border-radius: var(--radius);
  background: rgba(250, 242, 230, 0.92);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.kpi figcaption {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.kpi-ring {
  position: relative;
  display: grid;
  place-items: center;
}
.kpi-ring b {
  position: absolute;
  font-size: 1.35rem;
  font-weight: 600;
}
.kpi-ring b small {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--ink-soft);
}
.kpi-ring.sm b {
  font-size: 1.05rem;
}
.ring circle:last-child {
  transition: stroke-dasharray 0.8s ease;
}
.kpi-spark {
  height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.kpi-spark b {
  font-size: 1.3rem;
  font-weight: 600;
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 34px;
}
.spark i {
  display: block;
  width: 9px;
  border-radius: 3px 3px 0 0;
  background: var(--gold);
  opacity: 0.85;
}
.an-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.an-head h3 {
  margin: 0;
}
.an-note {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.an-card.soft {
  background: rgba(255, 248, 238, 0.85);
  border: 1px solid rgba(184, 112, 90, 0.25);
}
.journey {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
  display: flex;
  justify-content: space-between;
  position: relative;
}
.journey::before {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  top: 25px;
  border-top: 2px dashed rgba(180, 139, 66, 0.45);
}
.journey li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
}
.stone {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--sage-deep) var(--fill), rgba(91, 58, 43, 0.12) 0);
  box-shadow: 0 2px 8px rgba(91, 58, 43, 0.12);
}
.stone b {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fbf3e6;
  font-size: 1rem;
}
.j-label {
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.gather-pics {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}
.gather-pics li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
}
.gp-info {
  display: flex;
  flex-direction: column;
}
.gp-info span,
.gp-count {
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.people-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  max-width: 260px;
}
.pd {
  display: block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(91, 58, 43, 0.12);
  position: relative;
}
.pd::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 3px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}
.pd.in {
  background: var(--in-person);
}
.pd.remote {
  background: var(--remote);
}
@media (max-width: 640px) {
  .gather-pics li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
.ring-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 640px) {
  .ring-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.ring-grid figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.ring-grid figcaption {
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.2;
}
.medal-shelf {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(62px, 1fr));
  gap: 12px 8px;
}
.medal-shelf li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.medal-shelf .medal-art {
  width: 50px;
  height: 50px;
}
.medal-shelf b {
  font-size: 0.85rem;
}
.q-rows {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: q;
}
.q-rows li {
  counter-increment: q;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(180, 139, 66, 0.15);
  font-size: 0.92rem;
}
.q-rows li::before {
  content: counter(q);
  color: var(--olive);
  font-size: 0.8rem;
}
.q-rows b {
  font-size: 0.82rem;
  color: var(--sage-deep);
  white-space: nowrap;
}
body[data-view="reader"] .organiser .screen > .ring-row,
body[data-view="reader"] .organiser .screen > .p-list,
body[data-view="reader"] .organiser .screen > .fold,
body[data-view="reader"] .organiser .screen > .tiles.four {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- the lifted seedling (transparent): no fades needed ---------- */
.cover-art,
.auth-art,
.quote-fig.tall img {
  -webkit-mask-image: none !important;
  mask-image: none !important;
}
.cover-art,
body .cover-art {
  width: min(64vw, 300px);
  max-width: none;
  margin: 14px 0 0 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 10px 18px rgba(91, 58, 43, 0.12));
}
.cover .cover-tag,
body .cover .cover-tag {
  margin-top: 18px;
}
@media (min-width: 700px) {
  .cover-art,
  body .cover-art {
    width: min(30vw, 360px);
    margin-top: 18px;
  }
  .cover .cover-tag,
  body .cover .cover-tag {
    margin-top: 22px;
  }
}
.auth-art {
  width: min(48vw, 190px);
  margin: 0 auto 6px;
}
.quote-fig.tall img {
  width: min(70%, 340px);
  margin: 0 auto;
}
.seed-card img {
  object-fit: contain;
  object-position: center;
}

/* full-width call-to-action buttons sit centred on wide screens */
.screen .btn.wide {
  display: flex;
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Dharma points and tree levels ---------- */
.level-card {
  margin: 22px 16px 0;
  padding: 18px 18px 14px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-radius: var(--radius);
  background: radial-gradient(circle at 14% 22%, rgba(246, 226, 168, 0.5), rgba(250, 242, 230, 0.88) 55%);
  border: 1px solid rgba(212, 169, 79, 0.45);
  box-shadow: var(--shadow);
}
.medal-art.level-medal {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  filter: drop-shadow(0 3px 6px rgba(143, 106, 44, 0.3));
}
.lv-body {
  flex: 1;
  min-width: 0;
}
.lv-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--olive);
}
.lv-name {
  margin: 0;
  font-family: var(--title);
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--ink);
}
.lv-points {
  margin: 2px 0 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.lv-points strong {
  color: var(--ink);
  font-size: 1.1rem;
}
.lv-bar {
  height: 8px;
  border-radius: 99px;
  background: rgba(91, 58, 43, 0.1);
  overflow: hidden;
}
.lv-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--sage), var(--sage-deep));
  transition: width 0.6s ease;
}
.lv-next {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.lv-path {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  position: relative;
}
.lv-path::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: rgba(91, 58, 43, 0.2);
}
.lv-path li {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.lv-path li span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--cream);
  border: 1.5px solid rgba(91, 58, 43, 0.3);
}
.lv-path li.past span {
  background: var(--sage);
  border-color: var(--sage-deep);
}
.lv-path li.now span {
  background: var(--gold);
  border-color: #8f6a2c;
  box-shadow: 0 0 0 3px rgba(212, 169, 79, 0.3);
}
.lv-path em {
  font-style: normal;
  font-size: 0.66rem;
  line-height: 1.15;
  color: var(--ink-soft);
}
.lv-path li.now em {
  color: var(--ink);
  font-weight: 600;
}
.lv-span {
  margin: 10px 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.lv-how {
  margin-top: 12px;
  border-top: 1px solid rgba(180, 139, 66, 0.25);
  padding-top: 8px;
}
.lv-how summary {
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--olive);
}
.lv-how ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 6px;
}
.lv-how li {
  display: grid;
  grid-template-columns: 1fr auto 3.2em;
  gap: 10px;
  padding: 3px 0;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-bottom: 1px dotted rgba(91, 58, 43, 0.15);
}
.lv-how li b {
  text-align: right;
  color: var(--ink);
}
.lv-how p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
  font-style: italic;
}
@media (max-width: 420px) {
  .level-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .lv-body {
    width: 100%;
  }
  .lv-how li {
    text-align: left;
  }
}
.level-shelf {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px 6px;
}
.level-shelf li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  text-align: center;
}
.level-shelf .medal-art {
  width: 52px;
  height: 52px;
}
.level-shelf b {
  font-size: 0.95rem;
}
.level-shelf span {
  font-size: 0.72rem;
  line-height: 1.15;
  color: var(--ink-soft);
}
@media (max-width: 480px) {
  .level-shelf {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* painted watercolour badges */
img.medal-art {
  border-radius: 50%;
  object-fit: cover;
}
.badge-grid img.medal-art {
  width: 76px;
  height: 76px;
}
/* 15 achievements sit evenly: three rows of five, or five rows of three on phones */
.badge-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
@media (min-width: 700px) {
  .badge-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (min-width: 900px) {
  .badges {
    width: min(880px, calc(100vw - 64px));
    margin-left: 50%;
    transform: translateX(-50%);
  }
}

/* the course group chat */
.chat-card {
  margin: 14px 16px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px 16px 14px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(248, 224, 200, 0.96), rgba(250, 238, 210, 0.96));
  border: 1px solid rgba(180, 139, 66, 0.35);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s ease;
}
.chat-card:hover {
  transform: translateY(-1px);
}
.chat-icon {
  flex: 0 0 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fffaf0;
  background: radial-gradient(circle at 35% 30%, #c9a35a, #9a6f2a);
  box-shadow: 0 0 0 2px #f3dfae, 0 4px 10px rgba(143, 106, 44, 0.3);
}
.chat-icon svg {
  width: 26px;
  height: 26px;
}
.chat-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* how to add the app to a phone */
.install-guide {
  text-align: center;
}
.ig-seed {
  display: block;
  margin: 0 auto 8px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 4px 14px rgba(91, 58, 43, 0.2);
}
.ig-device {
  text-align: left;
  margin: 12px 0 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(250, 242, 230, 0.85);
  border: 1px solid rgba(180, 139, 66, 0.28);
}
.ig-device summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}
.ig-steps {
  margin: 8px 0 4px;
  padding-left: 1.3em;
  color: var(--ink-soft);
  line-height: 1.45;
}
.ig-steps li {
  margin: 6px 0;
}
.ig-icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  vertical-align: -0.25em;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ig-icon circle {
  fill: var(--ink);
  stroke: none;
}
.ig-note {
  margin: 12px 0 4px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.install-guide .btn.wide {
  margin-top: 16px;
}
.chat-card + .chat-card {
  margin-top: 10px;
}
.jess-card .chat-icon {
  background: radial-gradient(circle at 35% 30%, #c7a08a, #9b6352);
}

/* the course: twelve modules */
.course-card {
  margin: 22px 16px 0;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(250, 242, 230, 0.92);
  border: 1px solid rgba(180, 139, 66, 0.3);
  box-shadow: var(--shadow);
  text-align: center;
}
.cc-title {
  margin: 0 0 12px;
  font-family: var(--title);
  font-size: 1.45rem;
  color: var(--ink);
}
.cc-path {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 520px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 6px;
  position: relative;
}
.cc-path::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  height: 1px;
  background: rgba(91, 58, 43, 0.18);
}
.cc-path li {
  position: relative;
  display: grid;
  place-items: center;
}
.cc-path span {
  width: 100%;
  max-width: 34px;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.78rem;
  color: rgba(91, 58, 43, 0.45);
  background: var(--cream);
  border: 1.5px dashed rgba(91, 58, 43, 0.25);
}
.cc-path li.now span {
  color: #fffaf0;
  font-weight: 600;
  border: 2px solid #f3dfae;
  background: conic-gradient(var(--gold) var(--fill), var(--sage-deep) 0);
  box-shadow: 0 0 0 2px rgba(180, 139, 66, 0.35);
}
.cc-note {
  margin: 12px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
  font-style: italic;
}
.g-soon {
  margin: 6px 0 0;
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.82rem;
  color: var(--olive);
  background: rgba(241, 228, 180, 0.6);
  border: 1px solid rgba(180, 139, 66, 0.3);
}

/* ---------- sound effects switch, in the music menu ---------- */
.mm-sfx {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(91, 58, 43, 0.12);
}
.mm-sfx strong {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
}
.mm-sfx small {
  display: block;
  font-size: 0.78rem;
  color: var(--ink-soft);
  line-height: 1.35;
}
.mm-sfx .mm-switch {
  flex: none;
}
