:root {
  color-scheme: light;
  --bg: #e7efe3;
  --surface: #f6f8f2;
  --surface-soft: rgba(249, 250, 245, 0.82);
  --ink: #203027;
  --muted: #55645b;
  --moss: #6f876e;
  --moss-dark: #49604d;
  --water: #aacbcd;
  --sun: #f2c979;
  --warm: #f4ddb0;
  --line: rgba(42, 63, 50, 0.11);
  --shadow: 0 24px 80px rgba(56, 76, 61, 0.09);
  --radius-lg: 36px;
  --radius-md: 26px;
  --container: 1128px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: "Satoshi", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.session-open,
body.dialog-open,
body.workspace-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(73, 96, 77, 0.35);
  outline-offset: 3px;
}

input:focus,
input:focus-visible,
textarea:focus,
textarea:focus-visible {
  outline: none;
  box-shadow: none;
  caret-color: currentColor;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.container {
  width: min(calc(100% - 80px), var(--container));
  margin-inline: auto;
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  overflow: clip;
}

/* Quiet 2D weather that belongs to the whole page */
.ambient-world {
  position: fixed;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}

.ambient-leaf {
  --leaf-x: 10vw;
  --leaf-drift: 18vw;
  --leaf-duration: 18s;
  --leaf-delay: 0s;
  position: absolute;
  top: -8vh;
  left: var(--leaf-x);
  width: 13px;
  height: 8px;
  border-radius: 90% 8% 90% 8%;
  background: rgba(73, 96, 77, 0.42);
  box-shadow: inset -2px -1px 0 rgba(255, 255, 255, 0.16);
  opacity: 0;
  animation: leaf-fall var(--leaf-duration) linear var(--leaf-delay) infinite;
}

.leaf--1 { --leaf-x: 8vw; --leaf-drift: 24vw; --leaf-duration: 19s; --leaf-delay: -4s; }
.leaf--2 { --leaf-x: 24vw; --leaf-drift: -12vw; --leaf-duration: 24s; --leaf-delay: -15s; transform: scale(.72); }
.leaf--3 { --leaf-x: 42vw; --leaf-drift: 20vw; --leaf-duration: 22s; --leaf-delay: -8s; }
.leaf--4 { --leaf-x: 67vw; --leaf-drift: -20vw; --leaf-duration: 26s; --leaf-delay: -18s; transform: scale(.8); }
.leaf--5 { --leaf-x: 87vw; --leaf-drift: -26vw; --leaf-duration: 20s; --leaf-delay: -11s; }
.leaf--6 { --leaf-x: 96vw; --leaf-drift: -16vw; --leaf-duration: 28s; --leaf-delay: -3s; transform: scale(.62); }
.leaf--7 { --leaf-x: 55vw; --leaf-drift: 12vw; --leaf-duration: 30s; --leaf-delay: -24s; transform: scale(.68); }
.leaf--8 { --leaf-x: 16vw; --leaf-drift: 30vw; --leaf-duration: 27s; --leaf-delay: -20s; transform: scale(.58); }
.leaf--9 { --leaf-x: 34vw; --leaf-drift: -18vw; --leaf-duration: 23s; --leaf-delay: -6s; transform: scale(.84); }
.leaf--10 { --leaf-x: 76vw; --leaf-drift: 16vw; --leaf-duration: 25s; --leaf-delay: -13s; transform: scale(.66); }
.leaf--11 { --leaf-x: 4vw; --leaf-drift: 20vw; --leaf-duration: 29s; --leaf-delay: -26s; transform: scale(.76); }
.leaf--12 { --leaf-x: 92vw; --leaf-drift: -34vw; --leaf-duration: 21s; --leaf-delay: -17s; transform: scale(.9); }

@keyframes leaf-fall {
  0% { opacity: 0; translate: 0 -8vh; rotate: 0deg; }
  8% { opacity: .72; }
  50% { translate: calc(var(--leaf-drift) * .35) 52vh; rotate: 390deg; }
  88% { opacity: .5; }
  100% { opacity: 0; translate: var(--leaf-drift) 112vh; rotate: 790deg; }
}

.wind-line {
  position: absolute;
  left: -36vw;
  width: 32vw;
  height: 36px;
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  filter: blur(.2px);
  opacity: 0;
  animation: wind-pass 14s ease-in-out infinite;
}

.wind-line--one { top: 28%; animation-delay: -2s; }
.wind-line--two { top: 55%; width: 22vw; animation-delay: -9s; animation-duration: 18s; }
.wind-line--three { top: 78%; width: 28vw; animation-delay: -13s; animation-duration: 21s; }

@keyframes wind-pass {
  0%, 18% { opacity: 0; transform: translateX(0) scaleX(.7); }
  28%, 58% { opacity: .65; }
  76%, 100% { opacity: 0; transform: translateX(155vw) scaleX(1.2); }
}

.ambient-bird {
  position: absolute;
  left: -80px;
  width: 38px;
  color: rgba(49, 70, 57, 0.38);
  opacity: 0;
  animation: bird-cross 34s linear infinite;
}

.ambient-bird svg { width: 100%; stroke-width: 1.3; }
.ambient-bird--one { top: 15%; animation-delay: -5s; }
.ambient-bird--two { top: 23%; width: 27px; animation-delay: -22s; animation-duration: 41s; }

@keyframes bird-cross {
  0% { opacity: 0; transform: translate(-5vw, 0) scale(.75); }
  8%, 82% { opacity: .65; }
  45% { transform: translate(55vw, -18px) scale(1); }
  100% { opacity: 0; transform: translate(112vw, 8px) scale(.82); }
}

body.motion-reduced .ambient-world { opacity: .18; }
body.motion-reduced .ambient-world * { animation-play-state: paused !important; }

/* Entry ritual */
.entry {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #fffefc 0%, #f6faf3 28%, #deecdf 70%, #cce5cf 100%);
}

/* Authentication */
.auth-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  padding: 24px;
  background: #dfe9df;
}

.auth-gate__atmosphere {
  position: absolute;
  inset: -24px;
  background:
    linear-gradient(180deg, rgba(239,244,235,.12), rgba(225,236,222,.6) 62%, #dfe9df 100%),
    url("./assets/still-lake-sunrise-v2.png") center / cover no-repeat;
  filter: saturate(.78) brightness(1.04);
  transform: scale(1.025);
}

.auth-gate__atmosphere::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.08), rgba(224,234,223,.45) 72%);
  content: "";
}

.auth-card {
  position: relative;
  width: min(100%, 460px);
  border: 1px solid rgba(255,255,255,.78);
  border-radius: 34px;
  padding: 34px;
  background: rgba(247,249,244,.82);
  box-shadow: 0 28px 80px rgba(28,42,33,.16);
  backdrop-filter: blur(22px);
}

.auth-card__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 52px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.auth-card__brand span {
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 34%, #fff5bf 0 12%, #efd177 42%, #8d7840 100%);
  box-shadow: 0 3px 10px rgba(79,65,29,.24);
}

.auth-card h1 {
  margin: 13px 0 12px;
  font-size: clamp(42px, 7vw, 58px);
  font-weight: 500;
  letter-spacing: -.055em;
  line-height: .98;
}

