:root {
  --paper: #eee7d7;
  --paper-deep: #ddd3bd;
  --ink: #18241c;
  --muted: #667066;
  --moss: #526a56;
  --moss-deep: #263c2c;
  --clay: #ad6542;
  --amber: #d09a62;
  --night: #0b110d;
  --night-soft: #121b15;
  --night-ink: #f1eadb;
  --night-muted: #a5aea4;
  --line: rgba(24,36,28,.15);
  --soft: rgba(24,36,28,.07);
  --nav-surface: rgba(238,231,215,.91);
  --input-surface: rgba(255,255,255,.35);
  --radius: 28px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #101712;
  --paper-deep: #0a100c;
  --ink: #f1eadb;
  --muted: #aab4aa;
  --moss: #78937b;
  --moss-deep: #b8c9b7;
  --clay: #d5845e;
  --amber: #e0ad73;
  --night: #070b08;
  --night-soft: #0e1610;
  --night-ink: #f3ecde;
  --night-muted: #a8b1a7;
  --line: rgba(241,234,219,.14);
  --soft: rgba(241,234,219,.07);
  --nav-surface: rgba(12,18,14,.91);
  --input-surface: rgba(241,234,219,.06);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html {
  background: var(--paper);
  width: 100%;
  height: 100%;
}
body {
  margin: 0;
  width: 100%;
  min-width: 320px;
  min-height: 100dvh;
  min-height: 100svh;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
:root[data-theme="dark"] html,
:root[data-theme="dark"] body {
  background: var(--paper);
}
#invoke-app {
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
button { cursor: pointer; }
h1, h2, h3, p, blockquote { margin: 0; }
h1, h2, h3, blockquote, .serif {
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-weight: 400;
}
[hidden] { display: none !important; }
.opening-stage {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 90% 70% at 50% 18%, rgba(82, 106, 86, .22) 0%, transparent 58%),
    radial-gradient(ellipse 70% 55% at 70% 78%, rgba(173, 101, 66, .14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 70%, rgba(208, 154, 98, .1) 0%, transparent 50%),
    linear-gradient(180deg, #120e0a 0%, #0b110d 48%, #080c09 100%);
  pointer-events: none;
}
.opening-glow {
  position: absolute;
  left: 50%;
  top: 22%;
  width: min(92vw, 480px);
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%,
      rgba(224, 173, 115, .28) 0%,
      rgba(173, 101, 66, .12) 42%,
      transparent 72%);
  filter: blur(48px);
  opacity: .55;
}
.opening-vignette {
  position: absolute;
  inset: 0;
  opacity: .7;
  box-shadow: inset 0 0 min(22vw, 180px) rgba(8, 6, 4, .55);
  background: radial-gradient(ellipse 88% 70% at 50% 36%, transparent 0%, transparent 48%, rgba(8,6,4,.28) 100%);
}
.opening-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 100% 48% at 50% 18%, rgba(12,8,5,.08) 0%, rgba(12,8,5,.16) 52%, rgba(12,8,5,.32) 100%),
    linear-gradient(180deg, rgba(10,7,4,.04) 0%, rgba(10,7,4,.08) 38%, rgba(10,7,4,.42) 100%);
  opacity: 1;
}
.auth-view.is-entering {
  position: fixed;
  inset: 0;
  z-index: 50;
  padding: 0;
  pointer-events: none;
}
.auth-view.is-entering .auth-panel {
  visibility: hidden;
}
.auth-view.is-passed {
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s ease;
}
@media (prefers-reduced-motion: reduce) {
  .auth-view.is-passed {
    transition: none;
  }
  .auth-view.is-revealed .auth-panel {
    animation: none;
    transform: none;
    transition: none;
  }
}

.eyebrow {
  color: var(--clay);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
  border: 1px solid rgba(224,173,115,.38);
  border-radius: 50%;
  background: #0b110d;
  box-shadow: 0 8px 26px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,239,194,.2);
}
.brand-mark img { width: 78%; height: 78%; display: block; object-fit: contain; }
.brand-mark-large { width: 82px; height: 82px; box-shadow: 0 16px 48px rgba(0,0,0,.32), inset 0 0 0 1px rgba(255,239,194,.24); }
.auth-panel .brand-mark {
  margin: 0 auto 14px;
}

