:root {
  color-scheme: light;
  --ink: #1a130d;
  --orange: #ff7300;
  --orange-deep: #e85d00;
  --orange-label: #b5530a;
  --cream: #fff3e4;
  --card: #fffdfa;
  --muted: #7a6049;
  --muted-soft: #9a7b60;
  --green: #2e7d46;
  --track: #f3d9bd;
  --orange-dark: var(--orange-label);
  --orange-soft: var(--track);
  --ink-soft: var(--muted);
  --paper: var(--cream);
  --paper-warm: var(--track);
  --line: var(--track);
  --green-soft: #eaf6ee;
  --blue: var(--muted);
  --rose: var(--orange-label);
  --font-display: "Anton", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;
  --font-mono: "Spline Sans Mono", ui-monospace, "Cascadia Mono", monospace;
  --shadow: 0 18px 42px rgb(84 36 0 / 16%);
  --shadow-soft: 0 8px 22px rgb(84 36 0 / 10%);
  --fast: 170ms ease;
  --app-max: 470px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--cream);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(90deg, rgb(23 17 13 / 5%) 1px, transparent 1px) 0 0 / 34px 34px,
    linear-gradient(0deg, rgb(23 17 13 / 4%) 1px, transparent 1px) 0 0 / 34px 34px,
    var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

button,
input,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

a {
  color: inherit;
}

.tnum,
time,
.act-meta,
.pick-total,
.program-stats,
.hero-chips,
.slot-title,
.sms-preview,
.pick-preview {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

.app-main {
  width: 100%;
  min-height: 100svh;
  padding: 0;
}

.save-state {
  position: fixed;
  right: 12px;
  bottom: 12px;
  z-index: 60;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgb(23 17 13 / 12%);
  border-radius: 6px;
  background: rgb(255 250 242 / 92%);
  color: var(--ink-soft);
  box-shadow: var(--shadow-soft);
  font-size: 0.78rem;
  font-weight: 800;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--fast), transform var(--fast);
  pointer-events: none;
}

.save-state.is-saved {
  opacity: 1;
  transform: translateY(0);
}

.welcome-screen,
.onboarding-screen,
.building-screen,
.phone-app {
  width: min(100%, var(--app-max));
  min-height: 100svh;
  margin: 0 auto;
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: screenIn 280ms ease both;
}

.welcome-screen {
  display: grid;
  grid-template-rows: minmax(410px, 1fr) auto;
}

.welcome-hero {
  position: relative;
  display: grid;
  min-height: 410px;
  padding: 24px;
  overflow: hidden;
  align-content: space-between;
  background:
    linear-gradient(90deg, rgb(255 255 255 / 12%) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(0deg, rgb(255 255 255 / 12%) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--orange);
  color: #fff7ed;
}

.welcome-hero::before,
.welcome-hero::after {
  position: absolute;
  content: "";
  border: 2px solid rgb(255 247 237 / 72%);
  transform: rotate(-10deg);
}

.welcome-hero::before {
  right: -26px;
  bottom: 58px;
  width: 210px;
  height: 82px;
}

.welcome-hero::after {
  right: 50px;
  bottom: 122px;
  width: 88px;
  height: 34px;
  background: rgb(23 17 13 / 18%);
}

.mini-brand,
.app-brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  overflow: visible;
}

.logo-mark rect {
  fill: var(--ink);
}

.logo-mark path {
  fill: none;
  stroke: var(--orange);
  stroke-linecap: round;
  stroke-width: 8.5;
}

.logo-mark .grass-highlight {
  stroke: #ff8a26;
}

.welcome-hero h1 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-size: 5.2rem;
  line-height: 0.82;
  text-transform: uppercase;
  text-wrap: balance;
}

.welcome-hero p {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin: 16px 0 0;
  color: rgb(255 247 237 / 88%);
  font-size: 1rem;
  font-weight: 760;
  line-height: 1.45;
  text-wrap: pretty;
}

.welcome-body {
  padding: 22px;
  background: var(--paper);
}

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

.welcome-steps li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 10px;
  border: 1px solid rgb(23 17 13 / 12%);
  border-radius: 8px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 750;
}

