/* Ayurveda Balance — Phase 0 site
   Palette from natural-dye textiles: indigo ink on paper, madder, neem, turmeric.
   Every color pair used for text meets WCAG 2.1 AA (checked in tests/a11y). */

@font-face {
  font-family: "Tiro Devanagari Sanskrit";
  src: url("../fonts/tiro-devanagari-sanskrit-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Tiro Devanagari Sanskrit";
  src: url("../fonts/tiro-devanagari-sanskrit-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2122;
}
@font-face {
  font-family: "Tiro Devanagari Sanskrit";
  src: url("../fonts/tiro-devanagari-sanskrit-devanagari-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+25CC, U+A830-A839, U+A8E0-A8FF;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #faf9f5;
  --surface: #ffffff;
  --ink: #1c2541;
  --ink-2: #474f6c;
  --rule: #d9d6cc;
  --rule-strong: #b9b5a8;
  --band: #1c2541;
  --band-ink: #f3f1ea;
  --band-ink-2: #c5c9d8;
  --turmeric: #e0a526;
  --vata: #2f68a8;
  --pitta: #b5481b;
  --kapha: #237558;
  --vata-tint: #e4ecf6;
  --pitta-tint: #f7e6dd;
  --kapha-tint: #e0efe8;
  --error: #a3261b;
  --ok: #1f6b4f;

  --serif: "Tiro Devanagari Sanskrit", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Atkinson Hyperlegible Next", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --step-4: clamp(2.5rem, 1.6rem + 3.8vw, 4.25rem);

  --measure: 36rem;
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --page: 72rem;
  --radius-control: 0.5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-kerning: normal;
  font-variant-numeric: lining-nums;
}

img,
svg,
canvas {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 400;
  text-wrap: balance;
}
h1,
h2 {
  font-family: var(--serif);
  letter-spacing: -0.005em;
}
h1 {
  font-size: var(--step-4);
  line-height: 1.04;
}
h2 {
  font-size: var(--step-3);
  line-height: 1.12;
}
h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.3;
}
p {
  margin: 0;
  text-wrap: pretty;
}
p + p {
  margin-top: 0.85em;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.band :focus-visible {
  outline-color: var(--turmeric);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius-control);
}
.skip-link:focus {
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--page));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}
.wordmark {
  font-family: var(--serif);
  font-size: 1.375rem;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark sup {
  font-family: var(--sans);
  font-size: 0.55em;
  vertical-align: 0.9em;
  margin-left: 0.08em;
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}
.site-nav a {
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  text-decoration: underline;
}
@media (max-width: 30rem) {
  .site-nav .nav-optional {
    display: none;
  }
}

/* ---------- Buttons and fields ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: #2a365c;
  border-color: #2a365c;
}
.button.secondary {
  background: transparent;
  color: var(--ink);
}
.button.secondary:hover {
  background: var(--surface);
}
.button.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--ink);
  padding-inline: 0.75rem;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.inline-actions .button.quiet {
  padding-inline: 0;
}
.button.quiet:hover {
  background: transparent;
  text-decoration-thickness: 2px;
}
.button[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}
.band .button {
  background: var(--band-ink);
  border-color: var(--band-ink);
  color: var(--band);
}
.band .button:hover {
  background: #ffffff;
}

.field {
  display: grid;
  gap: 0.35rem;
}
.field label {
  font-weight: 700;
}
.field .optional {
  font-weight: 400;
}
.field input {
  min-height: 3rem;
  padding: 0.6rem 0.85rem;
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
}
.field input:focus-visible {
  border-color: var(--ink);
}
.band .field input {
  border-color: transparent;
}

/* ---------- Landing: hero with the dosha clock ---------- */

.hero {
  padding-block: clamp(2.5rem, 2rem + 4vw, 5.5rem) clamp(3rem, 2rem + 4vw, 5rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: center;
}
.hero-copy h1 {
  max-width: 11ch;
}
.hero-copy .lede {
  margin-top: 1.5rem;
  max-width: var(--measure);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-2);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 2rem;
}
.hero-actions .note {
  flex-basis: 100%;
  font-size: var(--step--1);
  color: var(--ink-2);
}
@media (max-width: 52rem) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }
}

.clock-figure {
  margin: 0;
  display: grid;
  gap: 1.25rem;
  justify-items: center;
}
.clock {
  width: min(100%, 26rem);
  aspect-ratio: 1;
}
.clock .seg {
  stroke: var(--paper);
  stroke-width: 3;
}
.clock .seg.vata {
  fill: var(--vata-tint);
}
.clock .seg.pitta {
  fill: var(--pitta-tint);
}
.clock .seg.kapha {
  fill: var(--kapha-tint);
}
.clock .seg.is-now.vata {
  fill: var(--vata);
}
.clock .seg.is-now.pitta {
  fill: var(--pitta);
}
.clock .seg.is-now.kapha {
  fill: var(--kapha);
}
.clock .seg-label {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  fill: var(--ink);
  letter-spacing: 0.02em;
}
.clock .seg-label.is-now {
  fill: #ffffff;
}
.clock .tick {
  stroke: var(--ink);
  stroke-width: 1.25;
}
.clock .hour-label {
  font-family: var(--sans);
  font-size: 12px;
  fill: var(--ink-2);
}
.clock .face {
  fill: var(--paper);
}
.clock .hand {
  stroke: var(--ink);
  stroke-width: 4;
  stroke-linecap: round;
}
.clock .hand-tip {
  fill: var(--turmeric);
  stroke: var(--ink);
  stroke-width: 2;
}
.clock .center-name {
  font-family: var(--serif);
  font-size: 34px;
  fill: var(--ink);
}
.clock .center-deva {
  font-family: var(--serif);
  font-size: 22px;
  fill: var(--ink-2);
}
.clock .center-time {
  font-family: var(--sans);
  font-size: 13px;
  fill: var(--ink-2);
}
.clock-caption {
  max-width: 26rem;
  text-align: center;
  color: var(--ink-2);
}
.clock-caption strong {
  color: var(--ink);
}

/* ---------- Landing: sections ---------- */

.section {
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
  border-top: 1px solid var(--rule);
}
.section-head {
  max-width: 40rem;
}
.section-head p {
  margin-top: 1rem;
  color: var(--ink-2);
  font-size: var(--step-1);
}

/* "Not 33/33/33" — three example mixes drawn as stacked bars */
.mixes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 1rem + 2vw, 3rem);
  margin-top: 2.5rem;
}
@media (max-width: 44rem) {
  .mixes {
    grid-template-columns: 1fr;
  }
}
.mix h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: var(--step-2);
}
.mix p {
  margin-top: 0.4rem;
  color: var(--ink-2);
}
.mixbar {
  display: flex;
  height: 2.75rem;
  margin-top: 1rem;
  border-radius: 0.35rem;
  overflow: hidden;
  border: 1px solid var(--ink);
}
.mixbar span {
  display: flex;
  align-items: center;
  padding-inline: 0.5rem;
  color: #ffffff;
  font-weight: 700;
  font-size: var(--step--1);
  white-space: nowrap;
  overflow: hidden;
}
.mixbar .vata {
  background: var(--vata);
}
.mixbar .pitta {
  background: var(--pitta);
}
.mixbar .kapha {
  background: var(--kapha);
}
.w-10 { flex-basis: 10%; }
.w-15 { flex-basis: 15%; }
.w-20 { flex-basis: 20%; }
.w-25 { flex-basis: 25%; }
.w-30 { flex-basis: 30%; }
.w-35 { flex-basis: 35%; }
.w-40 { flex-basis: 40%; }
.w-45 { flex-basis: 45%; }
.w-50 { flex-basis: 50%; }
.w-55 { flex-basis: 55%; }
.w-60 { flex-basis: 60%; }

/* What the app will do — a 4-part list, not cards */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem clamp(1.5rem, 1rem + 2vw, 3rem);
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 60rem) {
  .pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 36rem) {
  .pillars {
    grid-template-columns: 1fr;
  }
}
.pillars li {
  padding-top: 1rem;
  border-top: 3px solid var(--ink);
}
.pillars p {
  margin-top: 0.5rem;
  color: var(--ink-2);
}

/* Privacy promises */
.promises {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  align-items: start;
}
@media (max-width: 52rem) {
  .promises {
    grid-template-columns: 1fr;
  }
}
.promise-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.promise-list li {
  display: grid;
  grid-template-columns: 1.75rem 1fr;
  gap: 0.75rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--rule);
}
.promise-list li:first-child {
  padding-top: 0;
}
.promise-list svg {
  width: 1.5rem;
  height: 1.5rem;
  margin-top: 0.15rem;
  color: var(--kapha);
}
.promise-list strong {
  display: block;
}
.promise-list span {
  color: var(--ink-2);
}

/* Learn the words — inline terms */
.term {
  display: inline;
  padding: 0 0.1em;
  border: 0;
  border-bottom: 2px dotted currentColor;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.term:hover {
  border-bottom-style: solid;
}
.term-def {
  display: block;
  margin: 0.75rem 0 0.25rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--turmeric);
  background: var(--surface);
  font-size: var(--step-0);
  color: var(--ink);
}
.term-def[hidden] {
  display: none;
}
.term-def .say {
  color: var(--ink-2);
  font-style: italic;
}
.learn-sample {
  max-width: 40rem;
  margin-top: 2rem;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.45;
}

/* Waitlist band */
.band {
  background: var(--band);
  color: var(--band-ink);
}
.band a {
  color: var(--band-ink);
}
.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  padding-block: clamp(3rem, 2rem + 4vw, 5.5rem);
}
@media (max-width: 52rem) {
  .waitlist {
    grid-template-columns: 1fr;
  }
}
.waitlist .section-head p {
  color: var(--band-ink-2);
}
.waitlist-form {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.waitlist-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 30rem) {
  .waitlist-form .row {
    grid-template-columns: 1fr;
  }
}
.notice {
  font-size: var(--step--1);
  line-height: 1.5;
  color: var(--band-ink-2);
}
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.form-status {
  font-weight: 700;
}
.form-status:empty {
  display: none;
}
.form-status.is-error {
  color: #ffb4a8;
}
.form-status.is-ok {
  color: #bfe8d4;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Footer */
.site-footer {
  padding-block: 2.5rem 3rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.site-footer .wrap {
  display: grid;
  gap: 1rem;
}
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}
.disclaimer {
  max-width: 48rem;
}

/* ---------- Quiz ---------- */

.quiz-main {
  padding-block: clamp(1.5rem, 1rem + 3vw, 3.5rem) 4rem;
}
.quiz-shell {
  max-width: 42rem;
  margin-inline: auto;
}
.quiz-intro h1 {
  font-size: var(--step-4);
  max-width: 14ch;
}
.quiz-intro .lede {
  margin-top: 1.25rem;
  font-size: var(--step-1);
  color: var(--ink-2);
}
.quiz-intro ul {
  margin: 1.5rem 0 2rem;
  padding-left: 1.2rem;
  color: var(--ink-2);
}
.quiz-intro li + li {
  margin-top: 0.35rem;
}
.compare-banner {
  margin-bottom: 2rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
}

.progress {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.progress-text {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.progress-track {
  height: 0.375rem;
  border-radius: 999px;
  background: var(--rule);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  background: var(--ink);
  transition: width 240ms ease;
}

.question {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.question legend {
  padding: 0;
  font-family: var(--serif);
  font-size: var(--step-3);
  line-height: 1.15;
}
.question .framing {
  margin-top: 0.75rem;
  color: var(--ink-2);
}
.options {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.option {
  position: relative;
  display: grid;
  grid-template-columns: 1.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem 1.1rem;
  border: 2px solid var(--rule-strong);
  border-radius: 0.75rem;
  background: var(--surface);
  cursor: pointer;
}
.option:hover {
  border-color: var(--ink-2);
}
.option input {
  appearance: none;
  width: 1.5rem;
  height: 1.5rem;
  margin: 0.05rem 0 0;
  border: 2px solid var(--ink-2);
  border-radius: 50%;
  background: var(--surface);
  cursor: pointer;
}
.option input:checked {
  border-color: var(--ink);
  background: radial-gradient(circle, var(--ink) 0 45%, var(--surface) 50%);
}
.option:has(input:checked) {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.option:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.option input:focus-visible {
  outline: none;
}
.option.not-sure {
  border-style: dashed;
  background: transparent;
}
.quiz-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
.quiz-nav .spacer {
  flex: 1;
}

/* ---------- Results ---------- */

.results-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 40rem) {
  .results-head {
    grid-template-columns: 1fr;
  }
}
.results-kicker {
  color: var(--ink-2);
}
.results-name {
  margin-top: 0.25rem;
  font-size: var(--step-4);
}
.results-name .deva {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.5em;
  color: var(--ink-2);
}
.ring {
  width: 13rem;
  height: 13rem;
  justify-self: center;
}
.ring .track {
  fill: none;
  stroke: var(--rule);
}
.ring .arc {
  fill: none;
}
.ring .arc.vata {
  stroke: var(--vata);
}
.ring .arc.pitta {
  stroke: var(--pitta);
}
.ring .arc.kapha {
  stroke: var(--kapha);
}
.ring .ring-label {
  font-family: var(--sans);
  font-size: 11px;
  fill: var(--ink-2);
}
.ring .ring-big {
  font-family: var(--serif);
  font-size: 30px;
  fill: var(--ink);
}

.shares {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}
.share-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3.25rem;
  gap: 0.85rem;
  align-items: center;
}
.share-row .name {
  font-weight: 700;
}
.share-row .name small {
  display: block;
  font-weight: 400;
  color: var(--ink-2);
  font-size: var(--step--1);
}
.share-row .pct {
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.share-track {
  height: 0.875rem;
  border-radius: 999px;
  background: var(--rule);
  overflow: hidden;
}
.share-fill {
  height: 100%;
  border-radius: 999px;
}
.share-fill.vata {
  background: var(--vata);
}
.share-fill.pitta {
  background: var(--pitta);
}
.share-fill.kapha {
  background: var(--kapha);
}
.share-fill.compare {
  opacity: 0.35;
}

.label-box {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--ink);
  background: var(--surface);
}
.confidence {
  margin-top: 1.25rem;
  color: var(--ink-2);
}
.confidence strong {
  color: var(--ink);
}

.results-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}
.results-section > h2 {
  margin-bottom: 1.25rem;
}
.traits {
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.3;
}
.traits li {
  padding-block: 0.6rem;
}
.traits li + li {
  border-top: 1px solid var(--rule);
}
.tips {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tips li {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 1rem;
}
@media (max-width: 30rem) {
  .tips li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}
.tips h3 {
  font-size: var(--step-0);
}
.season-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-control);
  background: var(--vata-tint);
}
.season-note.pitta {
  background: var(--pitta-tint);
}
.season-note.kapha {
  background: var(--kapha-tint);
}

.rating {
  margin: 0;
  padding: 0;
  border: 0;
}
.rating legend {
  padding: 0;
  font-weight: 700;
}
.rating-scale {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 1rem;
  max-width: 24rem;
}
.rating-scale label {
  display: grid;
  place-items: center;
  min-height: 3rem;
  border: 2px solid var(--rule-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  font-weight: 700;
  cursor: pointer;
}
.rating-scale input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.rating-scale label:has(input:checked) {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}
.rating-scale label:has(input:focus-visible) {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.rating-ends {
  display: flex;
  justify-content: space-between;
  max-width: 24rem;
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 1.25rem;
}
.status {
  font-weight: 700;
}
.status.is-ok {
  color: var(--ok);
}
.status.is-error {
  color: var(--error);
}
.share-preview {
  width: min(100%, 18rem);
  margin-top: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 0.5rem;
}
.fine-print {
  margin-top: 0.75rem;
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* ---------- Prose pages (privacy) ---------- */

.prose {
  max-width: 40rem;
  padding-block: clamp(2rem, 1.5rem + 3vw, 4rem) 4rem;
}
.prose h1 {
  font-size: var(--step-4);
}
.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  font-size: var(--step-2);
}
.prose ul {
  padding-left: 1.2rem;
}
.prose li + li {
  margin-top: 0.4rem;
}
.prose .updated {
  margin-top: 0.75rem;
  color: var(--ink-2);
}
.review-flag {
  margin-top: 1.5rem;
  padding: 0.85rem 1rem;
  border: 2px dashed var(--pitta);
  border-radius: var(--radius-control);
  font-size: var(--step--1);
}

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

@media print {
  .site-header,
  .site-footer,
  .band,
  .quiz-nav,
  .inline-actions {
    display: none;
  }
}

/* Results: bar pairs when comparing with a friend */
.share-bars {
  display: grid;
  gap: 0.3rem;
}
.results-compare-field {
  max-width: 20rem;
  margin-top: 1.75rem;
}

/* ---------------------------------------------------------------- surveys */
.survey-list {
  display: grid;
  gap: 1rem;
  margin: 2rem 0;
  padding: 0;
  list-style: none;
}
.survey-card {
  padding: 1.25rem 1.25rem 1.4rem;
  border: 2px solid var(--rule-strong);
  border-radius: 0.75rem;
  background: var(--surface);
}
.survey-card h2 {
  margin: 0;
}
.survey-card p {
  margin: 0.4rem 0 0.9rem;
}
.notice-card {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  border: 2px solid var(--ink);
  border-radius: 0.75rem;
  background: var(--surface);
}
.notice-card h2 {
  margin-top: 0;
}
.share-pick {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  border: 0;
}
.handoff-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  word-break: break-all;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  background: var(--surface);
  border: 1px dashed var(--rule-strong);
}
@media print {
  .site-header,
  .site-footer nav,
  .skip-link,
  .inline-actions,
  .share-pick,
  #rating-form,
  .review-flag {
    display: none !important;
  }
  .handoff-code {
    border: 0;
  }
}
.share-track,
.share-fill {
  display: block;
}
.result-headline {
  margin: 0.75rem 0 0;
  font-size: var(--step-1, 1.25rem);
  font-weight: 700;
  line-height: 1.35;
}
.option input[type='checkbox'] {
  border-radius: 0.3rem;
}
.option input[type='checkbox']:checked {
  background: var(--ink);
  box-shadow: inset 0 0 0 3px var(--surface);
}
.review-flag {
  margin-bottom: 1.5rem;
}
.plain-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}
.plain-list li {
  margin: 0.4rem 0;
}

/* ------------------------------------------------------------------
   Nov 6 redesign: remove the generic "AI site" patterns.
   (Three equal cards in a row, coloured left-border callouts, a rule
   above every section, identical stacked boxes, emoji icons.) The page
   reads like an editorial document instead: lists with hairlines,
   spacing for hierarchy, colour only where it carries meaning.
   ------------------------------------------------------------------ */

/* Example mixes: a list of rows, not three cards. */
.mixes {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--rule);
}
.mix {
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 0.25rem 2rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--rule);
}
.mix h3 {
  font-size: var(--step-1);
}
.mix .mixbar {
  margin-top: 0;
  grid-row: span 2;
  grid-column: 2;
}
.mix p {
  grid-column: 1;
  font-size: var(--step--1);
}
@media (max-width: 44rem) {
  .mix {
    grid-template-columns: 1fr;
  }
  .mix .mixbar {
    grid-column: 1;
    grid-row: auto;
  }
}

/* What the app will do: two uneven columns of plain text, no top rules. */
.pillars {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 3rem;
}
.pillars li {
  padding-top: 0;
  border-top: 0;
}
@media (max-width: 44rem) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* Callouts: a quiet tint, no coloured edge. */
.term-def {
  border-left: 0;
  border-radius: 0.4rem;
  background: var(--pitta-tint);
}
.label-box {
  border-left: 0;
  background: none;
  padding: 0;
  font-size: var(--step--1);
  color: var(--ink-2);
}

/* Results: spacing makes the hierarchy, not a rule above every section. */
.results-section {
  margin-top: 3.25rem;
  padding-top: 0;
  border-top: 0;
}

/* Survey hub: a list with hairlines, not four identical boxes. */
.survey-list {
  gap: 0;
  border-top: 1px solid var(--rule);
}
.survey-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 1.5rem;
  align-items: center;
  padding: 1.25rem 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: 0;
  background: none;
}
.survey-card h2 {
  font-size: var(--step-1);
}
.survey-card p {
  grid-column: 1;
  margin: 0;
}
.survey-card .button {
  grid-column: 2;
  grid-row: 1 / span 3;
}
@media (max-width: 36rem) {
  .survey-card {
    grid-template-columns: 1fr;
  }
  .survey-card .button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 0.6rem;
  }
}

/* Safety notes: tinted, no boxed border. */
.notice-card {
  border: 0;
  background: var(--pitta-tint);
  border-radius: 0.5rem;
  padding: 1.1rem 1.25rem;
}

/* Legal and review status live in the footer fine print. */
.legal-fine {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--ink-2);
}

/* Strength and pace: result + what to try, per scale (Nov 7) */
.strength-scale { margin-top: 1.25rem; }
.strength-scale h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.strength-scale p { margin: 0.25rem 0 0; }