.auth-view {
  min-height: 100dvh;
  padding: 32px 20px 48px;
  color: var(--night-ink);
  display: grid;
  place-items: end center;
  position: relative;
  overflow: hidden;
  background: #140d08;
  isolation: isolate;
}
.auth-panel {
  width: min(100%, 520px);
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 26px 22px 22px;
  margin-bottom: max(5vh, 16px);
  border: 1px solid rgba(241,234,219,.12);
  border-radius: 24px;
  background: rgba(10,8,5,.52);
  box-shadow:
    0 18px 48px rgba(0,0,0,.3),
    0 2px 0 rgba(255,239,194,.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity .9s ease, transform .9s ease;
  will-change: transform, opacity;
}
.auth-view.is-revealed .auth-panel {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.auth-panel .eyebrow { margin-bottom: 10px; }
.auth-panel h1 {
  max-width: 480px;
  margin: 0 auto 18px;
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  line-height: .94;
  letter-spacing: -.05em;
  text-shadow: 0 2px 22px rgba(0,0,0,.45);
}
.auth-copy {
  max-width: 400px;
  margin: 0 auto 28px;
  color: rgba(241,234,219,.86);
  line-height: 1.65;
  text-shadow: 0 1px 14px rgba(0,0,0,.35);
}
.primary-action, .secondary-action {
  min-height: 54px;
  padding: 14px 20px;
  border-radius: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  font-weight: 500;
}
.primary-action { color: var(--paper); background: var(--ink); }
.primary-action:hover { filter: brightness(1.08); }
.secondary-action { color: inherit; background: transparent; border: 1px solid currentColor; }
.google-action {
  width: min(100%, 360px);
  background: var(--night-ink);
  color: var(--night);
  box-shadow: 0 12px 36px rgba(0,0,0,.35);
}
.google-action svg { width: 21px; height: 21px; }
.text-action {
  display: block;
  margin: 15px auto 22px;
  padding: 9px;
  border: 0;
  background: transparent;
  color: rgba(241,234,219,.78);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.privacy-note {
  color: rgba(168,177,167,.88);
  font-size: .78rem;
  text-shadow: 0 1px 10px rgba(0,0,0,.35);
}

.app-shell {
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  margin: 0;
  display: block;
  color: var(--night-ink);
  position: relative;
}
.app-shell.is-immersive .app-nav { display: none; }
.app-shell.is-immersive .screen-inner {
  padding-bottom: max(24px, env(safe-area-inset-bottom));
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: var(--paper); background: var(--clay); font-size: .8rem; font-weight: 500;
}

.screen {
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 6%, rgba(208,154,98,.18), transparent 27%),
    linear-gradient(155deg, var(--paper), var(--paper-deep));
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  transition: color .35s ease, background .35s ease;
}
:root[data-theme="dark"] .screen {
  background:
    radial-gradient(circle at 88% 6%, rgba(213,132,94,.12), transparent 29%),
    radial-gradient(circle at 8% 90%, rgba(120,147,123,.08), transparent 34%),
    linear-gradient(155deg, var(--paper), var(--paper-deep));
}
.screen-inner {
  width: 100%;
  min-height: 100dvh;
  min-height: 100svh;
  margin: 0;
  padding: calc(28px + env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  position: relative;
}
.topbar { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { margin-top: 3px; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.today-meta .wordmark { margin-top: 0; }
.icon-button {
  width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--soft);
  color: var(--ink); display: grid; place-items: center; font-size: .78rem; font-weight: 500;
}
.corner-action {
  position: absolute;
  z-index: 6;
  left: 38px;
  bottom: 36px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: var(--soft);
  display: grid;
  place-items: center;
  font-size: .84rem;
  font-weight: 500;
  box-shadow: 0 10px 28px rgba(0,0,0,.16);
}
.corner-action-labeled {
  width: auto;
  min-height: 52px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  grid-auto-flow: column;
  gap: 10px;
  font-size: .84rem;
  letter-spacing: .01em;
}
.screen-inner:has(.sticky-action):has(.corner-action) .corner-action {
  bottom: 36px;
}
.screen-inner:has(.sticky-action):has(.corner-action) .sticky-action {
  padding-inline-start: 68px;
}
.screen-inner:has(.corner-action):not(:has(.sticky-action)) {
  padding-bottom: 100px;
}
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.theme-button { position: relative; font-size: 1.1rem; line-height: 1; }
.theme-button:hover { background: var(--line); }
.page-copy { margin-top: 26px; }
.page-copy h1, .practice-title { margin-top: 9px; font-size: clamp(3rem, 8vw, 4.3rem); line-height: .92; letter-spacing: -.05em; }
.page-copy h1 .headline-phrase {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.page-copy h1 .headline-article,
.page-copy h1 .headline-word {
  transition: opacity .28s ease;
}
.page-copy h1 .headline-article.is-out,
.page-copy h1 .headline-word.is-out { opacity: 0; }
.page-copy h1 .headline-article.is-in,
.page-copy h1 .headline-word.is-in { opacity: 1; }
.page-copy h1 .headline-article {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.page-copy h1 .headline-word {
  color: #c45a45;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
:root[data-theme="dark"] .page-copy h1 .headline-word {
  color: #e06a55;
}
.page-copy h1 .headline-after {
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
}
.intro { margin-top: 16px; max-width: 440px; color: var(--muted); line-height: 1.6; }
.filter-row, .reflection-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pill {
  min-height: 42px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: transparent;
}
.pill.selected { color: var(--paper); background: var(--moss); border-color: var(--moss); }
.difficulty-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 22px;
}
.difficulty-tab {
  min-height: 40px; padding: 8px 8px;
  width: 100%;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); background: transparent;
  font-size: .8rem; letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, opacity .2s ease;
}
.difficulty-tab.selected {
  color: var(--ink);
  background: color-mix(in srgb, var(--moss) 42%, transparent);
  border-color: var(--moss);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--moss) 70%, transparent);
  font-weight: 500;
  opacity: 1;
}
.difficulty-tab.is-locked {
  opacity: .55;
  border-style: dashed;
}
.difficulty-tab.is-locked.selected {
  opacity: 1;
  color: var(--ink);
  background: var(--soft);
  border-style: solid;
  border-color: var(--moss-deep);
  box-shadow: inset 0 0 0 1px rgba(120,147,123,.35);
}
.technique-stage {
  position: relative;
  margin-top: 18px;
}
.stage-lock-banner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  color: var(--muted);
}
.stage-lock-banner .stage-lock-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(241,234,219,.06);
  color: var(--ink);
}
.stage-lock-banner p {
  margin: 0;
  font-size: .92rem;
  line-height: 1.45;
  color: var(--ink);
}
.technique-stage.is-locked .technique-pick {
  opacity: 1;
}
.technique-card.is-preview {
  opacity: .78;
  cursor: default;
  filter: grayscale(.18);
}
.technique-card-body {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 5px;
  align-content: center;
}
.technique-card .technique-mark {
  flex: 0 0 auto;
  align-self: center;
  width: 72px;
  height: 72px;
  border-color: rgba(196, 142, 72, .42);
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(241, 234, 219, .04),
    0 0 28px rgba(196, 142, 72, .18);
}
.technique-card:not(.is-preview) .technique-mark {
  animation: none;
}
.technique-card[data-intent="calming"] .technique-mark {
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(120, 147, 123, .12),
    0 0 30px rgba(120, 147, 123, .28);
}
.technique-card[data-intent="releasing"] .technique-mark {
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(208, 154, 98, .14),
    0 0 30px rgba(208, 154, 98, .3);
}
.technique-card[data-intent="activating"] .technique-mark {
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(224, 173, 115, .16),
    0 0 30px rgba(224, 173, 115, .28);
}
.technique-card .technique-mark-icon {
  padding: 3px;
}
.technique-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}
.technique-card-title strong {
  min-width: 0;
  flex: 1 1 auto;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: 1.32rem;
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.12;
}
.technique-card-lock {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  color: var(--muted);
  opacity: .85;
}
.technique-card-done {
  flex: 0 0 auto;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 10px color-mix(in srgb, var(--clay) 55%, transparent);
}
.technique-pick {
  display: grid; gap: 12px;
}
.technique-stage .intent-hint {
  margin-top: 16px;
}
.technique-card {
  --card-glow: rgba(120,147,123,.22);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  min-height: 112px;
  padding: 18px 18px 16px 16px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 26px;
  color: var(--ink);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--soft) 70%, transparent), transparent 58%),
    var(--soft);
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: center;
  transition:
    background .32s ease,
    border-color .32s ease,
    color .28s ease,
    transform .28s cubic-bezier(.22,.61,.36,1),
    box-shadow .32s ease,
    opacity .28s ease,
    filter .28s ease;
  animation: technique-card-in .5s cubic-bezier(.22,.61,.36,1) both;
  box-shadow: inset 0 1px 0 rgba(241,234,219,.04);
}
.technique-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -18%;
  top: -35%;
  width: 58%;
  height: 170%;
  background: radial-gradient(circle at 40% 45%, var(--card-glow), transparent 68%);
  opacity: .9;
  pointer-events: none;
}
.technique-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(241,234,219,.035) 42%, transparent 68%);
  pointer-events: none;
}
.technique-card > * {
  position: relative;
  z-index: 1;
}
.technique-pick .technique-card:nth-child(1) { animation-delay: .04s; }
.technique-pick .technique-card:nth-child(2) { animation-delay: .1s; }
.technique-pick .technique-card:nth-child(3) { animation-delay: .16s; }
.technique-pick .technique-card:nth-child(4) { animation-delay: .22s; }
.technique-card[data-intent="calming"] {
  --card-glow: rgba(120,147,123,.34);
  background:
    linear-gradient(145deg, rgba(120,147,123,.2), transparent 62%),
    linear-gradient(320deg, rgba(82,106,86,.08), transparent 48%),
    var(--soft);
  border-color: rgba(120,147,123,.28);
}
.technique-card[data-intent="releasing"] {
  --card-glow: rgba(208,154,98,.32);
  background:
    linear-gradient(145deg, rgba(208,154,98,.2), transparent 62%),
    linear-gradient(320deg, rgba(173,101,66,.08), transparent 48%),
    var(--soft);
  border-color: rgba(208,154,98,.28);
}
.technique-card[data-intent="activating"] {
  --card-glow: rgba(224,173,115,.3);
  background:
    linear-gradient(145deg, rgba(241,234,219,.16), transparent 62%),
    linear-gradient(320deg, rgba(224,173,115,.1), transparent 48%),
    var(--soft);
  border-color: rgba(224,173,115,.26);
}
.technique-card:not(.is-preview):hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(241,234,219,.06),
    0 14px 28px rgba(0,0,0,.16);
}
.technique-card:not(.is-preview):active {
  transform: translateY(0) scale(.985);
}
.technique-card.is-done {
  border-color: color-mix(in srgb, var(--clay) 35%, var(--line));
}
.technique-card small {
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.4;
}
.technique-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 4px;
  min-width: 0;
}
.technique-card-meta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: .88;
}
.effect-chips {
  display: flex; flex-wrap: wrap; gap: 5px; min-width: 0;
}
.effect-chip {
  padding: 3px 8px; border-radius: 999px;
  font-size: .64rem; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent;
}
.effect-chip[data-effect="release"] {
  color: #8a4f2c; background: rgba(184,106,63,.16); border-color: rgba(184,106,63,.28);
}
.effect-chip[data-effect="ease"] {
  color: #6a7a55; background: rgba(148,168,120,.16); border-color: rgba(148,168,120,.28);
}
.effect-chip[data-effect="focus"] {
  color: #3d5a6c; background: rgba(90,130,150,.16); border-color: rgba(90,130,150,.28);
}
.effect-chip[data-effect="settle"] {
  color: #3f6a62; background: rgba(95,150,140,.16); border-color: rgba(95,150,140,.28);
}
.effect-chip[data-effect="steady"] {
  color: #3f5a44; background: rgba(82,106,86,.16); border-color: rgba(82,106,86,.28);
}
.effect-chip[data-effect="rest"] {
  color: #4a4a6a; background: rgba(110,110,150,.16); border-color: rgba(110,110,150,.28);
}
.effect-chip[data-effect="energy"] {
  color: #8a5a28; background: rgba(212,160,80,.18); border-color: rgba(212,160,80,.3);
}
.effect-chip[data-effect="clarity"] {
  color: #4a6570; background: rgba(160,190,200,.18); border-color: rgba(160,190,200,.3);
}
:root[data-theme="dark"] .effect-chip[data-effect="release"] {
  color: #e8b67a; background: rgba(208,154,98,.16); border-color: rgba(208,154,98,.32);
}
:root[data-theme="dark"] .effect-chip[data-effect="ease"] {
  color: #c5d4a8; background: rgba(148,168,120,.14); border-color: rgba(148,168,120,.28);
}
:root[data-theme="dark"] .effect-chip[data-effect="focus"] {
  color: #9ec0d0; background: rgba(90,130,150,.16); border-color: rgba(90,130,150,.3);
}
:root[data-theme="dark"] .effect-chip[data-effect="steady"] {
  color: #a8c4ad; background: rgba(120,147,123,.16); border-color: rgba(120,147,123,.3);
}
:root[data-theme="dark"] .effect-chip[data-effect="rest"] {
  color: #b4b4d4; background: rgba(110,110,150,.16); border-color: rgba(110,110,150,.3);
}
:root[data-theme="dark"] .effect-chip[data-effect="settle"] {
  color: #9fd0c4; background: rgba(95,150,140,.16); border-color: rgba(95,150,140,.3);
}
:root[data-theme="dark"] .effect-chip[data-effect="energy"] {
  color: #f0c888; background: rgba(212,160,80,.16); border-color: rgba(212,160,80,.32);
}
:root[data-theme="dark"] .effect-chip[data-effect="clarity"] {
  color: #c8dde4; background: rgba(160,190,200,.14); border-color: rgba(160,190,200,.28);
}
.intent-hint { margin-top: 22px; color: var(--muted); line-height: 1.5; }
@keyframes technique-card-in {
  from { opacity: 0; transform: translateY(14px) scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes technique-mark-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.045); }
}
:root[data-theme="dark"] .carry-card {
  background: linear-gradient(135deg, rgba(120,147,123,.14), rgba(213,132,94,.08));
  box-shadow: inset 0 0 0 1px rgba(241,234,219,.035);
}
.meta-row { display: flex; flex-wrap: wrap; gap: 7px 15px; margin-top: 15px; color: var(--muted); font-size: .76rem; }

