:root {
  /* Stan-like structure; Backlogr palette (not purple) */
  --brand: #0f3d2e;
  --brand-deep: #07261c;
  --ink: #102018;
  --muted: #5a6f64;
  --paper: #ffffff;
  --fog: #eef6f1;
  --cta: #b8f34d;
  --cta-ink: #07261c;
  --line: rgba(255, 255, 255, 0.22);
  --radius-pill: 999px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--brand);
  color: #fff;
}

.site-header.is-light {
  background: var(--paper);
  color: var(--ink);
  border-bottom: 1px solid #e8ebf4;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  font-optical-sizing: auto;
}

.brand-mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.45rem;
  flex-shrink: 0;
  display: block;
  object-fit: cover;
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-center a {
  opacity: 0.92;
}

.nav-center a:hover,
.nav-center a.is-active {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  cursor: pointer;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.2rem;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.site-header .btn-ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.site-header .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  filter: none;
}

.site-header .btn-solid {
  background: #fff;
  color: var(--brand-deep);
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.site-header.is-light .btn-ghost {
  color: var(--ink);
  border-color: #cfd8d3;
}

.site-header.is-light .btn-ghost:hover {
  background: var(--fog);
}

.site-header.is-light .btn-solid {
  background: var(--brand);
  color: #fff;
}

.btn-cta {
  background: var(--cta);
  color: var(--cta-ink);
}

.hero {
  background: linear-gradient(165deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 5.5rem;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  font-weight: 700;
  font-optical-sizing: auto;
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
}

.hero-phone {
  width: min(292px, 78vw);
  background: #041610;
  border-radius: 2.4rem;
  padding: 0.55rem;
  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: rotate(-7deg);
}

.hero-phone-screen {
  display: flex;
  flex-direction: column;
  height: 560px;
  max-height: 68vh;
  overflow: hidden;
  background: #f7faf8;
  color: var(--ink);
  border-radius: 1.95rem;
  padding: 1.15rem 0.9rem 0;
}

.hero-app-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.hero-app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

.hero-app-brand img {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 0.28rem;
}

.hero-app-level {
  font-size: 0.72rem;
  font-weight: 700;
  background: #fff;
  border: 1px solid #d7e3dc;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.hero-phone-screen .hero-app-hello {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: none;
  line-height: 1.15;
}

.hero-phone-screen .hero-app-sub,
.hero-phone-screen .hero-app-meta {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  max-width: none;
}

.hero-phone-screen .hero-app-kicker {
  margin: 1rem 0 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
  max-width: none;
}

.hero-phone-screen .hero-app-title {
  margin: 0.15rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  max-width: none;
}

.hero-app-list {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.hero-app-list li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e3eee8;
  border-radius: 0.85rem;
  padding: 0.65rem 0.7rem;
}

.hero-app-list li.is-next {
  border-color: #c9e3d4;
  box-shadow: 0 8px 18px rgba(15, 61, 46, 0.06);
}

.hero-app-check {
  width: 1.05rem;
  height: 1.05rem;
  margin-top: 0.15rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  flex-shrink: 0;
}

.hero-app-tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 0.1rem;
}

.hero-app-list strong {
  display: block;
  font-size: 0.86rem;
  line-height: 1.25;
}

.hero-app-mins {
  display: block;
  margin-top: 0.15rem;
  color: var(--muted);
  font-size: 0.72rem;
}

.hero-app-tabs {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid #e3eee8;
  background: #fff;
  margin-left: -0.9rem;
  margin-right: -0.9rem;
  padding: 0.7rem 0.4rem 0.85rem;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.hero-app-tabs .is-on {
  color: var(--brand);
}

.section {
  max-width: 960px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
}

.section p.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0 0 2rem;
  max-width: 40rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature {
  background: var(--fog);
  border-radius: 1rem;
  padding: 1.25rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
}

.page-hero {
  background: var(--brand);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
}

.page-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: -0.04em;
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  line-height: 1.55;
  max-width: 40rem;
}

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #2a3144;
}

.prose h2 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 2rem;
}

.blog-list {
  display: grid;
  gap: 1.25rem;
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.blog-item {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid #e6e9f2;
  border-radius: 1rem;
  background: #fff;
}

.blog-item:hover {
  border-color: #c9d0e6;
}

.blog-item-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 0.7rem;
  background: var(--fog);
}

.blog-item-copy {
  padding-right: 0.35rem;
}

.blog-item .meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 0.35rem;
}

.blog-item h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.blog-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.blog-hero-figure {
  max-width: 860px;
  margin: -1rem auto 0;
  padding: 0 1.5rem;
}

.blog-hero-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 1rem;
  display: block;
  background: var(--fog);
}

@media (max-width: 640px) {
  .blog-item {
    grid-template-columns: 1fr;
  }

  .blog-item-image {
    aspect-ratio: 16 / 9;
  }
}

.dash-shell {
  min-height: calc(100vh - 72px);
  padding: 1.5rem 1rem 3rem;
  background:
    radial-gradient(circle at top left, rgba(184, 243, 77, 0.18), transparent 40%),
    linear-gradient(180deg, #eef6f1 0%, #f7faf8 40%, #fff 100%);
}

.dash-shell.is-dashboard {
  padding-top: 1.25rem;
}

.dash-card {
  width: min(100%, 720px);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1.25rem;
  padding: 1.25rem 1.15rem 1.75rem;
  box-shadow: 0 18px 40px rgba(7, 38, 28, 0.06);
}

.dash-card.is-wide {
  width: min(100%, 840px);
}

.dash-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.35rem;
  margin: 1rem 0 1.25rem;
}

.dash-nav-btn {
  border: 1px solid #d9e0dc;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.55rem 0.35rem;
  cursor: pointer;
}

.dash-nav-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.dash-section-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.dash-h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0.15rem 0 0.35rem;
}

.dash-note {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
  font-size: 0.95rem;
}

.dash-inline-btn {
  width: auto;
  margin: 0;
  padding: 0.65rem 0.9rem;
  white-space: nowrap;
}

.dash-field {
  display: grid;
  gap: 0.35rem;
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.88rem;
}

.dash-field input,
.milestone-title,
.milestone-mins input {
  font: inherit;
  border: 1px solid #d9e0dc;
  border-radius: 0.7rem;
  padding: 0.65rem 0.75rem;
  width: 100%;
  box-sizing: border-box;
  color: var(--ink);
}

.milestone-edit {
  display: grid;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
}

