:root {
  color-scheme: dark;
  --ink: #111814;
  --ink-2: #17201b;
  --ink-3: #1e2a23;
  --paper: #f1f0e8;
  --muted: #a9b0a8;
  --line: rgba(241, 240, 232, 0.12);
  --lime: #d8e59c;
  --blue: #9ccbd4;
  --amber: #ecb86e;
  --clay: #d29778;
  --rose: #d8a0ad;
  --accent: var(--lime);
  --display: "Avenir Next Condensed", "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --practice-title: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.22, .8, .24, 1);
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  background: var(--ink);
  scroll-behavior: smooth;
  scrollbar-width: none;
}
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

body {
  margin: 0;
  min-width: 320px;
  max-width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 90% 5%, rgba(216, 229, 156, .08), transparent 27rem),
    var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; opacity: .75; }
.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
}
.ambient i { position: absolute; display: block; border: 1px solid rgba(216, 229, 156, .06); border-radius: 999px; }
.ambient i:nth-child(1) { width: 36rem; height: 36rem; right: -24rem; top: 8%; }
.ambient i:nth-child(2) { width: 22rem; height: 22rem; left: -16rem; top: 48%; }
.ambient i:nth-child(3) { width: 16rem; height: 16rem; right: -10rem; bottom: -4rem; }

.app-shell { position: relative; width: min(100%, 720px); max-width: 100%; min-height: 100dvh; margin: 0 auto; overflow-x: clip; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(64px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 20px 0;
  background: linear-gradient(var(--ink) 60%, rgba(17, 24, 20, .82));
  backdrop-filter: blur(18px);
}
.topbar.hidden { display: none; }
.brand { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 8px 0; font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -.02em; cursor: pointer; }
.brand-mark { display: grid; gap: 2px; width: 26px; }
.brand-mark i { display: block; height: 2px; border-radius: 10px; background: var(--lime); }
.brand-mark i:nth-child(1) { width: 16px; margin-left: 1px; }
.brand-mark i:nth-child(2) { width: 24px; }
.brand-mark i:nth-child(3) { width: 13px; margin-left: 8px; }
.icon-button, .round-button { display: grid; place-items: center; border: 1px solid var(--line); background: rgba(241, 240, 232, .04); cursor: pointer; }
.icon-button { width: 42px; height: 42px; border-radius: 50%; }
.icon-button[aria-pressed="false"] { color: #6f776f; }
.top-actions { display: flex; gap: 8px; }
.account-button { position: relative; }
.account-button.signed-in::after { content: ""; position: absolute; right: 1px; bottom: 2px; width: 8px; height: 8px; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); }

#view { width: 100%; min-width: 0; padding: 12px 18px calc(112px + env(safe-area-inset-bottom)); }
.screen { width: 100%; min-width: 0; max-width: 100%; animation: arrive .55s var(--ease) both; }
img, svg { max-width: 100%; }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }

.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.035em; }
h1 { max-width: 600px; margin-bottom: 18px; font-size: clamp(44px, 12vw, 72px); line-height: .97; }
h2 { font-size: clamp(34px, 9vw, 50px); line-height: 1.02; }
h3 { font-size: 25px; line-height: 1.08; }
.lede { max-width: 540px; color: var(--muted); font-size: 18px; line-height: 1.55; }

.hero { padding: 28px 3px 34px; }
.hero h1 em { color: var(--lime); font-weight: 600; }
.quick-start {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 18px;
  border: 1px solid rgba(216, 229, 156, .22);
  border-radius: 22px;
  background: rgba(216, 229, 156, .07);
}
.quick-start strong { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 21px; font-weight: 600; }
.quick-start small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.round-button { flex: 0 0 auto; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: 21px; }