.editorial { margin: 24px 0 20px; font-size: 2.2rem; line-height: 1.06; }
.technique-list { margin-top: 18px; }
.technique-row {
  width: 100%; min-height: 86px; padding: 12px 2px; border: 0; border-top: 1px solid var(--line);
  color: var(--ink); background: transparent; display: grid; grid-template-columns: 48px 1fr auto;
  align-items: center; gap: 13px; text-align: left;
}
.technique-row:last-child { border-bottom: 1px solid var(--line); }
.technique-row.is-locked {
  opacity: .55;
  cursor: default;
}
.technique-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  background: #0a130e;
  border: 1px solid rgba(196, 142, 72, .28);
  box-shadow: inset 0 0 12px rgba(0, 0, 0, .48), 0 0 0 1px rgba(241, 234, 219, .025);
  display: grid;
  place-items: center;
  color: var(--muted);
}
.technique-mark-icon {
  width: 100%;
  height: 100%;
  padding: 2px;
  object-fit: contain;
  display: block;
}
.technique-mark.is-locked .technique-mark-icon {
  opacity: .32;
  filter: saturate(.35) brightness(.62);
}
.technique-mark-lock {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(241, 234, 219, .82);
  background: rgba(10, 19, 14, .22);
}
.technique-mark-lock svg { display: block; }
.technique-row strong { display: block; font-weight: 500; }
.technique-row small { display: block; margin-top: 4px; color: var(--muted); font-size: .76rem; }
.meta-chip { padding: 6px 9px; border-radius: 999px; color: var(--moss-deep); background: rgba(82,106,86,.13); font-size: .68rem; white-space: nowrap; }
:root[data-theme="dark"] .meta-chip { background: rgba(120,147,123,.14); }
.back-action { min-height: 44px; padding: 0; border: 0; background: transparent; color: var(--muted); }
.detail-hero { margin-top: 28px; }
.detail-hero h1 { margin-top: 9px; font-size: 4rem; line-height: .9; letter-spacing: -.05em; }
.rhythm {
  height: 68px; margin: 25px 0 18px; border-radius: 19px; display: grid; overflow: hidden;
  color: var(--paper);
}
.rhythm > span { display: flex; align-items: center; justify-content: center; gap: 8px; }
.rhythm .inhale { background: var(--moss); }
.rhythm .hold { background: rgba(82,106,86,.45); color: var(--paper); }
.rhythm .exhale { background: var(--clay); }
.rhythm b { font-size: 1.5rem; font-weight: 500; }
.rhythm small { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.lens-tabs { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); }
.lens-tabs button { min-height: 48px; border: 0; border-bottom: 2px solid transparent; color: var(--muted); background: transparent; }
.lens-tabs button.active { color: var(--ink); border-bottom-color: var(--clay); }
.lens-copy { min-height: 142px; padding: 19px 2px; }
.lens-copy h2 { font-size: 1.45rem; line-height: 1.2; }
.lens-copy p { margin-top: 9px; color: var(--muted); line-height: 1.55; }
.spec-grid { display: grid; grid-template-columns: repeat(3,1fr); margin: 5px 0 18px; }
.spec-grid div { padding: 10px 14px; border-inline-start: 1px solid var(--line); }
.spec-grid div:first-child { padding-inline-start: 0; border-inline-start: 0; }
.spec-grid small { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; }
.spec-grid strong { display: block; margin-top: 5px; font-size: .8rem; font-weight: 500; }
.safety-note { color: var(--muted); font-size: .76rem; line-height: 1.5; }
.sticky-action { margin-top: auto; padding-top: 24px; }
.sticky-action .primary-action { width: 100%; }