.milestone-mins {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.milestone-mins input {
  width: 5.5rem;
}

.btn-save-milestone {
  justify-self: start;
  border: 1px solid #d9e0dc;
  background: #fff;
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.daily-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.daily-item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid #d9e0dc;
  border-radius: 0.85rem;
  padding: 0.85rem 0.9rem;
}

.daily-item.is-done .daily-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.daily-check {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.15rem;
  border-radius: 0.35rem;
  border: 2px solid var(--brand);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.daily-item.is-done .daily-check {
  background: var(--brand);
}

.daily-copy {
  display: grid;
  gap: 0.2rem;
}

.daily-mins {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.dash-empty {
  color: var(--muted);
  margin: 0.5rem 0 0;
}

.progress-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.25rem;
}

.stat-card {
  border: 1px solid #e4ebe6;
  border-radius: 0.85rem;
  padding: 0.85rem;
  background: #f8fbf9;
}

.stat-label {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink);
  word-break: break-word;
}

.profile-list {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 1.25rem;
}

.profile-list div {
  display: grid;
  gap: 0.15rem;
  border-bottom: 1px solid #eef2ef;
  padding-bottom: 0.65rem;
}

.profile-list dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.profile-list dd {
  margin: 0;
  font-weight: 700;
}

@media (max-width: 640px) {
  .dash-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dash-section-head {
    flex-direction: column;
  }

  .progress-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

.auth-shell {
  min-height: calc(100vh - 72px);
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem;
  background: var(--fog);
}

.auth-card {
  width: min(100%, 420px);
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 20px 50px rgba(7, 38, 28, 0.08);
}

.auth-card h1 {
  font-family: var(--font-display);
  margin: 0 0 0.35rem;
  font-size: 1.8rem;
  letter-spacing: -0.03em;
}

.auth-card .sub {
  color: var(--muted);
  margin: 0 0 1.25rem;
}

.auth-card label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0.85rem 0 0.35rem;
}

.auth-card input {
  width: 100%;
  border: 1px solid #d7dceb;
  border-radius: 0.75rem;
  padding: 0.85rem 0.95rem;
  font: inherit;
}

.auth-card input:focus {
  outline: 2px solid rgba(26, 47, 143, 0.25);
  border-color: var(--brand);
}

.auth-card .btn {
  width: 100%;
  margin-top: 1.25rem;
}

.auth-card .alt {
  text-align: center;
  margin-top: 1rem;
  color: var(--muted);
}

.auth-card .lede,
.auth-card .sub {
  color: var(--muted);
  margin: 0 0 1rem;
}

.auth-card .stack {
  display: grid;
  gap: 0.75rem;
}

.auth-card .stack input,
.auth-card .stack button {
  width: 100%;
  font: inherit;
  padding: 0.85rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #d9e0dc;
}

.auth-card .stack button {
  border: 0;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.auth-card .error {
  color: #c0392b;
  font-weight: 700;
}

.auth-card .ok {
  color: #1b6b3a;
  font-weight: 700;
}

.auth-card .muted {
  color: var(--muted);
  margin-top: 1rem;
}

.auth-card .alt a {
  color: var(--brand);
  font-weight: 700;
}

.error {
  color: #c0392b;
  margin-top: 0.75rem;
  font-weight: 600;
}

.site-footer {
  border-top: 1px solid #e8ebf4;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.mobile-nav {
  display: none;
}

/* Distraction-free onboarding (Stan-style) */
.onboarding-body {
  min-height: 100vh;
  background: #fff;
  margin: 0;
}

.onboarding-back {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 5;
  font-weight: 700;
  color: var(--muted);
  font-size: 0.95rem;
}

.onboarding-back:hover {
  color: var(--ink);
}

.onboarding-progress {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 2rem));
  height: 4px;
  background: #e8eee9;
  border-radius: 999px;
  margin-top: 0.85rem;
  overflow: hidden;
  z-index: 4;
}

.onboarding-progress-fill {
  height: 100%;
  background: var(--brand);
  border-radius: inherit;
}

.onboarding-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 3.5rem 1.25rem 2rem;
}

.onboarding-card {
  width: min(100%, 420px);
}

.step-back {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
}

.step-back:hover {
  color: var(--ink);
}

.onboarding-card h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.1rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
}

.onboarding-card .sub {
  color: var(--muted);
  margin: 0 0 1.35rem;
  line-height: 1.45;
}

.field {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #d9e0dc;
  border-radius: 0.85rem;
  padding: 0.15rem 0.85rem;
  margin-bottom: 0.75rem;
  background: #fff;
}

.field:focus-within {
  border-color: var(--brand);
  outline: 2px solid rgba(15, 61, 46, 0.12);
}

.field-icon {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  color: var(--muted);
  display: grid;
  place-items: center;
}

.field-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.field-code {
  flex: 0 0 auto;
  max-width: 8.5rem;
  border: 0;
  border-right: 1px solid #d9e0dc;
  background-color: transparent;
  padding: 0.9rem 1.4rem 0.9rem 0;
  margin-right: 0.15rem;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 0.55rem) 50%, calc(100% - 0.3rem) 50%;
  background-size: 0.28rem 0.28rem, 0.28rem 0.28rem;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field-code:focus {
  outline: none;
}

.code-input {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: 1.8rem;
  letter-spacing: 0.28em;
  font-weight: 800;
  padding: 0.35rem 0 0.35rem 0.28em;
}
.code-input:focus {
  outline: none;
}
.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand, #0f3d2e);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.field input,
.field textarea {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 0.9rem 0;
  font: inherit;
  width: 100%;
}

.field input:focus,
.field textarea:focus {
  outline: none;
}

.field-label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1;
  min-width: 0;
}

.field-reveal {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 0.5rem;
}

.field-reveal:hover,
.field-reveal:focus-visible {
  color: var(--brand);
}

.field-reveal svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.field-reveal .eye-shut {
  display: none;
}

.field-reveal.is-on .eye-open {
  display: none;
}

.field-reveal.is-on .eye-shut {
  display: block;
}

.field-plain {
  align-items: flex-start;
}

.field-plain textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-brand {
  width: 100%;
  background: var(--brand);
  color: #fff;
  margin-top: 0.5rem;
}

.btn-brand:disabled {
  opacity: 0.65;
  cursor: wait;
}

.legal {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0.9rem 0 0;
  text-align: center;
}

.onboarding-wide {
  width: min(100%, 560px);
}

.preset-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.preset-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.preset-chip {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid #d9e0dc;
  border-radius: 0.85rem;
  padding: 0.75rem 0.8rem;
  text-align: left;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: 0.95rem;
  cursor: pointer;
  background: #fff;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.preset-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.65rem;
  background: var(--fog);
  color: var(--brand);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.preset-icon svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
}

.preset-label {
  line-height: 1.25;
}

.preset-chip:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
}

.preset-chip:hover .preset-icon {
  background: rgba(15, 61, 46, 0.12);
}

.preset-chip.is-selected {
  border-color: var(--brand);
  background: var(--fog);
  color: var(--brand-deep);
}

.preset-chip.is-selected .preset-icon {
  background: var(--brand);
  color: #fff;
}

@media (max-width: 520px) {
  .preset-grid {
    grid-template-columns: 1fr;
  }
}

.price-box {
  border: 1px solid #d9e0dc;
  border-radius: 1rem;
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  background: var(--fog);
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.2rem;
}

.price-trial {
  margin: 0.25rem 0 0;
  color: var(--brand);
  font-weight: 700;
}