.home-intro { padding: 32px 3px 24px; }
.home-intro h1 { max-width: 480px; margin-bottom: 14px; font-size: clamp(42px, 11vw, 56px); line-height: 1.01; }
.home-intro > p:last-child { max-width: 360px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.5; }
.cover-shell { margin: 0 -18px; }
.practice-carousel {
  --cover-size: min(78vw, 340px);
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 8px max(20px, calc((100% - var(--cover-size)) / 2)) 22px;
  scroll-padding-inline: max(20px, calc((100% - var(--cover-size)) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.practice-carousel::-webkit-scrollbar { display: none; }
.practice-cover {
  --card-accent: var(--lime);
  position: relative;
  flex: 0 0 var(--cover-size);
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(241, 240, 232, .13);
  border-radius: 32px;
  background:
    radial-gradient(circle at 23% 24%, rgba(216, 229, 156, .28), transparent 31%),
    linear-gradient(145deg, #34472f, #17231b 68%, #101712);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
  color: var(--paper);
  cursor: pointer;
  opacity: .7;
  scroll-snap-align: center;
  text-align: left;
  transform: scale(.94);
  transition: transform .45s var(--ease), opacity .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.practice-cover.tone-blue { background: radial-gradient(circle at 78% 20%, rgba(156, 203, 212, .34), transparent 31%), linear-gradient(145deg, #25414a, #162a30 60%, #10191c); }
.practice-cover.tone-amber { background: radial-gradient(circle at 22% 18%, rgba(236, 184, 110, .3), transparent 34%), linear-gradient(145deg, #4b3625, #2d2219 62%, #17130f); }
.practice-cover.tone-clay { background: radial-gradient(circle at 78% 22%, rgba(210, 151, 120, .34), transparent 32%), linear-gradient(145deg, #493029, #2f211d 63%, #181210); }
.practice-cover.tone-rose { background: radial-gradient(circle at 28% 18%, rgba(216, 160, 173, .32), transparent 34%), linear-gradient(145deg, #4a3039, #2d2026 62%, #171115); }
.practice-cover.is-active { border-color: color-mix(in srgb, var(--card-accent) 34%, transparent); box-shadow: 0 28px 70px rgba(0, 0, 0, .42); opacity: 1; transform: scale(1); }
.practice-cover:active { transform: scale(.975); }
.cover-art, .cover-scrim { position: absolute; inset: 0; pointer-events: none; }
.cover-scrim { z-index: 1; background: linear-gradient(180deg, rgba(8, 13, 10, .05) 30%, rgba(8, 13, 10, .12) 54%, rgba(8, 13, 10, .82) 100%); }
.cover-art { overflow: hidden; }
.cover-art i { position: absolute; display: block; border: 1px solid color-mix(in srgb, var(--card-accent) 48%, transparent); }
.practice-cover:not(.tone-blue):not(.tone-amber):not(.tone-clay):not(.tone-rose) .cover-art i:nth-child(1) { width: 72%; aspect-ratio: 1; left: -11%; top: 12%; border-radius: 50%; }
.practice-cover:not(.tone-blue):not(.tone-amber):not(.tone-clay):not(.tone-rose) .cover-art i:nth-child(2) { width: 46%; aspect-ratio: 1; right: 5%; top: 8%; border-radius: 50%; background: rgba(216, 229, 156, .11); filter: blur(8px); }
.practice-cover:not(.tone-blue):not(.tone-amber):not(.tone-clay):not(.tone-rose) .cover-art i:nth-child(3) { width: 1px; height: 72%; left: 55%; top: -8%; border: 0; background: linear-gradient(transparent, rgba(216, 229, 156, .55), transparent); transform: rotate(37deg); }
.practice-cover:not(.tone-blue):not(.tone-amber):not(.tone-clay):not(.tone-rose) .cover-art i:nth-child(4) { width: 20%; aspect-ratio: 1; right: 17%; top: 35%; border-radius: 50%; box-shadow: 0 0 40px rgba(216, 229, 156, .2); }
.practice-cover.tone-blue .cover-art i { left: 50%; top: 43%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.practice-cover.tone-blue .cover-art i:nth-child(1) { width: 84%; }
.practice-cover.tone-blue .cover-art i:nth-child(2) { width: 63%; }
.practice-cover.tone-blue .cover-art i:nth-child(3) { width: 42%; background: rgba(156, 203, 212, .06); }
.practice-cover.tone-blue .cover-art i:nth-child(4) { width: 19%; background: rgba(156, 203, 212, .22); box-shadow: 0 0 45px rgba(156, 203, 212, .28); }
.practice-cover.tone-amber .cover-art i { right: -5%; height: 13%; border-radius: 999px; transform: rotate(-14deg); }
.practice-cover.tone-amber .cover-art i:nth-child(1) { width: 78%; top: 12%; background: rgba(236, 184, 110, .05); }
.practice-cover.tone-amber .cover-art i:nth-child(2) { width: 93%; top: 29%; }
.practice-cover.tone-amber .cover-art i:nth-child(3) { width: 68%; top: 46%; background: rgba(236, 184, 110, .09); }
.practice-cover.tone-amber .cover-art i:nth-child(4) { width: 47%; top: 63%; }
.practice-cover.tone-clay .cover-art i { width: 30%; height: 64%; top: 2%; border-radius: 999px 999px 45% 45%; transform-origin: 50% 100%; }
.practice-cover.tone-clay .cover-art i:nth-child(1) { left: 34%; background: rgba(210, 151, 120, .08); }
.practice-cover.tone-clay .cover-art i:nth-child(2) { left: 16%; transform: rotate(-34deg); }
.practice-cover.tone-clay .cover-art i:nth-child(3) { right: 16%; transform: rotate(34deg); }
.practice-cover.tone-clay .cover-art i:nth-child(4) { left: 35%; top: 20%; width: 28%; height: 28%; border-radius: 50%; background: rgba(210, 151, 120, .14); box-shadow: 0 0 42px rgba(210, 151, 120, .2); }
.practice-cover.tone-rose .cover-art i { aspect-ratio: 1; border-radius: 50%; }
.practice-cover.tone-rose .cover-art i:nth-child(1) { width: 88%; left: -31%; top: -20%; border-width: 22px; opacity: .5; }
.practice-cover.tone-rose .cover-art i:nth-child(2) { width: 66%; right: -17%; top: 8%; border-width: 1px; }
.practice-cover.tone-rose .cover-art i:nth-child(3) { width: 34%; left: 33%; top: 29%; background: rgba(216, 160, 173, .1); box-shadow: 0 0 55px rgba(216, 160, 173, .25); }
.practice-cover.tone-rose .cover-art i:nth-child(4) { width: 12%; right: 14%; top: 12%; background: rgba(216, 160, 173, .35); border: 0; }
.practice-cover.is-active:not(.tone-blue):not(.tone-amber):not(.tone-clay):not(.tone-rose) .cover-art i:nth-child(1) { animation: cover-lime-orbit 7.8s ease-in-out infinite; }
.practice-cover.is-active:not(.tone-blue):not(.tone-amber):not(.tone-clay):not(.tone-rose) .cover-art i:nth-child(2) { animation: cover-lime-glow 5.6s ease-in-out infinite; }
.practice-cover.is-active:not(.tone-blue):not(.tone-amber):not(.tone-clay):not(.tone-rose) .cover-art i:nth-child(3) { animation: cover-soft-glint 6.8s ease-in-out infinite; }
.practice-cover.is-active:not(.tone-blue):not(.tone-amber):not(.tone-clay):not(.tone-rose) .cover-art i:nth-child(4) { animation: cover-lime-pulse 4.8s ease-in-out infinite; }
.practice-cover.is-active.tone-blue .cover-art i { animation: cover-blue-ripple 6.4s ease-in-out infinite both; }
.practice-cover.is-active.tone-blue .cover-art i:nth-child(2) { animation-delay: -.8s; }
.practice-cover.is-active.tone-blue .cover-art i:nth-child(3) { animation-delay: -1.6s; }
.practice-cover.is-active.tone-blue .cover-art i:nth-child(4) { animation-delay: -2.4s; }
.practice-cover.is-active.tone-amber .cover-art i { animation: cover-amber-wave 6.8s ease-in-out infinite; }
.practice-cover.is-active.tone-amber .cover-art i:nth-child(2) { animation-delay: -.7s; }
.practice-cover.is-active.tone-amber .cover-art i:nth-child(3) { animation-delay: -1.4s; }
.practice-cover.is-active.tone-amber .cover-art i:nth-child(4) { animation-delay: -2.1s; }
.practice-cover.is-active.tone-clay .cover-art i:nth-child(1) { animation: cover-clay-center 7.2s ease-in-out infinite; }
.practice-cover.is-active.tone-clay .cover-art i:nth-child(2) { animation: cover-clay-left 7.2s ease-in-out infinite; }
.practice-cover.is-active.tone-clay .cover-art i:nth-child(3) { animation: cover-clay-right 7.2s ease-in-out infinite; }
.practice-cover.is-active.tone-clay .cover-art i:nth-child(4) { animation: cover-clay-core 4.9s ease-in-out infinite; }
.practice-cover.is-active.tone-rose .cover-art i:nth-child(1) { animation: cover-rose-left 9s ease-in-out infinite; }
.practice-cover.is-active.tone-rose .cover-art i:nth-child(2) { animation: cover-rose-right 8s ease-in-out infinite; }
.practice-cover.is-active.tone-rose .cover-art i:nth-child(3) { animation: cover-rose-core 5.2s ease-in-out infinite; }
.practice-cover.is-active.tone-rose .cover-art i:nth-child(4) { animation: cover-rose-float 6.2s ease-in-out infinite; }
@keyframes cover-lime-orbit { 0%, 100% { opacity: .62; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.04); } }
@keyframes cover-lime-glow { 0%, 100% { opacity: .55; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes cover-soft-glint { 0%, 100% { opacity: .38; } 50% { opacity: .95; } }
@keyframes cover-lime-pulse { 0%, 100% { opacity: .58; transform: scale(.88); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes cover-blue-ripple { 0%, 100% { opacity: .42; transform: translate(-50%, -50%) scale(.94); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.055); } }
@keyframes cover-amber-wave { 0%, 100% { opacity: .56; transform: rotate(-14deg) translateX(-2%); } 50% { opacity: 1; transform: rotate(-14deg) translateX(6%); } }
@keyframes cover-clay-center { 0%, 100% { opacity: .66; transform: scaleX(.96); } 50% { opacity: 1; transform: scaleX(1.05); } }
@keyframes cover-clay-left { 0%, 100% { opacity: .58; transform: rotate(-31deg); } 50% { opacity: 1; transform: rotate(-37deg); } }
@keyframes cover-clay-right { 0%, 100% { opacity: .58; transform: rotate(31deg); } 50% { opacity: 1; transform: rotate(37deg); } }
@keyframes cover-clay-core { 0%, 100% { opacity: .55; transform: scale(.86); } 50% { opacity: 1; transform: scale(1.09); } }
@keyframes cover-rose-left { 0%, 100% { transform: rotate(-2deg) scale(.98); } 50% { transform: rotate(3deg) scale(1.025); } }
@keyframes cover-rose-right { 0%, 100% { opacity: .55; transform: rotate(2deg); } 50% { opacity: 1; transform: rotate(-3deg); } }
@keyframes cover-rose-core { 0%, 100% { opacity: .52; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.09); } }
@keyframes cover-rose-float { 0%, 100% { opacity: .58; transform: translate3d(0, 0, 0); } 50% { opacity: 1; transform: translate3d(-9px, 8px, 0); } }
.cover-meta, .cover-symbol, .cover-title { position: absolute; z-index: 2; }
.cover-meta { left: 24px; top: 23px; color: var(--card-accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cover-symbol { display: grid; place-items: center; right: 21px; top: 20px; width: 39px; height: 39px; border: 1px solid color-mix(in srgb, var(--card-accent) 38%, transparent); border-radius: 50%; background: rgba(12, 18, 14, .25); color: var(--card-accent); font-family: var(--display); font-size: 19px; backdrop-filter: blur(8px); }
.cover-title { right: 24px; bottom: 25px; left: 24px; max-width: 86%; font-family: var(--practice-title); font-size: clamp(28px, 7.4vw, 34px); font-weight: 500; letter-spacing: -.025em; line-height: 1.05; text-wrap: balance; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 28px; padding: 0 20px; }
.carousel-dots { display: flex; align-items: center; gap: 7px; }
.carousel-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px; background: rgba(241, 240, 232, .23); cursor: pointer; transition: width .35s var(--ease), background .3s ease; }
.carousel-dot.active { width: 23px; background: var(--lime); }
.carousel-position { min-width: 38px; color: #778078; font-size: 12px; }
.program-link { display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; margin: 24px 0 4px; padding: 13px; border: 1px solid rgba(216, 229, 156, .22); border-radius: 23px; background: radial-gradient(circle at 7% 10%, rgba(216, 229, 156, .1), transparent 8rem), rgba(241, 240, 232, .035); color: var(--muted); text-align: left; cursor: pointer; transition: border-color .3s ease, background .3s ease, transform .3s var(--ease); }
.program-badge { display: grid; place-content: center; width: 54px; height: 54px; border-radius: 17px; background: var(--lime); color: var(--ink); text-align: center; }
.program-badge b { font-family: var(--display); font-size: 25px; font-weight: 600; line-height: .8; }
.program-badge small { margin-top: 5px; font-size: 9px; font-weight: 700; letter-spacing: .09em; line-height: 1; text-transform: uppercase; }
.program-copy { display: grid; gap: 4px; min-width: 0; }
.program-copy small { color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.program-copy strong { color: var(--paper); font-family: var(--practice-title); font-size: 17px; font-weight: 500; letter-spacing: -.01em; line-height: 1.12; }
.program-action { display: flex; align-items: center; gap: 5px; color: var(--paper); font-size: 13px; white-space: nowrap; }
.program-action i { color: var(--lime); font-size: 17px; font-style: normal; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 8px 2px 15px; }
.section-head h2 { margin: 0; font-size: 26px; }
.section-head span { color: var(--muted); font-size: 13px; }
.goal-strip { display: flex; gap: 8px; margin: 0 -18px 22px; padding: 4px 18px 8px; overflow-x: auto; scrollbar-width: none; }
.goal-strip::-webkit-scrollbar { display: none; }
.goal-pill { flex: 0 0 auto; padding: 10px 15px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--muted); font-size: 14px; cursor: pointer; }
.goal-pill.active { border-color: var(--paper); background: var(--paper); color: var(--ink); }

.protocol-list { display: grid; gap: 12px; }
.protocol-card {
  --card-accent: var(--lime);
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 118px;
  padding: 17px 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(30, 42, 35, .72);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s ease, background .3s ease;
}
.protocol-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -75px; top: -65px; border-radius: 50%; background: var(--card-accent); opacity: .13; filter: blur(2px); }
.protocol-card:active { transform: scale(.985); }
.tone-blue { --card-accent: var(--blue); }.tone-amber { --card-accent: var(--amber); }.tone-clay { --card-accent: var(--clay); }.tone-rose { --card-accent: var(--rose); }
.protocol-symbol { display: grid; place-items: center; width: 52px; height: 70px; border-radius: 999px; background: color-mix(in srgb, var(--card-accent) 14%, transparent); color: var(--card-accent); font-family: var(--display); font-size: 25px; }
.protocol-copy { min-width: 0; }
.protocol-meta { display: flex; gap: 7px; align-items: center; margin-bottom: 8px; color: var(--card-accent); font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.protocol-meta i { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
.protocol-card h3 { margin: 0 0 5px; font-family: var(--practice-title); font-size: 23px; font-weight: 500; letter-spacing: -.018em; line-height: 1.15; }
.protocol-card p { margin: 0; overflow: hidden; color: var(--muted); font-size: 14px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { z-index: 1; color: var(--card-accent); font-size: 22px; }

.bottom-nav {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: max(10px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(calc(100% - 24px), 696px);
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(19, 27, 22, .91);
  box-shadow: 0 16px 50px rgba(0, 0, 0, .4);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}
.bottom-nav.hidden { display: none; }
.bottom-nav button { display: grid; gap: 3px; place-items: center; min-height: 52px; border: 0; border-radius: 16px; background: transparent; color: #7f8980; font-size: 12px; cursor: pointer; }
.bottom-nav button span { font-size: 18px; }
.bottom-nav button.active { background: rgba(241, 240, 232, .07); color: var(--paper); }

.back-button { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 26px; padding: 0; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.detail-hero { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 17px; align-items: center; padding: 4px 0 20px; }
.detail-mark { position: relative; display: grid; place-items: center; width: 72px; height: 72px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); border-radius: 24px; background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 58%), rgba(241, 240, 232, .035); }
.detail-mark i { position: absolute; width: 58px; height: 58px; border: 1px solid color-mix(in srgb, var(--accent) 27%, transparent); border-radius: 50%; animation: detail-mark-breathe 6.4s ease-in-out infinite; }
.detail-mark i:nth-child(2) { width: 34px; height: 34px; animation-delay: -1.8s; }
.detail-mark span { position: relative; z-index: 1; display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, var(--ink)); color: var(--accent); font-family: var(--display); font-size: 19px; }
@keyframes detail-mark-breathe { 0%, 100% { opacity: .48; transform: scale(.91); } 50% { opacity: 1; transform: scale(1.08); } }
.detail-heading { min-width: 0; }
.detail-heading .eyebrow { margin-bottom: 8px; }
.detail-hero h1 { position: relative; max-width: 580px; margin: 0; font-family: var(--practice-title); font-size: clamp(34px, 9.4vw, 46px); font-weight: 500; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
.detail-hero .lede { grid-column: 1 / -1; max-width: 590px; margin: 3px 0 0; font-size: 16px; line-height: 1.5; }
.detail-facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 5px 0 24px; }
.fact { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 12px; }
.fact.accent { border-color: color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); }
.mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 20px 0 26px; }
.mode-option { padding: 16px; border: 1px solid var(--line); border-radius: 19px; background: var(--ink-2); text-align: left; cursor: pointer; }
.mode-option strong, .mode-option small { display: block; }
.mode-option strong { margin-bottom: 5px; font-family: var(--display); font-size: 21px; font-weight: 600; }
.mode-option small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.mode-option.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--ink-2)); }
.step-preview { margin: 26px 0; padding: 19px 18px 12px; border: 1px solid var(--line); border-radius: 24px; background: rgba(30, 42, 35, .46); }
.step-preview-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.step-preview-head h3 { margin: 0; font-family: var(--practice-title); font-size: 19px; font-weight: 500; letter-spacing: -.01em; }
.step-preview-head > span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.step-line { position: relative; display: grid; grid-template-columns: 29px 1fr; gap: 11px; padding: 10px 0; border-bottom: 1px solid rgba(241, 240, 232, .065); color: var(--muted); font-size: 14px; line-height: 1.4; }
.step-line:last-child { border-bottom: 0; }
.step-line span:first-child { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 50%; color: var(--accent); font-family: var(--display); font-size: 11px; }
.step-line.more { color: #7f8980; }
.step-line.more span:first-child { border-style: dashed; }

.primary, .secondary, .text-button { border: 0; cursor: pointer; }
.primary { width: 100%; min-height: 58px; padding: 15px 20px; border-radius: 18px; background: var(--accent); color: #152017; font-weight: 700; }
.secondary { min-height: 54px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(241, 240, 232, .05); }
.text-button { padding: 10px; background: transparent; color: var(--muted); }
.sticky-cta { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 10; padding-top: 12px; background: linear-gradient(transparent, var(--ink) 32%); }
.detail-start { display: flex; align-items: center; justify-content: space-between; padding-inline: 20px; text-align: left; }
.detail-start i { font-size: 21px; font-style: normal; font-weight: 400; }

.checkin { max-width: 560px; margin: 0 auto; padding-top: 8px; }
.checkin-intro { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 15px; align-items: center; }
.checkin-mark { width: 64px; height: 64px; border-radius: 21px; }
.checkin-mark i { width: 50px; height: 50px; }
.checkin-mark i:nth-child(2) { width: 29px; height: 29px; }
.checkin-mark span { width: 30px; height: 30px; font-size: 17px; }
.checkin-intro .eyebrow { margin-bottom: 7px; }
.checkin-intro h1 { margin: 0; font-family: var(--practice-title); font-size: clamp(36px, 9.8vw, 46px); font-weight: 500; letter-spacing: -.025em; line-height: 1.03; }
.checkin-intro .lede { grid-column: 1 / -1; margin: 4px 0 0; font-size: 16px; line-height: 1.5; }
.checkin-card { margin: 24px 0 17px; padding: 20px; border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line)); border-radius: 27px; background: radial-gradient(circle at 92% 4%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 9rem), rgba(30, 42, 35, .62); }
.scale-head { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.scale-head label { max-width: 240px; font-family: var(--practice-title); font-size: 18px; font-weight: 500; line-height: 1.25; }
.scale-value { display: grid; flex: 0 0 auto; place-items: center; width: 56px; height: 56px; border-radius: 18px; background: var(--accent); color: var(--ink); font-family: var(--display); font-size: 34px; font-weight: 600; line-height: 1; }
input[type="range"] { width: 100%; height: 5px; margin: 13px 0; appearance: none; border-radius: 10px; background: linear-gradient(90deg, var(--accent) var(--range, 60%), rgba(241,240,232,.12) var(--range, 60%)); }
input[type="range"]::-webkit-slider-thumb { width: 27px; height: 27px; appearance: none; border: 6px solid var(--ink-2); border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.scale-labels { display: flex; justify-content: space-between; color: #8a948b; font-size: 12px; }
.safety-note { display: flex; gap: 11px; margin: 17px 0 20px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 19px; background: rgba(241, 240, 232, .025); color: var(--muted); font-size: 12px; line-height: 1.5; }
.safety-note i { flex: 0 0 auto; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 50%; color: var(--accent); font-style: normal; text-align: center; line-height: 17px; }
.journal-field { display: grid; gap: 10px; margin: 22px 0; color: var(--muted); font-size: 14px; }
textarea, .auth-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(241,240,232,.045);
  color: var(--paper);
  font: inherit;
}
textarea { min-height: 100px; padding: 14px; line-height: 1.5; resize: vertical; }
textarea::placeholder, .auth-form input::placeholder { color: #6f786f; }
.checkin-actions { display: grid; gap: 5px; }
.checkin-actions .primary { display: flex; align-items: center; justify-content: space-between; text-align: left; }
.checkin-actions .primary i { font-size: 20px; font-style: normal; font-weight: 400; }
.checkin-actions .text-button { justify-self: center; }

.player-screen { --accent: var(--lime); display: flex; flex-direction: column; height: calc(100dvh - 26px); min-height: 0; padding-top: calc(8px + env(safe-area-inset-top)); }
body[data-route="checkin"] #view,
body[data-route="complete"] #view,
body[data-route="account"] #view,
body[data-route="player"] #view { padding-bottom: max(12px, env(safe-area-inset-bottom)); }
body[data-route="player"] { overflow: hidden; }
body[data-route="player"] #view { height: 100dvh; overflow: hidden; }
.player-top { display: flex; flex: 0 0 auto; align-items: center; gap: 12px; padding: 0 2px; }
.close-button { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: rgba(241, 240, 232, .035); cursor: pointer; }
.player-progress { flex: 1; height: 3px; overflow: hidden; border-radius: 9px; background: rgba(241, 240, 232, .1); }
.player-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--accent); transition: width .6s var(--ease); }
.player-count { color: var(--muted); font-size: 13px; }
.player-stage { position: relative; isolation: isolate; display: grid; grid-template-rows: 118px minmax(154px, auto) auto; row-gap: 12px; flex: 1 1 auto; align-content: start; justify-items: center; min-height: 0; margin: 12px 0 10px; padding: 24px 18px 15px; overflow: hidden; border: 1px solid var(--line); border-radius: 31px; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 14rem), rgba(30, 42, 35, .42); text-align: center; }
.player-stage::after { content: ""; position: absolute; z-index: -1; width: 330px; height: 330px; right: -245px; bottom: -210px; border: 1px solid color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 50%; }
.stage-visual, .stage-copy, .stage-timing { position: relative; z-index: 1; }
.stage-visual { display: grid; place-items: center; width: 100%; height: 112px; min-height: 112px; align-self: start; }
.stage-visual.has-body-part { margin: 0; }
.stage-copy { display: flex; flex-direction: column; width: 100%; min-height: 154px; align-items: center; justify-content: flex-start; }
.stage-copy .eyebrow { margin-bottom: 7px; }
.stage-copy h1 { max-width: 520px; margin: 0 auto 10px; font-family: var(--practice-title); font-size: clamp(34px, 9.4vw, 42px); font-weight: 500; letter-spacing: -.025em; line-height: 1.03; text-wrap: balance; }
.player-stage.title-long .stage-copy h1 { max-width: 100%; font-size: clamp(29px, 8vw, 36px); line-height: 1.06; }
.instruction { max-width: 460px; min-height: 0; margin: 0 auto; color: #bdc3bd; font-size: 15px; line-height: 1.44; text-wrap: balance; }
.stage-timing { display: grid; align-self: start; justify-items: center; margin-top: 8px; }
.stage-timer { position: relative; display: grid; place-items: center; width: 98px; height: 98px; margin: 0 auto 4px; }
.timer-ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.timer-ring circle { fill: none; stroke-width: 3; }
.timer-ring-track { stroke: rgba(241, 240, 232, .1); }
.timer-ring-value { stroke: var(--accent); stroke-linecap: round; filter: drop-shadow(0 0 5px color-mix(in srgb, var(--accent) 40%, transparent)); transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .2s linear; }
.stage-timer > div { position: relative; display: grid; gap: 2px; place-items: center; }
.timer { color: var(--paper); font-family: var(--display); font-size: 29px; font-variant-numeric: tabular-nums; line-height: 1; }
.stage-timer small { max-width: 76px; color: var(--muted); font-size: 9px; line-height: 1.15; text-align: center; }
.phase-label { min-height: 18px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.pulse-field { position: relative; display: grid; place-items: center; width: 172px; height: 172px; margin: 0 auto; }
.pulse-field::before, .pulse-field::after, .breath-orbit { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); border-radius: 50%; pointer-events: none; }
.pulse-field::before { inset: 2px; box-shadow: inset 0 0 34px color-mix(in srgb, var(--accent) 5%, transparent), 0 0 45px color-mix(in srgb, var(--accent) 8%, transparent); animation: breathHalo 8s ease-in-out infinite; }
.pulse-field::after { inset: 22px; border-color: color-mix(in srgb, var(--accent) 17%, transparent); }
.breath-orbit { inset: 42px; border-color: color-mix(in srgb, var(--accent) 36%, transparent); }
.breath-orbit::after { content: ""; position: absolute; top: 5px; left: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 14px var(--accent); transform: translateX(-50%); }
.breath-orb { z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 86px; height: 86px; border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent); border-radius: 50%; background: radial-gradient(circle at 38% 30%, color-mix(in srgb, var(--paper) 24%, transparent), transparent 31%), linear-gradient(145deg, color-mix(in srgb, var(--accent) 92%, white 8%), color-mix(in srgb, var(--accent) 72%, var(--ink))); color: var(--ink); box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 5%, transparent), 0 16px 44px color-mix(in srgb, var(--accent) 18%, transparent), inset 0 1px 0 rgba(255, 255, 255, .24); transition-property: transform, background, box-shadow; transition-timing-function: cubic-bezier(.42, 0, .23, 1); }
.breath-orb.inhale { transform: scale(1.34); box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent) 6%, transparent), 0 18px 62px color-mix(in srgb, var(--accent) 28%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3); }
.breath-orb.exhale { transform: scale(.82); }
.breath-orb span { font-family: var(--sans); font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1; text-transform: uppercase; }
.breath-orb-count { margin-top: 4px; color: var(--ink); font-family: var(--display); font-size: 28px; font-weight: 500; font-variant-numeric: tabular-nums; line-height: .9; }
.body-glyph { position: relative; width: 142px; height: 190px; margin: 0 auto 20px; opacity: .92; }
.body-glyph i { position: absolute; left: 50%; border: 1px solid color-mix(in srgb, var(--accent) 47%, transparent); border-radius: 50%; transform: translateX(-50%); }
.body-glyph i:nth-child(1) { top: 2px; width: 44px; height: 48px; }
.body-glyph i:nth-child(2) { top: 53px; width: 92px; height: 112px; border-radius: 48% 48% 36% 36%; }
.body-glyph i:nth-child(3) { top: 68px; width: 142px; height: 60px; border-width: 0 1px; border-radius: 30%; }
.body-glyph i:nth-child(4) { top: 133px; width: 66px; height: 58px; border-width: 0 1px; border-radius: 20%; }
.body-glyph b { position: absolute; left: 50%; top: 84px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); filter: blur(13px); opacity: .45; transform: translate(-50%, -50%); animation: bodyPulse 3s ease-in-out infinite; }
.body-part-visual { position: relative; display: grid; place-items: center; width: min(43vw, 154px); height: 108px; margin: 0 auto; }
.body-part-visual::before { content: ""; position: absolute; width: 74%; aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--accent) 11%, transparent); filter: blur(34px); animation: bodyPartGlow 6.5s ease-in-out infinite; }
.body-part-visual img { position: relative; z-index: 1; display: block; max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 18px 28px rgba(0, 0, 0, .24)); animation: bodyPartFloat 7s ease-in-out infinite; }
.grounding-visual, .sigh-visual, .silence-visual { position: relative; width: 104px; height: 104px; color: var(--accent); }
.grounding-visual::before, .sigh-visual::before, .silence-visual::before { content: ""; position: absolute; inset: 2px; border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 50%; }
.grounding-visual i, .grounding-visual b, .grounding-visual span, .sigh-visual i, .sigh-visual b, .sigh-visual span, .silence-visual i, .silence-visual b, .silence-visual span { position: absolute; display: block; }
.grounding-visual i:first-child { left: 42px; top: 18px; width: 20px; height: 20px; border: 1px solid color-mix(in srgb, var(--accent) 65%, transparent); border-radius: 50%; }
.grounding-visual i:nth-child(2) { left: 33px; top: 43px; width: 38px; height: 37px; border: 1px solid color-mix(in srgb, var(--accent) 58%, transparent); border-radius: 48% 48% 38% 38%; }
.grounding-visual span { left: 21px; bottom: 15px; width: 62px; height: 1px; background: color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 5px 14px color-mix(in srgb, var(--accent) 34%, transparent); }
.grounding-visual b { left: 42px; top: 51px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); filter: blur(10px); opacity: .46; animation: groundingPulse 4s ease-in-out infinite; }
.sigh-visual i { left: 50%; top: 50%; border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent); border-radius: 50%; transform: translate(-50%, -50%); }
.sigh-visual i:first-child { width: 82px; height: 82px; animation: sighRing 4s ease-in-out infinite; }
.sigh-visual i:nth-child(2) { width: 52px; height: 52px; animation: sighRing 4s ease-in-out infinite .35s; }
.sigh-visual b { left: 42px; top: 42px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 48%, transparent); }
.sigh-visual span { left: 49px; top: 12px; width: 6px; height: 14px; border-radius: 99px; background: var(--accent); box-shadow: -10px 6px 0 -1px color-mix(in srgb, var(--accent) 65%, transparent); transform: rotate(18deg); animation: sighLift 3s ease-in-out infinite; }
.silence-visual i { left: 50%; top: 50%; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 50%; transform: translate(-50%, -50%); }
.silence-visual i:first-child { width: 78px; height: 78px; animation: silenceRing 6s ease-out infinite; }
.silence-visual i:nth-child(2) { width: 45px; height: 45px; animation: silenceRing 6s ease-out infinite 1.1s; }
.silence-visual b { left: 47px; top: 47px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 22px var(--accent); animation: silencePulse 4.5s ease-in-out infinite; }
.silence-visual span { left: 50%; bottom: -9px; color: color-mix(in srgb, var(--accent) 78%, var(--paper)); font-size: 9px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; transform: translateX(-50%); white-space: nowrap; }
.kind-silence .silence-visual { width: 164px; height: 164px; }
.kind-silence .silence-visual i:first-child { width: 128px; height: 128px; }
.kind-silence .silence-visual i:nth-child(2) { width: 82px; height: 82px; }
.kind-silence .silence-visual b { left: 50%; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); }
.kind-silence .silence-visual span { bottom: 4px; }
@keyframes bodyPulse { 50% { transform: translate(-50%, -50%) scale(1.7); opacity: .2; } }
@keyframes bodyPartGlow { 0%, 100% { opacity: .48; transform: scale(.92); } 50% { opacity: .86; transform: scale(1.06); } }
@keyframes bodyPartFloat { 0%, 100% { transform: translateY(2px) scale(.985); } 50% { transform: translateY(-3px) scale(1.01); } }
@keyframes groundingPulse { 0%, 100% { opacity: .3; transform: scale(.78); } 50% { opacity: .6; transform: scale(1.12); } }
@keyframes sighRing { 0%, 100% { opacity: .28; transform: translate(-50%, -50%) scale(.88); } 50% { opacity: .72; transform: translate(-50%, -50%) scale(1.05); } }
@keyframes sighLift { 0%, 100% { opacity: .25; transform: translateY(4px) rotate(18deg); } 50% { opacity: .9; transform: translateY(-5px) rotate(18deg); } }
@keyframes silencePulse { 0%, 100% { opacity: .45; transform: scale(.78); } 50% { opacity: 1; transform: scale(1.12); } }
@keyframes breathHalo { 0%, 100% { opacity: .48; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.02); } }
@keyframes silenceRing { 0% { opacity: .7; transform: translate(-50%, -50%) scale(.7); } 75%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.38); } }
.stage-visual .body-glyph { position: absolute; margin: 0; transform: scale(.53); }
.player-controls { display: grid; flex: 0 0 auto; grid-template-columns: 1fr 62px 1fr; align-items: center; width: 100%; margin: 0 auto; padding: 6px; border: 1px solid var(--line); border-radius: 24px; background: rgba(19, 27, 22, .82); box-shadow: 0 14px 45px rgba(0, 0, 0, .22); backdrop-filter: blur(18px); }
.player-controls button { min-height: 48px; border: 0; border-radius: 18px; background: transparent; cursor: pointer; }
.player-controls .play { width: 58px; height: 58px; min-height: 58px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 19px; }
.player-controls .skip { color: var(--muted); font-size: 12px; }