.setup-technique { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 14px; padding: 18px 0 22px; border-bottom: 1px solid var(--line); }
.setup-technique .technique-mark { width: 64px; height: 64px; }
.setup-technique h2 { margin-top: 3px; font-size: 1.85rem; letter-spacing: -.03em; }
.practice-screen .back-action { margin-top: 4px; }
.fieldset { margin: 24px 0 0; padding: 0; border: 0; }
.fieldset legend { margin-bottom: 12px; font-family: Iowan Old Style, Baskerville, serif; font-size: 1.25rem; }
.duration-row { gap: 10px; }
.duration-choice {
  position: relative;
  min-height: 92px;
  border-radius: 20px;
  gap: 4px;
}
.duration-row.is-compact {
  gap: 8px;
}
.duration-row.is-compact .duration-choice {
  min-height: 54px;
  border-radius: 15px;
  padding: 8px 6px;
}
.duration-choice strong { font-size: 1.85rem; font-weight: 500; letter-spacing: -.04em; }
.duration-row.is-compact .duration-choice strong {
  font-size: 1.2rem;
  letter-spacing: -.02em;
}
.duration-row.is-compact .duration-choice span {
  font-size: .62rem;
}
.duration-choice.is-locked {
  opacity: .55;
  cursor: default;
  border-style: dashed;
}
.duration-lock {
  position: absolute;
  top: 10px;
  right: 10px;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.duration-row.is-compact .duration-lock {
  top: 6px;
  right: 6px;
}
.feedback-fieldset { margin-top: 22px; }
.feedback-fieldset .reflection-row { margin-top: 0; }
.feedback-fieldset + .feedback-fieldset { margin-top: 18px; }
.choice-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.choice {
  min-height: 70px; border: 1px solid var(--line); border-radius: 17px; color: var(--muted); background: transparent;
  display: grid; place-items: center; align-content: center;
}
.choice strong { font-size: 1.3rem; font-weight: 500; }
.choice span { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }
.choice.selected { color: var(--paper); border-color: var(--moss); background: var(--moss); }
.settings-group {
  margin-top: 28px;
}
.settings-group-head h2 {
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(1.45rem, 4.5vw, 1.75rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.settings-group-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
  max-width: 32em;
}
.settings-panel {
  margin-top: 14px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  border-radius: 22px;
  background: color-mix(in srgb, var(--soft) 92%, transparent);
  overflow: hidden;
}
.setting-row,
.setting-choice {
  width: 100%;
  min-height: 68px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  color: var(--ink);
  background: transparent;
  text-align: left;
}
.setting-row:first-child,
.settings-panel > .setting-choice:first-child,
.settings-panel > .setting-subhead:first-child,
.settings-panel > .setting-point:first-child > .setting-choice {
  border-top: 0;
}
.setting-point {
  border-top: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
}
.setting-point:first-child,
.setting-subhead + .setting-point {
  border-top: 0;
}
.setting-point > .setting-choice {
  border-top: 0;
}
.setting-point.is-open > .setting-choice.is-selected {
  background: transparent;
}
.setting-subpanel {
  margin: 0 16px 14px 20px;
  padding: 2px 0 4px 14px;
  border: 0;
  border-left: 1px solid color-mix(in srgb, var(--moss) 42%, var(--line));
  border-radius: 0;
  background: transparent;
  overflow: visible;
  animation: setting-subpanel-in .28s cubic-bezier(.22,.61,.36,1) both;
}
.setting-subpanel .setting-row,
.setting-subpanel .setting-choice,
.setting-subpanel .setting-subhead {
  border-top: 0;
  background: transparent;
}
.setting-subpanel .setting-row,
.setting-subpanel .setting-choice {
  min-height: 0;
  padding: 10px 0;
  gap: 12px;
}
.setting-subpanel .setting-row + .setting-choice,
.setting-subpanel .setting-choice + .setting-choice {
  border-top: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.setting-subpanel .setting-subhead {
  padding: 12px 0 4px;
  font-size: .62rem;
  letter-spacing: .12em;
}
.setting-subpanel .setting-label {
  gap: 2px;
}
.setting-subpanel .setting-label strong {
  font-size: .86rem;
}
.setting-subpanel .setting-label small {
  font-size: .7rem;
  line-height: 1.35;
}
.setting-subpanel .setting-choice.is-selected {
  background: transparent;
}
.setting-subpanel .setting-choice.is-selected .setting-label strong {
  color: color-mix(in srgb, var(--amber) 70%, var(--ink));
}
.setting-subpanel .switch {
  width: 42px;
  height: 26px;
  padding: 3px;
}
.setting-subpanel .switch i {
  width: 20px;
  height: 20px;
}
.setting-subpanel .switch.on i {
  transform: translateX(16px);
}
@keyframes setting-subpanel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.setting-label {
  display: grid;
  gap: 3px;
  min-width: 0;
  flex: 1 1 auto;
}
.setting-label strong {
  font-size: .92rem;
  font-weight: 500;
  line-height: 1.25;
}
.setting-label small {
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.4;
}
.setting-subhead {
  margin: 0;
  padding: 14px 16px 4px;
  border-top: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  color: var(--muted);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.setting-choice {
  cursor: pointer;
  transition: background .2s ease;
}
.setting-choice.is-selected {
  background: color-mix(in srgb, var(--moss) 12%, transparent);
}
.setting-check {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--muted) 55%, transparent);
}
.setting-choice.is-selected .setting-check {
  background: var(--moss);
  box-shadow: 0 0 10px color-mix(in srgb, var(--moss) 40%, transparent);
}
.sound-depth-row { transition: opacity .25s ease; }
.sound-depth-row.unavailable { opacity: .46; }
.switch-copy { display: grid; gap: 3px; }
.switch-copy strong { font-weight: 500; }
.switch-copy small { color: var(--muted); font-size: .76rem; }
.switch { width: 48px; height: 28px; padding: 3px; border: 0; border-radius: 999px; background: #7c827c; flex: 0 0 auto; }
.switch i { width: 22px; height: 22px; display: block; border-radius: 50%; background: var(--paper); transition: transform .2s ease; }
.switch.on { background: var(--moss); }
.switch.on i { transform: translateX(20px); }
.switch:disabled { cursor: default; }

.session-screen {
  height: 100dvh;
  height: 100svh;
  min-height: 100dvh;
  min-height: 100svh;
  max-height: 100dvh;
  max-height: 100svh;
  margin: calc(-28px - env(safe-area-inset-top)) calc(-1 * max(28px, env(safe-area-inset-right))) calc(-24px - env(safe-area-inset-bottom)) calc(-1 * max(28px, env(safe-area-inset-left)));
  padding: calc(26px + env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(28px, env(safe-area-inset-left));
  color: var(--night-ink);
  background:
    radial-gradient(circle at 50% 48%, rgba(82,106,86,.2), transparent 37%),
    var(--night);
  display: flex; flex-direction: column;
  position: relative; align-items: stretch;
  overflow: hidden;
  --session-glow: rgba(208,154,98,.65);
  --session-mist: rgba(208,154,98,.8);
  --session-mist-soft: rgba(173,101,66,.28);
  --drift-a: 19s;
  --drift-b: 23s;
}
.session-screen[data-intent="calming"] {
  background:
    radial-gradient(circle at 50% 46%, rgba(82,106,86,.28), transparent 40%),
    radial-gradient(circle at 18% 78%, rgba(129,148,126,.18), transparent 42%),
    var(--night);
  --session-glow: rgba(129,148,126,.55);
  --session-mist: rgba(150,168,146,.72);
  --session-mist-soft: rgba(82,106,86,.32);
  --drift-a: 22s;
  --drift-b: 28s;
}
.session-screen[data-intent="releasing"] {
  background:
    radial-gradient(circle at 50% 44%, rgba(173,101,66,.32), transparent 38%),
    radial-gradient(circle at 78% 72%, rgba(208,154,98,.16), transparent 44%),
    var(--night);
  --session-glow: rgba(208,154,98,.78);
  --session-mist: rgba(213,132,94,.84);
  --session-mist-soft: rgba(173,101,66,.34);
  --drift-a: 17s;
  --drift-b: 21s;
}
.session-screen[data-intent="activating"] {
  background:
    radial-gradient(circle at 50% 48%, rgba(241,234,219,.12), transparent 34%),
    radial-gradient(circle at 50% 52%, rgba(82,106,86,.18), transparent 48%),
    var(--night);
  --session-glow: rgba(241,234,219,.55);
  --session-mist: rgba(208,154,98,.7);
  --session-mist-soft: rgba(129,148,126,.28);
  --drift-a: 14s;
  --drift-b: 18s;
}
.session-screen.is-paused .field-layer.two,
.session-screen.is-paused .field-layer.three,
.session-screen.is-paused .breath-core,
.session-screen.is-paused .breath-field::before,
.session-screen.is-paused .breath-field::after,
.session-screen.is-paused .breath-atmosphere {
  animation-play-state: paused;
}
.session-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: relative; z-index: 3; }
.session-head strong { display: block; font-weight: 500; }
.session-head small { display: block; margin-top: 3px; color: var(--night-muted); }
.session-head-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.session-head button { color: var(--night-ink); background: rgba(241,234,219,.08); }
.session-head .icon-button.active { color: var(--night); background: var(--amber); }
.progress-track { height: 3px; margin-top: 17px; background: rgba(241,234,219,.12); position: relative; z-index: 3; overflow: hidden; border-radius: 999px; }
.progress-track i { display: block; height: 100%; width: 0; background: var(--amber); transition: width .25s linear; }
.breath-space {
  flex: 1;
  min-height: 0;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  overflow: visible;
  /* No isolation: WebKit clips filtered glow into a hard rectangle */
  isolation: auto;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
  --breath-fill: 0;
  --breath-ease: .2s linear;
  transition: opacity 1.4s ease;
}
.session-intro {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-content: start center;
  justify-items: center;
  align-content: start;
  gap: 6px;
  padding: calc(88px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent;
  pointer-events: none;
  /* Avoid backdrop-filter: on mobile WebKit it draws a hard rectangular edge */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: opacity .4s ease, transform .4s ease;
}
.session-intro.is-lung-idle {
  background: transparent;
}
.session-intro.is-done {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}
.session-intro-eyebrow {
  margin: 0;
  color: var(--night-muted, var(--muted));
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.session-intro-count {
  display: none;
}
.session-intro-label {
  color: var(--amber);
  font-size: clamp(.95rem, 3.2vw, 1.15rem);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.session-intro.is-begin .session-intro-label {
  color: var(--night-ink, var(--ink));
  font-family: Iowan Old Style, Baskerville, Georgia, serif;
  font-size: clamp(1.6rem, 6vw, 2.2rem);
  letter-spacing: -.02em;
  text-transform: none;
  animation: intro-pulse .7s ease;
}
.session-screen.is-intro .breath-field,
.session-screen.is-intro .cue {
  opacity: 1;
}
.session-screen.is-intro .cue span:empty {
  display: none;
}
@keyframes intro-pulse {
  from { opacity: .35; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}
.breath-atmosphere {
  position: absolute;
  z-index: 0;
  inset: -18%;
  pointer-events: none;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  /* Soft orbs only — no filter/blur (WebKit clips filtered layers into a hard rectangle). */
  background:
    radial-gradient(circle at 50% 48%,
      color-mix(in srgb, var(--session-glow) 34%, transparent) 0%,
      color-mix(in srgb, var(--session-mist-soft) 18%, transparent) 28%,
      transparent 62%),
    radial-gradient(circle at 30% 70%,
      color-mix(in srgb, var(--session-mist) 14%, transparent) 0%,
      transparent 46%);
  transform: scale(calc(0.72 + var(--breath-fill, 0) * 0.4));
  opacity: calc(0.3 + var(--breath-fill, 0) * 0.55);
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
  transition: transform var(--breath-ease), opacity var(--breath-ease);
}
.breath-field {
  width: min(92vw, 440px);
  aspect-ratio: 1;
  position: relative;
  z-index: 1;
  border: 0 !important;
  outline: none !important;
  background: transparent;
  box-shadow: none !important;
  overflow: visible;
  -webkit-tap-highlight-color: transparent;
  --breath-core-min: .7;
  --breath-core-span: .48;
  --breath-layer-min: .82;
  --breath-layer-span: .24;
  --breath-ease: .2s linear;
}
.breath-field::before,
.breath-field::after,
.field-layer, .breath-core {
  position: absolute;
  border: 0 !important;
  outline: none !important;
  /* Avoid border-radius:50% — mobile WebKit paints a hard circular limb */
  border-radius: 0;
  pointer-events: none;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
  filter: none;
  -webkit-mask-image: none;
  mask-image: none;
}
.breath-field::before,
.breath-field::after {
  content: "";
  inset: 0;
}

/* Outer atmospheric bloom — bleeds into room */
.breath-field::before {
  inset: -36%;
  background:
    radial-gradient(circle at 50% 48%,
      color-mix(in srgb, var(--session-glow) 36%, transparent) 0%,
      color-mix(in srgb, var(--session-mist-soft) 18%, transparent) 34%,
      transparent 72%);
  transform: scale(calc(0.68 + var(--breath-fill, 0) * 0.48));
  opacity: calc(0.34 + var(--breath-fill, 0) * 0.52);
  transition: transform var(--breath-ease), opacity var(--breath-ease);
}

/* Soft outer veil — no hard limb */
.breath-field::after {
  inset: -12%;
  background:
    radial-gradient(circle at 50% 50%,
      color-mix(in srgb, var(--session-glow) 12%, transparent) 0%,
      color-mix(in srgb, var(--session-mist-soft) 6%, transparent) 34%,
      transparent 70%);
  box-shadow: none !important;
  border: 0 !important;
  transform: scale(calc(0.82 + var(--breath-fill, 0) * 0.28));
  opacity: calc(0.22 + var(--breath-fill, 0) * 0.4);
  transition: transform var(--breath-ease), opacity var(--breath-ease);
}

.field-layer.one {
  inset: -2%;
  background:
    radial-gradient(circle at 50% 48%,
      color-mix(in srgb, var(--session-mist) 48%, transparent) 0%,
      transparent 68%);
  transform: scale(calc(0.68 + var(--breath-fill, 0) * 0.44));
  opacity: calc(0.32 + var(--breath-fill, 0) * 0.48);
  transition: transform var(--breath-ease), opacity var(--breath-ease);
}
.field-layer.two {
  inset: 6%;
  background:
    radial-gradient(circle at 42% 36%,
      color-mix(in srgb, var(--session-glow) 26%, transparent) 0%,
      transparent 48%),
    radial-gradient(circle at 50% 52%,
      color-mix(in srgb, var(--session-mist-soft) 52%, transparent) 0%,
      transparent 74%);
  transform: scale(calc(0.74 + var(--breath-fill, 0) * 0.38));
  opacity: calc(0.36 + var(--breath-fill, 0) * 0.46);
  transition: transform var(--breath-ease), opacity var(--breath-ease);
}
.field-layer.three {
  inset: 16%;
  background:
    radial-gradient(circle at 50% 50%,
      color-mix(in srgb, var(--session-mist-soft) 18%, transparent) 0%,
      color-mix(in srgb, var(--session-glow) 10%, transparent) 46%,
      transparent 82%);
  box-shadow: none !important;
  border: 0 !important;
  transform: scale(calc(0.82 + var(--breath-fill, 0) * 0.3));
  opacity: calc(0.24 + var(--breath-fill, 0) * 0.46);
  transition: transform var(--breath-ease), opacity var(--breath-ease);
}

/* Soft ember core — no stroked rim, fades into glow */
.breath-core {
  inset: 24%;
  background:
    radial-gradient(circle at 50% 48%,
      color-mix(in srgb, var(--session-mist) 18%, transparent) 0%,
      color-mix(in srgb, var(--session-glow) 12%, transparent) 40%,
      transparent 82%),
    radial-gradient(circle at 34% 30%,
      rgba(255, 248, 236, 0.18) 0%,
      rgba(255, 248, 236, 0.03) 34%,
      transparent 60%),
    radial-gradient(circle at 62% 68%,
      color-mix(in srgb, var(--session-glow) 16%, transparent) 0%,
      transparent 54%);
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transform: scale(calc(var(--breath-core-min) + var(--breath-fill, 0) * var(--breath-core-span)));
  opacity: calc(0.62 + var(--breath-fill, 0) * 0.28);
  transition: transform var(--breath-ease), opacity var(--breath-ease);
}
.breath-field[data-breath-phase^="hold"] .breath-core,
.breath-field[data-breath-phase^="retention"] .breath-core {
  animation: hum-shimmer 2.4s ease-in-out infinite;
}
.breath-field[data-breath-phase^="hold"]::after,
.breath-field[data-breath-phase^="retention"]::after {
  opacity: calc(0.4 + var(--breath-fill, 0) * 0.4);
}

/* Technique motion characters — timing still from --breath-fill */
.breath-space[data-breath-style="coherent-breathing"],
.breath-field[data-breath-style="coherent-breathing"] {
  --breath-core-min: .74;
  --breath-core-span: .4;
  --breath-layer-min: .84;
  --breath-layer-span: .2;
  --breath-ease: .2s linear;
}
.breath-space[data-breath-style="physiological-sigh"],
.breath-field[data-breath-style="physiological-sigh"] {
  --breath-core-min: .66;
  --breath-core-span: .54;
  --breath-layer-min: .76;
  --breath-layer-span: .3;
  --breath-ease: .18s ease-in-out;
}
.breath-space[data-breath-style="sleep-478"],
.breath-field[data-breath-style="sleep-478"] {
  --breath-core-min: .68;
  --breath-core-span: .5;
  --breath-layer-min: .78;
  --breath-layer-span: .28;
  --breath-ease: .28s ease-in-out;
}
.breath-space[data-breath-style="tummo"],
.breath-field[data-breath-style="tummo"] {
  --breath-core-min: .66;
  --breath-core-span: .54;
  --breath-layer-min: .76;
  --breath-layer-span: .3;
  --breath-ease: .32s ease-in-out;
}
.breath-field[data-breath-style="tummo"][data-breath-phase^="hold"] .field-layer,
.breath-field[data-breath-style="tummo"][data-breath-phase^="hold"] .breath-core,
.breath-field[data-breath-style="tummo"][data-breath-phase^="hold"]::before,
.breath-field[data-breath-style="tummo"][data-breath-phase^="hold"]::after {
  transition-duration: .08s;
}
.breath-space[data-breath-style="box-breathing"],
.breath-field[data-breath-style="box-breathing"] {
  --breath-core-min: .7;
  --breath-core-span: .48;
  --breath-layer-min: .8;
  --breath-layer-span: .26;
  --breath-ease: .12s linear;
}
.breath-field[data-breath-style="box-breathing"][data-breath-phase^="hold"] .field-layer,
.breath-field[data-breath-style="box-breathing"][data-breath-phase^="hold"] .breath-core,
.breath-field[data-breath-style="box-breathing"][data-breath-phase^="hold"]::before,
.breath-field[data-breath-style="box-breathing"][data-breath-phase^="hold"]::after,
.breath-space[data-breath-style="box-breathing"] .breath-atmosphere {
  transition-duration: .05s;
}
.breath-space[data-breath-style="extended-exhale"],
.breath-space[data-breath-style="humming-bee"],
.breath-field[data-breath-style="extended-exhale"],
.breath-field[data-breath-style="humming-bee"] {
  --breath-core-min: .68;
  --breath-core-span: .5;
  --breath-layer-min: .78;
  --breath-layer-span: .28;
  --breath-ease: .24s ease-in-out;
}
.breath-space[data-breath-style="alternate-nostril"],
.breath-field[data-breath-style="alternate-nostril"] {
  --breath-core-min: .7;
  --breath-core-span: .46;
  --breath-layer-min: .8;
  --breath-layer-span: .24;
  --breath-ease: .2s ease-in-out;
}
.breath-space[data-breath-style="breath-of-fire"],
.breath-space[data-breath-style="cyclic-hyperventilation"],
.breath-field[data-breath-style="breath-of-fire"],
.breath-field[data-breath-style="cyclic-hyperventilation"] {
  --breath-core-min: .64;
  --breath-core-span: .56;
  --breath-layer-min: .74;
  --breath-layer-span: .32;
  --breath-ease: .1s linear;
}
.breath-field[data-breath-style="breath-of-fire"][data-breath-phase^="retention"] .breath-core,
.breath-field[data-breath-style="cyclic-hyperventilation"][data-breath-phase^="retention"] .breath-core {
  transition-duration: .08s;
}
.safety-note.safety-warn {
  color: var(--clay);
  border-left: 2px solid var(--clay);
  padding-inline-start: 12px;
}
.protocol-note {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.45;
}

.cue {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  padding: 12% 10%;
  gap: 6px;
}
.cue p {
  font-size: clamp(1.2rem, 4.2vw, 1.7rem);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  transform-origin: center center;
  will-change: transform, opacity;
}
.cue p.is-phase-in {
  animation: cue-phase var(--cue-in, 1.15s) cubic-bezier(.33, .1, .2, 1) both;
}
@keyframes cue-phase {
  0% {
    opacity: 0;
    transform: translate3d(0, 5px, 0) scale(.985);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
.breath-field[data-breath-phase^="inhale"] .cue p.is-phase-in,
.breath-field[data-breath-phase="topup"] .cue p.is-phase-in {
  animation-name: cue-phase-in;
}
.breath-field[data-breath-phase^="exhale"] .cue p.is-phase-in,
.breath-field[data-breath-phase="hum"] .cue p.is-phase-in {
  animation-name: cue-phase-out;
}
.breath-field[data-breath-phase^="hold"] .cue p.is-phase-in,
.breath-field[data-breath-phase^="retention"] .cue p.is-phase-in {
  animation-name: cue-phase-hold;
}
@keyframes cue-phase-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(.98);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes cue-phase-out {
  0% {
    opacity: 0;
    transform: translate3d(0, -6px, 0) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}
@keyframes cue-phase-hold {
  0% {
    opacity: 0;
    transform: scale(.992);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.cue-halves {
  --inhale: 1;
  --exhale: 0;
  width: min(48vw, 220px);
  aspect-ratio: 1;
  margin: 8px auto 6px;
  filter: drop-shadow(0 0 16px color-mix(in srgb, var(--session-glow) 40%, transparent));
}
.cue-halves svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.cue-half-track {
  stroke: rgba(241, 234, 219, .16);
  stroke-width: 5;
  stroke-linecap: round;
}
.cue-half-fill {
  stroke: #f4efe4;
  stroke-width: 5.5;
  stroke-linecap: round;
  stroke-dasharray: 100;
  opacity: .35;
  transition: stroke .35s ease, opacity .35s ease;
}
.cue-half-fill-in {
  stroke-dashoffset: calc((1 - var(--inhale)) * 100);
}
.cue-half-fill-out {
  stroke-dashoffset: calc((1 - var(--exhale)) * 100);
}
.cue-halves[data-active="in"] .cue-half-fill-in,
.cue-halves[data-active="hold-in"] .cue-half-fill-in {
  stroke: color-mix(in srgb, var(--session-mist) 55%, #f4efe4);
  opacity: .95;
}
.cue-halves[data-active="out"] .cue-half-fill-out,
.cue-halves[data-active="hold-out"] .cue-half-fill-out {
  stroke: color-mix(in srgb, var(--session-glow) 50%, #f4efe4);
  opacity: .95;
}
.cue-halves[data-active="prep"] .cue-half-fill-in,
.cue-halves[data-active="prep"] .cue-half-fill-out {
  opacity: .7;
}
.session-intro .cue-halves {
  width: min(42vw, 180px);
  margin-top: 4px;
  margin-bottom: 2px;
  filter: drop-shadow(0 0 14px rgba(208, 154, 98, .28));
}
.cue span {
  max-width: 16em;
  color: var(--night-muted);
  font-size: clamp(.88rem, 2.8vw, 1.05rem);
  line-height: 1.4;
  transition: opacity .55s ease, transform .7s cubic-bezier(.33, .1, .2, 1);
}
.session-screen[data-intent="calming"] .cue p { color: rgba(150,168,146,.92); }
.session-screen[data-intent="releasing"] .cue p { color: rgba(224,173,115,.92); }
.session-screen[data-intent="activating"] .cue p { color: rgba(241,234,219,.72); }
.session-foot { position: relative; z-index: 3; text-align: center; }
.session-foot > p { margin-bottom: 7px; color: var(--night-muted); font-family: Iowan Old Style, Baskerville, serif; }
.session-foot #session-time { margin-bottom: 14px; }
.session-controls { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 10px; }
.session-controls > button,
.session-controls .session-vol > button {
  min-height: 46px;
  min-width: 46px;
  color: var(--night-ink);
  border: 1px solid rgba(241,234,219,.13);
  border-radius: 999px;
  background: transparent;
  display: grid;
  place-items: center;
}
.session-controls > button.active,
.session-controls .session-vol > button.active {
  color: var(--night);
  border-color: var(--amber);
  background: var(--amber);
}
.session-controls .pause-button { font-size: .8rem; width: 100%; }
.session-vol {
  position: relative;
  display: grid;
  place-items: center;
}
.session-vol.is-open > button {
  color: var(--night);
  border-color: var(--amber);
  background: var(--amber);
}
.session-vol:not(.is-on).is-open > button {
  color: var(--night-ink);
  border-color: rgba(241,234,219,.13);
  background: transparent;
}
.session-vol-popover {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  width: 48px;
  height: 148px;
  padding: 0;
  border: 1px solid rgba(241,234,219,.16);
  border-radius: 18px;
  background: rgba(12, 14, 12, .92);
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  transform: translateX(-50%);
}
.session-vol-popover[hidden] { display: none !important; }
.session-vol-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
/* Horizontal range, rotated: WebKit thumbs center reliably this way. */
.session-vol-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 112px;
  height: 28px;
  margin: 42px -42px; /* (112 - 28) / 2 — layout box after rotate */
  padding: 0;
  border: none;
  background: linear-gradient(
    to right,
    var(--amber) 0 var(--vol-pct, 0%),
    rgba(241, 234, 219, .22) var(--vol-pct, 0%) 100%
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 4px;
  border-radius: 999px;
  transform: rotate(-90deg);
  transform-origin: center;
  cursor: pointer;
  accent-color: var(--amber);
}
.session-vol-slider::-webkit-slider-runnable-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: transparent;
}
.session-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  margin-top: -6px; /* center 16px thumb on 4px track */
  border-radius: 50%;
  background: var(--amber);
  border: none;
  box-shadow: 0 0 0 1px rgba(12, 14, 12, .35);
}
.session-vol-slider::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: transparent;
}
.session-vol-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--amber);
  border: none;
  box-shadow: 0 0 0 1px rgba(12, 14, 12, .35);
}
.modal-sheet .cast-note { margin-top: 14px; font-size: .82rem; color: var(--muted); }
.modal-sheet .cast-network { color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; word-break: break-all; }
.session-screen.is-cast-aware .session-head small::after {
  content: " · TV";
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .62rem;
  color: var(--amber);
}
@keyframes hum-shimmer {
  0%, 100% { filter: brightness(1); opacity: calc(0.72 + var(--breath-fill, 0) * 0.28); }
  50% { filter: brightness(1.12); opacity: calc(0.8 + var(--breath-fill, 0) * 0.2); }
}

.carry-card { margin-top: 26px; padding: 24px; border-radius: 24px; background: linear-gradient(135deg, rgba(82,106,86,.18), rgba(208,154,98,.11)); }
.carry-card h2 { margin: 9px 0 15px; font-size: 2rem; line-height: 1.05; }
.carry-card ol { margin: 0; padding-inline-start: 20px; color: var(--muted); line-height: 1.75; }
.carry-card > span { display: block; margin-top: 14px; color: var(--clay); font-size: .78rem; }
.reflection-row .pill { flex: 1 1 auto; }
.stage-key {
  margin: 30px 0 8px;
  display: grid;
  grid-template-columns: 45px minmax(0,1fr) 136px;
  gap: 10px;
  color: var(--muted);
  font-size: .64rem;
  text-align: center;
}
.stage-key-labels {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 8px;
  align-items: end;
  justify-items: center;
}
.journey-list { border-top: 1px solid var(--line); }
.journey-screen,
.account-screen {
  position: relative;
  isolation: isolate;
}
.page-atmosphere {
  position: absolute;
  z-index: 0;
  left: 50%;
  top: 8%;
  width: min(92vw, 420px);
  aspect-ratio: 1;
  transform: translateX(-50%) scale(.72);
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 48%,
      color-mix(in srgb, var(--amber) 34%, transparent) 0%,
      color-mix(in srgb, var(--clay) 18%, transparent) 38%,
      transparent 72%);
  opacity: .28;
  filter: blur(42px);
  animation: none;
}
.account-screen .page-atmosphere {
  top: 4%;
  background:
    radial-gradient(circle at 50% 48%,
      color-mix(in srgb, var(--moss) 28%, transparent) 0%,
      color-mix(in srgb, var(--amber) 16%, transparent) 40%,
      transparent 72%);
}
.journey-screen > *:not(.page-atmosphere),
.account-screen > *:not(.page-atmosphere) {
  position: relative;
  z-index: 1;
}
.journey-screen.is-arriving .page-copy,
.account-screen.is-arriving .page-copy {
  animation: page-rise-in .7s cubic-bezier(.22,.61,.36,1) both;
}
.journey-screen.is-arriving .history-year {
  animation: page-rise-in .55s .08s cubic-bezier(.22,.61,.36,1) both;
}
.journey-screen.is-arriving .history-detail {
  animation: page-rise-in .55s .14s cubic-bezier(.22,.61,.36,1) both;
}
.account-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.account-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: -20%;
  top: -40%;
  width: 70%;
  height: 160%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle at 40% 45%,
    color-mix(in srgb, var(--amber) 28%, transparent),
    transparent 68%);
  opacity: .55;
  filter: blur(18px);
  animation: none;
}
.account-card > * { position: relative; z-index: 1; }
.account-screen.is-arriving .account-card {
  animation: technique-card-in .55s .08s cubic-bezier(.22,.61,.36,1) both;
}
.account-screen.is-arriving .settings-group {
  animation: page-rise-in .55s cubic-bezier(.22,.61,.36,1) both;
}
.account-screen.is-arriving section.settings-group:nth-of-type(2) { animation-delay: .12s; }
.account-screen.is-arriving section.settings-group:nth-of-type(3) { animation-delay: .2s; }
@keyframes page-atmosphere-breathe {
  0%, 100% {
    opacity: .2;
    transform: translateX(-50%) scale(.7);
  }
  50% {
    opacity: .46;
    transform: translateX(-50%) scale(.94);
  }
}
@keyframes page-card-glow {
  0%, 100% { opacity: .38; transform: scale(1); }
  50% { opacity: .72; transform: scale(1.08); }
}
@keyframes page-rise-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.history-head {
  margin-bottom: 18px;
}
.history-head h1 {
  font-size: clamp(2.8rem, 10vw, 3.8rem);
  line-height: .92;
  letter-spacing: -.045em;
}
.history-year {
  margin: 0 0 8px;
  padding: 4px 2px;
}
.history-grid {
  display: flex;
  gap: 2px;
  width: 100%;
  overflow: visible;
}
.history-week {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.history-day {
  width: 100%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: color-mix(in srgb, var(--soft) 88%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 40%, transparent);
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.history-day[data-level="1"] {
  background: color-mix(in srgb, var(--clay) 38%, var(--soft));
  box-shadow: none;
}
.history-day[data-level="2"] {
  background: color-mix(in srgb, var(--clay) 58%, var(--amber));
  box-shadow: none;
}
.history-day[data-level="3"] {
  background: color-mix(in srgb, var(--amber) 74%, var(--clay));
  box-shadow: none;
}
.history-day[data-level="4"] {
  background: var(--amber);
  box-shadow: none;
}
.history-day.is-today {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--amber) 70%, transparent);
}
.history-day.is-selected {
  transform: scale(1.45);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--amber) 90%, transparent);
}
.history-day.is-future {
  opacity: .14;
  background: transparent;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line) 35%, transparent);
}
.history-day:not(.is-future):active {
  transform: scale(.9);
}
.history-detail {
  margin: 22px 0 8px;
  padding: 18px 0 8px;
  border-top: 1px solid var(--line);
}
.history-detail-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.history-detail h2 {
  margin: 0;
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  font-weight: 400;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.history-detail-head span,
.history-detail-empty {
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.history-session-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.history-session {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--soft) 82%, transparent);
}
.history-session .technique-mark {
  width: 44px;
  height: 44px;
}
.history-session-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.history-session-copy strong {
  font-weight: 500;
  line-height: 1.25;
}
.history-session-copy small {
  color: var(--muted);
  font-size: .78rem;
}
.journey-row {
  min-height: 76px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 45px minmax(0,1fr) 136px;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 4px;
  align-items: center;
}
.journey-row .technique-mark { grid-row: 1 / -1; width: 45px; height: 45px; }
.journey-row .journey-copy { display: contents; }
.journey-row strong {
  grid-column: 2;
  grid-row: 1;
  font-weight: 500;
  line-height: 1.25;
}
.journey-row small {
  grid-column: 2;
  grid-row: 2;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.35;
}
.journey-row .stage-dots {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
}
.journey-row.is-locked { opacity: .62; }
.stage-dots { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; justify-items: center; }
.stage-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--soft); }
.stage-dots i.on { background: var(--clay); }
.life-screen .page-copy { margin-top: 18px; }
.life-rest {
  min-height: calc(100dvh - 48px);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 28px;
  text-align: center;
}
.life-rest-copy {
  font-family: Iowan Old Style, Baskerville, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 2.8rem);
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--ink);
}
.life-return {
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: .88rem;
}
.account-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  background: var(--soft);
}
.account-person { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 13px; }
.account-person .avatar { width: 48px; height: 48px; }
.account-person h2 { font-family: inherit; font-size: 1rem; font-weight: 500; }
.account-person p { margin-top: 3px; color: var(--muted); font-size: .78rem; }
.sync-state { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .8rem; }
.account-link-copy {
  margin-top: 14px; color: var(--muted); font-size: .8rem; line-height: 1.5;
}
.account-card > .primary-action {
  width: 100%; margin-top: 16px;
}
.account-card-actions { display: grid; gap: 10px; margin-top: 16px; }
.account-card-actions .secondary-action { width: 100%; }
.account-card .account-note { margin-top: 14px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.account-actions { display: grid; gap: 10px; margin-top: 22px; }
.account-actions .primary-action, .account-actions .secondary-action { width: 100%; }
.account-note { margin-top: 18px; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.language-row { position: relative; overflow: visible; }
.language-picker { position: relative; flex: 0 0 auto; }
.language-select {
  min-width: 132px; min-height: 40px; padding: 8px 12px 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); background: var(--input-surface); font: inherit; font-size: .76rem; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 10px;
}
.language-select-label { white-space: nowrap; }
.language-chevron {
  width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent;
  border-top: 5px solid var(--muted); flex: 0 0 auto;
}
.language-picker.is-open .language-select {
  border-color: rgba(224,173,115,.45);
  background: rgba(241,234,219,.08);
}
.language-menu {
  position: absolute; bottom: calc(100% + 8px); top: auto; right: 0; z-index: 8;
  min-width: 100%; width: max-content; max-width: min(260px, 78vw); max-height: min(320px, 50dvh);
  margin: 0; padding: 8px; list-style: none; overflow: auto;
  border: 1px solid var(--line); border-radius: 18px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(241,234,219,.04), transparent 40%),
    var(--paper-deep);
  box-shadow: 0 18px 40px rgba(0,0,0,.42);
}
:root:not([data-theme="dark"]) .language-menu {
  background: var(--paper);
  box-shadow: 0 16px 36px rgba(24,36,28,.16);
}
:root[dir="rtl"] .language-menu { right: auto; left: 0; }
.language-menu li { margin: 0; }
.language-option {
  width: 100%; min-height: 40px; padding: 9px 12px; border: 0; border-radius: 12px;
  color: var(--ink); background: transparent; font: inherit; font-size: .82rem; font-weight: 500;
  text-align: start; display: block;
}
.language-option:hover,
.language-option:focus-visible {
  background: var(--soft);
  outline: none;
}
.language-option.selected {
  color: var(--night);
  background: var(--amber);
}
:root:not([data-theme="dark"]) .language-option.selected {
  color: var(--paper);
  background: var(--moss);
}

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: end center; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(3,6,4,.74); backdrop-filter: blur(8px); }
.modal-sheet {
  width: min(100%, 560px); max-height: 88dvh; overflow: auto; padding: 30px 28px calc(26px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; color: var(--ink); background: var(--paper); position: relative; z-index: 2;
  box-shadow: 0 -24px 70px rgba(0,0,0,.28);
}
.modal-sheet h2 { margin: 10px 0 14px; font-size: 2.4rem; line-height: .98; letter-spacing: -.04em; }
.modal-sheet > p { color: var(--muted); line-height: 1.55; }
.modal-sheet.is-duration {
  padding: 22px 22px calc(20px + env(safe-area-inset-bottom));
}
.modal-sheet.is-duration h2 {
  margin: 6px 0 18px;
  font-size: 1.7rem;
}
.modal-sheet.is-duration .duration-row.is-compact .duration-choice {
  min-height: 68px;
  border-radius: 18px;
  transition:
    color .28s ease,
    background .32s ease,
    border-color .32s ease,
    transform .28s cubic-bezier(.22,.61,.36,1);
}
.modal-sheet.is-duration .duration-row.is-compact .duration-choice:active {
  transform: scale(.97);
}
.modal-sheet.is-duration .duration-row.is-compact .duration-choice strong {
  font-size: 1.4rem;
}
.modal.is-arriving .modal-backdrop {
  animation: modal-veil-in .42s cubic-bezier(.22,.61,.36,1) both;
}
.modal.is-arriving .modal-sheet.is-duration {
  animation: modal-sheet-rise .52s cubic-bezier(.22,.61,.36,1) both;
}
.modal.is-arriving .modal-sheet.is-duration .eyebrow {
  animation: page-rise-in .45s .06s cubic-bezier(.22,.61,.36,1) both;
}
.modal.is-arriving .modal-sheet.is-duration h2 {
  animation: page-rise-in .5s .1s cubic-bezier(.22,.61,.36,1) both;
}
.modal.is-arriving .modal-sheet.is-duration .duration-choice {
  animation: technique-card-in .48s cubic-bezier(.22,.61,.36,1) both;
}
.modal.is-arriving .modal-sheet.is-duration .duration-choice:nth-child(1) { animation-delay: .14s; }
.modal.is-arriving .modal-sheet.is-duration .duration-choice:nth-child(2) { animation-delay: .2s; }
.modal.is-arriving .modal-sheet.is-duration .duration-choice:nth-child(3) { animation-delay: .26s; }
@keyframes modal-veil-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-sheet-rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}
.modal-actions { display: grid; gap: 10px; margin-top: 26px; }
.modal-actions .primary-action, .modal-actions .secondary-action { width: 100%; }
.countdown-ring {
  width: 150px; height: 150px; margin: 28px auto 20px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--clay) var(--countdown,100%), var(--soft) 0); position: relative;
}
.countdown-ring::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--paper); }
.countdown-ring strong { position: relative; font-family: Iowan Old Style, Baskerville, serif; font-size: 3.2rem; font-weight: 400; }
.countdown-copy { text-align: center; }
.oauth-steps { margin: 20px 0; padding-inline-start: 22px; color: var(--muted); line-height: 1.65; }
.oauth-steps a { color: var(--clay); }
.oauth-input { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--input-surface); }
.origin-box { margin: 12px 0; padding: 11px; border-radius: 12px; background: var(--soft); font-family: ui-monospace, monospace; font-size: .75rem; word-break: break-all; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(calc(100% - 32px), 420px); padding: 13px 17px; border-radius: 14px; color: var(--night); background: var(--night-ink); box-shadow: 0 16px 50px rgba(0,0,0,.28); text-align: center; font-size: .82rem; }