.welcome-steps span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-weight: 950;
}

.fine-print {
  margin: 14px 0 0;
  color: rgb(79 53 40 / 75%);
  font-size: 0.78rem;
  line-height: 1.35;
  text-align: center;
}

.onboarding-screen {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  padding: 18px;
  background:
    linear-gradient(90deg, rgb(23 17 13 / 4%) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
}

.onboarding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 36px;
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.back-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgb(23 17 13 / 12%);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.onboarding-copy {
  padding: 28px 0 20px;
}

.eyebrow,
.intel-label {
  margin: 0 0 8px;
  color: var(--orange-dark);
  font-size: 0.73rem;
  font-weight: 950;
  text-transform: uppercase;
}

.onboarding-copy h1,
.share-copy h1,
.empty-state h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.5rem;
  line-height: 0.9;
  text-transform: uppercase;
  text-wrap: balance;
}

.onboarding-copy p:not(.eyebrow),
.share-copy p:not(.eyebrow),
.empty-state p {
  max-width: 340px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  font-weight: 720;
  line-height: 1.45;
  text-wrap: pretty;
}

.day-grid,
.genre-grid,
.style-list {
  display: grid;
  gap: 10px;
  align-content: start;
  padding-bottom: 94px;
}

.day-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.genre-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.day-card,
.genre-card,
.style-card {
  position: relative;
  min-width: 0;
  border: 1px solid rgb(23 17 13 / 12%);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 2px 0 rgb(23 17 13 / 8%);
  text-align: left;
  transition: transform var(--fast), border-color var(--fast), background var(--fast), box-shadow var(--fast);
}

.day-card:hover,
.genre-card:hover,
.style-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 rgb(23 17 13 / 10%);
}

.day-card.is-selected,
.genre-card.is-selected,
.style-card.is-selected {
  border-color: var(--ink);
  background: var(--orange);
  color: #fff8ef;
  box-shadow: 0 6px 0 var(--ink);
}

.day-card {
  display: grid;
  min-height: 132px;
  padding: 14px;
}

.day-card strong {
  align-self: end;
  font-size: 1.22rem;
  font-weight: 950;
}

.day-card span:not(.card-check) {
  color: currentColor;
  font-size: 0.82rem;
  font-weight: 850;
  opacity: 0.78;
}

.day-card small,
.genre-card small,
.style-card small {
  color: currentColor;
  font-size: 0.76rem;
  font-weight: 820;
  line-height: 1.25;
  opacity: 0.72;
}

.card-check {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 950;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity var(--fast), transform var(--fast);
}

.is-selected > .card-check,
.style-card.is-selected .card-check {
  opacity: 1;
  transform: scale(1);
}

.genre-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  min-height: 132px;
  padding: 14px;
}

.genre-emoji {
  font-size: 1.8rem;
  line-height: 1;
}

.genre-card strong {
  align-self: end;
  font-size: 1rem;
  font-weight: 950;
  line-height: 1.1;
}

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

.style-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 26px;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 12px;
}

.style-card .card-check {
  position: static;
}

.style-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgb(23 17 13 / 18%);
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
}

.style-card.is-selected .style-icon {
  background: #fff8ef;
}

.style-card strong,
.style-card small {
  display: block;
}

.style-card strong {
  margin-bottom: 5px;
  font-size: 1rem;
  font-weight: 950;
}

.sticky-cta,
.bottom-cta {
  position: sticky;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  padding: 12px 0 0;
  background: linear-gradient(180deg, rgb(255 250 242 / 0%) 0%, var(--paper) 30%);
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 6px;
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast);
}

.primary-action {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff8ef;
  box-shadow: 0 5px 0 var(--orange);
}

.primary-action.large {
  width: 100%;
  min-height: 58px;
  font-size: 1.02rem;
}

.primary-action:hover,
.secondary-action:hover {
  transform: translateY(-2px);
}

.primary-action:active,
.secondary-action:active {
  transform: translateY(1px);
  box-shadow: none;
}

.secondary-action {
  border: 1px solid rgb(23 17 13 / 16%);
  background: #fff;
  color: var(--ink);
}

.as-link {
  width: 100%;
}