.price-perks {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

.plan-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.resume-shell {
  min-height: calc(100vh - 8rem);
  display: grid;
  place-items: center;
  padding: 2rem 1rem 3rem;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #d8f0e2 0%, transparent 55%),
    linear-gradient(180deg, #f4faf6 0%, #ffffff 45%);
}

.resume-card {
  width: min(100%, 560px);
  background: #fff;
  border: 1px solid #d9e0dc;
  border-radius: 1.25rem;
  padding: 1.6rem 1.4rem 1.4rem;
  box-shadow: 0 18px 40px rgba(15, 61, 46, 0.08);
}

.resume-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.resume-card h1 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.03em;
}

.resume-sub {
  margin: 0 0 1.15rem;
  color: var(--muted);
  line-height: 1.55;
}

.resume-progress {
  margin: 0 0 1.2rem;
}

.resume-progress-track {
  height: 0.4rem;
  border-radius: 999px;
  background: #e8f0eb;
  overflow: hidden;
  margin-bottom: 0.65rem;
}

.resume-progress-fill {
  height: 100%;
  width: 25%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #b8f34d);
  transition: width 0.4s ease;
}

.resume-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.resume-steps li {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  padding: 0.4rem 0.2rem;
  border-radius: 999px;
  background: #f7faf8;
  border: 1px solid #e4ebe6;
}

.resume-steps li.is-active {
  color: var(--brand-deep);
  background: var(--fog);
  border-color: #cfe0d6;
}

.resume-steps li.is-done {
  color: #1b6b3a;
  background: #e8f8ee;
  border-color: #cfe9d8;
}

.resume-summary {
  margin: 0 0 1.15rem;
  padding: 1rem;
  border-radius: 1rem;
  background: #f7faf8;
  border: 1px solid #e4ebe6;
}

.resume-idea-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
}

.resume-idea-meta {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: capitalize;
}

.resume-tasks {
  margin-bottom: 0;
}

.resume-card .btn-brand {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.resume-alt {
  margin: 0.95rem 0 0;
  text-align: center;
  color: var(--muted);
}

.resume-alt a {
  color: var(--muted);
  font-weight: 700;
}

.resume-card.is-wide {
  width: min(100%, 640px);
}

.resume-shell.is-dashboard {
  align-items: start;
  padding-top: 2.5rem;
}

.dash-actions {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
}

.dash-actions .btn-ghost,
.resume-card .btn-ghost,
.cancel-actions .btn-ghost {
  display: block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
  border: 1px solid #d9e0dc;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  white-space: nowrap;
}

.history-block {
  margin: 1.35rem 0 1.25rem;
  padding-top: 1.35rem;
  border-top: 1px solid #e4ebe6;
}

.history-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.history-sub {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.history-item {
  border: 1px solid #e4ebe6;
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
  background: #fafcfb;
}

.history-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.history-item .meta {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 0.25rem;
  text-transform: capitalize;
}

.history-reason {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  color: var(--ink);
  font-style: italic;
}

.cancel-dialog {
  border: 1px solid #d9e0dc;
  border-radius: 1rem;
  padding: 0;
  width: min(92vw, 420px);
}

.cancel-dialog::backdrop {
  background: rgba(7, 38, 28, 0.45);
}

.cancel-form {
  padding: 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.cancel-form h2 {
  margin: 0;
  font-family: var(--font-display);
}

.cancel-form p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.cancel-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d9e0dc;
  border-radius: 0.85rem;
  padding: 0.85rem;
  font: inherit;
}

.cancel-actions {
  display: grid;
  gap: 0.5rem;
}

.plan-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  margin: 0 0 0.85rem;
}

.plan-builder {
  margin: 0.35rem 0 0.25rem;
  text-align: center;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.plan-builder.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
}

.plan-builder-mark {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  margin: 0.4rem auto 1rem;
  display: grid;
  place-items: center;
}

.plan-builder-pulse {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  background: var(--fog);
  border: 1px solid #d9e0dc;
  animation: planPulse 1.5s ease-in-out infinite;
}

.plan-builder-letter {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--brand-deep);
}

.plan-builder-status {
  margin: 0 0 1rem;
  min-height: 1.5em;
  font-weight: 700;
  color: var(--ink);
  transition: opacity 0.25s ease;
}

.plan-builder-stages {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.plan-builder-stages li {
  border-radius: 999px;
  padding: 0.4rem 0.2rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: #f7faf8;
  border: 1px solid #e4ebe6;
}

.plan-builder-stages li.is-active {
  color: var(--brand-deep);
  background: var(--fog);
  border-color: #cfe0d6;
}

.plan-builder-stages li.is-done {
  color: #1b6b3a;
  background: #e8f8ee;
  border-color: #cfe9d8;
}

.plan-builder-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #e8f0eb;
  overflow: hidden;
}

.plan-builder-bar-fill {
  height: 100%;
  width: 12%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand) 0%, #1a5c43 55%, #b8f34d 100%);
  background-size: 200% 100%;
  animation: planShimmer 1.8s linear infinite;
  transition: width 0.45s ease;
}

@keyframes planPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.85;
  }
}

@keyframes planShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -100% 0;
  }
}

@keyframes planTaskIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.plan-task-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.plan-task {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
  border: 1px solid #d9e0dc;
  border-radius: 0.85rem;
  padding: 0.85rem 0.9rem;
  line-height: 1.4;
}

.plan-task-main {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  flex: 1 1 12rem;
  min-width: 0;
}

.plan-task-main span {
  flex: 1;
}

.checkin-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  padding-top: 0.15rem;
  box-sizing: border-box;
}

.checkin-btn {
  border: 1.5px solid #d9e0dc;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.4rem 0.35rem;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
}

.checkin-btn.pulse-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.4rem;
  border-radius: 0.85rem;
  white-space: normal;
}