.feedback-sheet { position: fixed; z-index: 60; inset: 0; display: flex; align-items: flex-end; justify-content: center; padding: 16px; background: rgba(4, 8, 6, .62); backdrop-filter: blur(8px); animation: fade .25s ease both; }
.feedback-card { width: min(100%, 660px); padding: 28px 22px calc(20px + env(safe-area-inset-bottom)); border: 1px solid var(--line); border-radius: 30px; background: #1b251f; box-shadow: 0 -24px 90px rgba(0,0,0,.45); animation: sheet .45s var(--ease) both; }
.feedback-card h2 { margin-bottom: 8px; font-size: 34px; }
.feedback-card p { color: var(--muted); }
.feedback-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 23px; }
.feedback-options button { min-height: 58px; border: 1px solid var(--line); border-radius: 17px; background: rgba(241,240,232,.04); cursor: pointer; }
.feedback-options button:first-child { border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
@keyframes fade { from { opacity: 0; } } @keyframes sheet { from { transform: translateY(30px); } }

.completion-mark { display: grid; place-items: center; width: 104px; height: 104px; margin: 14px 0 34px; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent); font-family: var(--display); font-size: 42px; }
.delta-card { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 23px 0; padding: 18px; border: 1px solid var(--line); border-radius: 20px; }
.delta-card span { color: var(--muted); font-size: 14px; }.delta-card strong { color: var(--accent); font-family: var(--display); font-size: 38px; font-weight: 600; }