.auth-card > p:not(.auth-status) {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.google-signin-button {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
  border: 1px solid rgba(32,48,39,.14);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease;
}

.google-signin-button:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(32,48,39,.1); }
.google-signin-button:disabled { cursor: wait; opacity: .68; transform: none; }
.google-signin-button svg { width: 21px; height: 21px; }
.auth-status { min-height: 20px; margin: 14px 0 0; color: #6d7e73; font-size: 12px; text-align: center; }
.auth-status.is-error { color: #9a4f43; }
.auth-card > small { display: block; margin-top: 28px; color: #7b8980; font-size: 12px; line-height: 1.45; text-align: center; }

/* First-sign-in ritual */
body.onboarding-open { overflow: hidden; }

.onboarding {
  position: fixed;
  inset: 0;
  z-index: 980;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 28px;
  background: #e4ece0;
}

.onboarding__landscape {
  position: fixed;
  inset: -30px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(242,246,239,.14), rgba(227,237,225,.76) 64%, #e1eadf 100%),
    url("./assets/still-lake-sunrise-v2.png") center / cover no-repeat;
  filter: saturate(.68) brightness(1.06);
  transform: scale(1.04);
}

.onboarding__landscape::after {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 72% 31%, rgba(255,244,205,.34), transparent 25%), linear-gradient(90deg, rgba(229,238,226,.18), rgba(244,240,218,.1));
  content: "";
}

.onboarding__sun {
  position: absolute;
  top: 20%;
  left: 72%;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: rgba(250,232,172,.3);
  box-shadow: 0 0 90px 45px rgba(247,224,154,.16);
  animation: onboardingSun 12s var(--ease) infinite alternate;
}

.onboarding__ripple {
  position: absolute;
  bottom: 18%;
  left: 60%;
  width: 320px;
  height: 62px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  opacity: 0;
  animation: onboardingRipple 7s ease-out infinite;
}

.onboarding__ripple--two { animation-delay: 3.4s; }

.onboarding__shell {
  position: relative;
  width: min(100%, 760px);
  min-height: min(720px, calc(100dvh - 56px));
  border: 1px solid rgba(255,255,255,.74);
  border-radius: 40px;
  padding: 34px 52px 36px;
  background: rgba(247,249,244,.84);
  box-shadow: 0 30px 100px rgba(35,53,41,.14);
  backdrop-filter: blur(26px);
}

.onboarding__header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.onboarding__brand { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; }
.onboarding__brand i { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff7c4 0 10%, #edcd70 43%, #8f793f 100%); box-shadow: 0 3px 10px rgba(88,71,28,.2); }
.onboarding__step-label { color: #728078; font-size: 12px; letter-spacing: .075em; text-transform: uppercase; }

.onboarding__progress { height: 2px; margin-top: 24px; overflow: hidden; border-radius: 999px; background: rgba(58,81,64,.09); }
.onboarding__progress span { display: block; width: 0; height: 100%; border-radius: inherit; background: #758d76; transition: width .8s var(--ease); }

.onboarding__form { position: relative; min-height: 520px; margin-top: 38px; }
.onboarding-step {
  position: absolute;
  inset: 0;
  display: flex;
  visibility: hidden;
  align-items: flex-start;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity .42s ease, transform .65s var(--ease), visibility 0s linear .65s;
}
.onboarding-step.is-active { visibility: visible; opacity: 1; pointer-events: auto; transform: translateY(0); transition-delay: .12s, .12s, 0s; }
/* The active step sits in flow so taller questions grow the card instead of spilling past it. */
.onboarding-step.is-active { position: relative; min-height: inherit; flex: 1 0 auto; }
.onboarding__shell { display: flex; flex-direction: column; }
.onboarding__form { display: flex; flex: 1 0 auto; flex-direction: column; }
.onboarding-step > * { opacity: 0; transform: translateY(9px); }
.onboarding-step.is-active > * { animation: onboardingReveal .7s var(--ease) forwards; }
.onboarding-step.is-active > *:nth-child(2) { animation-delay: .08s; }
.onboarding-step.is-active > *:nth-child(3) { animation-delay: .16s; }
.onboarding-step.is-active > *:nth-child(4) { animation-delay: .24s; }

.onboarding-step .card-kicker { margin-bottom: 18px; color: #708078; }
.onboarding-step h1,
.onboarding-step h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(44px, 6.2vw, 66px);
  font-weight: 500;
  letter-spacing: -.058em;
  line-height: .99;
}
.onboarding-step h2 { font-size: clamp(38px, 5vw, 54px); }
.onboarding-step > p { max-width: 540px; margin: 24px 0 0; color: var(--muted); font-size: 17px; line-height: 1.65; }

.onboarding-step label { max-width: 620px; font-size: clamp(38px, 5vw, 54px); font-weight: 500; letter-spacing: -.052em; line-height: 1.03; }
.onboarding-step input {
  width: 100%;
  margin-top: 58px;
  border: 0;
  border-bottom: 1px solid rgba(46,66,52,.2);
  border-radius: 0;
  padding: 0 0 12px;
  background: transparent;
  color: var(--ink);
  font-size: clamp(31px, 5vw, 48px);
  font-weight: 400;
  letter-spacing: -.035em;
}
.onboarding-step input::placeholder { color: rgba(82,103,89,.28); }
.onboarding-step input:focus { border-color: rgba(65,91,70,.48); }
.onboarding-hint { margin-top: 13px !important; font-size: 12px !important; line-height: 1.5 !important; }
.onboarding-hint--above { margin: 12px 0 22px !important; }

.onboarding-primary {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-top: auto;
  border: 0;
  border-radius: 999px;
  padding: 0 25px;
  background: var(--ink);
  box-shadow: 0 14px 34px rgba(32,48,39,.15);
  color: white;
  cursor: pointer;
  font: inherit;
  transition: transform .28s var(--ease), box-shadow .28s ease;
}
.onboarding-primary:hover { box-shadow: 0 17px 40px rgba(32,48,39,.2); transform: translateY(-2px); }
.onboarding-primary:disabled { box-shadow: none; cursor: default; opacity: .34; transform: none; }
.onboarding-step[data-onboarding-step="1"] .onboarding-primary,
.onboarding-step[data-onboarding-step="2"] .onboarding-primary,
.onboarding-step[data-onboarding-step="3"] .onboarding-primary,
.onboarding-step[data-onboarding-step="4"] .onboarding-primary { align-self: flex-end; }

.onboarding-options { display: grid; width: 100%; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 34px; margin-bottom: 36px; }
.onboarding-options button {
  position: relative;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(44,66,51,.11);
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255,255,255,.54);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: border-color .25s ease, background .25s ease, transform .3s var(--ease), box-shadow .25s ease;
}
.onboarding-options button::after {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  box-sizing: border-box;
  margin-left: 16px;
  border: 1.5px solid rgba(54,79,60,.28);
  border-radius: 50%;
  background: rgba(255,255,255,.7);
  content: "";
  transition: border-color .25s ease, background .25s ease, box-shadow .25s ease, transform .3s var(--ease);
}
.onboarding-options button small { display: block; color: var(--muted); font-size: 12px; }
.onboarding-options button:hover { border-color: rgba(70,97,75,.25); background: rgba(255,255,255,.76); transform: translateY(-2px); }
.onboarding-options button:hover::after { border-color: rgba(54,79,60,.5); }
.onboarding-options button.is-selected { border-color: rgba(71,99,76,.36); background: rgba(225,235,224,.86); box-shadow: inset 0 0 0 1px rgba(81,110,85,.12); }
/* Single choice: a radio with a centred dot */
.onboarding-options button.is-selected::after {
  border: 0;
  background: radial-gradient(circle, #fff 0 3.5px, transparent 4px), linear-gradient(145deg, #6a856d, #435b48);
  box-shadow: 0 2px 6px rgba(52,78,58,.28);
}
/* Multiple choice: a rounded checkbox with a tick */
.onboarding-options--multi button::after { border-radius: 6px; }
.onboarding-options--multi button.is-selected::after {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.4l2.9 2.9 6-6.3' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat,
    linear-gradient(145deg, #6a856d, #435b48);
}
.onboarding-options--reasons { grid-template-columns: 1fr; gap: 7px; margin-top: 0; }
.onboarding-options--reasons button { min-height: 55px; border-radius: 16px; padding-block: 12px; }
.onboarding-options--duration { grid-template-columns: repeat(4, 1fr); }
.onboarding-options--duration button { min-height: 138px; align-items: flex-start; flex-direction: column; justify-content: flex-end; }
.onboarding-options--duration button::after { position: absolute; top: 16px; right: 16px; margin: 0; }
.onboarding-options--duration strong { font-size: 37px; font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.onboarding-options--duration small { margin-top: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .075em; }

.onboarding-step--complete { align-items: center; justify-content: center; text-align: center; }
.onboarding-step--complete .card-kicker { margin-top: 23px; }
.onboarding-step--complete > p { margin-top: 18px; }
.onboarding-step--complete .onboarding-primary { margin-top: 36px; }
.onboarding-complete__orb { width: 72px; height: 72px; border-radius: 50%; background: radial-gradient(circle at 38% 32%, #fff8cc 0 11%, #efcf78 44%, #9b8248 100%); box-shadow: 0 10px 35px rgba(141,112,45,.22), 0 0 0 20px rgba(241,216,148,.08); }

.onboarding-back { position: absolute; bottom: 47px; left: 52px; border: 0; padding: 7px 0; background: transparent; color: #718078; cursor: pointer; font: inherit; font-size: 12px; }
.onboarding-back span { margin-right: 8px; }
.profile-edit { width: 100%; margin-bottom: 9px; }

@keyframes onboardingReveal { to { opacity: 1; transform: translateY(0); } }
@keyframes onboardingSun { to { transform: translate(8px, -6px) scale(1.06); } }
@keyframes onboardingRipple { 0% { opacity: 0; transform: scale(.45); } 14% { opacity: .45; } 100% { opacity: 0; transform: scale(1.55); } }

.avatar-button.has-photo,
.mobile-more-action__avatar.has-photo,
.member-avatar.has-photo,
.profile-identity__avatar.has-photo {
  background-position: center;
  background-size: cover;
  color: transparent;
}

.dialog--profile { width: min(92vw, 520px); }
.profile-panel { width: 100%; padding: 30px; }
.profile-panel__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.profile-panel__header h2 { margin: 7px 0 0; font-size: 40px; font-weight: 500; letter-spacing: -.05em; }
.profile-identity { display: flex; align-items: center; gap: 17px; margin-top: 32px; padding: 20px 0; border-block: 1px solid var(--line); }
.profile-identity__avatar { display: grid; width: 64px; height: 64px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--ink); color: white; font-size: 22px; font-weight: 600; }
.profile-identity div { min-width: 0; }
.profile-identity strong,.profile-identity span { display: block; }
.profile-identity strong { overflow: hidden; font-size: 20px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.profile-identity div span { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.profile-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.profile-meta div { border-radius: 16px; padding: 15px; background: rgba(225,234,225,.62); }
.profile-meta span,.profile-meta strong { display: block; }
.profile-meta span { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.profile-meta strong { margin-top: 5px; font-size: 12px; font-weight: 500; }
.profile-panel > p { margin: 22px 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.profile-signout { width: 100%; }

.entry.entry--mask-ready {
  background: transparent;
}

.portal-canvas,
.transition-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.entry__content {
  position: relative;
  z-index: 2;
  display: flex;
  min-height: 100%;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.entry__brand {
  position: absolute;
  top: 34px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.breath-object {
  position: relative;
  width: 200px;
  height: 200px;
  display: grid;
  place-items: center;
}

.breath-object > * {
  grid-area: 1 / 1;
}

.breath-object__core {
  position: relative;
  z-index: 3;
  width: 104px;
  height: 104px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;
  background:
    radial-gradient(circle at 34% 28%, #ffffff 0 14%, rgba(255, 252, 236, 0.9) 30%, rgba(246, 234, 190, 0.7) 52%, rgba(178, 212, 184, 0.75) 82%, rgba(150, 194, 160, 0.85) 100%);
  box-shadow:
    inset 0 -10px 24px rgba(120, 164, 128, 0.22),
    inset 0 6px 14px rgba(255, 255, 255, 0.9),
    0 22px 50px rgba(110, 150, 116, 0.22),
    0 6px 14px rgba(110, 150, 116, 0.12);
  will-change: transform, border-radius;
}

.breath-object__sheen {
  position: absolute;
  top: 12%;
  left: 18%;
  width: 38%;
  height: 22%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.95), transparent 70%);
  filter: blur(2px);
  transform: rotate(-24deg);
}

.breath-object__halo {
  z-index: 0;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 225, 160, 0.55) 0%, rgba(214, 234, 212, 0.45) 42%, transparent 70%);
  filter: blur(14px);
  will-change: transform, opacity;
}

.breath-object__ring {
  z-index: 1;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(118, 160, 124, 0.45);
  border-radius: 50%;
  opacity: 0;
  will-change: transform, opacity;
}

.breath-object__progress {
  --breath-progress: 0;
  z-index: 2;
  width: 172px;
  height: 172px;
  overflow: visible;
  transform: rotate(-90deg);
  pointer-events: none;
}

.breath-object__progress circle {
  fill: none;
  stroke: rgba(92, 132, 99, 0.55);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-dasharray: calc(var(--breath-progress) * 100) 100;
  opacity: calc(0.25 + var(--breath-progress) * 0.75);
}

.entry__breath {
  margin: 30px 0 4px;
  will-change: transform, opacity, filter;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.entry__hint {
  margin: 0;
  color: var(--muted);
}

.text-button {
  border: 0;
  padding: 10px 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(32, 48, 39, 0.2);
  text-underline-offset: 5px;
}

.entry .text-button {
  position: absolute;
  bottom: 28px;
}

/* Hero */
.hero {
  --hero-bg-x: 0px;
  --hero-bg-y: 0px;
  --hero-copy-x: 0px;
  --hero-copy-y: 0px;
  --hero-mist-x: 0px;
  --hero-mist-y: 0px;
  position: relative;
  min-height: 660px;
  isolation: isolate;
  overflow: hidden;
  background-color: #cbd8cf;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: -20px;
  z-index: -2;
  background: url("./assets/still-lake-sunrise-v2.png") center / cover no-repeat;
  transform: translate3d(var(--hero-bg-x), var(--hero-bg-y), 0) scale(1.035);
  will-change: transform;
}

.hero::after {
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(232, 239, 228, 0.03) 0%, rgba(231, 239, 227, 0.08) 62%, var(--bg) 100%);
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
}

/* Once the WebGL lake is ready it replaces the flat CSS image. */
.hero.hero--webgl::before { opacity: 0; }

.hero-butterfly {
  --butterfly-lift: 6px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  display: block;
  width: 42px;
  height: 36px;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 50%;
  transition: opacity 320ms ease;
  will-change: transform;
}

.hero-butterfly.is-visible { opacity: 1; }
.hero-butterfly svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter:
    drop-shadow(0 1px 1px rgba(60, 48, 24, 0.18))
    drop-shadow(0 var(--butterfly-lift) 6px rgba(33, 51, 39, 0.14));
}
.butterfly-shadow { display: none; }
.butterfly-wing__upper { fill: url(#butterfly-upper-fill); stroke: rgba(92, 70, 40, 0.55); stroke-width: 0.55; stroke-linejoin: round; }
.butterfly-wing__lower { fill: url(#butterfly-lower-fill); stroke: rgba(92, 70, 40, 0.5); stroke-width: 0.55; stroke-linejoin: round; }
.butterfly-wing__tip { fill: rgba(138, 98, 56, 0.5); }
.butterfly-wing__vein { fill: none; stroke: rgba(120, 86, 44, 0.32); stroke-width: 0.4; stroke-linecap: round; }
.butterfly-wing__dot { fill: rgba(255, 250, 235, 0.95); }
.butterfly-wing__eye { fill: url(#butterfly-eye-fill); stroke: rgba(74, 58, 36, 0.45); stroke-width: 0.4; }
.butterfly-body { fill: #3d4a3b; }
.butterfly-antennae { fill: none; stroke: #34402f; stroke-linecap: round; stroke-width: 0.45; }
.butterfly-antennae__tip { fill: #34402f; }

.hero__mist {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 38%;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(231, 239, 227, 0), var(--bg) 82%);
  translate: var(--hero-mist-x) var(--hero-mist-y);
  will-change: translate;
}

.topbar {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 26px;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  background: rgba(248, 251, 245, 0.35);
  color: var(--ink);
  backdrop-filter: blur(15px);
}

.brand-mark__orb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff8da, var(--sun) 42%, var(--moss-dark));
  box-shadow: 0 0 22px rgba(242, 201, 121, 0.6);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.live-session-pill {
  display: flex;
  min-height: 52px;
  align-items: center;
  gap: 10px;
  padding: 5px 15px 5px 6px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(248, 251, 245, 0.36);
  backdrop-filter: blur(18px);
  white-space: nowrap;
}

.live-session-pill__icon {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.44);
}

.live-session-pill__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.live-session-pill__copy { display: grid; gap: 1px; }
.live-session-pill__copy small { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .07em; line-height: 1.2; text-transform: uppercase; }
.live-session-pill__copy small i { width: 5px; height: 5px; border-radius: 50%; background: #78936f; box-shadow: 0 0 0 3px rgba(120, 147, 111, .13); }
.live-session-pill__copy time { font-size: 12px; font-weight: 500; line-height: 1.25; }

.icon-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(248, 251, 245, 0.36);
  backdrop-filter: blur(18px);
}

.icon-button,
.avatar-button,
.session-icon-button {
  position: relative;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}

.icon-button:hover,
.session-icon-button:hover {
  background: rgba(255, 255, 255, 0.44);
}

.icon-button:active,
.avatar-button:active,
.session-icon-button:active {
  transform: scale(0.94);
}

.icon-button svg,
.session-icon-button svg {
  width: 20px;
  height: 20px;
}

.avatar-button {
  background: rgba(35, 51, 42, 0.9);
  color: white;
  font-size: 13px;
  font-weight: 600;
}

.icon-nav [data-tooltip]::after {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 10;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: rgba(31, 46, 38, 0.94);
  box-shadow: 0 8px 22px rgba(22, 36, 29, 0.15);
  color: #f8fbf5;
  content: attr(data-tooltip);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 150ms ease, transform 150ms ease;
  white-space: nowrap;
}

.icon-nav [data-tooltip]::before {
  position: absolute;
  top: calc(100% + 5px);
  left: 50%;
  z-index: 11;
  width: 8px;
  height: 8px;
  background: rgba(31, 46, 38, 0.94);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -1px) rotate(45deg);
  transition: opacity 150ms ease, transform 150ms ease;
}

.icon-nav [data-tooltip]:hover::after,
.icon-nav [data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.icon-nav [data-tooltip]:hover::before,
.icon-nav [data-tooltip]:focus-visible::before {
  opacity: 1;
  transform: translate(-50%, 0) rotate(45deg);
}

.streak-button svg {
  transform: rotate(-90deg);
}

.streak-button circle {
  stroke: rgba(32, 48, 39, 0.18);
}

.streak-button .streak-progress {
  stroke: var(--moss-dark);
  stroke-dasharray: 72 100;
}

.icon-button__badge {
  position: absolute;
  right: 0;
  bottom: 0;
  display: grid;
  min-width: 16px;
  height: 16px;
  place-items: center;
  border: 2px solid rgba(237, 244, 232, 0.92);
  border-radius: 999px;
  background: var(--sun);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
}

.hero__copy {
  translate: var(--hero-copy-x) var(--hero-copy-y);
  will-change: translate;
  position: relative;
  z-index: 4;
  display: flex;
  min-height: 520px;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 118px;
  text-align: center;
}

.eyebrow,
.card-kicker,
.session-label,
.session-total,
.session-step {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
  color: rgba(32, 48, 39, 0.7);
}

.hero h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.hero__subtitle {
  max-width: 540px;
  margin: 20px auto 0;
  color: rgba(32, 48, 39, 0.72);
  font-size: 18px;
}

.hero-affirmation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px;
  align-items: center;
  gap: 8px;
  align-self: center;
  max-width: min(620px, 92%);
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px 11px;
  background: rgba(248, 250, 242, 0.48);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.64) inset;
  color: var(--ink);
  backdrop-filter: blur(10px);
  transition: background 220ms ease, transform 220ms ease;
}

.hero-affirmation:hover { background: rgba(248, 250, 242, 0.66); transform: translateY(-1px); }
.hero-affirmation__copy { display: grid; gap: 4px; border: 0; padding: 0; background: transparent; color: inherit; cursor: pointer; }
.hero-affirmation__next { display: grid; width: 30px; height: 30px; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.38); color: rgba(32,48,39,.58); cursor: pointer; transition: rotate 220ms ease, background 220ms ease; }
.hero-affirmation__next:hover { rotate: 35deg; background: rgba(255,255,255,.68); }
.hero-affirmation span { color: rgba(32, 48, 39, 0.58); font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.hero-affirmation q { font-family: Georgia, "Times New Roman", serif; font-size: 15px; font-style: italic; line-height: 1.4; }
.hero-affirmation q::before { content: "“"; }
.hero-affirmation q::after { content: "”"; }
.hero-affirmation q.is-changing { animation: affirmation-in 320ms var(--ease); }
@keyframes affirmation-in { from { opacity: 0; translate: 0 4px; } to { opacity: 1; translate: 0; } }

/* Dashboard */
.dashboard {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 72px;
}

.weekly-rhythm {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 34px;
  background: rgba(246, 249, 242, 0.68);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  backdrop-filter: blur(18px);
}

.weekly-rhythm__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 32px 22px;
}

.weekly-rhythm__header .card-kicker { margin-bottom: 7px; }
.weekly-rhythm__header h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.035em; }
.weekly-rhythm__header > p { max-width: 260px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }

.week-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-block: 1px solid rgba(32, 48, 39, 0.09);
}

.week-day {
  position: relative;
  display: grid;
  min-height: 82px;
  place-content: center;
  gap: 4px;
  border: 0;
  border-right: 1px solid rgba(32, 48, 39, 0.08);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  transition: background 180ms ease, color 180ms ease;
}

.week-day:last-child { border-right: 0; }
.week-day span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.week-day strong { font-size: 20px; font-weight: 500; }
.week-day i { position: absolute; bottom: 9px; left: 50%; width: 4px; height: 4px; border-radius: 50%; background: rgba(84, 112, 90, .32); translate: -50% 0; }
.week-day.is-complete i { background: #718b70; }
.week-day.has-live-session i { width: 6px; height: 6px; background: #d2a652; box-shadow: 0 0 0 3px rgba(210,166,82,.15); }
.week-day:hover { background: rgba(255,255,255,.34); color: var(--ink); }
.week-day.is-selected { background: rgba(255,255,255,.62); color: var(--ink); box-shadow: inset 0 -2px #617964; }

.ritual-day-detail {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 142px;
  padding: 24px 32px 28px;
}

.ritual-day-detail__time { display: grid; gap: 5px; padding-right: 24px; border-right: 1px solid rgba(32,48,39,.1); }
.ritual-day-detail__time span,.ritual-day-detail__copy>span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.ritual-day-detail__time strong { font-size: 19px; font-weight: 500; }
.ritual-day-detail__copy h3 { margin: 5px 0 0; font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.ritual-day-detail__copy p { max-width: 560px; margin: 6px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.ritual-day-detail__actions { display: flex; align-items: center; gap: 10px; }
.ritual-day-detail__actions>span { color: var(--muted); font-size: 12px; white-space: nowrap; }
.zoom-link { display: inline-flex; min-height: 42px; align-items: center; gap: 8px; border-radius: 999px; padding: 0 17px; background: #2d8cff; color: #fff; font-size: 12px; text-decoration: none; box-shadow: 0 9px 24px rgba(45,140,255,.2); }
.zoom-link i { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.2); }

.footer {
  position: relative;
  z-index: 4;
}
.footer__actions { display: flex; align-items: center; gap: 18px; }

.ritual-card,
.reflection {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  min-height: 210px;
  padding: 34px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.65) inset;
  backdrop-filter: blur(20px);
}

.ritual-card--primary {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  margin-top: -72px;
  padding: 42px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 88% 16%, rgba(244, 221, 176, 0.36), transparent 34%),
    rgba(249, 250, 245, 0.88);
  box-shadow: var(--shadow), 0 1px 0 rgba(255, 255, 255, 0.86) inset;
}

.ritual-card--primary::after {
  content: "";
  position: absolute;
  top: -48px;
  right: -18px;
  width: 250px;
  height: 250px;
  border: 1px solid rgba(111, 135, 110, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 38px rgba(111, 135, 110, 0.035), 0 0 0 78px rgba(111, 135, 110, 0.022);
  pointer-events: none;
}

/* Today and weekly rhythm share one calm surface. */
.ritual-card--primary.ritual-card--combined {
  display: block;
  min-height: 0;
  padding: 0;
}

.primary-card__feature {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 286px;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 42px 34px;
}

.ritual-card--combined .weekly-rhythm--embedded {
  position: relative;
  z-index: 1;
  border: 0;
  border-top: 1px solid rgba(32, 48, 39, 0.09);
  border-radius: 0;
  background: rgba(232, 240, 228, 0.36);
  box-shadow: inset 0 1px rgba(255,255,255,.55);
  backdrop-filter: none;
}

.weekly-rhythm--embedded .weekly-rhythm__header {
  align-items: center;
  padding: 16px 30px 12px;
}

.weekly-rhythm--embedded .weekly-rhythm__header .card-kicker { margin-bottom: 3px; font-size: 12px; }
.weekly-rhythm--embedded .weekly-rhythm__header h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.weekly-rhythm--embedded .weekly-rhythm__header > p { font-size: 12px; }
.weekly-rhythm--embedded .week-day { min-height: 58px; gap: 1px; }
.weekly-rhythm--embedded .week-day strong { font-size: 16px; }
.weekly-rhythm--embedded .week-day i { bottom: 6px; }
.weekly-rhythm--embedded .ritual-day-detail {
  grid-template-columns: 106px minmax(0, 1fr) auto;
  gap: 22px;
  min-height: 96px;
  padding: 15px 30px 19px;
}
.weekly-rhythm--embedded .ritual-day-detail__time { padding-right: 18px; }
.weekly-rhythm--embedded .ritual-day-detail__time strong { font-size: 17px; }
.weekly-rhythm--embedded .ritual-day-detail__copy h3 { margin-top: 3px; font-size: 18px; }
.weekly-rhythm--embedded .ritual-day-detail__copy p { display: none; }
.weekly-rhythm--embedded .ritual-day-detail__actions .secondary-button,
.weekly-rhythm--embedded .zoom-link { min-height: 38px; padding-inline: 16px; }

.card-kicker {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
}

.ritual-card h2,
.reflection h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.ritual-card:not(.ritual-card--primary) h2,
.reflection h2 {
  font-size: clamp(22px, 2.4vw, 30px);
}

.ritual-card p,
.reflection p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.primary-card__footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
}

.duration-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.duration-pill svg {
  width: 20px;
  height: 20px;
}

.primary-button,
.secondary-button,
.soft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.primary-button {
  background: var(--ink);
  color: #f9fbf7;
  box-shadow: 0 14px 30px rgba(32, 48, 39, 0.16);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(32, 48, 39, 0.2);
}

.primary-button:active,
.secondary-button:active,
.soft-button:active {
  transform: translateY(1px) scale(0.98);
}

.primary-button svg {
  width: 20px;
  height: 20px;
}

.secondary-button,
.soft-button {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.secondary-button:hover,
.soft-button:hover {
  background: rgba(255, 255, 255, 0.9);
}

.card-icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 22px;
  background: rgba(170, 203, 205, 0.28);
  color: var(--moss-dark);
}

.card-icon--leaf {
  background: rgba(181, 203, 170, 0.3);
}

.card-icon svg {
  width: 28px;
  height: 28px;
}

.card-copy {
  min-width: 0;
}

.monthly-intentions-card {
  display: block;
  min-height: 0;
  padding: 34px 38px 30px;
  background:
    radial-gradient(circle at 92% 4%, rgba(238, 203, 125, .17), transparent 27%),
    var(--surface-soft);
}

.monthly-intentions-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.monthly-intentions-card__header .card-kicker { margin-bottom: 7px; }
.monthly-intentions-card__header h2 { font-size: clamp(26px, 3vw, 36px) !important; }
.monthly-intentions-card__header p { margin: 7px 0 0; font-size: 13px; }

.monthly-intentions-card__progress {
  display: grid;
  min-width: 82px;
  gap: 2px;
  padding-top: 2px;
  text-align: right;
}

.monthly-intentions-card__progress strong { font-size: 28px; font-weight: 500; letter-spacing: -.04em; }
.monthly-intentions-card__progress span { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }

.home-intentions-progress {
  height: 5px;
  margin: 22px 0 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 48, 39, .08);
}

.home-intentions-progress i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6f896f, #d4b36f);
  transition: width 320ms var(--ease);
}

.home-intentions-list { display: grid; }

.home-intention {
  border-bottom: 1px solid rgba(32, 48, 39, .1);
}

.home-intention summary {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto 22px;
  align-items: center;
  gap: 13px;
  min-height: 68px;
  padding: 9px 2px;
  cursor: pointer;
  list-style: none;
}

.home-intention summary::-webkit-details-marker { display: none; }
.home-intention summary:focus-visible { outline: 2px solid rgba(84, 112, 90, .32); outline-offset: 3px; border-radius: 10px; }
.home-intention__status { width: 10px; height: 10px; border: 2px solid rgba(84, 112, 90, .4); border-radius: 50%; }
.home-intention.is-done .home-intention__status { border-color: #6f896f; background: #6f896f; box-shadow: inset 0 0 0 2px #eef3e9; }
.home-intention__copy { min-width: 0; }
.home-intention__copy strong { display: block; overflow: hidden; font-size: 15px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.home-intention.is-done .home-intention__copy strong { color: var(--muted); text-decoration: line-through; }
.home-intention__copy small,.home-intention__count { color: var(--muted); font-size: 12px; }
.home-intention__copy small { display: block; margin-top: 3px; }
.home-intention__count { white-space: nowrap; }
.home-intention__chevron { color: var(--muted); font-size: 16px; transition: rotate 200ms ease; }
.home-intention[open] .home-intention__chevron { rotate: 180deg; }

.home-intention__panel {
  display: grid;
  gap: 8px;
  padding: 2px 2px 18px 31px;
}

.home-intention__complete,
.home-intention__subtask {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--ink);
  font-size: 12px;
  cursor: pointer;
}

.home-intention__complete { margin-bottom: 2px; font-weight: 500; }
.home-intention__complete input,.home-intention__subtask input { width: 16px; height: 16px; margin: 0; accent-color: #607b64; }
.home-intention__subtask.is-done span { color: var(--muted); text-decoration: line-through; }
.home-intention__empty { margin: 0; color: var(--muted); font-size: 12px; }

.home-intentions-empty {
  display: grid;
  min-height: 130px;
  place-content: center;
  padding: 24px;
  text-align: center;
}

.home-intentions-empty strong { font-size: 17px; font-weight: 500; }
.home-intentions-empty p { max-width: 480px; margin: 7px auto 0; font-size: 13px; }

.monthly-intentions-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-top: 22px;
}

.monthly-intentions-card__footer p { margin: 0; font-size: 13px; }
.monthly-intentions-card__footer .secondary-button { flex: 0 0 auto; }

.guidance-carousel {
  position: relative;
  overflow: hidden;
  padding: 34px 0 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(246, 248, 241, .62);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset;
  backdrop-filter: blur(20px);
}

.guidance-carousel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  content: "";
}

.guidance-carousel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 0 38px 24px;
}

.guidance-carousel__header .card-kicker { margin-bottom: 7px; }
.guidance-carousel__header h2 { margin: 0; font-size: clamp(27px, 3vw, 38px); font-weight: 500; letter-spacing: -.045em; }
.guidance-carousel__header p { max-width: 580px; margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.guidance-carousel__controls { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }

.guidance-refresh,
.carousel-arrow {
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.48);
  color: var(--ink);
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.guidance-refresh { display: inline-flex; align-items: center; gap: 7px; padding: 0 15px; font-size: 12px; font-weight: 500; }
.guidance-refresh span { font-size: 15px; transition: rotate 280ms ease; }
.guidance-refresh:hover span { rotate: 90deg; }
.carousel-arrow { display: grid; width: 40px; padding: 0; place-items: center; font-size: 16px; }
.guidance-refresh:hover,.carousel-arrow:hover:not(:disabled) { background: rgba(255,255,255,.9); transform: translateY(-1px); }
.carousel-arrow:disabled { cursor: default; opacity: .28; }

.guidance-track {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 0 38px 14px;
  scroll-behavior: smooth;
  scroll-padding-inline: 38px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.guidance-track::-webkit-scrollbar { display: none; }
.guidance-track:focus-visible { outline: 2px solid rgba(84,112,90,.3); outline-offset: -2px; }

.guidance-card {
  position: relative;
  display: flex;
  width: clamp(245px, 27vw, 310px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 23px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 28px;
  background: var(--guidance-bg);
  box-shadow: 0 16px 38px rgba(40,59,46,.08), 0 1px 0 rgba(255,255,255,.7) inset;
  scroll-snap-align: start;
  isolation: isolate;
}

.guidance-card::before,
.guidance-card::after {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.guidance-card::before { top: -42px; right: -38px; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.45); box-shadow: 0 0 0 22px rgba(255,255,255,.07); }
.guidance-card::after { right: 26px; bottom: 29px; width: 54px; height: 54px; background: var(--guidance-orb); filter: blur(.2px); opacity: .7; }
.guidance-card[data-tone="sage"] { --guidance-bg: linear-gradient(145deg,#dce7d3,#bfcfb6); --guidance-orb: rgba(74,109,81,.2); }
.guidance-card[data-tone="sun"] { --guidance-bg: linear-gradient(145deg,#f2e4bb,#dfbd77); --guidance-orb: rgba(156,101,33,.18); }
.guidance-card[data-tone="mist"] { --guidance-bg: linear-gradient(145deg,#dce9e7,#b8d0cc); --guidance-orb: rgba(45,97,96,.16); }
.guidance-card[data-tone="clay"] { --guidance-bg: linear-gradient(145deg,#ead8cb,#cfad99); --guidance-orb: rgba(122,69,53,.15); }
.guidance-card[data-tone="lilac"] { --guidance-bg: linear-gradient(145deg,#e5dfec,#c9bad9); --guidance-orb: rgba(91,67,119,.15); }
.guidance-card[data-tone="cream"] { --guidance-bg: linear-gradient(145deg,#f3eee1,#ded5bd); --guidance-orb: rgba(98,82,50,.13); }

.guidance-card__top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.guidance-card__kind { color: rgba(32,48,39,.64); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.guidance-card__time { display: inline-flex; min-height: 25px; align-items: center; gap: 6px; border-radius: 999px; padding: 0 9px; background: rgba(255,255,255,.4); color: rgba(32,48,39,.72); font-size: 12px; font-weight: 600; white-space: nowrap; }
.guidance-card__time::before { width: 5px; height: 5px; border-radius: 50%; background: currentColor; content: ""; opacity: .65; }
.guidance-card h3 { max-width: 245px; margin: 0; font-family: Georgia,"Times New Roman",serif; font-size: clamp(22px,2.4vw,29px); font-weight: 400; letter-spacing: -.035em; line-height: 1.08; }
.guidance-card__footer { display: flex; min-height: 29px; align-items: center; justify-content: space-between; gap: 12px; }
.guidance-card__cue { color: rgba(32,48,39,.58); font-size: 12px; line-height: 1.35; }
.guidance-card__action { position: relative; z-index: 1; display: inline-flex; min-height: 30px; flex: 0 0 auto; align-items: center; gap: 6px; border: 0; border-radius: 999px; padding: 0 11px; background: rgba(32,48,39,.88); color: #fff; cursor: pointer; font-size: 12px; font-weight: 600; }
.guidance-card__action:hover { background: var(--ink); transform: translateY(-1px); }

.guidance-carousel__footer {
  display: grid;
  grid-template-columns: auto minmax(100px,190px) minmax(0,1fr);
  align-items: center;
  gap: 14px;
  padding: 8px 38px 0;
  color: var(--muted);
  font-size: 12px;
}

.guidance-carousel__footer > p { margin: 0; text-align: right; }
.guidance-progress { display: flex; gap: 4px; }
.guidance-progress i { width: 18px; height: 3px; border-radius: 999px; background: rgba(32,48,39,.12); transition: width 180ms ease, background 180ms ease; }
.guidance-progress i.is-active { width: 30px; background: rgba(32,48,39,.58); }

.ritual-card--article {
  overflow: hidden;
}

.article-visual {
  position: relative;
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 31px;
  background: linear-gradient(180deg, #dbe9dc, #bad1c9 55%, #8cac9d);
}

.article-visual__sun {
  position: absolute;
  top: 18px;
  left: 33px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 30px rgba(242, 201, 121, 0.7);
}

.article-visual__path {
  position: absolute;
  left: 39px;
  bottom: -20px;
  width: 20px;
  height: 78px;
  border-radius: 50%;
  background: rgba(244, 221, 176, 0.84);
  transform: rotate(7deg);
}

.reflection {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 180px;
  background: transparent;
  border-style: dashed;
}

.reflection__actions {
  display: flex;
  gap: 10px;
}

.reflection__response {
  grid-column: 1 / -1;
  min-height: 1.5em;
  margin-top: -10px !important;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 30px 46px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.text-button--dark {
  color: var(--ink);
}

/* Session */
.transition-canvas {
  position: fixed;
  z-index: 200;
  display: none;
  pointer-events: none;
}

.session-shell {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: none;
  overflow: hidden;
  color: #eef5ec;
  background: #17241e;
  clip-path: circle(0px at 50% 50%);
}

.session-shell__canvas,
.session-shell__vignette {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.session-shell__vignette {
  background:
    radial-gradient(circle at 50% 43%, transparent 18%, rgba(11, 20, 16, 0.1) 52%, rgba(8, 15, 12, 0.6) 100%),
    linear-gradient(180deg, rgba(11, 20, 16, 0.08), rgba(11, 20, 16, 0.32));
}

.session-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 34px;
}

.session-topbar > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.session-label,
.session-total {
  color: rgba(238, 245, 236, 0.72);
}

.session-total::before {
  content: "·";
  margin-right: 12px;
}

.session-icon-button {
  background: rgba(238, 245, 236, 0.08);
  color: #eef5ec;
  backdrop-filter: blur(14px);
}

.session-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(calc(100% - 48px), 760px);
  height: calc(100% - 245px);
  margin: 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.session-step {
  margin: 0 0 18px;
  color: rgba(238, 245, 236, 0.62);
}

.session-content h2 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 6vw, 74px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
}

.session-content > p:last-child {
  max-width: 620px;
  margin: 22px 0 0;
  color: rgba(238, 245, 236, 0.72);
  font-size: clamp(16px, 2vw, 20px);
}

.session-controls {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 42px 58px 42px minmax(220px, 520px);
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 32px 34px;
}

.session-play {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(238, 245, 236, 0.92);
  color: #1e3328;
  cursor: pointer;
}

.session-play svg {
  width: 22px;
  height: 22px;
}

.session-play .play-icon {
  display: none;
}

.session-play[aria-pressed="false"] .play-icon {
  display: block;
}

.session-play[aria-pressed="false"] .pause-icon {
  display: none;
}

.session-progress-wrap {
  margin-left: 18px;
}

.session-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: rgba(238, 245, 236, 0.62);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.session-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(238, 245, 236, 0.14);
}

.session-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #f2d59a;
}

/* Intentions and journal workspaces */
.workspace-page {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: none;
  overflow-y: auto;
  padding: 30px clamp(24px, 5vw, 78px) 56px;
  background:
    radial-gradient(circle at 80% 4%, rgba(242, 201, 121, 0.18), transparent 28%),
    linear-gradient(145deg, #edf3e9, #e1ebe0 72%);
  color: var(--ink);
}

.workspace-page.is-open { display: block; }

.workspace-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  width: min(100%, 1320px);
  margin: 0 auto;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(32, 48, 39, 0.12);
}

.workspace-topbar h2 {
  margin: 5px 0 0;
  font-size: clamp(38px, 6vw, 72px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 0.95;
}

.workspace-topbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-import-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255,255,255,.48);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}
.workspace-import-button:hover { background: rgba(255,255,255,.78); }
.workspace-import-button svg { width: 19px; height: 19px; }

.workspace-close {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
  font-size: 26px;
}

.workspace-layout,
.journal-archive-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: clamp(42px, 7vw, 100px);
  width: min(100%, 1320px);
  margin: 0 auto;
}

.workspace-sidebar,
.journal-months {
  padding-top: 42px;
  border-right: 1px solid rgba(32, 48, 39, 0.1);
  padding-right: clamp(24px, 4vw, 48px);
}

.month-stepper {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  gap: 8px;
}

.month-stepper button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.month-stepper h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  text-align: center;
}

.month-progress { margin-top: 48px; }
.month-progress strong { display: block; font-size: 56px; font-weight: 500; letter-spacing: -0.06em; }
.month-progress span { color: var(--muted); font-size: 14px; }
.month-progress__track { height: 3px; margin-top: 16px; overflow: hidden; border-radius: 99px; background: rgba(32, 48, 39, 0.1); }
.month-progress__track i { display: block; width: 0; height: 100%; background: var(--moss-dark); transition: width 400ms var(--ease); }
.workspace-sidebar > p { margin-top: 36px; color: var(--muted); font-size: 15px; line-height: 1.7; }

.workspace-main,
.journal-archive { min-width: 0; padding-top: 42px; }

.monthly-affirmations {
  margin-bottom: 42px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(32, 48, 39, 0.14);
}

.monthly-affirmations__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.monthly-affirmations__heading .card-kicker { margin-bottom: 7px; }
.monthly-affirmations__heading h3 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -.035em; }
.monthly-affirmations__heading > p { max-width: 290px; margin: 0; color: var(--muted); font-size: 13px; text-align: right; }

.affirmation-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 22px;
}

.affirmation-composer input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(32, 48, 39, 0.22);
  border-radius: 0;
  padding: 11px 2px;
  background: transparent;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-style: italic;
}

.affirmation-composer input:focus { outline: 0; border-bottom-color: transparent; }
.affirmation-composer .soft-button { white-space: nowrap; }

.affirmation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 28px;
  margin-top: 18px;
}

.affirmation-list__empty { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: 14px; }

.affirmation-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 4px 10px;
  align-items: start;
  padding: 17px 0;
  border-bottom: 1px solid rgba(32, 48, 39, 0.1);
}

.affirmation-item__mark { color: rgba(32, 48, 39, 0.32); font-size: 14px; line-height: 1.7; }
.affirmation-item.is-featured .affirmation-item__mark { color: #b98232; }
.affirmation-item > p { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 17px; font-style: italic; line-height: 1.55; }
.affirmation-item__actions { grid-column: 2; display: flex; gap: 13px; align-items: center; }
.affirmation-feature,
.affirmation-remove { border: 0; padding: 3px 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; }
.affirmation-feature[aria-pressed="true"] { color: #8b6226; font-weight: 600; }
.affirmation-remove:hover { color: #8f4a3e; }

.workspace-section-heading {
  display: grid;
  grid-template-columns: 1fr 100px;
  padding: 0 12px 13px 48px;
  border-bottom: 1px solid rgba(32, 48, 39, 0.14);
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.intention-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .8fr) auto;
  align-items: end;
  gap: 20px;
  margin-bottom: 34px;
  padding: 22px 0 26px;
  border-block: 1px solid rgba(32, 48, 39, 0.13);
}

.intention-composer[hidden] { display: none; }
.intention-composer label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.intention-composer label span { color: var(--muted); font-weight: 400; }
.intention-composer input,
.intention-composer textarea,
.subtask-adder input {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.34);
  color: var(--ink);
  resize: none;
}

.intention-composer__actions { display: flex; align-items: center; gap: 14px; }
.intention-composer__actions .primary-button { white-space: nowrap; }

.intention-sources {
  margin-bottom: 34px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(32,48,39,.14);
}
.intention-sources__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.intention-sources__heading .card-kicker { margin-bottom: 5px; }
.intention-sources__heading h3 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -.03em; }
.intention-sources__heading > p { max-width: 320px; margin: 0; color: var(--muted); font-size: 12px; text-align: right; }
.intention-source-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-top: 18px; }
.intention-source {
  display: grid;
  grid-template-columns: 76px minmax(0,1fr);
  align-items: center;
  gap: 13px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 9px;
  background: rgba(255,255,255,.43);
  cursor: pointer;
  text-align: left;
}
.intention-source:hover { background: rgba(255,255,255,.7); }
.intention-source img { width: 76px; height: 76px; border-radius: 12px; object-fit: cover; filter: saturate(.8); }
.intention-source span { min-width: 0; }
.intention-source strong,.intention-source small { display: block; }
.intention-source strong { overflow: hidden; font-size: 13px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.intention-source small { margin-top: 5px; color: var(--muted); font-size: 12px; line-height: 1.4; }

.intention-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 100px;
  column-gap: 20px;
  padding: 26px 12px;
  border-bottom: 1px solid rgba(32, 48, 39, 0.11);
}

.intention-check,
.subtask-check {
  appearance: none;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border: 1px solid rgba(32, 48, 39, 0.34);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.42);
  cursor: pointer;
}

.intention-check:checked,
.subtask-check:checked { background: var(--moss-dark); }
.intention-check:checked::after,
.subtask-check:checked::after { content: "✓"; color: white; font-size: 13px; line-height: 1; }

.intention-item__title { margin: -2px 0 0; font-size: 22px; font-weight: 500; letter-spacing: -0.025em; }
.intention-item.is-done .intention-item__title { color: var(--muted); text-decoration: line-through; }
.intention-item__progress { color: var(--muted); font-size: 13px; text-align: right; }

.subtask-list { display: grid; gap: 10px; margin-top: 18px; }
.subtask-row { display: grid; grid-template-columns: 18px 1fr; align-items: start; gap: 10px; color: #52635a; font-size: 14px; }
.subtask-row .subtask-check { width: 16px; height: 16px; border-radius: 4px; }
.subtask-row.is-done span { color: #8a958f; text-decoration: line-through; }
.add-subtask { margin-top: 14px; border: 0; padding: 4px 0; background: transparent; color: var(--moss-dark); cursor: pointer; font-size: 13px; }
.subtask-adder { display: flex; gap: 10px; margin-top: 12px; }
.subtask-adder button { border: 0; border-radius: 999px; padding: 6px 12px; background: var(--ink); color: white; cursor: pointer; }

.workspace-empty {
  padding: 74px 12px;
  border-bottom: 1px solid rgba(32, 48, 39, 0.1);
}
.workspace-empty h3 { margin: 0; font-size: 28px; font-weight: 500; letter-spacing: -0.035em; }
.workspace-empty p { max-width: 480px; margin: 10px 0 0; color: var(--muted); }

.workspace-page--journals {
  background:
    radial-gradient(circle at 18% 8%, rgba(244, 221, 176, 0.24), transparent 30%),
    linear-gradient(145deg, #f0f2e8, #e6ece2 72%);
}

.journal-months nav { display: grid; gap: 4px; margin-top: 24px; }
.journal-month-button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 12px 2px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}
.journal-month-button.is-active { border-bottom-color: rgba(32, 48, 39, 0.2); color: var(--ink); }
.journal-month-button small { color: inherit; }

.journal-archive__heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(32, 48, 39, 0.14);
}
.journal-archive__heading h3 { margin: 5px 0 0; font-size: 34px; font-weight: 500; letter-spacing: -0.04em; }
.journal-archive__heading > span { color: var(--muted); font-size: 14px; }

.journal-notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(30px, 5vw, 70px);
}

.journal-note {
  min-height: 220px;
  border: 0;
  border-bottom: 1px solid rgba(32, 48, 39, 0.12);
  padding: 30px 4px;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.journal-note__meta { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.journal-note h4 { margin: 20px 0 8px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.journal-note p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: #53645a;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: 20px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.journal-note:hover h4 { color: var(--moss-dark); }

.dialog.dialog--journal::backdrop {
  background: rgba(26, 37, 30, 0.42);
  backdrop-filter: blur(20px) saturate(.75);
}

/* Streak side sheet */
.side-sheet {
  width: min(100%, 540px);
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.side-sheet::backdrop {
  background: rgba(28, 42, 34, 0.3);
  backdrop-filter: blur(10px);
}

.side-sheet__panel {
  height: 100%;
  padding: 34px 32px 38px;
  overflow-y: auto;
  border-left: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 28px 0 0 28px;
  background: rgba(247, 249, 243, 0.97);
  box-shadow: -30px 0 80px rgba(26, 43, 33, 0.16);
}

.side-sheet__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.side-sheet__header h2 {
  max-width: 300px;
  margin: 6px 0 0;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.streak-hero {
  display: grid;
  grid-template-columns: 126px 1fr;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
  padding: 24px;
  border: 1px solid rgba(72, 96, 76, 0.1);
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(227, 238, 220, 0.9), rgba(246, 232, 194, 0.55));
}

.streak-hero__ring {
  display: grid;
  width: 126px;
  height: 126px;
  place-content: center;
  border: 7px solid rgba(73, 96, 77, 0.16);
  border-top-color: var(--moss-dark);
  border-right-color: var(--moss-dark);
  border-bottom-color: var(--moss-dark);
  border-radius: 50%;
  text-align: center;
  transform: rotate(-8deg);
}

.streak-hero__ring > * { transform: rotate(8deg); }
.streak-hero__ring strong { font-size: 42px; font-weight: 500; line-height: .9; }
.streak-hero__ring span { margin-top: 7px; color: var(--muted); font-size: 12px; }
.streak-hero__eyebrow { margin: 0 0 5px; color: var(--moss-dark); font-size: 12px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.streak-hero h3 { margin: 0; font-size: 23px; font-weight: 500; letter-spacing: -.025em; }
.streak-hero p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

.streak-section { margin-top: 32px; }
.streak-section__heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.streak-section__heading h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.streak-section__heading > span { color: var(--muted); font-size: 12px; }

.streak-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 17px;
}

.streak-week div { display: grid; justify-items: center; gap: 8px; }
.streak-week span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(102, 130, 103, 0.14);
  color: var(--moss-dark);
  font-size: 13px;
}
.streak-week span.is-today { background: var(--moss-dark); box-shadow: 0 7px 18px rgba(50, 76, 56, .2); color: white; }
.streak-week small { color: var(--muted); font-size: 12px; }

.streak-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--line);
}

.streak-stats div { min-width: 0; padding: 17px 12px; background: rgba(255, 255, 255, .56); }
.streak-stats strong { display: block; font-size: 18px; font-weight: 500; white-space: nowrap; }
.streak-stats span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }

.streak-history { display: grid; gap: 2px; margin: 14px 0 0; padding: 0; list-style: none; }
.streak-history li { display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.streak-history__mark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: rgba(102, 130, 103, .13); color: var(--moss-dark); font-size: 12px; }
.streak-history strong { display: block; font-size: 14px; font-weight: 500; }
.streak-history small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.streak-note { margin: 28px 0 0; padding: 16px 18px; border-radius: 16px; background: rgba(238, 226, 193, .42); color: var(--muted); font-size: 12px; line-height: 1.55; }
.streak-note strong { color: var(--ink); font-weight: 500; }

.group-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 13px; }

.group-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin-top: 28px;
  padding: 4px;
  border-radius: 14px;
  background: rgba(73, 96, 77, .08);
}

.group-tab {
  min-height: 40px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.group-tab span { margin-left: 4px; color: inherit; font-size: 12px; }
.group-tab.is-active { background: rgba(255, 255, 255, .78); box-shadow: 0 4px 14px rgba(38, 55, 44, .07); color: var(--ink); font-weight: 500; }
.group-panel { padding-top: 22px; }
.group-panel[hidden] { display: none; }

.group-streak-summary {
  position: relative;
  display: grid;
  grid-template-columns: 106px minmax(0, 1fr);
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgba(72, 96, 76, .1);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(227, 238, 220, .9), rgba(246, 232, 194, .55));
}
.group-streak-summary .streak-hero__ring { width: 106px; height: 106px; border-width: 6px; }
.group-streak-summary .streak-hero__ring strong { font-size: 36px; }
.group-streak-summary__copy h3 { margin: 0; font-size: 21px; font-weight: 500; letter-spacing: -.025em; }
.group-streak-summary__copy > p:last-child { margin: 7px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.group-rank { position: absolute; top: 16px; right: 17px; color: rgba(73, 96, 77, .52); font-size: 13px; font-weight: 600; }

.group-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--line);
}
.group-metrics div { padding: 15px 14px; background: rgba(255, 255, 255, .56); }
.group-metrics strong { display: block; font-size: 19px; font-weight: 500; }
.group-metrics span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.group-section { margin-top: 30px; }
.group-section__heading, .members-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.group-section__heading h3, .members-heading h3 { margin: 3px 0 0; font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.group-section__heading > span, .members-heading > span { color: var(--muted); font-size: 12px; }
.group-view-members { padding: 5px 0; font-size: 12px; }

.group-week-chart { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 126px; margin-top: 16px; }
.group-week-chart > div { position: relative; display: grid; grid-template-rows: 1fr auto; justify-items: center; gap: 7px; }
.group-week-chart > div > span { position: relative; width: 22px; height: 100%; overflow: hidden; border-radius: 999px; background: rgba(73, 96, 77, .08); }
.group-week-chart > div > span::after { position: absolute; right: 0; bottom: 0; left: 0; height: var(--attendance); border-radius: inherit; background: rgba(91, 117, 91, .48); content: ""; }
.group-week-chart > div.is-today > span::after { background: var(--moss-dark); }
.group-week-chart small { color: var(--muted); font-size: 12px; }
.group-week-chart b { position: absolute; top: 5px; font-size: 12px; font-weight: 500; }

.group-regulars { margin-top: 10px; }
.group-regulars > div { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; border-bottom: 1px solid var(--line); }
.member-avatar { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: #dce7d7; color: #405344; font-size: 12px; font-style: normal; font-weight: 600; }
.avatar--maya { background: #e8d7bc; }.avatar--ash { background: #d5e4d1; }.avatar--noah { background: #d5e1e5; }.avatar--ira { background: #e5d7df; }
.avatar--liam { background: #e6e0c9; }.avatar--meera { background: #d8dfc9; }.avatar--dev { background: #d9d7e8; }.avatar--sofia { background: #ead6cb; }
.group-regulars p, .member-roster p { min-width: 0; margin: 0; }
.group-regulars strong, .member-roster strong { display: block; font-size: 13px; font-weight: 500; }
.group-regulars small, .member-roster p small { display: block; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.group-regulars b { font-size: 12px; font-weight: 500; }
.group-regulars em, .member-roster em { margin-left: 4px; padding: 2px 5px; border-radius: 999px; background: rgba(73, 96, 77, .1); color: var(--moss-dark); font-size: 12px; font-style: normal; text-transform: uppercase; }

.members-heading { margin: 4px 0 14px; }
.member-roster { margin: 0; padding: 0; list-style: none; }
.member-roster li { display: grid; grid-template-columns: 20px 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-height: 68px; padding: 8px 7px; border-bottom: 1px solid var(--line); border-radius: 12px; }
.member-roster li.is-you { background: rgba(216, 231, 211, .42); }
.member-position { color: var(--muted); font-size: 12px; text-align: center; }
.member-roster > li > b { min-width: 48px; color: var(--moss-dark); font-size: 16px; font-weight: 500; text-align: right; }
.member-roster > li > b small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

/* Dialogs */
.dialog {
  width: min(calc(100% - 32px), 680px);
  max-height: min(88vh, 820px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 34px;
  background: transparent;
  color: var(--ink);
}

.dialog::backdrop {
  background: rgba(30, 44, 36, 0.28);
  backdrop-filter: blur(12px);
}

.dialog__panel {
  max-height: min(88vh, 820px);
  padding: 34px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 34px;
  background: #f8faf5;
  box-shadow: 0 30px 90px rgba(29, 46, 35, 0.18);
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.dialog h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.dialog label {
  display: block;
  margin-bottom: 9px;
  font-weight: 500;
}

.dialog input,
.dialog textarea {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  resize: vertical;
}

.dialog input {
  min-height: 58px;
}

.dialog textarea {
  min-height: 260px;
  line-height: 1.75;
}

.field-hint {
  color: var(--muted);
  font-size: 14px;
}

.dialog__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

.dialog__actions .field-hint {
  margin-right: auto;
}

.dialog--ocr { width: min(calc(100% - 32px), 880px); }
.ocr-panel { max-height: min(92vh,900px); }
.ocr-header { margin-bottom: 18px; }
.ocr-header p { max-width: 590px; margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.ocr-privacy { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; border-radius: 15px; padding: 11px 14px; background: rgba(181,203,170,.18); color: var(--moss-dark); }
.ocr-privacy > span { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 50%; background: rgba(255,255,255,.55); }
.ocr-privacy p { margin: 0; }
.ocr-privacy strong,.ocr-privacy small { display: block; }
.ocr-privacy strong { font-size: 12px; font-weight: 600; }
.ocr-privacy small { margin-top: 1px; color: var(--muted); font-size: 12px; }
.ocr-capture-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(220px,.8fr); align-items: center; gap: 20px; }
.ocr-dropzone { position: relative; min-height: 260px; overflow: hidden; border: 1px dashed rgba(73,96,77,.3); border-radius: 24px; padding: 0; background: rgba(231,239,227,.48); cursor: pointer; }
.ocr-dropzone.is-dragging { border-color: var(--moss-dark); background: rgba(216,231,211,.62); }
.ocr-dropzone img { width: 100%; height: 260px; object-fit: contain; background: #eef2e9; }
.ocr-placeholder { display: grid; place-items: center; gap: 7px; color: var(--muted); }
.ocr-placeholder svg { width: 34px; height: 34px; margin-bottom: 4px; color: var(--moss-dark); }
.ocr-placeholder strong { color: var(--ink); font-size: 15px; font-weight: 500; }
.ocr-placeholder small { font-size: 12px; }
.ocr-capture-actions { display: grid; gap: 10px; }
.ocr-capture-actions .secondary-button { width: 100%; }
.ocr-capture-actions > p { margin: 2px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.ocr-camera-button svg { width: 18px; height: 18px; }
.ocr-status { margin-top: 18px; }
.ocr-status > div:first-child { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 12px; }
.ocr-status strong { font-weight: 500; }
.ocr-progress { height: 3px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: rgba(32,48,39,.09); }
.ocr-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--moss-dark); transition: width 180ms ease; }
.ocr-review { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.ocr-review__heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 17px; }
.ocr-review__heading .card-kicker { margin-bottom: 4px; }
.ocr-review__heading h3 { margin: 0; font-size: 25px; font-weight: 500; letter-spacing: -.035em; }
.ocr-review__heading > span { color: var(--muted); font-size: 12px; }
.dialog .ocr-review label { margin-bottom: 8px; font-size: 12px; }
.dialog .ocr-review textarea { min-height: 190px; border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.66); font-family: "Bradley Hand","Segoe Print","Comic Sans MS",cursive; font-size: 18px; line-height: 1.55; }
.ocr-review .field-hint { margin: 8px 0 0; font-size: 12px; }
.ocr-review__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.dialog--article {
  width: min(calc(100% - 32px), 760px);
}

.dialog--journal {
  width: min(calc(100% - 32px), 820px);
  max-height: 94vh;
}

.journal-sheet {
  max-height: 94vh;
  padding: 32px 38px 34px;
  border-color: rgba(116, 96, 57, 0.16);
  border-radius: 18px 34px 34px 18px;
  background:
    linear-gradient(90deg, rgba(158, 109, 76, 0.09) 0, transparent 9%),
    #fbf7e9;
  box-shadow: 0 34px 100px rgba(52, 43, 29, 0.2), inset 1px 0 rgba(255, 255, 255, 0.75);
}

.journal-sheet__header { margin-bottom: 18px; }
.journal-sheet__header h2 { max-width: 650px; font-size: clamp(27px, 4vw, 40px); }
.journal-sheet.is-editing .prompt-switcher { display: none; }

.prompt-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: #7d755f;
  font-size: 13px;
  letter-spacing: .025em;
}

.prompt-arrow {
  min-height: 38px;
  border: 1px solid rgba(75, 71, 54, 0.13);
  border-radius: 999px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}

.paper-page {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  border: 1px solid rgba(106, 87, 54, 0.12);
  border-radius: 8px 18px 18px 8px;
  padding: 22px 28px 22px 58px;
  background:
    linear-gradient(90deg, transparent 0 37px, rgba(194, 104, 92, 0.2) 37px 38px, transparent 38px),
    repeating-linear-gradient(to bottom, transparent 0 34px, rgba(83, 119, 132, 0.14) 34px 35px),
    #fffdf5;
  box-shadow: 0 12px 35px rgba(73, 63, 41, 0.07), inset 7px 0 16px rgba(79, 65, 39, 0.035);
}

.paper-page::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 28px;
  width: 8px;
  background: radial-gradient(circle, rgba(68, 61, 44, .22) 0 2px, transparent 2.5px) center top / 8px 34px repeat-y;
}

.paper-page__date {
  display: block;
  height: 31px;
  color: rgba(67, 73, 63, .55);
  font-family: "Bradley Hand", "Segoe Print", cursive;
  font-size: 15px;
  text-align: right;
}

.dialog .paper-page textarea {
  min-height: 320px;
  border: 0;
  border-radius: 0;
  padding: 0 4px;
  background: transparent;
  color: #324339;
  font-family: "Bradley Hand", "Segoe Print", "Comic Sans MS", cursive;
  font-size: clamp(22px, 3vw, 28px);
  line-height: 35px;
  letter-spacing: .01em;
  resize: none;
  outline-offset: 8px;
}

.dialog .paper-page textarea::placeholder { color: rgba(50, 67, 57, .34); }

.article-reader {
  padding: 42px;
}

.article-reader p {
  color: #53645a;
  font-size: 18px;
  line-height: 1.75;
}

.article-reader__lead {
  color: var(--ink) !important;
  font-size: 22px !important;
  line-height: 1.5 !important;
}

.article-reader h3 {
  margin: 30px 0 0;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.025em;
}

.article-practice {
  margin-top: 34px;
  padding: 24px;
  border-radius: 24px;
  background: rgba(181, 203, 170, 0.24);
}

.article-practice p {
  margin-bottom: 0;
  color: var(--ink);
}

.practice-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.practice-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  text-align: left;
}

.practice-item:hover,
.practice-item--active {
  background: rgba(181, 203, 170, 0.22);
}

.practice-item small {
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 800;
  max-width: min(360px, calc(100% - 40px));
  padding: 13px 17px;
  border-radius: 999px;
  background: rgba(32, 48, 39, 0.94);
  color: white;
  box-shadow: 0 18px 50px rgba(32, 48, 39, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
}

/* Mobile app navigation */
.mobile-bottom-nav,
.mobile-more-sheet { display: none; }

.mobile-bottom-nav {
  position: fixed;
  right: 10px;
  bottom: calc(8px + env(safe-area-inset-bottom));
  left: 10px;
  z-index: 470;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  min-height: 66px;
  padding: 6px 5px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 23px;
  background: rgba(246,249,242,.9);
  box-shadow: 0 18px 48px rgba(35,54,42,.2), inset 0 1px rgba(255,255,255,.7);
  backdrop-filter: blur(22px) saturate(1.15);
  transition: opacity 180ms ease, transform 280ms var(--ease);
}

.mobile-nav-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 54px;
  place-content: center;
  justify-items: center;
  gap: 3px;
  border: 0;
  border-radius: 17px;
  padding: 4px 2px;
  background: transparent;
  color: #75827a;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mobile-nav-item::before {
  position: absolute;
  top: 3px;
  left: 50%;
  width: 34px;
  height: 30px;
  border-radius: 13px;
  background: rgba(111,135,110,.13);
  content: "";
  opacity: 0;
  transform: translateX(-50%) scale(.72);
  transition: opacity 180ms ease, transform 220ms var(--ease);
}

.mobile-nav-item svg { position: relative; width: 21px; height: 21px; stroke-width: 1.65; }
.mobile-nav-item span { position: relative; overflow: hidden; max-width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .01em; text-overflow: ellipsis; }
.mobile-nav-item.is-active { color: var(--moss-dark); }
.mobile-nav-item.is-active::before { opacity: 1; transform: translateX(-50%) scale(1); }
.mobile-nav-item:active { transform: scale(.94); }

.mobile-more-sheet {
  position: fixed;
  inset: 0;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--ink);
}

.mobile-more-sheet::backdrop { background: rgba(28,42,34,.34); backdrop-filter: blur(8px); }
.mobile-more-sheet__panel {
  align-self: end;
  width: 100%;
  overflow-y: auto;
  max-height: min(82dvh, 680px);
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(24px + env(safe-area-inset-bottom));
  background: linear-gradient(160deg, rgba(249,250,245,.99), rgba(232,239,228,.99));
  box-shadow: 0 -24px 70px rgba(27,43,33,.18);
}
.mobile-more-sheet__handle { width: 38px; height: 4px; margin: 0 auto 16px; border-radius: 99px; background: rgba(32,48,39,.18); }
.mobile-more-sheet__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.mobile-more-sheet__header h2 { margin: 5px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -.045em; }
.mobile-more-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.mobile-more-action {
  display: flex;
  min-width: 0;
  min-height: 86px;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(32,48,39,.08);
  border-radius: 20px;
  padding: 13px;
  background: rgba(255,255,255,.52);
  cursor: pointer;
  text-align: left;
}
.mobile-more-action:active { background: rgba(255,255,255,.82); transform: scale(.98); }
.mobile-more-action__icon { display: grid; flex: 0 0 auto; width: 38px; height: 38px; place-items: center; border-radius: 14px; background: rgba(111,135,110,.12); color: var(--moss-dark); }
.mobile-more-action__icon svg { width: 20px; height: 20px; }
.mobile-more-action__avatar { background: var(--ink); color: white; font-size: 12px; font-weight: 600; }
.mobile-more-action > span:last-child { min-width: 0; }
.mobile-more-action strong,.mobile-more-action small { display: block; }
.mobile-more-action strong { font-size: 12px; font-weight: 600; line-height: 1.25; }
.mobile-more-action small { overflow: hidden; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.3; text-overflow: ellipsis; }
.mobile-more-sheet__footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 15px; border-top: 1px solid var(--line); }
.mobile-sheet-link { border: 0; padding: 7px 2px; background: transparent; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: none; }

@media (max-width: 800px) {
  .live-session-pill__copy small { display: none; }
  .live-session-pill { padding-right: 12px; }

  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .hero {
    min-height: 590px;
  }

  .hero__copy {
    min-height: 470px;
    padding-bottom: 100px;
  }

  .ritual-card {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 28px;
  }

  .ritual-card .secondary-button {
    grid-column: 2;
    justify-self: start;
  }

  .monthly-intentions-card .secondary-button { grid-column: auto; }
  .guidance-carousel__header { align-items: flex-start; }
  .guidance-carousel__controls { flex-wrap: wrap; justify-content: flex-end; }

  .reflection {
    grid-template-columns: 1fr;
  }

  .ritual-day-detail { grid-template-columns: 105px minmax(0, 1fr); }
  .ritual-day-detail__actions { grid-column: 2; }

  .reflection__response {
    grid-column: auto;
  }

  .session-controls {
    grid-template-columns: 42px 58px 42px;
  }

  .session-progress-wrap {
    grid-column: 1 / -1;
    width: min(100%, 520px);
    margin: 10px auto 0;
  }

  .workspace-page { padding-inline: 24px; }
  .workspace-layout,
  .journal-archive-layout { grid-template-columns: 1fr; gap: 0; }
  .workspace-sidebar,
  .journal-months { border-right: 0; border-bottom: 1px solid rgba(32, 48, 39, 0.1); padding: 28px 0; }
  .workspace-sidebar { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(180px, .7fr); gap: 32px; }
  .workspace-sidebar .month-progress { margin-top: 0; }
  .workspace-sidebar > p { grid-column: 1 / -1; margin: 0; }
  .journal-months nav { display: flex; overflow-x: auto; gap: 18px; }
  .journal-month-button { flex: 0 0 auto; gap: 12px; width: auto; }
  .intention-composer { grid-template-columns: 1fr 1fr; }
  .intention-composer__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .affirmation-list { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .auth-gate { align-items: end; padding: 14px; }
  .auth-card { border-radius: 28px; padding: 26px 22px calc(24px + env(safe-area-inset-bottom)); }
  .auth-card__brand { margin-bottom: 42px; }
  .auth-card h1 { font-size: 43px; }
  .auth-card > p:not(.auth-status) { font-size: 14px; }
  .google-signin-button { margin-top: 24px; }
  .dialog--profile { width: 100%; max-width: none; margin: auto 0 0; }
  .dialog--profile .profile-panel { border-radius: 26px 26px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .profile-meta { grid-template-columns: 1fr; }
  .onboarding { display: block; padding: 0; background: #e8efe4; }
  .onboarding__landscape { opacity: .5; }
  .onboarding__sun { top: 12%; left: 72%; width: 66px; height: 66px; }
  .onboarding__shell {
    width: 100%;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    padding: calc(22px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom));
    background: rgba(246,249,243,.9);
    box-shadow: none;
  }
  .onboarding__header { gap: 12px; }
  .onboarding__step-label { font-size: 12px; }
  .onboarding__progress { margin-top: 18px; }
  .onboarding__form { min-height: 550px; margin-top: 32px; }
  .onboarding-step h1 { font-size: clamp(43px, 13vw, 57px); }
  .onboarding-step h2,
  .onboarding-step label { font-size: clamp(36px, 10vw, 46px); }
  .onboarding-step > p { margin-top: 18px; font-size: 15px; }
  .onboarding-step input { margin-top: 48px; font-size: 34px; }
  .onboarding-primary { width: calc(100% - 86px); align-self: flex-end; margin-top: auto; }
  .onboarding-step[data-onboarding-step="0"] .onboarding-primary { width: 100%; }
  .onboarding-options { grid-template-columns: 1fr; gap: 7px; margin-top: 24px; margin-bottom: 28px; }
  .onboarding-options button { min-height: 62px; border-radius: 17px; }
  .onboarding-options--reasons { gap: 6px; margin-top: 0; }
  .onboarding-options--reasons button { min-height: 49px; padding-block: 9px; }
  .onboarding-options--duration { grid-template-columns: 1fr 1fr; }
  .onboarding-options--duration button { min-height: 108px; }
  .onboarding-options--duration button::after { top: 13px; right: 13px; }
  .onboarding-step--complete .onboarding-primary { width: auto; min-width: 210px; }
  .onboarding-back { bottom: calc(35px + env(safe-area-inset-bottom)); left: 22px; }

  body { overscroll-behavior-y: none; }
  .app-shell { padding-bottom: calc(82px + env(safe-area-inset-bottom)); }
  .mobile-bottom-nav { display: grid; }
  .mobile-more-sheet[open] { display: grid; grid-template-rows: 1fr auto; }
  .mobile-more-sheet[open] .mobile-more-sheet__panel { grid-row: 2; }
  body.dialog-open .mobile-bottom-nav,
  body.session-open .mobile-bottom-nav { opacity: 0; pointer-events: none; transform: translateY(calc(100% + 24px)); }

  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .topbar {
    align-items: flex-start;
    padding-top: 16px;
  }

  .topbar__actions { flex-direction: column-reverse; align-items: flex-end; gap: 7px; }
  .topbar .icon-nav { display: none; }
  .live-session-pill { min-height: 38px; padding: 3px 10px 3px 4px; }
  .live-session-pill__icon { width: 30px; height: 30px; }
  .live-session-pill__icon svg { width: 16px; height: 16px; }
  .live-session-pill__copy time { font-size: 12px; }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .icon-nav {
    gap: 2px;
  }

  .icon-button,
  .avatar-button {
    width: 36px;
    height: 36px;
  }

  .side-sheet { width: 100%; max-height: 100dvh; margin-top: auto; }
  .side-sheet__panel { padding: 26px 20px calc(102px + env(safe-area-inset-bottom)); border-radius: 22px 0 0 22px; }
  .side-sheet__header h2 { font-size: 32px; }
  .streak-hero { grid-template-columns: 104px 1fr; gap: 17px; padding: 19px; }
  .streak-hero__ring { width: 104px; height: 104px; }
  .streak-week { gap: 4px; }
  .streak-week span { width: 34px; height: 34px; }
  .group-streak-summary { grid-template-columns: 82px minmax(0, 1fr); gap: 15px; padding: 17px; }
  .group-streak-summary .streak-hero__ring { width: 82px; height: 82px; border-width: 5px; }
  .group-streak-summary .streak-hero__ring strong { font-size: 30px; }
  .group-streak-summary .streak-hero__ring span { font-size: 12px; }
  .group-streak-summary__copy h3 { padding-right: 20px; font-size: 18px; }
  .group-metrics div { padding: 13px 8px; }
  .group-week-chart { gap: 5px; }
  .member-roster li { grid-template-columns: 16px 34px minmax(0, 1fr) auto; gap: 8px; }
  .member-avatar { width: 34px; height: 34px; }

  .hero {
    min-height: 515px;
  }

  .hero__copy {
    min-height: 405px;
    padding-bottom: 78px;
  }

  .hero h1 { font-size: clamp(38px, 12vw, 52px); line-height: 1; }

  .hero__subtitle {
    font-size: 16px;
  }

  .hero-affirmation { max-width: 100%; margin-top: 17px; padding: 9px 14px 10px; }
  .hero-affirmation q { font-size: 14px; }

  .dashboard {
    gap: 16px;
  }

  .weekly-rhythm { border-radius: 28px; }
  .weekly-rhythm__header { align-items: flex-start; flex-direction: column; gap: 8px; padding: 24px 22px 18px; }
  .weekly-rhythm__header > p { max-width: none; text-align: left; }
  .week-day { min-height: 70px; }
  .week-day span { font-size: 12px; }
  .week-day strong { font-size: 17px; }
  .ritual-day-detail { grid-template-columns: 1fr; gap: 16px; padding: 22px; }
  .ritual-day-detail__time { display: flex; justify-content: space-between; padding: 0 0 14px; border-right: 0; border-bottom: 1px solid rgba(32,48,39,.1); }
  .ritual-day-detail__actions { grid-column: auto; flex-wrap: wrap; }

  .ritual-card--primary {
    min-height: 310px;
    margin-top: -54px;
    padding: 25px;
  }

  .primary-card__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button {
    width: 100%;
    min-height: 48px;
  }

  .secondary-button { min-height: 46px; }

  .ritual-card {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: auto;
    padding: 24px;
    border-radius: 28px;
  }

  .ritual-card .secondary-button {
    grid-column: auto;
  }

  .monthly-intentions-card { padding: 24px; }
  .monthly-intentions-card__header { gap: 16px; }
  .monthly-intentions-card__progress { min-width: 64px; }
  .home-intention summary { grid-template-columns: 14px minmax(0, 1fr) 20px; gap: 10px; }
  .home-intention__count { display: none; }
  .home-intention__panel { padding-left: 24px; }
  .monthly-intentions-card__footer { align-items: stretch; flex-direction: column; }
  .monthly-intentions-card__footer .secondary-button { width: 100%; }
  .guidance-carousel { border-radius: 28px; }
  .guidance-carousel__header { align-items: flex-start; flex-direction: column; gap: 16px; padding: 0 22px 20px; }
  .guidance-carousel__controls { width: 100%; justify-content: flex-start; }
  .guidance-refresh { margin-right: auto; }
  .guidance-track { gap: 12px; padding: 0 22px 12px; scroll-padding-inline: 22px; }
  .guidance-card { width: min(78vw,285px); padding: 21px; border-radius: 25px; }
  .guidance-carousel__footer { grid-template-columns: auto 1fr; padding: 7px 22px 0; }
  .guidance-carousel__footer > p { display: none; }

  .card-icon {
    width: 54px;
    height: 54px;
    border-radius: 18px;
  }

  .article-visual {
    width: 76px;
    height: 76px;
    border-radius: 24px;
  }

  .article-visual__sun {
    top: 13px;
    left: 26px;
    width: 25px;
    height: 25px;
  }

  .article-visual__path {
    left: 31px;
  }

  .reflection__actions {
    flex-direction: column;
  }

  .soft-button {
    width: 100%;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 18px;
  }

  .toast {
    right: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: 14px;
    max-width: none;
    border-radius: 18px;
    text-align: center;
  }

  .session-topbar {
    padding: 18px;
  }

  .session-content {
    height: calc(100% - 260px);
  }

  .session-controls {
    padding-inline: 18px;
  }

  .dialog__panel,
  .article-reader {
    padding: 24px;
  }

  .dialog:not(.dialog--journal):not(.dialog--article):not(.dialog--library) {
    width: 100%;
    max-width: none;
    margin: auto 0 0;
  }

  .dialog:not(.dialog--journal):not(.dialog--article):not(.dialog--library) .dialog__panel {
    border-radius: 26px 26px 0 0;
    padding-bottom: calc(26px + env(safe-area-inset-bottom));
  }

  .dialog--journal,
  .dialog--article,
  .dialog--library { width: 100%; max-width: none; max-height: 100dvh; margin: auto 0 0; }
  .dialog--journal .dialog__panel,
  .dialog--article .dialog__panel,
  .dialog--library .dialog__panel { width: 100%; max-height: 96dvh; overflow-y: auto; border-radius: 24px 24px 0 0; }

  .journal-sheet { padding: 22px 18px 24px; border-radius: 20px; }
  .paper-page { padding: 18px 16px 18px 45px; }
  .prompt-switcher { align-items: stretch; }
  .prompt-arrow { font-size: 12px; }

  .dialog__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .dialog__actions .field-hint {
    margin-right: 0;
  }

  .workspace-page { padding: 20px 16px calc(104px + env(safe-area-inset-bottom)); }
  .workspace-topbar { align-items: flex-start; }
  .workspace-topbar h2 { font-size: 38px; }
  .workspace-topbar__actions { gap: 7px; }
  .workspace-topbar__actions .primary-button { width: auto; min-height: 44px; padding-inline: 15px; font-size: 13px; }
  .workspace-import-button { width: 44px; min-height: 44px; justify-content: center; padding: 0; }
  .workspace-import-button span { display: none; }
  .workspace-close { width: 44px; height: 44px; }
  .workspace-sidebar { display: block; }
  .workspace-sidebar .month-progress { margin-top: 28px; }
  .workspace-sidebar > p { margin-top: 26px; }
  .workspace-main,
  .journal-archive { padding-top: 28px; }
  .monthly-affirmations__heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .monthly-affirmations__heading > p { max-width: none; text-align: left; }
  .affirmation-composer { grid-template-columns: 1fr; }
  .affirmation-composer .soft-button { width: 100%; }
  .intention-composer { grid-template-columns: 1fr; }
  .intention-composer__actions { grid-column: auto; align-items: stretch; flex-direction: column-reverse; }
  .intention-composer__actions .primary-button { width: 100%; }
  .intention-sources__heading { align-items: flex-start; flex-direction: column; gap: 7px; }
  .intention-sources__heading > p { max-width: none; text-align: left; }
  .intention-source-list { grid-template-columns: 1fr; }
  .intention-source { grid-template-columns: 66px minmax(0,1fr); }
  .intention-source img { width: 66px; height: 66px; }
  .ocr-panel { max-height: 96dvh; padding: 21px 18px calc(24px + env(safe-area-inset-bottom)) !important; }
  .ocr-header h2 { font-size: 31px; }
  .ocr-header p { font-size: 12px; }
  .ocr-privacy { align-items: flex-start; }
  .ocr-capture-layout { grid-template-columns: 1fr; gap: 13px; }
  .ocr-dropzone { min-height: 210px; }
  .ocr-dropzone img { height: 210px; }
  .ocr-capture-actions { grid-template-columns: 1fr 1fr; }
  .ocr-capture-actions > p { grid-column: 1 / -1; }
  .ocr-review__heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .ocr-review__actions { align-items: stretch; flex-direction: column-reverse; }
  .ocr-review__actions .primary-button,.ocr-review__actions .secondary-button { width: 100%; }
  .workspace-section-heading { display: none; }
  .intention-item { grid-template-columns: 24px minmax(0, 1fr); padding-inline: 2px; }
  .intention-item__progress { grid-column: 2; margin-top: 10px; text-align: left; }
  .journal-notes-grid { grid-template-columns: 1fr; }
  .journal-note { min-height: 180px; }

  .ritual-card--primary.ritual-card--combined { padding: 0; border-radius: 28px; }
  .ritual-card--combined .primary-card__feature { min-height: 286px; padding: 25px 25px 23px; }
  .ritual-card--combined .primary-card__footer { margin-top: 34px; }
  .ritual-card--combined .weekly-rhythm__header { flex-direction: row; align-items: center; gap: 14px; padding: 15px 18px 11px; }
  .ritual-card--combined .weekly-rhythm__header > p { max-width: 130px; font-size: 12px; text-align: right; }
  .ritual-card--combined .week-day { min-height: 54px; }
  .ritual-card--combined .week-day span { font-size: 12px; }
  .ritual-card--combined .week-day strong { font-size: 14px; }
  .ritual-card--combined .ritual-day-detail { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 15px 18px 18px; }
  .ritual-card--combined .ritual-day-detail__time { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 0 0 10px; border-right: 0; border-bottom: 1px solid rgba(32,48,39,.09); }
  .ritual-card--combined .ritual-day-detail__copy { min-width: 0; }
  .ritual-card--combined .ritual-day-detail__copy h3 { overflow: hidden; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
  .ritual-card--combined .ritual-day-detail__actions { grid-column: 2; flex-wrap: nowrap; }
  .ritual-card--combined .ritual-day-detail__actions > span { display: none; }
  .ritual-card--combined .ritual-day-detail__actions .secondary-button,
  .ritual-card--combined .zoom-link { min-height: 38px; padding-inline: 14px; white-space: nowrap; }
}

/* Keep the Monthly Intentions workspace contained on phone and narrow tablet
   viewports. The title gets its own row, while the two primary actions share a
   second row and the close control stays pinned inside the sheet. */
@media (max-width: 800px) {
  #intentions-workspace {
    overflow-x: clip;
  }

  #intentions-workspace .workspace-topbar {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
    max-width: 100%;
    padding-bottom: 24px;
  }

  #intentions-workspace .workspace-topbar > div:first-child {
    min-width: 0;
    padding-right: 56px;
  }

  #intentions-workspace .workspace-topbar h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  #intentions-workspace .workspace-topbar__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
    gap: 10px;
  }

  #intentions-workspace .workspace-topbar__actions .workspace-import-button,
  #intentions-workspace .workspace-topbar__actions .primary-button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    justify-content: center;
    padding-inline: 12px;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
  }

  #intentions-workspace .workspace-import-button span {
    display: inline;
  }

  #intentions-workspace .workspace-topbar__actions .workspace-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 46px;
  }

  #intentions-workspace .workspace-layout,
  #intentions-workspace .workspace-sidebar,
  #intentions-workspace .workspace-main,
  #intentions-workspace .monthly-affirmations,
  #intentions-workspace .affirmation-composer,
  #intentions-workspace .intention-sources,
  #intentions-workspace .intention-outline {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
}

@media (max-width: 360px) {
  #intentions-workspace .workspace-topbar__actions .workspace-import-button,
  #intentions-workspace .workspace-topbar__actions .primary-button {
    padding-inline: 9px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Daily live session card */
.live-card__kicker { display: inline-flex; align-items: center; gap: 8px; }
.live-dot {
  position: relative;
  display: none;
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e0674f;
  box-shadow: 0 0 0 3px rgba(224, 103, 79, 0.18);
}
.live-dot::after {
  position: absolute;
  inset: -3px;
  border: 1.5px solid rgba(224, 103, 79, 0.55);
  border-radius: 50%;
  content: "";
  animation: live-pulse 1.8s ease-out infinite;
}
@keyframes live-pulse {
  from { opacity: 1; transform: scale(0.6); }
  to { opacity: 0; transform: scale(2.2); }
}
.live-card[data-live-state="live"] .live-dot,
.live-card[data-live-state="soon"] .live-card__kicker .live-dot { display: inline-block; }
.live-card[data-live-state="soon"] .live-dot { background: #d9a441; box-shadow: 0 0 0 3px rgba(217, 164, 65, 0.2); }
.live-card[data-live-state="soon"] .live-dot::after { border-color: rgba(217, 164, 65, 0.55); }
.live-card[data-live-state="live"] .live-card__kicker { color: #b4533f; }
.live-card[data-live-state="live"] {
  border-color: rgba(236, 178, 150, 0.55);
  box-shadow: 0 0 0 1px rgba(236, 178, 150, 0.25), var(--shadow);
}

.live-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.live-card__countdown:empty { display: none; }
.live-card__countdown {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(84, 112, 90, 0.1);
  color: var(--moss-dark);
  font-size: 13px;
  font-weight: 500;
}
.live-card[data-live-state="live"] .live-card__countdown { background: rgba(224, 103, 79, 0.12); color: #a14a37; }

.live-card__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.live-card__join { gap: 10px; text-decoration: none; }
.live-card__join .live-dot { display: inline-block; background: #ff8a70; }
.live-card[data-live-state="soon"] .live-card__join .live-dot { background: #f2c46b; }
.live-card__join[aria-disabled="true"] { cursor: not-allowed; opacity: 0.6; transform: none; }
.live-card .live-card__note {
  position: relative;
  z-index: 1;
  max-width: none;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.live-session-pill.is-live .live-session-pill__copy small i { background: #e0674f; box-shadow: 0 0 0 3px rgba(224, 103, 79, 0.18); }

/* Explore sessions sheet */
.dialog--sessions { width: min(calc(100% - 32px), 980px); }
.dialog--sessions .dialog__header { margin-bottom: 22px; }
.dialog--sessions h2 { margin: 6px 0 0; font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.03em; }
.sessions-intro { max-width: 520px; margin: 8px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.sessions-featured {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 50%, rgba(246, 222, 172, 0.45), transparent 45%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.88), rgba(238, 244, 235, 0.72));
  box-shadow: 0 14px 36px rgba(46, 70, 54, 0.07), inset 0 1px 0 #fff;
}
.sessions-featured__orb {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #fff8cc 0 11%, #efcf78 44%, #9b8248 100%);
  box-shadow: 0 8px 24px rgba(141, 112, 45, 0.22), 0 0 0 10px rgba(241, 216, 148, 0.12);
}
.sessions-featured .card-kicker { margin-bottom: 4px; font-size: 12px; }
.sessions-featured h3 { margin: 0; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.sessions-featured p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }

.sessions-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 30px 0 14px; }
.sessions-toolbar h3 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.sessions-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.sessions-filter {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}
.sessions-filter.is-active { border-color: transparent; background: var(--ink); color: #fff; }

.sessions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.session-tile {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(38, 60, 46, 0.08);
  border-radius: 20px;
  padding: 0;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform 220ms var(--ease), box-shadow 220ms ease;
}
.session-tile:hover { box-shadow: 0 16px 36px rgba(46, 70, 54, 0.12); transform: translateY(-3px); }
.session-tile__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(circle at 70% 30%, rgba(247, 222, 160, 0.9), transparent 45%),
    linear-gradient(160deg, #cfe0d2, #a9c4b1);
}
.session-tile__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.session-tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 8px 22px rgba(28, 43, 35, 0.2);
  transform: translate(-50%, -50%);
  transition: transform 220ms var(--ease);
}
.session-tile__play::before {
  margin-left: 3px;
  border-block: 7px solid transparent;
  border-left: 11px solid var(--ink);
  content: "";
}
.session-tile:hover .session-tile__play { transform: translate(-50%, -50%) scale(1.08); }
.session-tile__duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border-radius: 999px;
  padding: 3px 8px;
  background: rgba(20, 32, 26, 0.72);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
}
.session-tile__body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.session-tile__body small { color: #6f8471; font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.session-tile__body strong { font-size: 16px; font-weight: 500; line-height: 1.3; }
.session-tile__description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.sessions-empty {
  grid-column: 1 / -1;
  padding: 34px 20px;
  border: 1px dashed rgba(38, 60, 46, 0.18);
  border-radius: 20px;
  text-align: center;
}
.sessions-empty strong { font-size: 16px; font-weight: 500; }
.sessions-empty p { max-width: 380px; margin: 6px auto 0; color: var(--muted); font-size: 13px; }

/* Recording player */
.dialog--player { width: min(calc(100% - 32px), 1000px); }
.dialog--player .dialog__header { margin-bottom: 18px; }
.dialog--player h2 { margin: 6px 0 0; font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -0.02em; }
.player-stage {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #101a15;
}
.player-stage video,
.player-stage iframe { display: block; width: 100%; height: 100%; border: 0; background: #101a15; }
.player-description:empty { display: none; }
.player-description { max-width: 720px; margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }

@media (max-width: 800px) {
  .sessions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .live-card .primary-card__footer { align-items: stretch; flex-direction: column; }
  .live-card__actions { flex-direction: column-reverse; align-items: stretch; }
  .live-card__actions > * { width: 100%; }
  .live-card .live-card__note { text-align: left; }
  .sessions-featured { grid-template-columns: auto minmax(0, 1fr); }
  .sessions-featured .primary-button { grid-column: 1 / -1; width: 100%; }
  .sessions-grid { grid-template-columns: 1fr; }
  .dialog--sessions,
  .dialog--player { width: 100%; max-width: none; margin: auto 0 0; }
  .dialog--sessions .dialog__panel,
  .dialog--player .dialog__panel { border-radius: 26px 26px 0 0; padding: 22px 18px calc(24px + env(safe-area-inset-bottom)); }
}

/* Membership access ------------------------------------------------------ */

.lock-glyph {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.lock-glyph__shackle { transform-box: fill-box; transform-origin: 85% 100%; transition: transform 320ms var(--ease); }

/* Email sign-in on the welcome card */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 14px;
  color: #8a978f;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.auth-divider::before,
.auth-divider::after { height: 1px; flex: 1; background: rgba(32, 48, 39, 0.1); content: ""; }
.email-signin { display: grid; gap: 6px; }
.email-signin label { margin-top: 6px; color: var(--ink); font-size: 12px; font-weight: 500; }
.email-signin input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(32, 48, 39, 0.12);
  border-radius: 14px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.email-signin input:focus { border-color: rgba(67, 91, 72, 0.4); box-shadow: 0 0 0 4px rgba(84, 112, 90, 0.1); }
.email-signin__password { position: relative; }
.email-signin__password input { padding-right: 64px; }
.email-signin__password button {
  position: absolute;
  top: 50%;
  right: 8px;
  border: 0;
  border-radius: 10px;
  padding: 6px 10px;
  background: transparent;
  color: var(--moss-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transform: translateY(-50%);
}
.email-signin__submit {
  min-height: 50px;
  margin-top: 12px;
  border: 0;
  border-radius: 999px;
  background: var(--grad-ink, var(--ink));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px rgba(28, 43, 35, 0.16);
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.email-signin__submit:hover { transform: translateY(-1px); }
.email-signin__submit:disabled { cursor: wait; opacity: 0.6; transform: none; }

/* Live card */
.live-card__join .lock-glyph { display: none; width: 17px; height: 17px; }
.live-card__join.is-locked .live-dot { display: none !important; }
.live-card__join.is-locked .lock-glyph { display: inline-block; }
.live-card__join.is-locked:hover .lock-glyph__shackle { transform: translateY(-2px) rotate(-12deg); }
.live-access-note {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  border: 1px solid rgba(201, 152, 72, 0.22);
  border-radius: 16px;
  padding: 11px 14px;
  background: linear-gradient(120deg, rgba(252, 243, 219, 0.75), rgba(247, 249, 241, 0.6));
  color: #6d5a33;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}
.live-access-note .lock-glyph { width: 17px; height: 17px; color: #a57a2c; }
.live-access-note strong { font-weight: 600; }
.live-access-note__cta { margin-left: auto; color: var(--moss-dark); font-weight: 600; white-space: nowrap; }
.live-access-note:hover .lock-glyph__shackle { transform: translateY(-2px) rotate(-12deg); }

/* Locked recordings */
.session-tile.is-locked .session-tile__media img,
.session-tile.is-locked .session-tile__media { filter: saturate(0.55); }
.session-tile.is-locked .session-tile__media img { filter: blur(6px) saturate(0.6); transform: scale(1.08); }
.session-tile.is-locked .session-tile__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 249, 243, 0.2), rgba(236, 242, 232, 0.55));
  content: "";
}
.session-tile__lock {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.92), rgba(250, 240, 214, 0.85));
  box-shadow: 0 10px 26px rgba(28, 43, 35, 0.16), 0 0 0 8px rgba(255, 255, 255, 0.22);
  color: #8d6a2c;
  transform: translate(-50%, -50%);
}
.session-tile__lock .lock-glyph { width: 22px; height: 22px; }
.session-tile.is-locked:hover .lock-glyph__shackle { transform: translateY(-2.5px) rotate(-14deg); }
.session-tile.is-locked .session-tile__duration { z-index: 1; }
.session-tile.is-locked .session-tile__body strong { color: rgba(28, 43, 35, 0.72); }
.session-tile__badge {
  margin-left: 8px;
  border-radius: 999px;
  padding: 2px 7px;
  background: rgba(201, 152, 72, 0.16);
  color: #8d6a2c;
  letter-spacing: 0.06em;
}
.sessions-upgrade {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  border: 1px solid rgba(201, 152, 72, 0.24);
  border-radius: 18px;
  padding: 14px 16px;
  background: linear-gradient(120deg, rgba(252, 243, 219, 0.85), rgba(244, 247, 238, 0.7));
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}
.sessions-upgrade[hidden],
.live-access-note[hidden],
.prompts-upgrade[hidden] { display: none; }
.sessions-upgrade__lock {
  display: grid;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(141, 106, 44, 0.16);
  color: #8d6a2c;
}
.sessions-upgrade__lock .lock-glyph { width: 19px; height: 19px; }
.sessions-upgrade strong { display: block; font-size: 14px; font-weight: 600; }
.sessions-upgrade small { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.sessions-upgrade__cta { margin-left: auto; color: var(--moss-dark); font-size: 13px; font-weight: 600; white-space: nowrap; }
.sessions-upgrade:hover .lock-glyph__shackle { transform: translateY(-2px) rotate(-12deg); }

/* Locked journal prompts */
.guidance-card.is-locked h3 { filter: blur(3.5px); opacity: 0.55; user-select: none; }
.guidance-card.is-locked .guidance-card__cue { opacity: 0.45; }
.guidance-card__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  border: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.22));
  cursor: pointer;
}
.guidance-card__lock {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  box-shadow: 0 12px 28px rgba(28, 43, 35, 0.14), 0 0 0 10px rgba(255, 255, 255, 0.18);
  color: #3f5444;
  backdrop-filter: blur(6px);
  transition: transform 260ms var(--ease);
}
.guidance-card__lock .lock-glyph { width: 24px; height: 24px; }
.guidance-card__lock-label {
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.7);
  color: #3f5444;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.guidance-card__veil:hover .guidance-card__lock { transform: scale(1.06); }
.guidance-card__veil:hover .lock-glyph__shackle { transform: translateY(-2.5px) rotate(-14deg); }
.guidance-card.is-locked .guidance-card__action { position: relative; z-index: 3; display: inline-flex; gap: 5px; }
.guidance-card.is-locked .guidance-card__action .lock-glyph { width: 11px; height: 11px; }

/* Journal dialog */
.prompts-upgrade {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -4px 0 14px;
  border: 1px solid rgba(201, 152, 72, 0.24);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(252, 243, 219, 0.7);
  color: #7a5e2a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
}
.prompts-upgrade .lock-glyph { width: 14px; height: 14px; }

/* Profile membership */
.profile-membership {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 6px 14px;
  align-items: center;
  margin-top: 16px;
  border: 1px solid rgba(201, 152, 72, 0.22);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(120deg, rgba(252, 243, 219, 0.7), rgba(247, 249, 241, 0.6));
}
.profile-membership[data-tier="live"] { border-color: rgba(84, 112, 90, 0.2); background: linear-gradient(120deg, rgba(225, 236, 222, 0.8), rgba(247, 249, 241, 0.6)); }
.profile-membership__badge {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 6px 16px rgba(46, 70, 54, 0.1);
  color: #8d6a2c;
}
.profile-membership__badge .lock-glyph { width: 19px; height: 19px; }
.profile-membership[data-tier="live"] .profile-membership__badge { color: var(--moss-dark); }
.profile-membership[data-tier="live"] .lock-glyph__shackle { transform: translateY(-2.5px) rotate(-18deg); }
.profile-membership span:not(.profile-membership__badge) { display: block; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.profile-membership strong { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; }
.profile-membership small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.profile-membership .secondary-button { grid-column: 1 / -1; width: 100%; min-height: 42px; margin-top: 6px; }

/* Paywall */
.dialog--paywall { width: min(calc(100% - 32px), 520px); }
.paywall { position: relative; padding: 38px 34px 30px !important; text-align: center; }
.paywall__close { position: absolute; top: 18px; right: 18px; }
.paywall__lock { position: relative; display: grid; width: 116px; height: 116px; margin: 0 auto 18px; place-items: center; }
.paywall__ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(201, 152, 72, 0.3);
  border-radius: 50%;
  animation: paywall-ring 3.2s ease-out infinite;
}
.paywall__ring--two { animation-delay: 1.6s; }
@keyframes paywall-ring {
  from { opacity: 0.9; transform: scale(0.62); }
  to { opacity: 0; transform: scale(1.18); }
}
.paywall__orb {
  position: relative;
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 28%, #fffdf3 0 18%, rgba(252, 236, 196, 0.95) 48%, rgba(232, 196, 122, 0.95) 100%);
  box-shadow: inset 0 -6px 14px rgba(170, 124, 44, 0.22), 0 16px 36px rgba(141, 106, 44, 0.25);
  color: #5d4520;
}
.paywall__orb .lock-glyph { width: 32px; height: 32px; stroke-width: 1.7; }
.dialog--paywall[open] .lock-glyph__shackle { animation: paywall-shackle 1.4s var(--ease) 0.35s both; }
@keyframes paywall-shackle {
  0% { transform: translateY(0) rotate(0); }
  30% { transform: translateY(-3px) rotate(-16deg); }
  60% { transform: translateY(0) rotate(4deg); }
  100% { transform: translateY(0) rotate(0); }
}
.paywall__actions a:hover .lock-glyph__shackle { transform: translateY(-3px) rotate(-16deg); }
.paywall .card-kicker { margin-bottom: 8px; }
.paywall h2 { margin: 0; font-size: clamp(26px, 4vw, 32px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.12; }
.paywall__copy { max-width: 400px; margin: 12px auto 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.paywall-plan {
  margin-top: 22px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 22px;
  padding: 18px 20px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92), rgba(244, 248, 240, 0.8));
  box-shadow: 0 10px 28px rgba(46, 70, 54, 0.07);
  text-align: left;
}
.paywall-plan__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.paywall-plan__name { display: block; font-size: 15px; font-weight: 600; }
.paywall-plan__head small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.paywall-plan__price { text-align: right; }
.paywall-plan__price strong { display: block; font-family: var(--font-display, inherit); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; line-height: 1; }
.paywall-plan__list { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.paywall-plan__list li { position: relative; padding-left: 26px; color: #3f4f45; font-size: 13px; line-height: 1.45; }
.paywall-plan__list li::before {
  position: absolute;
  top: 1px;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: rgba(84, 112, 90, 0.14);
  color: var(--moss-dark);
  content: "✓";
  font-size: 12px;
  font-weight: 700;
}
.paywall-plan__list li.is-highlight { color: var(--ink); font-weight: 600; }
.paywall-plan__list li.is-highlight::before { background: linear-gradient(145deg, #e9c373, #c8963f); color: #fff; }
.paywall__actions { display: grid; gap: 10px; margin-top: 20px; }
.paywall__actions a { width: 100%; text-decoration: none; }
.paywall__actions a[hidden] { display: none; }
.paywall__footnote { max-width: 380px; margin: 14px auto 0; color: var(--muted); font-size: 12px; line-height: 1.5; }

@media (max-width: 560px) {
  .dialog--paywall { width: 100%; max-width: none; margin: auto 0 0; }
  .dialog--paywall .dialog__panel { border-radius: 26px 26px 0 0; padding: 30px 20px calc(24px + env(safe-area-inset-bottom)) !important; }
  .live-access-note { flex-wrap: wrap; }
  .live-access-note__cta { margin-left: 27px; }
  .sessions-upgrade { flex-wrap: wrap; }
  .sessions-upgrade__cta { margin-left: 54px; }
}

@media (prefers-reduced-motion: reduce) {
  .paywall__ring,
  .dialog--paywall[open] .lock-glyph__shackle { animation: none; }
}
.paywall__actions a.secondary-button { color: var(--ink); }
.paywall__actions a.primary-button { color: #f9fbf7; }

/* Email sign-in / sign-up */
.auth-mode {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 14px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(32, 48, 39, 0.06);
}
.auth-mode button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: color 200ms ease;
}
.auth-mode button.is-active { color: var(--ink); }
.auth-mode__pill {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(32, 48, 39, 0.08);
  transition: transform 320ms var(--ease);
}
.email-signin[data-mode="signup"] ~ .auth-mode__pill,
.auth-mode:has(#auth-mode-signup.is-active) .auth-mode__pill { transform: translateX(100%); }
.email-signin__field { display: grid; gap: 6px; }
.email-signin__field[hidden] { display: none; }
.email-signin__label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 6px; }
.email-signin__label-row label { margin-top: 0; }
.auth-link {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--moss-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(67, 91, 72, 0.3);
  text-underline-offset: 3px;
}
.auth-link[hidden] { display: none; }
.password-strength { display: grid; gap: 6px; margin-top: 4px; }
.password-strength[hidden] { display: none; }
.password-strength__bar { height: 4px; overflow: hidden; border-radius: 999px; background: rgba(32, 48, 39, 0.08); }
.password-strength__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: #d98d5e; transition: width 260ms var(--ease), background 260ms ease; }
.password-strength[data-score="1"] i { width: 25%; background: #d98d5e; }
.password-strength[data-score="2"] i { width: 55%; background: #d9a441; }
.password-strength[data-score="3"] i { width: 80%; background: #7c967d; }
.password-strength[data-score="4"] i { width: 100%; background: #4f7655; }
.password-strength small { color: var(--muted); font-size: 12px; }
.auth-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.auth-note[hidden] { display: none; }
.auth-card { max-height: calc(100dvh - 48px); overflow-y: auto; }