.app-nav {
  position: fixed;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  min-height: calc(68px + env(safe-area-inset-bottom));
  padding: 6px max(8px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px, env(safe-area-inset-left));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  background: var(--nav-surface);
  backdrop-filter: blur(18px);
}
.app-nav button {
  min-height: 54px;
  border: 0;
  color: var(--muted);
  background: transparent;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font-size: .72rem;
  letter-spacing: .04em;
}
.app-nav button.active { color: var(--ink); }
.nav-glyph {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}
.nav-glyph-text {
  width: auto;
  height: auto;
  font-size: 1.15rem;
  line-height: 1;
}
.app-nav button.active .nav-glyph {
  stroke-width: 1.75;
}
.nav-glyph {
  overflow: visible;
}
.nav-lung,
.nav-breath-trunk,
.nav-breath-arrow,
.nav-journey-route,
.nav-journey-walker,
.nav-journey-current-target,
.nav-journey-next-target,
.nav-profile-gold,
.nav-profile-sweep,
.nav-profile-glint {
  transform-box: fill-box;
}
.nav-lung-left { transform-origin: right bottom; }
.nav-lung-right { transform-origin: left bottom; }
.nav-breath-trunk { transform-origin: center bottom; }
.nav-breath-arrow { opacity: .45; }
.nav-journey-route {
  stroke-dasharray: 28;
  stroke-dashoffset: 0;
}
.nav-journey-walker {
  opacity: 0;
  stroke: var(--amber);
  stroke-width: 2.2;
  stroke-dasharray: 1.5 28;
  stroke-dashoffset: 0;
}
.nav-journey-current-target,
.nav-journey-next-target { transform-origin: center; }
.nav-journey-next-target { opacity: 0; }
.nav-profile-gold,
.nav-profile-sweep,
.nav-profile-glint {
  opacity: 0;
}
.nav-profile-sweep {
  stroke-width: 2.1;
  stroke-dasharray: 3 18;
  stroke-dashoffset: 16;
}
.nav-profile-glint { transform-origin: center; }