.building-screen,
.pg-build {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 30px;
  text-align: center;
  background: var(--cream);
  color: var(--ink);
  animation: pgBuildIn 240ms ease both;
}

.pg-build.is-exiting {
  opacity: 0;
  transform: scale(0.99);
  transition: opacity 180ms ease, transform 180ms ease;
}

.pg-build__mark {
  display: flex;
  width: 96px;
  height: 96px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    repeating-linear-gradient(128deg, rgb(255 255 255 / 16%) 0 2px, transparent 2px 18px),
    var(--orange);
  box-shadow: 0 20px 44px -16px rgb(232 93 0 / 70%);
  animation: pgPulse 1100ms ease-in-out infinite;
}

.pg-build__dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 9px rgb(26 19 13 / 12%);
}

.pg-build__mark.is-done {
  animation: pgSnap 400ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.pg-build__head {
  margin-top: 30px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.pg-build__sub {
  min-height: 1.4em;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  text-wrap: pretty;
}

.pg-build__track {
  width: 220px;
  height: 9px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--track);
}

.pg-build__fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: var(--orange);
  transition: width 550ms cubic-bezier(0.4, 0, 0.2, 1);
}

.pg-build__steps {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 210px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--muted-soft);
  font-size: 14.5px;
  font-weight: 600;
  list-style: none;
  text-align: left;
}

.pg-build__steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0.4;
  transition: opacity 300ms ease, color 300ms ease;
}

.pg-build__steps li.is-active {
  color: var(--ink);
  font-weight: 800;
  opacity: 1;
}

.pg-build__steps li.is-done {
  color: var(--muted);
  opacity: 1;
}

.pg-build__check {
  display: flex;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted-soft);
  font-size: 11px;
}

.pg-build__steps li.is-active .pg-build__check {
  background: var(--ink);
  color: var(--card);
}

.pg-build__steps li.is-done .pg-build__check {
  background: var(--green);
  color: var(--card);
}

.phone-app {
  background:
    linear-gradient(90deg, rgb(23 17 13 / 4%) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--paper);
  animation: fadeIn 220ms ease both;
}

.app-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 14px;
  padding: calc(24px + env(safe-area-inset-top)) 24px 20px;
  border-bottom: 1px solid rgb(23 17 13 / 12%);
  background: rgb(255 243 223 / 94%);
  backdrop-filter: blur(16px);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 2rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.app-brand .logo-mark {
  width: 48px;
  height: 48px;
}

.app-brand strong {
  display: block;
  padding-top: 0.08em;
  overflow: visible;
  line-height: 1.16;
  white-space: nowrap;
}

.pick-total {
  align-self: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.phase-tabs {
  display: flex;
  grid-column: 1 / -1;
  gap: 34px;
  align-items: end;
  justify-content: flex-start;
}

.phase-tabs button,
.day-tabs button,
.share-tabs button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid rgb(23 17 13 / 12%);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 950;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}

.phase-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--muted-soft);
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 0 0 8px;
  text-transform: uppercase;
}

.phase-tabs button.is-active {
  background: transparent;
  border-color: var(--orange);
  color: var(--ink);
}

.share-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff8ef;
}

.phase-content {
  display: grid;
  gap: 12px;
  padding: 18px 18px 118px;
}

.day-tabs-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 52px;
  gap: 9px;
  align-items: start;
}

.day-tabs {
  display: flex;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.day-tabs::-webkit-scrollbar {
  display: none;
}

.day-tabs button {
  flex: 0 0 auto;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  background: #fff;
  font-size: 1rem;
  white-space: nowrap;
}

.plan-edit-trigger {
  display: grid;
  width: 52px;
  min-height: 52px;
  place-items: center;
  border: 1px solid rgb(23 17 13 / 12%);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1;
}

.plan-edit-sheet {
  position: absolute;
  top: 60px;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  width: min(232px, calc(100vw - 28px));
  padding: 8px;
  border: 1px solid rgb(23 17 13 / 14%);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 40px rgb(84 36 0 / 18%);
  animation: panelIn 170ms ease both;
}

.plan-edit-sheet p,
.plan-edit-sheet strong {
  margin: 0;
  padding: 4px 8px 2px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
}

.plan-edit-sheet strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.plan-edit-sheet button {
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 850;
  text-align: left;
}

.plan-edit-sheet button:hover {
  background: var(--cream);
}

.edit-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.edit-confirm-actions button {
  text-align: center;
}

.edit-confirm-actions .is-danger {
  background: var(--ink);
  color: var(--card);
}

.day-tabs button.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff8ef;
}

