@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url("/fonts/nunito-latin.woff2") format("woff2");
}

:root {
  --blue: oklch(0.60 0.21 258);
  --blue-dark: oklch(0.50 0.19 258);
  --blue-field: oklch(0.52 0.20 258);
  --blue-soft: oklch(0.955 0.03 258);
  --blue-soft-2: oklch(0.93 0.055 258);
  --green: oklch(0.66 0.19 145);
  --green-dark: oklch(0.56 0.17 145);
  --green-soft: oklch(0.93 0.09 145);
  --amber: oklch(0.70 0.185 45);
  --amber-dark: oklch(0.60 0.17 42);
  --amber-soft: oklch(0.955 0.045 92);
  --gold: oklch(0.90 0.15 92);
  --ink: oklch(0.28 0.015 264);
  --ink-2: oklch(0.30 0.012 264);
  --body: oklch(0.54 0.012 264);
  --muted: oklch(0.60 0.01 264);
  --line: oklch(0.91 0.004 264);
  --line-soft: oklch(0.94 0.003 264);
  --paper: #fff;
  --forest: var(--ink);
  --cream: #fff;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: oklch(0.965 0.003 264);
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  background: oklch(0.965 0.003 264);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}

html[data-transition],
html[data-transition] body,
html[data-transition] #app {
  overflow-anchor: none;
  scroll-behavior: auto;
}

body.sheet-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
}

button,
input,
textarea,
select {
  font: inherit;
}

input,
textarea,
select {
  font-size: max(16px, 1em);
}

button {
  border: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid color-mix(in oklch, var(--blue) 36%, transparent);
  outline-offset: 3px;
}

button:disabled {
  cursor: default;
  opacity: 0.4;
  transform: none !important;
}

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

#app {
  width: 100%;
  min-height: 100dvh;
}

.app-shell {
  display: flex;
  width: min(100%, 430px);
  min-height: 100dvh;
  flex-direction: column;
  margin: 0 auto;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(35, 36, 52, 0.025);
}

.content {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
}

.screen {
  display: flex;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  padding: calc(26px + var(--safe-top)) 22px calc(24px + var(--safe-bottom));
  background: #fff;
  animation: bFade 350ms ease both;
}

.screen-centered {
  justify-content: center;
}