.stats-hero { padding: 28px 2px 22px; }
.stats-hero h1 { margin-bottom: 10px; }
.progress-world { position: relative; isolation: isolate; }
.progress-sparks { position: absolute; z-index: -1; inset: 0; overflow: hidden; pointer-events: none; }
.progress-sparks i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 18px var(--lime); opacity: .34; animation: progressSpark 7s ease-in-out infinite; }
.progress-sparks i:nth-child(1) { left: 9%; top: 8%; }.progress-sparks i:nth-child(2) { right: 7%; top: 24%; animation-delay: -2s; }.progress-sparks i:nth-child(3) { left: 42%; top: 39%; animation-delay: -4s; }.progress-sparks i:nth-child(4) { right: 17%; top: 62%; animation-delay: -1s; }.progress-sparks i:nth-child(5) { left: 14%; top: 78%; animation-delay: -5s; }
.progress-hero-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 18px; align-items: center; margin: 7px 0 13px; padding: 25px 20px 24px; overflow: hidden; border: 1px solid rgba(216,229,156,.22); border-radius: 31px; background: radial-gradient(circle at 92% 8%, rgba(216,229,156,.2), transparent 12rem), radial-gradient(circle at 10% 100%, rgba(156,203,212,.09), transparent 14rem), rgba(28,40,33,.78); box-shadow: 0 28px 70px rgba(0,0,0,.22); }
.progress-hero-card::before { content: ""; position: absolute; width: 55%; height: 220%; left: -75%; top: -60%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.065), transparent); transform: rotate(17deg); animation: heroSheen 9s ease-in-out infinite; }
.progress-hero-copy { position: relative; z-index: 1; min-width: 0; }
.progress-hero-copy .eyebrow { margin-bottom: 9px; }
.progress-hero-copy h1 { max-width: 430px; margin-bottom: 10px; font-size: clamp(43px, 11vw, 59px); line-height: .96; }
.progress-hero-copy > p:not(.eyebrow) { max-width: 360px; margin: 0; color: #bdc5bc; font-size: 14px; line-height: 1.45; }
.level-track { margin-top: 24px; }
.level-track > div:first-child { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.level-track span { overflow: hidden; color: var(--lime); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.level-track strong { flex: 0 0 auto; color: #9aa49a; font-size: 10px; font-weight: 500; }
.level-bar { height: 4px; margin-top: 9px; overflow: hidden; border-radius: 20px; background: rgba(241,240,232,.09); }
.level-bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), #f3e9a7); box-shadow: 0 0 12px rgba(216,229,156,.48); animation: progressGrow .9s var(--ease) both; }
.level-orbit { position: relative; display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: conic-gradient(var(--lime) 0 var(--level-progress), rgba(241,240,232,.09) var(--level-progress) 360deg); box-shadow: 0 0 45px rgba(216,229,156,.1); animation: orbitArrive .8s var(--ease) both; }
.level-orbit::before { content: ""; position: absolute; inset: 4px; border-radius: inherit; background: #1b271f; box-shadow: inset 0 0 24px rgba(216,229,156,.08); }
.level-orbit > i { position: absolute; inset: -8px; border: 1px solid rgba(216,229,156,.12); border-radius: 50%; animation: levelPulse 5s ease-in-out infinite; }
.level-orbit > div { position: relative; display: grid; justify-items: center; }
.level-orbit small { color: #929d93; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.level-orbit strong { font-family: var(--display); font-size: 47px; font-weight: 500; line-height: .92; }
.level-orbit span { margin-top: 4px; color: var(--lime); font-size: 9px; }
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 0 28px; padding: 15px 7px; border: 1px solid var(--line); border-radius: 23px; background: rgba(241,240,232,.025); }
.stat-strip > div { min-width: 0; padding: 0 9px; border-right: 1px solid var(--line); text-align: center; }
.stat-strip > div:last-child { border: 0; }
.stat-strip strong, .stat-strip span { display: block; }
.stat-strip strong { margin-bottom: 4px; color: var(--paper); font-family: var(--display); font-size: 25px; font-weight: 500; line-height: 1; }
.stat-strip span { overflow: hidden; color: #808a81; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.history-list { display: grid; gap: 9px; }
.history-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 20px; background: rgba(30,42,35,.34); }
.history-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgba(216,229,156,.14); border-radius: 16px; background: rgba(216,229,156,.07); color: var(--lime); }
.history-item strong { display: block; margin-bottom: 4px; font-family: var(--practice-title); font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.history-item small { color: var(--muted); font-size: 12px; }.history-delta { color: var(--lime); font-family: var(--display); font-size: 21px; }
.empty-state { position: relative; padding: 34px 24px; overflow: hidden; border: 1px dashed rgba(216,229,156,.15); border-radius: 23px; background: radial-gradient(circle at 50% 0, rgba(216,229,156,.06), transparent 9rem); color: var(--muted); text-align: center; line-height: 1.5; }
.cycle-card { position: relative; margin: 0 0 38px; padding: 22px; overflow: hidden; border: 1px solid rgba(216,229,156,.2); border-radius: 29px; background: linear-gradient(145deg, rgba(35,51,41,.92), rgba(23,34,28,.86)); box-shadow: 0 24px 60px rgba(0,0,0,.18); }
.cycle-glow { position: absolute; width: 230px; height: 230px; right: -105px; top: -130px; border: 1px solid rgba(216,229,156,.15); border-radius: 50%; box-shadow: 0 0 70px rgba(216,229,156,.08), inset 0 0 50px rgba(216,229,156,.05); animation: cycleGlow 8s ease-in-out infinite; }
.cycle-title { position: relative; display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.cycle-title .eyebrow { margin-bottom: 8px; }
.cycle-title h3 { margin: 0 0 7px; font-family: var(--practice-title); font-size: 27px; font-weight: 500; letter-spacing: -.02em; }
.cycle-title p:not(.eyebrow) { max-width: 420px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.cycle-title > span { position: relative; display: flex; align-items: baseline; color: var(--lime); font-size: 11px; }
.cycle-title > span strong { font-family: var(--display); font-size: 35px; font-weight: 500; }
.cycle-route { position: relative; margin-top: 22px; }
.cycle-line { height: 3px; margin: 0 8px 15px; overflow: hidden; border-radius: 99px; background: rgba(241,240,232,.08); }
.cycle-line i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--lime), #f0d995); box-shadow: 0 0 12px rgba(216,229,156,.4); transition: width .7s var(--ease); }
.cycle-days { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.cycle-days > i { position: relative; display: grid; place-items: center; aspect-ratio: 1; border: 1px solid rgba(241,240,232,.09); border-radius: 50%; background: rgba(14,21,17,.5); color: #778178; font-size: 10px; font-style: normal; }
.cycle-days > i span { position: relative; z-index: 1; }
.cycle-days > i.done { border-color: rgba(216,229,156,.65); background: var(--lime); color: var(--ink); box-shadow: 0 0 17px rgba(216,229,156,.23); }
.cycle-days > i.today { border-color: var(--lime); color: var(--paper); box-shadow: 0 0 0 3px rgba(216,229,156,.1), 0 0 20px rgba(216,229,156,.16); animation: todayPulse 3s ease-in-out infinite; }
.cycle-days > i.done.today { color: var(--ink); }
.cycle-caption { display: flex; justify-content: space-between; margin: 11px 3px 0; color: #758077; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.cycle-start { position: relative; display: flex; align-items: center; justify-content: space-between; margin-top: 20px !important; border-color: rgba(216,229,156,.25); background: rgba(216,229,156,.09); color: var(--paper); }
.cycle-start i { color: var(--lime); font-size: 20px; font-style: normal; }
.collection-head { display: flex; align-items: end; justify-content: space-between; margin: 0 2px 18px; }
.collection-head .eyebrow { margin-bottom: 7px; }
.collection-head h2 { margin: 0; font-size: 37px; }
.collection-count { display: flex; align-items: baseline; gap: 4px; padding: 8px 12px; border: 1px solid rgba(216,229,156,.16); border-radius: 999px; background: rgba(216,229,156,.05); }
.collection-count strong { color: var(--lime); font-family: var(--display); font-size: 22px; font-weight: 500; }
.collection-count span { color: var(--muted); font-size: 10px; }
.achievement-grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 38px; }
.achievement-card { --reward: var(--lime); position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; min-height: 142px; padding: 10px 15px 10px 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: rgba(27,39,32,.58); animation: rewardArrive .65s var(--ease) both; animation-delay: var(--achievement-delay); }
.achievement-card::before { content: ""; position: absolute; width: 180px; height: 180px; left: -72px; top: -68px; border-radius: 50%; background: var(--reward); opacity: .07; filter: blur(2px); }
.achievement-card.unlocked { border-color: color-mix(in srgb, var(--reward) 32%, transparent); background: radial-gradient(circle at 0 0, color-mix(in srgb, var(--reward) 10%, transparent), transparent 13rem), rgba(29,43,34,.82); box-shadow: 0 18px 42px rgba(0,0,0,.16); }
.achievement-card.welcome-achievement.unlocked::after { content: ""; position: absolute; width: 40%; height: 190%; left: -65%; top: -45%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.11), transparent); transform: rotate(18deg); animation: rewardSheen 6.5s ease-in-out infinite 1s; }
.achievement-art { position: relative; z-index: 1; display: grid; place-items: center; width: 112px; height: 112px; }
.achievement-art::before { content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; background: var(--reward); opacity: .11; filter: blur(21px); }
.achievement-art img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 13px 18px rgba(0,0,0,.25)); }
.achievement-card.unlocked .achievement-art img { animation: rewardFloat 6s ease-in-out infinite; }
.achievement-card.locked .achievement-art img { opacity: .26; filter: grayscale(1) saturate(.2) drop-shadow(0 10px 12px rgba(0,0,0,.2)); }
.achievement-art > i { position: absolute; z-index: 2; right: 7px; bottom: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--reward); box-shadow: 0 0 16px var(--reward); opacity: 0; }
.achievement-card.unlocked .achievement-art > i { opacity: .8; animation: rewardDot 3.4s ease-in-out infinite; }
.achievement-copy { position: relative; z-index: 2; min-width: 0; }
.achievement-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; color: #7f8980; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.achievement-card.unlocked .achievement-status { color: var(--reward); }
.achievement-status b { display: grid; place-items: center; width: 19px; height: 19px; border: 1px solid currentColor; border-radius: 50%; font-size: 10px; }
.achievement-copy h3 { margin: 0 0 5px; font-family: var(--practice-title); font-size: 21px; font-weight: 500; letter-spacing: -.015em; }
.achievement-copy p { min-height: 34px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.4; }
.achievement-progress { height: 3px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: rgba(241,240,232,.075); }
.achievement-progress i { display: block; height: 100%; border-radius: inherit; background: var(--reward); box-shadow: 0 0 10px var(--reward); }
.journal-head, .history-head { margin-top: 30px; }
.journal-list { display: grid; gap: 9px; }
.journal-item { padding: 18px; border: 1px solid var(--line); border-radius: 21px; background: linear-gradient(145deg, rgba(32,46,37,.64), rgba(24,35,29,.48)); }
.journal-item time { color: var(--lime); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.journal-item p { margin: 9px 0 10px; font-family: var(--display); font-size: 19px; line-height: 1.4; }
.journal-item small { color: var(--muted); font-size: 12px; }

@keyframes progressSpark { 0%, 100% { opacity: .18; transform: translateY(0) scale(.7); } 50% { opacity: .7; transform: translateY(-18px) scale(1.25); } }
@keyframes heroSheen { 0%, 64% { left: -75%; } 82%, 100% { left: 135%; } }
@keyframes progressGrow { from { transform: scaleX(0); transform-origin: left; } }
@keyframes orbitArrive { from { opacity: 0; transform: scale(.72) rotate(-35deg); } }
@keyframes levelPulse { 0%, 100% { opacity: .35; transform: scale(.96); } 50% { opacity: .8; transform: scale(1.04); } }
@keyframes cycleGlow { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes todayPulse { 0%, 100% { transform: scale(.95); } 50% { transform: scale(1.08); } }
@keyframes rewardArrive { from { opacity: 0; transform: translateY(13px); } }
@keyframes rewardSheen { 0%, 63% { left: -65%; } 86%, 100% { left: 135%; } }
@keyframes rewardFloat { 0%, 100% { transform: translateY(1px) rotate(-.7deg); } 50% { transform: translateY(-5px) rotate(.8deg); } }
@keyframes rewardDot { 0%, 100% { opacity: .35; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.18); } }

/* Achievement unlock ceremony */
.achievement-reveal { --reward: var(--lime); position: fixed; z-index: 160; inset: 0; display: grid; place-items: center; padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom)); overflow: hidden; opacity: 0; isolation: isolate; transition: opacity .28s ease; }
.achievement-reveal.is-visible { opacity: 1; }
.achievement-reveal.is-leaving { opacity: 0; pointer-events: none; }
.reward-backdrop { position: absolute; z-index: -3; inset: 0; background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--reward) 15%, transparent), transparent 44%), rgba(7,12,9,.86); -webkit-backdrop-filter: blur(15px); backdrop-filter: blur(15px); }
.reward-backdrop::before { content: ""; position: absolute; inset: -20%; background: conic-gradient(from 20deg at 50% 45%, transparent 0 8%, rgba(255,255,255,.025) 9% 13%, transparent 14% 30%, rgba(255,255,255,.035) 31% 35%, transparent 36% 100%); animation: rewardBackdropTurn 14s linear infinite; }
.reward-wave { position: absolute; z-index: -1; left: 50%; top: 44%; width: 12px; height: 12px; }
.reward-wave i { position: absolute; inset: 0; border: 1px solid color-mix(in srgb, var(--reward) 70%, white); border-radius: 50%; opacity: 0; animation: rewardWave 1.65s cubic-bezier(.12,.75,.24,1) both; }
.reward-wave i:nth-child(2) { animation-delay: .15s; }
.reward-wave i:nth-child(3) { animation-delay: .3s; }
.reward-firework, .reward-splashes { position: absolute; z-index: -1; left: 50%; top: 43%; width: 1px; height: 1px; pointer-events: none; }
.reward-firework-left { left: 21%; top: 29%; transform: scale(.58); }
.reward-firework-right { left: 79%; top: 31%; transform: scale(.64); }
.reward-firework i, .reward-splashes i { position: absolute; left: calc(var(--size) * -.5); top: calc(var(--size) * -.5); width: var(--size); height: calc(var(--size) * 1.75); border-radius: 999px; background: var(--spark); box-shadow: 0 0 12px color-mix(in srgb, var(--spark) 75%, transparent); opacity: 0; transform-origin: 50% 0; animation: rewardSpark 1.05s cubic-bezier(.08,.7,.2,1) both; animation-delay: calc(.18s + var(--delay)); }
.reward-firework i:nth-child(3n) { height: var(--size); border-radius: 50%; }
.reward-firework-left i { animation-delay: calc(.46s + var(--delay)); }
.reward-firework-right i { animation-delay: calc(.59s + var(--delay)); }
.reward-splashes { z-index: 1; top: 52%; }
.reward-splashes i { height: calc(var(--size) * .72); border-radius: 70% 30% 65% 35%; animation-name: rewardSplash; animation-duration: 1.15s; animation-delay: calc(.31s + var(--delay)); }
.reward-reveal-card { position: relative; z-index: 2; width: min(100%, 372px); padding: 28px 25px 30px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--reward) 42%, transparent); border-radius: 36px; background: radial-gradient(circle at 50% 25%, color-mix(in srgb, var(--reward) 16%, transparent), transparent 46%), linear-gradient(150deg, rgba(32,47,37,.98), rgba(15,24,19,.98)); box-shadow: 0 32px 90px rgba(0,0,0,.52), inset 0 1px 0 rgba(255,255,255,.09); text-align: center; opacity: 0; transform: translateY(24px) scale(.66) rotate(-2.5deg); }
.achievement-reveal.is-visible .reward-reveal-card { animation: rewardCardReveal .8s cubic-bezier(.16,1.25,.3,1) .16s forwards; }
.reward-reveal-card::before { content: ""; position: absolute; width: 65%; height: 180%; left: -100%; top: -42%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.13), transparent); transform: rotate(20deg); animation: rewardCardSheen 1.25s ease .7s both; }
.reward-reveal-card::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(255,255,255,.035); border-radius: 28px; pointer-events: none; }
.reward-close { position: absolute; z-index: 4; top: 14px; right: 14px; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; background: rgba(8,14,10,.2); color: rgba(241,240,232,.7); font-size: 21px; font-weight: 300; line-height: 1; cursor: pointer; }
.reward-kicker { position: relative; z-index: 2; margin: 2px 0 13px !important; color: var(--reward) !important; font-size: 10px !important; font-weight: 750; letter-spacing: .18em; text-transform: uppercase; }
.reward-reveal-art { position: relative; z-index: 2; display: grid; place-items: center; width: 196px; height: 196px; margin: 0 auto 5px; }
.reward-reveal-art::before, .reward-reveal-art > i { content: ""; position: absolute; border-radius: 50%; }
.reward-reveal-art::before { width: 68%; aspect-ratio: 1; background: var(--reward); opacity: .17; filter: blur(26px); animation: rewardArtGlow 2s ease-in-out infinite; }
.reward-reveal-art > i { width: 84%; aspect-ratio: 1; border: 1px solid color-mix(in srgb, var(--reward) 36%, transparent); animation: rewardHalo 7s linear infinite; }
.reward-reveal-art > i::before, .reward-reveal-art > i::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--reward); box-shadow: 0 0 13px var(--reward); }
.reward-reveal-art > i::before { left: 13%; top: 8%; }
.reward-reveal-art > i::after { right: 5%; bottom: 22%; }
.reward-reveal-art img { position: relative; z-index: 2; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 19px 21px rgba(0,0,0,.34)); animation: rewardMedalLand .9s cubic-bezier(.16,1.28,.3,1) .24s both; }
.reward-reveal-card h2 { position: relative; z-index: 2; margin: 0 0 8px; font-family: var(--practice-title); font-size: clamp(31px, 9vw, 39px); font-weight: 520; letter-spacing: -.035em; }
.reward-reveal-card > p:not(.reward-kicker) { position: relative; z-index: 2; max-width: 270px; margin: 0 auto 20px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.reward-received { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 8px; border: 1px solid color-mix(in srgb, var(--reward) 34%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--reward) 8%, transparent); color: var(--reward); font-size: 10px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.reward-received i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--reward); color: #172019; font-size: 10px; font-style: normal; }