.day-tabs span {
  opacity: 0.72;
}

.day-hero-card,
.program-hero,
.share-card,
.route-map-card,
.route-timeline,
.empty-state {
  border: 1px solid rgb(23 17 13 / 12%);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.day-hero-card {
  position: relative;
  overflow: hidden;
  padding: 28px 30px 30px;
  border: 0;
  border-radius: 20px;
  background:
    repeating-linear-gradient(125deg, rgb(255 255 255 / 18%) 0 2px, transparent 2px 28px),
    var(--orange);
  color: #fff8ef;
}

.day-hero-card > * {
  position: relative;
  z-index: 1;
}

.day-hero-card p:first-child,
.program-hero p {
  margin: 0 0 4px;
  font-size: 0.75rem;
  font-weight: 950;
  text-transform: uppercase;
  opacity: 0.86;
}

.day-hero-card h1,
.program-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 0.92;
  text-transform: uppercase;
  text-wrap: balance;
}

.day-hero-card h1 {
  font-size: 4rem;
}

.hero-chips,
.program-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.hero-chips span,
.program-stats span {
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgb(121 55 0 / 32%);
  font-size: 0.78rem;
  font-weight: 950;
}

.discover-slot {
  display: grid;
  gap: 9px;
}

.coach-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  padding: 10px 10px 10px 12px;
  border: 1px solid rgb(23 17 13 / 10%);
  border-radius: 8px;
  background: var(--card);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.35;
  text-wrap: pretty;
}

.coach-line button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.slot-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 0;
}

.slot-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 950;
}

.slot-title span {
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 850;
  text-align: right;
}

.act-list {
  display: grid;
  gap: 9px;
}

.act-card {
  border: 2px solid #ffc39b;
  border-radius: clamp(20px, 4vw, 34px);
  background: rgb(255 255 255 / 92%);
  box-shadow: 0 2px 0 rgb(23 17 13 / 7%);
  transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast);
}

.act-card.is-match {
  border-color: rgb(255 90 0 / 42%);
}

.act-card.is-selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 5px 0 var(--orange);
}

.act-main {
  display: grid;
  grid-template-columns: clamp(68px, 13vw, 124px) minmax(0, 1fr) auto;
  gap: clamp(14px, 2.8vw, 26px);
  width: 100%;
  min-height: clamp(118px, 20vw, 180px);
  padding: clamp(14px, 3vw, 28px);
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.act-image {
  display: block;
  width: clamp(68px, 13vw, 124px);
  height: clamp(68px, 13vw, 124px);
  overflow: hidden;
  align-self: start;
  border-radius: clamp(14px, 2.7vw, 24px);
  background:
    repeating-linear-gradient(125deg, rgb(255 255 255 / 13%) 0 6px, transparent 6px 18px),
    var(--mono, var(--orange));
  box-shadow: inset 0 0 0 1px rgb(23 17 13 / 12%);
}

.act-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.act-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.act-meta {
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.act-copy strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 950;
  line-height: 1.1;
  text-overflow: ellipsis;
  text-wrap: balance;
}

.act-copy > span:not(.act-meta):not(.tag-row) {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 720;
  line-height: 1.25;
  text-wrap: pretty;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.tag-row small {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 920;
}

.pick-pill {
  align-self: end;
  min-width: clamp(58px, 11vw, 116px);
  padding: 10px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 950;
  text-align: center;
}

.act-card.is-selected .pick-pill {
  background: var(--ink);
  color: #fff8ef;
}

.more-button {
  display: block;
  width: auto;
  min-height: 38px;
  margin: -12px clamp(18px, 3vw, 30px) clamp(16px, 2.6vw, 26px) auto;
  padding: 0 0 0 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--orange);
  font-size: 0.88rem;
  font-weight: 950;
}

.act-intel {
  display: grid;
  gap: 12px;
  margin: 0 12px 12px;
  padding: 12px;
  border: 1px solid rgb(23 17 13 / 10%);
  border-radius: 8px;
  background: var(--paper);
  animation: panelIn 180ms ease both;
}

.intel-section {
  display: grid;
  gap: 8px;
}

.act-intel .tag-row {
  margin-top: 0;
}

.pending-copy {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.42;
}

.intel-actions {
  display: grid;
  gap: 7px;
}

.intel-actions a,
.youtube-link {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  padding: 9px;
  border: 1px solid rgb(23 17 13 / 10%);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 900;
  text-decoration: none;
}

.youtube-link span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
}