.screen > :first-child {
  margin-top: 0;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  color: var(--ink);
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 8.7vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(29px, 8.2vw, 33px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

p {
  margin: 0 0 16px;
}

.eyebrow,
.section-label,
.metric-label,
.shift-label {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: uppercase;
}

.lead {
  max-width: 360px;
  margin-bottom: 22px;
  color: var(--body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.46;
}

.muted,
.fine-print {
  color: var(--body);
}

.fine-print {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.spacer {
  min-height: 18px;
  flex: 1;
}

.primary-button,
.secondary-button,
.text-button,
.choice-button,
.walk-log-hero {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.15;
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms ease, color 160ms ease, opacity 300ms ease;
}

.primary-button {
  min-height: 62px;
  padding: 15px 22px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 4px 0 var(--blue-dark);
  color: #fff;
  font-size: 18px;
}

.secondary-button,
.choice-button {
  min-height: 60px;
  padding: 13px 18px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: oklch(0.34 0.012 264);
  font-size: 16px;
  font-weight: 800;
}

.secondary-button.confirm-delete {
  border-color: oklch(0.70 0.15 28);
  background: oklch(0.96 0.04 28);
  color: oklch(0.46 0.18 28);
}

.text-button {
  min-height: 46px;
  padding: 10px 14px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
}

.primary-button:active,
.secondary-button:active,
.choice-button:active,
.walk-log-hero:active {
  transform: translateY(3px) scale(0.99);
  transition-duration: 80ms;
}

.primary-button:active {
  box-shadow: 0 1px 0 var(--blue-dark);
}

.button-stack {
  display: grid;
  gap: 10px;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.choice-button.selected {
  border-color: transparent;
  background: var(--green);
  box-shadow: 0 3px 0 var(--green-dark);
  color: #fff;
  font-weight: 900;
}

.card {
  margin-bottom: 14px;
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.card p {
  color: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.card-soft {
  border-color: transparent;
  background: var(--blue-soft);
}

.card-amber {
  border-color: transparent;
  background: var(--amber-soft);
}

.card-neutral {
  border: 2px solid var(--line);
  background: #fff;
}

.card-dark {
  border: 0;
  background: var(--amber);
  box-shadow: 0 5px 0 var(--amber-dark);
  color: var(--ink);
}

.card-dark h3,
.card-dark .eyebrow,
.card-dark .metric-label,
.card-dark p {
  color: var(--ink);
}

.screen > .primary-button + .secondary-button,
.screen > .secondary-button + .primary-button,
.screen > .primary-button + .text-button,
.screen > .secondary-button + .text-button {
  margin-top: 14px;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--green-soft);
  color: oklch(0.38 0.12 145);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.rule-card svg {
  flex: 0 0 auto;
}

.avatar-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  overflow: hidden;
  place-items: center;
  border: 3px solid color-mix(in oklch, var(--blue) 28%, #fff);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.avatar-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.task-back-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms ease;
}

.task-back-button:active,
.avatar-button:active {
  transform: scale(0.97);
  transition-duration: 80ms;
}

.nav-button:active {
  transform: none;
}

.bottom-nav {
  position: sticky;
  z-index: 40;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  min-height: calc(72px + var(--safe-bottom));
  padding: 0 8px var(--safe-bottom);
  border-top: 2px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(18px);
  contain: layout paint;
}

.prebaseline-nav {
  grid-template-columns: repeat(3, 1fr);
  padding-inline: 20px;
}

.nav-button {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 70px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  background: transparent;
  color: oklch(0.64 0.008 264);
  font-size: 12px;
  font-weight: 900;
  transition: color 160ms ease;
}

.nav-button svg {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  stroke-width: 2.2;
}

.nav-button span {
  display: block;
  width: 100%;
  min-width: 0;
  font-weight: 900;
  font-variation-settings: "wght" 900;
  line-height: 16px;
  text-align: center;
}

.nav-button.active {
  color: var(--blue);
}

.nav-button:disabled {
  color: oklch(0.82 0.008 264);
}

.file-pill {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: oklch(0.42 0.13 145);
  font-size: 13.5px;
  font-weight: 800;
}

.paw-mark {
  position: relative;
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.paw-mark i {
  position: absolute;
  display: block;
  background: oklch(0.60 0.18 145);
}

.paw-mark i:nth-child(1) { top: 3px; left: 0.5px; width: 3.9px; height: 5.2px; border-radius: 50%; transform: rotate(-20deg); }
.paw-mark i:nth-child(2) { top: 1px; left: 5.6px; width: 3.9px; height: 5.4px; border-radius: 50%; }
.paw-mark i:nth-child(3) { top: 3px; left: 10.6px; width: 3.9px; height: 5.2px; border-radius: 50%; transform: rotate(20deg); }
.paw-mark i:nth-child(4) { top: 8.2px; left: 3px; width: 9px; height: 6.6px; border-radius: 46% 46% 42% 42%; }

.welcome-screen {
  min-height: 100dvh;
  padding: calc(30px + var(--safe-top)) 22px calc(20px + var(--safe-bottom));
  animation-duration: 400ms;
}

.welcome-copy {
  margin-top: 22px;
}

.welcome-copy h1 {
  margin-bottom: 0;
  font-size: 34px;
}

.welcome-copy h1 > span {
  color: var(--blue);
}

.welcome-intro {
  max-width: 340px;
  margin: 14px 0 0;
  color: var(--body);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
  animation: bFade 400ms 220ms ease both;
}

.welcome-copy .section-label {
  margin-top: 18px;
}

.answer-stack {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.answer-card {
  display: flex;
  min-height: 62px;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: #fff;
  animation: bPop 500ms var(--stagger) cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.answer-card strong {
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.answer-check {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.welcome-note {
  margin: 18px 0 0;
  color: var(--body);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  animation: bFade 500ms 2900ms ease both;
}

.welcome-action {
  margin-top: auto;
  animation: bRise 600ms 3200ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.welcome-brand,
.welcome-art,
.welcome-plan-summary {
  animation: bPop 500ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.welcome-brand {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: oklch(0.42 0.13 145);
}

.welcome-art {
  height: 210px;
  overflow: hidden;
  margin-top: 20px;
  border-radius: 28px;
  background: var(--line-soft);
}

.welcome-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-plan-summary {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 13px;
  align-items: center;
  margin-top: 16px;
  padding: 15px;
  border-radius: 22px;
  background: var(--blue-soft);
}

.welcome-plan-icon,
.up-next-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #fff;
  color: var(--blue);
}

.welcome-plan-summary div {
  display: grid;
}

.welcome-plan-summary div > span,
.welcome-plan-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.welcome-plan-summary strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
}

.today-first-home {
  padding-bottom: 18px;
}

.today-first-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.today-first-header p {
  margin: 0 0 2px;
  color: var(--body);
  font-size: 16px;
  font-weight: 700;
}

.today-first-header h1 {
  margin: 0;
  font-size: 34px;
}

.today-avatar {
  border-color: var(--line);
  background: #fff;
}

.today-avatar img {
  transform: scale(1.08);
}

.today-week-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 22px 0 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.today-week-track,
.flow-progress,
.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.app-shell:has(.clip-recording-screen),
.content:has(.clip-recording-screen) {
  background: var(--blue-field);
}

.clip-recording-screen {
  min-height: 100dvh;
  background: var(--blue-field);
  color: #fff;
  text-align: center;
}

.clip-recording-screen h1,
.clip-recording-screen .eyebrow,
.clip-recording-screen .lead,
.clip-recording-screen .fine-print {
  color: #fff;
}

.clip-recording-screen .progress-bar {
  background: rgba(255, 255, 255, 0.22);
}

.clip-recording-screen .progress-bar span {
  background: var(--gold);
}

.clip-countdown {
  display: grid;
  justify-items: center;
  margin: 4px 0 8px;
  color: #fff;
}

.clip-countdown strong {
  font-size: 72px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.clip-countdown span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.clip-recording-screen .secondary-button {
  margin-top: 28px;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.today-week-track i,
.flow-progress span,
.progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.today-week-track i {
  width: 14.285%;
}

.today-week-track.animate i {
  animation: weekFill 600ms 120ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
  transform-origin: left;
}

.first-task-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  padding: 22px 20px 20px;
  border-radius: 28px;
  background: var(--blue-soft);
  animation: bPop 500ms 100ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.first-task-copy {
  position: relative;
  z-index: 2;
  width: 52%;
}

.task-time-note {
  display: inline-flex;
  margin: -1px 0 9px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 900;
}

.task-kicker {
  margin: 0 0 9px;
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.first-task-copy h2 {
  margin-bottom: 10px;
  font-size: 25px;
  line-height: 1.16;
}

.first-task-copy > p:last-child {
  margin: 0;
  color: var(--body);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.first-task-art {
  position: absolute;
  z-index: 1;
  top: 22px;
  right: 18px;
  width: 128px;
  height: 128px;
  object-fit: contain;
}

.first-task-action {
  position: relative;
  z-index: 3;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  margin-top: 24px;
}

.up-next-section {
  margin-top: 24px;
  animation: bRise 500ms 300ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.up-next-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: center;
  padding: 17px 18px;
  border: 2px solid var(--line);
  border-radius: 22px;
  background: #fff;
}

.up-next-card h3 {
  margin-bottom: 3px;
  font-size: 17px;
}

.up-next-card p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.task-flow-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.task-flow-header strong {
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  text-align: center;
}

.task-flow-header > span {
  width: 44px;
}

.task-back-button {
  border: 0;
  background: transparent;
  color: var(--blue);
}

.flow-progress {
  margin-bottom: 18px;
}

.setup-screen,
.flow-screen {
  overflow-y: auto;
}

.setup-intro {
  margin: -4px 0 18px;
  color: var(--body);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.42;
}

.setup-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.setup-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--blue-soft);
  animation: bPop 450ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.setup-item:nth-child(2) { animation-delay: 80ms; }
.setup-item:nth-child(3) { animation-delay: 160ms; }

.setup-number {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.setup-item h3 {
  margin: 0 0 3px;
  font-size: 16.5px;
}

.setup-item p {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.setup-primary-action {
  margin-top: auto;
  animation: bRise 400ms 240ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.placement-tips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 10px;
}

.placement-tips span {
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: oklch(0.38 0.12 145);
  font-size: 12px;
  font-weight: 900;
}

.camera-frame {
  position: relative;
  display: grid;
  min-height: 310px;
  overflow: hidden;
  place-items: center;
  margin: 6px 0 18px;
  border-radius: 28px;
  background: var(--blue-field);
  color: #fff;
  animation: bPop 400ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.flow-screen:has(.camera-frame) .camera-frame {
  min-height: 240px;
}

.camera-frame.camera-diagram {
  background: var(--blue-soft);
  color: var(--ink);
}

.camera-placeholder {
  display: grid;
  max-width: 250px;
  gap: 10px;
  place-items: center;
  padding: 22px;
  text-align: center;
}

.camera-placeholder img {
  width: 126px;
  max-height: 88px;
  object-fit: contain;
}

.camera-placeholder strong {
  font-size: 17px;
  line-height: 1.3;
}

.camera-placeholder span {
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.camera-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.e2e-camera-preview {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, #e8eef7 0 62%, #a98763 62% 100%);
}

.e2e-camera-preview::before {
  position: absolute;
  top: 24px;
  left: 50%;
  width: 108px;
  height: 164px;
  border: 10px solid #f4f0e8;
  border-bottom: 0;
  background: #db6c55;
  content: "";
  transform: translateX(-50%);
}

.e2e-camera-preview::after {
  position: absolute;
  right: 23px;
  bottom: 18px;
  width: 72px;
  height: 44px;
  border-radius: 50% 50% 42% 42%;
  background: #45586d;
  box-shadow: -18px -19px 0 -8px #45586d;
  content: "";
}

.camera-guides {
  position: absolute;
  inset: 20px;
  border: 2px dashed rgba(255, 255, 255, 0.65);
  border-radius: 22px;
  pointer-events: none;
}

.camera-label {
  position: absolute;
  bottom: 14px;
  left: 50%;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(20, 23, 60, 0.52);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  transform: translateX(-50%);
  white-space: nowrap;
}

.flow-screen .button-stack {
  animation: bRise 350ms 100ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.before-clip-screen .rule-card {
  animation: bPop 400ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.sound-check-screen .card-dark {
  border: 2px solid var(--line);
  background: #fff;
  box-shadow: none;
  color: var(--ink);
}

.sound-check-screen .card-dark h3,
.sound-check-screen .card-dark p {
  color: var(--ink);
}

.sound-check-screen .card-dark .secondary-button {
  background: var(--amber-soft);
  color: oklch(0.42 0.14 68);
}

.dry-run-steps {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.38;
}

.recording-help {
  max-width: 350px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.none-choice {
  margin-top: 9px;
}

.backup-timer-check {
  margin: 0 0 14px;
}

.progress-bar {
  width: 100%;
  margin: 10px 0 0;
}

.recording-screen {
  display: flex;
  width: min(100%, 430px);
  min-height: 100dvh;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: calc(30px + var(--safe-top)) 22px calc(24px + var(--safe-bottom));
  background: var(--blue-field);
  color: #fff;
  text-align: center;
  animation: bFade 400ms ease both;
}

.recording-screen .eyebrow,
.recording-screen h2,
.recording-screen .fine-print {
  color: #fff;
}

.recording-screen .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  font-size: 13.5px;
  text-transform: none;
}

.recording-screen .eyebrow::before {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  content: "";
  animation: bFade 1.2s ease-in-out infinite alternate;
}

.recording-screen h2 {
  margin-top: 20px;
  font-size: 25px;
}

.breathe-orb {
  position: relative;
  display: grid;
  width: 250px;
  min-height: 250px;
  flex: 1;
  place-items: center;
  margin: 24px 0;
}

.breathe-orb::before,
.breathe-orb::after {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.breathe-orb::before {
  width: 250px;
  height: 250px;
  background: rgba(255, 255, 255, 0.16);
  animation: bBreathe2C 4s ease-in-out infinite;
}

.breathe-orb::after {
  width: 160px;
  height: 160px;
  background: rgba(255, 255, 255, 0.3);
  animation: bBreatheC 4s ease-in-out infinite;
}

.return-ripple {
  position: relative;
  display: grid;
  width: 250px;
  min-height: 250px;
  flex: 1;
  place-items: center;
  margin: 24px 0;
}

.return-ripple::before,
.return-ripple::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 120px;
  height: 120px;
  border: 3px solid rgba(255, 255, 255, 0.78);
  border-radius: 50%;
  content: "";
  animation: bRipple 1.6s ease-out infinite;
}

.return-ripple::after {
  animation-delay: 400ms;
}

.elapsed {
  position: relative;
  z-index: 2;
  color: #fff;
  font-size: 28px;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.recording-screen .primary-button {
  margin-top: auto;
  background: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.18);
  color: var(--blue-dark);
}

.abort-button {
  min-height: 46px;
  background: transparent;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 900;
}

.waveform {
  position: relative;
  display: flex;
  width: 100%;
  height: 110px;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  margin: 20px 0 24px;
}

.analysis-screen {
  display: flex;
  width: min(100%, 430px);
  min-height: 100dvh;
  flex-direction: column;
  justify-content: center;
  margin: 0 auto;
  padding: calc(30px + var(--safe-top)) 22px calc(30px + var(--safe-bottom));
  background: var(--blue-field);
  animation: bFade 300ms ease both;
}

.analysis-status {
  margin-bottom: 24px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.analysis-waveform {
  position: relative;
  height: 110px;
  overflow: hidden;
}

.analysis-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2.5px;
}

.analysis-bars span {
  height: var(--bar);
  flex: 1;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.26);
}

.analysis-scan {
  position: absolute;
  inset: 0;
  width: 0;
  overflow: hidden;
  animation: bScan 3.4s linear both;
}

.analysis-scan .analysis-bars {
  width: 346px;
}

.analysis-scan .analysis-bars span {
  background: var(--gold);
}

.analysis-waveform > i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -2px;
  width: 2px;
  background: #fff;
  animation: bSweep 3.4s linear both;
}

.analysis-line {
  min-height: 22px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 15.5px;
  font-weight: 700;
}

.waveform span {
  flex: 1;
  border-radius: 3px;
  background: var(--blue);
}

.waveform span:nth-child(4n + 1) { height: 24%; }
.waveform span:nth-child(4n + 2) { height: 68%; }
.waveform span:nth-child(4n + 3) { height: 42%; }
.waveform span:nth-child(4n) { height: 84%; }

.flag-card {
  margin-bottom: 12px;
  padding: 17px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: #fff;
  animation: bPop 400ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.flag-card:nth-of-type(2) { animation-delay: 80ms; }
.flag-card:nth-of-type(3) { animation-delay: 160ms; }
.flag-card:nth-of-type(4) { animation-delay: 240ms; }

.flag-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.flag-top strong {
  color: var(--amber-dark);
  font-size: 18px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.play-flag {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
}

.timeline {
  padding: 6px 18px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.timeline-row {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  border-top: 2px solid var(--line-soft);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  animation: bPop 400ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
  animation-delay: var(--timeline-delay, 0ms);
}

.timeline-row:first-child {
  border-top: 0;
}

.timeline-time {
  color: var(--amber-dark);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.hero-number {
  position: relative;
  overflow: hidden;
  margin: 12px 0 20px;
  padding: 24px 18px;
  border-radius: 30px;
  background: var(--amber);
  box-shadow: 0 6px 0 var(--amber-dark);
  color: var(--ink);
  font-size: clamp(82px, 25vw, 104px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
  text-align: center;
  animation: bPop 400ms 180ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.hero-number-value {
  display: inline-block;
  animation: bBoing 700ms 240ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.hero-number small {
  margin-left: 6px;
  color: var(--ink-2);
  font-size: 24px;
  letter-spacing: 0;
}

.baseline-result-screen > .lead,
.baseline-result-screen > .recording-strip,
.baseline-result-screen > .reassurance-line,
.baseline-result-screen > .primary-button {
  animation: bRise 500ms 420ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.measurement-details {
  margin: 0 0 14px;
  border: 2px solid var(--line);
  border-radius: 20px;
  background: #fff;
}

.measurement-details summary,
.shift-block summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.measurement-details summary {
  padding: 15px 17px;
  color: var(--blue-dark);
}

.measurement-details summary::-webkit-details-marker,
.shift-block summary::-webkit-details-marker {
  display: none;
}

.measurement-details[open] summary {
  border-bottom: 2px solid var(--line-soft);
}

.measurement-details .timeline {
  border: 0;
  border-radius: 0 0 18px 18px;
}

.reassurance-line {
  margin: 4px 0 16px;
  color: var(--body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.result-deposit {
  position: fixed;
  z-index: 120;
  top: calc(90px + var(--safe-top));
  left: 50%;
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--green-soft);
  box-shadow: 0 10px 24px rgba(30, 40, 60, 0.16);
  color: oklch(0.38 0.12 145);
  font-size: 14px;
  font-weight: 900;
  animation: bDrop 1s cubic-bezier(0.4, 0, 0.2, 1) both;
  pointer-events: none;
}

.recording-strip {
  display: flex;
  width: 100%;
  min-height: 84px;
  align-items: center;
  gap: 14px;
  margin: 4px 0 14px;
  padding: 15px 17px;
  border: 2px solid var(--line);
  border-radius: 24px;
  background: repeating-linear-gradient(135deg, #fff 0 10px, oklch(0.965 0.003 264) 10px 20px);
  color: var(--blue);
  text-align: left;
}

.recording-strip > span {
  display: grid;
}

.recording-strip strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.recording-strip small {
  color: var(--body);
  font-size: 12.5px;
  font-weight: 800;
}

.reassurance-card {
  border: 0;
  background: oklch(0.93 0.10 88);
  color: oklch(0.32 0.09 62);
}

.reassurance-card p,
.reassurance-card strong {
  color: inherit;
}

.branch-result-screen .reassurance-card {
  animation: bRise 800ms 200ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.easy-offer-card {
  margin-bottom: 14px;
  padding: 24px;
  border-radius: 30px;
  background: var(--green-soft);
  box-shadow: 0 5px 0 color-mix(in oklch, var(--green) 55%, #fff);
  animation: bPop 400ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.easy-note-card {
  border: 2px solid var(--line);
  background: #fff;
  color: var(--ink-2);
}

.confidence-meter {
  display: flex;
  gap: 6px;
  margin: 14px 0 18px;
}

.confidence-meter span {
  width: 26px;
  height: 8px;
  border-radius: 4px;
  background: oklch(0.93 0.004 264);
}

.confidence-meter .filled {
  background: var(--blue);
}

.easy-targets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.easy-targets span {
  display: grid;
  height: 74px;
  place-items: center;
  border-radius: 20px;
  background: #fff;
  color: oklch(0.48 0.16 145);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.easy-offer-card p {
  margin: 14px 0 0;
  color: oklch(0.38 0.12 145);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.4;
}

.road-screen .card-dark,
.week-two-screen .card-dark {
  border: 0;
  background: var(--blue-soft);
  box-shadow: none;
  color: oklch(0.30 0.05 262);
  animation: bRise 500ms 1100ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.road-screen .card-dark h3,
.road-screen .card-dark p,
.road-screen .card-dark .eyebrow,
.week-two-screen .card-dark h3,
.week-two-screen .card-dark p,
.week-two-screen .card-dark .eyebrow {
  color: inherit !important;
}

.milestone-list {
  display: grid;
  margin: 12px 0 18px;
}

.milestone {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  min-height: 58px;
  align-items: start;
  color: oklch(0.62 0.012 264);
  font-size: 19px;
  font-weight: 800;
  animation: bPop 450ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.milestone:nth-child(2) { animation-delay: 80ms; }
.milestone:nth-child(3) { animation-delay: 160ms; }
.milestone:nth-child(4) { animation-delay: 240ms; }
.milestone:nth-child(5) { animation-delay: 320ms; }
.milestone:nth-child(6) { animation-delay: 400ms; }

.milestone:not(:last-child)::after {
  position: absolute;
  top: 34px;
  bottom: 3px;
  left: 13px;
  border-left: 4px dotted oklch(0.83 0.010 264);
  content: "";
}

.milestone-dot {
  position: relative;
  z-index: 1;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid oklch(0.90 0.006 264);
  border-radius: 50%;
  background: #fff;
  color: #fff;
  font-size: 12px;
}

.milestone.current,
.milestone.complete {
  color: var(--ink);
  font-weight: 900;
}

.milestone.current .milestone-dot,
.milestone.complete .milestone-dot {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 3px 0 var(--green-dark);
}

.counter-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 18px 0 28px;
}

.counter-dot {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 18px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.counter-dot.complete {
  border-color: transparent;
  background: var(--green);
  box-shadow: 0 3px 0 var(--green-dark);
  color: #fff;
}

.metric-value {
  margin: 4px 0;
  color: inherit;
  font-size: clamp(42px, 13vw, 58px);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1;
}

.metric-delta {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 800;
}

.shift-block {
  margin: 18px 0 14px;
  padding: 15px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.16);
}

.shift-block summary {
  color: #fff;
  font-size: 14px;
}

.shift-block[open] summary {
  margin-bottom: 10px;
}

.install-benefits,
.rep-steps,
.check-sequence {
  display: grid;
  gap: 10px;
  margin: 4px 0 24px;
}

.install-benefits span,
.rep-steps span,
.check-sequence span {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 15px;
  border-radius: 18px;
  background: var(--blue-soft);
  color: var(--ink);
  font-weight: 900;
}

.rep-steps strong {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
}

.check-sequence strong {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 13px;
}

.session-safety {
  margin: 0 0 20px;
  color: var(--body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.42;
}

.sheet-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: -2px 0 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 900;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 16px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--body);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.notification-example {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 18px;
  padding: 15px;
  border-radius: 20px;
  background: var(--blue-soft);
  color: var(--ink);
}

.notification-example > span {
  color: var(--blue-dark);
}

.notification-example p {
  margin: 4px 0 0;
  color: var(--body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.shift-label {
  color: rgba(255, 255, 255, 0.72);
}

.shift-copy {
  margin: 0;
  color: #fff !important;
}

.session-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
  padding: 14px 0;
}

.session-summary strong {
  display: block;
  font-size: 17px;
  font-weight: 900;
}

.time-chip,
.quick-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--green-soft);
  color: oklch(0.40 0.14 145);
  font-size: 12.5px;
  font-weight: 900;
}

.today-hero .time-chip {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.today-hero > .primary-button {
  background: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16) !important;
  color: var(--blue-dark) !important;
}

.today-task-card h2,
.today-task-card p,
.today-task-card .eyebrow {
  color: #fff;
}

.today-task-card h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.today-task-card p:not(.eyebrow) {
  margin-bottom: 18px;
}

.today-task-card > .primary-button {
  background: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.16) !important;
  color: var(--blue-dark) !important;
}

.today-task-card {
  position: relative;
  overflow: hidden;
}

.today-task-copy {
  position: relative;
  z-index: 1;
}

.today-task-card.has-task-art .today-task-copy {
  min-height: 108px;
}

.today-task-card.has-task-art .today-task-copy > .eyebrow,
.today-task-card.has-task-art .today-task-copy > h2 {
  padding-right: 108px;
}

.today-task-art {
  position: absolute;
  z-index: 0;
  top: 13px;
  right: 9px;
  width: 116px;
  height: 116px;
  object-fit: contain;
}

.today-task-card > .primary-button {
  position: relative;
  z-index: 1;
}

.week-file-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  align-items: center;
  gap: 10px;
}

.week-file-art {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.metric-summary-card {
  background: var(--blue-soft);
}

.metric-summary-card .metric-value {
  color: var(--blue-dark);
  font-size: 46px;
}

.metric-summary-card .metric-delta {
  color: var(--body);
}

.plan-detail {
  margin-top: 14px;
  padding-top: 13px;
  border-top: 2px solid rgba(47, 128, 237, 0.12);
}

.plan-detail summary {
  color: var(--blue-dark);
  cursor: pointer;
  font-size: 14px;
  font-weight: 900;
  list-style: none;
}

.plan-detail summary::-webkit-details-marker {
  display: none;
}

.plan-detail p {
  margin: 10px 0 0;
  font-size: 14px;
}

.week-file-metric {
  font-size: clamp(34px, 10vw, 46px);
}

.plan-block {
  padding: 16px 0;
  border-top: 2px solid var(--line-soft);
}

.plan-block:first-child {
  padding-top: 0;
  border-top: 0;
}

.plan-block:last-child {
  padding-bottom: 0;
}

.plan-block summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  font-weight: 900;
  list-style: none;
}

.plan-block summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--blue-dark);
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1);
}

.plan-block[open] summary::after {
  content: "−";
}

.plan-block summary::-webkit-details-marker {
  display: none;
}

.plan-block[open] summary {
  margin-bottom: 9px;
}

.plan-block p:last-child {
  margin: 0;
  color: var(--ink-2);
  font-size: 16.5px;
  font-weight: 800;
  line-height: 1.42;
}

.boundary-band {
  position: relative;
  min-height: 80px;
  margin: 16px 0 2px;
}

.boundary-label-clean {
  left: 0 !important;
  text-align: left;
  transform: none !important;
}

.boundary-label-hard {
  right: 0;
  left: auto !important;
  text-align: right;
  transform: none !important;
}

.boundary-track {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.boundary-track span:first-child { width: var(--clean-share); background: var(--green); }
.boundary-track span:nth-child(2) { width: var(--gap-share); background: var(--amber); }
.boundary-track span:last-child { flex: 1; }

.boundary-label {
  position: absolute;
  top: 22px;
  color: var(--body);
  font-size: 11px;
  font-weight: 900;
  transform: translateX(-50%);
  white-space: nowrap;
}

.finding-stack {
  display: grid;
  gap: 9px;
}

.finding {
  padding: 15px 17px;
  border-radius: 18px;
  background: var(--green-soft);
  color: oklch(0.38 0.12 145);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.38;
}

.empty-file {
  padding: 30px 20px;
  border: 2px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.deposit-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 24px;
  padding: 16px 18px;
  border-radius: 22px;
  background: var(--green-soft);
  color: oklch(0.38 0.12 145);
  font-size: 16px;
  font-weight: 800;
  animation: bRise 300ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.deposit-check {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.walk-log-hero {
  min-height: 78px;
  margin-top: 8px;
  border-radius: 24px;
  background: var(--green);
  box-shadow: 0 5px 0 var(--green-dark);
  color: #fff;
  font-size: 21px;
}

.error-card {
  margin: 12px 0;
  padding: 15px 17px;
  border: 2px solid color-mix(in oklch, var(--amber) 55%, var(--line));
  border-radius: 20px;
  background: var(--amber-soft);
  color: oklch(0.42 0.14 68);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.sheet-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(23, 22, 36, 0.42);
  animation: bFade 160ms ease both;
}

.sheet {
  position: relative;
  width: min(100%, 430px);
  max-height: min(88dvh, 760px);
  overflow-y: auto;
  padding: 28px 22px calc(24px + var(--safe-bottom));
  border-radius: 30px 30px 0 0;
  background: #fff;
  box-shadow: 0 -16px 42px rgba(30, 30, 60, 0.16);
  animation: sheetRise 300ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.install-steps {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.install-step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 13px;
  align-items: start;
  padding: 15px 16px;
  border-radius: 20px;
  background: var(--blue-soft);
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.install-step-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.ios-install-steps .install-step > div {
  min-width: 0;
}

.ios-browser-cue,
.ios-menu-cue,
.ios-add-cue {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 9px;
  margin-bottom: 9px;
  padding: 8px 10px;
  border: 2px solid color-mix(in oklch, var(--blue) 55%, white);
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.ios-browser-cue {
  justify-content: space-between;
}

.ios-browser-cue span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ios-browser-cue b {
  display: grid;
  min-width: 40px;
  height: 28px;
  place-items: center;
  border-radius: 9px;
  background: var(--blue);
  color: #fff;
  letter-spacing: 2px;
}

.ios-menu-cue i {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: var(--blue);
  color: #fff;
  font-size: 18px;
  font-style: normal;
}

.ios-add-cue span {
  flex: 1;
}

.ios-add-cue i {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: var(--green);
}

.ios-add-cue i::after {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.ios-add-cue strong {
  color: var(--blue-dark);
}

.install-share {
  display: inline-grid;
  vertical-align: middle;
}

input[type="number"] {
  width: 100% !important;
  min-height: 56px !important;
  padding: 12px 16px !important;
  border: 2px solid var(--line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  color: var(--ink) !important;
  font-size: 18px;
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 150;
  top: calc(var(--safe-top) + 16px);
  right: max(22px, calc((100vw - 430px) / 2 + 22px));
  left: max(22px, calc((100vw - 430px) / 2 + 22px));
  display: flex;
  min-height: 58px;
  align-items: center;
  gap: 11px;
  padding: 16px 20px;
  border: 2px solid oklch(0.88 0.004 264);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(30, 30, 60, 0.18);
  color: var(--ink-2);
  font-size: 15.5px;
  font-weight: 800;
  animation: bRise 300ms cubic-bezier(0.2, 0.9, 0.3, 1) both;
  pointer-events: none;
}

.offline-banner {
  position: fixed;
  z-index: 140;
  top: calc(10px + var(--safe-top));
  left: 50%;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  transform: translateX(-50%);
}

.button-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
}

html[data-transition="welcome"]::view-transition-old(root),
html[data-transition="forward"]::view-transition-old(root) {
  animation: routeForwardOut 165ms cubic-bezier(0.4, 0, 1, 1) both;
}

html[data-transition="welcome"]::view-transition-new(root) {
  animation: routeForwardIn 340ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html[data-transition="forward"]::view-transition-new(root) {
  animation: routeForwardIn 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html[data-transition="back"]::view-transition-old(root) {
  animation: routeBackOut 150ms cubic-bezier(0.4, 0, 1, 1) both;
}

html[data-transition="back"]::view-transition-new(root) {
  animation: routeBackIn 280ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

html[data-transition="tab"]::view-transition-old(root),
html[data-transition="tab"]::view-transition-new(root) {
  animation: none;
}

html[data-transition="tab"] .bottom-nav {
  view-transition-name: persistent-tab-bar;
}

::view-transition-group(persistent-tab-bar),
::view-transition-old(persistent-tab-bar),
::view-transition-new(persistent-tab-bar) {
  animation: none;
  transform: none;
}

@keyframes bFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bPop {
  from { opacity: 0; transform: translateY(14px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

@keyframes bRise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes bBoing {
  0% { transform: scale(1.2); }
  45% { transform: scale(0.95); }
  72% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

@keyframes bScan {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes bSweep {
  0% { left: -2px; opacity: 0; }
  6% { opacity: 1; }
  100% { left: 100%; opacity: 1; }
}

@keyframes bBreatheC {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.7); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes bBreathe2C {
  0%, 100% { opacity: 0.24; transform: translate(-50%, -50%) scale(0.88); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.32); }
}

@keyframes bRipple {
  from { opacity: 0.7; transform: translate(-50%, -50%) scale(0.4); }
  to { opacity: 0; transform: translate(-50%, -50%) scale(2.6); }
}

@keyframes bDrop {
  0% { opacity: 0; transform: translateY(-30px) scale(0.94); }
  16% { opacity: 1; transform: translateY(0) scale(1); }
  68% { opacity: 1; transform: translateY(150px) scale(0.88); }
  100% { opacity: 0; transform: translateY(200px) scale(0.7); }
}

@keyframes weekFill {
  from { transform: scaleX(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes sheetRise {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes routeForwardOut {
  to { opacity: 0; transform: translateX(-12px) scale(0.994); }
}

@keyframes routeForwardIn {
  from { opacity: 0; transform: translateX(18px); }
}

@keyframes routeBackOut {
  to { opacity: 0; transform: translateX(16px); }
}

@keyframes routeBackIn {
  from { opacity: 0; transform: translateX(-12px); }
}

@media (hover: hover) {
  .primary-button:hover { filter: brightness(0.98); }
  .secondary-button:hover,
  .choice-button:hover { background: oklch(0.985 0.003 264); }
}

#app:not(.view-entering) .screen,
#app:not(.view-entering) .recording-screen,
#app:not(.view-entering) .analysis-screen,
#app:not(.view-entering) .welcome-intro,
#app:not(.view-entering) .answer-card,
#app:not(.view-entering) .welcome-note,
#app:not(.view-entering) .welcome-action,
#app:not(.view-entering) .welcome-brand,
#app:not(.view-entering) .welcome-art,
#app:not(.view-entering) .welcome-plan-summary,
#app:not(.view-entering) .first-task-card,
#app:not(.view-entering) .up-next-section,
#app:not(.view-entering) .setup-item,
#app:not(.view-entering) .setup-primary-action,
#app:not(.view-entering) .camera-frame,
#app:not(.view-entering) .flow-screen .button-stack,
#app:not(.view-entering) .before-clip-screen .rule-card,
#app:not(.view-entering) .flag-card,
#app:not(.view-entering) .timeline-row,
#app:not(.view-entering) .hero-number,
#app:not(.view-entering) .hero-number-value,
#app:not(.view-entering) .baseline-result-screen > .lead,
#app:not(.view-entering) .baseline-result-screen > .recording-strip,
#app:not(.view-entering) .baseline-result-screen > .reassurance-card,
#app:not(.view-entering) .baseline-result-screen > .reassurance-line,
#app:not(.view-entering) .baseline-result-screen > .primary-button,
#app:not(.view-entering) .branch-result-screen .reassurance-card,
#app:not(.view-entering) .easy-offer-card,
#app:not(.view-entering) .road-screen .card-dark,
#app:not(.view-entering) .week-two-screen .card-dark,
#app:not(.view-entering) .milestone,
#app:not(.view-entering) .deposit-line {
  animation: none;
}

#app.route-transition .screen,
#app.route-transition .recording-screen,
#app.route-transition .analysis-screen {
  animation: none;
}

@media (max-height: 720px) {
  .welcome-screen { padding-top: calc(20px + var(--safe-top)); }
  .welcome-copy { margin-top: 16px; }
  .welcome-copy h1 { font-size: 30px; }
  .answer-card { min-height: 54px; padding-block: 11px; }
  .welcome-note { margin-top: 13px; }
}

.cloud-loading-icon {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  box-shadow: 0 18px 38px rgba(28, 44, 100, 0.18);
  animation: bPop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1) both;
}

.cloud-loading-screen h1 { max-width: 14ch; margin-inline: auto; }

.learning-orbit {
  position: relative;
  width: 150px;
  height: 22px;
  margin: 8px auto;
}

.learning-orbit i {
  position: absolute;
  top: 3px;
  left: calc(50% - 8px);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #315fce;
  animation: learningDot 1.45s cubic-bezier(0.2, 0.9, 0.3, 1) infinite;
}

.learning-orbit i:nth-child(2) { background: #ff6d4a; animation-delay: -0.48s; }
.learning-orbit i:nth-child(3) { background: #8a65d6; animation-delay: -0.96s; }

@keyframes learningDot {
  0%, 100% { opacity: 0.35; transform: translateX(-48px) scale(0.75); }
  50% { opacity: 1; transform: translateX(48px) scale(1); }
}

.sign-in-screen {
  min-height: 100dvh;
  padding: calc(18px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: radial-gradient(circle at 94% 2%, rgba(49, 95, 206, 0.1), transparent 34%), #fffdfa;
}

.sign-in-screen > .install-brand {
  position: sticky;
  z-index: 2;
  top: calc(18px + var(--safe-top));
  align-self: flex-start;
}

.sign-in-copy { margin-top: 54px; }
.sign-in-copy h1 { max-width: 13ch; }

.access-code-field {
  display: grid;
  gap: 8px;
  color: #4f4c55;
  font-size: 14px;
  font-weight: 750;
}

.access-code-field input {
  width: 100%;
  height: 68px;
  border: 2px solid #d9deec;
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-align: center;
  font-family: inherit;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.28em;
  padding-left: 0.28em;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.access-code-field input:focus {
  border-color: #315fce;
  box-shadow: 0 0 0 4px rgba(49, 95, 206, 0.13);
}

.inline-error {
  padding: 12px 14px;
  border-radius: 15px;
  background: #fff0ed;
  color: #8c3425;
  font-size: 14px;
  line-height: 1.4;
}

.lapsed-access-screen {
  min-height: 100dvh;
  padding: calc(20px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: 27px;
  background: #fffdfa;
}

.lapsed-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lapsed-summary > div {
  display: grid;
  gap: 3px;
}

.lapsed-summary span { color: var(--muted); font-size: 13px; }
.lapsed-summary strong { font-size: 30px; }
.lapsed-summary p { grid-column: 1 / -1; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.lapsed-access-screen > .button-stack { margin-top: auto; }

.functional-goal-screen {
  min-height: 100dvh;
  padding: calc(24px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
}

.functional-goal-screen .lead { max-width: 31ch; margin-bottom: 24px; }

.goal-choice-list {
  display: grid;
  gap: 11px;
}

.goal-choice {
  width: 100%;
  min-height: 78px;
  padding: 15px 16px;
  border: 1px solid rgba(32, 36, 44, 0.08);
  border-radius: 22px;
  background: #f4f6fb;
  color: var(--ink);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  text-align: left;
  touch-action: manipulation;
  transition: transform 160ms cubic-bezier(0.16, 1, 0.3, 1), background 160ms ease;
}

.goal-choice span { display: grid; gap: 3px; }
.goal-choice strong { font: 800 17px/1.25 var(--font); }
.goal-choice small { color: var(--muted); font-size: 14px; }
.goal-choice:active { transform: translateY(1px) scale(0.985); background: #edf1fa; }
.goal-negotiation-screen .card { text-align: left; }
.goal-negotiation-screen .card h3 { margin: 4px 0 7px; font-size: 28px; }
.goal-negotiation-screen .card p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  html[data-transition]::view-transition-old(root),
  html[data-transition]::view-transition-new(root) {
    animation: bFade 0.001ms linear both !important;
    transform: none !important;
  }
}

/* Safety, visible adaptation, quick wins, and monthly comparison */
.safety-screen {
  max-width: 560px;
  margin: 0 auto;
  padding-inline: max(24px, env(safe-area-inset-left));
}

.safety-symbol {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: var(--blue-soft, #e2efff);
  color: var(--blue, #087cf0);
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 22px;
}

.safety-links {
  display: grid;
  gap: 10px;
  width: 100%;
  margin: 8px 0 20px;
}

.today-change-card {
  margin-bottom: 16px;
  border-radius: 22px;
  padding: 18px 20px;
  background: #fff5cf;
  color: var(--ink);
}

.today-change-card p:last-child {
  margin: 5px 0 0;
  font-size: 17px;
  line-height: 1.45;
  font-weight: 650;
}

.today-change-collapsed summary {
  cursor: pointer;
  font-weight: 750;
}

.quick-win-card .secondary-button {
  margin-top: 16px;
}

.quick-win-dots {
  display: grid;
  grid-template-columns: repeat(var(--quick-win-total), minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.quick-win-dots span {
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgb(255 255 255 / 70%);
  border: 2px solid rgb(34 38 46 / 12%);
  font-weight: 800;
}

.quick-win-dots span.complete {
  color: white;
  background: var(--blue, #087cf0);
  border-color: var(--blue, #087cf0);
}

.same-setup-note,
.wake-lock-status {
  width: 100%;
  border-radius: 18px;
  padding: 16px 18px;
  background: #eef4fc;
  color: var(--blue-dark);
  font-weight: 680;
  line-height: 1.45;
}

.wake-lock-status {
  width: min(100%, 400px);
  margin: 14px 0 0;
  text-align: center;
  font-size: 14px;
}

.monthly-file-button {
  width: 100%;
  border: 0;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.monthly-comparison {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.monthly-comparison article {
  min-width: 0;
  border-radius: 24px;
  padding: 20px;
  background: #e3efff;
  display: grid;
  align-content: start;
  gap: 12px;
}

.monthly-comparison .month-period,
.monthly-comparison .month-metric-label {
  color: var(--muted);
  font-weight: 700;
}

.monthly-comparison .month-metric-label {
  font-size: 13px;
  line-height: 1.25;
}

.monthly-comparison strong {
  font-size: clamp(26px, 8vw, 42px);
  line-height: 1;
}

.monthly-comparison .month-start strong {
  color: var(--muted);
  font-weight: 650;
}

.monthly-comparison .month-current strong {
  color: var(--ink);
  font-weight: 850;
}

.walk-strategy-steps {
  margin-top: 20px;
}

.monthly-comparison .secondary-button {
  min-height: 50px;
  padding-inline: 10px;
  font-size: 14px;
}

.escalation-card {
  display: grid;
  gap: 10px;
}

@media (max-width: 370px) {
  .monthly-comparison {
    grid-template-columns: 1fr;
  }
}

/* LuckyDog install education: same Day0Bright system, one action per screen. */
.install-education {
  min-height: 100dvh;
  padding: calc(18px + var(--safe-top)) 24px calc(24px + var(--safe-bottom));
  background:
    radial-gradient(circle at 92% 3%, rgba(49, 95, 206, 0.09), transparent 31%),
    var(--paper, #fffdfa);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.install-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.install-brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  box-shadow: 0 7px 18px rgba(30, 42, 83, 0.14);
}

.install-hero-copy { margin-top: 22px; }
.install-hero-copy h1,
.install-education h1 { max-width: 12ch; }
.install-education .lead { max-width: 32ch; }

.install-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.install-benefits > span {
  min-width: 0;
  padding: 15px 7px 13px;
  border: 1px solid rgba(49, 95, 206, 0.11);
  border-radius: 18px;
  background: rgba(241, 245, 255, 0.82);
  display: grid;
  justify-items: center;
  gap: 7px;
  color: #315fce;
  text-align: center;
  font-size: 13px;
}

.install-benefits strong { color: var(--ink); }

.install-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.bottom-action-group {
  width: 100%;
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.quiet-help {
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.quiet-help summary {
  min-height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: rgba(95, 91, 96, 0.35);
  text-underline-offset: 3px;
}

.quiet-help summary::-webkit-details-marker { display: none; }
.quiet-help p { margin: 0 0 8px; line-height: 1.48; }

.install-guide-screen { gap: 20px; }

.install-guide-screen h1 { margin-bottom: 8px; }
.install-guide-screen .lead { margin: 0; }

.install-picture-steps {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-picture-step {
  display: grid;
  gap: 9px;
}

.install-picture-copy {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
}

.install-picture-copy > b {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: #315fce;
  color: #fff;
  font-size: 17px;
  box-shadow: 0 3px 0 #2347a0;
}

.install-picture-copy span { display: grid; gap: 1px; }
.install-picture-copy strong { font-size: 17px; line-height: 1.2; }
.install-picture-copy small { color: var(--muted); font-size: 13px; line-height: 1.3; }

.install-screenshot {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(35, 36, 52, 0.11);
  border-radius: 20px;
  background: #f1f2f5;
  box-shadow: 0 10px 24px rgba(28, 36, 68, 0.1);
}

.install-screenshot img {
  width: 100%;
  height: auto;
  display: block;
}

.install-target-ring {
  position: absolute;
  z-index: 2;
  border: 4px solid #ff5b4a;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 5px 16px rgba(121, 36, 23, 0.25);
  pointer-events: none;
}

.install-target-arrow {
  position: absolute;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #ff5b4a;
  color: #fff;
  font-size: 27px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 5px 14px rgba(121, 36, 23, 0.3);
  pointer-events: none;
}

.ios18-share-target .install-target-ring {
  left: 50%;
  top: 67%;
  width: 14%;
  aspect-ratio: 1;
  border-radius: 15px;
  transform: translate(-50%, -50%);
}

.ios18-share-target .install-target-arrow {
  left: 50%;
  top: 2%;
  transform: translateX(-50%);
}

.install-layout-note {
  padding: 12px 14px;
  border: 1px solid rgba(49, 95, 206, 0.16);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 9px;
  background: #f4f7ff;
  color: #54515a;
  font-size: 14px;
  line-height: 1.35;
}

.install-layout-note svg { color: #315fce; }

.ios26-more-target .install-target-ring {
  right: 4.5%;
  top: 50%;
  width: 15%;
  aspect-ratio: 1;
  border-radius: 999px;
  transform: translateY(-50%);
}

.ios26-more-target .install-target-arrow {
  top: 50%;
  right: 21%;
  transform: translateY(-50%);
}

.ios26-share-target .install-target-ring {
  top: 3%;
  right: 1.5%;
  left: 1.5%;
  height: 58%;
  border-radius: 17px;
}

.ios26-share-target .install-target-arrow {
  top: 50%;
  right: 4%;
  transform: translateY(-50%);
}

.drag-sheet-target .install-target-ring { display: none; }

.drag-sheet-target .install-target-arrow {
  left: 50%;
  bottom: 7%;
  width: 58px;
  height: 78px;
  transform: translateX(-50%);
  font-size: 48px;
  border-radius: 28px;
}

.ios18-home-target .install-target-ring,
.ios26-home-target .install-target-ring {
  right: 1.5%;
  bottom: 1.5%;
  left: 1.5%;
  height: 34%;
  border-radius: 17px;
}

.ios18-home-target .install-target-arrow,
.ios26-home-target .install-target-arrow {
  right: 12%;
  top: 2%;
}

.ios18-add-target .install-target-ring,
.ios26-add-target .install-target-ring {
  top: 3%;
  right: 1.5%;
  width: 19%;
  height: 30%;
  border-radius: 999px;
}

.ios18-add-target .install-target-arrow,
.ios26-add-target .install-target-arrow {
  top: 12%;
  right: 24%;
  transform: translateY(-50%);
}

.ios26-add-target .install-target-ring { height: 23%; }

.media-player-overlay {
  position: fixed;
  z-index: 240;
  inset: 0;
  display: grid;
  place-items: center;
  padding: max(18px, env(safe-area-inset-top)) 18px max(18px, env(safe-area-inset-bottom));
  background: rgba(13, 17, 28, 0.74);
  backdrop-filter: blur(10px);
}

.media-player-panel {
  position: relative;
  display: grid;
  width: min(100%, 430px);
  max-height: 100%;
  padding-top: 52px;
  overflow: hidden;
  border-radius: 26px;
  background: #0d111c;
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.34);
}

.media-player-panel video {
  width: 100%;
  max-height: calc(100vh - 120px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  object-fit: contain;
  background: #000;
}

.media-player-panel audio {
  width: calc(100% - 28px);
  margin: 16px 14px 24px;
}

.media-player-close {
  position: absolute;
  z-index: 2;
  top: 8px;
  right: 10px;
  min-width: 68px;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  touch-action: manipulation;
}

.install-step-list {
  display: grid;
  gap: 12px;
}

.install-step-list.compact { gap: 10px; }

.install-step {
  min-height: 78px;
  padding: 14px 15px;
  border-radius: 22px;
  background: #f4f6fb;
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 13px;
}

.install-step > b {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #315fce;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 3px 0 #2347a0;
}

.install-step span { display: grid; gap: 3px; }
.install-step strong { font-size: 16px; line-height: 1.25; }
.install-step small { color: var(--muted); font-size: 13px; line-height: 1.35; }

.install-return-note {
  padding: 12px 14px;
  border: 1px solid rgba(49, 95, 206, 0.16);
  border-radius: 18px;
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 11px;
  color: #54515a;
  font-size: 14px;
  line-height: 1.38;
}

.install-note-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.android-icon-stage {
  min-height: 250px;
  border-radius: 32px;
  background: linear-gradient(145deg, #eef2fc, #fff6eb);
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 13px;
  font-weight: 750;
}

.android-install-icon,
.installed-hero-icon {
  width: 112px;
  height: 112px;
  border-radius: 27px;
  box-shadow: 0 18px 34px rgba(24, 37, 85, 0.19);
}

.install-finish-screen { justify-content: center; }
.install-finish-screen h1 { margin-top: 8px; }
.install-finish-screen .lead { text-align: center; }

.embedded-install-screen .install-step-list { margin-top: 10px; }
.copy-confirmation { min-height: 22px; margin: 0; color: #226344; text-align: center; font-size: 14px; }

@media (max-height: 720px) {
  .install-education { gap: 16px; }
  .install-hero-copy { margin-top: 4px; }
  .install-guide-screen { gap: 16px; }
  .install-picture-steps { gap: 15px; }
  .install-step { min-height: 66px; padding-block: 10px; }
  .android-icon-stage { min-height: 180px; }
}

/* Cloud account, long-term plan, and file surfaces */
.subscription-card h3,
.human-time-card h3 { margin: 5px 0 7px; }

.subscription-card p,
.human-time-card p { margin: 0; color: var(--muted); }

.account-email { margin: 18px 0 2px; text-align: center; }

.lifecycle-screen { gap: 16px; text-align: center; }
.lifecycle-screen .file-pill { align-self: center; }
.lifecycle-screen .lead { max-width: 34ch; }
.deposit-check.large { width: 70px; height: 70px; font-size: 34px; }

.human-time-card {
  display: grid;
  gap: 9px;
  margin-bottom: 14px;
}

.human-time-card .secondary-button,
.human-time-card .text-button { margin-top: 4px; }

.upload-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.upload-track {
  height: 5px;
  overflow: hidden;
  margin: 10px 0 3px;
  border-radius: 99px;
  background: #e4e7ef;
}

.upload-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue, #315fce);
  transition: width .18s ease;
}

.life-check-stack { display: grid; gap: 18px; margin: 18px 0 24px; }
.life-check-row { margin: 0; padding: 0; border: 0; }
.life-check-row legend { margin-bottom: 9px; font-size: 16px; font-weight: 750; }
.segmented-choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.segmented-choice .choice-button { min-height: 50px; padding: 8px 5px; font-size: 14px; }

.reflection-field { display: grid; gap: 9px; margin: 18px 0; }
.reflection-field > span { font-size: 15px; font-weight: 750; line-height: 1.4; }
.reflection-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 92px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
}
.reflection-field textarea:focus-visible { outline: 3px solid rgba(49, 95, 206, .24); outline-offset: 2px; }

.monthly-files-card .plan-block {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
}

.monthly-files-card .plan-block span { color: var(--muted); font-size: 13px; text-transform: capitalize; }

/* Modern app surfaces, shared by Day 1 and every later program screen. */
.modern-active-screen,
.modern-tab-screen {
  padding: calc(28px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));
}

.modern-today-header {
  flex: 0 0 auto;
}

.modern-week-row {
  margin: 22px 0 18px;
}

.modern-week-row .today-week-track i {
  transform: none;
}

.modern-task-card,
.modern-summary-card,
.modern-focus-card,
.modern-progress-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 20px 20px;
  border-radius: 30px;
  background: var(--blue-soft);
}

.modern-task-card,
.modern-summary-card {
  margin-bottom: 18px;
}

.modern-task-copy,
.modern-task-card > :not(.today-task-art),
.modern-summary-card > :not(.week-file-art) {
  position: relative;
  z-index: 1;
}

.modern-task-card .task-kicker,
.modern-summary-card .task-kicker,
.modern-focus-card .task-kicker {
  margin: 0 0 10px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.modern-task-card h2,
.modern-summary-card h2,
.modern-focus-card h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: clamp(28px, 8vw, 33px);
  line-height: 1.12;
}

.modern-task-card p:not(.task-kicker),
.modern-summary-card p:not(.task-kicker),
.modern-focus-card p:not(.task-kicker) {
  margin: 0;
  color: var(--body);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
}

.modern-task-card.has-task-art .modern-task-copy {
  min-height: 132px;
}

.modern-task-card.has-task-art .modern-task-copy .task-kicker,
.modern-task-card.has-task-art .modern-task-copy h2 {
  padding-right: 116px;
}

.modern-task-card.has-task-art .modern-task-copy > p:last-child {
  max-width: 68%;
}

.modern-task-card .today-task-art {
  top: 20px;
  right: 12px;
  width: 126px;
  height: 126px;
}

.modern-task-action {
  margin-top: 24px;
}

.modern-rule-card {
  margin: 0 0 16px;
}

.management-rule-card {
  transition: background-color 180ms ease, padding 180ms ease;
}

.management-rule-card.management-quiet {
  padding-block: 10px;
  background: color-mix(in oklch, var(--green-soft) 50%, #fff);
}

.modern-metric-card,
.modern-support-card,
.modern-learning-card,
.modern-range-card,
.modern-details-card,
.modern-milestone-card {
  margin-bottom: 16px;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: 26px;
  background: #fff;
}

.modern-metric-card {
  border-color: transparent;
  background: var(--blue-soft);
}

.modern-metric-card .metric-value {
  color: var(--blue-dark);
  font-size: clamp(42px, 12vw, 54px);
}

.modern-metric-card .metric-delta {
  color: var(--body);
}

.modern-support-card {
  border-color: transparent;
  background: var(--blue-soft);
}

.modern-support-card.support-amber {
  background: var(--amber-soft);
}

.modern-support-card.neutral-prompt {
  border-color: var(--line);
  background: #fff;
}

.modern-support-card h3,
.modern-learning-card h3,
.modern-range-card h3 {
  margin-bottom: 8px;
}

.modern-support-card p,
.modern-learning-card p,
.modern-range-card p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.today-log-action {
  margin-top: 2px;
}

.modern-summary-card {
  min-height: 285px;
}

.modern-summary-card .week-file-art {
  position: absolute;
  z-index: 0;
  top: 22px;
  right: 16px;
  width: 118px;
  height: 118px;
}

.modern-summary-card h2,
.modern-summary-card .task-kicker {
  padding-right: 118px;
}

.modern-summary-card .metric-label {
  display: block;
  margin-top: 30px;
  color: var(--blue-dark);
}

.modern-summary-card .metric-value {
  color: var(--ink);
}

.modern-summary-card .metric-delta {
  color: var(--body);
}

.week-file-helper {
  margin-top: 8px !important;
}

.week-file-clip-row {
  display: grid;
  width: 100%;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 10px;
  border: 2px solid color-mix(in oklch, var(--blue) 12%, var(--line));
  border-radius: 20px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.week-file-clip-row img {
  width: 64px;
  height: 48px;
  border-radius: 13px;
  object-fit: cover;
}

.week-file-clip-row span {
  display: grid;
  gap: 2px;
}

.week-file-clip-row strong {
  font-size: 16px;
  line-height: 1.2;
}

.week-file-clip-row small {
  color: var(--body);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.week-file-clip-row b {
  color: var(--blue);
}

.strategy-change-screen {
  padding: calc(28px + var(--safe-top)) 22px calc(28px + var(--safe-bottom));
}

.strategy-change-card {
  margin-top: 22px;
  padding: 24px 20px;
  border-radius: 28px;
  background: var(--amber-soft);
}

.strategy-change-card > p:not(.eyebrow),
.strategy-plan-change p:not(.eyebrow) {
  color: var(--body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.45;
}

.strategy-plan-change {
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 22px;
  background: #fff;
}

.strategy-plan-change h3 {
  margin: 6px 0 8px;
}

.strategy-change-card .primary-button {
  margin-top: 20px;
}

.celebration-result {
  display: grid;
  justify-items: center;
  gap: 4px;
  margin: 0 0 18px;
  color: var(--blue-dark);
}

.celebration-result span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.celebration-result strong {
  font-size: 42px;
  line-height: 1;
}

.walk-fallback-rule {
  margin: 18px 0 16px;
}

.walk-success-copy {
  margin: 2px 0 0;
  color: var(--blue-dark);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
}

.modern-learning-card .finding-stack {
  margin-top: 12px;
}

.week-two-card {
  min-height: 440px;
  display: flex;
  flex-direction: column;
}

.week-two-card > p:not(.task-kicker) {
  max-width: 31ch;
}

.next-session-note {
  display: grid;
  gap: 3px;
  margin-top: 24px;
  padding: 17px 18px;
  border-radius: 22px;
  background: #fff;
}

.next-session-note span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.next-session-note strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
}

.week-two-card .modern-task-action {
  margin-top: auto;
}

.lifecycle-screen {
  gap: 0;
  text-align: left;
}

.lifecycle-screen .file-pill {
  align-self: flex-start;
  margin-bottom: 20px;
}

.lifecycle-card .deposit-check {
  margin-bottom: 18px;
}

.modern-tab-header {
  margin-bottom: 22px;
}

.modern-tab-header .eyebrow {
  margin-bottom: 8px;
}

.modern-tab-header h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 9vw, 38px);
}

.modern-tab-header > p:last-child:not(.eyebrow) {
  margin: 0;
  color: var(--body);
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
}

.modern-focus-card {
  margin-bottom: 16px;
}

.modern-focus-card p:not(.task-kicker) {
  color: var(--blue-dark);
  font-weight: 800;
}

.modern-range-card .boundary-band {
  margin-top: 18px;
}

.modern-details-card {
  padding-top: 6px;
  padding-bottom: 6px;
}

.modern-progress-hero {
  margin-bottom: 16px;
}

.modern-progress-hero .metric-label {
  color: var(--blue-dark);
}

.modern-progress-hero .metric-value {
  margin-top: 2px;
  color: var(--ink);
  font-size: clamp(54px, 16vw, 72px);
}

.modern-progress-hero .metric-delta {
  color: var(--body);
}

.modern-milestone-card .milestone-list {
  margin-bottom: 0;
}

.modern-tab-screen .session-summary {
  margin-top: 4px;
  margin-bottom: 8px;
}

@media (max-width: 360px) {
  .modern-task-card.has-task-art .modern-task-copy > p:last-child {
    max-width: 74%;
  }

  .modern-task-card .today-task-art {
    width: 112px;
    height: 112px;
  }
}