@keyframes rewardBackdropTurn { to { transform: rotate(360deg); } }
@keyframes rewardWave { 0% { opacity: .8; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -50%) scale(48); } }
@keyframes rewardSpark { 0% { opacity: 0; transform: rotate(var(--angle)) translateY(0) scale(.2); } 10% { opacity: 1; } 72% { opacity: 1; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) scale(.78); } }
@keyframes rewardSplash { 0% { opacity: 0; transform: rotate(var(--angle)) translateY(0) scale(.25); } 15% { opacity: .95; } 100% { opacity: 0; transform: rotate(var(--angle)) translateY(calc(var(--distance) * -1)) rotate(130deg) scale(.55); } }
@keyframes rewardCardReveal { 0% { opacity: 0; transform: translateY(24px) scale(.66) rotate(-2.5deg); } 63% { opacity: 1; transform: translateY(-5px) scale(1.025) rotate(.4deg); } 100% { opacity: 1; transform: none; } }
@keyframes rewardCardSheen { 0% { left: -100%; opacity: 0; } 25% { opacity: 1; } 100% { left: 145%; opacity: 0; } }
@keyframes rewardArtGlow { 0%, 100% { opacity: .12; transform: scale(.88); } 50% { opacity: .24; transform: scale(1.08); } }
@keyframes rewardHalo { to { transform: rotate(360deg); } }
@keyframes rewardMedalLand { 0% { opacity: 0; transform: translateY(-34px) scale(.58) rotate(-8deg); } 70% { opacity: 1; transform: translateY(4px) scale(1.055) rotate(1deg); } 100% { opacity: 1; transform: none; } }