.youtube-link strong,
.youtube-link small {
  display: block;
}

.youtube-link small {
  color: var(--ink-soft);
  font-size: 0.72rem;
}

.video-embed {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid rgb(23 17 13 / 12%);
  border-radius: 8px;
  background: var(--ink);
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.program-hero {
  padding: 18px;
  background: var(--ink);
  color: #fff8ef;
}

.program-stats span {
  display: grid;
  gap: 1px;
  min-width: 76px;
}

.program-stats strong {
  font-size: 1.05rem;
}

.route-map-card,
.route-timeline,
.share-card,
.empty-state {
  padding: clamp(16px, 3vw, 28px);
}

.route-map {
  display: block;
  width: 100%;
  min-height: clamp(270px, 55vw, 520px);
  margin-top: 12px;
}

.route-map rect {
  fill: #d9efc0;
}

.map-road {
  fill: none;
  stroke: #fff8ef;
  stroke-linecap: round;
  stroke-width: 4;
}

.map-route {
  fill: none;
  stroke: rgb(23 17 13 / 78%);
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  animation: mapRouteDraw 820ms cubic-bezier(0.4, 0, 0.2, 1) 160ms both;
}

.map-stage circle {
  fill: var(--ink);
  stroke: #fff8ef;
  stroke-width: 1.2;
}

.map-stage.is-used circle {
  fill: var(--ink);
  stroke: #fff8ef;
}

.map-visit circle,
.map-stage.is-used .map-visit circle {
  fill: var(--orange);
  stroke: var(--ink);
  stroke-width: 1.1;
}

.map-stage text {
  fill: var(--ink);
  font-size: 3.4px;
  font-weight: 950;
  text-anchor: middle;
}

.map-visit text,
.map-stage .map-visit text {
  fill: #fff8ef;
  font-size: 3.1px;
  font-weight: 950;
  text-anchor: middle;
}

.map-visit-more text {
  font-size: 2.6px;
}

.route-timeline {
  display: grid;
  gap: 10px;
}

.route-node {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgb(23 17 13 / 10%);
  border-radius: 8px;
  background: var(--paper);
}

.route-number {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff8ef;
  font-weight: 950;
}

.route-node time,
.route-node strong {
  display: block;
}

.route-node time {
  color: var(--orange-dark);
  font-size: 0.74rem;
  font-weight: 950;
}

.route-node strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.98rem;
  font-weight: 950;
}

.route-node button {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgb(23 17 13 / 14%);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 950;
}

.route-walk {
  display: grid;
  gap: 2px;
  margin-left: 48px;
  color: var(--ink-soft);
}

.route-walk span {
  width: fit-content;
  padding: 5px 7px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 950;
}

.route-walk small {
  font-size: 0.72rem;
  font-weight: 820;
}

.route-walk .is-ok {
  background: var(--green-soft);
  color: var(--green);
}

.route-walk .is-tight {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.route-walk .is-overlap {
  background: #f9d0d7;
  color: var(--rose);
}

.route-break {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 10px;
  align-items: center;
  margin-left: 48px;
  padding: 10px;
  border: 1px solid rgb(23 17 13 / 10%);
  border-radius: 8px;
  background: #fff;
}

.route-break > span {
  display: grid;
  grid-row: span 2;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  font-size: 1rem;
}

.route-break strong {
  font-size: 0.88rem;
  font-weight: 950;
}

.route-break small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 780;
}