.app-nav button.nav-entered .nav-lung-left {
  animation: nav-lung-left-breathe 1.55s cubic-bezier(.22,.75,.25,1) both;
}
.app-nav button.nav-entered .nav-lung-right {
  animation: nav-lung-right-breathe 1.55s cubic-bezier(.22,.75,.25,1) both;
}
.app-nav button.nav-entered .nav-breath-trunk {
  animation: nav-breath-rise 1.55s cubic-bezier(.22,.75,.25,1) both;
}
.app-nav button.nav-entered .nav-breath-arrow-left {
  animation: nav-breath-arrow-left 1.55s ease-out both;
}
.app-nav button.nav-entered .nav-breath-arrow-right {
  animation: nav-breath-arrow-right 1.55s ease-out both;
}
.app-nav button.nav-entered .nav-journey-current-target {
  animation: nav-journey-target-to-origin .44s cubic-bezier(.4,0,.2,1) both;
}
.app-nav button.nav-entered .nav-journey-route {
  animation: nav-journey-draw .96s .44s cubic-bezier(.25,.7,.2,1) both;
}
.app-nav button.nav-entered .nav-journey-walker {
  animation: nav-journey-walk .96s .44s linear both;
}
.app-nav button.nav-entered .nav-journey-next-target {
  animation: nav-journey-next-target .42s 1.38s cubic-bezier(.2,.9,.25,1.35) both;
}
.app-nav button.nav-entered .nav-profile-gold {
  animation: nav-profile-armor 1.25s ease-out both;
}
.app-nav button.nav-entered .nav-profile-sweep {
  animation: nav-profile-sweep 1.05s .08s ease-in-out both;
}
.app-nav button.nav-entered .nav-profile-glint {
  animation: nav-profile-glint .72s .48s ease-out both;
}

