:root{
  color-scheme:light;
  --paper:#fbf7f1;
  --paper-deep:#f5eee6;
  --surface:#fffdf9;
  --surface-soft:#f8f1ef;
  --ink:#3e3437;
  --muted:#6c5f62;
  --plum:#7b5968;
  --plum-deep:#654653;
  --rose:#c98b98;
  --rose-soft:#f0dde1;
  --sage:#7f9077;
  --sage-deep:#55634e;
  --sage-soft:#e7ece3;
  --gold:#b59b62;
  --line:#eadfda;
  --ok:#4f735e;
  --warn:#7b623c;
  --shadow:0 16px 42px rgba(73,51,57,.10);
  --shadow-soft:0 7px 24px rgba(73,51,57,.065);
  --radius-xl:30px;
  --radius:22px;
  --radius-sm:16px;
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{
  min-height:100%;
  background:var(--paper);
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}
body{
  margin:0;
  min-height:100%;
  color:var(--ink);
  font-family:ui-serif,"New York","Iowan Old Style","Palatino Linotype","Book Antiqua",Palatino,Georgia,serif;
  background:
    radial-gradient(circle at 8% 4%,rgba(201,139,152,.12),transparent 24rem),
    radial-gradient(circle at 94% 18%,rgba(127,144,119,.10),transparent 22rem),
    linear-gradient(180deg,#fdfaf5 0%,var(--paper) 52%,#faf5ef 100%);
  padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.36;
  background-image:
    radial-gradient(circle at 20px 20px,rgba(123,89,104,.035) 0 1px,transparent 1.2px);
  background-size:34px 34px;
  z-index:-1;
}
button{font:inherit;cursor:pointer}
button:focus-visible,summary:focus-visible{
  outline:3px solid rgba(181,155,98,.55);
  outline-offset:3px;
}
#app{
  max-width:720px;
  margin:0 auto;
  min-height:100vh;
  padding:18px 16px 42px;
}
.splash{
  min-height:76vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}
.splash-icon{
  width:96px;
  height:96px;
  border-radius:28px;
  box-shadow:0 18px 42px rgba(91,61,71,.16);
  margin-bottom:18px;
}
.splash h1{
  font-size:36px;
  line-height:1.08;
  margin:0 0 10px;
  letter-spacing:-.025em;
  font-weight:760;
}
.splash p{margin:0;color:var(--muted);font-size:18px;line-height:1.42}

.topbar{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:18px;
  min-height:54px;
}
.back{
  width:48px;
  height:48px;
  flex:0 0 auto;
  border:1px solid rgba(123,89,104,.10);
  border-radius:17px;
  background:rgba(255,253,249,.92);
  box-shadow:var(--shadow-soft);
  font-size:30px;
  line-height:1;
  color:var(--plum);
}
.back:active{transform:scale(.97);background:var(--rose-soft)}
.top-title{flex:1;min-width:0}
.top-title h1{
  font-size:30px;
  line-height:1.12;
  margin:0;
  letter-spacing:-.02em;
  font-weight:680;
}
.top-title p{
  font-size:17px;
  color:var(--muted);
  margin:5px 0 0;
  line-height:1.34;
}

.hero{
  min-height:218px;
  border:1px solid rgba(123,89,104,.10);
  border-radius:32px;
  padding:25px 23px 22px;
  background:
    radial-gradient(circle at 84% 16%,rgba(255,255,255,.72),transparent 34%),
    linear-gradient(145deg,#f6e8e7 0%,#f1e3df 48%,#e9ede4 100%);
  box-shadow:0 18px 46px rgba(91,61,71,.11);
  margin-bottom:24px;
  position:relative;
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute;
  width:170px;
  height:170px;
  right:-78px;
  bottom:-86px;
  border-radius:50%;
  border:1px solid rgba(123,89,104,.10);
  box-shadow:0 0 0 22px rgba(255,255,255,.18),0 0 0 44px rgba(255,255,255,.10);
}
.hero-copy{
  position:relative;
  z-index:2;
  max-width:64%;
}
.eyebrow{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  padding:5px 10px;
  border-radius:99px;
  background:rgba(255,253,249,.68);
  color:var(--sage-deep);
  font-size:15px;
  font-weight:680;
  letter-spacing:.01em;
  margin-bottom:12px;
}
.hero h1{
  font-family:ui-serif,Georgia,"Times New Roman",serif;
  font-size:40px;
  line-height:1.02;
  font-weight:650;
  color:var(--plum-deep);
  margin:0 0 10px;
  letter-spacing:-.025em;
}
.hero p{
  color:#66575b;
  font-size:19px;
  line-height:1.46;
  margin:0;
}
.hero-art{
  position:absolute;
  z-index:1;
  width:46%;
  right:-2%;
  top:3px;
  bottom:0;
  display:flex;
  align-items:center;
  justify-content:center;
  pointer-events:none;
}
.botanical-svg{width:100%;height:auto;overflow:visible}
.hero-actions{
  position:relative;
  z-index:3;
  margin-top:20px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.hero-btn{
  min-height:46px;
  padding:0 16px;
  border:1px solid rgba(123,89,104,.15);
  background:rgba(255,253,249,.78);
  color:var(--plum-deep);
  border-radius:15px;
  font-weight:680;
  font-size:18px;
  box-shadow:0 4px 14px rgba(86,60,67,.05);
}
.hero-btn:active{background:#fffaf6;transform:scale(.985)}

.section-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-size:21px;
  font-weight:680;
  color:var(--plum-deep);
  margin:25px 4px 11px;
}
.section-title:before{
  content:"";
  width:23px;
  height:1px;
  background:linear-gradient(90deg,var(--rose),var(--sage));
  border-radius:99px;
}
.cards{display:grid;gap:12px}
.card{
  width:100%;
  min-height:88px;
  border:1px solid var(--line);
  background:rgba(255,253,249,.94);
  border-radius:24px;
  padding:16px;
  display:flex;
  align-items:center;
  gap:14px;
  text-align:left;
  box-shadow:var(--shadow-soft);
  color:var(--ink);
  transition:transform .14s ease,box-shadow .14s ease,border-color .14s ease;
}
.card:active{transform:scale(.988);box-shadow:0 3px 13px rgba(73,51,57,.06)}
.card-completed{border-color:rgba(127,144,119,.34)}
.card-active,.card-paused{border-color:rgba(201,139,152,.38)}
.card-emoji{
  width:51px;
  height:51px;
  border-radius:17px;
  background:
    radial-gradient(circle at 30% 25%,rgba(255,255,255,.92),transparent 38%),
    linear-gradient(145deg,var(--rose-soft),var(--sage-soft));
  border:1px solid rgba(123,89,104,.09);
  display:grid;
  place-items:center;
  font-size:28px;
  flex:0 0 auto;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.8);
}
.card-main{min-width:0;flex:1}
.card-title{
  display:block;
  font-size:21px;
  font-weight:680;
  line-height:1.22;
  margin-bottom:4px;
  color:var(--ink);
}
.card-sub{
  display:block;
  font-size:17px;
  color:var(--muted);
  line-height:1.34;
}
.card-status{
  display:inline-flex;
  align-items:center;
  min-height:25px;
  padding:4px 9px;
  border-radius:99px;
  font-size:15px;
  font-weight:680;
  color:var(--plum-deep);
  background:var(--rose-soft);
  margin-top:9px;
}
.card-completed .card-status{color:var(--sage-deep);background:var(--sage-soft)}
.card-not_started .card-status{color:#75645d;background:#f2ebe6}
.mini-progress{
  display:block;
  height:5px;
  background:#eee5e0;
  border-radius:99px;
  overflow:hidden;
  margin-top:9px;
}
.mini-progress>i{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--plum),var(--rose));
  border-radius:99px;
}
.chev{font-size:26px;color:#a48f95;flex:0 0 auto}

.intro{
  position:relative;
  overflow:hidden;
  background:rgba(255,253,249,.96);
  border:1px solid var(--line);
  border-radius:30px;
  padding:27px 23px 24px;
  box-shadow:var(--shadow);
}
.intro:after{
  content:"";
  position:absolute;
  width:150px;
  height:150px;
  right:-60px;
  top:-70px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(201,139,152,.14),transparent 68%);
  pointer-events:none;
}
.intro-ornament{
  width:118px;
  margin:-2px 0 5px auto;
  opacity:.88;
}
.intro-emoji{
  width:54px;
  height:54px;
  border-radius:18px;
  display:grid;
  place-items:center;
  font-size:30px;
  background:linear-gradient(145deg,var(--rose-soft),var(--sage-soft));
  margin-bottom:14px;
}
.intro h2{
  font-family:ui-serif,Georgia,"Times New Roman",serif;
  font-size:34px;
  font-weight:650;
  margin:0 0 10px;
  line-height:1.08;
  color:var(--plum-deep);
}
.intro p{color:var(--muted);line-height:1.5;margin:0 0 24px;font-size:18px}

.primary,.secondary,.danger{
  width:100%;
  min-height:58px;
  border-radius:18px;
  font-weight:730;
  padding:13px 18px;
  font-size:19px;
}
.primary{
  border:1px solid var(--plum);
  background:linear-gradient(180deg,#846171,var(--plum));
  color:#fff;
  box-shadow:0 9px 22px rgba(123,89,104,.20);
}
.primary:active{transform:scale(.989);background:var(--plum-deep)}
.secondary{
  border:1px solid rgba(123,89,104,.12);
  background:var(--surface-soft);
  color:var(--plum-deep);
}
.secondary:active{transform:scale(.989);background:var(--rose-soft)}
.danger{border:0;background:#f7e7e8;color:#8d4856}
.primary:disabled,.secondary:disabled{opacity:.55}

.question-wrap{padding-bottom:20px}
.progress-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:7px 2px 9px;
  color:var(--muted);
  font-size:16px;
  font-weight:680;
}
.progress{
  height:7px;
  background:#ece4df;
  border-radius:99px;
  overflow:hidden;
  margin-bottom:20px;
}
.progress>i{
  display:block;
  height:100%;
  background:linear-gradient(90deg,var(--plum),var(--rose),var(--sage));
  border-radius:99px;
  transition:width .22s ease;
}
.question-card{
  position:relative;
  overflow:hidden;
  background:rgba(255,253,249,.98);
  border:1px solid var(--line);
  border-radius:28px;
  padding:24px 21px 22px;
  margin-bottom:14px;
  box-shadow:var(--shadow);
}
.question-card:before{
  content:"";
  position:absolute;
  width:80px;
  height:80px;
  right:-33px;
  top:-35px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(127,144,119,.14),transparent 70%);
}
.dimension{
  display:inline-flex;
  align-items:center;
  min-height:29px;
  padding:5px 10px;
  border-radius:99px;
  background:var(--sage-soft);
  color:var(--sage-deep);
  font-size:15px;
  font-weight:680;
  margin-bottom:14px;
}
.question{
  font-size:26px;
  line-height:1.38;
  font-weight:650;
  letter-spacing:-.012em;
  margin:0 0 13px;
}
.prompt{font-size:18px;color:var(--muted);line-height:1.45;margin:0}
.answers{display:grid;gap:10px}
.answer{
  width:100%;
  min-height:60px;
  border:1px solid #dfd4cf;
  background:rgba(255,253,249,.96);
  border-radius:19px;
  padding:14px 17px;
  color:var(--ink);
  font-size:19px;
  line-height:1.32;
  font-weight:650;
  text-align:center;
  box-shadow:0 4px 15px rgba(73,51,57,.045);
  transition:transform .12s ease,border-color .12s ease,background .12s ease;
}
.answer:active{transform:scale(.988);border-color:var(--rose)}
.answer.selected{background:var(--plum);border-color:var(--plum);color:#fff}
.answer.secondary-answer{
  background:#f5f0ec;
  color:#675b5d;
  border-color:#e5dcd6;
  font-weight:620;
  box-shadow:none;
}
.answer:disabled{opacity:.62}
.tools{display:grid;gap:7px;margin-top:13px}
.tool{
  width:100%;
  min-height:50px;
  border:0;
  border-radius:16px;
  background:transparent;
  color:var(--plum);
  font-size:18px;
  font-weight:680;
}
.tool:active{background:rgba(201,139,152,.10)}
.save-state{text-align:center;min-height:24px;color:var(--muted);font-size:16px;margin:8px 0 0}

.result-cover{
  position:relative;
  overflow:hidden;
  min-height:155px;
  border:1px solid rgba(127,144,119,.20);
  border-radius:28px;
  padding:22px 22px 20px;
  margin-bottom:14px;
  background:linear-gradient(145deg,#f5ece8 0%,#f1ede4 52%,#e8eee5 100%);
  box-shadow:var(--shadow-soft);
}
.result-cover-copy{position:relative;z-index:2;max-width:68%}
.result-kicker{
  display:block;
  color:var(--sage-deep);
  font-size:15px;
  font-weight:680;
  letter-spacing:.01em;
  margin-bottom:7px;
}
.result-cover h2{
  font-family:ui-serif,Georgia,"Times New Roman",serif;
  font-size:30px;
  font-weight:650;
  line-height:1.12;
  color:var(--plum-deep);
  margin:0 0 7px;
}
.result-cover p{margin:0;color:var(--muted);font-size:17px;line-height:1.45}
.result-cover-art{
  position:absolute;
  right:-8px;
  top:5px;
  width:36%;
  pointer-events:none;
  opacity:.94;
}
.result-note{
  background:rgba(231,236,227,.72);
  border:1px solid rgba(127,144,119,.18);
  border-radius:18px;
  padding:14px 16px;
  color:#586251;
  line-height:1.5;
  font-size:17px;
  margin-bottom:14px;
}
.result-section{
  border:1px solid var(--line);
  border-radius:21px;
  background:rgba(255,253,249,.96);
  margin:10px 0;
  overflow:hidden;
  box-shadow:var(--shadow-soft);
}
.result-section summary{
  list-style:none;
  padding:17px 18px;
  font-weight:680;
  font-size:20px;
  cursor:pointer;
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--ink);
}
.result-section summary::-webkit-details-marker{display:none}
.result-section summary:before{
  content:"✦";
  color:var(--rose);
  font-size:16px;
  flex:0 0 auto;
}
.result-section summary:after{
  content:"⌄";
  color:var(--plum);
  font-size:24px;
  line-height:1;
  margin-left:auto;
  transition:transform .15s ease;
}
.result-section[open] summary:after{transform:rotate(180deg)}
.result-section[open]{border-color:rgba(201,139,152,.32)}
.result-text{
  padding:0 18px 19px 42px;
  white-space:pre-wrap;
  line-height:1.58;
  font-size:18px;
  color:#4b4043;
}
.result-actions{display:grid;gap:9px;margin-top:18px}

.locked{min-height:76vh;display:flex;align-items:center;justify-content:center}
.locked-card{
  width:100%;
  background:rgba(255,253,249,.97);
  border:1px solid var(--line);
  border-radius:30px;
  padding:30px 23px;
  text-align:center;
  box-shadow:var(--shadow);
}
.locked-card img{width:92px;height:92px;border-radius:27px;margin-bottom:16px;box-shadow:var(--shadow-soft)}
.locked-card h1{
  font-family:ui-serif,Georgia,"Times New Roman",serif;
  font-size:34px;
  color:var(--plum-deep);
  margin:0 0 10px;
}
.locked-card p{color:var(--muted);line-height:1.5;margin:0;font-size:18px}

.install-sheet{
  position:fixed;
  inset:0;
  background:rgba(52,42,45,.34);
  -webkit-backdrop-filter:blur(6px);
  backdrop-filter:blur(6px);
  display:flex;
  align-items:flex-end;
  justify-content:center;
  padding:16px;
  padding-bottom:calc(16px + env(safe-area-inset-bottom));
  z-index:20;
}
.sheet{
  width:min(680px,100%);
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:30px;
  padding:24px 22px;
  box-shadow:0 28px 80px rgba(45,32,36,.28);
}
.sheet h2{
  font-family:ui-serif,Georgia,"Times New Roman",serif;
  font-size:30px;
  color:var(--plum-deep);
  margin:0 0 12px;
}
.sheet p{line-height:1.5;color:var(--muted);margin:10px 0;font-size:18px}
.steps{margin:14px 0 18px;padding-left:22px;color:var(--ink);line-height:1.55;font-size:18px}

.offline{
  background:#fbf2de;
  border:1px solid #ead7ad;
  color:var(--warn);
  border-radius:15px;
  padding:11px 14px;
  font-size:16px;
  margin:0 0 13px;
}
.toast{
  position:fixed;
  left:50%;
  bottom:calc(18px + env(safe-area-inset-bottom));
  transform:translate(-50%,20px);
  background:#43383b;
  color:#fff;
  border-radius:15px;
  padding:11px 16px;
  opacity:0;
  pointer-events:none;
  transition:.18s;
  z-index:50;
  max-width:90vw;
  text-align:center;
  font-size:16px;
  box-shadow:0 10px 30px rgba(35,27,29,.18);
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.retry-box{
  background:#fbebed;
  border:1px solid #edcbd2;
  border-radius:18px;
  padding:14px;
  margin-top:10px;
  text-align:center;
  color:#7e4d58;
}
.retry-box{font-size:17px;line-height:1.45}
.retry-box button{margin-top:10px}
.hidden{display:none!important}

@media (max-width:390px){
  #app{padding-left:13px;padding-right:13px}
  .hero{min-height:205px;padding:22px 19px 20px}
  .hero h1{font-size:35px}
  .hero-copy{max-width:69%}
  .hero-art{width:44%;right:-4%}
  .question{font-size:24px}
  .result-cover-copy{max-width:72%}
}
@media (min-width:600px){
  #app{padding-top:28px}
  .cards{grid-template-columns:1fr 1fr}
  .hero{padding:29px}
  .hero-copy{max-width:58%}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}


/* v4 answer controls */
.answer-submit{width:100%;margin-top:12px}
.multi-answer.selected,.image-answer.selected{
  background:var(--plum);
  border-color:var(--plum);
  color:#fff;
}
.text-answer{
  width:100%;
  box-sizing:border-box;
  border:1px solid var(--line);
  background:rgba(255,253,249,.98);
  color:var(--ink);
  border-radius:18px;
  padding:15px 16px;
  font:inherit;
  font-size:18px;
  line-height:1.4;
  outline:none;
}
.text-answer:focus{
  border-color:var(--rose);
  box-shadow:0 0 0 3px rgba(201,139,152,.12);
}
.open-list{display:grid;gap:10px}
.image-answers{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.image-answer{
  border:1px solid var(--line);
  background:rgba(255,253,249,.96);
  border-radius:20px;
  padding:8px;
  color:var(--ink);
  text-align:left;
  box-shadow:var(--shadow-soft);
}
.image-answer img{
  width:100%;
  aspect-ratio:4/3;
  object-fit:cover;
  display:block;
  border-radius:14px;
  background:#eee7df;
}
.image-answer span{
  display:block;
  padding:8px 5px 4px;
  font-size:17px;
  font-weight:680;
}
.image-answer:active{transform:scale(.988)}
.image-answer:disabled{opacity:.62}
.question br{line-height:1.9}
@media (max-width:360px){
  .image-answers{grid-template-columns:1fr}
}


/* v4 history/current-version states */
.card-legacy_completed{border-color:rgba(175,143,86,.34)}
.card-legacy_completed .card-status{
  color:#745d34;
  background:#f3ead6;
}
.legacy-note{
  margin:14px 0 18px;
  padding:13px 15px;
  border:1px solid rgba(175,143,86,.22);
  border-radius:18px;
  background:rgba(243,234,214,.55);
  color:var(--muted);
  font-size:16px;
  line-height:1.42;
}
.legacy-intro .secondary{width:100%;margin-top:10px}
.result-cover-legacy{
  border-color:rgba(175,143,86,.25);
  background:
    radial-gradient(circle at 88% 8%,rgba(214,190,143,.18),transparent 36%),
    rgba(255,253,249,.9);
}