.about-card { margin: 14px 0; padding: 22px; border: 1px solid var(--line); border-radius: 24px; background: rgba(30,42,35,.62); }
.about-card h3 { margin-bottom: 11px; }.about-card p { margin: 0; color: var(--muted); line-height: 1.6; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border: 0; }.setting-row small { display: block; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.4; }
.switch { position: relative; width: 48px; height: 28px; border: 0; border-radius: 99px; background: #38423b; cursor: pointer; }
.switch::after { content: ""; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); transition: transform .25s ease; }
.switch.on { background: var(--lime); }.switch.on::after { transform: translateX(20px); background: var(--ink); }
.account-summary .secondary, .cycle-card .secondary { width: 100%; margin-top: 17px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin: 26px 0 18px; padding: 4px; border: 1px solid var(--line); border-radius: 17px; }
.auth-tabs button { min-height: 43px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); cursor: pointer; }
.auth-tabs button.active { background: rgba(241,240,232,.09); color: var(--paper); }
.auth-form { display: grid; gap: 15px; }
.auth-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; }
.auth-form input { min-height: 53px; padding: 12px 14px; }
.form-error { min-height: 19px; margin: -2px 0 0; color: var(--rose); font-size: 13px; }
.auth-form button:disabled { opacity: .5; cursor: wait; }
.disclaimer { margin-top: 24px; padding: 16px; border-left: 2px solid var(--amber); color: var(--muted); font-size: 13px; line-height: 1.6; }
.toast { position: fixed; z-index: 100; left: 50%; bottom: 96px; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 13px; background: var(--paper); color: var(--ink); font-size: 14px; opacity: 0; pointer-events: none; transform: translate(-50%, 10px); transition: .3s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 660px) {
  #view { padding-inline: 24px; }
  .protocol-list { grid-template-columns: 1fr 1fr; }
  .protocol-card:first-child { grid-column: 1 / -1; }
  .feedback-card { margin-bottom: 18px; }
}