@keyframes nav-lung-left-breathe {
  0%, 100% { transform: translate(0,0) scale(1,1); }
  44% { transform: translate(-.7px,-1.05px) scale(1.13,.93); }
  68% { transform: translate(-.25px,-.45px) scale(1.045,.98); }
}
@keyframes nav-lung-right-breathe {
  0%, 100% { transform: translate(0,0) scale(1,1); }
  44% { transform: translate(.7px,-1.05px) scale(1.13,.93); }
  68% { transform: translate(.25px,-.45px) scale(1.045,.98); }
}
@keyframes nav-breath-rise {
  0%, 100% { transform: translateY(0); }
  44% { transform: translateY(-.75px); }
  68% { transform: translateY(-.25px); }
}
@keyframes nav-breath-arrow-left {
  0%, 100% { opacity: .35; transform: translateX(0); }
  40% { opacity: 1; transform: translateX(-.7px); }
}
@keyframes nav-breath-arrow-right {
  0%, 100% { opacity: .35; transform: translateX(0); }
  40% { opacity: 1; transform: translateX(.7px); }
}
@keyframes nav-journey-target-to-origin {
  0% { transform: translate(0,0) scale(1); }
  72% { transform: translate(-14.8px,13.15px) scale(.92); }
  100% { transform: translate(-14.4px,12.8px) scale(1); }
}
@keyframes nav-journey-draw {
  0% { opacity: .12; stroke-dashoffset: 28; }
  16% { opacity: 1; }
  100% { opacity: 1; stroke-dashoffset: 0; }
}
@keyframes nav-journey-walk {
  0% { opacity: 0; stroke-dashoffset: 0; }
  8% { opacity: 1; }
  88% { opacity: 1; }
  100% { opacity: 0; stroke-dashoffset: -28; }
}
@keyframes nav-journey-next-target {
  0% { opacity: 0; transform: scale(.2); }
  68% { opacity: 1; transform: scale(1.18); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes nav-profile-armor {
  0% { opacity: 0; filter: drop-shadow(0 0 0 rgba(224,173,88,0)); }
  38% { opacity: 1; filter: drop-shadow(0 0 3px rgba(224,173,88,.9)); }
  100% { opacity: .24; filter: drop-shadow(0 0 0 rgba(224,173,88,0)); }
}
@keyframes nav-profile-sweep {
  0% { opacity: 0; stroke-dashoffset: 16; }
  24% { opacity: 1; }
  74% { opacity: .95; }
  100% { opacity: 0; stroke-dashoffset: -17; }
}
@keyframes nav-profile-glint {
  0%, 100% { opacity: 0; transform: scale(.35) rotate(-16deg); }
  45% { opacity: 1; transform: scale(1.12) rotate(0); }
  72% { opacity: .7; transform: scale(.9) rotate(8deg); }
}

@media (prefers-reduced-motion: reduce) {
  .app-nav button.nav-entered .nav-lung,
  .app-nav button.nav-entered .nav-breath-trunk,
  .app-nav button.nav-entered .nav-breath-arrow,
  .app-nav button.nav-entered .nav-journey-route,
  .app-nav button.nav-entered .nav-journey-walker,
  .app-nav button.nav-entered .nav-journey-current-target,
  .app-nav button.nav-entered .nav-journey-next-target,
  .app-nav button.nav-entered .nav-profile-gold,
  .app-nav button.nav-entered .nav-profile-sweep,
  .app-nav button.nav-entered .nav-profile-glint {
    animation: none;
  }
  .app-nav button.nav-entered .nav-journey-route,
  .app-nav button.nav-entered .nav-journey-next-target { opacity: 1; }
  .app-nav button.nav-entered .nav-journey-current-target {
    transform: translate(-14.4px,12.8px);
  }
  .app-nav button.nav-entered .nav-journey-walker { opacity: 0; }
  .app-nav button.nav-entered .nav-profile-gold { opacity: .24; }
}

@media (max-width: 680px) {
  .screen-inner {
    padding: calc(20px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(96px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .corner-action {
    left: 20px;
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .screen-inner:has(.sticky-action):has(.corner-action) .corner-action {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  .screen-inner:has(.sticky-action):has(.corner-action) .sticky-action {
    padding-inline-start: 64px;
  }
  .session-screen {
    height: 100dvh;
    height: 100svh;
    min-height: 100dvh;
    min-height: 100svh;
    max-height: 100dvh;
    max-height: 100svh;
    margin: calc(-20px - env(safe-area-inset-top)) calc(-1 * max(20px, env(safe-area-inset-right))) calc(-20px - env(safe-area-inset-bottom)) calc(-1 * max(20px, env(safe-area-inset-left)));
    padding: calc(26px + env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  }
  .page-copy h1, .practice-title { font-size: 3.25rem; }
  .detail-hero h1 { font-size: 3.5rem; }
  .stage-key,
  .journey-row { grid-template-columns: 40px minmax(0,1fr) 120px; }
  .journey-row .technique-mark { width: 40px; height: 40px; }
  .stage-key-labels,
  .stage-dots { gap: 6px; }
  .stage-dots i { width: 9px; height: 9px; }
}
@media (max-width: 380px) {
  .technique-row { grid-template-columns: 45px 1fr; }
  .technique-row .meta-chip { display: none; }
  .technique-card {
    gap: 12px;
    padding: 15px 14px 14px 12px;
    min-height: 102px;
  }
  .technique-card .technique-mark { width: 60px; height: 60px; }
  .technique-card-title strong { font-size: 1.18rem; }
  .technique-card-foot { flex-wrap: wrap; }
  .stage-key,
  .journey-row { grid-template-columns: 38px minmax(0,1fr) 104px; column-gap: 8px; }
  .journey-row .technique-mark { width: 38px; height: 38px; }
  .stage-key { font-size: .58rem; }
  .stage-key-labels,
  .stage-dots { gap: 4px; }
}
@media (orientation: landscape) and (min-width: 900px) {
  .session-screen {
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .session-head strong { font-size: 1.05rem; }
  .session-head small { font-size: .72rem; }
  .breath-space { min-height: 0; }
  .breath-field { width: min(72vh, 68vw); height: min(72vh, 68vw); }
  .cue p { font-size: clamp(1.35rem, 2.4vw, 1.85rem); letter-spacing: .22em; }
  .cue-halves { width: min(28vh, 220px); }
  .cue span { font-size: 1.05rem; max-width: 18em; }
  .session-foot #session-time { font-size: .78rem; }
  .session-controls { max-width: 420px; margin-inline: auto; }
}
/* Anatomical lung sequence — additive canvas glow; soft mask only at far edges. */
.breath-lungs {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .98;
  filter: none;
  -webkit-mask-image: radial-gradient(circle at 50% 48%, #000 58%, transparent 92%);
  mask-image: radial-gradient(circle at 50% 48%, #000 58%, transparent 92%);
}
.breath-field::before,
.breath-field::after {
  z-index: 0;
}
.breath-field::before {
  opacity: calc(.12 + var(--breath-fill, 0) * .22);
}
.breath-field::after {
  opacity: calc(.08 + var(--breath-fill, 0) * .16);
}
.breath-field .cue {
  align-content: end;
  padding: 12% 10% 4%;
  gap: 8px;
}
.breath-field .cue p {
  font-size: clamp(1.35rem, 4.6vw, 1.85rem);
  letter-spacing: .24em;
  text-shadow: 0 0 18px color-mix(in srgb, var(--session-glow) 38%, transparent);
}
.breath-field .cue span {
  max-width: 18em;
  font-size: clamp(.95rem, 3vw, 1.12rem);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .cue p.is-phase-in {
    animation: none !important;
  }
  .breath-space,
  .breath-atmosphere,
  .breath-field,
  .breath-field::before,
  .breath-field::after,
  .breath-field .field-layer.one,
  .breath-field .field-layer.two,
  .breath-field .field-layer.three,
  .breath-field .breath-core {
    transition: none !important;
    animation: none !important;
  }
  .technique-card {
    animation: none !important;
  }
  .technique-card:not(.is-preview) .technique-mark {
    animation: none !important;
  }
  .page-atmosphere,
  .account-card::before,
  .journey-screen.is-arriving .page-copy,
  .journey-screen.is-arriving .history-year,
  .journey-screen.is-arriving .history-detail,
  .account-screen.is-arriving .page-copy,
  .account-screen.is-arriving .account-card,
  .account-screen.is-arriving .settings-group,
  .setting-subpanel,
  .modal.is-arriving .modal-backdrop,
  .modal.is-arriving .modal-sheet.is-duration,
  .modal.is-arriving .modal-sheet.is-duration .eyebrow,
  .modal.is-arriving .modal-sheet.is-duration h2,
  .modal.is-arriving .modal-sheet.is-duration .duration-choice {
    animation: none !important;
  }
}