.pulse-ico {
  width: 1rem;
  height: 1rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.pulse-ico svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.checkin-btn:hover {
  border-color: var(--brand);
}

.checkin-btn.is-active[data-direction="toward"] {
  background: #e7f8d8;
  border-color: #8bc34a;
  color: #1b5e20;
  font-weight: 700;
}

.checkin-btn.is-active[data-direction="away"] {
  background: #fdecea;
  border-color: #e57373;
  color: #b71c1c;
  font-weight: 700;
}

.checkin-btn.is-active[data-direction="stuck"] {
  background: #fff6e0;
  border-color: #f0c36d;
  color: #8a5a00;
  font-weight: 700;
}

.plan-check.is-static {
  cursor: default;
  pointer-events: none;
  opacity: 0.45;
}

.plan-task.is-done .checkin-row {
  display: none;
}

.plan-task-enter {
  opacity: 0;
  animation: planTaskIn 0.4s ease forwards;
}

.plan-task.is-done span {
  color: var(--muted);
  text-decoration: line-through;
}

.plan-check {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  border-radius: 0.35rem;
  border: 2px solid var(--brand);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
}

.plan-task.is-done .plan-check {
  background: var(--brand);
}

@media (max-width: 860px) {
  .hero {
    clip-path: none;
    padding-bottom: 3rem;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-phone {
    transform: none;
    margin-top: 0.5rem;
  }

  .hero-phone-screen {
    height: 500px;
    max-height: none;
  }

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

  .nav-center {
    display: none;
  }

  .mobile-nav {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding: 0.75rem 1rem 1rem;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
  }

  .site-header.is-light + .mobile-nav {
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid #e8ebf4;
  }
}

/* Phone app shell (logged-in /app) */
body.is-app {
  background:
    radial-gradient(circle at 20% 0%, rgba(184, 243, 77, 0.22), transparent 42%),
    linear-gradient(180deg, #e8f4ec 0%, #f7faf8 45%, #ffffff 100%);
  height: 100dvh;
  overflow: hidden;
}

.phone-app {
  width: min(100%, 430px);
  margin: 0 auto;
  height: 100dvh;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-main {
  order: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.phone-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
}

.xp-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(15, 61, 46, 0.08);
  border-radius: 999px;
  padding: 0.35rem 0.55rem 0.35rem 0.65rem;
}

.xp-level {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
}

.xp-track {
  width: 3.2rem;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.12);
  overflow: hidden;
}

.xp-fill {
  height: 100%;
  width: 0;
  background: var(--cta);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.phone-greeting {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.phone-sub {
  margin: 0.25rem 0 1.15rem;
  color: var(--muted);
  line-height: 1.45;
}

.phone-panel-head {
  margin-bottom: 0.85rem;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.phone-h1 {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.phone-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

.phone-primary {
  width: 100%;
  margin-top: 0.75rem;
}

.phone-secondary {
  width: 100%;
  margin-top: 0.55rem;
}

.focus-list,
.path-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.focus-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 8px 24px rgba(7, 38, 28, 0.04);
}

.focus-card.is-focus {
  border-color: var(--brand);
  box-shadow: 0 10px 28px rgba(15, 61, 46, 0.1);
}

.focus-card.is-done {
  opacity: 0.55;
}

.focus-check {
  width: 1.45rem;
  height: 1.45rem;
  margin-top: 0.1rem;
  border-radius: 0.45rem;
  border: 2px solid var(--brand);
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.focus-card.is-done .focus-check {
  background: var(--brand);
}

.focus-card.is-done .focus-check::after {
  content: "";
  position: absolute;
  left: 0.32rem;
  top: 0.12rem;
  width: 0.35rem;
  height: 0.65rem;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.focus-copy {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.focus-tag {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.focus-milestone {
  justify-self: start;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  background: rgba(15, 61, 46, 0.08);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  font-weight: 500;
}

.focus-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin-top: 0.1rem;
}

.focus-mins {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}

.focus-link-note {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.daily-builder {
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1.15rem;
  padding: 1.25rem 1.1rem 1.15rem;
  margin-bottom: 0.85rem;
  text-align: center;
  animation: dailyBuilderIn 0.35s ease;
}

.daily-builder.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

@keyframes dailyBuilderIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.daily-builder-stages {
  justify-content: center;
}

.daily-builder .plan-builder-mark {
  margin-left: auto;
  margin-right: auto;
}

.focus-list.is-revealing .focus-card {
  animation: focusCardIn 0.4s ease both;
}

.focus-list.is-revealing .focus-card:nth-child(1) { animation-delay: 0.05s; }
.focus-list.is-revealing .focus-card:nth-child(2) { animation-delay: 0.12s; }
.focus-list.is-revealing .focus-card:nth-child(3) { animation-delay: 0.19s; }
.focus-list.is-revealing .focus-card:nth-child(4) { animation-delay: 0.26s; }
.focus-list.is-revealing .focus-card:nth-child(5) { animation-delay: 0.33s; }

@keyframes focusCardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.empty-care {
  background: #fff;
  border: 1px dashed #cfe0d6;
  border-radius: 1.1rem;
  padding: 1.25rem 1.1rem;
  text-align: left;
}

.empty-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.empty-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.path-time {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}

.path-card {
  display: flex;
  gap: 0.75rem;
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1rem;
  padding: 0.9rem;
}

.path-index {
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  background: var(--fog);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.path-body {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 0.45rem;
}

.path-title-input {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
}

.done-history {
  margin: 1.25rem 0 0.5rem;
}

.done-history-heading {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.done-history-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.done-history-item {
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
}

.done-history-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.done-history-top strong {
  font-size: 0.95rem;
}

.done-history-top span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.done-history-note {
  margin: 0.35rem 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.4;
}

.done-history-ms {
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.path-card-progress {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.path-card-progress-track {
  flex: 1;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.1);
  overflow: hidden;
}

.path-card-progress-fill {
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.path-card.is-progress .path-open-cue {
  color: var(--brand);
}

.path-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.text-link {
  background: none;
  border: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.85rem;
}

.me-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 1rem 0;
}

.today-inbox-cue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.9rem;
  background: #eef6f1;
  border: 1px solid #d5e6db;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.today-inbox-cue-go {
  color: var(--brand, #0f3d2e);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.recaps-teaser {
  margin: 0 0 1.25rem;
  padding: 1rem 1.05rem 1.1rem;
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1.1rem;
}

.recaps-teaser-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #b8f34d;
  color: #07261c;
  font-size: 0.72rem;
  font-weight: 800;
}

.recaps-teaser-latest {
  margin: 0 0 0.85rem;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.recaps-teaser .phone-primary {
  width: 100%;
  margin-top: 0;
}

.recaps-back {
  margin: 0 0 0.65rem;
}

.recaps-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0 0 1rem;
}

.recaps-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.recaps-timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.75rem;
  padding: 0 0 1.15rem;
}

.recaps-timeline-item:last-child {
  padding-bottom: 0;
}

.recaps-timeline-rail {
  position: relative;
  width: 0.7rem;
  justify-self: center;
}

.recaps-timeline-rail::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: 50%;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #0f3d2e;
  transform: translateX(-50%);
  z-index: 1;
}

.recaps-timeline-item.kind-week .recaps-timeline-rail::before {
  background: #b8f34d;
  box-shadow: 0 0 0 3px #0f3d2e;
}

.recaps-timeline-rail::after {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: -1.15rem;
  left: 50%;
  width: 2px;
  background: #d5e0d9;
  transform: translateX(-50%);
}

.recaps-timeline-item:last-child .recaps-timeline-rail::after {
  display: none;
}

.recaps-timeline-card {
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1rem;
  padding: 0.95rem 1rem 1rem;
}

.recaps-timeline-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.recaps-timeline-date {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.recaps-timeline-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
}

.recaps-timeline-body {
  margin: 0 0 0.75rem;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.5;
}

.recaps-timeline-body p {
  margin: 0 0 0.65rem;
}

.recaps-timeline-body p:last-child {
  margin-bottom: 0;
}

.recaps-timeline-card .recap-stats {
  margin-bottom: 0.65rem;
}

.recaps-timeline-item.kind-day .recap-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.notif-kind {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notif-empty {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.me-settings {
  margin: 0 0 1rem;
  padding-top: 0.35rem;
  border-top: 1px solid #e4ebe6;
}

.me-settings-title {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.me-settings-field {
  display: grid;
  gap: 0.3rem;
  margin: 0 0 0.7rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
}

.me-settings-field select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid #d5e0d9;
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
}

.me-settings-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.75rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
}

.me-settings-saved {
  margin: 0 0 0.5rem;
  color: #0f3d2e;
  font-size: 0.88rem;
  font-weight: 700;
}

.recap-block {
  margin: 0 0 1.25rem;
}


.recap-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.recap-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.recap-sub {
  margin: 0.25rem 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.recap-card {
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1rem;
  padding: 1rem 1rem 0.95rem;
}

.recap-week {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.recap-title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.recap-body {
  margin: 0 0 0.85rem;
  color: var(--ink);
  line-height: 1.45;
}

.recap-stats {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}

.recap-stats li {
  background: #f3f7f3;
  border-radius: 0.7rem;
  padding: 0.45rem 0.35rem;
  text-align: center;
}

.recap-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.recap-stats span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.recap-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.recap-highlights li {
  padding: 0.45rem 0.6rem;
  border-radius: 0.65rem;
  background: #fafcfb;
  border: 1px solid #e4ebe6;
  font-size: 0.9rem;
  line-height: 1.35;
}

.recap-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.recap-list-item {
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
}

.recap-list-item strong {
  display: block;
  margin-bottom: 0.15rem;
}

.recap-list-item span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.recap-list-item p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.me-stat {
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 0.85rem;
  padding: 0.75rem 0.55rem;
  text-align: center;
}

.me-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.me-stat strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.me-account-card {
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1.1rem;
  padding: 1rem 1.05rem 1.05rem;
  margin-top: 0.35rem;
}

.me-account-head {
  margin-bottom: 0.85rem;
}

.me-account-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.me-account-sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.me-account-card .profile-list {
  margin: 0 0 0.85rem;
}

.me-account-card .profile-list div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.me-account-actions {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.15rem;
}

.me-account-actions .phone-primary {
  width: 100%;
  margin-top: 0;
}

.me-account-actions .text-link {
  justify-self: start;
  margin: 0;
}

.me-next-idea {
  background:
    radial-gradient(circle at 12% 0%, rgba(184, 243, 77, 0.22), transparent 46%),
    #fff;
  border: 1px solid #dfeae3;
  border-radius: 1.1rem;
  padding: 1.05rem 1.05rem 1.15rem;
  margin: 0 0 1rem;
}

.me-next-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.me-next-copy {
  margin: 0.35rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.me-next-idea .phone-primary {
  width: 100%;
  margin-top: 0;
}

.path-idea-actions,
.path-empty-actions {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 1.05rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid #e4ebe6;
}

.path-idea-actions-label {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.path-complete-btn {
  width: 100%;
}

.path-cancel-link {
  display: inline-block;
  margin-top: 0.75rem;
  color: var(--muted);
}

.path-empty-actions .phone-note {
  margin: 0 0 0.85rem;
}

.path-empty-actions .phone-primary {
  width: 100%;
  margin-top: 0;
}

.phone-tabbar {
  order: 2;
  position: static;
  left: auto;
  bottom: auto;
  transform: none;
  width: 100%;
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
  padding: 0.55rem 0.75rem calc(0.55rem + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-top: 1px solid #e4ebe6;
  box-sizing: border-box;
  z-index: 30;
}

.tab-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 0.78rem;
  padding: 0.55rem 0.35rem;
  border-radius: 0.85rem;
  cursor: pointer;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
}

.tab-icon {
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
}

.tab-icon svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.tab-btn.is-active {
  background: var(--brand);
  color: #fff;
}

.path-progress {
  margin: 0 0 0.95rem;
}

.path-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.path-progress-track {
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(15, 61, 46, 0.1);
  overflow: hidden;
}

.path-progress-fill {
  height: 100%;
  width: 0;
  background: var(--brand);
  border-radius: inherit;
  transition: width 0.25s ease;
}

.path-due {
  color: var(--muted);
  font-weight: 600;
}

.path-card.is-done {
  opacity: 0.62;
}

.path-card.is-done .path-index {
  background: var(--brand);
  color: #fff;
}

.app-rail {
  display: none;
}

.rail-card {
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1.1rem;
  padding: 1rem 1.05rem 1.1rem;
  box-shadow: 0 10px 28px rgba(7, 38, 28, 0.04);
}

.rail-card + .rail-card {
  margin-top: 0.85rem;
}

.rail-title {
  margin: 0.2rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
}

.rail-note,
.rail-progress-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.rail-progress {
  margin: 0.75rem 0 0.9rem;
}

.rail-progress-copy {
  margin-top: 0.4rem;
  font-weight: 600;
}

.timeline-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 1rem 1fr;
  gap: 0.7rem;
  position: relative;
  padding: 0.55rem 0 0.55rem;
}

.timeline-item:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 0.4rem;
  top: 1.35rem;
  bottom: -0.05rem;
  width: 2px;
  background: #d7e3db;
}

.timeline-dot {
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.2rem;
  border-radius: 999px;
  border: 2px solid var(--brand);
  background: #fff;
  z-index: 1;
}

.timeline-item.is-done .timeline-dot {
  background: var(--brand);
}

.timeline-item.is-current .timeline-dot {
  box-shadow: 0 0 0 4px rgba(15, 61, 46, 0.12);
  background: var(--cta);
  border-color: var(--brand);
}

.timeline-copy {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.timeline-copy strong {
  font-size: 0.92rem;
  line-height: 1.3;
  font-weight: 700;
}

.timeline-item.is-done .timeline-copy strong {
  color: var(--muted);
  text-decoration: line-through;
}

.timeline-due {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.rail-day-list {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.rail-day-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.rail-day-list li span {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.35rem;
  border-radius: 999px;
  background: var(--brand);
  flex-shrink: 0;
}

.rail-day-list li.is-done {
  color: var(--muted);
  text-decoration: line-through;
}

.rail-day-list li.is-done span {
  background: #b7c7bc;
}

/* Tablet: wider phone column + timeline under primary */
@media (min-width: 760px) {
  .phone-app.app-shell {
    width: min(100%, 820px);
    padding: 0;
  }

  .app-main {
    padding: 1.35rem 1.35rem 1.5rem;
  }

  .phone-tabbar {
    width: 100%;
  }

  .phone-greeting {
    font-size: clamp(2rem, 4vw, 2.45rem);
  }

  .app-rail:not([hidden]) {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    gap: 0.85rem;
    margin-top: 1.25rem;
  }

  .focus-list,
  .path-list {
    gap: 0.75rem;
  }

  .focus-card,
  .path-card {
    padding: 1.05rem 1.1rem;
  }
}

/* Desktop: side nav + two-column workspace */
@media (min-width: 1100px) {
  body.is-app {
    height: auto;
    overflow: visible;
    min-height: 100vh;
    background:
      radial-gradient(circle at 12% 0%, rgba(184, 243, 77, 0.2), transparent 36%),
      radial-gradient(circle at 88% 8%, rgba(15, 61, 46, 0.08), transparent 28%),
      linear-gradient(180deg, #e8f4ec 0%, #f7faf8 40%, #ffffff 100%);
  }

  .phone-app.app-shell {
    width: min(100%, 1180px);
    height: auto;
    max-height: none;
    overflow: visible;
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr);
    gap: 1.5rem;
    padding: 1.5rem 1.5rem 2rem;
    min-height: 100vh;
    align-items: start;
  }

  .app-main {
    order: 0;
    flex: none;
    overflow: visible;
    min-width: 0;
    padding: 0;
  }

  .app-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(17rem, 0.85fr);
    gap: 1.15rem;
    align-items: start;
  }

  .app-rail:not([hidden]) {
    display: block;
    margin-top: 0;
    position: sticky;
    top: 1.25rem;
  }

  .phone-tabbar.app-nav {
    order: 0;
    position: sticky;
    top: 1.25rem;
    left: auto;
    bottom: auto;
    transform: none;
    width: auto;
    flex: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.75rem;
    border: 1px solid #e4ebe6;
    border-radius: 1.15rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 30px rgba(7, 38, 28, 0.05);
  }

  .tab-btn {
    grid-template-columns: 1.35rem 1fr;
    justify-items: start;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 0.8rem;
    font-size: 0.92rem;
    text-align: left;
  }

  .phone-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
  }

  .phone-primary,
  .phone-secondary {
    width: auto;
    min-width: 12rem;
  }

  .me-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }
}

.intro-dialog {
  border: 0;
  border-radius: 1.25rem;
  padding: 0;
  width: min(92vw, 380px);
  background: transparent;
}

.intro-dialog::backdrop {
  background: rgba(7, 38, 28, 0.45);
}

.intro-card {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.35rem 1.2rem 1.25rem;
}

.intro-card h2 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.intro-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.1rem;
  color: var(--ink);
  line-height: 1.5;
}

.intro-steps li + li {
  margin-top: 0.35rem;
}

/* Path page polish + milestone sheet */
.path-chart-card {
  margin: 0 0 1rem;
  border-radius: 1.1rem;
  background: #fff;
  border: 1px solid #e4ebe6;
  box-shadow: 0 10px 28px rgba(7, 38, 28, 0.04);
  padding: 0.9rem 0.85rem 0.95rem;
}

.path-chart-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: start;
  margin-bottom: 0.35rem;
}

.path-chart-caption {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.35;
}

.path-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.path-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.path-chart-legend i {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  display: inline-block;
  border: 2px solid var(--brand);
}

.path-chart-legend .lg-done {
  background: var(--brand);
}

.path-chart-legend .lg-open {
  background: #fff;
}

.path-chart-legend .lg-now {
  width: 0.2rem;
  height: 0.75rem;
  border: 0;
  border-radius: 2px;
  background: var(--cta);
}

.path-chart {
  width: 100%;
  height: auto;
  display: block;
  margin: 0.15rem 0 0.55rem;
}

.path-chart .chart-tick,
.path-chart .chart-axis,
.path-chart .chart-today {
  fill: #6b7c73;
  font-size: 9px;
  font-family: var(--font-body), system-ui, sans-serif;
  font-weight: 700;
}

.path-chart .chart-today {
  fill: var(--brand);
}

.path-card-openable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  align-items: flex-start;
}

.path-card-openable:hover {
  border-color: var(--brand);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(7, 38, 28, 0.08);
}

.path-card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.65rem;
  align-items: start;
}

.path-card-top strong {
  font-size: 1rem;
  line-height: 1.3;
}

.path-open-cue {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.path-preview {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.path-pulse-chip {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--brand);
  background: rgba(15, 61, 46, 0.08);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

.path-pulse-chip.is-empty {
  color: var(--muted);
  background: #eef2ef;
}

.path-pulse-chip.has-toward {
  background: #e7f8d8;
  color: #1b5e20;
}

.path-pulse-chip.has-away {
  background: #fdecea;
  color: #b71c1c;
}

.path-pulse-chip.has-stuck {
  background: #fff6e0;
  color: #8a5a00;
}

.path-card.has-pulse-toward {
  border-color: #8bc34a;
}

.path-card.has-pulse-away {
  border-color: #e57373;
}

.path-card.has-pulse-stuck {
  border-color: #f0c36d;
}

.path-glyph {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.8rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--fog);
  color: var(--brand);
}

.path-glyph-mark {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.path-glyph-search {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M16 16l4 4'/%3E%3C/svg%3E");
}
.path-glyph-map {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 6l6-2 4 2 6-2v14l-6 2-4-2-6 2V6z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 6l6-2 4 2 6-2v14l-6 2-4-2-6 2V6z'/%3E%3C/svg%3E");
}
.path-glyph-build {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 18h16M6 18V9l6-4 6 4v9'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 18h16M6 18V9l6-4 6 4v9'/%3E%3C/svg%3E");
}
.path-glyph-test {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 3h6v5l3 8a3 3 0 0 1-3 4H9a3 3 0 0 1-3-4l3-8V3z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M9 3h6v5l3 8a3 3 0 0 1-3 4H9a3 3 0 0 1-3-4l3-8V3z'/%3E%3C/svg%3E");
}
.path-glyph-ship {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 14l8-9 8 9M6 14v5h12v-5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M4 14l8-9 8 9M6 14v5h12v-5'/%3E%3C/svg%3E");
}
.path-glyph-grow {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 17l5-5 3 3 6-7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 17l5-5 3 3 6-7'/%3E%3C/svg%3E");
}
.path-glyph-check {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E");
}
.path-glyph-spark {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3l1.5 5.5L19 10l-5.5 1.5L12 17l-1.5-5.5L5 10l5.5-1.5L12 3z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M12 3l1.5 5.5L19 10l-5.5 1.5L12 17l-1.5-5.5L5 10l5.5-1.5L12 3z'/%3E%3C/svg%3E");
}

.path-glyph-wrap-0 { background: #e7f8d8; }
.path-glyph-wrap-1 { background: #e4eefc; }
.path-glyph-wrap-2 { background: #fff1d6; }
.path-glyph-wrap-3 { background: #f3e8ff; }
.path-glyph-wrap-4 { background: #e0f5f1; }
.path-glyph-wrap-5 { background: #fde8e8; }
.path-glyph-wrap-6 { background: #eef6e8; }
.path-glyph-wrap-7 { background: #e8eef8; }

.milestone-dialog {
  border: 0;
  border-radius: 1.25rem;
  padding: 0;
  width: min(94vw, 440px);
  max-height: min(92vh, 760px);
  background: transparent;
  margin: auto;
}

.milestone-dialog::backdrop {
  background: rgba(7, 38, 28, 0.45);
}

.milestone-sheet {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.1rem 1.15rem 1.2rem;
  overflow: auto;
  max-height: min(92vh, 760px);
}

.done-dialog {
  border: 0;
  border-radius: 1.25rem;
  padding: 0;
  width: min(94vw, 420px);
  max-height: min(92vh, 640px);
  background: transparent;
  margin: auto;
}

.done-dialog::backdrop {
  background: rgba(7, 38, 28, 0.45);
}

.done-sheet {
  background: #fff;
  border-radius: 1.25rem;
  padding: 1.1rem 1.15rem 1.2rem;
}

.done-sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.done-title {
  margin: 0.35rem 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
}

.done-criteria {
  margin: 0 0 0.85rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  background: #f3f7f3;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}

.milestone-field em {
  font-style: normal;
  font-weight: 600;
  color: var(--muted);
}

.ms-blocked-why {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dfeae3;
  display: grid;
  gap: 0.55rem;
}

.ms-blocked-why .milestone-field {
  margin-bottom: 0;
}

.ms-blocked-save {
  width: 100%;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
}

.milestone-sheet-chat {
  display: flex;
  flex-direction: column;
  min-height: min(92vh, 760px);
  max-height: min(92vh, 760px);
  padding: 0;
  overflow: hidden;
}

.ms-chat-header {
  flex-shrink: 0;
  padding: 1rem 1rem 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(184, 243, 77, 0.18), transparent 42%),
    linear-gradient(180deg, #e8f4ec 0%, #f7faf8 70%, #f7faf8 100%);
}

.ms-chat-header .milestone-meta {
  margin-bottom: 0.65rem;
}

.ms-comments {
  margin-bottom: 0.95rem;
  border: 1px solid #dfeae3;
  border-radius: 1rem;
  background: #f3f7f3;
  overflow: hidden;
}

.ms-comments-full {
  flex: 1;
  min-height: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f7faf8;
  display: flex;
  flex-direction: column;
}

.ms-comments-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
}

.ms-chat-header .ms-comments-tabs {
  margin: 0 -0.15rem;
}

.ms-comments-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.55rem 0.4rem;
  border-radius: 0.75rem 0.75rem 0 0;
  cursor: pointer;
}

.ms-comments-tab.is-active {
  background: #f7faf8;
  color: var(--ink);
}

.ms-links-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-left: 0.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.ms-comments-pane {
  background: #f7faf8;
}

.ms-comments-pane-fill {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.ms-comments-pane[hidden],
.ms-comments-pane-fill[hidden] {
  display: none !important;
}

.ms-chat-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.85rem 0.9rem 1rem;
}

.ms-chat-empty,
.ms-links-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
  text-align: center;
  padding: 0.85rem 0.5rem 0.35rem;
}

.ms-chat-row {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  max-width: 100%;
}

.ms-chat-row.is-coach {
  align-self: flex-start;
  padding-right: 1.25rem;
}

.ms-chat-row.is-you {
  align-self: flex-end;
  justify-content: flex-end;
  padding-left: 1.25rem;
}

.ms-chat-avatar {
  flex-shrink: 0;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
}

.ms-chat-bubble {
  max-width: 100%;
  padding: 0.55rem 0.7rem 0.45rem;
  box-shadow: 0 1px 0 rgba(27, 94, 32, 0.06);
}

.ms-chat-bubble.is-coach {
  background: #fff;
  border: 1px solid #e0e8e2;
  border-radius: 0.3rem 0.95rem 0.95rem 0.95rem;
}

.ms-chat-bubble.is-coach.is-pulse {
  width: 100%;
}

.ms-chat-bubble.is-coach.is-pulse.is-locked {
  opacity: 0.92;
}

.ms-pulse-row {
  margin-top: 0.65rem;
}

.ms-pulse-row .checkin-btn:disabled {
  opacity: 0.55;
  cursor: default;
  pointer-events: none;
}

.ms-chat-bubble.is-you {
  background: #dff3c4;
  border: 1px solid #c5e39a;
  border-radius: 0.95rem 0.95rem 0.3rem 0.95rem;
}

.ms-chat-from {
  margin: 0 0 0.15rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: 0.02em;
}

.ms-chat-label {
  margin: 0 0 0.3rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ms-chat-body {
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
  word-break: break-word;
}

.ms-chat-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.ms-chat-steps li {
  display: grid;
  gap: 0.15rem;
  padding: 0.45rem 0.55rem;
  border-radius: 0.65rem;
  background: #f3f7f3;
  border: 1px solid #e6eee8;
}

.ms-chat-steps li strong {
  font-size: 0.9rem;
}

.ms-chat-edit {
  margin-top: 0.45rem;
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.ms-chat-edit:hover {
  text-decoration: underline;
}

.ms-edit-dialog {
  border: 0;
  padding: 0;
  border-radius: 1.1rem;
  width: min(92vw, 420px);
  max-width: 100%;
  background: transparent;
}

.ms-edit-dialog::backdrop {
  background: rgba(15, 40, 28, 0.45);
}

.ms-edit-sheet {
  background: #fff;
  border-radius: 1.1rem;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 18px 50px rgba(15, 40, 28, 0.18);
}

.ms-edit-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
}

.ms-edit-label {
  margin: 0 0 0.45rem;
  font-weight: 800;
  font-size: 0.92rem;
}

.ms-edit-sheet textarea {
  width: 100%;
  border: 1px solid #d9e0dc;
  border-radius: 0.85rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  resize: vertical;
  min-height: 7rem;
  box-sizing: border-box;
}

.ms-edit-hint {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.ms-chat-link {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
}

.ms-chat-time {
  display: block;
  margin-top: 0.25rem;
  text-align: right;
  color: #5f7464;
  font-size: 0.72rem;
  font-weight: 600;
}

.ms-chat-footer {
  flex-shrink: 0;
  padding: 0.55rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid #dfeae3;
  background: #fff;
  display: grid;
  gap: 0.45rem;
}

.ms-chat-error {
  margin: 0;
  padding: 0 0.9rem 0.35rem;
}

.ms-mark-done {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1.5px solid #cfe0d4;
  border-radius: 0.95rem;
  background: linear-gradient(180deg, #f4faf5 0%, #e7f3ea 100%);
  color: var(--brand);
  font: inherit;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(15, 61, 46, 0.06);
}

.ms-mark-done:hover {
  border-color: var(--brand);
  background: linear-gradient(180deg, #eef8f0 0%, #dcefdc 100%);
}

.ms-mark-done-ico {
  width: 1.15rem;
  height: 1.15rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.ms-mark-done-ico svg {
  width: 0.75rem;
  height: 0.75rem;
  display: block;
}

.ms-chat-composer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.45rem;
  padding: 0;
  border-top: 0;
  background: transparent;
  align-items: center;
}

.ms-chat-composer input {
  width: 100%;
  border: 1px solid #d9e0dc;
  border-radius: 999px;
  padding: 0.65rem 0.9rem;
  font: inherit;
  box-sizing: border-box;
}

.ms-chat-send {
  width: 2.6rem;
  height: 2.6rem;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.ms-chat-send svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.ms-chat-send:hover {
  filter: brightness(0.96);
}

.ms-links-gallery {
  display: grid;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem 1rem;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.ms-link-card {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid #e4ebe6;
  text-decoration: none;
  color: inherit;
}

.ms-link-card:hover {
  border-color: var(--brand);
}

.ms-link-host {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brand);
}

.ms-link-url {
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.done-hint {
  margin: 0 0 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.done-help {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Phone: sheets open full screen, not floating modals */
@media (max-width: 759px) {
  .milestone-dialog,
  .done-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    margin: 0;
  }

  .milestone-dialog::backdrop,
  .done-dialog::backdrop {
    background: #f7faf8;
  }

  .milestone-sheet,
  .done-sheet {
    border-radius: 0;
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom));
    background:
      radial-gradient(circle at 20% 0%, rgba(184, 243, 77, 0.18), transparent 42%),
      linear-gradient(180deg, #e8f4ec 0%, #f7faf8 38%, #ffffff 100%);
  }

  .milestone-sheet-chat {
    min-height: 100dvh;
    max-height: 100dvh;
    padding: 0;
    background: #f7faf8;
  }

  .ms-chat-header {
    padding-top: max(0.85rem, env(safe-area-inset-top));
  }

  .ms-edit-dialog {
    width: 100vw;
    max-width: 100vw;
    height: auto;
    margin: auto 0 0;
    border-radius: 1.1rem 1.1rem 0 0;
  }

  .ms-edit-sheet {
    border-radius: 1.1rem 1.1rem 0 0;
    padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
  }

  body.milestone-open .phone-tabbar,
  body.done-open .phone-tabbar {
    display: none;
  }
}

.milestone-sheet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.55rem;
}

.milestone-close {
  border: 0;
  background: transparent;
  color: var(--brand);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.milestone-title-input {
  width: 100%;
  border: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ink);
  padding: 0;
  margin: 0.15rem 0 0.35rem;
  background: transparent;
}

.milestone-meta {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.pulse-block {
  background: #f5faf6;
  border: 1px solid #dfeae3;
  border-radius: 1rem;
  padding: 0.85rem 0.9rem;
  margin-bottom: 0.95rem;
}

.pulse-label {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
}

.pulse-help {
  margin: 0.3rem 0 0.7rem;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.milestone-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.milestone-field > span {
  font-weight: 800;
  font-size: 0.85rem;
}

.milestone-field textarea {
  width: 100%;
  border: 1px solid #d9e0dc;
  border-radius: 0.85rem;
  padding: 0.7rem 0.8rem;
  font: inherit;
  resize: vertical;
  box-sizing: border-box;
}

.milestone-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.milestone-steps li {
  background: #f7faf8;
  border: 1px solid #e4ebe6;
  border-radius: 0.85rem;
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.25rem;
}

.milestone-steps li strong {
  font-size: 0.95rem;
}

.step-how {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.milestone-actions {
  display: grid;
  gap: 0.5rem;
}

@media (min-width: 760px) {
  .path-chart-card {
    margin-bottom: 1.15rem;
    padding: 1.05rem 1.05rem 1.1rem;
  }

  .path-list {
    grid-template-columns: 1fr 1fr;
  }

  .milestone-dialog {
    width: min(92vw, 520px);
  }
}

/* Celebrate: task done moment */
.celebrate {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  background: rgba(7, 38, 28, 0.42);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.celebrate.is-on {
  opacity: 1;
  pointer-events: auto;
}

.celebrate.is-out {
  opacity: 0;
}

.celebrate-card {
  position: relative;
  width: min(86vw, 320px);
  text-align: center;
  background: #fff;
  border-radius: 1.4rem;
  padding: 1.6rem 1.25rem 1.4rem;
  box-shadow: 0 22px 50px rgba(7, 38, 28, 0.22);
  transform: translateY(14px) scale(0.94);
  animation: celebrateIn 0.45s cubic-bezier(0.2, 0.9, 0.2, 1.15) forwards;
}

.celebrate.is-out .celebrate-card {
  animation: celebrateOut 0.28s ease forwards;
}

@keyframes celebrateIn {
  to {
    transform: translateY(0) scale(1);
  }
}

@keyframes celebrateOut {
  to {
    transform: translateY(8px) scale(0.96);
    opacity: 0;
  }
}

.celebrate-tick {
  width: 5.2rem;
  height: 5.2rem;
  margin: 0 auto 0.85rem;
  color: var(--brand);
  position: relative;
  z-index: 1;
}

.celebrate-tick svg {
  width: 100%;
  height: 100%;
  display: block;
}

.celebrate-ring {
  stroke-dasharray: 220;
  stroke-dashoffset: 220;
  animation: celebrateRing 0.7s ease forwards 0.05s;
}

.celebrate-mark {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: celebrateMark 0.45s ease forwards 0.35s;
}

@keyframes celebrateRing {
  to { stroke-dashoffset: 0; }
}

@keyframes celebrateMark {
  to { stroke-dashoffset: 0; }
}

.celebrate-burst {
  position: absolute;
  inset: 12% 18% auto;
  height: 5.5rem;
  pointer-events: none;
}

.celebrate-burst span {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--cta);
  opacity: 0;
  animation: celebrateDot 0.9s ease forwards;
}

.celebrate-burst span:nth-child(1) { --dx: -42px; --dy: -28px; animation-delay: 0.2s; }
.celebrate-burst span:nth-child(2) { --dx: 38px; --dy: -34px; animation-delay: 0.28s; background: var(--brand); }
.celebrate-burst span:nth-child(3) { --dx: -48px; --dy: 18px; animation-delay: 0.34s; }
.celebrate-burst span:nth-child(4) { --dx: 46px; --dy: 14px; animation-delay: 0.4s; background: var(--brand); }
.celebrate-burst span:nth-child(5) { --dx: 0; --dy: -46px; animation-delay: 0.24s; }
.celebrate-burst span:nth-child(6) { --dx: 8px; --dy: 36px; animation-delay: 0.46s; }

@keyframes celebrateDot {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); }
}

.celebrate-kicker {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}

.celebrate-title {
  margin: 0.25rem 0 0.3rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.celebrate-sub {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.celebrate-card[data-variant="lock"] .celebrate-tick {
  color: #0f3d2e;
}

.celebrate-card[data-variant="path"] .celebrate-kicker {
  color: #2f6b4f;
}

.celebrate-card[data-variant="spark"] .celebrate-burst span {
  background: #b8f34d;
}

.celebrate-card[data-variant="level"] {
  background:
    radial-gradient(circle at 50% 18%, rgba(184, 243, 77, 0.35), transparent 48%),
    #fff;
}

.celebrate-card[data-variant="level"] .celebrate-kicker {
  color: var(--brand);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.celebrate-card[data-variant="level"] .celebrate-title {
  font-size: 1.65rem;
}

.celebrate-card[data-variant="level"] .celebrate-burst span {
  background: var(--brand);
}

body.celebrate-open .phone-tabbar {
  opacity: 0.15;
  pointer-events: none;
}

/* Day complete panel */
.day-complete {
  margin-top: 0.85rem;
  background: #fff;
  border: 1px solid #e4ebe6;
  border-radius: 1.25rem;
  padding: 1.25rem 1.1rem 1.15rem;
  text-align: center;
  box-shadow: 0 12px 30px rgba(7, 38, 28, 0.06);
}

.day-complete.is-pop {
  animation: dayCompletePop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1.1);
}

@keyframes dayCompletePop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.day-complete-art {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.75rem;
  color: var(--brand);
}

.day-complete-tick svg {
  width: 100%;
  height: 100%;
  display: block;
}

.day-complete.is-pop .day-tick-ring {
  stroke-dasharray: 180;
  stroke-dashoffset: 180;
  animation: celebrateRing 0.7s ease forwards;
}

.day-complete.is-pop .day-tick-mark {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: celebrateMark 0.45s ease forwards 0.3s;
}

.day-complete-burst {
  position: absolute;
  inset: -8%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(184, 243, 77, 0.45), transparent 68%);
  animation: dayBurst 1.1s ease;
}

@keyframes dayBurst {
  from { transform: scale(0.6); opacity: 0; }
  40% { opacity: 1; }
  to { transform: scale(1.15); opacity: 0.55; }
}

.day-complete-title {
  margin: 0.2rem 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
}

.day-complete-copy {
  margin: 0 0 0.95rem;
  color: var(--muted);
  line-height: 1.45;
}