.route-break.bar > span {
  background: var(--green-soft);
}

.share-copy {
  padding: 18px 6px 2px;
}

.share-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.share-card {
  display: grid;
  gap: 12px;
}

.share-card h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 950;
}

.share-card p:not(.intel-label) {
  margin: 0;
  color: var(--ink-soft);
  font-weight: 720;
  line-height: 1.42;
}

.orange-card {
  background: var(--orange);
  color: #fff8ef;
}

.orange-card p {
  color: rgb(255 248 239 / 86%) !important;
}

.sms-preview {
  max-height: 310px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid rgb(23 17 13 / 10%);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.65;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  white-space: pre-wrap;
}

.share-actions {
  display: grid;
}

.pick-preview {
  display: grid;
  gap: 8px;
  max-height: 330px;
  overflow: auto;
}

.pick-preview > div,
.pick-preview > a {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgb(23 17 13 / 10%);
  border-radius: 8px;
  background: var(--paper);
  color: inherit;
  text-decoration: none;
}

.pick-preview time {
  color: var(--orange-dark);
  font-size: 0.78rem;
  font-weight: 950;
}

.pick-preview strong,
.pick-preview small {
  display: block;
}

.pick-preview strong {
  overflow: hidden;
  font-size: 0.95rem;
  font-weight: 950;
  text-overflow: ellipsis;
}

.pick-preview small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 800;
}

.empty-state {
  display: grid;
  gap: 12px;
  justify-items: start;
  padding: 24px 18px;
}

.bottom-cta {
  position: fixed;
  left: 50%;
  width: min(100%, var(--app-max));
  margin: 0 auto;
  padding: 14px 12px 16px;
  transform: translateX(-50%);
}

@media (min-width: 760px) {
  body {
    display: grid;
    place-items: center;
    padding: 24px 0;
  }

  .app-main {
    min-height: auto;
  }

  .welcome-screen,
  .onboarding-screen,
  .building-screen,
  .phone-app {
    min-height: calc(100svh - 48px);
    overflow: hidden;
    border: 1px solid rgb(23 17 13 / 14%);
    border-radius: 8px;
  }

  .phase-content {
    max-height: calc(100svh - 162px);
    overflow-y: auto;
  }

  .bottom-cta {
    position: sticky;
    left: auto;
    width: 100%;
    transform: none;
  }
}

@media (max-width: 380px) {
  .welcome-hero h1 {
    font-size: 4.4rem;
  }

  .onboarding-copy h1,
  .share-copy h1,
  .empty-state h1,
  .building-screen h1 {
    font-size: 3rem;
  }

  .program-hero h1 {
    font-size: 2.7rem;
  }

  .app-top {
    padding-right: 18px;
    padding-left: 18px;
  }

  .app-brand {
    gap: 10px;
    font-size: 1.72rem;
  }

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

  .phase-tabs {
    gap: 22px;
  }

  .phase-tabs button {
    font-size: 0.9rem;
  }

  .day-tabs button {
    padding: 0 18px;
  }

  .day-hero-card {
    padding: 24px 24px 26px;
  }

  .day-hero-card h1 {
    font-size: 3.35rem;
  }

  .act-main {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .act-image {
    width: 56px;
    height: 56px;
  }

  .pick-pill {
    grid-column: 2;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pg-build,
  .pg-build__mark,
  .pg-build__fill,
  .map-route {
    animation: none !important;
    transition: none !important;
  }

  .map-route {
    stroke-dashoffset: 0;
  }

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

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

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

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pgPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.12);
  }
}

@keyframes pgSnap {
  from {
    transform: scale(1.18);
  }
  to {
    transform: scale(1);
  }
}

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

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

@keyframes buildTilt {
  from {
    transform: rotate(-5deg);
  }
  to {
    transform: rotate(5deg);
  }
}

@keyframes barMove {
  from {
    transform: translateX(-38%);
  }
  to {
    transform: translateX(108%);
  }
}

@keyframes routeDot {
  from {
    transform: translateY(7px) scale(0.92);
  }
  to {
    transform: translateY(-7px) scale(1.08);
  }
}