@media (min-width: 980px) {
  body {
    background:
      radial-gradient(circle at 78% 8%, rgba(216, 229, 156, .09), transparent 32rem),
      radial-gradient(circle at 8% 82%, rgba(156, 203, 212, .055), transparent 29rem),
      #0d130f;
  }

  .ambient i:nth-child(1) { width: 48rem; height: 48rem; right: -18rem; top: -8rem; }
  .ambient i:nth-child(2) { width: 34rem; height: 34rem; left: -22rem; top: 44%; }
  .ambient i:nth-child(3) { width: 25rem; height: 25rem; right: 3%; bottom: -16rem; }

  .app-shell {
    display: grid;
    grid-template-columns: 204px minmax(0, 1fr);
    grid-template-rows: 80px minmax(calc(100dvh - 80px), auto);
    width: min(calc(100% - 32px), 1400px);
    min-height: 100dvh;
    border-inline: 1px solid rgba(241, 240, 232, .055);
    background: rgba(17, 24, 20, .34);
  }

  .topbar {
    grid-column: 1 / -1;
    grid-row: 1;
    height: 80px;
    padding: 0 30px;
    border-bottom: 1px solid var(--line);
    background: rgba(15, 22, 18, .78);
  }

  .brand { font-size: 25px; }
  .top-actions { gap: 10px; }
  .icon-button { width: 44px; height: 44px; }

  #view {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    min-width: 0;
    padding: 34px clamp(34px, 4vw, 64px) 72px;
  }

  .bottom-nav {
    position: sticky;
    grid-column: 1;
    grid-row: 2;
    align-self: start;
    left: auto;
    top: 96px;
    bottom: auto;
    grid-template-columns: 1fr;
    gap: 7px;
    width: auto;
    margin: 0;
    padding: 24px 16px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    transform: none;
  }

  .bottom-nav::before {
    content: "Навигация";
    padding: 0 13px 8px;
    color: #707a71;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
  }

  .bottom-nav::after {
    content: "";
    position: fixed;
    top: 80px;
    bottom: 0;
    width: 1px;
    margin-left: 187px;
    background: linear-gradient(var(--line), transparent 85%);
    pointer-events: none;
  }

  .bottom-nav button {
    grid-template-columns: 28px 1fr;
    gap: 11px;
    justify-items: start;
    min-height: 56px;
    padding: 0 13px;
    border-radius: 15px;
    font-size: 14px;
    text-align: left;
  }

  .bottom-nav button span { font-size: 20px; }
  .bottom-nav button.active { background: rgba(241, 240, 232, .075); }

  .home-intro { padding: 44px 4px 34px; }
  .home-intro h1 { max-width: 760px; margin-bottom: 18px; font-size: clamp(58px, 5vw, 78px); }
  .home-intro > p:last-child { max-width: 500px; font-size: 19px; }
  .cover-shell { margin: 0; }
  .practice-carousel {
    --cover-size: clamp(310px, 28vw, 390px);
    gap: 24px;
    padding-top: 10px;
    padding-bottom: 26px;
  }
  .practice-cover { border-radius: 36px; }
  .cover-meta { left: 28px; top: 27px; }
  .cover-symbol { right: 25px; top: 24px; width: 44px; height: 44px; }
  .cover-title { right: 28px; bottom: 29px; left: 28px; font-size: 36px; }
  .carousel-controls { justify-content: center; }
  .program-link { grid-template-columns: 60px minmax(0, 1fr) auto; max-width: 620px; margin: 30px auto 0; padding: 16px; }
  .program-badge { width: 60px; height: 60px; border-radius: 19px; }
  .program-badge b { font-size: 28px; }
  .program-copy strong { font-size: 19px; }
  .program-action { font-size: 14px; }

  .hero {
    display: grid;
    grid-template-columns: minmax(400px, 1fr) minmax(310px, 410px);
    grid-template-rows: auto auto 1fr;
    column-gap: clamp(36px, 6vw, 86px);
    align-items: end;
    min-height: 350px;
    padding: 42px 4px 58px;
  }

  .hero .eyebrow,
  .hero h1,
  .hero .lede { grid-column: 1; }
  .hero .eyebrow { align-self: end; }
  .hero h1 { margin-bottom: 22px; font-size: clamp(66px, 6vw, 92px); }
  .hero .lede { margin-bottom: 0; font-size: 19px; }
  .hero .quick-start {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: end;
    min-height: 154px;
    margin: 0 0 2px;
    padding: 24px;
    border-radius: 28px;
    background:
      radial-gradient(circle at 92% 10%, rgba(216, 229, 156, .16), transparent 9rem),
      rgba(216, 229, 156, .065);
  }
  .hero .quick-start strong { max-width: 250px; font-size: 26px; line-height: 1.08; }
  .hero .quick-start small { display: block; max-width: 245px; margin-top: 9px; font-size: 14px; }
  .hero .round-button { width: 58px; height: 58px; }

  .section-head { margin-top: 18px; }
  .section-head h2 { font-size: 32px; }
  .goal-strip { margin: 0 0 26px; padding: 5px 0 9px; }
  .goal-pill { padding: 11px 17px; }

  .protocol-list { gap: 15px; }
  .protocol-card {
    min-height: 146px;
    padding: 22px;
    border-radius: 27px;
  }
  .protocol-card:first-child { min-height: 156px; }
  .protocol-symbol { width: 58px; height: 82px; }
  .protocol-card h3 { font-size: 27px; }
  .protocol-card p { font-size: 15px; white-space: normal; }

  .detail-screen {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    column-gap: clamp(44px, 6vw, 84px);
    align-items: start;
  }
  .detail-screen > .back-button { grid-column: 1 / -1; }
  .detail-screen > .detail-hero,
  .detail-screen > .detail-facts,
  .detail-screen > .mode-picker { grid-column: 1; }
  .detail-screen > .step-preview {
    grid-column: 2;
    grid-row: 2 / span 3;
    width: 100%;
    margin: 8px 0 22px;
    padding: 26px 28px 18px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(30, 42, 35, .48);
  }
  .detail-screen > .sticky-cta { grid-column: 1; }
  .detail-hero { grid-template-columns: 92px minmax(0, 1fr); gap: 23px; padding-top: 18px; }
  .detail-mark { width: 92px; height: 92px; border-radius: 29px; }
  .detail-mark i { width: 76px; height: 76px; }
  .detail-mark i:nth-child(2) { width: 45px; height: 45px; }
  .detail-mark span { width: 40px; height: 40px; font-size: 22px; }
  .detail-hero h1 { max-width: 620px; font-size: clamp(43px, 3.8vw, 58px); }
  .detail-hero .lede { margin-top: 10px; font-size: 18px; }
  .detail-facts { margin: 12px 0 26px; }
  .mode-picker { max-width: 650px; }
  .step-preview-head h3 { font-size: 23px; }
  .step-line { padding: 11px 0; font-size: 15px; }
  .sticky-cta { position: static; padding: 0; background: none; }
  .detail-start { max-width: 560px; }

  body[data-route="checkin"] .app-shell,
  body[data-route="complete"] .app-shell,
  body[data-route="account"] .app-shell,
  body[data-route="player"] .app-shell {
    display: block;
    width: min(calc(100% - 32px), 1180px);
  }
  body[data-route="checkin"] #view,
  body[data-route="complete"] #view,
  body[data-route="account"] #view {
    width: 100%;
    padding-inline: clamp(40px, 8vw, 110px);
  }
  body[data-route="player"] #view {
    width: 100%;
    padding: 0 clamp(40px, 8vw, 110px);
  }

  .checkin { max-width: 650px; padding-top: 38px; }
  .checkin-intro { grid-template-columns: 78px minmax(0, 1fr); gap: 20px; }
  .checkin-mark { width: 78px; height: 78px; border-radius: 25px; }
  .checkin-intro h1 { font-size: 50px; }
  .checkin-intro .lede { margin-top: 8px; font-size: 18px; }
  .checkin-card { padding: 27px 29px; }
  .checkin .primary, .checkin .secondary { max-width: 100%; }

  .player-screen {
    max-width: 1060px;
    height: 100dvh;
    min-height: 680px;
    margin: 0 auto;
    padding: 24px 0 22px;
  }
  .player-stage {
    display: grid;
    grid-template-columns: minmax(280px, .88fr) minmax(360px, 1.12fr);
    grid-template-rows: auto auto;
    column-gap: clamp(52px, 8vw, 110px);
    row-gap: 0;
    align-content: center;
    align-items: center;
    min-height: 0;
    margin: 20px 0 18px;
    padding: 42px 46px;
    border-radius: 38px;
    text-align: left;
  }
  .stage-visual { grid-column: 1; grid-row: 1 / 3; height: 230px; min-height: 230px; align-self: center; }
  .stage-copy { grid-column: 2; grid-row: 1; min-height: 0; align-items: flex-start; align-self: end; text-align: left; }
  .stage-copy .eyebrow { margin-bottom: 14px; }
  .stage-copy h1 { max-width: 620px; margin: 0 0 18px; font-size: clamp(50px, 4.4vw, 68px); }
  .player-stage.title-long .stage-copy h1 { max-width: 620px; font-size: clamp(43px, 3.8vw, 58px); }
  .stage-copy .instruction { max-width: 570px; margin: 0; font-size: 18px; }
  .stage-timing { grid-column: 2; grid-row: 2; align-self: start; justify-items: start; margin-top: 22px; }
  .stage-timer { width: 126px; height: 126px; margin: 0 0 7px; }
  .timer { font-size: 37px; }
  .stage-timer small { max-width: 90px; font-size: 10px; }
  .pulse-field { width: 184px; height: 184px; margin: 0 auto; }
  .stage-visual .body-glyph { margin: 0 auto; transform: scale(.82); }
  .stage-visual > .grounding-visual, .stage-visual > .sigh-visual, .stage-visual > .silence-visual { transform: scale(1.35); }
  .stage-visual.has-body-part { margin-bottom: 0; }
  .body-part-visual { width: min(100%, 220px); height: 172px; margin: 0 auto; }
  .player-controls { width: min(100%, 620px); margin: 0 auto; }

  .stats-hero { max-width: 820px; padding: 46px 2px 34px; }
  .stats-hero h1 { font-size: clamp(64px, 5.5vw, 88px); }
  .stats-hero .lede { font-size: 19px; }
  .progress-hero-card { grid-template-columns: minmax(0, 1fr) 156px; gap: 48px; padding: 40px 43px; border-radius: 38px; }
  .progress-hero-copy h1 { max-width: 720px; font-size: clamp(66px, 5.6vw, 88px); }
  .progress-hero-copy > p:not(.eyebrow) { max-width: 540px; font-size: 18px; }
  .level-track { max-width: 610px; margin-top: 32px; }
  .level-orbit { width: 150px; height: 150px; }
  .level-orbit strong { font-size: 63px; }
  .stat-strip { margin-bottom: 36px; padding: 19px 12px; }
  .stat-strip strong { font-size: 34px; }
  .stat-strip span { font-size: 11px; }
  .cycle-card { padding: 28px 30px; }
  .cycle-days { grid-template-columns: repeat(14, minmax(36px, 1fr)); gap: 10px; }
  .achievement-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .achievement-card { grid-template-columns: 142px minmax(0, 1fr); min-height: 170px; padding: 12px 22px 12px 10px; }
  .achievement-art { width: 142px; height: 142px; }
  .achievement-copy h3 { font-size: 25px; }
  .achievement-copy p { font-size: 13px; }
  .journal-list, .history-list { grid-template-columns: 1fr 1fr; gap: 12px; }
  .journal-item, .history-item { min-height: 112px; padding: 19px; }

  .about-screen {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
  }
  .about-screen > .stats-hero { grid-column: 1 / -1; }
  .about-screen > .about-card { margin: 0; padding: 26px; }
  .about-screen > .about-card:nth-child(2) { grid-column: 1 / 5; }
  .about-screen > .about-card:nth-child(3) { grid-column: 5 / 9; }
  .about-screen > .about-card:nth-child(4) { grid-column: 9 / 13; }
  .about-screen > .disclaimer { grid-column: 1 / -1; margin-top: 10px; }

  .feedback-sheet { align-items: center; }
  .feedback-card { margin: 0; padding: 34px; }
  .toast { bottom: 34px; }
}