/* ---- /plan: the daily plan ------------------------------------------------ */
.plan h2 { margin-top: 2.25rem; }
.plan h3 { font-family: var(--sans); font-size: var(--step-0); margin: 0 0 0.25rem; }
.plan-head { border-bottom: 1px solid var(--rule); padding-bottom: 1rem; }
.plan-score { font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin: 0; }
.plan-score small { font-family: var(--sans); font-size: var(--step--1); color: var(--ink-2); }
.plan-line { color: var(--ink-2); margin: 0.35rem 0 0; }
.plan-item { border-top: 1px solid var(--rule); padding: 1rem 0; }
.plan-item:first-of-type { border-top: 0; }
.plan-slot { font-size: var(--step--1); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 0.2rem; }
.plan-why { color: var(--ink-2); margin: 0.2rem 0 0.6rem; }
.plan-meta { font-size: var(--step--1); color: var(--ink-2); margin: 0; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.6rem; }
.plan-actions .button { padding: 0.45rem 0.9rem; font-size: var(--step--1); }
.plan-detail { margin: 0.6rem 0 0; }
.plan-detail summary { cursor: pointer; text-decoration: underline; }
.plan-detail ul, .plan-detail ol { margin: 0.5rem 0 0 1.2rem; padding: 0; }
.plan-done { color: var(--ok); font-weight: 600; margin: 0.4rem 0 0; }
.plan-feel { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0 0; }
.plan-feel .button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.plan-form fieldset { border: 1px solid var(--rule); padding: 1rem; margin: 0 0 1rem; }
.plan-form legend { font-weight: 600; padding: 0 0.4rem; }
.plan-form .row { margin: 0.75rem 0; }
.plan-form .row > label, .plan-form .row > span { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.plan-form .opts { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.plan-form .opts label { font-weight: 400; display: inline-flex; gap: 0.35rem; align-items: center; min-height: 2rem; }
.plan-form select, .plan-form input[type="time"], .plan-form input[type="number"] { font: inherit; padding: 0.4rem 0.5rem; border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink); max-width: 100%; }
.plan-form .hint { font-size: var(--step--1); color: var(--ink-2); margin: 0.2rem 0 0; }
.plan-times { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: 0.5rem 1.5rem; margin: 0.5rem 0 1rem; padding: 0; list-style: none; }
.plan-times strong { display: block; font-family: var(--serif); font-size: 1.5rem; }
.plan-locked { color: var(--ink-2); }

/* ---- /plan: rings and Ask (redesign/v3) ----------------------------------- */
.rings { background: var(--band); color: var(--band-ink); border-radius: 0.75rem; padding: 1.25rem; margin: 0 0 1.5rem; display: grid; gap: 1rem 1.5rem; align-items: center; }
@media (min-width: 40rem) { .rings { grid-template-columns: minmax(12rem, 18rem) 1fr; } }
.rings-art { width: 100%; max-width: 18rem; height: auto; justify-self: center; }
.rings h2 { margin: 0 0 0.35rem; color: var(--band-ink); }
.rings p { margin: 0.35rem 0 0; }
.rings-key { color: var(--band-ink-2); font-size: var(--step--1); }
.ring-today { transform-origin: 160px 160px; animation: ring-breathe 5.5s ease-in-out infinite; }
@keyframes ring-breathe { 50% { transform: scale(1.02); } }
@media (prefers-reduced-motion: reduce) { .ring-today { animation: none; } }
.ask { border-top: 1px solid var(--rule); margin-top: 2rem; }
.ask-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin-bottom: 0.75rem; }
.ask-form label { flex: 1 0 100%; font-weight: 700; }
.ask-form input { flex: 1 1 14rem; min-height: 2.75rem; padding: 0.5rem 0.75rem; border: 1px solid var(--rule-strong); border-radius: var(--radius-control); font: inherit; color: var(--ink); background: var(--surface); }
.ask-answer:not(:empty) { border-left: 0; background: var(--kapha-tint); border-radius: 0.5rem; padding: 0.75rem 1rem; margin: 0.75rem 0; }
.ask-answer p { margin: 0.25rem 0; }
.ask-q { color: var(--ink-2); font-size: var(--step--1); }
.plan-change { font-style: italic; }

/* ==========================================================================
   v3 skin (Nov 2026): indigo cloth, madder, turmeric. Flat color, one display
   face (Anek Latin, OFL, self-hosted), a block-print border, left-set pages.
   Tokens are redefined here so every older rule picks them up.
   ========================================================================== */