@media (min-width: 1280px) {
  .app-shell { grid-template-columns: 224px minmax(0, 1fr); }
  .bottom-nav::after { margin-left: 207px; }
  .protocol-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) and (max-height: 900px) {
  body[data-route="home"] #view { padding-top: 6px; }
  .home-intro { padding: 22px 3px 17px; }
  .home-intro h1 { margin-bottom: 9px; font-size: clamp(38px, 10.4vw, 45px); }
  .home-intro > p:last-child { font-size: 15px; line-height: 1.42; }
  .practice-carousel {
    --cover-size: min(70vw, 282px);
    gap: 15px;
    padding-top: 5px;
    padding-bottom: 14px;
  }
  .cover-title { bottom: 21px; font-size: clamp(26px, 7vw, 31px); }
  .program-link { margin-top: 15px; padding: 10px 11px; }
  .program-badge { width: 49px; height: 49px; border-radius: 15px; }

  body[data-route="detail"] #view { padding-top: 7px; }
  .detail-screen > .back-button { margin: 2px 0 15px; }
  .detail-hero { grid-template-columns: 58px minmax(0, 1fr); gap: 13px; padding: 0 0 12px; }
  .detail-mark { width: 58px; height: 58px; border-radius: 19px; }
  .detail-mark i { width: 47px; height: 47px; }
  .detail-mark i:nth-child(2) { width: 28px; height: 28px; }
  .detail-mark span { width: 29px; height: 29px; font-size: 16px; }
  .detail-heading .eyebrow { margin-bottom: 5px; font-size: 10px; }
  .detail-hero h1 { font-size: clamp(29px, 8.2vw, 37px); line-height: 1.02; }
  .detail-hero .lede { margin-top: 2px; font-size: 14px; line-height: 1.42; }
  .detail-facts { gap: 6px; margin: 2px 0 13px; }
  .fact { padding: 6px 9px; font-size: 11px; }
  .mode-picker { gap: 8px; margin: 12px 0 14px; }
  .mode-option { padding: 12px; border-radius: 16px; }
  .mode-option strong { margin-bottom: 3px; font-size: 18px; }
  .mode-option small { font-size: 11px; }
  .step-preview { margin: 12px 0 8px; padding: 13px 14px 8px; border-radius: 21px; }
  .step-preview-head { margin-bottom: 4px; }
  .step-preview-head h3 { font-size: 17px; }
  .step-preview-head > span { font-size: 8px; }
  .step-line { grid-template-columns: 25px 1fr; gap: 9px; padding: 6px 0; font-size: 12.5px; line-height: 1.3; }
  .step-line span:first-child { width: 23px; height: 23px; font-size: 9px; }
  .sticky-cta { bottom: calc(88px + env(safe-area-inset-bottom)); padding-top: 7px; }
  .detail-start { min-height: 52px; padding: 12px 17px; border-radius: 17px; }

  body[data-route="checkin"] #view { padding-top: 7px; }
  .checkin { padding-top: 2px; }
  .checkin .back-button { margin-bottom: 14px; }
  .checkin-intro { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .checkin-mark { width: 56px; height: 56px; border-radius: 19px; }
  .checkin-intro h1 { font-size: clamp(31px, 8.6vw, 38px); }
  .checkin-intro .lede { font-size: 14px; line-height: 1.42; }
  .checkin-card { margin: 16px 0 10px; padding: 16px; border-radius: 23px; }
  .scale-head { margin-bottom: 13px; }
  .scale-head label { font-size: 16px; }
  .scale-value { width: 49px; height: 49px; border-radius: 16px; font-size: 30px; }
  .safety-note { margin: 13px 0 14px; padding: 11px 12px; }
  .checkin-actions .primary { min-height: 52px; }

  .player-screen { height: calc(100dvh - 16px); padding-top: calc(5px + env(safe-area-inset-top)); }
  .player-stage { grid-template-rows: 104px minmax(140px, auto) auto; row-gap: 12px; margin: 9px 0 8px; padding: 17px 14px 12px; border-radius: 27px; }
  .stage-visual { height: 98px; min-height: 98px; }
  .body-part-visual { width: min(36vw, 132px); height: 84px; }
  .step-thighs .body-part-visual { width: min(42vw, 152px); height: 88px; }
  .grounding-visual, .sigh-visual, .silence-visual { transform: scale(.9); }
  .stage-copy { min-height: 140px; }
  .stage-copy .eyebrow { margin-bottom: 6px; font-size: 9px; }
  .stage-copy h1 { margin-bottom: 8px; font-size: clamp(31px, 8.6vw, 37px); }
  .player-stage.title-long .stage-copy h1 { font-size: clamp(27px, 7.3vw, 32px); }
  .instruction { font-size: 14px; line-height: 1.4; }
  .stage-timing { margin-top: 0; }
  .stage-timer { width: 92px; height: 92px; }
  .timer { font-size: 27px; }
  .phase-label { min-height: 16px; font-size: 10px; }
  .player-controls { padding: 4px; border-radius: 21px; }
  .player-controls .play { width: 54px; height: 54px; min-height: 54px; }
}

@media (max-width: 979px) and (min-height: 700px) {
  .player-stage { align-content: center; padding-bottom: clamp(88px, 14dvh, 120px); }
}

@media (max-width: 979px) {
  .player-stage.kind-breath,
  .player-stage.kind-silence { grid-template-rows: 178px minmax(124px, auto) auto; }
  .kind-breath .stage-visual,
  .kind-silence .stage-visual { height: 172px; min-height: 172px; }
  .kind-breath .stage-copy,
  .kind-silence .stage-copy { min-height: 124px; }
  .kind-breath .stage-copy h1,
  .kind-silence .stage-copy h1 { margin-bottom: 8px; font-size: clamp(30px, 8.1vw, 35px); }
  .kind-breath .stage-timing,
  .kind-silence .stage-timing { margin-top: 1px; }
  .kind-breath .stage-timer,
  .kind-silence .stage-timer { width: 78px; height: 78px; margin-bottom: 5px; opacity: .72; }
  .kind-breath .timer,
  .kind-silence .timer { font-size: 23px; }
  .kind-breath .stage-timer small,
  .kind-silence .stage-timer small { max-width: 62px; font-size: 8px; }
  .kind-silence .silence-visual { transform: none; }
}

@media (hover: hover) {
  .protocol-card:hover { border-color: color-mix(in srgb, var(--card-accent) 38%, transparent); background: rgba(35,49,40,.88); transform: translateY(-2px); }
  .practice-cover:hover { border-color: color-mix(in srgb, var(--card-accent) 48%, transparent); opacity: 1; transform: scale(.975); }
  .practice-cover.is-active:hover { transform: scale(1.015); }
  .program-link:hover { border-color: rgba(216, 229, 156, .42); background: rgba(216, 229, 156, .07); transform: translateY(-2px); }
  .program-link:hover .program-action { color: var(--lime); }
  .goal-pill:hover { color: var(--paper); }
  .bottom-nav button:hover { background: rgba(241, 240, 232, .045); color: var(--paper); }
  .mode-option:hover, .about-card:hover, .stat-box:hover { border-color: rgba(241, 240, 232, .2); }
  .achievement-card { transition: transform .35s var(--ease), border-color .35s ease, background .35s ease; }
  .achievement-card:hover { border-color: color-mix(in srgb, var(--reward) 38%, transparent); transform: translateY(-4px); }
  .achievement-card:hover .achievement-art img { transform: translateY(-4px) scale(1.035); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