@font-face {
  font-family: "Anek Latin";
  src: url("../fonts/anek-latin-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/anek-latin-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}
:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --wash: #f1f3fa;
  --ink: #131c4a;
  --ink-2: #454d75;
  --rule: #d3d8ea;
  --rule-strong: #9aa3c7;
  --band: #17225c;
  --band-ink: #f4f1e6;
  --band-ink-2: #c9cfea;
  --turmeric: #f0b323;
  --madder: #a82a1c;
  --vata: #2b47a6;
  --pitta: #a82a1c;
  --kapha: #55651b;
  --vata-tint: #e6eaf8;
  --pitta-tint: #f9e7e2;
  --kapha-tint: #edf1dc;
  --ok: #4a5a14;
  --serif: "Anek Latin", "Tiro Devanagari Sanskrit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M7 1l6 6-6 6-6-6z' fill='none' stroke='%23f0b323' stroke-width='1.4'/%3E%3Ccircle cx='7' cy='7' r='1.3' fill='%23f0b323'/%3E%3Cpath d='M21 4.5l2.5 2.5-2.5 2.5-2.5-2.5z' fill='%23d9603f'/%3E%3C/svg%3E");
}
h1, h2 { font-weight: 640; letter-spacing: -0.02em; line-height: 1.04; }
h2 { letter-spacing: -0.012em; line-height: 1.12; }
.site-header { background: var(--band); color: var(--band-ink); border-bottom: 0; position: relative; }
.site-header::after { content: ""; display: block; height: 14px; background: var(--band) var(--print) repeat-x center; }
.site-header a { color: var(--band-ink); }
.site-header :focus-visible { outline-color: var(--turmeric); }
.wordmark { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.button { border-radius: 0.3rem; border-color: var(--madder); background: var(--madder); color: #fff; letter-spacing: 0.005em; }
.button:hover { background: #8a2015; border-color: #8a2015; }
.button.quiet, .button.secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.button.quiet:hover, .button.secondary:hover { background: var(--wash); }
.hero-copy h1 { font-weight: 720; }
.site-footer { border-top: 0; }
.site-footer::before { content: ""; display: block; height: 14px; background: var(--band) var(--print) repeat-x center; }

/* ---- plan page ---- */
.plan h2 { margin-top: 3rem; padding-top: 0.9rem; border-top: 3px solid var(--ink); font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.1rem); }
.plan-head { border-bottom: 0; }
.plan-head h1 { font-size: clamp(2.6rem, 2rem + 4vw, 4.5rem); font-weight: 720; }
.plan-score { font-size: clamp(3.5rem, 2.6rem + 5vw, 6rem); font-weight: 760; letter-spacing: -0.04em; color: var(--madder); }
.plan-score small { display: block; margin-top: 0.4rem; font-weight: 400; letter-spacing: 0; color: var(--ink-2); }
.plan-item { border-top: 1px solid var(--rule); padding: 1.25rem 0 1.25rem 1rem; border-left: 4px solid var(--turmeric); margin-top: 0.75rem; background: linear-gradient(var(--wash), var(--wash)) no-repeat 0 0 / 100% 0; }
.plan-item h3 { font-family: var(--serif); font-weight: 620; font-size: 1.4rem; letter-spacing: -0.01em; line-height: 1.15; }
.plan-slot { text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.78rem; font-weight: 700; color: var(--madder); margin: 0 0 0.3rem; }
.plan-why { border-left: 0; }
.rings { border-radius: 0; margin: 0 calc(-1 * var(--gutter)) 2rem; padding: 1.5rem var(--gutter); }
.rings h2 { border-top: 0; margin-top: 0; padding-top: 0; }
.rings::after { content: ""; grid-column: 1 / -1; height: 14px; background: var(--print) repeat-x left center; }
.ask { border-top: 0; margin-top: 0; }
.ask-answer:not(:empty) { background: var(--wash); border-radius: 0; border-left: 4px solid var(--ink); }
.ask-answer .ask-turn + .ask-turn { border-top: 1px solid var(--rule); margin-top: 0.75rem; padding-top: 0.75rem; }
.ask-q { font-weight: 700; color: var(--ink); }

.plan-nav { position: sticky; top: 0; z-index: 5; display: flex; gap: 0.25rem 1.1rem; flex-wrap: wrap; margin: 0 calc(-1 * var(--gutter)) 1.5rem; padding: 0.6rem var(--gutter); background: var(--paper); border-bottom: 3px solid var(--ink); }
.plan-nav a { font-family: var(--serif); font-weight: 620; text-decoration: none; padding: 0.35rem 0; min-height: 2rem; }
.plan-nav a:hover { text-decoration: underline; text-decoration-color: var(--turmeric); text-decoration-thickness: 3px; }
.plan [id] { scroll-margin-top: 4.5rem; }
.callit { background: var(--wash); padding: 1.1rem 1.25rem 1.25rem; margin-top: 2rem; border-top: 3px solid var(--ink); }
.callit h2 { border-top: 0; margin-top: 0; padding-top: 0; }
.noticing { border: 2px dashed var(--ink); padding: 0.75rem 1rem; margin: 1rem 0; }
.noticing p { margin: 0; }
.rings-save { margin-top: 0.9rem; background: var(--turmeric); border-color: var(--turmeric); color: #131c4a; }
.rings-save:hover { background: #ffc73d; border-color: #ffc73d; }
.plan h1 { margin-bottom: 0.6rem; }
.rings .rings-sample { margin: 0.9rem 0.5rem 0 0; color: var(--band-ink); border-color: var(--band-ink); }
.rings .rings-sample:hover { background: #24317a; }

/* ==========================================================================
   Self & Season (Nov 2026). The picture carries the color; the page around it
   stays quiet. One accent, and it changes with the season.
   ========================================================================== */
:root { --ink: #12231d; --ink-2: #43544d; --band: #12231d; --band-ink: #f3f6f1; --band-ink-2: #c3d0c8; --wash: #f1f4ef; --rule: #d5ddd6; --rule-strong: #96a59c; --accent: #2b5fa6; --madder: var(--accent); }
html[data-season="spring"] { --accent: #b03a6c; }
html[data-season="summer"] { --accent: #8a5c00; }
html[data-season="rains"] { --accent: #1c7c74; }
html[data-season="autumn"] { --accent: #a8431c; }
.site-header::after, .site-footer::before, .rings::after { display: none; }
.wordmark { font-size: 1.45rem; letter-spacing: -0.02em; }
.button { background: var(--accent); border-color: var(--accent); border-radius: 999px; }
.button:hover { background: var(--ink); border-color: var(--ink); }
.plan-score, .plan-slot { color: var(--accent); }
.plan-item { border-left-color: var(--accent); }
.hero-copy h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.6rem); }

.valley { position: relative; margin: 0 calc(-1 * var(--gutter)) 0; height: min(86vh, 46rem); min-height: 34rem; overflow: hidden; background: #0d1530; }
@media (min-width: 60rem) { .valley { margin: 0; border-radius: 1.25rem; } }
.valley-art, .valley-demo-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.valley-top { position: absolute; inset: 0 0 auto 0; display: flex; justify-content: space-between; align-items: start; gap: 0.75rem; padding: 1rem; flex-wrap: wrap; }
.valley-title { background: #fff; color: var(--ink); padding: 0.6rem 0.9rem 0.7rem; border-radius: 0.9rem; max-width: 22rem; }
.valley-title h1 { font-size: 1.5rem; margin: 0; line-height: 1.1; }
.valley-title p { margin: 0.2rem 0 0; font-size: var(--step--1); color: var(--ink-2); }
.valley-chips { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.v-chip { font: inherit; font-size: var(--step--1); font-weight: 700; min-height: 2.5rem; padding: 0.4rem 0.9rem; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.v-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.valley-next { margin-top: 0.6rem; width: 100%; text-align: left; font: inherit; background: var(--ink); color: #fff; border: 2px solid #fff; border-radius: 0.9rem; padding: 0.55rem 0.95rem; cursor: pointer; display: grid; }
.valley-next span { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--band-ink-2); }
.valley-next strong { font-family: var(--serif); font-size: 1.15rem; }
.valley-foot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 0.55rem 1rem; background: var(--ink); color: var(--band-ink); font-size: var(--step--1); }
.v-stop { cursor: pointer; }
.v-stop:focus-visible { outline: none; }
.v-stop:focus-visible .v-stone { stroke: #ffd400; stroke-width: 6; }
.v-stone { fill: #fff; stroke: var(--ink); stroke-width: 3; }
.v-icon { stroke: var(--ink); }
.is-tended .v-stone { fill: var(--accent); stroke: #fff; }
.is-tended .v-icon { stroke: #fff; }
.v-tag { fill: #fff; }
.v-tagtext { font: 700 15px var(--sans); fill: #12231d; }
.v-ring { animation: v-ring 2.4s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes v-ring { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
.v-sway { animation: v-sway 3.2s ease-in-out infinite alternate; }
@keyframes v-sway { from { transform: rotate(calc(var(--sway) * -1)); } to { transform: rotate(var(--sway)); } }
.v-wind { animation: v-wind 5s linear infinite; }
@keyframes v-wind { to { transform: translateX(1100px); } }
.v-mist { animation: v-mist 26s ease-in-out infinite alternate; }
.v-mist1 { animation-duration: 34s; animation-direction: alternate-reverse; }
@keyframes v-mist { from { transform: translateX(-60px); } to { transform: translateX(80px); } }
.v-shimmer { animation: v-shimmer 2.6s ease-in-out infinite alternate; }
@keyframes v-shimmer { from { transform: translateY(0); opacity: 0.15; } to { transform: translateY(-9px); opacity: 0.6; } }
.v-pulse { animation: v-pulse 3s ease-in-out infinite alternate; transform-origin: center; transform-box: fill-box; }
@keyframes v-pulse { to { transform: scale(1.14); } }
.v-twinkle { animation: v-shimmer 3.4s ease-in-out infinite alternate; }
.v-rain { animation: v-fall 0.9s linear infinite; }
.v-snow { animation: v-fall 7s linear infinite; }
@keyframes v-fall { to { transform: translate(-40px, 620px); } }
.v-you { animation: v-bob 2.8s ease-in-out infinite alternate; }
@keyframes v-bob { to { translate: 0 -3px; } }
@media (prefers-reduced-motion: reduce) { .valley *, .valley-demo * { animation: none !important; } }

.sheet { border: 0; padding: 0 1.25rem 1.5rem; width: min(100%, 38rem); max-height: 86vh; margin: auto auto 0; border-radius: 1.25rem 1.25rem 0 0; color: var(--ink); background: #fff; }
@media (min-width: 40rem) { .sheet { margin: auto; border-radius: 1.25rem; } }
.sheet::backdrop { background: rgba(13, 21, 48, 0.55); }
.sheet[open] { animation: sheet-up 0.32s ease-out; }
@keyframes sheet-up { from { transform: translateY(2rem); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sheet[open] { animation: none; } }
.sheet-head { position: sticky; top: 0; background: #fff; display: grid; grid-template-columns: 1fr auto; align-items: end; padding: 1.1rem 0 0.6rem; border-bottom: 3px solid var(--ink); margin-bottom: 0.5rem; z-index: 1; }
.sheet-head h2 { margin: 0; border: 0; padding: 0; grid-column: 1; }
.sheet-time { grid-column: 1; margin: 0; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; color: var(--accent); }
.sheet-x { grid-row: 1 / span 2; grid-column: 2; font: inherit; font-size: 1.8rem; line-height: 1; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.sheet .plan-item, .sheet .callit { border: 0; background: none; padding: 0.5rem 0; margin: 0; }
.sheet .callit h2 { display: none; }

.opp { margin-top: 2.5rem; }
.opp-rows { list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 0.6rem; }
.opp-rows li { display: grid; grid-template-columns: 1fr 4.5rem 1fr; align-items: center; animation: opp-in 0.5s ease-out both; animation-delay: calc(var(--i) * 0.14s); }
@keyframes opp-in { from { opacity: 0; transform: translateY(0.5rem); } }
.opp-q, .opp-a { display: grid; padding: 0.7rem 1rem; border-radius: 0.9rem; }
.opp-q { background: var(--wash); border: 2px solid var(--rule-strong); }
.opp-a { background: var(--ink); color: #fff; }
.opp-q strong, .opp-a strong { font-family: var(--serif); font-size: 1.3rem; text-transform: capitalize; line-height: 1.1; }
.opp-q small { color: var(--ink-2); }
.opp-arrow { height: 3px; background: var(--ink); position: relative; margin: 0 0.4rem; }
.opp-arrow::after { content: ""; position: absolute; right: -1px; top: -5px; border: 6.5px solid transparent; border-left-color: var(--ink); border-right: 0; }
@media (prefers-reduced-motion: reduce) { .opp-rows li { animation: none; } }

.tools { margin-top: 2.5rem; }
.tools-list { list-style: none; padding: 0; display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.tools-list p { margin: 0.25rem 0 0; }
.tool-switch { font: inherit; font-weight: 700; display: flex; align-items: center; gap: 0.7rem; background: none; border: 0; padding: 0.3rem 0; color: var(--ink); cursor: pointer; min-height: 2.75rem; }
.tool-knob { width: 3rem; height: 1.7rem; border-radius: 999px; border: 2px solid var(--ink); background: #fff; position: relative; flex: none; }
.tool-knob::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--ink); transition: translate 0.18s; }
[aria-checked="true"] .tool-knob { background: var(--accent); }
[aria-checked="true"] .tool-knob::after { translate: 1.3rem 0; background: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.valley-demo { margin: 0; }
.valley-demo-art { position: relative; aspect-ratio: 4 / 3; border-radius: 1.25rem; overflow: hidden; background: #0d1530; }
.valley-demo figcaption { padding-top: 0.75rem; }
.valley-demo-row { display: flex; gap: 0.4rem; flex-wrap: wrap; margin: 0.6rem 0; }
.valley-demo-hour { display: grid; gap: 0.25rem; font-weight: 700; font-size: var(--step--1); }
.valley-demo-hour input { width: 100%; accent-color: var(--accent); min-height: 2rem; }
.clock-wrap { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 52rem) { .clock-wrap { grid-template-columns: 1fr 1fr; } }
.v-tagtime { font: 400 13px var(--sans); fill: #43544d; }
.valley-title { box-shadow: 0 0 0 2px var(--ink); }
@media (min-width: 60rem) { .valley { width: min(100vw - 3rem, 54rem); margin-left: 50%; translate: -50% 0; height: clamp(40rem, 92vh, 50rem); } }

.valley-stops { position: absolute; inset: 0; pointer-events: none; }
.valley-top, .valley-foot { z-index: 2; }
.stop { position: absolute; pointer-events: auto; translate: -50% -50%; scale: var(--k, 1); width: 3rem; height: 3rem; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); cursor: pointer; }
.stop-stone { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.stop.is-tended .stop-stone { background: var(--accent); color: #fff; border-color: #fff; }
.stop.is-next .stop-stone { outline: 3px solid #fff; outline-offset: 4px; animation: stop-pulse 2.2s ease-in-out infinite alternate; }
@keyframes stop-pulse { to { outline-offset: 9px; } }
.stop:focus-visible { outline: none; }
.stop:focus-visible .stop-stone { outline: 4px solid #ffd400; outline-offset: 3px; }
.stop-tag { position: absolute; top: 50%; translate: 0 -50%; background: #fff; color: #12231d; border-radius: 0.55rem; padding: 0.25rem 0.6rem 0.3rem; white-space: nowrap; text-align: left; line-height: 1.15; display: grid; font-size: 0.8rem; }
.stop-tag strong { font-size: 0.95rem; }
.stop-tag span { color: #43544d; }
.tag-right .stop-tag { left: calc(100% + 0.45rem); }
.tag-left .stop-tag { right: calc(100% + 0.45rem); text-align: right; }
.valley-top { pointer-events: none; } .valley-top > * { pointer-events: auto; }
.button.rings-save { background: var(--turmeric); border-color: var(--turmeric); color: #131c4a; }

/* ==========================================================================
   The world: one full-screen living picture with everything inside it.
   ========================================================================== */
.world-body { margin: 0; overflow: hidden; background: #0d1530; height: 100dvh; }
.world-canvas { position: fixed; inset: 0; width: 100vw; height: 100dvh; display: block; }
.world-ui { position: fixed; inset: 0; pointer-events: none; color: var(--ink); }
.world-ui > * { pointer-events: auto; }
.world-loading { position: absolute; left: 50%; top: 45%; translate: -50% 0; background: #fff; padding: 0.6rem 1rem; border-radius: 999px; }
.world-brand { position: absolute; left: 1rem; top: 0.9rem; background: #fff; border-radius: 0.9rem; padding: 0.45rem 0.85rem 0.5rem; box-shadow: 0 0 0 2px var(--ink); max-width: calc(100vw - 8rem); }
.world-mark { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; color: var(--ink); }
.world-brand p { margin: 0; font-size: 0.82rem; color: var(--ink-2); text-transform: capitalize; }
.world-menu { position: absolute; right: 1rem; top: 0.9rem; font: inherit; font-weight: 700; min-height: 2.75rem; padding: 0.5rem 1.1rem; border-radius: 999px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; }
.world-spots { position: absolute; inset: 0; pointer-events: none; }
.spot { position: absolute; pointer-events: auto; translate: -50% -50%; display: grid; justify-items: center; gap: 0.3rem; background: none; border: 0; padding: 0.4rem; font: inherit; color: var(--ink); cursor: pointer; min-width: 3rem; min-height: 3rem; }
.spot-dot { width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #fff; border: 3px solid var(--ink); }
.spot-tag { display: grid; background: #fff; border-radius: 0.6rem; padding: 0.2rem 0.6rem 0.28rem; line-height: 1.15; white-space: nowrap; box-shadow: 0 1px 0 2px rgba(18, 35, 29, 0.14); }
.spot-tag strong { font-size: 0.92rem; }
.spot-tag span { font-size: 0.74rem; color: var(--ink-2); }
.spot:hover .spot-tag, .spot:focus-visible .spot-tag { box-shadow: 0 0 0 3px var(--ink); }
.spot:focus-visible { outline: none; }
.spot:focus-visible .spot-dot { outline: 4px solid #ffd400; outline-offset: 2px; }
.spot-sun .spot-tag, .spot-tree .spot-tag { translate: 0 0.2rem; }
.world-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); display: flex; gap: 0.75rem 1rem; align-items: center; flex-wrap: wrap; background: linear-gradient(transparent, rgba(13, 21, 48, 0.55)); pointer-events: none; }
.world-foot > * { pointer-events: auto; }
.world-next { font: inherit; text-align: left; background: var(--ink); color: #fff; border: 2px solid #fff; border-radius: 0.9rem; padding: 0.5rem 1rem 0.55rem; cursor: pointer; display: grid; margin: 0; }
.world-next span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--band-ink-2); }
.world-next strong { font-family: var(--serif); font-size: 1.15rem; }
.world-line { margin: 0; color: #fff; font-size: 0.9rem; font-weight: 700; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6); }
.world-card, .world-panel { position: absolute; left: 50%; translate: -50% 0; bottom: 0; width: min(100%, 40rem); max-height: 62dvh; overflow: auto; background: #fff; border-radius: 1.25rem 1.25rem 0 0; padding: 1.1rem 1.25rem calc(1.25rem + env(safe-area-inset-bottom)); box-shadow: 0 0 0 2px var(--ink); }
.world-panel { top: 4.5rem; max-height: none; }
@media (min-width: 60rem) { .world-card { left: 2rem; translate: 0 0; bottom: 2rem; border-radius: 1.25rem; width: 30rem; max-height: 78dvh; } }
.world-card h1 { font-size: clamp(1.35rem, 1.1rem + 1.2vw, 1.8rem); line-height: 1.15; margin: 0.2rem 0 0.8rem; outline: none; }
.wc-step { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.wc-options { display: grid; gap: 0.5rem; }
.wc-opt { font: inherit; text-align: left; padding: 0.75rem 1rem; min-height: 3rem; border-radius: 0.8rem; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.wc-opt:hover { background: var(--wash); }
.wc-quiet { border-style: dashed; color: var(--ink-2); }
.wc-go { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; text-align: center; }
.wc-go:hover { background: var(--ink); }
.wc-back, .linkish { font: inherit; background: none; border: 0; padding: 0.6rem 0; min-height: 2.75rem; text-decoration: underline; color: var(--ink); cursor: pointer; }
.wc-note { font-size: 0.82rem; color: var(--ink-2); margin: 0.9rem 0 0; }
.world-sheet h3 { margin: 1.5rem 0 0.4rem; font-family: var(--serif); font-size: 1.2rem; }
.world-sheet .opp { margin-top: 1.25rem; }
.world-sheet .opp h2, .world-sheet .ask h2 { font-size: 1.25rem; border: 0; padding: 0; margin: 0 0 0.4rem; }
.world-key, .world-links { padding-left: 1.1rem; display: grid; gap: 0.35rem; }
.world-links { list-style: none; padding: 0; }
.world-links a { display: inline-block; padding: 0.45rem 0; }
.world-brand .world-next { margin-top: 0.5rem; width: 100%; border-color: var(--ink); }
.world-foot { justify-content: center; }
.spot { padding-top: 2.6rem; translate: -50% -1.3rem; }
.spot-dot { position: absolute; top: -0.4rem; left: 50%; translate: -50% 0; width: 3.4rem; height: 3.4rem; background: none; border: 0; }
/* The next step is marked on its label, not with a ring floating over the picture. */
.spot.is-next .spot-tag { box-shadow: 0 0 0 3px var(--gold, #e4a11b), 0 2px 6px rgba(0,0,0,0.18); }
.spot:focus-visible .spot-dot { outline: 4px solid #ffd400; border-radius: 50%; }
.spot-tree { padding-top: 0.4rem; } .spot-tree .spot-dot { display: none; }
.spot-sun { padding-top: 0.2rem; } .spot-sun .spot-dot { top: -3.2rem; }
@media (max-width: 43.7rem) { .world-line { display: none; } .spot-tag strong { font-size: 0.86rem; } .spot-tag span { font-size: 0.7rem; } }
.spot { pointer-events: none; }
.spot > * { pointer-events: auto; }
.world-panel h1 { font-size: clamp(1.6rem, 1.3rem + 1.5vw, 2.2rem); margin-top: 0.2rem; }
.world-panel { width: min(100% - 1rem, 44rem); border-radius: 1.25rem 1.25rem 0 0; }
.spot-tag strong { font-size: 0.95rem; } .spot-tag span { font-size: 0.78rem; }
@media (max-width: 43.7rem) { .spot-tag strong { font-size: 0.9rem; } .spot-tag span { font-size: 0.74rem; } }

/* ---- the world, second pass: camera, short sheets, the tour, clear surveys ---- */
.world-corner { position: absolute; right: 1rem; top: 0.9rem; display: flex; gap: 0.5rem; }
.world-corner .world-menu { position: static; }
.world-help { width: 2.75rem; padding: 0; justify-content: center; font-family: var(--serif); font-size: 1.2rem; }
.world-ui.is-focused .world-spots, .world-ui.is-focused .world-brand, .world-ui.is-focused .world-corner, .world-ui.is-focused .world-foot { opacity: 0; pointer-events: none; }
.world-spots, .world-brand, .world-corner { transition: opacity 0.25s; }
.world-ui.is-touring .world-corner { display: none; }
.world-sheet { max-height: 60dvh; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); box-shadow: 0 0 0 2px var(--ink); }
.world-sheet::backdrop { background: transparent; }
@media (min-width: 60rem) { .world-sheet { margin: 1.25rem 1.25rem 1.25rem auto; max-height: calc(100dvh - 2.5rem); height: fit-content; width: 27rem; border-radius: 1.25rem; } .sheet.world-sheet[open] { animation-name: sheet-side; } }
@keyframes sheet-side { from { transform: translateX(2rem); opacity: 0; } }
.world-sheet .plan-item { border-left: 0; padding-left: 0; }
.world-sheet .plan-actions { gap: 0.4rem; }
.ws-lead { font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; margin: 0.4rem 0 0.6rem; }
.ws-stat strong { font-family: var(--serif); font-size: 2.2rem; color: var(--accent); line-height: 1; }
.ws-more { display: grid; width: 100%; text-align: left; font: inherit; margin: 0.75rem 0; padding: 0.7rem 1rem; border-radius: 0.9rem; border: 2px solid var(--ink); background: var(--wash); color: var(--ink); cursor: pointer; }
.ws-more strong { font-family: var(--serif); font-size: 1.1rem; }
.ws-more span { font-size: 0.82rem; color: var(--ink-2); }
.ws-more:hover { background: #fff; box-shadow: 0 0 0 2px var(--ink); }
.ws-fold { border-top: 1px solid var(--rule); padding: 0.55rem 0; }
.ws-fold summary { font-weight: 700; cursor: pointer; min-height: 2rem; }
.ws-chips, .ws-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.5rem 0; }
.ws-tabs { position: sticky; top: 4.2rem; background: #fff; padding: 0.3rem 0 0.5rem; margin: 0; z-index: 1; }
.ws-times { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.ws-times li { display: grid; background: var(--wash); border-radius: 0.7rem; padding: 0.45rem 0.5rem; text-align: center; }
.ws-times span { font-size: 0.7rem; color: var(--ink-2); }
.ws-times strong { font-family: var(--serif); font-size: 0.98rem; }
.ws-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.ws-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; }
.ws-list li > span { display: grid; }
.ws-list small { color: var(--ink-2); }
.ws-list a.v-chip { text-decoration: none; display: inline-flex; align-items: center; }
.ws-danger { border-color: #9b1c1c; color: #9b1c1c; }
.world-sheet .opp h2 { font-size: 1.05rem; }
.world-sheet .opp-rows { margin: 0.6rem 0; gap: 0.4rem; }
.world-sheet .opp-q, .world-sheet .opp-a { padding: 0.45rem 0.8rem; }
.world-sheet .opp-q strong, .world-sheet .opp-a strong { font-size: 1.05rem; }
.wc-top { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.wc-count { margin: 0; font-size: 0.78rem; color: var(--ink-2); }
.wc-bar { height: 6px; border-radius: 999px; background: var(--wash); margin: 0.45rem 0 0.7rem; overflow: hidden; }
.wc-fill { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.3s; }
.wc-frame { margin: 0; font-size: 0.86rem; font-weight: 700; color: var(--ink-2); }
.wc-foot { display: flex; justify-content: space-between; gap: 1rem; }
.world-card .notice-card { margin: 0.75rem 0; }
.tour { position: absolute; left: 50%; translate: -50% 0; bottom: calc(1.25rem + env(safe-area-inset-bottom)); width: min(100% - 2rem, 24rem); background: #fff; border-radius: 1.25rem; padding: 0.9rem 1.2rem 1rem; box-shadow: 0 0 0 2px var(--ink); text-align: center; animation: sheet-up 0.3s ease-out; }
.tour h2 { margin: 0.3rem 0 0.1rem; font-size: 1.6rem; border: 0; padding: 0; outline: none; }
.tour p { margin: 0; }
.tour-count { display: flex; gap: 0.3rem; justify-content: center; }
.tour-count span { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--rule-strong); }
.tour-count span.on { background: var(--accent); width: 1.2rem; border-radius: 999px; }
.tour-nav { display: flex; justify-content: center; gap: 1rem; align-items: center; margin-top: 0.7rem; }
.data-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; }
@media (prefers-reduced-motion: reduce) { .tour, .sheet.world-sheet[open] { animation: none; } .world-spots, .world-brand, .world-corner, .wc-fill { transition: none; } }

/* ---- the world, third pass: three daily symbols, the Next dock, text sizes, rewards ---- */
.dock { position: absolute; left: 50%; translate: -50% 0; bottom: 0; width: min(100%, 34rem); background: #fff; border-radius: 1.25rem 1.25rem 0 0; padding: 0.7rem 0.9rem calc(0.7rem + env(safe-area-inset-bottom)); box-shadow: 0 0 0 2px var(--ink); transition: opacity 0.25s; }
.dock-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.dock-head h2 { margin: 0; padding: 0; border: 0; font-size: 1.15rem; }
.dock-count { margin: 0; font-size: 0.82rem; color: var(--ink-2); font-weight: 700; }
.dock .wc-bar { margin: 0.35rem 0 0.55rem; }
.dock-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 0.45rem; }
.dock-card { font: inherit; display: grid; justify-items: start; gap: 0.05rem; text-align: left; padding: 0.55rem 0.65rem 0.6rem; border-radius: 0.9rem; border: 2px solid var(--rule-strong); background: #fff; color: var(--ink); cursor: pointer; min-width: 0; }
.dock-card strong { font-family: var(--serif); font-size: 1.02rem; line-height: 1.15; overflow-wrap: anywhere; }
.dock-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.dock-time { font-size: 0.82rem; color: var(--ink-2); }
.dock-icon { width: 1.5rem; height: 1.5rem; color: var(--accent); }
.dock-card.is-now { border-color: var(--ink); background: var(--ink); color: #fff; }
.dock-card.is-now .dock-cat, .dock-card.is-now .dock-time { color: var(--band-ink-2); }
.dock-card.is-now .dock-icon { color: #fff; }
.dock-card.is-done { background: var(--wash); border-style: dashed; }
.dock-card:hover { box-shadow: 0 0 0 2px var(--ink); }
.dock-row { display: flex; gap: 0.45rem; margin-top: 0.55rem; }
.dock-row .v-chip { flex: 1; }
@media (min-width: 60rem) { .dock { left: 1rem; translate: 0 0; bottom: auto; top: 5.4rem; width: 17.5rem; border-radius: 1.25rem; } .dock-cards { grid-template-columns: 1fr; } .dock-card { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 0.6rem; } .dock-card .dock-icon { grid-row: 1 / span 2; } .dock-card .dock-cat { grid-column: 2; } .dock-card strong { grid-column: 2; } .dock-card .dock-time { grid-column: 3; grid-row: 1 / span 2; } }
.world-ui.is-focused .dock, .world-ui.is-touring:not(.show-dock) .dock, .world-ui.is-playing .dock, .world-ui.is-playing .world-spots, .world-ui.is-playing .world-corner { opacity: 0; pointer-events: none; }
.spot-tag strong { font-size: 1rem; }
.spot-lantern, .spot-basket, .spot-pond { padding-top: 2.6rem; }
.ws-day { list-style: none; padding: 0; margin: 0.5rem 0 1rem; display: grid; gap: 0.35rem; }
.ws-day button { font: inherit; width: 100%; display: grid; grid-template-columns: 4.6rem 1fr 1.6rem; align-items: center; gap: 0.5rem; text-align: left; padding: 0.55rem 0.75rem; border-radius: 0.8rem; border: 2px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; }
.ws-day-time { font-size: 0.85rem; color: var(--ink-2); font-weight: 700; }
.ws-day-what { display: grid; }
.ws-day-what small { color: var(--ink-2); }
.ws-day-tick { font-weight: 700; color: var(--accent); }
.ws-day .is-done button { background: var(--wash); }
.ws-day .is-now button { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.world-toast { position: fixed; left: 50%; top: 4.6rem; translate: -50% -1rem; margin: 0; background: var(--ink); color: #fff; font-weight: 700; padding: 0.6rem 1.1rem; border-radius: 999px; opacity: 0; pointer-events: none; z-index: 40; max-width: calc(100vw - 2rem); text-align: center; }
.world-toast.on { animation: toast 3.2s ease both; }
@keyframes toast { 0% { opacity: 0; translate: -50% -1rem; scale: 0.9; } 8% { opacity: 1; translate: -50% 0; scale: 1.06; } 14% { scale: 1; } 85% { opacity: 1; translate: -50% 0; } 100% { opacity: 0; translate: -50% -0.6rem; } }
.act-cap { position: fixed; z-index: 30; }
.size-1 { font-size: 1rem; } .size-2 { font-size: 1.12rem; }
.world-help { font-size: 1rem; font-weight: 700; }
.world-sheet .plan-meta, .world-sheet .plan-change { font-size: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .world-toast.on { animation: none; opacity: 1; translate: -50% 0; } .dock { transition: none; } }
@media (min-width: 60rem) { .act-cap { top: 5.4rem; bottom: auto; left: 1rem; translate: 0 0; width: 17.5rem; } }
.world-sheet .ws-stat { margin-top: 0.6rem; }

/* ---- the world, fourth pass: weather in the header, the warm ink of the new site ---- */
.world-body { --ink: #2b2219; --ink-2: #5a4b3b; }
.world-wx { display: inline-flex; align-items: center; min-height: 32px; margin-top: 0.35rem; padding: 0.2rem 0.75rem; font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 999px; cursor: pointer; }
.world-wx:hover { background: var(--ink); color: #fff; }
.world-brand .world-wx-status { margin-top: 0.3rem; max-width: 16rem; font-size: 0.8rem; text-transform: none; color: var(--ink); }
@media (min-width: 60rem) { .dock { top: 7.4rem; } .act-cap { top: 7.4rem; } }
.world-brand p { text-transform: none; }
@media (max-width: 30rem) { .world-brand { max-width: calc(100vw - 14.5rem); } .world-brand .world-mark { font-size: 1.05rem; } }

/* ---- desktop: the name, the weather and what is next live in one tidy side panel ---- */
.world-side { display: contents; }
.tour .button { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 60rem) {
  .world-side { display: flex; flex-direction: column; gap: 0.9rem; position: absolute; left: 1.25rem; top: 1.25rem; width: 19.5rem; max-height: calc(100vh - 2.5rem); overflow: auto; background: #fff; border-radius: 1.25rem; padding: 1.1rem 1.1rem 1.15rem; box-shadow: 0 0 0 2px var(--ink), 0 14px 32px rgba(20, 24, 30, 0.12); transition: opacity 0.25s; }
  .world-side .world-brand, .world-side .dock { position: static; inset: auto; translate: none; width: auto; max-width: none; box-shadow: none; background: none; border-radius: 0; padding: 0; opacity: 1; pointer-events: auto; }
  .world-side .world-mark { font-size: 1.3rem; }
  .world-side .world-brand p { font-size: 0.9rem; margin-top: 0.15rem; }
  .world-side .dock { border-top: 2px solid var(--rule); padding-top: 0.9rem; }
  .world-ui.is-focused .world-side, .world-ui.is-playing .world-side, .world-ui.is-touring:not(.show-dock) .world-side { opacity: 0; pointer-events: none; }
  .world-ui.is-touring:not(.show-dock) .world-side .dock, .world-ui.is-focused .world-side .dock { opacity: 1; }
}
@media (min-width: 60rem) and (prefers-reduced-motion: reduce) { .world-side { transition: none; } }

/* ---- the Terms and sharing choices, shown once before planting ---- */
.consent h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.3rem); line-height: 1.08; margin-bottom: 0.5rem; }
.consent h2 { font-size: 1.25rem; margin: 1.5rem 0 0.3rem; border: 0; padding: 0; }
.consent > p { color: var(--ink-2); }
.consent-terms { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; margin-top: 1.2rem; padding: 1rem; border: 2px solid var(--ink); border-radius: 0.8rem; background: #fff; }
.consent-terms input { width: 1.5rem; height: 1.5rem; margin: 0.1rem 0 0; accent-color: var(--ink); }
.consent-terms label { font-weight: 700; line-height: 1.45; }
.consent-terms a, .consent-choice a { color: inherit; text-decoration-thickness: 2px; }
.consent-err { color: #a3261b; font-weight: 700; min-height: 1.2em; margin-top: 0.4rem; }
.consent-err:empty { min-height: 0; margin: 0; }
.consent-note { font-size: 0.95rem; }
.consent-choice { margin-top: 0.9rem; padding: 0.9rem 1rem; border-radius: 0.8rem; background: var(--wash, #f4f1ea); }
.consent-choice > p { margin-top: 0.35rem; font-size: 0.92rem; color: var(--ink-2); }
.consent .wc-row { margin-top: 1.4rem; }
.world-body .button:not(.quiet):not(.secondary) { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---- the world, fifth pass: the site's top bar, day and weather in the Next panel, phone rows at large text ---- */
.world-top { position: absolute; top: 0; left: 0; right: 0; z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 1.2rem; padding: 0.45rem max(0.75rem, env(safe-area-inset-left)) 0.45rem; background: rgba(255, 255, 255, 0.95); border-bottom: 2px solid var(--ink); }
.world-top-mark { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 44px; font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.world-top-dot { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #e4a11b; }
.world-top-nav { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.world-top-nav a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--ink); text-decoration: none; }
.world-top-nav a:hover, .world-top-nav a[aria-current='page'] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.3em; text-decoration-color: #9c3418; }
.world-top .world-corner { position: static; margin-left: auto; display: flex; gap: 0.4rem; }
.world-ui.is-focused .world-top .world-corner { opacity: 1; pointer-events: auto; }
.world-ui.is-touring .world-top .world-corner { display: flex; visibility: hidden; }
@media (max-width: 59.99rem) { .world-top-mark { display: none; } .world-top { gap: 0.25rem 0.9rem; } }
@media (max-width: 40rem) { .world-top-here { display: none !important; } }
@media (min-width: 60rem) { .world-side { top: 5.25rem; max-height: calc(100vh - 6.5rem); } }
.dock-day { display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.6rem; margin: 0 0 0.45rem; font-size: 0.85rem; font-weight: 700; color: var(--ink-2); }
.dock-day .world-wx { margin-top: 0; }
.dock .world-wx-status { margin: -0.2rem 0 0.4rem; font-size: 0.82rem; color: var(--ink); }
.dock-card strong { overflow-wrap: break-word; hyphens: manual; }
.dock-rows .dock-cards { grid-template-columns: 1fr; gap: 0.35rem; }
.dock-rows .dock-card { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 0.7rem; padding: 0.45rem 0.8rem; }
.dock-rows .dock-card .dock-icon { grid-row: 1 / span 2; }
.dock-rows .dock-card .dock-cat, .dock-rows .dock-card strong { grid-column: 2; }
.dock-rows .dock-card .dock-time { grid-column: 3; grid-row: 1 / span 2; text-align: right; }
.world-sheet .ws-list li, .world-sheet .tools-list li { min-width: 0; flex-wrap: wrap; }
.world-sheet .tool-switch { max-width: 100%; }
.world-sheet .tool-name { white-space: normal; overflow-wrap: break-word; text-align: left; }
.dock-head { align-items: flex-start; }
.dock-head .dock-count { margin-top: 0.1rem; }
.dock-head .dock-row { margin: 0; display: flex; gap: 0.35rem; flex-wrap: wrap; justify-content: flex-end; }
.dock-head .dock-row .v-chip { flex: none; }
.dock-rows .dock-card { display: flex; align-items: center; gap: 0.55rem; }
.dock-rows .dock-card .dock-icon { flex: none; }
.dock-rows .dock-card .dock-cat { flex: none; }
.dock-rows .dock-card strong { flex: 1; min-width: 0; }
.dock-rows .dock-card .dock-time { flex: none; }
.dock-rows .dock-day > span { display: none; }
.dock-rows .dock-day:not(:has(button)) { display: none; }
.world-sheet .tools-list { grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
@media (max-width: 59.99rem) {
  .world-top-nav { gap: 0 0.7rem; }
  .world-top-nav a { font-size: 0.95rem; }
  .world-top .world-corner { gap: 0.3rem; }
  .world-top .world-menu { padding: 0.35rem 0.85rem; min-height: 2.6rem; }
  .world-top .world-help { width: 2.6rem; padding: 0; }
}
.world-side .dock { border-top: 0; padding-top: 0; }
.world-ui.is-cramped .spot:not(.spot-tree) { display: none; }

/* ---- the guide: one timely note in the Next panel, and the You sheet's four tabs ---- */
.dock-note { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 0.5rem; width: 100%; margin: 0.15rem 0 0.5rem; padding: 0.5rem 0.75rem; font: inherit; font-size: 0.92rem; line-height: 1.3; text-align: left; color: var(--ink); background: #fff7e2; border: 2px solid #e4a11b; border-radius: 0.8rem; cursor: pointer; }
.dock-note:hover { border-color: var(--ink); }
.dock-note-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #8a5a00; }
.guide-block { margin: 1rem 0; }
.guide-block h3 { margin: 0 0 0.4rem; }
.guide-list { margin: 0.3rem 0 0.4rem; padding-left: 1.2rem; }
.guide-list li + li { margin-top: 0.4rem; }
.sharpen .wc-options { display: grid; gap: 0.45rem; margin-top: 0.6rem; }
.sharpen h3 { font-size: 1.15rem; line-height: 1.3; margin-top: 0.3rem; }
.world-sheet .plan-trial, .world-sheet .plan-selfcheck, .world-sheet .plan-review, .world-sheet .plan-story { margin: 1rem 0; }
.world-sheet .plan-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.spot-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 1.3em; height: 1.3em; margin-left: 0.35em; padding: 0 0.3em; border-radius: 999px; background: #9c3418; color: #fff; font-size: 0.75em; font-weight: 700; vertical-align: 0.1em; }
.spot-tag { display: inline-flex; align-items: center; gap: 0.1em; }
.spot-badge, .spot-badge span { color: #fff !important; }

/* ---- visual cards (visual.js): a picture, a few facts, one big button ---- */
.vcard { margin: 0.6rem 0 1rem; padding: 1rem; border-radius: 1.2rem; background: #fff; border: 2px solid var(--rule, #e6dfd3); }
.vhero { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0.9rem; align-items: center; }
.vart { width: 100%; height: auto; display: block; }
.vart-dish .steam { animation: v-steam 2.4s ease-in-out infinite; transform-origin: center bottom; }
.vart-dish .s1 { animation-delay: 0.5s; } .vart-dish .s2 { animation-delay: 1s; }
@keyframes v-steam { 0%, 100% { opacity: 0.2; transform: translateY(2px); } 50% { opacity: 0.9; transform: translateY(-3px); } }
.vkicker { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.vhero h3 { margin: 0.15rem 0 0.45rem; font-size: 1.3rem; line-height: 1.15; }
.vchips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.vchip { display: inline-flex; align-items: center; gap: 0.3rem; padding: 0.2rem 0.6rem 0.2rem 0.45rem; border-radius: 999px; background: #f4efe6; font-size: 0.85rem; font-weight: 700; color: var(--ink); }
.vi { width: 1.05rem; height: 1.05rem; flex: none; }
.vskill i { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: #d8cfc2; } .vskill i.on { background: var(--ink); }
.vwhy { margin: 0.8rem 0 0; }
.vwhy summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.3rem; cursor: pointer; min-height: 44px; }
.vwhy summary::-webkit-details-marker { display: none; }
.vwhy-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); margin-right: 0.1rem; text-decoration: underline dotted; text-underline-offset: 0.25em; }
.vwhy p { margin: 0.4rem 0 0; font-size: 0.9rem; color: var(--ink-2); }
.vchip-why { background: #eef4ea; }
.vchip-why.dosha-v { background: #e5eef5; } .vchip-why.dosha-p { background: #fbe9dc; } .vchip-why.dosha-k { background: #e3f0e6; }
.dosha-v .vi, .vq-ico.dosha-v { color: #35658f; } .dosha-p .vi, .vq-ico.dosha-p { color: #b4451b; } .dosha-k .vi, .vq-ico.dosha-k { color: #2e6b4f; } .vq-ico.dosha-n { color: #4f7a3a; }
.vings { list-style: none; padding: 0; margin: 0.7rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.vings li { padding: 0.2rem 0.6rem; border: 1.5px solid #e1d8ca; border-radius: 999px; font-size: 0.85rem; }
.vings li.more { background: #f4efe6; border-color: transparent; font-weight: 700; }
.vwarn { margin: 0.6rem 0 0; padding: 0.4rem 0.7rem; border-left: 3px solid #e4a11b; font-size: 0.88rem; background: #fff8e8; }
.vside { margin: 0.6rem 0 0; }
.vactions { margin-top: 0.9rem; display: grid; gap: 0.6rem; }
.button.vbig { width: 100%; min-height: 3.2rem; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border-radius: 0.9rem; }
.button.vbig .vi { width: 1.2rem; height: 1.2rem; }
.vminor { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; }
.vicon { display: grid; justify-items: center; gap: 0.2rem; min-height: 3.3rem; padding: 0.45rem 0.3rem; font: inherit; font-size: 0.82rem; font-weight: 700; color: var(--ink); background: #f7f3ec; border: 0; border-radius: 0.8rem; cursor: pointer; }
.vicon:hover { background: #ece4d6; }
.vicon .vi { width: 1.3rem; height: 1.3rem; }
.vdone { display: flex; align-items: center; gap: 0.5rem; margin: 0.9rem 0 0; padding: 0.7rem 0.9rem; border-radius: 0.9rem; background: #e3f0e6; color: #1f4d33; font-weight: 700; }
.vdone .vi { width: 1.4rem; height: 1.4rem; }
.vdone-big { font-size: 1.05rem; }
.vcook { margin-top: 0.6rem; gap: 0.35rem; }
.vfollow { margin-top: 0.9rem; }
.vq { margin: 0 0 0.45rem; font-weight: 700; }
.vtiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45rem; }
.vtiles-4 { grid-template-columns: repeat(4, 1fr); } .vtiles-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 26rem) { .vtiles-4 { grid-template-columns: repeat(2, 1fr); } .vtiles-5 { grid-template-columns: repeat(3, 1fr); } }
.vtile { display: grid; justify-items: center; align-content: center; gap: 0.3rem; min-height: 4.6rem; padding: 0.5rem 0.25rem; font: inherit; font-size: 0.85rem; font-weight: 700; color: var(--ink); background: #faf7f1; border: 2px solid #e6dfd3; border-radius: 0.9rem; cursor: pointer; transition: transform 0.12s; }
.vtile:hover { border-color: var(--ink); }
.vtile:active { transform: scale(0.96); }
.vtile.on { border-color: var(--ink); background: #fff3d6; }
.vface { width: 2.1rem; height: 2.1rem; }
.vlevel { width: 2.2rem; height: auto; }
.vtiles-dosha .vq-ico .vi { width: 2rem; height: 2rem; }
.vq-big { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.8rem; }
.vq-big h3 { margin: 0; font-size: 1.2rem; line-height: 1.2; }
.vq-ico { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: #f4efe6; flex: none; }
.vq-ico .vi { width: 1.7rem; height: 1.7rem; }
.vsteady { margin-top: 0.6rem; gap: 0.35rem; }
.vsmall { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--ink-2); }
.vnote { margin: 0.6rem 0 0; font-size: 0.88rem; color: #1f4d33; font-weight: 700; }
.vweek { display: flex; gap: 0.4rem; margin-top: 0.8rem; }
.vweek-d { display: grid; justify-items: center; gap: 0.15rem; font-size: 0.7rem; font-weight: 700; color: var(--ink-2); }
.vweek-d i { width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 2px dashed #cfc5b6; }
.vweek-d.on i { border: 0; background: #4f9a6a; box-shadow: inset 0 0 0 4px #e3f0e6; }
.vweek-d.today { color: var(--ink); }
.vweek-d.today i { outline: 2px solid var(--ink); outline-offset: 2px; }
.vvs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; gap: 0.5rem; margin-bottom: 0.6rem; }
.vvs > div { display: grid; justify-items: center; gap: 0.3rem; }
.vvs p { margin: 0; font-weight: 700; } .vvs small { display: block; font-weight: 400; color: var(--ink-2); }
.vvs-mid { font-size: 1.8rem; font-weight: 700; color: var(--ink-2); }
.vcard-read.is-match .vvs-mid { color: #2e6b4f; }
.vtrees { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.2rem; align-items: end; text-align: center; }
.vtree svg { width: 100%; max-width: 2.6rem; height: auto; }
.vtree span { display: block; font-size: 0.7rem; font-weight: 700; color: var(--ink-2); }

/* ---- the step-by-step player ---- */
.player { position: fixed; inset: auto 0 0 0; z-index: 40; display: flex; justify-content: center; padding: 0 0.6rem calc(0.6rem + env(safe-area-inset-bottom)); }
.player-card { width: min(100%, 30rem); padding: 1rem 1.1rem 1.1rem; background: #fff; border-radius: 1.4rem; box-shadow: 0 0 0 2px var(--ink), 0 18px 40px rgba(20, 24, 30, 0.25); }
@media (min-width: 60rem) { .player { inset: auto auto 1.5rem 1.25rem; padding: 0; } .player-card { width: 24rem; } }
.player-top { display: flex; align-items: center; justify-content: space-between; }
.player-kicker { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.player-x { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 2px solid var(--ink); border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.player h2 { margin: 0.2rem 0 0.6rem; font-size: 1.35rem; line-height: 1.15; border: 0; padding: 0; }
.player-seg { display: flex; gap: 0.25rem; margin-bottom: 0.9rem; }
.player-seg i { flex: 1; height: 0.35rem; border-radius: 999px; background: #e6dfd3; }
.player-seg i.done { background: #4f9a6a; } .player-seg i.now { background: var(--ink); }
.player-n { margin: 0; font-size: 0.8rem; font-weight: 700; color: var(--ink-2); }
.player-step { margin: 0.3rem 0 1rem; font-size: 1.2rem; line-height: 1.4; }
.player-clock { margin: 0.2rem 0 0.5rem; font-size: 3rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
.player-grow { height: 0.7rem; margin-bottom: 1rem; border-radius: 999px; background: #e3f0e6; overflow: hidden; }
.player-grow i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8fc49c, #2e6b4f); transition: width 1s linear; }
.player-nav { display: flex; gap: 0.5rem; align-items: center; }
.player-nav .vbig { flex: 1; }
.player-done { text-align: center; }
.player-burst { width: 5rem; height: 5rem; margin: 0.4rem auto 0.2rem; animation: v-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1) both; }
@keyframes v-pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.world-ui:has(~ .player) .dock, body:has(.player) .world-side, body:has(.player) .world-spots { opacity: 0; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .vart-dish .steam, .player-burst { animation: none; } .player-grow i, .vtile { transition: none; } }

/* ---- setup in the world: one question per screen ---- */
.setup h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem); line-height: 1.1; margin: 0.3rem 0 0.5rem; border: 0; padding: 0; }
.setup > p { color: var(--ink-2); }
.setup-top { display: grid; gap: 0.4rem; margin-bottom: 0.5rem; }
.setup-seg { margin: 0; }
.setup-nav { display: flex; gap: 0.6rem; align-items: center; margin-top: 1.2rem; }
.setup-nav .vbig { flex: 1; }
.setup-nav .vbig:disabled { opacity: 0.45; cursor: not-allowed; }
.setup-status { min-height: 1.3em; margin: 0.4rem 0 0; font-weight: 700; color: #8a3b14; }
.setup-status:empty { min-height: 0; margin: 0; }
.setup-or { margin: 1rem 0 0.4rem; text-align: center; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.setup-pair { display: grid; gap: 0.3rem; }
.setup-pair label { font-weight: 700; margin-top: 0.4rem; }
.setup-pair select, .setup-time input { font: inherit; min-height: 48px; padding: 0.55rem 0.8rem; border: 2px solid var(--ink); border-radius: 0.8rem; background: #fff; color: var(--ink); width: 100%; }
.setup-pair select:disabled { opacity: 0.5; }
.setup-here { display: flex; align-items: center; gap: 0.7rem; margin-top: 1rem; padding: 0.75rem 0.9rem; border-radius: 0.9rem; background: #e3f0e6; }
.setup-here .vi { width: 1.6rem; height: 1.6rem; color: #2e6b4f; flex: none; }
.setup-here div { display: grid; } .setup-here span { font-size: 0.9rem; color: var(--ink-2); }
.setup-tiles { grid-template-columns: repeat(2, 1fr); }
.setup-tiles .vtile, .setup-chips .vtile { min-height: 3.4rem; font-size: 0.98rem; }
.setup-list { grid-template-columns: 1fr; }
.setup-list .vtile { justify-items: start; padding: 0.7rem 1rem; text-align: left; }
.setup-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr)); gap: 0.45rem; margin-top: 0.6rem; }
.setup-chips .vtile { justify-items: start; text-align: left; padding: 0.6rem 0.85rem; grid-auto-flow: column; justify-content: start; align-items: center; }
.vtile[aria-pressed='true'] { border-color: var(--ink); background: #fff3d6; box-shadow: inset 0 0 0 1px var(--ink); }
.setup-none { grid-column: 1 / -1; }
.setup-times { display: grid; gap: 0.9rem; margin-top: 0.6rem; }
@media (min-width: 30rem) { .setup-times { grid-template-columns: 1fr 1fr; } }
.setup-time { display: grid; gap: 0.3rem; } .setup-time label { font-weight: 700; }
.setup-yn { margin-top: 1rem; } .setup-yn p { margin: 0 0 0.4rem; font-weight: 700; }
.setup-yn .vtiles { grid-template-columns: repeat(2, 1fr); }
.setup-yn .setup-nights { grid-template-columns: repeat(8, 1fr); }
.setup-yn .setup-nights .vtile { min-height: 3rem; padding: 0.3rem 0; }
@media (max-width: 26rem) { .setup-yn .setup-nights { grid-template-columns: repeat(4, 1fr); } }
.setup-weather .vtile { font-size: 0.82rem; }
.vweather { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.9rem; border-radius: 1rem; background: #f4efe6; flex-wrap: wrap; }
.vweather > div { display: grid; flex: 1; min-width: 10rem; } .vweather span { font-size: 0.88rem; color: var(--ink-2); }
.vq-ico.wx-sun { color: #b4451b; background: #fff1d1; } .vq-ico.wx-cloud, .vq-ico.wx-rain { color: #35658f; background: #e5eef5; } .vq-ico.wx-snow { color: #35658f; background: #eef4fa; }
.dock-place { font-weight: 400; }
/* Narrow card (small phone, large text): the picture sits above the words instead of squeezing them. */
.vcard { container-type: inline-size; }
@container (max-width: 21rem) {
  .vhero { grid-template-columns: 1fr; gap: 0.5rem; }
  .vhero .vart { max-width: 5.5rem; }
  .vq-big { align-items: flex-start; }
}
.ws-day button { grid-template-columns: max-content 1fr auto; }

/* ---- the four steps: Natural Baseline, Current Shift, the plan, the evening reflection ---- */
/* On survey screens: four numbered dots that say where this visit sits. */
.journey-dots { display: flex; gap: 0.35rem; margin: 0.5rem 0 0.35rem; }
.journey-dots > span { flex: 1; display: grid; justify-items: center; align-content: start; gap: 0.15rem; font-size: 0.7rem; line-height: 1.15; text-align: center; color: var(--ink-2); }
.journey-dots i { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: 50%; font-style: normal; font-weight: 700; font-size: 0.8rem; background: #efe9df; color: var(--ink); }
.journey-dots .is-done i { background: #2e6b4f; color: #fff; }
.journey-dots .is-now i { background: #9c3418; color: #fff; }
.journey-dots .is-now { color: var(--ink); font-weight: 700; }
.wc-result { margin: 0.2rem 0 0.5rem; font-family: var(--serif); font-size: 1.2rem; line-height: 1.25; }
.world-card .fn-bars { margin: 0.4rem 0 0.9rem; }
/* In the You sheet: the same four steps as buttons, each saying where it stands. */
.journey { list-style: none; padding: 0; margin: 0.2rem 0 0.9rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.4rem; }
.journey-step { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem; align-items: center; width: 100%; min-height: 3.4rem; padding: 0.45rem 0.6rem; font: inherit; text-align: left; color: var(--ink); background: #fff; border: 2px solid var(--rule, #e6dfd3); border-radius: 0.9rem; cursor: pointer; }
.journey-step:hover { border-color: var(--ink); }
.journey-n { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-weight: 700; font-size: 0.85rem; background: #efe9df; color: var(--ink); }
.journey-t { display: grid; min-width: 0; line-height: 1.2; }
.journey-t strong { font-size: 0.92rem; }
.journey-t small { font-size: 0.78rem; color: var(--ink-2); }
.journey-step.is-done .journey-n { background: #2e6b4f; color: #fff; }
.journey-step.is-now { border-color: #9c3418; background: #fff7e2; }
.journey-step.is-now .journey-n { background: #9c3418; color: #fff; }
@container (max-width: 17rem) { .journey { grid-template-columns: 1fr; } }
/* The two readings, side by side in meaning: who you are for life, and where you are now. */
.bal-card { margin: 0.8rem 0; padding: 0.95rem 1rem 1rem; border-radius: 1.2rem; background: #fff; border: 2px solid var(--rule, #e6dfd3); }
.bal-shift { border-color: var(--ink); }
.bal-shift.is-ask { background: #fff7e2; border-color: #e4a11b; }
.bal-kicker { margin: 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.world-sheet .bal-card h3 { margin: 0.15rem 0 0.3rem; font-size: 1.3rem; line-height: 1.15; }
.bal-lead { margin: 0 0 0.2rem; font-size: 1.05rem; }
.bal-foot { margin: 0.6rem 0 0; font-size: 0.85rem; color: var(--ink-2); }
.bal-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.6rem; }
.bal-go { margin-top: 0.8rem; }
.bal-quiet { min-height: 2.5rem; padding: 0.4rem 0.5rem; font: inherit; font-size: 0.88rem; color: var(--ink-2); background: none; border: 0; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.bal-quiet:hover { color: var(--ink); }
.bal-card .ws-fold { margin-top: 0.8rem; }
.bal-card .ws-fold a { color: var(--ink); font-weight: 700; }
/* Three bars, one for each Core Function. A word or a number sits beside every bar, so colour never carries it alone. */
.fn-bars { list-style: none; padding: 0; margin: 0.7rem 0 0; display: grid; gap: 0.55rem; }
.fn-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.2rem 0.6rem; }
.fn-name { display: inline-flex; align-items: center; gap: 0.35rem; min-width: 0; font-weight: 700; font-size: 0.95rem; }
.fn-val { font-size: 0.88rem; font-weight: 700; color: var(--ink-2); }
.fn-bar.is-high .fn-val { color: #8a3b14; }
.fn-track { grid-column: 1 / -1; position: relative; height: 0.7rem; border-radius: 999px; background: #efe9df; overflow: hidden; }
.fn-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; min-width: 0.35rem; transition: width 0.4s ease; }
.fn-mark { position: absolute; top: 0; bottom: 0; width: 2px; background: rgba(31, 26, 23, 0.55); }
.fn-v .fn-fill { background: #35658f; } .fn-p .fn-fill { background: #b4451b; } .fn-k .fn-fill { background: #2e6b4f; }
.fn-v .vi { color: #35658f; } .fn-p .vi { color: #b4451b; } .fn-k .vi { color: #2e6b4f; }
@media (prefers-reduced-motion: reduce) { .fn-fill { transition: none; } }
/* Step 2 asked for loudly: before the first check, and when two weeks have passed. */
.dock-shift { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; width: 100%; margin: 0.15rem 0 0.5rem; padding: 0.5rem 0.8rem; font: inherit; line-height: 1.25; text-align: left; color: #fff; background: #9c3418; border: 2px solid #9c3418; border-radius: 0.8rem; cursor: pointer; }
.dock-shift:hover { background: #7d2810; border-color: #7d2810; }
.dock-shift-t { display: grid; min-width: 0; }
.dock-shift strong { font-size: 0.98rem; }
.dock-shift small { font-size: 0.8rem; color: #fff; }
.dock-shift-go { font-size: 1.2rem; font-weight: 700; }
.dock-rows .dock-shift small { display: none; }
.v-chip.is-ask { background: #9c3418; border-color: #9c3418; color: #fff; }
.dock-note-eve { background: #eef1fb; border-color: #2b47a6; }
.dock-note-eve .dock-note-tag { color: #2b47a6; }
.reflect-recap { margin: 0.2rem 0 0.4rem; }
.world-sheet .reflect-recap h3 { margin-top: 0.4rem; }
.reflect-recap .ws-stat { margin: 0.2rem 0 0; }
.reflect-next { font-size: 0.95rem; }
/* Safety notes inside a survey card or a sheet: no page-heading rule above their title. */
.world-card .notice-card h2, .world-sheet .notice-card h2 { margin: 0 0 0.35rem; padding: 0; border: 0; font-size: 1.2rem; line-height: 1.2; }
.world-card .notice-card, .world-sheet .notice-card { padding: 0.9rem 1rem; }

/* ---- You today, next to your nature (v1.2). One row per Core Function on one scale: the pale part is the
   Natural Baseline, the striped part after it is today's shift above it. There is no fixed reference line:
   balance is the person's own mix, never a third of each. Words sit beside every bar. */
.bal-compare { border-color: var(--ink); container-type: inline-size; }
.bal-compare.is-ask { background: #fff7e2; border-color: #e4a11b; }
.cmp { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.8rem; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 0.3rem 0.6rem; }
.cmp-name { display: inline-flex; align-items: center; gap: 0.45rem; min-width: 0; }
.cmp-name > span { display: grid; line-height: 1.2; min-width: 0; }
.cmp-name strong { font-size: 0.98rem; }
.cmp-name small { font-size: 0.8rem; color: var(--ink-2); }
.cmp-word { font-size: 0.88rem; font-weight: 700; color: var(--ink-2); text-align: right; }
.cmp-row.is-little .cmp-word, .cmp-row.is-high .cmp-word { color: #8a3b14; }
.cmp-track { grid-column: 1 / -1; display: flex; height: 1.15rem; border-radius: 0.4rem; background: #f3efe8; overflow: hidden; }
.cmp-base { display: block; height: 100%; min-width: 0.4rem; border-radius: 0.4rem 0 0 0.4rem; }
.cmp-up { display: block; height: 100%; min-width: 0.3rem; border-radius: 0 0.4rem 0.4rem 0; }
.fn-v .cmp-base { background: #c3d5e6; box-shadow: inset 0 0 0 2px #35658f; }
.fn-p .cmp-base { background: #f1cdbd; box-shadow: inset 0 0 0 2px #b4451b; }
.fn-k .cmp-base { background: #c2dccf; box-shadow: inset 0 0 0 2px #2e6b4f; }
.fn-v .cmp-up { background: repeating-linear-gradient(135deg, #35658f 0 5px, #244a6b 5px 10px); }
.fn-p .cmp-up { background: repeating-linear-gradient(135deg, #b4451b 0 5px, #8a3110 5px 10px); }
.fn-k .cmp-up { background: repeating-linear-gradient(135deg, #2e6b4f 0 5px, #1f4d38 5px 10px); }

.cmp-key { list-style: none; padding: 0; margin: 0.6rem 0 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; font-size: 0.8rem; color: var(--ink-2); }
.cmp-key li { display: inline-flex; align-items: center; gap: 0.35rem; }
.cmp-key i { display: inline-block; width: 1.4rem; height: 0.7rem; border-radius: 0.2rem; }
.cmp-key-base { background: #e3ded4; box-shadow: inset 0 0 0 2px #5a4b3b; }
.cmp-key-up { background: repeating-linear-gradient(135deg, #5a4b3b 0 4px, #2b2219 4px 8px); }
.cmp-score { margin: 0.8rem 0 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.6rem; align-items: center; font-size: 0.85rem; color: var(--ink-2); }
.cmp-score strong { font-family: var(--serif); font-size: 2rem; line-height: 1; color: var(--ink); }
.cmp-push { margin: 0.7rem 0 0; padding: 0.55rem 0.75rem; border-radius: 0.7rem; background: #eef1fb; font-size: 0.92rem; }
.world-card .cmp { margin: 0.4rem 0 0.4rem; text-align: left; }
.world-card .cmp-key { margin-bottom: 0.9rem; }
@container (min-width: 30rem) {
  .cmp-row { grid-template-columns: 13rem minmax(0, 1fr) 8.5rem; align-items: center; }
  .cmp-track { grid-column: auto; grid-row: 1; }
  .cmp-name { grid-column: 1; grid-row: 1; } .cmp-track { grid-column: 2; } .cmp-word { grid-column: 3; grid-row: 1; }
}

/* ---- Start small (v1.2). The dock shows only what the person chose, and the evening reflection. */
.dock-things { display: grid; gap: 0.4rem; margin-top: 0.5rem; }
.dock-thing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 0.7rem; width: 100%; padding: 0.6rem 0.8rem; }
.dock-thing-t { display: grid; min-width: 0; text-align: left; }
.dock-thing-t strong { font-size: 1.08rem; }
.dock-thing .dock-time { font-size: 0.85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-go { font-weight: 700; font-size: 1.1rem; }
.dock-thing.is-done .dock-go { color: #2e6b4f; }
.dock-reflect:not(.is-now):not(.is-done) { border-style: dashed; }
.dock .dock-note { margin: 0.5rem 0 0; }
.ws-lead-small { font-size: 1rem; }
.ws-lead-small.is-idea { padding: 0.6rem 0.8rem; border-radius: 0.8rem; background: var(--wash); }
.ws-ideas { list-style: none; padding: 0; margin: 0.4rem 0 0; display: grid; gap: 0.3rem; }
.ws-ideas li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.45rem 0.1rem; border-bottom: 1px solid var(--rule); }
.ws-ideas span { color: var(--ink-2); font-size: 0.88rem; white-space: nowrap; }
.pace-offer { margin: 0.9rem 0; padding: 0.9rem 1rem 1rem; border-radius: 1.1rem; background: #fff7e2; border: 2px solid #e4a11b; }
.world-sheet .pace-offer h3 { margin: 0 0 0.3rem; }
.pace-offer p { margin: 0 0 0.6rem; }
.pace-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.pace-where { margin: 0.9rem 0 0.6rem; padding: 0.8rem 1rem; border-radius: 1.1rem; background: var(--wash); }
.world-sheet .pace-where h3 { margin: 0 0 0.3rem; font-size: 1.1rem; }
.pace-where p { margin: 0 0 0.4rem; }
.reflect-thing { margin: 0.5rem 0 0.9rem; }
.reflect-thing .vq { margin: 0 0 0.4rem; font-weight: 700; }
.world-sheet .reflect-h { margin-top: 1.3rem; }
.vsmall-on { padding: 0.5rem 0.7rem; border-radius: 0.7rem; background: #eaf3ec; }
/* Choosing the one small thing. */
.choose { max-width: 46rem; }
.choose-lead { font-size: 1.1rem; }
.choose-list { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.7rem; }
.choose-card { display: grid; gap: 0.2rem; width: 100%; height: 100%; padding: 0.9rem 1rem 1rem; font: inherit; text-align: left; color: var(--ink); background: #fff; border: 2px solid var(--rule); border-radius: 1.1rem; cursor: pointer; align-content: start; }
.choose-card:hover, .choose-card:focus-visible { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choose-card.is-best { border-color: var(--ink); }
.choose-tag { justify-self: start; padding: 0.1rem 0.55rem; border-radius: 999px; background: #2e6b4f; color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; }
.choose-kind { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.choose-card strong { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; }
.choose-min { font-size: 0.95rem; }
.choose-why { font-size: 0.88rem; color: var(--ink-2); }
.choose-more .choose-card strong { font-size: 1.1rem; }
@media (min-width: 44rem) { .choose-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- A computer has room, so use it calmly: a wider reading panel, a roomier dock, larger type. Phones are unchanged. */
@media (min-width: 60rem) {
  .world-sheet { width: min(36rem, 46vw); padding-left: 1.75rem; padding-right: 1.75rem; }
  .world-side { width: 22rem; }
  .world-side .dock-head h2 { font-size: 1.35rem; }
  .world-side .dock-thing { padding: 0.85rem 1rem; }
  .world-side .dock-thing-t strong { font-size: 1.15rem; }
  .world-side .dock-thing .dock-time { white-space: normal; }
}
@media (min-width: 90rem) { .world-sheet { width: 40rem; } .world-side { width: 24rem; } }
/* The small-thing rows lay themselves out; the older three-card rules above do not apply to them. */
.dock .dock-thing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 0.7rem; }
.dock .dock-thing .dock-icon, .dock .dock-thing strong, .dock .dock-thing .dock-time { grid-column: auto; grid-row: auto; flex: none; text-align: left; }
.dock .dock-thing.is-now .dock-time { color: var(--band-ink-2); }
.cmp-up { min-width: 0.5rem; }
.dock-wx { border-style: dashed; }
.cmp-est { margin: 0.3rem 0 0; padding: 0.5rem 0.75rem; border-radius: 0.7rem; background: #fff7e2; font-size: 0.92rem; }
.cmp-score strong { white-space: nowrap; }

/* ---- v1.3: one food, what moves you, the tree's day, cycle awareness, goal-first ideas ---- */
.food-look { margin: 0.4rem 0 0.6rem; padding: 1rem 1rem 0.9rem; border-radius: 1.1rem; background: #f4f6fd; border: 1px solid #d5daf0; }
.world-sheet .food-look h3 { margin: 0 0 0.5rem; }
.food-look-form label { display: block; font-weight: 700; margin: 0 0 0.3rem; }
.food-look-row { display: flex; gap: 0.5rem; }
.food-look-in { flex: 1 1 auto; min-width: 0; min-height: 3rem; padding: 0.5rem 0.8rem; border: 2px solid #5a6494; border-radius: 0.8rem; background: #fff; color: var(--ink); font: inherit; font-size: 1.0625rem; }
.food-look-in:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.food-look-row .button { min-height: 3rem; flex: 0 0 auto; }
.food-look .ws-chips { margin: 0.6rem 0 0; }
.food-look-out { margin: 0.7rem 0 0; display: grid; gap: 0.6rem; }
.food-look-out:empty { margin: 0; }
.food-card { padding: 0.8rem 0.9rem; border-radius: 0.9rem; background: #fff; border: 2px solid #c9cde0; border-left-width: 0.5rem; }
.food-card.is-good { border-color: #2e6b4f; }
.food-card.is-some { border-color: #b98512; }
.food-card.is-later { border-color: #5a6494; }
.food-card.is-mine { border-color: #7a7f95; }
.food-card p { margin: 0; }
.food-name { font-size: 0.9rem; color: var(--ink-2); font-weight: 700; }
.food-answer { display: flex; align-items: center; gap: 0.45rem; font-size: 1.2rem; font-weight: 700; margin: 0.1rem 0 0.3rem; }
.food-card .food-answer { margin: 0.1rem 0 0.3rem; }
.food-dot { flex: 0 0 auto; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #5a6494; }
.is-good .food-dot { background: #2e6b4f; }
.is-some .food-dot { background: #b98512; border-radius: 0.2rem; }
.is-later .food-dot { background: #fff; border: 3px solid #5a6494; }
.is-mine .food-dot { background: #fff; border: 3px solid #7a7f95; border-radius: 0.2rem; }
.food-card .food-instead { margin-top: 0.45rem; font-size: 0.95rem; }
.food-swap { display: inline-block; min-height: 2.75rem; padding: 0.3rem 0.7rem; margin: 0.15rem 0; border: 2px solid #2e6b4f; border-radius: 999px; background: #eef6f1; color: #173f2c; font: inherit; font-weight: 700; cursor: pointer; }
.food-swap:hover { background: #dcefe4; }
.food-none { margin: 0; padding: 0.7rem 0.9rem; border-radius: 0.9rem; background: #fff; }
.moves { margin: 1.2rem 0; padding: 0.9rem 1rem; border-radius: 1.1rem; background: #f4f6fd; border: 1px solid #d5daf0; }
.world-sheet .moves h3 { margin: 0 0 0.4rem; }
.moves p { margin: 0 0 0.4rem; }
.moves-list { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.5rem; }
.moves-list li { padding: 0.65rem 0.8rem; border-radius: 0.8rem; background: #fff; border-left: 0.4rem solid #5a6494; }
.moves-list li.is-better { border-left-color: #2e6b4f; }
.moves-list strong { display: block; font-size: 1.02rem; }
.moves-list small { display: block; margin-top: 0.15rem; color: var(--ink-2); font-size: 0.85rem; }
.tree-day { margin: 0.8rem 0 0; padding: 0.7rem 0.9rem; border-radius: 0.9rem; background: #eef6f1; border: 1px solid #c4dfd0; font-size: 1rem; }
.cycle-card { margin: 1rem 0 0.4rem; padding: 0.9rem 1rem; border-radius: 1.1rem; background: #f7f3fb; border: 1px solid #ddd2ec; }
.world-sheet .cycle-card h3 { margin: 0 0 0.3rem; }
.cycle-card p { margin: 0 0 0.6rem; }
.choose-goal { background: #1c2541; }
.choose-goal-line { margin: 0 0 0.9rem; padding: 0.6rem 0.8rem; border-radius: 0.8rem; background: #f4f6fd; font-size: 0.98rem; }
.choose-goal-edit { min-height: 2.75rem; padding: 0.2rem 0.6rem; border: 0; background: none; color: #23308a; font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.choose-goals .opts { display: grid; gap: 0.5rem; margin: 0 0 1rem; }
.choose-goals .opts label { display: flex; align-items: center; gap: 0.7rem; min-height: 3rem; padding: 0.5rem 0.8rem; border: 2px solid #c9cde0; border-radius: 0.8rem; background: #fff; font-size: 1.05rem; cursor: pointer; }
.choose-goals .opts input { width: 1.4rem; height: 1.4rem; flex: 0 0 auto; }
/* The named row of places shows whenever the picture has no room for its own labels (small phones, large text). One or the other is always on screen. */
.dock-nav { display: none; grid-template-columns: repeat(4, 1fr); gap: 0.35rem; margin: 0.5rem 0 0; }
.world-ui.is-cramped .dock-nav { display: grid; }
.dock-nav-b { display: flex; align-items: center; justify-content: center; gap: 0.3rem; min-height: 2.75rem; padding: 0.25rem 0.2rem; border: 2px solid transparent; border-radius: 0.8rem; background: #f1f3fa; color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.dock-nav-b:hover { border-color: var(--ink); }
.dock-nav-b:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.dock-nav-b .dock-icon { width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.dock-rows .dock-nav-b { font-size: 0.85rem; }
.dock-rows .dock-nav-b .dock-icon { display: none; }
.choose-goal-edit { display: inline-block; }

/* =====================================================================================================
   VERSION 2: the Garden and the Simple view.
   One calm look for both: warm paper, evergreen ink, soft shadows in place of heavy outlines, the season's
   own colour as the only accent. Motion is short and means something; all of it is off under
   prefers-reduced-motion. See docs/REDESIGN_PROGRESS.md for the research behind each choice.
   ===================================================================================================== */
.world-body { --ink: #1f3a2d; --ink-2: #4b5f55; --paper: #fbf8f1; --card: #fffdf8; --line: #d9d3c4; --edge: #8a8572; --lift: 0 8px 28px rgba(31, 58, 45, 0.16), 0 1px 3px rgba(31, 58, 45, 0.14);
  --ring-do: #2e7d5b; --ring-eat: #c8612f; --ring-reflect: #3d6fb6; }
.world-body .world-top { background: rgba(251, 248, 241, 0.95); border-bottom: 1px solid var(--line); box-shadow: 0 1px 8px rgba(31, 58, 45, 0.08); }
.world-body .dock { background: var(--card); box-shadow: var(--lift); border-radius: 1.6rem 1.6rem 0 0; }
.world-body .world-menu, .world-body .v-chip:not([aria-pressed="true"]) { border-width: 1.5px; border-color: var(--edge); background: var(--card); }
.world-body dialog.sheet { background: var(--card); box-shadow: var(--lift); }
.world-body .spot-tag { box-shadow: var(--lift); }

/* ---- Garden / Simple switch: two plain words, always in the same place ---- */
.view-switch { position: absolute; z-index: 5; top: calc(var(--top, 3.7rem) + 0.6rem); left: max(0.75rem, env(safe-area-inset-left)); display: inline-flex; padding: 0.2rem; gap: 0.15rem; border-radius: 999px; background: var(--card); box-shadow: var(--lift); pointer-events: auto; }
.view-b { min-height: 2.75rem; min-width: 4.6rem; padding: 0.3rem 0.95rem; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer; }
.view-b[aria-pressed="true"] { background: var(--ink); color: #fff; }
.view-b:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.world-ui.is-touring .view-switch, .world-ui.is-playing .view-switch { display: none; }

/* ---- the Simple view ---- */
.world-canvas { transition: opacity 0.35s ease; }
html.simple-view .world-canvas { opacity: 0; }
html.simple-view body { background: var(--paper); }
.simple { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; pointer-events: auto; padding: calc(var(--top, 3.7rem) + 4.4rem) 0.9rem calc(2rem + env(safe-area-inset-bottom)); background: var(--paper); }
.simple > * { width: min(100%, 36rem); margin-left: auto; margin-right: auto; }
.simple-day { margin-top: 0; margin-bottom: 0.7rem; font-weight: 700; color: var(--ink-2); }
.s-card { margin-bottom: 0.9rem; padding: 1rem 1.1rem 1.1rem; border-radius: 1.3rem; background: var(--card); border: 1px solid var(--line); box-shadow: 0 2px 10px rgba(31, 58, 45, 0.07); }
.s-card h2 { margin: 0 0 0.7rem; padding: 0; border: 0; font-size: 1.25rem; }
.s-card h2::before, .s-card h2::after { content: none; }
.s-rings { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.8rem 1.1rem; }
.day-rings { flex: 0 0 auto; width: min(40vw, 9.5rem); height: auto; }
.ring-track { opacity: 0.2; }
.ring-do { stroke: var(--ring-do); } .ring-eat { stroke: var(--ring-eat); } .ring-reflect { stroke: var(--ring-reflect); }
.ring-arc { transition: stroke-dashoffset 0.9s cubic-bezier(0.22, 1, 0.36, 1); }
.ring-arc.is-fresh { animation: ring-close 0.9s 0.75s ease-out 1; }
@keyframes ring-close { 0% { stroke-width: 13; } 35% { stroke-width: 19; } 100% { stroke-width: 13; } }
.ring-key { list-style: none; margin: 0; padding: 0; flex: 1 1 9.5rem; min-width: 0; display: grid; gap: 0.35rem; }
.ring-k { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.55rem; width: 100%; min-height: 2.9rem; padding: 0.3rem 0.6rem; border: 0; border-radius: 0.8rem; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.ring-k:hover { background: #f1ede2; }
.ring-k i { width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 0.28rem solid currentColor; }
.ring-k-do i { color: var(--ring-do); } .ring-k-eat i { color: var(--ring-eat); } .ring-k-reflect i { color: var(--ring-reflect); }
.ring-k.is-closed i { background: currentColor; }
.ring-k span { color: var(--ink-2); font-size: 0.95rem; }
.ring-k.is-closed span { color: var(--ink); font-weight: 700; }
.s-status { margin: 0.8rem 0 0; font-weight: 700; }
.s-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.s-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.8rem; width: 100%; min-height: 3.5rem; padding: 0.55rem 0.8rem; border: 1.5px solid var(--line); border-radius: 1rem; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.s-row:hover { border-color: var(--edge); }
.s-row:focus-visible, .ring-k:focus-visible, .s-tree:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.s-check { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; border: 2px solid var(--edge); color: #fff; font-weight: 700; }
.s-row.is-done .s-check { background: var(--ring-do); border-color: var(--ring-do); animation: check-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 1; }
@keyframes check-pop { 0% { transform: scale(0.6); } 100% { transform: scale(1); } }
.s-row.s-look .s-check, .s-row.s-meal:not(.is-done) .s-check { border-style: dashed; }
.s-row-t { display: grid; gap: 0.1rem; min-width: 0; }
.s-row-t small { color: var(--ink-2); font-size: 0.92rem; }
.s-row.is-done .s-row-t strong { text-decoration: none; }
.s-go { font-size: 1.4rem; color: var(--ink-2); }
.s-lead { margin: 0 0 0.6rem; font-weight: 700; }
.s-card .v-chip { margin-top: 0.7rem; }
.s-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.9rem; }
.s-links .v-chip { min-height: 2.9rem; }
.s-shift { width: min(100%, 36rem); margin-bottom: 0.9rem; }
.s-tree { display: flex; justify-content: space-between; align-items: center; gap: 0.8rem; min-height: 3.2rem; padding: 0.6rem 1rem; border: 1.5px dashed var(--edge); border-radius: 1rem; background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.s-tree span { color: var(--ink-2); white-space: nowrap; }
@media (min-width: 60rem) { .simple > * { width: min(100%, 42rem); } .day-rings { width: 11rem; } }

/* ---- the tree grew: said once, in the day's own panel, never a pop-up in the way ---- */
.dock-grew { margin: 0 0 0.6rem; padding: 0.8rem 0.95rem; border-radius: 1.1rem; background: #eef6ee; border: 1.5px solid #9cc5a3; animation: grew-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1; }
.simple .dock-grew { margin-bottom: 0.9rem; }
@keyframes grew-in { 0% { transform: scale(0.92); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.dock-grew h3 { margin: 0 0 0.2rem; font-size: 1.15rem; }
.dock-grew p { margin: 0 0 0.6rem; }
.dock-grew-acts { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.dock-grew .button, .dock-grew .v-chip { min-height: 2.75rem; }

/* ---- My tree ---- */
.grow-card h3 { margin: 0 0 0.6rem; }
.grow-steps { list-style: none; margin: 0 0 0.7rem; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.25rem; text-align: center; font-size: 0.8rem; color: var(--ink-2); }
.grow-steps li { display: grid; justify-items: center; gap: 0.25rem; }
.grow-pip { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--edge); background: #fff; }
.grow-steps .is-past .grow-pip { background: var(--ring-do); border-color: var(--ring-do); }
.grow-steps .is-now { color: var(--ink); font-weight: 700; }
.grow-steps .is-now .grow-pip { background: var(--turmeric); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(224, 165, 38, 0.3); }
.grow-bar { height: 0.7rem; border-radius: 999px; background: #e7e2d4; overflow: hidden; }
.grow-bar .wc-fill { display: block; height: 100%; border-radius: 999px; background: var(--ring-do); }
.grow-next { margin: 0.6rem 0 0; font-weight: 700; }
.grow-choice h4 { margin: 1rem 0 0.4rem; font-size: 1rem; }
.grow-locked { margin: 0; padding: 0.55rem 0.8rem; border-radius: 0.8rem; background: #f1ede2; color: var(--ink-2); font-size: 0.95rem; }
.grow-name-form label { display: block; font-weight: 700; margin: 0 0 0.3rem; }
.grow-name { flex: 1 1 auto; min-width: 0; min-height: 3rem; padding: 0.5rem 0.8rem; border: 2px solid var(--edge); border-radius: 0.8rem; background: #fff; color: var(--ink); font: inherit; font-size: 1.0625rem; }

/* ---- sense first ---- */
.wc-sense .wc-opt { display: grid; gap: 0.1rem; text-align: left; }
.wc-sense .wc-opt small { font-weight: 400; color: var(--ink-2); }
.wc-sensed { padding: 0.65rem 0.85rem; border-radius: 0.9rem; background: #f1ede2; }
.wc-sensed.is-hit { background: #eef6ee; border: 1.5px solid #9cc5a3; }

@media (prefers-reduced-motion: reduce) {
  .world-canvas, .ring-arc { transition: none; }
  .ring-arc.is-fresh, .s-row.is-done .s-check, .dock-grew { animation: none; }
}
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.32s; }
@media (min-width: 60rem) { .view-switch { left: auto; right: 1rem; } }
/* On a phone the moment the tree grows gets the whole panel, so the tree itself can be seen growing above it. */

/* =====================================================================================================
   VERSION 3: one tree, one list, four tabs.
   There is no scene any more: no basket, pond or watering can, and nothing to find by guessing. The page is
   paper. The tree is one small ink drawing in the middle of it (js/tree.js). Under it is today's list, and
   at the bottom are four named tabs that never move. Everything else is one tap away behind those tabs.
   This block comes last and replaces the layout of versions 1 and 2. See docs/REDESIGN_PROGRESS.md.
   ===================================================================================================== */
.world-body { background-color: var(--paper); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .34 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"); }
.world-body .world-canvas { display: none; }
.world-body .world-top { background: transparent; border-bottom: 0; box-shadow: none; }
.world-body .world-top-nav a { font-weight: 400; font-size: 0.95rem; }

.home { position: absolute; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--top, 3.7rem) + 0.2rem) 1.1rem calc(5.6rem + env(safe-area-inset-bottom)); }
.home > * { width: min(100%, 30rem); margin-left: auto; margin-right: auto; }
.home > .dock-day { justify-content: center; margin: 0 auto 0.1rem; font-size: 0.9rem; font-weight: 400; color: var(--ink-2); text-align: center; }
.home-hero { text-align: center; }
.home-tree { display: block; width: min(100%, 21rem); margin: 0 auto; padding: 0; border: 0; border-radius: 1.5rem; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.home-tree:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.home-tree .tree { display: block; width: 100%; height: auto; max-height: 40dvh; overflow: visible; }
.home-leaf { margin: 0.1rem auto 1.1rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.35; color: var(--ink); }
.home-leaf.is-new { animation: leaf-line 0.7s 1.3s both; }
@keyframes leaf-line { from { opacity: 0; translate: 0 0.4rem; } to { opacity: 1; translate: 0 0; } }

/* Today's list: plain rows with a pen-drawn tick box. No boxes inside boxes. */
.world-body .home .dock { position: static; translate: none; width: min(100%, 30rem); padding: 0; background: none; box-shadow: none; border-radius: 0; }
.world-body .home .dock-head { align-items: center; margin-bottom: 0.3rem; }
.world-body .home .dock-head h2 { font-size: 1.5rem; padding: 0 0.3rem 0.5rem 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 8' preserveAspectRatio='none'%3E%3Cpath d='M2 5q40-4 82-1t114-1' fill='none' stroke='%23e0a526' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.45rem; }
.world-body .home .dock-head h2::before, .world-body .home .dock-head h2::after { content: none; }
.world-body .home .dock-count { font-weight: 400; }
.world-body .home .dock-things { gap: 0; margin-top: 0.2rem; }
.world-body .home .dock .dock-thing { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 0.8rem; padding: 0.75rem 0.5rem; border: 0; border-bottom: 1px dashed var(--line); border-radius: 0.9rem; background: none; color: var(--ink); box-shadow: none; }
.world-body .home .dock .dock-thing:last-child { border-bottom: 0; }
.world-body .home .dock .dock-thing:hover { background: rgba(31, 58, 45, 0.05); }
.world-body .home .dock .dock-thing.is-now { background: #f4ecd4; border-bottom-color: transparent; }
.world-body .home .dock .dock-thing .dock-thing-t strong { font-size: 1.2rem; }
.world-body .home .dock .dock-thing .dock-time { grid-column: auto; grid-row: auto; text-align: left; font-size: 0.95rem; color: var(--ink-2); white-space: normal; }
.world-body .home .dock .dock-thing.is-done .dock-thing-t strong { color: var(--ink-2); }
.world-body .home .dock .dock-thing .dock-icon { display: none; }
.world-body .home .dock .dock-go { color: var(--edge); font-size: 1.3rem; }
.tick { flex: none; width: 2.2rem; height: 2.2rem; }
.tick-o { stroke: var(--edge); }
.tick.is-done .tick-o { stroke: #2e7d5b; fill: #e4f1e4; }
.tick-v { stroke: #2e7d5b; }
.world-body .home .dock-shift { margin: 0.2rem 0 0.7rem; padding: 0.85rem 1rem; border-radius: 1rem; background: var(--ink); border-color: var(--ink); }
.world-body .home .dock-shift:hover { background: #14271e; border-color: #14271e; }
.world-body .home .dock-shift strong { font-size: 1.1rem; }
.world-body .home .dock-shift small { display: block; font-size: 0.9rem; }
.world-body .home .dock-note { margin-top: 0.8rem; border-width: 1px; }

/* The four tabs: always here, always named. */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 6; display: grid; grid-template-columns: repeat(4, minmax(0, 7.5rem)); justify-content: center; gap: 0.2rem; padding: 0.3rem 0.5rem calc(0.3rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; min-height: 3.5rem; padding: 0.3rem 0.2rem; border: 0; border-radius: 0.9rem; background: none; color: var(--ink); font: inherit; font-size: 0.9rem; font-weight: 700; cursor: pointer; }
.tab:hover { background: rgba(31, 58, 45, 0.07); }
.tab:focus-visible { outline: 3px solid var(--turmeric); outline-offset: -2px; }
.tab-i { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Sections open as a page of their own on a phone, and as a sheet of paper on a wide screen. */
.world-body dialog.sheet { width: 100%; max-width: 40rem; height: 100dvh; max-height: 100dvh; margin: 0 auto; border-radius: 0; box-shadow: none; background: var(--paper); }
.world-body dialog.sheet::backdrop { background: rgba(251, 248, 241, 0.92); }
.world-body .sheet-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.world-body .sheet-x { border-width: 1.5px; border-color: var(--edge); background: var(--card); }
@media (min-width: 60rem) { .world-body dialog.sheet { height: auto; max-height: 90dvh; margin: auto; border-radius: 1.4rem; box-shadow: var(--lift); background: var(--card); } .world-body .sheet-head { background: var(--card); } .world-body dialog.sheet::backdrop { background: rgba(31, 58, 45, 0.3); } }

/* Surveys: the seed above, the question below, nothing else. */
.wc-page { position: absolute; inset: 0; display: flex; flex-direction: column; padding-top: var(--top, 3.7rem); }
.wc-tree { flex: 1 1 0; min-height: 0; display: flex; align-items: flex-end; justify-content: center; }
.wc-tree:empty { display: none; }
.wc-tree .tree { width: auto; height: 100%; max-height: 13rem; max-width: 100%; }
.wc-page .world-card { position: static; translate: none; flex: 0 1 auto; margin: auto auto 0; max-height: 74dvh; box-shadow: none; border-top: 1px solid var(--line); background: var(--card); border-radius: 1.4rem 1.4rem 0 0; }
@media (max-height: 34rem) { .wc-tree { display: none; } .wc-page .world-card { max-height: none; } }
.world-ui > .world-card, .world-ui > .world-panel { box-shadow: var(--lift); background: var(--card); }

/* ---- the tree's movement: each one short, each one means something ---- */
.t-all { transform-origin: 160px 268px; animation: breathe 6s ease-in-out infinite; }
.t-all.sway-1 { --sw: 1.1deg; animation: sway 5.2s ease-in-out infinite; }
.t-all.sway-2 { --sw: 2.2deg; animation: sway 3.8s ease-in-out infinite; }
.t-all.sway-3 { --sw: 3.4deg; animation: sway 2.8s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.006, 1.014); } }
@keyframes sway { 0%, 100% { transform: rotate(calc(var(--sw) * -1)); } 50% { transform: rotate(var(--sw)); } }
.t-eyes { transform-box: fill-box; transform-origin: center; animation: blink 5.6s infinite; }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(0.1); } }
.t-shut, .t-glad { display: none; }
.tree.is-asleep .t-eyes { display: none; } .tree.is-asleep .t-shut { display: inline; }
.tree.is-loved .t-eyes, .tree.is-loved .t-shut { display: none; } .tree.is-loved .t-glad { display: inline; }
.tree.is-loved .t-cheek { opacity: 0.9; }
.t-new { transform-box: fill-box; transform-origin: center; animation: leaf-in 1s 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes leaf-in { 0% { scale: 0; opacity: 0; } 60% { scale: 1.9; opacity: 1; } 100% { scale: 1; opacity: 1; } }
.t-spark { transform-box: fill-box; transform-origin: center; animation: spark 1.3s 1s ease-out both; }
@keyframes spark { 0% { scale: 0.3; opacity: 0; } 35% { scale: 1; opacity: 1; } 100% { scale: 1.5; opacity: 0; } }
.tree { transform-origin: 50% 90%; }
.tree.is-happy { animation: hop 0.9s ease-out 1; }
@keyframes hop { 0% { scale: 1 1; } 22% { scale: 1.05 0.93; } 52% { scale: 0.97 1.06; } 78% { scale: 1.01 0.99; } 100% { scale: 1 1; } }
.tree.is-growing { animation: grow-beat 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1; }
@keyframes grow-beat { 0% { scale: 0.8 0.8; } 25% { scale: 0.86 0.74; } 70% { scale: 1.05 1.08; } 100% { scale: 1 1; } }
.t-heart { animation: heart-up 1.4s ease-out both; }
.t-heart1 { animation-delay: 0.12s; } .t-heart2 { animation-delay: 0.24s; }
@keyframes heart-up { 0% { opacity: 0; translate: 0 6px; scale: 0.4; } 25% { opacity: 1; scale: 2.2; } 100% { opacity: 0; translate: 0 -34px; scale: 2; } }
.t-heart { transform-box: fill-box; transform-origin: center; }
.t-z { font-family: var(--serif); font-weight: 700; animation: zzz 3.6s ease-in-out infinite; }
.t-z1 { animation-delay: 0.5s; } .t-z2 { animation-delay: 1s; }
@keyframes zzz { 0%, 100% { opacity: 0.15; translate: 0 2px; } 50% { opacity: 0.9; translate: 0 -3px; } }
.t-wind { animation: drift 4.2s ease-in-out infinite; }
@keyframes drift { 0%, 100% { translate: 0 0; } 50% { translate: 12px 0; } }
.t-shimmer { animation: rise 3s ease-in-out infinite; }
@keyframes rise { 0%, 100% { translate: 0 2px; } 50% { translate: 0 -4px; } }
.t-glow { animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.12; } }
.t-twinkle, .t-firefly { animation: twinkle 3.4s ease-in-out infinite; }
.t-twinkle:nth-child(odd), .t-firefly:nth-child(odd) { animation-delay: 1.5s; }
@keyframes twinkle { 50% { opacity: 0.25; } }
.t-fly { animation: rise 2.2s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .tree, .tree *, .home-leaf { animation: none !important; } }

/* =====================================================================================================
   VERSION 4: the picture is rich, the page stays plain. The Simple view is back, one tap away.
   ===================================================================================================== */
.world-body .view-switch { top: calc(var(--top, 3.7rem) + 0.3rem); left: 50%; right: auto; translate: -50% 0; box-shadow: 0 1px 6px rgba(31, 58, 45, 0.14); border: 1px solid var(--line); }
.world-body .view-b { min-height: 2.75rem; }
.home { padding-top: calc(var(--top, 3.7rem) + 3.9rem); }
.world-body .simple { background: none; padding-top: calc(var(--top, 3.7rem) + 4rem); padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
.home-tree { width: min(100%, 50dvh, 30rem); border-radius: 1.6rem; box-shadow: 0 10px 30px rgba(31, 58, 45, 0.22), 0 2px 6px rgba(31, 58, 45, 0.16); overflow: hidden; }
.home-tree .tree { max-height: none; height: auto; aspect-ratio: 360 / 330; border-radius: 1.6rem; overflow: hidden; }
.home-leaf { margin-top: 0.8rem; }
.wc-tree { padding: 0.4rem 0.9rem 0.6rem; }
.wc-tree .tree { width: min(100%, 26rem); height: 100%; max-height: 14rem; border-radius: 1.3rem; overflow: hidden; box-shadow: 0 6px 18px rgba(31, 58, 45, 0.18); }
.t-hop { transform-origin: 180px 286px; }
.t-all { transform-origin: 180px 286px; }
.tree { transform-origin: 50% 50%; }
.tree.is-happy, .tree.is-growing { animation: none; }
.tree.is-happy .t-hop { animation: hop 0.9s ease-out 1; }
.tree.is-growing .t-hop { animation: grow-beat 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1; }
.t-cloud { animation: cloud 70s linear infinite alternate; }
.t-cloud1 { animation-duration: 95s; animation-direction: alternate-reverse; } .t-cloud2 { animation-duration: 120s; }
@keyframes cloud { from { translate: -18px 0; } to { translate: 26px 0; } }
.t-petal { animation: petal 9s linear infinite; opacity: 0; }
.t-petal1 { animation-delay: 1.8s; } .t-petal2 { animation-delay: 3.6s; } .t-petal3 { animation-delay: 5.4s; } .t-petal4 { animation-delay: 7.2s; }
@keyframes petal { 0% { opacity: 0; translate: 0 0; rotate: 0deg; } 10% { opacity: 0.95; } 80% { opacity: 0.9; } 100% { opacity: 0; translate: 26px 150px; rotate: 200deg; } }
.t-flock { animation: flock 46s linear infinite; }
@keyframes flock { from { translate: -90px 8px; } to { translate: 330px -26px; } }
.t-fly { animation: flutter 5s ease-in-out infinite; } .t-fly1 { animation-duration: 6.4s; animation-delay: 1s; }
@keyframes flutter { 0%, 100% { translate: 0 0; } 25% { translate: 7px -9px; } 50% { translate: -4px -15px; } 75% { translate: -9px -5px; } }
.t-bird { transform-box: fill-box; transform-origin: 50% 100%; animation: bob 4s ease-in-out infinite; }
@keyframes bob { 0%, 86%, 100% { rotate: 0deg; } 91% { rotate: -9deg; } 95% { rotate: 4deg; } }
.t-halo { animation: glow 7s ease-in-out infinite; }
.t-firefly { animation: twinkle 2.6s ease-in-out infinite; }
.wc-tree .tree { width: auto; height: 100%; max-width: 100%; aspect-ratio: 196 / 180; }

/* =====================================================================================================
   VERSION 5: the world is the whole screen. The page floats on it.
   Phone: the tree above, today's card at the bottom, tabs under it. Wide screen: the tree to the left, the
   card to the right. Simple view: the same world, veiled, with the cards laid out across the screen.
   ===================================================================================================== */
.scene { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.scene .tree { display: block; width: 100%; height: 100%; }
.scene.is-veiled::after { content: ''; position: absolute; inset: 0; background: rgba(251, 248, 241, 0.5); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.world-body .world-top { z-index: 6; background: linear-gradient(rgba(251, 248, 241, 0.88), rgba(251, 248, 241, 0)); padding-bottom: 1.1rem; }
.world-body .world-top-nav a, .world-body .world-top-mark { text-shadow: 0 0 6px #fbf8f1, 0 0 2px #fbf8f1; }
.world-body .view-switch { z-index: 5; background: rgba(255, 253, 248, 0.92); }
.world-body .home-tree { position: absolute; z-index: 1; display: block; margin: 0; padding: 0; border: 0; border-radius: 1.5rem; background: none; box-shadow: none; overflow: visible; cursor: pointer; pointer-events: auto; -webkit-tap-highlight-color: transparent; }
.world-body .home { position: absolute; z-index: 4; inset: auto 0.6rem calc(4.5rem + env(safe-area-inset-bottom)) 0.6rem; width: auto; max-height: min(37dvh, 19rem); overflow-y: auto; padding: 0.85rem 1rem 0.7rem; border-radius: 1.5rem; background: rgba(255, 253, 248, 0.93); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 10px 34px rgba(20, 40, 30, 0.28), 0 1px 4px rgba(20, 40, 30, 0.18); }
.world-body .home > * { width: auto; margin-left: 0; margin-right: 0; }
.world-body .home .home-leaf { margin: 0 0 0.6rem; font-size: 1.05rem; text-align: left; }
.world-body .home > .dock-day { justify-content: flex-start; margin: 0.6rem 0 0; font-size: 0.85rem; text-align: left; }
.world-body .home .dock { width: auto; }
.world-body .tabbar { z-index: 5; left: 0.6rem; right: 0.6rem; bottom: calc(0.45rem + env(safe-area-inset-bottom)); padding: 0.2rem 0.4rem; border: 0; border-radius: 1.3rem; background: rgba(255, 253, 248, 0.95); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 6px 22px rgba(20, 40, 30, 0.26); }
.world-body .tab { min-height: 3.3rem; }
.world-body .simple { z-index: 3; background: none; padding: calc(var(--top, 3.7rem) + 4rem) 0.8rem calc(5.6rem + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 0.9rem; align-content: start; }
.world-body .simple > * { width: auto; margin: 0; }
.world-body .simple > .simple-day, .world-body .simple > .s-links, .world-body .simple > .s-tree, .world-body .simple > .dock-grew, .world-body .simple > .dock-shift { grid-column: 1 / -1; }
.world-body .simple .s-card { margin: 0; background: rgba(255, 253, 248, 0.95); box-shadow: 0 6px 22px rgba(20, 40, 30, 0.14); }
@media (min-width: 60rem) {
  .world-body .home { inset: calc(var(--top, 3.7rem) + 4.2rem) 2rem auto auto; width: min(25rem, 42vw); max-height: calc(100dvh - var(--top, 3.7rem) - 11rem); padding: 1.2rem 1.3rem 1rem; }
  .world-body .home .home-leaf { font-size: 1.15rem; }
  .world-body .tabbar { left: 50%; right: auto; translate: -50% 0; width: min(34rem, 90vw); bottom: 1rem; }
  .world-body .simple { padding-left: max(1.5rem, calc(50vw - 38rem)); padding-right: max(1.5rem, calc(50vw - 38rem)); padding-bottom: 7rem; }
}
@media (prefers-reduced-transparency: reduce) { .world-body .home, .world-body .tabbar, .world-body .simple .s-card { background: #fffdf8; backdrop-filter: none; } }
.world-body .simple > .simple-day { justify-self: start; margin: 0; padding: 0.35rem 0.9rem; border-radius: 999px; background: rgba(255, 253, 248, 0.92); color: var(--ink); font-size: 0.95rem; }

/* =====================================================================================================
   VERSION 6: the weather around the tree is the real weather; the Current Shift happens to the tree itself;
   a tap that earns an "aww"; the next stage always in sight.
   ===================================================================================================== */
/* Movement & Flow: the leaves flutter, the eyes glance about, a seed wriggles. */
.t-flut { animation: flutter-leaf 0.9s ease-in-out infinite; }
.t-flut1 { animation-delay: -0.2s; } .t-flut2 { animation-delay: -0.45s; } .t-flut3 { animation-delay: -0.6s; } .t-flut4 { animation-delay: -0.75s; }
.lv-2 .t-flut { animation-duration: 0.65s; } .lv-3 .t-flut { animation-duration: 0.45s; }
@keyframes flutter-leaf { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(11deg); } }
.tree.is-v:not(.is-loved):not(.is-asleep) .t-eyes { animation: glance 3.2s ease-in-out infinite; }
@keyframes glance { 0%, 40%, 100% { transform: translate(0, 0); } 50%, 65% { transform: translate(1.6px, 0); } 75%, 90% { transform: translate(-1.6px, 0); } }
.tree.is-v .t-seedbody { transform-origin: 180px 286px; animation: wriggle 1.1s ease-in-out infinite; }
@keyframes wriggle { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(2.5deg); } }
/* Heat & Transformation: leaf tips glow like embers, the cheeks are rosy. */
.t-ember { animation: ember 2.2s ease-in-out infinite; }
.t-ember1 { animation-delay: -0.5s; } .t-ember2 { animation-delay: -1.1s; } .t-ember3 { animation-delay: -1.6s; }
@keyframes ember { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.tree.is-p .t-cheek { opacity: 0.95; fill: #f2705e; }
/* Structure & Moisture: beads of dew hang and swell, the eyes are sleepy, everything is slow. */
.t-dew { transform-box: fill-box; transform-origin: 50% 0; animation: dew 3.6s ease-in-out infinite; }
.t-dew1 { animation-delay: -1.2s; } .t-dew2 { animation-delay: -2.4s; }
@keyframes dew { 0%, 100% { scale: 1 0.8; } 60% { scale: 1.15 1.35; } }
.tree.is-k:not(.is-loved):not(.is-asleep) .t-eyes { animation: drowsy 6s ease-in-out infinite; }
@keyframes drowsy { 0%, 100% { transform: scaleY(0.62); } 45% { transform: scaleY(0.78); } 50% { transform: scaleY(0.1); } 56% { transform: scaleY(0.62); } }
.tree.is-k .t-all { animation-duration: 9s; }

/* The real weather. */
.t-rain .t-fall { animation: rain 0.75s linear infinite; }
.t-snow .t-fall { animation: snow 7s linear infinite; }
.t-fall1 { animation-delay: -0.2s; } .t-fall2 { animation-delay: -0.4s; } .t-fall3 { animation-delay: -0.6s; }
.t-snow .t-fall1 { animation-delay: -1.8s; } .t-snow .t-fall2 { animation-delay: -3.6s; } .t-snow .t-fall3 { animation-delay: -5.2s; }
@keyframes rain { from { translate: 12px -44px; } to { translate: 0 0; } }
@keyframes snow { 0% { translate: -8px -70px; } 50% { translate: 6px -35px; } 100% { translate: -4px 0; } }
.t-world.is-windy .t-cloud { animation-duration: 22s; }
.t-fog { animation: cloud 40s ease-in-out infinite alternate; }
.t-guest { animation: guest-in 0.8s 1.4s cubic-bezier(0.34, 1.56, 0.64, 1) both; transform-box: fill-box; transform-origin: center; }
@keyframes guest-in { from { scale: 0; opacity: 0; } to { scale: 1; opacity: 1; } }
.t-guest.t-fly { animation: guest-in 0.8s 1.4s both, flutter 4s 2.2s ease-in-out infinite; }

/* The tap: it leans in, squeezes its eyes shut, blushes and beams; one heart swells, small ones pop around it. */
.t-smile { display: none; }
.tree.is-loved .t-smile { display: inline; } .tree.is-loved .t-mouth { display: none; }
.tree.is-loved .t-cheek { opacity: 1; transform-box: fill-box; transform-origin: center; animation: blush 1.5s ease-out both; }
@keyframes blush { 0% { scale: 1; } 25% { scale: 1.7; } 100% { scale: 1.25; } }
.tree.is-loved .t-hop { animation: aww 1.25s cubic-bezier(0.3, 1.4, 0.5, 1) 1; }
@keyframes aww { 0% { transform: scale(1, 1) rotate(0); } 14% { transform: scale(1.09, 0.88) rotate(0); } 34% { transform: scale(0.96, 1.07) rotate(-4deg); } 54% { transform: scale(1.02, 0.99) rotate(3.5deg); } 74% { transform: scale(1, 1) rotate(-1.6deg); } 100% { transform: scale(1, 1) rotate(0); } }
.tree.is-overjoyed .t-hop { animation: joy 1.5s cubic-bezier(0.3, 1.4, 0.5, 1) 1; }
@keyframes joy { 0% { transform: translateY(0) scale(1, 1); } 12% { transform: translateY(0) scale(1.12, 0.84); } 30% { transform: translateY(-16px) scale(0.94, 1.1) rotate(-6deg); } 46% { transform: translateY(0) scale(1.08, 0.9); } 62% { transform: translateY(-10px) scale(0.97, 1.06) rotate(6deg); } 80% { transform: translateY(0) scale(1.04, 0.96); } 100% { transform: translateY(0) scale(1, 1); } }
.t-bigheart { animation: big-heart 1.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
@keyframes big-heart { 0% { scale: 0; opacity: 0; translate: 0 10px; } 22% { scale: 2.9; opacity: 1; translate: 0 0; } 34% { scale: 2.4; } 46% { scale: 2.7; } 70% { scale: 2.5; opacity: 1; translate: 0 -8px; } 100% { scale: 2.2; opacity: 0; translate: 0 -30px; } }
.t-hearts .t-heart { transform-box: fill-box; transform-origin: center; animation: pop-heart 1.2s cubic-bezier(0.2, 0.9, 0.3, 1) both; }
@keyframes pop-heart { 0% { scale: 0; opacity: 0; translate: 0 0; } 25% { scale: 1.2; opacity: 1; } 100% { scale: 0.5; opacity: 0; translate: var(--dx, 0) var(--dy, -30px); } }

/* The next stage, always in sight. */
.home-next { margin: 0 0 0.75rem; }
.home-next .wc-bar { margin: 0 0 0.25rem; height: 0.5rem; border-radius: 999px; background: rgba(31, 58, 45, 0.12); overflow: hidden; }
.home-next .wc-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #6fb27a, #2e7d5b); transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); }
.home-next p { margin: 0; font-size: 0.88rem; color: var(--ink-2); }

/* =====================================================================================================
   VERSION 7: adding and customising in plain sight; the Simple view as its own plain screen; a key to the tree.
   ===================================================================================================== */
.home-more { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0 0; }
.home-add, .home-own { flex: 1 1 auto; min-height: 2.75rem; padding: 0.4rem 0.9rem; border-radius: 999px; font: inherit; font-weight: 700; cursor: pointer; }
.home-add { border: 1.5px dashed var(--edge); background: none; color: var(--ink); }
.home-add span { font-size: 1.2rem; line-height: 1; }
.home-own { border: 1.5px solid var(--edge); background: var(--card); color: var(--ink); }
.home-add:hover, .home-own:hover { border-color: var(--ink); }
.home-add:focus-visible, .home-own:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
/* Simple: a calm health-app screen of its own. Plain paper, clear cards, nothing behind them. */
.world-body .simple { background: var(--paper); }
.world-body .simple .s-card { background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 4px rgba(31, 58, 45, 0.06); border-radius: 1.1rem; }
.world-body .simple > .simple-day { background: none; padding: 0; font-weight: 700; color: var(--ink-2); }
.key-h { margin: 1rem 0 0.5rem; font-size: 1.05rem; }
.key-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.key-fig { margin: 0; padding: 0.4rem; border-radius: 1rem; border: 1.5px solid var(--line); background: var(--card); }
.key-fig.is-you { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.key-fig .tree { display: block; width: 100%; height: auto; aspect-ratio: 196 / 180; border-radius: 0.7rem; }
.key-fig figcaption { display: grid; gap: 0.15rem; margin-top: 0.35rem; font-size: 0.85rem; line-height: 1.3; }
.key-fig em { font-style: normal; font-weight: 700; color: #2e6b4f; }
.key-why { font-size: 1.05rem; }
@media (max-width: 26rem) { .key-trio { grid-template-columns: 1fr; } .key-fig { display: grid; grid-template-columns: 7rem 1fr; gap: 0.6rem; align-items: center; } .key-fig figcaption { margin: 0; } }

/* =====================================================================================================
   VERSION 8: one world from the first tap to the last. See the plan document and docs/REDESIGN_PROGRESS.md.
   ===================================================================================================== */
/* The home page shows the app's own tree. */
.hero-frame .hero-tree { display: block; width: 100%; height: 100%; min-height: 18rem; aspect-ratio: 1 / 1; padding: 0; border: 0; background: none; cursor: pointer; }
.hero-tree .tree { display: block; width: 100%; height: 100%; }
.hero-tree:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 3px; }
/* The world behind surveys, results and setup: the card floats over it, the seed stands above the card. */
.world-body .wc-page .world-card, .world-ui > .world-card, .world-ui > .world-panel { z-index: 2; max-height: 61dvh; background: rgba(255, 253, 248, 0.96); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 0; border-radius: 1.6rem 1.6rem 0 0; box-shadow: 0 -8px 34px rgba(20, 40, 30, 0.22); }
.world-body .wc-page { z-index: 2; pointer-events: none; } .world-body .wc-page > * { pointer-events: auto; }
@media (max-height: 34rem) { .world-body .wc-page .world-card { max-height: 78dvh; } }
/* A clean top bar on phones: the name, text size, Menu. The site's pages are in the Menu. */
.world-body .world-top-mark { display: inline-flex; }
@media (max-width: 59.99rem) { .world-body .world-top-nav { display: none; } }
.menu-site { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 1rem; }
.menu-site .v-chip { text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
/* The sprouting and growing moments get the whole card on a phone. */
@media (max-width: 59.99rem) { .world-body .home.is-grew > :not(.dock), .world-body .home.is-grew .dock > :not(.dock-grew) { display: none; } .world-body .home.is-grew .dock-grew { margin: 0; border: 0; background: none; padding: 0.2rem 0.1rem; } .world-body .home.is-grew .dock-grew h3 { font-size: 1.45rem; } }
.grow-save { width: 100%; margin: 0.4rem 0 1rem; }
/* Sections: the same paper, soft cards and round chips as the home. */
.world-body .sheet-head h2 { font-size: 1.7rem; padding-bottom: 0.3rem; }
.world-body dialog.sheet .ws-fold { margin: 0.6rem 0; padding: 0; border: 1px solid var(--line); border-radius: 1.1rem; background: var(--card); overflow: hidden; }
.world-body dialog.sheet .ws-fold > summary { min-height: 3rem; display: flex; align-items: center; padding: 0.5rem 1rem; font-weight: 700; cursor: pointer; }
.world-body dialog.sheet .ws-fold[open] > summary { border-bottom: 1px dashed var(--line); }
.world-body dialog.sheet .ws-fold > :not(summary) { margin-left: 1rem; margin-right: 1rem; }
.world-body dialog.sheet .ws-fold > :last-child { margin-bottom: 0.9rem; }
.world-body dialog.sheet .ws-tabs { gap: 0.35rem; padding: 0.25rem; border-radius: 1.5rem; background: rgba(31, 58, 45, 0.07); display: inline-flex; flex-wrap: wrap; }
.world-body dialog.sheet .ws-tabs .v-chip { border-color: transparent; background: none; }
.world-body dialog.sheet .ws-tabs .v-chip[aria-pressed="true"] { background: var(--ink); color: #fff; }
.world-body dialog.sheet h3 { margin-top: 1.2rem; }

/* =====================================================================================================
   VERSION 9: choosing and removing small things; a Today card that folds away; nothing left half-drawn.
   ===================================================================================================== */
/* Long screens (choosing a small thing, setup, the intake form) are a full sheet that scrolls, not a cut-off card. */
.world-ui > .world-panel { top: calc(var(--top, 3.7rem) + 0.3rem); bottom: 0; max-height: none; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
.world-body .choose-card { border-width: 1.5px; border-radius: 1.1rem; background: #fff; }
.world-body .choose-card.is-best { border-color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); }
.thing-remove.is-sure { background: #9c3418; border-color: #9c3418; color: #fff; }
.thing-warn { margin: 0.6rem 0 0; padding: 0.7rem 0.9rem; border-radius: 0.9rem; background: #fff7e2; border: 1.5px solid #e4a11b; color: var(--ink); }
.thing-warn[hidden] { display: none; }
.dock-none { margin: 0.2rem 0 0.6rem; padding: 0.75rem 0.9rem; border-radius: 0.9rem; background: #f4ecd4; color: var(--ink); }
.home-fold { position: absolute; top: 0.55rem; right: 0.7rem; z-index: 1; min-height: 2.75rem; padding: 0.2rem 0.8rem; border: 0; border-radius: 999px; background: rgba(31, 58, 45, 0.08); color: var(--ink); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.home-fold:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.world-body .home:has(> .home-fold) > .home-leaf { padding-right: 5.6rem; min-height: 2.6rem; }
.world-body .home.is-folded > :not(.home-leaf):not(.home-fold) { display: none; }
.world-body .home.is-folded > .home-leaf { margin-bottom: 0; padding-right: 7.6rem; }
.world-body .v-chip.thing-remove.is-sure { background: #9c3418; border-color: #9c3418; color: #fff; }

/* VERSION 10: the survey card takes the whole screen under the top bar, like the choosing screen. */
.world-body .wc-page { padding-top: calc(var(--top, 3.7rem) + 0.3rem); }
.world-body .wc-page .world-card { flex: 1 1 auto; width: min(100% - 1rem, 44rem); max-height: none; margin: 0 auto; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom)); }
@media (max-height: 34rem) { .world-body .wc-page .world-card { max-height: none; } }

/* VERSION 11: the baseline-and-today bars say what each part measures. */
.cmp-key { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.3rem; font-size: 0.9rem; color: var(--ink-2); }
.cmp-key li { display: flex; align-items: center; gap: 0.5rem; }
.cmp-key i { flex: none; width: 1.6rem; height: 0.7rem; border-radius: 999px; }
.cmp-key-base { background: var(--ink); }
.cmp-key-up { background: repeating-linear-gradient(135deg, var(--ink) 0 3px, #fff 3px 6px); border: 1px solid var(--ink); }
.cmp-note { margin: 0.5rem 0 0; padding: 0.6rem 0.8rem; border-left: 4px solid var(--turmeric); border-radius: 0 0.7rem 0.7rem 0; background: #fff7e2; font-size: 0.95rem; }

/* =====================================================================================================
   VERSION 12 (Nov 16, 2026): a question always looks like a question, an explanation like an explanation;
   Back and Not now sit in the same place on every card, as visible buttons; Reflect is one survey; the
   dish shows what goes in, with amounts, and its recipe opens with one tap; one cuisine per meal.
   The research behind each choice is in docs/REDESIGN_PROGRESS.md, VERSION 12.
   ===================================================================================================== */
/* ---- 1. A question: a small tag, the question in the heading face, answers as buttons right under it. ---- */
.q { margin: 1.1rem 0 0; }
.q:first-child { margin-top: 0.3rem; }
.q-tag { display: flex; align-items: center; gap: 0.4rem; margin: 0 0 0.35rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink); }
.q-mark { display: inline-grid; place-items: center; flex: none; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.95rem; font-weight: 700; letter-spacing: 0; }
.world-body .q-text, .world-body .world-sheet h3.q-text, .world-body .world-sheet h4.q-text, .world-body .setup h1.q-text, .world-body .world-card h1.q-text { font-family: var(--serif); font-weight: 700; font-size: clamp(1.3rem, 1.15rem + 0.8vw, 1.6rem); line-height: 1.2; letter-spacing: -0.005em; margin: 0 0 0.6rem; padding: 0; border: 0; color: var(--ink); outline-offset: 4px; }
.world-body .setup h1.q-text, .world-body .world-card h1.q-text { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.9rem); }
.world-body .q-text.q-sub { font-size: 1.15rem; margin-bottom: 0.45rem; }
.q-hint, .world-body .setup > p.q-hint { margin: -0.25rem 0 0.7rem; font-size: 1rem; line-height: 1.4; color: var(--ink-2); }
.q .wc-frame, .world-body .wc-frame { margin: 0 0 0.3rem; font-size: 1rem; font-weight: 700; color: var(--ink); }
.q.is-missed { padding: 0.6rem 0.7rem 0.7rem 0.85rem; border-radius: 0 0.9rem 0.9rem 0; background: #fff3e6; border-left: 4px solid #b4451b; }
.q.is-missed .q-tag::after { content: "· needs an answer"; text-transform: none; letter-spacing: 0; color: #8a2f0e; }
/* Answers are plainly buttons: a firm edge, a little depth, and a filled look once chosen. */
.world-body .wc-opt { min-height: 3.4rem; padding: 0.8rem 1rem; font-size: 1.05rem; border: 2px solid var(--ink); border-radius: 0.9rem; background: #fff; box-shadow: 0 2px 0 rgba(31, 58, 45, 0.28); }
.world-body .wc-opt:hover { background: #f1f6ee; }
.world-body .wc-opt:active { translate: 0 2px; box-shadow: none; }
.world-body .wc-opt.wc-quiet { border-style: dashed; color: var(--ink); background: var(--card); box-shadow: none; }
.world-body .vtile, .world-body .setup .vtile { font-size: 1rem; background: #fff; border: 2px solid var(--ink); box-shadow: 0 2px 0 rgba(31, 58, 45, 0.28); }
.world-body .vtile:active { translate: 0 2px; box-shadow: none; transform: none; }
.world-body .vtile.on, .world-body .vtile[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.world-body .vtile.on .vface circle:first-child, .world-body .vtile[aria-pressed="true"] .vface circle:first-child { stroke: #fff; }
.world-body .vtile.on::after, .world-body .vtile[aria-pressed="true"]::after { content: "✓ chosen"; content: "✓ chosen" / ""; font-size: 0.8rem; font-weight: 700; }
.world-body .setup-chips .vtile[aria-pressed="true"]::after, .world-body .setup-tiles .vtile.on::after { content: none; }
.world-body .plan-actions .button.quiet { min-height: 3rem; padding: 0.6rem 1rem; font-size: 1rem; text-decoration: none; border: 2px solid var(--ink); border-radius: 0.9rem; background: #fff; box-shadow: 0 2px 0 rgba(31, 58, 45, 0.28); }
/* ---- 2. An explanation: tinted, a rule down the left, never the shape of a button. ---- */
.note, .world-body .setup > p.note { margin: 0.8rem 0 0; padding: 0.6rem 0.85rem; border-left: 4px solid #9db3a4; border-radius: 0 0.5rem 0.5rem 0; background: #eef3ec; font-size: 1rem; line-height: 1.4; color: var(--ink); }
.world-body .wc-note, .world-body .vsmall, .world-body .plan-meta, .world-body .world-sheet .plan-meta, .world-body .bal-foot, .world-body .cmp-note { font-size: 0.95rem; line-height: 1.45; }
.world-body .vnote { font-size: 1rem; padding: 0.55rem 0.85rem; border-left: 4px solid #6fae84; border-radius: 0 0.5rem 0.5rem 0; background: #e9f4ec; font-weight: 400; color: var(--ink); }
/* Facts are facts, not buttons: no pill, no border. */
.world-body .vcard-habit .vchips { gap: 0.2rem 0.9rem; }
.world-body .vcard-habit .vchips .vchip { padding: 0; background: none; border-radius: 0; font-weight: 400; font-size: 1rem; color: var(--ink-2); }
/* "Why this fits you" opens, so it looks like something that opens. */
.world-body .vwhy summary { padding: 0.45rem 0.7rem; border: 1.5px solid var(--edge); border-radius: 0.8rem; background: var(--card); }
.world-body .vwhy summary::after { content: "Show"; margin-left: auto; font-size: 0.9rem; font-weight: 700; text-decoration: underline; }
.world-body .vwhy[open] summary::after { content: "Hide"; }
.world-body .vwhy-label { font-size: 0.85rem; text-decoration: none; color: var(--ink); }
.world-body .vwhy .vchip { background: none; padding: 0 0.5rem 0 0; font-weight: 400; font-size: 0.95rem; }
.world-body .vwhy p { font-size: 1rem; color: var(--ink); }
/* ---- 3. Back and Not now: the same place on every card, as visible buttons. ---- */
.nav-btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem; font: inherit; font-size: 1rem; font-weight: 700; min-height: 3rem; padding: 0.55rem 1.1rem; border: 2px solid var(--ink); border-radius: 0.9rem; background: #fff; color: var(--ink); cursor: pointer; }
.nav-btn:hover { background: #f1f6ee; }
.nav-arrow { font-size: 1.3rem; line-height: 0.8; margin-top: -0.12em; }
.card-nav { position: sticky; bottom: 0; z-index: 3; margin-top: auto; padding: 0.7rem 0 calc(0.75rem + env(safe-area-inset-bottom)); background: var(--card, #fffdf8); border-top: 1px solid var(--line, #d9d3c4); }
.card-nav-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.card-nav-left { display: flex; gap: 0.5rem; flex: none; }
.card-nav .button.vbig, .card-nav .button { width: auto; flex: 0 1 15rem; min-width: 7.5rem; margin-left: auto; border-radius: 0.9rem; }
.card-nav .nav-finish { margin-left: auto; }
.card-nav .button:disabled, .card-nav .button[disabled] { opacity: 0.5; cursor: not-allowed; }
.card-nav-hint { margin: 0 0 0.45rem; font-size: 0.95rem; color: var(--ink-2); text-align: right; }
.reflect-submit .card-nav-hint { margin: 0.45rem 0 0; }
.setup-nav { margin-top: auto; }
/* The card is a column, so the row sits at its foot when the card is short and stays in view when it is long. */
.world-body .wc-page .world-card { display: flex; flex-direction: column; padding-bottom: 0; }
.world-body .wc-page .world-card > * { flex: none; }
.world-body .wc-page .world-card > .card-nav { margin-top: auto; }
.world-body .wc-page .world-card::after { content: ""; flex: none; height: 0; }
.world-ui > .world-panel { display: flex; flex-direction: column; padding-bottom: 0; }
.world-ui > .world-panel > .setup { flex: 1 0 auto; display: flex; flex-direction: column; }
.world-ui > .world-panel > .setup > * { flex: none; }
.world-ui > .world-panel > .setup > form { display: flex; flex-direction: column; flex: 1 0 auto; }
.world-ui > .world-panel > .setup > .card-nav, .world-ui > .world-panel > .setup > form > .card-nav { margin-top: auto; }
.card-nav { margin-top: 1.1rem; }
.world-body .wc-page .world-card > .card-nav, .world-ui > .world-panel > .setup > .card-nav, .world-ui > .world-panel > .setup > form > .card-nav { margin-top: auto; }
.world-body .wc-page .world-card > .q-page, .world-body .wc-page .world-card > :nth-last-child(2) { margin-bottom: 1.1rem; }
.world-ui > .world-panel > .setup > :nth-last-child(2) { margin-bottom: 1.1rem; }
/* Two actions inside a card: the "not now" kind on the left, the main one on the right. */
.card-acts { display: flex; flex-wrap: nowrap; align-items: stretch; justify-content: space-between; gap: 0.6rem; }
.world-body .vactions.card-acts { display: flex; }
.card-acts > .button, .card-acts > .button.vbig { width: auto; flex: 1 1 auto; min-width: 0; border-radius: 0.9rem; }
.card-acts > .nav-btn { flex: none; }
@media (max-width: 21rem) { .card-acts { flex-wrap: wrap; } }
.card-acts-main { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-left: auto; }
/* Sheets: Close is a word as well as a cross, and Back sits bottom left as on every other card. */
.world-body .sheet-x { width: auto; height: auto; min-height: 2.75rem; padding: 0.3rem 0.85rem; border-radius: 0.9rem; border: 2px solid var(--ink); display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.5rem; line-height: 1; background: #fff; }
.sheet-x-word { font-size: 1rem; font-weight: 700; }
.world-body dialog.sheet[open] { display: flex; flex-direction: column; padding-bottom: 0; }
.world-body dialog.sheet[open] > * { flex: none; }
.world-body dialog.sheet[open] > .sheet-nav { margin-top: auto; background: var(--paper, #fbf8f1); }
.world-body dialog.sheet[open] > :nth-last-child(2) { margin-bottom: 1.2rem; }
@media (min-width: 60rem) { .world-body dialog.sheet[open] > .sheet-nav { background: var(--card); } }
/* ---- 4. Reflect: one survey, one Submit. ---- */
.reflect-form { display: block; margin: 0; }
.reflect-form > .note { margin-top: 0.3rem; }
.reflect-submit { margin-top: 1.3rem; }
.reflect-submit .button.vbig:disabled { opacity: 0.5; cursor: not-allowed; }
.reflect-submit .card-nav-hint { text-align: left; }
.reflect-err { margin: 1rem 0 0; padding: 0.6rem 0.85rem; border-left: 4px solid #b4451b; border-radius: 0 0.5rem 0.5rem 0; background: #fff3e6; font-weight: 700; color: #6e2409; }
.reflect-saved { margin-top: 1.1rem; outline-offset: 6px; }
/* ---- 5. The dish: what goes in, with amounts; the recipe one tap away. ---- */
.world-body .vkicker { font-size: 0.85rem; color: var(--ink); }
.vfacts { margin: 0; font-size: 1rem; color: var(--ink-2); }
.vdesc { margin: 0.8rem 0 0; font-size: 1.05rem; line-height: 1.4; }
.ving-h { margin: 1rem 0 0.35rem; font-family: var(--serif); font-size: 1.1rem; }
.ving-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line, #d9d3c4); }
.ving-list li { display: grid; grid-template-columns: 5.2rem 1fr; gap: 0.6rem; align-items: baseline; padding: 0.4rem 0; border-bottom: 1px solid var(--line, #d9d3c4); font-size: 1rem; line-height: 1.35; }
.ving-amt { font-weight: 700; white-space: nowrap; }
.ving-prep { color: var(--ink-2); }
.recipe-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.world-body .recipe-row .button.quiet { flex: 1 1 11rem; min-height: 3rem; padding: 0.55rem 1rem; text-decoration: none; border: 2px solid var(--ink); border-radius: 0.9rem; background: #fff; color: var(--ink); font-size: 1rem; margin: 0; gap: 0.4rem; }
.world-body .recipe-row .button.quiet:hover { background: #f1f6ee; }
.recipe-row .vi { width: 1.1rem; height: 1.1rem; }
.recipe-steps { margin-top: 0.7rem; padding: 0.8rem 1rem; border-radius: 0.9rem; background: #f6f3ea; }
.recipe-steps h4 { margin: 0 0 0.4rem; font-family: var(--serif); font-size: 1.1rem; }
.recipe-steps ol, .vside-steps { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.55rem; font-size: 1.05rem; line-height: 1.45; }
.vside-box { margin: 0.8rem 0 0; border: 1.5px solid var(--edge, #8a8572); border-radius: 0.9rem; background: var(--card); }
.vside-box summary { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.6rem; min-height: 3rem; padding: 0.5rem 0.85rem; cursor: pointer; }
.vside-box summary::-webkit-details-marker { display: none; }
.vside-with { font-size: 0.85rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.vside-open { margin-left: auto; font-size: 0.95rem; font-weight: 700; text-decoration: underline; }
.vside-box[open] .vside-open { display: none; }
.vside-box > .ving-list, .vside-box > .vside-steps { margin: 0 0.85rem 0.85rem; }
.vside-box > .vside-steps { padding-left: 2.1rem; margin-top: 0.7rem; }
.world-body .vcard-food .vactions { margin-top: 1rem; }
.vdone-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-top: 0.9rem; }
.vdone-row .vdone { margin: 0; flex: 1 1 12rem; }
.vcard-empty h3 { margin: 0.2rem 0 0; }
/* Small labels a little larger everywhere in the world: easier at arm's length. */
.world-body .wc-step, .world-body .wc-count { font-size: 0.9rem; }
.world-body .vicon { font-size: 0.95rem; }
.world-body .choose-goal-edit { margin-left: 0.4rem; text-decoration: none; }
@media (max-width: 26rem) { .card-nav .button.vbig, .card-nav .button { min-width: 6.5rem; } .nav-btn { padding-inline: 0.85rem; } .ving-list li { grid-template-columns: 4.6rem 1fr; } }
@media (prefers-reduced-motion: no-preference) { .world-body .wc-opt, .world-body .vtile { transition: translate 0.08s, background-color 0.12s; } }
.card-nav.setup-nav { display: block; }
.world-body .setup h1:focus, .world-body .setup h1:focus-visible { outline: none; }
/* The row of tabs stays in view while a sheet scrolls, so it must hide what passes under it. */
.world-body dialog.sheet .ws-tabs { background: #ecebe3; box-shadow: 0 0 0 0.5rem var(--paper, #fbf8f1), 0 0.9rem 0.5rem -0.3rem var(--paper, #fbf8f1); }
@media (min-width: 60rem) { .world-body dialog.sheet .ws-tabs { background: #eeede6; box-shadow: 0 0 0 0.5rem var(--card, #fffdf8), 0 0.9rem 0.5rem -0.3rem var(--card, #fffdf8); } }
.recipe-steps .vcook { margin-top: 0.9rem; }
.recipe-steps .vcook .vi { width: 1.1rem; height: 1.1rem; }
/* The step player and Discover use the same places for Back and the main action. */
.world-body .player-x, .player-x { width: auto; height: auto; min-height: 2.75rem; padding: 0.3rem 0.8rem; border-radius: 0.9rem; display: inline-flex; align-items: center; gap: 0.35rem; }
.player-x .vi { width: 1.1rem; height: 1.1rem; }
.player-nav { justify-content: space-between; }
.player-nav .vbig { flex: 0 1 15rem; margin-left: auto; }
.discover .plan-item { border: 0; padding: 0; background: none; }

/* ---- 6. Found by the simulated study (docs/REDESIGN_PROGRESS.md, VERSION 12): targets under 44 px, labels under
   16 px, controls that did not look tappable, and one label that could not be read at all. ---- */
.world-body .v-chip { min-height: 2.75rem; font-size: 1rem; }
.world-body .v-chip.is-ask, .world-body .v-chip.is-ask:not([aria-pressed="true"]) { background: #9c3418; border-color: #9c3418; color: #fff; }
.world-body .world-menu { min-height: 2.875rem; min-width: 2.875rem; }
.world-body .world-top-nav a { font-size: 1rem; }
.world-body .tabbar .tab { font-size: 1rem; border: 1.5px solid var(--edge, #8a8572); border-radius: 0.95rem; background: #fff; }
.world-body .view-b { font-size: 1rem; }
.world-body .view-b:not([aria-pressed="true"]) { border: 1.5px solid var(--edge, #8a8572); background: var(--card, #fffdf8); }
.world-body .home-fold { font-size: 1rem; border: 1.5px solid var(--edge, #8a8572); background: var(--card, #fffdf8); }
.world-body .bal-quiet { font-size: 1rem; min-height: 2.75rem; }
.world-body .dock-card { border: 1.5px solid var(--line, #d9d3c4); }
.world-body .ring-k { border: 1.5px solid var(--line, #d9d3c4); border-radius: 0.8rem; }
.world-body dialog.sheet details:not(.vwhy):not(.vside-box) > summary { padding-block: 0.65rem; }
.world-body .dock-time, .world-body .dock-count, .world-body .home-next p, .world-body .ws-more span, .world-body .choose-kind, .world-body .choose-min, .world-body .choose-why { font-size: 0.95rem; }
.world-body .world-top-nav a { min-width: 2.75rem; text-align: center; }


/* =====================================================================================================
   VERSION 13 (Nov 16, 2026, afternoon)
   1. The balance bars. One fixed scale, 0 to 100%, with the number on the bar. A full bar can only mean 100%.
      Today's shift left the bar (it is not a share) and became two marks beside it.
   ===================================================================================================== */
.cmp-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
.cmp-track { position: relative; display: flex; align-items: center; height: 1.6rem; border-radius: 0.45rem; overflow: hidden;
  border: 1px solid #b9b1a3;
  background: linear-gradient(90deg, transparent calc(25% - 1px), #cfc8bb calc(25% - 1px) 25%, transparent 25% calc(50% - 1px), #a39a8b calc(50% - 1px) 50%, transparent 50% calc(75% - 1px), #cfc8bb calc(75% - 1px) 75%, transparent 75%), #f6f3ed; }
.cmp-base { flex: none; min-width: 0; border-radius: 0; }
.cmp-num { flex: none; margin-left: 0.4rem; font-size: 0.95rem; font-weight: 800; color: var(--ink); line-height: 1; background: #f6f3ed; padding: 0.1rem 0.15rem; border-radius: 0.2rem; }
.cmp-track.is-long .cmp-num { position: absolute; left: 0.45rem; margin: 0; background: transparent; }
.cmp-today { display: inline-flex; align-items: center; justify-content: flex-end; gap: 0.45rem; }
.cmp-gauge { display: inline-flex; gap: 0.2rem; flex: none; }
.cmp-gauge i { display: block; width: 0.75rem; height: 0.75rem; border-radius: 0.2rem; border: 2px solid #8a7f70; background: transparent; }
.cmp-gauge i.is-on { background: #8a3b14; border-color: #8a3b14; }
.cmp-word { font-size: 0.95rem; }
.cmp-scale { margin-top: -0.55rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 0.6rem; }
.cmp-scale > span:not(.cmp-ticks) { display: none; }
.cmp-ticks { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--ink-2); }
.cmp-ticks i { font-style: normal; }
.cmp-heads { display: none; margin: 0.8rem 0 -0.4rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); }
.cmp-key li { align-items: flex-start; }
.cmp-key li > i, .cmp-key-gauge { margin-top: 0.3rem; }
.cmp-key-base { background: #d9d3c7; box-shadow: inset 0 0 0 2px #5a4b3b; border-radius: 0.2rem; }
.cmp-key .cmp-key-gauge i { width: 0.7rem; height: 0.7rem; border-radius: 0.2rem; }
.cmp-key .cmp-key-gauge i:not(.is-on) { background: transparent; }
@container (min-width: 34rem) {
  .cmp-row { grid-template-columns: 12.5rem minmax(0, 1fr) 10.5rem; }
  .cmp-name { grid-column: 1; grid-row: 1; } .cmp-track { grid-column: 2; grid-row: 1; } .cmp-today { grid-column: 3; grid-row: 1; }
  .cmp-scale { grid-template-columns: 12.5rem minmax(0, 1fr) 10.5rem; } .cmp-ticks { grid-column: 2; }
  .cmp-heads { display: grid; grid-template-columns: 12.5rem minmax(0, 1fr) 10.5rem; gap: 0 0.6rem; }
  .cmp-heads span:first-child { grid-column: 2; } .cmp-heads span:last-child { grid-column: 3; text-align: right; }
}
@container (min-width: 30rem) and (max-width: 33.99rem) {
  .cmp-row { grid-template-columns: minmax(0, 1fr) auto; }
  .cmp-name { grid-column: 1; grid-row: 1; } .cmp-today { grid-column: 2; grid-row: 1; } .cmp-track { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- VERSION 13, 2. The how-to tour (tour.js). A card that sits over the real screen, and a ring round the
   part it is talking about. In a sheet the card sticks to the foot of the sheet (the sheet's own Back row is
   put away for the length of the tour, so there is one row of buttons, in the usual place). */
.howto { position: fixed; z-index: 60; left: 50%; translate: -50% 0; bottom: calc(0.75rem + env(safe-area-inset-bottom)); width: min(100% - 1.5rem, 30rem);
  background: #fffdf8; color: var(--ink); border: 3px solid var(--ink); border-radius: 1.1rem; padding: 0.85rem 1rem 0.8rem; box-shadow: 0 10px 30px rgb(0 0 0 / 0.35); text-align: left; }
.howto.is-top { bottom: auto; top: calc(0.75rem + env(safe-area-inset-top)); }
.howto.in-sheet { position: sticky; left: auto; translate: none; bottom: 0; top: auto; width: auto; margin: 1rem 0 0; box-shadow: 0 -8px 24px rgb(0 0 0 / 0.18); }
.howto-count { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.howto h2 { margin: 0.15rem 0 0.3rem; padding: 0; border: 0; font-size: 1.35rem; line-height: 1.2; outline: none; }
.howto-text { margin: 0.3rem 0 0; font-size: 1.02rem; line-height: 1.45; }
.howto-try { margin: 0.55rem 0 0; padding: 0.5rem 0.7rem; border-radius: 0.6rem; background: #fff3d1; border: 2px dashed #b9860b; font-weight: 700; }
.howto-try.is-done { background: #e3f1e8; border: 2px solid #2e6b4f; }
.howto .card-nav.howto-nav { position: static; margin-top: 0.7rem; padding: 0; background: none; border: 0; box-shadow: none; }
.howto .howto-next { min-width: 6.5rem; margin: 0; }
.howto.is-nudged { animation: howto-nudge 0.35s ease-out; }
@keyframes howto-nudge { 30% { scale: 1.025; } 100% { scale: 1; } }
.howto-spot { outline: 4px solid #e4a11b !important; outline-offset: 4px; border-radius: 0.9rem; box-shadow: 0 0 0 9px rgb(228 161 27 / 0.28); position: relative; z-index: 2; scroll-margin: 6rem; }
.home-tree.howto-spot { position: absolute; }
.sheet.is-touring > .sheet-nav { display: none; }
.is-howto .world-ui .tabbar, .is-howto .world-ui .home, .is-howto .world-ui .world-top { transition: none; }
/* While the tour talks about the home screen, the card and the list are shown even if the person had folded them away. */
@media (prefers-reduced-motion: reduce) { .howto.is-nudged { animation: none; } }

.howto-offer { margin: 0 0 0.7rem; padding: 0.65rem 0.8rem; border-radius: 0.9rem; background: #fff7e2; border: 2px solid #e4a11b; }
.howto-offer p { margin: 0 0 0.5rem; font-size: 1rem; }
.howto-offer-acts { display: flex; gap: 0.6rem; justify-content: space-between; align-items: center; }
.howto-offer .button, .menu-tour .button, .ask-tour .button { margin: 0; min-height: 3rem; }
.simple ~ .howto-offer, .world-ui.is-simple .howto-offer { max-width: 34rem; margin: 0.6rem auto; }
.menu-tour, .ask-tour { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin: 0 0 1rem; padding: 0.75rem 0.9rem; border-radius: 0.9rem; background: #eef4ee; border: 2px solid #2e6b4f; }
.menu-tour p, .ask-tour p { margin: 0; flex: 1 1 14rem; }

/* ---- VERSION 13, 3. Ask: plan questions, app questions, and every help topic. */
.ask-lead { margin: 0 0 0.7rem; font-size: 1.05rem; }
.ask-h3 { margin: 1.2rem 0 0.4rem; font-size: 1.05rem; }
.ask-go { margin: 0.5rem 0 0.2rem; min-height: 3rem; }
.ask-more { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; margin-top: 0.6rem; }
.ask-more-k { font-size: 0.9rem; font-weight: 700; color: var(--ink-2); }
.ask-more .v-chip { text-align: left; white-space: normal; height: auto; }
.ask-all { margin-top: 0.9rem; }
.ask-group { margin: 0.9rem 0 0.3rem; font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); }
.ask-topics { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.ask-topic { display: block; width: 100%; min-height: 3rem; padding: 0.55rem 0.8rem; text-align: left; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid #b9b1a3; border-radius: 0.7rem; cursor: pointer; }
.ask-topic:hover { border-color: var(--ink); }
.ask-topic::after { content: " ›" / ""; color: var(--ink-2); }
.sheet .howto-spot { z-index: auto; }
@media (min-width: 60rem) { .howto:not(.in-sheet) { left: auto; right: 1.5rem; translate: none; bottom: 1.5rem; width: 26rem; } .howto.is-top:not(.in-sheet) { top: 5rem; right: auto; left: 1.5rem; bottom: auto; } }

/* =====================================================================================================
   VERSION 14 (Nov 19, 2026)
   1. Small things and Habits are one thing. Every small thing has the same card: Done (or Done today + Undo),
      how to do it, then Change / Make it smaller / Remove. A meal on the day has the same card in Habits.
   ===================================================================================================== */
.things-h, .things-add h3 { margin: 0.2rem 0 0.3rem; font-size: 1.25rem; }
.things-list { display: grid; gap: 1rem; margin: 0.8rem 0 1.2rem; }
.things-list .vcard { margin: 0; scroll-margin-top: 6rem; }
.vcard.is-mine { border-color: #2e6b4f; }
.vcard.is-shown { outline: 3px solid #e4a11b; outline-offset: 3px; }
.vcard:focus { outline: 3px solid #e4a11b; outline-offset: 3px; }
.vcard.is-done { background: #f6fbf7; }
.thing-done .vi, .vdone .vi { flex: none; }
.vdone-note { flex: 1 1 100%; margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.world-body .vminor { grid-template-columns: repeat(auto-fit, minmax(6.2rem, 1fr)); margin-top: 0.9rem; padding-top: 0.9rem; border-top: 1px solid var(--rule, #ddd6c8); }
.world-body .vicon { min-height: 3.4rem; font-size: 0.95rem; border: 2px solid #b9b1a3; background: #fff; border-radius: 0.8rem; cursor: pointer; }
.world-body .vicon.is-sure { background: #8a2f17; border-color: #8a2f17; color: #fff; }
.thing-warn { margin: 0.6rem 0 0; padding: 0.6rem 0.8rem; border-radius: 0.7rem; background: #fff3d1; border: 2px solid #b9860b; font-size: 0.98rem; }
.how-steps ol { margin: 0.4rem 0 0.8rem; padding-left: 1.3rem; display: grid; gap: 0.45rem; }
.things-add { margin: 0 0 1.2rem; padding: 0.9rem 1rem 1rem; border-radius: 1rem; background: #eef4ee; border: 2px solid #2e6b4f; }
.things-add p { margin: 0 0 0.7rem; }
.things-add .button { margin: 0; min-height: 3rem; }
.things-add:focus { outline: 3px solid #e4a11b; outline-offset: 3px; }
/* On a dish: how this meal is tied to the day. */
.vday { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0.9rem 0 0; padding: 0.65rem 0.8rem; border-radius: 0.8rem; background: #f4f1ea; border: 1px solid #cfc8bb; font-size: 0.98rem; }
.vday > span { flex: 1 1 14rem; }
.vday.is-on { background: #e8f2ea; border-color: #2e6b4f; }
.vday .vi { width: 1.2rem; height: 1.2rem; flex: none; }
.vday .nav-btn { flex: none; }
.choose-act { justify-self: start; margin-top: 0.5rem; padding: 0.4rem 0.9rem; border-radius: 99px; background: var(--ink); color: #fff; font-weight: 700; font-size: 0.95rem; }

/* ---- 2. The site's home page on a phone: the picture's frame forced the whole column wider than the screen,
   so the text ran off the right edge. Nothing may be wider than the screen. */
.hero-frame .hero-tree { aspect-ratio: auto; min-height: 0; min-width: 0; max-width: 100%; }
.hero-text, .hero-world, .hero-frame { min-width: 0; max-width: 100%; }
.world-body .vicon { font-size: 1rem; }
.day-acts { margin: 0.2rem 0 1rem; }
.vcard.is-shown:focus { outline-offset: 3px; }
.world-body .ws-tabs { top: var(--head-h, 4.6rem); }

/* ---- VERSION 14, 3. Several small things on a phone. The card showed only the first; the rest were below the
   fold of a short panel. With more than one, the list comes first and the card's heading is one line, so two
   are in view and the edge of the third shows there is more. The growth bar moves below the list. */
@media (max-width: 59.99rem) {
  .world-body .home.has-many:not(.is-folded):not(.is-grew) { display: flex; flex-direction: column; }
  .world-body .home.has-many > * { flex: none; }
  .world-body .home.has-many > .home-next { order: 3; margin-top: 0.8rem; }
  .world-body .home.has-many > .dock { order: 2; }
  .world-body .home.has-many > p:last-child { order: 4; }
  .world-body .home.has-many .dock-head h2 { font-size: 1.2rem; padding-bottom: 0.3rem; white-space: nowrap; }
  .world-body .home.has-many .dock-head .dock-row { flex-wrap: nowrap; }
  .world-body .home.has-many .dock-head .dock-row button { min-height: 2.75rem; padding: 0.3rem 0.8rem; }
  .world-body .home.has-many .home-leaf { margin-bottom: 0.4rem; }
}
