:root {
  color-scheme: light;
  --paper: #f1ead9;
  --paper-deep: #ddd0b9;
  --ink: #171715;
  --muted: #6f695e;
  --cobalt: #3156d3;
  --persimmon: #ef583f;
  --marigold: #efc64a;
  --cream: #fffaf0;
  --line: rgba(23, 23, 21, 0.24);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --safe-bottom: max(16px, env(safe-area-inset-bottom));
  --visual-viewport-height: 100svh;
  --visual-viewport-top: 0px;
  font-family: "Avenir Next", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html {
  background: #0d0d0c;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: auto;
}

body {
  margin: 0;
  max-width: 100%;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(255, 255, 255, 0.07) 50%, transparent 50.2%),
    #0d0d0c;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "JAYDEN / PERSONAL MOVE";
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.035);
  font: 900 clamp(70px, 13vw, 190px) / 0.82 Impact, sans-serif;
  letter-spacing: -0.07em;
  text-align: center;
  transform: rotate(-8deg);
}

button,
textarea {
  color: inherit;
  font: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
}

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

svg {
  display: block;
}

button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

h1,
h2,
h3,
p,
blockquote {
  margin: 0;
}

#app {
  position: relative;
  width: min(100%, 430px);
  min-height: 100svh;
  max-width: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.55);
  isolation: isolate;
}

#app::before {
  position: fixed;
  top: 0;
  bottom: 0;
  width: min(100%, 430px);
  z-index: 90;
  pointer-events: none;
  content: "";
  opacity: 0.17;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.92' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.16'/%3E%3C/svg%3E");
}

.screen {
  position: relative;
  width: 100%;
  min-height: 100svh;
  padding: 18px 20px calc(128px + var(--safe-bottom));
  overflow: hidden;
  background: var(--paper);
}

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

.masthead {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  min-height: 44px;
  text-align: left;
}

.wordmark b,
.onboarding-mark b,
.index-layer header b {
  display: block;
  font: 900 21px / 0.9 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.08em;
}

.wordmark span,
.onboarding-mark span,
.index-layer header span {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.masthead-actions {
  display: flex;
  align-items: flex-start;
  gap: 13px;
}

.journey-link {
  min-height: 44px;
  text-align: right;
}

.journey-link span,
.journey-link b {
  display: block;
}

.journey-link span {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.journey-link b {
  margin-top: 3px;
  font: 800 15px / 1 "Avenir Next Condensed", "Arial Narrow", sans-serif;
}

.index-button {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
  gap: 7px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.index-button i {
  display: grid;
  width: 18px;
  height: 18px;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background:
    linear-gradient(var(--ink), var(--ink)) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 0 / 7px 7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 0 100% / 7px 7px no-repeat,
    linear-gradient(var(--ink), var(--ink)) 100% 100% / 7px 7px no-repeat;
}

.back-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: -8px 0 0 -10px;
}

.masthead-dark {
  color: var(--paper);
}

.masthead-dark .index-button i {
  background:
    linear-gradient(var(--paper), var(--paper)) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 0 / 7px 7px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 0 100% / 7px 7px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 100% 100% / 7px 7px no-repeat;
}

.issue-line {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 9px;
  border-top: 1px solid var(--ink);
  font: 800 10px / 1 "Avenir Next Condensed", "Arial Narrow", sans-serif;
  letter-spacing: 0.1em;
}

.cover-title {
  position: relative;
  z-index: 4;
  margin-top: 15px;
}

.cover-title > span,
.section-kicker {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cover-title h1 {
  max-width: 350px;
  font: 900 clamp(46px, 13.2vw, 57px) / 0.91 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.085em;
}

.cover-title h1.is-long {
  max-width: 100%;
  font-size: clamp(36px, 10.5vw, 46px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

.cover-title h1.is-compact {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(29px, 8.5vw, 37px);
  line-height: 1;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.cover-art {
  position: relative;
  height: 397px;
  margin: -4px -20px 0;
  overflow: hidden;
  background: #d8cbb4;
}

.cover-art::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  height: 90px;
  content: "";
  pointer-events: none;
  background: linear-gradient(transparent, rgba(23, 23, 21, 0.34));
}

.cover-art img {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 43%;
  filter: saturate(0.95) contrast(1.03);
}

.cover-type {
  position: absolute;
  top: 88px;
  left: -12px;
  z-index: 1;
  color: var(--cobalt);
  font: 900 116px / 0.72 Impact, "Arial Black", sans-serif;
  letter-spacing: -0.08em;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.duration-stamp {
  position: absolute;
  z-index: 6;
  bottom: 18px;
  left: 21px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.duration-stamp strong {
  font: 900 86px / 0.72 Impact, "Arial Black", sans-serif;
  letter-spacing: -0.06em;
}

.duration-stamp span {
  margin-bottom: -2px;
  font: 900 17px / 1 "Arial Black", sans-serif;
  letter-spacing: 0.05em;
}

.edition-stamp {
  position: absolute;
  top: 16px;
  right: 17px;
  z-index: 7;
  padding: 7px 8px 6px;
  color: var(--ink);
  background: var(--marigold);
  font: 900 9px / 1.05 "Arial Black", sans-serif;
  letter-spacing: 0.08em;
  transform: rotate(3deg);
}

.jay-trace {
  overflow: visible;
  pointer-events: none;
}

.jay-trace path {
  fill: none;
  stroke: var(--trace-color);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.jay-trace .trace-arrow {
  stroke-width: 3;
}

.cover-trace {
  position: absolute;
  right: -17px;
  bottom: 31px;
  z-index: 5;
  width: 230px;
  color: var(--persimmon);
  transform: rotate(-12deg);
}

.coach-note {
  position: relative;
  z-index: 7;
  width: calc(100% - 22px);
  margin: -11px auto 0;
  padding: 17px 18px 16px;
  color: var(--cream);
  background: var(--cobalt);
  transform: rotate(-1.3deg);
}

.coach-note::before {
  position: absolute;
  top: -7px;
  right: 24px;
  width: 48px;
  height: 14px;
  content: "";
  background: rgba(239, 198, 74, 0.72);
  transform: rotate(4deg);
}

.note-adjusted {
  background: var(--persimmon);
}

.note-label {
  display: block;
  margin-bottom: 7px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.coach-note p {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.48;
}

.inline-action {
  min-height: 40px;
  margin-top: 8px;
  color: inherit;
  border-bottom: 1px solid currentColor;
  font-size: 12px;
  font-weight: 700;
}

.move-sequence {
  margin-top: 29px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.move-sequence span {
  display: grid;
  min-height: 52px;
  grid-template-columns: 39px 1fr auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.move-sequence span:last-child {
  border: 0;
}

.move-sequence i,
.move-sequence em {
  font-style: normal;
  font: 800 13px / 1 "Avenir Next Condensed", "Arial Narrow", sans-serif;
}

.move-sequence i {
  color: var(--cobalt);
}

.move-sequence b {
  font-size: 16px;
}

.action-stripe {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding: 0 18px;
  overflow: hidden;
  border: 1px solid var(--ink);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.02em;
  text-align: left;
}

.action-stripe::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(-105%);
  transition: transform 220ms var(--ease);
}

.action-stripe:active::before {
  transform: translateX(0);
}

.action-primary {
  color: var(--cream);
  border-color: var(--cobalt);
  background: var(--cobalt);
}

.action-dark {
  color: var(--paper);
  border-color: var(--ink);
  background: var(--ink);
}

.action-light {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--paper);
}

.meal-ribbon,
.meal-after {
  display: grid;
  width: 100%;
  min-height: 86px;
  grid-template-columns: 1fr 26px;
  align-items: center;
  margin-top: 14px;
  padding: 12px 15px;
  color: var(--ink);
  background: var(--marigold);
  text-align: left;
}

.meal-ribbon span,
.meal-ribbon b,
.meal-after span,
.meal-after b {
  grid-column: 1;
}

.meal-ribbon span,
.meal-after span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meal-ribbon b,
.meal-after b {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.25;
}

.meal-ribbon svg,
.meal-after svg {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.mini-story {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0 18px;
  margin-top: 42px;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
}

.story-number {
  grid-row: 1 / span 2;
  color: var(--persimmon);
  font: 900 74px / 0.85 Impact, sans-serif;
}

.mini-story p {
  font-size: 13px;
  line-height: 1.55;
}

.mini-story p b {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.mini-story button {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.mini-story button svg {
  width: 17px;
}

.voice-dock-wrap {
  position: fixed;
  z-index: 30;
  bottom: calc(20px + var(--safe-bottom));
  display: flex;
  width: 60px;
  align-items: center;
  gap: 8px;
  transition: width 180ms var(--ease);
}

.voice-dock-wrap.side-left { left: 12px; }
.voice-dock-wrap.side-right { right: 12px; flex-direction: row-reverse; }
.voice-dock-wrap.is-expanded { width: min(390px, calc(100vw - 24px)); }

.voice-launcher {
  display: grid;
  width: 60px;
  height: 60px;
  flex: 0 0 60px;
  grid-template-rows: 1fr 10px;
  place-items: center;
  padding: 9px 0 5px;
  color: var(--cream);
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--cobalt);
  box-shadow: 0 9px 25px rgba(17, 23, 50, 0.28);
  touch-action: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.voice-launcher svg { width: 21px; }
.voice-launcher span { font: 900 9px/1 sans-serif; letter-spacing: 2px; transform: rotate(90deg); }
.voice-launcher:active { background: var(--persimmon); transform: scale(0.96); }

.voice-launcher.is-listening {
  background: var(--persimmon);
  box-shadow: 0 0 0 9px rgba(239, 90, 61, 0.16), 0 0 0 18px rgba(239, 90, 61, 0.08);
  transform: scale(0.94);
  animation: voicePulse 540ms ease-in-out infinite alternate;
}

.voice-drawer {
  position: relative;
  min-width: 0;
  flex: 1;
  animation: voiceDrawerIn 180ms var(--ease) both;
}

@keyframes voiceDrawerIn {
  from { opacity: 0; transform: translateX(10px) scale(0.96); }
}

.side-left .voice-drawer { transform-origin: left center; }
.side-right .voice-drawer { transform-origin: right center; }

.voice-collapse {
  position: absolute;
  z-index: 2;
  top: -11px;
  right: -7px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: var(--paper);
  border: 1px solid var(--paper);
  border-radius: 50%;
  background: var(--ink);
  font-size: 17px;
}

.voice-dock {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 80px;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  color: var(--cream);
  background: var(--cobalt);
  box-shadow: 0 12px 32px rgba(17, 23, 50, 0.27);
  pointer-events: auto;
  text-align: left;
  touch-action: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  transition: background 120ms ease, transform 120ms ease;
}

.voice-text-trigger {
  display: block;
  min-height: 34px;
  margin: 5px 54px 0 0;
  color: var(--paper);
  font-size: 11px;
  font-weight: 800;
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.voice-dock:active,
.voice-dock.is-listening {
  background: var(--persimmon);
  box-shadow: 0 5px 14px rgba(17, 23, 50, 0.2), inset 0 0 0 2px rgba(255, 255, 255, 0.32);
  transform: translateY(3px) scale(0.985);
}

.voice-launcher,
.voice-launcher *,
.voice-dock,
.voice-dock *,
[data-action="hold-adjustment"],
[data-action="hold-adjustment"] * {
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
}

.voice-dock.is-listening .voice-mark {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.1), 0 0 0 16px rgba(255, 255, 255, 0.05);
}

.voice-dock.is-listening .voice-mark i {
  animation: voiceWave 420ms ease-in-out infinite alternate;
}

[data-action="hold-adjustment"].is-listening {
  color: var(--paper);
  background: var(--persimmon);
  transform: translateY(2px) scale(0.99);
}

[data-action="hold-adjustment"].is-listening svg {
  animation: voicePulse 720ms ease-in-out infinite alternate;
}

.voice-mark {
  position: relative;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
}

.voice-mark svg {
  width: 20px;
}

.voice-mark i {
  position: absolute;
  right: 6px;
  bottom: 9px;
  width: 2px;
  height: 8px;
  background: var(--marigold);
}

.voice-mark i:nth-of-type(2) {
  right: 11px;
  bottom: 7px;
  height: 13px;
}

.voice-mark i:nth-of-type(3) {
  right: 16px;
  bottom: 10px;
  height: 6px;
}

.voice-copy b,
.voice-copy small {
  display: block;
}

.voice-copy b {
  font-size: 15px;
  font-weight: 900;
}

.voice-copy small {
  margin-top: 4px;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hold-label {
  padding: 5px 6px 4px;
  color: var(--cobalt);
  background: var(--paper);
  font: 900 8px / 1 "Arial Black", sans-serif;
  letter-spacing: 0.06em;
}

.voice-layer,
.index-layer,
.rest-layer,
.replacement-layer {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: min(100%, 430px);
  min-height: 100svh;
  margin: 0 auto;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.voice-layer {
  padding: calc(26px + env(safe-area-inset-top)) 24px calc(28px + var(--safe-bottom));
}

.layer-close {
  position: absolute;
  top: calc(17px + env(safe-area-inset-top));
  right: 17px;
  z-index: 5;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--paper);
  border: 1px solid currentColor;
  border-radius: 50%;
}

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

.voice-listening {
  color: var(--paper);
  background: var(--cobalt);
}

.voice-listening::before {
  position: absolute;
  right: -100px;
  bottom: 180px;
  width: 330px;
  height: 330px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  box-shadow: 0 0 0 54px rgba(255, 255, 255, 0.06), 0 0 0 108px rgba(255, 255, 255, 0.035);
}

.voice-status {
  margin-top: 82px;
}

.voice-status span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.voice-status b {
  display: block;
  margin-top: 9px;
  font: 900 65px / 0.9 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.08em;
}

.waveform {
  display: flex;
  height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin: 35px 0;
}

.waveform i {
  display: block;
  width: 3px;
  height: calc(12px + (var(--n) % 7) * 8px);
  background: currentColor;
  transform-origin: center;
  animation: voiceWave 750ms ease-in-out infinite alternate;
  animation-delay: calc(var(--n) * -38ms);
}

.live-transcript {
  position: relative;
  z-index: 2;
  max-width: 330px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -0.04em;
}

.listening-trace {
  position: absolute;
  right: -15px;
  bottom: 180px;
  width: 280px;
  opacity: 0.85;
  transform: rotate(13deg);
}

.listening-footer {
  position: absolute;
  right: 24px;
  bottom: calc(24px + var(--safe-bottom));
  left: 24px;
  z-index: 3;
}

.release-button {
  width: 100%;
  min-height: 64px;
  color: var(--cobalt);
  background: var(--paper);
  font-size: 15px;
  font-weight: 900;
}

.text-fallback {
  display: block;
  min-height: 44px;
  margin: 10px auto 0;
  color: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.thinking-layer {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--marigold);
}

.thinking-copy {
  margin-top: 66px;
}

.thinking-copy span {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.thinking-copy h2 {
  max-width: 355px;
  margin-top: 11px;
  font: 900 48px / 0.96 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.075em;
}

.processing-receipt {
  margin-top: 24px;
  padding: 13px 15px 15px;
  border: 1px solid currentColor;
  background: rgba(241, 234, 217, 0.32);
}

.processing-receipt small {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.processing-receipt p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 7px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.processing-track {
  margin-top: 24px;
  list-style: none;
}

.processing-step {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-bottom: 16px;
  opacity: 0.42;
}

.processing-step:not(:last-child)::after {
  position: absolute;
  top: 30px;
  bottom: 0;
  left: 16px;
  width: 1px;
  content: "";
  background: currentColor;
  opacity: 0.45;
}

.processing-step.is-active,
.processing-step.is-complete {
  opacity: 1;
}

.processing-node {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: var(--marigold);
  font: 900 11px / 1 "Arial Black", sans-serif;
  font-style: normal;
}

.processing-step.is-complete .processing-node {
  color: var(--marigold);
  background: var(--ink);
}

.processing-step.is-active .processing-node::after {
  position: absolute;
  inset: -7px;
  content: "";
  border: 1px solid currentColor;
  border-radius: 50%;
  animation: processingPulse 900ms ease-out infinite;
}

.processing-step span {
  padding-top: 1px;
}

.processing-step b,
.processing-step small {
  display: block;
}

.processing-step b {
  font-size: 14px;
  line-height: 1.25;
}

.processing-step small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.35;
}

.processing-scan {
  position: relative;
  height: 4px;
  overflow: hidden;
  background: rgba(23, 23, 21, 0.22);
}

.processing-scan::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  content: "";
  background: var(--ink);
  animation: processingScan 1.1s linear infinite;
}

.trace-knot {
  width: 100%;
  margin: 54px 0 20px;
  transform: rotate(-8deg) scale(1.1);
}

.thinking-layer .waveform {
  height: 102px;
  margin-top: 44px;
}

.intent-tape span {
  display: inline-flex;
  min-height: 39px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid currentColor;
  font-size: 13px;
  font-weight: 800;
}

.thinking-note {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid currentColor;
  font-size: 14px;
  line-height: 1.55;
}

.clarify-layer,
.proposal-layer,
.text-layer {
  color: var(--ink);
  background: var(--paper);
}

.clarify-layer .section-kicker,
.proposal-heading,
.text-layer > .section-kicker {
  margin-top: 74px;
}

.clarify-layer h2,
.proposal-heading h2,
.text-layer h2 {
  max-width: 360px;
  font: 900 42px / 1 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.07em;
}

.clarify-why {
  margin-top: 18px;
  padding-left: 14px;
  border-left: 4px solid var(--cobalt);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.safety-options {
  margin-top: 42px;
  border-top: 1px solid var(--ink);
}

.safety-options button {
  display: grid;
  width: 100%;
  min-height: 96px;
  grid-template-columns: 34px 1fr 26px;
  align-content: center;
  align-items: center;
  gap: 3px 8px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
}

.safety-options button > span {
  grid-row: 1 / span 2;
  color: var(--cobalt);
  font: 900 28px / 1 Impact, sans-serif;
}

.safety-options button b {
  font-size: 17px;
}

.safety-options button small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
}

.safety-options button svg {
  grid-row: 1 / span 2;
  grid-column: 3;
}

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

.proposal-layer {
  padding-bottom: calc(34px + var(--safe-bottom));
}

.intent-tape {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 23px;
}

.intent-tape span:nth-child(3) {
  color: var(--cream);
  border-color: var(--persimmon);
  background: var(--persimmon);
}

.plan-rewrite {
  position: relative;
  margin-top: 27px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.old-plan,
.new-plan {
  padding: 16px 12px;
}

.old-plan {
  color: var(--muted);
  background: rgba(23, 23, 21, 0.05);
}

.new-plan {
  color: var(--cream);
  background: var(--cobalt);
}

.old-plan span,
.old-plan strong,
.old-plan del,
.new-plan span,
.new-plan strong,
.new-plan b {
  display: block;
}

.old-plan span,
.new-plan span {
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.old-plan strong,
.new-plan strong {
  font-size: 16px;
}

.old-plan del,
.new-plan b {
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.4;
}

.rewrite-arrow {
  position: absolute;
  top: calc(50% - 17px);
  right: 16px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--marigold);
  transform: rotate(90deg);
}

.rewrite-arrow svg {
  width: 18px;
}

.execution-notes {
  margin-top: 22px;
}

.execution-notes p {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.4;
}

.execution-notes i {
  color: var(--cobalt);
  font-style: normal;
  font-weight: 900;
}

.execution-notes b {
  display: block;
  margin-bottom: 2px;
}

.quiet-link {
  display: block;
  min-height: 44px;
  margin: 8px auto 0;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-layer form {
  margin-top: 38px;
}

.text-layer label {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
}

.text-layer textarea {
  width: 100%;
  min-height: 164px;
  resize: vertical;
  padding: 17px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--cream);
  font-size: 17px;
  font-weight: 650;
  line-height: 1.55;
}

.safety-layer {
  color: var(--ink);
  background: var(--persimmon);
}

.safety-mark {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  margin-top: 78px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  font: 900 66px / 1 Impact, sans-serif;
}

.safety-layer .section-kicker {
  margin-top: 36px;
}

.safety-layer h2 {
  font: 900 46px / 0.96 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.075em;
}

.safety-layer > p:not(.section-kicker) {
  margin-top: 22px;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.6;
}

.safety-layer .action-stripe {
  margin-top: 42px;
}

.workout-screen {
  padding-bottom: calc(28px + var(--safe-bottom));
  color: var(--paper);
  background: var(--ink);
}

.workout-progress {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.workout-progress span,
.workout-progress button {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.workout-progress i {
  height: 3px;
  overflow: hidden;
  background: rgba(241, 234, 217, 0.24);
}

.workout-progress b {
  display: block;
  height: 100%;
  background: var(--persimmon);
  transition: width 360ms var(--ease);
}

.exercise-stage {
  position: relative;
  height: 414px;
  margin: 2px -20px 0;
  overflow: hidden;
  background: #10100f;
}

.exercise-stage::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 80px;
  content: "";
  background: linear-gradient(transparent, var(--ink));
}

.exercise-stage img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 54%;
}

.rep-ghost {
  position: absolute;
  top: 24px;
  right: -8px;
  z-index: 1;
  color: var(--cobalt);
  font: 900 178px / 0.75 Impact, sans-serif;
  letter-spacing: -0.08em;
}

.form-trace {
  position: absolute;
  right: -22px;
  bottom: 55px;
  z-index: 4;
  width: 245px;
  transform: rotate(-17deg);
}

.form-note {
  position: absolute;
  right: 22px;
  bottom: 79px;
  z-index: 5;
  padding: 5px 7px;
  color: var(--ink);
  background: var(--persimmon);
  font-size: 9px;
  font-weight: 900;
  transform: rotate(-3deg);
}

.workout-clock {
  position: absolute;
  bottom: 24px;
  left: 20px;
  z-index: 6;
  width: 166px;
  padding: 13px 14px 12px;
  color: var(--paper);
  border: 1px solid rgba(241, 234, 217, 0.72);
  background: rgba(23, 23, 21, 0.88);
  backdrop-filter: blur(7px);
}

.workout-clock.is-running {
  border-color: var(--persimmon);
  box-shadow: 7px 7px 0 rgba(239, 88, 63, 0.82);
  animation: workoutClockPulse 1s ease-in-out infinite alternate;
}

.workout-clock.is-paused {
  color: var(--ink);
  border-color: var(--marigold);
  background: var(--marigold);
}

.workout-clock > small {
  display: block;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.workout-clock > div {
  display: flex;
  align-items: end;
  gap: 6px;
  margin-top: 5px;
}

.workout-clock strong {
  font: 900 70px / 0.78 Impact, sans-serif;
  letter-spacing: -0.055em;
}

.workout-clock > div span {
  padding-bottom: 4px;
  font-size: 9px;
  font-weight: 900;
}

.workout-clock p {
  margin-top: 9px;
  font-size: 9px;
  font-weight: 800;
}

.workout-clock > i {
  display: block;
  height: 4px;
  margin-top: 8px;
  overflow: hidden;
  background: rgba(241, 234, 217, 0.22);
}

.workout-clock > i b {
  display: block;
  height: 100%;
  background: var(--persimmon);
  transition: width 200ms linear;
}

.workout-clock.is-paused > i {
  background: rgba(23, 23, 21, 0.18);
}

.workout-clock.is-paused > i b {
  background: var(--ink);
}

.exercise-copy {
  position: relative;
  z-index: 5;
  margin-top: -15px;
}

.exercise-copy > div {
  display: flex;
  justify-content: space-between;
  color: var(--persimmon);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.exercise-copy h1 {
  margin-top: 4px;
  font: 900 44px / 0.98 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.07em;
}

.exercise-copy p {
  margin-top: 9px;
  color: rgba(241, 234, 217, 0.68);
  font-size: 14px;
}

.workout-complete {
  color: var(--ink);
  border-color: var(--persimmon);
  background: var(--persimmon);
}

.workout-audio {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(118px, 1.25fr) auto;
  align-items: stretch;
  margin-top: 16px;
  color: var(--paper);
  border: 1px solid rgba(241, 234, 217, 0.34);
}

.workout-audio > div {
  display: grid;
  align-content: center;
  padding: 8px 9px;
}

.workout-audio > div span,
.workout-audio > div b {
  display: block;
}

.workout-audio > div span {
  color: var(--persimmon);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.workout-audio > div b {
  margin-top: 3px;
  font-size: 9px;
}

.workout-audio label {
  min-width: 0;
  border-left: 1px solid rgba(241, 234, 217, 0.34);
}

.workout-audio select {
  min-height: 50px;
  padding: 8px;
  color: var(--paper);
  border: 0;
  background: var(--ink);
  font-size: 16px;
  font-weight: 850;
}

.workout-audio > button {
  min-width: 72px;
  padding: 0 8px;
  color: var(--ink);
  background: var(--marigold);
  font-size: 9px;
  font-weight: 900;
}

.workout-pause {
  width: 100%;
  min-height: 44px;
  color: var(--paper);
  border: 1px solid rgba(241, 234, 217, 0.4);
  font-size: 11px;
  font-weight: 900;
}

.workout-auto-note {
  margin-top: 8px;
  color: rgba(241, 234, 217, 0.56);
  font-size: 9px;
  line-height: 1.45;
  text-align: center;
}

.workout-voice {
  display: grid;
  width: 100%;
  min-height: 62px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  margin-top: 10px;
  padding: 10px 0;
  color: var(--paper);
  border-top: 1px solid rgba(241, 234, 217, 0.27);
  text-align: left;
}

.workout-voice > svg {
  width: 21px;
}

.workout-voice b,
.workout-voice small {
  display: block;
}

.workout-voice b {
  font-size: 13px;
}

.workout-voice small {
  margin-top: 3px;
  color: rgba(241, 234, 217, 0.55);
  font-size: 10px;
}

.rest-layer {
  z-index: 80;
  padding: calc(68px + env(safe-area-inset-top)) 24px calc(28px + var(--safe-bottom));
  color: var(--ink);
  background: var(--marigold);
}

.rest-layer > p {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.rest-layer > strong {
  display: inline-block;
  margin-top: 36px;
  font: 900 196px / 0.72 Impact, sans-serif;
  letter-spacing: -0.07em;
}

.rest-layer > span {
  font-size: 16px;
  font-weight: 900;
}

.rest-layer h2 {
  margin-top: 54px;
  font: 900 44px / 0.98 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.07em;
}

.rest-trace {
  width: 94%;
  margin-top: -10px;
  transform: rotate(-7deg);
}

.rest-actions {
  position: absolute;
  right: 24px;
  bottom: calc(22px + var(--safe-bottom));
  left: 24px;
}

.rest-actions .action-stripe {
  width: 100%;
}

.rest-actions .quiet-link {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
}

.workout-audio-rest {
  position: absolute;
  right: 24px;
  bottom: calc(150px + var(--safe-bottom));
  left: 24px;
  color: var(--ink);
  border-color: rgba(23, 23, 21, 0.4);
}

.workout-audio-rest label {
  border-left-color: rgba(23, 23, 21, 0.4);
}

.workout-audio-rest select {
  color: var(--ink);
  background: var(--marigold);
}

.workout-audio-rest > div span {
  color: var(--cobalt);
}

@keyframes workoutClockPulse {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

.replacement-layer {
  z-index: 80;
  padding: calc(72px + env(safe-area-inset-top)) 24px calc(28px + var(--safe-bottom));
  color: var(--paper);
  background: var(--cobalt);
}

.replacement-layer blockquote {
  max-width: 350px;
  margin-top: 25px;
  font: 900 38px / 1.08 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.06em;
}

.swap-line {
  display: grid;
  min-height: 110px;
  grid-template-columns: 1fr 38px 1fr;
  align-items: center;
  margin-top: 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  font-size: 18px;
}

.swap-line strong {
  color: var(--marigold);
  font-size: 22px;
}

.replacement-layer > p:not(.section-kicker) {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.6;
}

.replacement-layer .action-stripe {
  position: absolute;
  right: 24px;
  bottom: calc(24px + var(--safe-bottom));
  left: 24px;
  width: auto;
}

.result-screen {
  background: var(--paper);
}

.result-hero {
  position: relative;
  min-height: 415px;
  margin: 8px -20px 0;
  padding: 45px 21px;
  overflow: hidden;
  color: var(--paper);
  background: var(--persimmon);
}

.result-hero::before,
.result-hero::after {
  position: absolute;
  width: 280px;
  height: 280px;
  content: "";
  border: 1px solid rgba(241, 234, 217, 0.42);
  border-radius: 50%;
}

.result-hero::before {
  top: -130px;
  right: -110px;
}

.result-hero::after {
  right: 50px;
  bottom: -245px;
  box-shadow: 0 0 0 42px rgba(241, 234, 217, 0.11), 0 0 0 84px rgba(241, 234, 217, 0.07);
}

.result-hero > p {
  position: relative;
  z-index: 2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.result-hero h1 {
  position: relative;
  z-index: 2;
  margin-top: 15px;
  font: 900 68px / 0.88 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.09em;
}

.burst {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 3;
  font-size: 54px;
  animation: stamp 480ms var(--ease) both;
}

.result-time {
  position: absolute;
  right: 23px;
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.result-time strong {
  font: 900 102px / 0.7 Impact, sans-serif;
}

.result-time span {
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
}

.result-trace {
  position: absolute;
  bottom: 70px;
  left: -34px;
  z-index: 2;
  width: 270px;
  transform: rotate(15deg);
}

.result-story {
  margin-top: -13px;
  padding: 20px 17px 17px;
  color: var(--ink);
  background: var(--marigold);
  transform: rotate(1deg);
}

.result-story p {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.5;
}

.feedback-block {
  margin-top: 39px;
}

.feedback-block h2 {
  font: 900 31px / 1 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.055em;
}

.effort-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 20px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.effort-scale button {
  min-height: 58px;
  border-right: 1px solid var(--ink);
  font: 900 25px / 1 Impact, sans-serif;
}

.effort-scale button:last-child {
  border: 0;
}

.effort-scale .is-active {
  color: var(--paper);
  background: var(--cobalt);
}

.spoken-feedback {
  display: grid;
  grid-template-columns: 43px 1fr;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
  padding: 12px 14px;
  color: var(--paper);
  background: var(--ink);
}

.spoken-feedback > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.spoken-feedback svg {
  width: 17px;
}

.spoken-feedback p {
  font-size: 13px;
  font-weight: 700;
}

.saved-memory,
.meal-logged {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 16px;
  color: var(--paper);
  background: var(--cobalt);
}

.saved-memory > svg,
.meal-logged > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.saved-memory p,
.meal-logged p {
  font-size: 12px;
  line-height: 1.45;
}

.saved-memory b,
.meal-logged b {
  display: block;
  font-size: 14px;
}

.meal-after {
  margin-top: 35px;
}

.food-screen {
  padding-bottom: calc(136px + var(--safe-bottom));
}

.food-cover {
  position: relative;
  height: 460px;
  margin: 8px -20px 0;
  overflow: hidden;
  background: var(--marigold);
}

.food-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(23, 23, 21, 0.05) 35%, rgba(23, 23, 21, 0.68));
}

.food-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% center;
}

.food-label {
  position: absolute;
  top: 18px;
  left: 20px;
  z-index: 2;
  padding: 6px 8px;
  color: var(--paper);
  background: var(--cobalt);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
}

.food-cover h1 {
  position: absolute;
  bottom: 24px;
  left: 20px;
  z-index: 2;
  max-width: 290px;
  color: var(--paper);
  white-space: pre-line;
  font: 900 57px / 0.9 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.08em;
}

.food-stamp {
  position: absolute;
  right: 17px;
  bottom: 23px;
  z-index: 3;
  padding: 8px;
  color: var(--ink);
  background: var(--marigold);
  font: 900 10px / 1 "Arial Black", sans-serif;
  letter-spacing: 0.04em;
  transform: rotate(5deg);
}

.food-intro {
  margin: -7px 12px 0;
  position: relative;
  z-index: 4;
  padding: 17px;
  color: var(--paper);
  background: var(--cobalt);
  transform: rotate(-1deg);
}

.food-intro p {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.saved-guidance-library {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--ink);
}

.saved-guidance-library > header h2 {
  margin-top: 5px;
  font-size: 26px;
  letter-spacing: -0.05em;
}

.saved-guidance-library > header > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.saved-guidance-library > div {
  margin-top: 22px;
  border-top: 1px solid var(--ink);
}

.saved-guidance-library article {
  padding: 20px 0;
  border-bottom: 1px solid var(--ink);
}

.saved-guidance-library article > span {
  color: var(--persimmon);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.saved-guidance-library article > h3 {
  margin-top: 5px;
  font-size: 19px;
}

.saved-guidance-library article > blockquote {
  margin-top: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--marigold);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.saved-guidance-library article > p,
.saved-guidance-library article > ul {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.saved-guidance-library article > ul {
  padding-left: 18px;
}

.saved-guidance-library .guidance-warnings {
  color: var(--ink);
  border-top-color: var(--line);
}

.saved-guidance-library .guidance-warnings p {
  border-bottom-color: var(--line);
}

.eating-order {
  margin-top: 39px;
}

.eating-order ol,
.next-phase ol {
  padding: 0;
  margin: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.eating-order li,
.next-phase li {
  display: grid;
  grid-template-columns: 46px 1fr;
  align-items: center;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
}

.eating-order li i,
.next-phase li i {
  color: var(--persimmon);
  font-style: normal;
  font: 900 25px / 1 Impact, sans-serif;
}

.eating-order li b,
.eating-order li span {
  display: block;
}

.eating-order li b {
  margin-bottom: 2px;
  font-size: 14px;
}

.eating-order li span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.estimate-note {
  margin-top: 20px;
  padding: 15px;
  border: 1px solid var(--ink);
}

.estimate-note span {
  display: inline-block;
  margin-bottom: 5px;
  padding: 3px 5px;
  color: var(--paper);
  background: var(--ink);
  font-size: 9px;
  font-weight: 900;
}

.estimate-note p {
  font-size: 12px;
  line-height: 1.5;
}

.journey-heading {
  position: relative;
  margin-top: 27px;
}

.journey-heading h1 {
  max-width: 355px;
  font: 900 51px / 0.92 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.08em;
}

.journey-heading > span {
  position: absolute;
  right: 0;
  bottom: 3px;
  color: var(--cobalt);
  font: 900 25px / 1 Impact, sans-serif;
}

.calendar-controls {
  display: grid;
  min-height: 50px;
  grid-template-columns: 42px 1fr 42px auto;
  align-items: center;
  gap: 6px;
  margin-top: 24px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.calendar-controls button {
  display: grid;
  min-height: 40px;
  place-items: center;
  font-size: 10px;
  font-weight: 900;
}

.calendar-controls button:last-child { padding-inline: 8px; color: var(--cobalt); }
.calendar-controls button:disabled { opacity: 0.28; }
.calendar-controls svg { width: 18px; }
.calendar-controls b { text-align: center; font-size: 14px; }

.workout-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 12px -4px 26px;
}

.calendar-weekday {
  padding: 8px 0;
  color: var(--muted);
  font: 900 9px/1 "Avenir Next Condensed", sans-serif;
  text-align: center;
}

.calendar-day {
  position: relative;
  display: grid;
  min-width: 0;
  height: 54px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  border-top: 1px solid var(--line);
  background: transparent;
  font: 800 11px/1 "Avenir Next Condensed", sans-serif;
}

.calendar-day.outside { opacity: 0.24; }
.calendar-day.today b { display: grid; width: 23px; height: 23px; place-items: center; color: var(--paper); border-radius: 50%; background: var(--ink); }
.calendar-day.has-workout { color: var(--cobalt); background: rgba(49, 83, 231, 0.08); }
.calendar-day.has-workout i { position: absolute; right: 5px; bottom: 5px; width: 6px; height: 6px; border-radius: 50%; background: var(--persimmon); }
.calendar-day span { font-size: 8px; font-weight: 900; }

.today-memory {
  position: relative;
  margin: -5px -20px 0;
  padding: 31px 22px;
  color: var(--paper);
  background: var(--cobalt);
}

.memory-date {
  display: inline-block;
  padding: 5px 7px;
  color: var(--ink);
  background: var(--marigold);
  font-size: 9px;
  font-weight: 900;
}

.today-memory h2 {
  margin-top: 13px;
  font: 900 43px / 0.95 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.07em;
}

.today-memory > div {
  margin-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.today-memory p {
  display: grid;
  min-height: 45px;
  grid-template-columns: 28px 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.today-memory svg {
  width: 17px;
}

.story-cuts {
  margin-top: 34px;
}

.story-cuts article {
  padding: 18px 0 20px;
  border-top: 1px solid var(--ink);
}

.story-cuts article > span {
  color: var(--persimmon);
  font: 900 11px / 1 "Arial Black", sans-serif;
  letter-spacing: 0.08em;
}

.story-cuts h3 {
  margin-top: 8px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.story-cuts p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.story-cuts article > button { display: flex; align-items: center; gap: 5px; margin-top: 10px; color: var(--cobalt); font-size: 11px; font-weight: 900; }
.story-cuts article > button svg { width: 16px; }

.story-cuts .locked {
  opacity: 0.52;
}

.report-screen {
  padding-bottom: calc(38px + var(--safe-bottom));
}

.report-cover {
  position: relative;
  min-height: 420px;
  margin: 8px -20px 0;
  padding: 35px 21px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.report-cover::after {
  position: absolute;
  right: -128px;
  bottom: -172px;
  width: 360px;
  height: 360px;
  content: "";
  border: 64px solid var(--cobalt);
  border-radius: 50%;
}

.report-cover > p {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.report-cover h1 {
  position: relative;
  z-index: 2;
  margin-top: 25px;
  font: 900 54px / 0.94 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.08em;
}

.report-cover em {
  color: var(--marigold);
  font-style: normal;
}

.report-issue {
  position: absolute;
  right: 20px;
  bottom: 24px;
  z-index: 3;
  padding: 8px;
  color: var(--ink);
  background: var(--persimmon);
  font: 900 10px / 1 "Arial Black", sans-serif;
  transform: rotate(4deg);
}

.report-numbers {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 -20px;
}

.report-numbers > div {
  min-height: 184px;
  padding: 23px 20px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.report-numbers > div:last-child {
  border-right: 0;
}

.report-numbers span,
.report-numbers small {
  display: block;
  font-size: 10px;
  font-weight: 800;
}

.report-numbers strong {
  display: inline-block;
  margin-top: 17px;
  color: var(--cobalt);
  font: 900 60px / 0.9 Impact, sans-serif;
}

.report-numbers em {
  margin-left: 3px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.report-numbers small {
  margin-top: 12px;
  color: var(--muted);
}

.trend-story {
  margin-top: 34px;
}

.trend-story svg {
  width: 100%;
  overflow: visible;
}

.chart-guide {
  fill: none;
  stroke: var(--line);
  stroke-width: 1;
}

.chart-line {
  fill: none;
  stroke: var(--persimmon);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trend-story circle {
  fill: var(--marigold);
  stroke: var(--ink);
  stroke-width: 2;
}

.trend-story p {
  margin-top: 17px;
  font-size: 14px;
  line-height: 1.55;
}

.next-phase {
  margin: 40px -20px 0;
  padding: 30px 20px;
  color: var(--paper);
  background: var(--cobalt);
}

.next-phase h2 {
  margin-bottom: 22px;
  font: 900 32px / 1.02 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.06em;
}

.next-phase ol {
  border-color: rgba(255, 255, 255, 0.55);
}

.next-phase li {
  border-color: rgba(255, 255, 255, 0.35);
  font-size: 13px;
  line-height: 1.45;
}

.next-phase li i {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: var(--ink);
  border-radius: 50%;
  background: var(--marigold);
  font-size: 15px;
}

.profile-heading {
  margin: 27px 0 48px;
}

.profile-heading > p {
  color: var(--cobalt);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.profile-heading h1 {
  margin-top: 10px;
  font: 900 51px / 0.94 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.08em;
}

.preference-section {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
}

.setting-index {
  color: var(--persimmon);
  font: 900 27px / 1 Impact, sans-serif;
}

.preference-section h2,
.memory-ledger h2 {
  margin-bottom: 18px;
  font-size: 20px;
  letter-spacing: -0.04em;
}

.tone-option {
  display: grid;
  width: 100%;
  min-height: 52px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  border-top: 1px solid var(--line);
  text-align: left;
}

.tone-option:last-child {
  border-bottom: 1px solid var(--line);
}

.tone-option > span {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.tone-option span svg {
  width: 13px;
}

.tone-option.is-active > span {
  color: var(--paper);
  border-color: var(--cobalt);
  background: var(--cobalt);
}

.choice-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-chip {
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.choice-chip.is-active {
  color: var(--paper);
  background: var(--ink);
}

.memory-ledger {
  padding-top: 31px;
  border-top: 1px solid var(--ink);
}

.memory-row {
  display: grid;
  width: 100%;
  min-height: 72px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.memory-row:last-child {
  border-bottom: 1px solid var(--line);
}

.memory-ledger span,
.memory-ledger b {
  display: block;
}

.memory-ledger span {
  font-size: 12px;
  line-height: 1.35;
}

.memory-ledger b {
  margin-bottom: 3px;
  font-size: 9px;
  letter-spacing: 0.1em;
}

.memory-ledger em {
  color: var(--cobalt);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.coach-memory-section {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--ink);
}

.coach-memory-section > header h2 {
  margin-top: 5px;
  font-size: 25px;
  letter-spacing: -0.05em;
}

.coach-memory-section > header > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.coach-memory-list {
  margin-top: 20px;
  border-top: 1px solid var(--ink);
}

.coach-memory-list article {
  padding: 18px 0;
  border-bottom: 1px solid var(--ink);
}

.coach-memory-form > span {
  color: var(--cobalt);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.coach-memory-form label {
  display: block;
  margin-top: 13px;
  font-size: 10px;
  font-weight: 800;
}

.coach-memory-form textarea,
.coach-memory-form input {
  width: 100%;
  margin-top: 5px;
  padding: 12px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: var(--ink);
  background: var(--cream);
  font-size: 16px;
  line-height: 1.4;
}

.coach-memory-form textarea {
  min-height: 82px;
  resize: vertical;
  font-size: 16px;
  line-height: 1.5;
}

.coach-memory-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-top: 10px;
}

.memory-save,
.memory-delete {
  min-height: 44px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 900;
}

.memory-save {
  color: var(--paper);
  background: var(--cobalt);
}

.memory-delete {
  border: 1px solid var(--persimmon);
  color: var(--ink);
}

.privacy-note {
  margin-top: 28px;
  padding: 18px;
  color: var(--paper);
  background: var(--ink);
}

.privacy-note b {
  font-size: 14px;
}

.privacy-note p {
  margin-top: 7px;
  color: rgba(241, 234, 217, 0.72);
  font-size: 12px;
  line-height: 1.55;
}

.onboarding-screen {
  padding-bottom: calc(28px + var(--safe-bottom));
}

.onboarding-intro {
  color: var(--paper);
  background: var(--cobalt);
}

.onboarding-mark {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.onboarding-photo {
  position: relative;
  height: 345px;
  margin: 18px -20px 0;
  overflow: hidden;
  background: var(--paper-deep);
}

.onboarding-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 39%;
}

.onboarding-photo > div {
  position: absolute;
  top: 18px;
  left: 17px;
  color: var(--cobalt);
  font: 900 48px / 0.82 Impact, sans-serif;
  letter-spacing: -0.04em;
  mix-blend-mode: multiply;
}

.onboarding-intro h1 {
  margin-top: 22px;
  font: 900 39px / 0.98 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.07em;
}

.onboarding-intro > p {
  margin-top: 13px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  line-height: 1.5;
}

.onboarding-voice {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 52px 1fr;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--marigold);
  text-align: left;
}

.onboarding-voice > svg {
  width: 28px;
  height: 28px;
}

.onboarding-voice b,
.onboarding-voice small {
  display: block;
}

.onboarding-voice b {
  font-size: 14px;
}

.onboarding-voice small {
  margin-top: 3px;
  font-size: 10px;
}

.light-link {
  color: var(--paper);
}

.onboarding-understood {
  background: var(--paper);
}

.onboarding-understood > .section-kicker {
  margin-top: 35px;
  color: var(--cobalt);
}

.onboarding-understood blockquote {
  font: 900 35px / 1.12 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.055em;
}

.onboarding-trace {
  width: 100%;
  margin: 14px 0 -12px;
  color: var(--persimmon);
  transform: rotate(-7deg);
}

.intent-board {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.intent-board span {
  min-height: 78px;
  padding: 13px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 750;
}

.intent-board b {
  display: block;
  margin-bottom: 8px;
  color: var(--cobalt);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.onboarding-understood aside {
  margin-top: 22px;
  padding: 17px;
  color: var(--paper);
  background: var(--ink);
}

.onboarding-understood aside > b {
  font-size: 14px;
}

.onboarding-understood aside p {
  margin-top: 5px;
  color: rgba(241, 234, 217, 0.72);
  font-size: 12px;
  line-height: 1.45;
}

.onboarding-answer {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  color: var(--marigold);
  font-size: 11px;
  font-weight: 800;
}

.onboarding-answer svg {
  width: 17px;
}

.onboarding-reveal {
  color: var(--ink);
  background: var(--marigold);
}

.reveal-number {
  margin-top: 25px;
  font: 900 214px / 0.72 Impact, sans-serif;
  letter-spacing: -0.09em;
}

.onboarding-reveal > p {
  margin-top: 13px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.onboarding-reveal h1 {
  margin-top: 35px;
  font: 900 44px / 0.96 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.07em;
}

.reveal-path {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border-top: 2px solid var(--ink);
}

.reveal-path span {
  position: relative;
  padding-top: 12px;
  font: 900 18px / 1 Impact, sans-serif;
}

.reveal-path span::before {
  position: absolute;
  top: -6px;
  left: 0;
  width: 10px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: var(--ink);
}

.reveal-path small {
  display: block;
  margin-top: 5px;
  font: 700 9px / 1.2 "Avenir Next", sans-serif;
}

.reveal-promise {
  margin-top: 23px;
}

.reveal-promise p {
  display: grid;
  min-height: 42px;
  grid-template-columns: 34px 1fr;
  align-items: center;
  border-top: 1px solid rgba(23, 23, 21, 0.45);
  font-size: 12px;
  font-weight: 700;
}

.reveal-promise i {
  font-style: normal;
  font-weight: 900;
}

.index-layer {
  z-index: 100;
  padding: calc(23px + env(safe-area-inset-top)) 20px calc(34px + var(--safe-bottom));
  color: var(--paper);
  background: var(--ink);
}

.index-layer header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.index-layer header button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--paper);
  border-radius: 50%;
}

.index-intro {
  margin: 28px 0 22px;
  padding-left: 13px;
  border-left: 4px solid var(--persimmon);
  color: rgba(241, 234, 217, 0.65);
  font-size: 11px;
  line-height: 1.5;
}

.index-layer nav {
  border-top: 1px solid rgba(241, 234, 217, 0.7);
}

.index-layer nav button {
  display: grid;
  width: 100%;
  min-height: 76px;
  grid-template-columns: 36px 1fr 25px;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(241, 234, 217, 0.35);
  text-align: left;
}

.index-layer nav i {
  color: var(--persimmon);
  font: 900 20px / 1 Impact, sans-serif;
}

.index-layer nav b,
.index-layer nav small {
  display: block;
}

.index-layer nav b {
  font-size: 17px;
}

.index-layer nav small {
  margin-top: 4px;
  color: rgba(241, 234, 217, 0.54);
  font-size: 10px;
}

.reset-demo {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  color: var(--marigold);
  border: 1px solid var(--marigold);
  font-size: 11px;
  font-weight: 900;
}

.toast {
  position: fixed;
  z-index: 120;
  right: 18px;
  bottom: calc(104px + var(--safe-bottom));
  left: 18px;
  width: min(calc(100% - 36px), 394px);
  max-width: 394px;
  margin: 0 auto;
  padding: 14px 16px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  animation: toastIn 240ms var(--ease) both;
}

.page-enter {
  animation: pageIn 420ms var(--ease) both;
}

.page-wipe {
  animation: pageWipe 380ms var(--ease) both;
}

.jay-trace path:first-child {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawTrace 760ms 150ms var(--ease) forwards;
}

.chart-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: drawTrace 900ms 180ms var(--ease) forwards;
}

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

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

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

@keyframes voiceWave {
  from { transform: scaleY(0.32); opacity: 0.5; }
  to { transform: scaleY(1); opacity: 1; }
}

@keyframes voicePulse {
  from { transform: scale(0.82); opacity: 0.65; }
  to { transform: scale(1.12); opacity: 1; }
}

@keyframes knot {
  0% { transform: rotate(-8deg) scale(0.8); }
  55% { transform: rotate(12deg) scale(1.18); }
  100% { transform: rotate(-8deg) scale(1.1); }
}

@keyframes processingPulse {
  from { transform: scale(0.72); opacity: 0.9; }
  to { transform: scale(1.25); opacity: 0; }
}

@keyframes processingScan {
  from { transform: translateX(-110%); }
  to { transform: translateX(240%); }
}

@keyframes stamp {
  0% { opacity: 0; transform: scale(2.5) rotate(-40deg); }
  62% { opacity: 1; transform: scale(0.86) rotate(8deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

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

@media (hover: hover) {
  button:not(:disabled):hover {
    filter: brightness(1.05);
  }

  .index-layer nav button:hover span b {
    color: var(--marigold);
  }
}

@media (max-width: 370px) {
  .cover-title h1:not(.is-long):not(.is-compact),
  .journey-heading h1,
  .profile-heading h1 {
    font-size: 43px;
  }

  .cover-art {
    height: 365px;
  }

  .voice-copy small {
    max-width: 190px;
  }

  .clarify-layer h2,
  .proposal-heading h2,
  .text-layer h2 {
    font-size: 37px;
  }

  .rest-layer > strong {
    font-size: 172px;
  }
}

@media (min-width: 700px) {
  #app {
    margin-block: 30px;
    min-height: calc(100vh - 60px);
    border-radius: 18px;
  }

  .voice-layer,
  .index-layer,
  .rest-layer,
  .replacement-layer {
    bottom: 30px;
    min-height: calc(100svh - 60px);
    max-height: calc(100svh - 60px);
    border-radius: 18px;
  }

  .toast {
    bottom: 140px;
  }
}

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

  .jay-trace path:first-child,
  .chart-line {
    stroke-dashoffset: 0;
  }
}

/* Production screens built on the approved editorial demo language. */

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

input,
select,
textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 13px;
  border: 1px solid var(--ink);
  border-radius: 0;
  background: var(--cream);
  font-size: 16px;
  line-height: 1.35;
}

input[type="date"] {
  display: block;
  min-width: 0;
  max-width: 100%;
}

input[type="date"]::-webkit-date-and-time-value {
  min-height: 1.35em;
  text-align: left;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px;
}

input[type="radio"] {
  width: auto;
  min-height: 0;
  padding: 0;
}

textarea {
  resize: vertical;
  line-height: 1.5;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 200;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  font-weight: 900;
  transform: translate(-50%, -160%);
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.experience-shell {
  min-height: 100svh;
}

.profile-dot {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--cobalt);
  font: 900 13px / 1 "Arial Black", sans-serif;
}

.masthead-dark .profile-dot {
  color: var(--ink);
  border-color: var(--paper);
  background: var(--marigold);
}

.secondary-screen {
  padding-bottom: calc(54px + var(--safe-bottom));
}

.secondary-heading {
  margin: 28px 0 30px;
}

.secondary-heading h1 {
  max-width: 370px;
  margin-top: 6px;
  padding-bottom: 5px;
  font: 900 45px / 1.04 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.075em;
}

.secondary-heading h1:focus-visible {
  outline: none;
}

.secondary-heading > span {
  display: block;
  max-width: 340px;
  margin-top: 14px;
  padding-left: 13px;
  border-left: 4px solid var(--persimmon);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.state-panel {
  position: relative;
  margin-top: 28px;
  padding: 23px 20px 20px 63px;
  border: 1px solid var(--ink);
  background: var(--cream);
}

.state-panel.error-state {
  border-color: var(--persimmon);
  background: rgba(239, 88, 63, 0.09);
}

.state-mark {
  position: absolute;
  top: 18px;
  left: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--paper);
  border-radius: 50%;
  background: var(--cobalt);
  font: 900 16px / 1 Impact, sans-serif;
}

.error-state .state-mark {
  color: var(--ink);
  background: var(--persimmon);
}

.state-panel h2 {
  font-size: 18px;
  line-height: 1.2;
}

.state-panel p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.state-panel > .action-stripe {
  width: calc(100% + 43px);
  margin-left: -43px;
}

.state-panel > div:last-child {
  margin-top: 15px;
}

.loading-copy {
  display: flex;
  min-height: 72svh;
  flex-direction: column;
  justify-content: center;
}

.loading-copy > b {
  color: var(--cobalt);
  font: 900 13px / 1 "Arial Black", sans-serif;
  letter-spacing: 0.18em;
}

.loading-copy h1 {
  margin-top: 15px;
  font: 900 49px / 0.94 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.08em;
}

.loading-lines {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 72px;
  margin-top: 45px;
}

.loading-lines i {
  width: 11px;
  height: 45%;
  background: var(--persimmon);
  animation: loadBeat 720ms ease-in-out infinite alternate;
}

.loading-lines i:nth-child(2) {
  height: 100%;
  background: var(--cobalt);
  animation-delay: -240ms;
}

.loading-lines i:nth-child(3) {
  height: 67%;
  background: var(--marigold);
  animation-delay: -480ms;
}

.today-empty {
  padding-top: 13px;
}

.empty-art {
  position: relative;
  display: grid;
  height: 310px;
  place-items: center;
  margin: 18px -20px 0;
  overflow: hidden;
  color: var(--paper);
  background: var(--cobalt);
}

.empty-art > span {
  position: relative;
  z-index: 2;
  font: 900 78px / 0.72 Impact, sans-serif;
  letter-spacing: -0.05em;
  transform: rotate(-7deg);
}

.empty-art .jay-trace {
  position: absolute;
  right: -20px;
  bottom: 0;
  width: 300px;
}

.local-draft-note {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 13px 14px;
  border: 1px solid var(--cobalt);
  box-shadow: 6px 6px 0 var(--marigold);
}

.local-draft-note b {
  font-size: 12px;
}

.local-draft-note span {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.today-context-actions {
  display: grid;
  margin-top: 24px;
  border-top: 1px solid var(--ink);
}

.today-context-actions button {
  display: grid;
  min-height: 78px;
  grid-template-columns: 1fr 22px;
  align-content: center;
  gap: 3px 8px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
}

.today-context-actions span,
.today-context-actions b {
  display: block;
}

.today-context-actions span {
  color: var(--persimmon);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.today-context-actions b {
  font-size: 14px;
}

.today-context-actions svg {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.today-first-move {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 8px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
}

.today-first-move > span {
  grid-row: 1 / span 2;
  color: var(--cobalt);
  font: 900 17px / 1 Impact, sans-serif;
}

.today-first-move b {
  font-size: 15px;
}

.today-first-move small {
  color: var(--muted);
  font-size: 10px;
}

.recorded-bars {
  display: flex;
  height: 145px;
  align-items: flex-end;
  gap: 13px;
  padding: 18px 20px 0;
  border: 1px solid var(--ink);
  background: repeating-linear-gradient(to top, transparent 0 28px, var(--line) 29px 30px);
}

.recorded-bars span {
  width: 33.333%;
  height: max(3px, var(--value));
  background: var(--persimmon);
  transition: height 500ms var(--ease);
}

.recorded-bars span:nth-child(2) {
  background: var(--cobalt);
}

.recorded-bars span:nth-child(3) {
  background: var(--marigold);
}

.guidance-card {
  margin-top: 28px;
  padding: 22px 20px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 9px 9px 0 var(--marigold);
}

.guidance-card > span {
  color: var(--persimmon);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.guidance-card h2 {
  margin-top: 10px;
  font: 900 28px / 1 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.055em;
}

.guidance-card > .markdown-body,
.guidance-card > ul {
  margin-top: 14px;
  color: rgba(241, 234, 217, 0.76);
  font-size: 12px;
  line-height: 1.55;
}

.guidance-card > ul {
  padding-left: 19px;
}

.markdown-body > * + * {
  margin-top: 12px;
}

.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  color: inherit;
  font: 900 16px / 1.2 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.035em;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 21px;
}

.markdown-body li + li {
  margin-top: 6px;
}

.markdown-body blockquote {
  padding-left: 11px;
  border-left: 3px solid var(--marigold);
}

.markdown-body strong {
  color: inherit;
  font-weight: 900;
}

.markdown-body code {
  padding: 2px 4px;
  color: var(--ink);
  background: var(--marigold);
  font-size: 0.9em;
}

.guidance-warnings {
  margin-top: 18px;
  border-top: 1px solid rgba(241, 234, 217, 0.35);
}

.guidance-warnings p {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(241, 234, 217, 0.2);
  font-size: 10px;
}

.guidance-warnings b {
  color: var(--marigold);
}

.profile-link-card {
  display: grid;
  width: 100%;
  min-height: 74px;
  grid-template-columns: 1fr 24px;
  align-content: center;
  gap: 3px 8px;
  border-top: 1px solid var(--ink);
  text-align: left;
}

.profile-link-card:last-child {
  border-bottom: 1px solid var(--ink);
}

.profile-link-card b,
.profile-link-card span {
  display: block;
}

.profile-link-card b {
  font-size: 13px;
}

.profile-link-card span {
  color: var(--muted);
  font-size: 10px;
}

.profile-link-card svg {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.danger-link {
  color: #a13226;
}

#overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
}

#overlay:empty {
  display: none;
}

.access-screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  padding-bottom: var(--safe-bottom);
  color: var(--paper);
  background: var(--ink);
}

.access-photo {
  position: relative;
  height: min(48svh, 480px);
  min-height: 290px;
  overflow: hidden;
}

.access-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(130deg, rgba(49, 86, 211, 0.1), transparent 42%),
    linear-gradient(180deg, transparent 36%, var(--ink));
}

.access-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-photo span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  color: var(--marigold);
  font: 900 42px / 0.78 Impact, sans-serif;
  text-align: right;
  transform: rotate(-4deg);
}

.access-copy {
  position: relative;
  z-index: 3;
  margin-top: -42px;
  padding: 0 20px 38px;
}

.access-copy > p {
  color: var(--persimmon);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.access-copy h1 {
  margin-top: 10px;
  font: 900 47px / 0.92 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.07em;
}

.access-copy > span {
  display: block;
  max-width: 330px;
  margin-top: 14px;
  color: rgba(241, 234, 217, 0.65);
  font-size: 11px;
  line-height: 1.5;
}

.access-panel {
  position: relative;
  width: 100%;
  margin-top: 24px;
  padding: 18px;
  color: var(--ink);
  background: var(--marigold);
  box-shadow: 9px 9px 0 var(--cobalt);
}

.auth-switch {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--ink);
}

.auth-switch button {
  min-height: 44px;
  padding: 0 12px;
  border-right: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.auth-switch button:last-child {
  border-right: 0;
}

.auth-switch button[aria-pressed="true"] {
  color: var(--paper);
  background: var(--ink);
}

.auth-message,
.auth-error {
  margin-top: 13px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.45;
}

.auth-message {
  border-left: 4px solid var(--cobalt);
  background: rgba(49, 86, 211, 0.12);
}

.auth-error {
  border-left: 4px solid var(--persimmon);
  background: rgba(239, 88, 63, 0.14);
}

.auth-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.auth-form label {
  color: var(--ink);
}

.auth-form input {
  background: var(--cream);
}

.auth-form input[aria-invalid="true"] {
  border: 2px solid #a13226;
}

.field-hint,
.auth-boundary {
  display: block;
  font-size: 9px;
  line-height: 1.45;
}

.field-hint {
  margin-top: -7px;
  color: rgba(23, 23, 21, 0.68);
}

.auth-boundary {
  margin-top: 13px;
  color: rgba(23, 23, 21, 0.72);
}

.access-panel .action-stripe {
  margin-top: 3px;
}

.auth-state-panel {
  margin-top: 28px;
}

.auth-state-panel > p {
  font-size: 12px;
  line-height: 1.55;
}

.auth-state-panel .action-stripe {
  margin-top: 15px;
}

.setup-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 27px;
}

.setup-progress i {
  height: 5px;
  background: rgba(23, 23, 21, 0.18);
}

.setup-progress i.active {
  background: var(--persimmon);
}

.setup-card {
  margin-top: 42px;
}

.setup-card > h1 {
  max-width: 370px;
  margin-top: 8px;
  font: 900 47px / 0.96 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.075em;
}

.setup-card > p:not(.section-kicker) {
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.editor-form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}

.editor-form > *,
.field-pair > *,
.today-context-actions > *,
.meal-fact-layout > *,
.activity-form-grid > * {
  min-width: 0;
}

body.keyboard-open .voice-layer,
body.keyboard-open .index-layer,
body.keyboard-open .rest-layer,
body.keyboard-open .replacement-layer {
  top: var(--visual-viewport-top);
  bottom: auto;
  height: var(--visual-viewport-height);
  min-height: 0;
}

body.keyboard-open .keyboard-action {
  position: static;
  width: 100%;
  transform: none;
}

.paper-form {
  padding: 20px;
  border: 1px solid var(--ink);
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--paper-deep);
}

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

.inline-error,
.recognition-note,
.proposal-errors {
  padding: 12px 14px;
  border-left: 5px solid var(--persimmon);
  background: rgba(239, 88, 63, 0.13);
  font-size: 11px;
  line-height: 1.45;
}

.inline-error p,
.proposal-errors p {
  margin-top: 4px;
}

.goal-cover {
  position: relative;
  overflow: hidden;
  margin: 12px -20px 0;
  padding: 32px 20px 26px;
  color: var(--paper);
  background: var(--cobalt);
}

.goal-cover::after {
  position: absolute;
  right: -100px;
  bottom: -130px;
  width: 270px;
  height: 270px;
  content: "";
  border: 50px solid rgba(239, 198, 74, 0.7);
  border-radius: 50%;
}

.goal-cover > span {
  position: relative;
  z-index: 2;
  color: var(--marigold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.goal-cover h2 {
  position: relative;
  z-index: 2;
  max-width: 340px;
  margin-top: 11px;
  font: 900 39px / 0.98 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.07em;
}

.goal-cover > p {
  position: relative;
  z-index: 2;
  margin-top: 13px;
  color: rgba(241, 234, 217, 0.7);
  font-size: 11px;
}

.goal-numbers {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 27px;
  background: rgba(241, 234, 217, 0.45);
}

.goal-numbers span {
  padding: 13px;
  background: var(--cobalt);
  font-size: 9px;
}

.goal-numbers b {
  display: block;
  margin-top: 4px;
  font-size: 20px;
}

.goal-meter {
  position: relative;
  z-index: 2;
  height: 5px;
  margin-top: 23px;
  background: rgba(241, 234, 217, 0.25);
}

.goal-meter i {
  display: block;
  height: 100%;
  background: var(--persimmon);
}

.goal-cover .action-stripe,
.goal-cover .quiet-link {
  position: relative;
  z-index: 2;
}

.record-list {
  margin-top: 38px;
}

.record-list > article {
  display: grid;
  grid-template-columns: 95px 1fr;
  gap: 13px;
  padding: 14px 0;
  border-top: 1px solid var(--ink);
}

.record-list > article time {
  color: var(--persimmon);
  font-size: 10px;
  font-weight: 900;
}

.record-list > article p {
  font-size: 13px;
  line-height: 1.5;
}

.record-empty {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

.plan-screen .secondary-heading {
  margin-bottom: 20px;
}

.plan-days {
  border-top: 3px solid var(--ink);
}

.plan-day {
  padding: 20px 0 23px;
  border-bottom: 1px solid var(--ink);
}

.plan-day.is-complete {
  opacity: 0.57;
}

.plan-day > header {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: start;
  gap: 10px;
}

.plan-day > header > span {
  color: var(--persimmon);
  font: 900 34px / 0.9 Impact, sans-serif;
}

.plan-day h2 {
  font-size: 19px;
  line-height: 1.15;
}

.plan-day header p,
.plan-day header small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.plan-day > header > b {
  padding: 4px 6px;
  color: var(--paper);
  background: var(--cobalt);
  font-size: 8px;
}

.plan-day > div:last-child {
  margin: 16px 0 0 62px;
}

.plan-day > div:last-child p {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.plan-day > div:last-child span {
  color: var(--muted);
  text-align: right;
}

.catalog-search {
  padding: 16px;
  border: 1px solid var(--ink);
  background: var(--cream);
}

.catalog-search > div:first-of-type {
  position: relative;
}

.catalog-search > div:first-of-type button {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
}

.filter-chips {
  display: flex;
  margin-top: 12px;
  padding-bottom: 3px;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-chips button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid var(--ink);
  font-size: 10px;
  font-weight: 800;
}

.filter-chips button.is-active {
  color: var(--paper);
  background: var(--cobalt);
}

.exercise-grid {
  display: grid;
  gap: 20px;
  margin-top: 23px;
}

.exercise-grid > article {
  position: relative;
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--paper-deep);
}

.exercise-grid > article > div:nth-child(2) {
  padding: 15px 13px 52px;
}

.exercise-grid > article > div:nth-child(2) > span {
  color: var(--persimmon);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.exercise-grid h2 {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.1;
}

.exercise-grid p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
}

.catalog-photo,
.exercise-type-art {
  position: relative;
  min-height: 170px;
  overflow: hidden;
  background: var(--marigold);
}

.catalog-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.exercise-sequence-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.exercise-sequence-track::-webkit-scrollbar {
  display: none;
}

.exercise-sequence figure {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
}

.exercise-sequence img {
  object-fit: contain;
  background: #10100f;
}

.exercise-sequence figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  color: var(--paper);
  background: rgb(16 16 15 / 78%);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.exercise-sequence figcaption b {
  color: var(--persimmon);
}

.exercise-stage > .exercise-sequence {
  height: 100%;
}

.exercise-stage .exercise-sequence-track {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.exercise-stage .exercise-sequence img {
  position: static;
  width: 100%;
  height: 100%;
  object-position: 50% 50%;
}

.exercise-type-art {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  color: var(--paper);
  background: var(--cobalt);
}

.exercise-type-art > span {
  font-size: 8px;
  font-weight: 900;
}

.exercise-type-art > b {
  position: relative;
  z-index: 2;
  margin-top: 4px;
  font: 900 25px / 0.9 Impact, sans-serif;
}

.exercise-type-art > small {
  position: relative;
  z-index: 2;
  margin-top: 6px;
  font-size: 8px;
}

.exercise-type-art .jay-trace {
  position: absolute;
  inset: 0;
  width: 210px;
  transform: rotate(-17deg);
}

.select-move {
  position: absolute;
  right: 12px;
  bottom: 12px;
  min-height: 32px;
  padding: 0 10px;
  color: var(--paper);
  background: var(--ink);
  font-size: 9px;
  font-weight: 900;
}

.move-detail .catalog-photo-detail,
.move-detail .exercise-type-art-detail {
  height: 390px;
  margin: 8px -20px 0;
}

.move-detail .secondary-heading {
  margin-top: 26px;
}

.instruction-block {
  margin-top: 27px;
  padding: 20px;
  border: 1px solid var(--ink);
  background: var(--cream);
}

.instruction-block ol,
.instruction-block ul {
  margin: 15px 0 0;
  padding-left: 22px;
}

.instruction-block li {
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
}

.instruction-block.caution {
  background: var(--marigold);
}

.instruction-block.safety {
  color: var(--paper);
  background: var(--cobalt);
}

.history-stack,
.workout-list {
  border-top: 3px solid var(--ink);
}

.history-stack > button,
.workout-list > button {
  display: grid;
  width: 100%;
  min-height: 88px;
  grid-template-columns: 1fr 24px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
}

.history-stack > button > span {
  color: var(--persimmon);
  font-size: 9px;
  font-weight: 900;
}

.history-stack > button > div {
  grid-column: 1;
}

.history-stack > button > svg {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.history-stack b,
.history-stack small,
.workout-list b,
.workout-list small {
  display: block;
}

.history-stack small,
.workout-list small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.workout-list > button {
  grid-template-columns: 54px 1fr 24px;
}

.workout-list time {
  text-align: center;
}

.workout-list time b {
  color: var(--cobalt);
  font: 900 30px / 0.8 Impact, sans-serif;
}

.workout-list time span {
  font-size: 9px;
  font-weight: 900;
}

.result-detail {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-bottom: 1px solid var(--ink);
}

.result-detail > div {
  padding: 22px 15px;
  border-right: 1px solid var(--ink);
}

.result-detail > div:last-child {
  border-right: 0;
}

.result-detail span,
.result-detail b {
  display: block;
}

.result-detail span {
  font-size: 9px;
  font-weight: 900;
}

.result-detail b {
  margin-top: 6px;
  color: var(--cobalt);
  font: 900 42px / 0.9 Impact, sans-serif;
}

.workout-note {
  margin-top: 25px;
  padding: 17px;
  border-left: 5px solid var(--persimmon);
  background: var(--cream);
  font-size: 13px;
  line-height: 1.55;
}

.result-exercises {
  margin-top: 28px;
  border-top: 3px solid var(--ink);
}

.result-exercises article {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ink);
}

.result-exercises article > span {
  color: var(--persimmon);
  font: 900 20px / 1 Impact, sans-serif;
}

.result-exercises b,
.result-exercises small {
  display: block;
}

.result-exercises small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.workout-summary-screen {
  padding-bottom: calc(50px + var(--safe-bottom));
}

.summary-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--ink);
}

.summary-facts span {
  padding: 19px;
  border-right: 1px solid var(--ink);
  font-size: 11px;
}

.summary-facts span:last-child {
  border-right: 0;
}

.summary-facts b {
  display: block;
  color: var(--cobalt);
  font: 900 42px / 0.9 Impact, sans-serif;
}

.workout-summary-screen .effort-scale {
  grid-template-columns: repeat(5, 1fr);
  border: 1px solid var(--ink);
}

.workout-summary-screen .effort-scale label {
  min-width: 0;
}

.workout-summary-screen .effort-scale label:nth-child(6) {
  border-left: 0;
}

.workout-summary-screen .effort-scale label:nth-child(-n+5) {
  border-bottom: 1px solid var(--ink);
}

.workout-library-link {
  color: rgba(241, 234, 217, 0.75);
}

.exercise-stage .catalog-photo,
.exercise-stage .exercise-type-art {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

.exercise-stage .exercise-type-art {
  padding: 30px;
}

.exercise-stage .exercise-type-art > b {
  font-size: 78px;
}

.recognition-note {
  margin-top: 16px;
}

.recognition-note.caution {
  border-color: var(--cobalt);
  background: rgba(49, 86, 211, 0.1);
}

.text-layer .action-stripe {
  margin-top: 12px;
}

.generation-art {
  background:
    radial-gradient(circle at 74% 30%, rgba(239, 198, 74, 0.95) 0 15%, transparent 15.5%),
    linear-gradient(135deg, var(--cobalt) 0 62%, #2444b4 62%);
}

.generation-art > span {
  color: var(--cream);
  text-shadow: 7px 7px 0 var(--persimmon);
}

.generation-callout {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--marigold);
  box-shadow: 7px 7px 0 var(--ink);
}

.generation-callout > span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.generation-callout h2 {
  margin-top: 8px;
  font: 900 25px / 1.02 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.055em;
}

.generation-callout p {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.55;
}

.setup-progress {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.setup-previous,
.setup-previous-placeholder {
  width: 68px;
}

.setup-previous {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.setup-previous svg {
  width: 16px;
  height: 16px;
}

.setup-progress i {
  position: relative;
  height: 5px;
  overflow: hidden;
  background: rgba(23, 23, 21, 0.18);
}

.setup-progress i::after {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--setup-progress);
  content: "";
  background: var(--persimmon);
  transition: width 280ms var(--ease);
}

.setup-progress-count {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.setup-choice-list {
  display: grid;
  margin-top: 28px;
  border-top: 3px solid var(--ink);
}

.setup-choice-list > button {
  display: grid;
  min-height: 82px;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-content: center;
  align-items: center;
  gap: 3px 9px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
}

.setup-choice-list > button > span {
  grid-row: 1 / span 2;
  color: var(--persimmon);
  font: 900 22px / 1 Impact, sans-serif;
}

.setup-choice-list > button > b {
  font-size: 17px;
}

.setup-choice-list > button > small {
  grid-column: 2;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.setup-choice-list > button > svg {
  grid-row: 1 / span 2;
  grid-column: 3;
}

.setup-inline-form,
.setup-memory-groups {
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--paper-deep);
}

.setup-inline-form > p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

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

.setup-radio-cards label,
.setup-choice-chips label {
  display: block;
  min-width: 0;
  color: var(--ink);
  cursor: pointer;
}

.setup-radio-cards input,
.setup-choice-chips input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.setup-radio-cards span,
.setup-choice-chips span {
  display: grid;
  min-height: 48px;
  place-items: center;
  padding: 8px 9px;
  border: 1px solid var(--ink);
  background: var(--paper);
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
  text-align: center;
}

.setup-radio-cards input:checked + span,
.setup-choice-chips input:checked + span {
  color: var(--cream);
  border-color: var(--cobalt);
  background: var(--cobalt);
  box-shadow: inset 0 0 0 2px var(--marigold);
}

.setup-radio-cards input:focus-visible + span,
.setup-choice-chips input:focus-visible + span {
  outline: 3px solid var(--marigold);
  outline-offset: 3px;
}

.height-boundary,
.setup-current-memory {
  padding: 13px 14px;
  border-left: 5px solid var(--cobalt);
  background: rgba(49, 86, 211, 0.08);
}

.height-boundary b,
.setup-current-memory b {
  display: block;
  font-size: 11px;
}

.height-boundary p,
.setup-current-memory span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.setup-measurement-fields,
.setup-memory-field {
  display: grid;
  gap: 11px;
  padding-top: 17px;
  border-top: 1px solid var(--ink);
}

.setup-measurement-fields > label {
  margin-top: 2px;
}

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

.setup-custom-answer {
  margin-top: 2px;
}

.generated-proposal-meta {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  align-items: stretch;
  margin-top: 24px;
  border: 1px solid var(--ink);
}

.generated-proposal-meta > span {
  display: grid;
  place-items: center;
  padding: 13px;
  color: var(--cream);
  background: var(--cobalt);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.generated-proposal-meta > span b {
  display: block;
  font: 900 34px / 0.9 Impact, sans-serif;
}

.generated-proposal-meta > p {
  padding: 15px;
  font-size: 12px;
  line-height: 1.5;
}

.generated-exercises {
  margin: 25px 0 0;
  padding: 0;
  border-top: 3px solid var(--ink);
  list-style: none;
}

.generated-exercises li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--ink);
}

.generated-exercises li > span {
  color: var(--persimmon);
  font: 900 24px / 1 Impact, sans-serif;
}

.generated-exercises h3 {
  font-size: 17px;
}

.generated-exercises b {
  display: block;
  margin-top: 4px;
  color: var(--cobalt);
  font-size: 11px;
}

.generated-exercises p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.meal-fact-section,
.additional-activity-section {
  margin-top: 42px;
  padding-top: 27px;
  border-top: 7px solid var(--ink);
}

.meal-fact-section > header h2,
.additional-activity-section > header h2 {
  margin-top: 7px;
  font: 900 30px / 1 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.06em;
}

.meal-fact-section > header > p:last-child,
.additional-activity-section > header > p:last-child {
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.meal-entry-form,
.additional-activity-form {
  padding: 18px;
  border: 1px solid var(--ink);
  background: var(--cream);
  box-shadow: 7px 7px 0 var(--paper-deep);
}

.activity-draft-note {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 10px;
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--paper);
  background: var(--cobalt);
  box-shadow: 5px 5px 0 var(--marigold);
  font-size: 10px;
  line-height: 1.45;
}

.activity-draft-note b {
  color: var(--marigold);
  letter-spacing: 0.06em;
}

.activity-draft-note + .additional-activity-form {
  margin-top: 16px;
}

.nutrition-details {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.nutrition-details summary {
  min-height: 48px;
  padding: 15px 2px;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.meal-fact-layout,
.activity-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 4px 0 16px;
}

.activity-form-grid > label:first-child {
  grid-column: 1 / -1;
}

.meal-fact-history,
.additional-activity-list {
  margin-top: 27px;
}

.meal-fact-history article,
.additional-activity-list article {
  padding: 16px 0;
  border-top: 1px solid var(--ink);
}

.meal-fact-history article > header,
.additional-activity-list article > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.meal-fact-history article > header span,
.additional-activity-list article > header span {
  color: var(--cobalt);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.meal-fact-history article > header b {
  padding: 4px 6px;
  color: var(--cream);
  background: var(--cobalt);
  font-size: 8px;
}

.meal-fact-history article > p,
.additional-activity-list article > p {
  margin-top: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.meal-fact-history article > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.meal-fact-history article > div,
.additional-activity-list article > div {
  display: flex;
  gap: 16px;
  margin-top: 9px;
}

.meal-fact-history article > div button,
.additional-activity-list article > div button,
.inline-error button {
  min-height: 44px;
  color: var(--cobalt);
  font-size: 11px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.meal-fact-history article > div button:last-child,
.additional-activity-list article > div button:last-child {
  color: #9b2c22;
}

.additional-activity-list blockquote {
  margin-top: 8px;
  padding: 10px 12px;
  border-left: 4px solid var(--marigold);
  background: rgba(239, 198, 74, 0.16);
  font-size: 11px;
  line-height: 1.5;
}

.intent-tape span {
  display: grid;
  gap: 2px;
}

.intent-tape span b {
  font-size: 8px;
  letter-spacing: 0.07em;
}

.plan-rewrite article {
  padding: 16px 0;
  border-bottom: 1px solid var(--ink);
}

.plan-rewrite article:last-child {
  border-bottom: 0;
}

.plan-rewrite article > span {
  color: var(--cobalt);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.plan-rewrite article > div {
  display: grid;
  grid-template-columns: 1fr 27px 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.plan-rewrite article del,
.plan-rewrite article strong {
  padding: 10px;
  font-size: 12px;
  line-height: 1.35;
}

.plan-rewrite article del {
  color: var(--muted);
  background: rgba(23, 23, 21, 0.06);
}

.plan-rewrite article strong {
  color: var(--paper);
  background: var(--cobalt);
}

.plan-rewrite article > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.execution-warnings {
  margin-top: 19px;
}

.execution-warnings p {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.45;
}

.execution-warnings b {
  color: var(--persimmon);
}

.memory-candidates,
.session-only-note {
  margin-top: 18px;
  padding: 14px;
  border: 1px dashed var(--ink);
  background: rgba(239, 198, 74, 0.17);
}

.memory-candidates > b,
.session-only-note > b {
  font-size: 11px;
}

.memory-candidates p {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}

.memory-candidate {
  padding-bottom: 10px;
}

.memory-candidate > button {
  min-height: 40px;
  margin-top: 9px;
  padding: 0 12px;
  color: var(--paper);
  background: var(--cobalt);
  font-size: 10px;
  font-weight: 900;
}

.memory-candidates span,
.memory-candidates small {
  display: block;
}

.memory-candidates span {
  font-size: 11px;
}

.memory-candidates small,
.session-only-note p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.proposal-errors {
  margin-top: 18px;
}

.answer-layer,
.error-layer {
  color: var(--ink);
  background: var(--paper);
}

.answer-layer > .section-kicker,
.error-layer > .section-kicker {
  margin-top: 74px;
}

.answer-layer > h2,
.error-layer > h2 {
  max-width: 355px;
  font: 900 43px / 0.97 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.07em;
}

.answer-body {
  margin-top: 23px;
  padding: 19px;
  color: var(--paper);
  background: var(--cobalt);
  box-shadow: 8px 8px 0 var(--marigold);
}

.answer-body p {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.answer-body li,
.answer-body blockquote {
  font-size: 13px;
  line-height: 1.55;
}

.answer-body h3,
.answer-body h4,
.answer-body h5,
.answer-body h6 {
  font-size: 18px;
}

.answer-suggestions {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--ink);
}

.answer-suggestions li {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 8px;
  padding: 13px 0;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}

.answer-suggestions i {
  color: var(--persimmon);
  font-style: normal;
  font: 900 20px / 1 Impact, sans-serif;
}

.answer-layer > .action-stripe,
.error-layer > .action-stripe {
  margin-top: 28px;
}

.general-coach-panel {
  position: fixed;
  right: 12px;
  bottom: calc(94px + var(--safe-bottom));
  left: 12px;
  z-index: 50;
  width: min(calc(100% - 24px), 406px);
  max-height: min(70svh, 560px);
  margin: 0 auto;
  overflow-y: auto;
  padding: 18px;
  color: var(--ink);
  border: 1px solid var(--ink);
  background: var(--cream);
  box-shadow: 8px 8px 0 var(--paper-deep), 0 14px 32px rgba(23, 23, 21, 0.18);
  animation: coachPanelIn 180ms var(--ease) both;
}

@keyframes coachPanelIn {
  from { opacity: 0; transform: translateY(12px); }
}

.general-coach-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink);
}

.general-coach-header .section-kicker {
  margin-bottom: 5px;
  font-size: 9px;
}

.general-coach-header h2 {
  max-width: 290px;
  font: 900 25px / 1.02 "Arial Black", "PingFang SC", sans-serif;
  letter-spacing: -0.06em;
}

.general-coach-close {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: var(--ink);
  border: 1px solid currentColor;
  border-radius: 50%;
}

.general-coach-close svg {
  width: 16px;
  height: 16px;
}

.general-coach-intro,
.general-coach-status,
.general-coach-error {
  margin-top: 15px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.general-coach-user {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.general-coach-history {
  display: grid;
  gap: 8px;
  margin-top: 13px;
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.general-coach-history-answer {
  padding: 10px 12px;
  color: var(--paper);
  background: var(--cobalt);
  font-size: 12px;
  line-height: 1.5;
}

.general-coach-answer {
  margin-top: 13px;
  padding: 14px;
  color: var(--paper);
  background: var(--cobalt);
  box-shadow: 5px 5px 0 var(--marigold);
}

.general-coach-answer p,
.general-coach-answer li {
  font-size: 13px;
  line-height: 1.55;
}

.general-coach-answer h3,
.general-coach-answer h4,
.general-coach-answer h5,
.general-coach-answer h6 {
  font-size: 17px;
}

.general-coach-question {
  margin-top: 14px;
  padding-left: 10px;
  border-left: 4px solid var(--cobalt);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.general-coach-options {
  display: grid;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid var(--ink);
}

.general-coach-options button {
  display: grid;
  min-height: 48px;
  grid-template-columns: 24px 1fr 20px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid var(--ink);
  text-align: left;
}

.general-coach-options button > span {
  color: var(--cobalt);
  font: 900 16px / 1 Impact, sans-serif;
}

.general-coach-options button b {
  font-size: 12px;
}

.general-coach-options button svg {
  width: 16px;
}

.general-coach-composer {
  margin-top: 16px;
}

.general-coach-composer label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}

.general-coach-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  align-items: stretch;
  gap: 7px;
}

.general-coach-composer textarea {
  min-height: 58px;
  padding: 10px 11px;
  background: var(--paper);
  font-size: 15px;
}

.general-coach-send {
  display: grid;
  min-height: 58px;
  place-items: center;
  color: var(--paper);
  background: var(--cobalt);
}

.general-coach-send svg {
  width: 19px;
}

.general-coach-composer > small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 9px;
}

.general-coach-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 800;
}

.general-coach-status i {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--persimmon);
  animation: processingPulse 900ms ease-out infinite;
}

.general-coach-cancel {
  min-height: 38px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.general-coach-panel .execution-warnings,
.general-coach-panel .memory-candidates {
  margin-top: 14px;
}

body.keyboard-open .general-coach-panel {
  bottom: 8px;
  max-height: calc(var(--visual-viewport-height) - 16px);
}

.error-layer > p:not(.section-kicker) {
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

#toast {
  position: fixed;
  right: 18px;
  bottom: calc(104px + var(--safe-bottom));
  left: 18px;
  z-index: 180;
  width: min(calc(100% - 36px), 394px);
  max-width: 394px;
  margin: 0 auto;
  padding: 14px 16px;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24);
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms var(--ease), transform 180ms var(--ease);
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes loadBeat {
  from { transform: scaleY(0.35); }
  to { transform: scaleY(1); }
}

@media (max-width: 370px) {
  .secondary-heading h1,
  .setup-card > h1 {
    font-size: 39px;
  }

  .field-pair {
    grid-template-columns: 1fr;
  }

  .exercise-grid > article {
    grid-template-columns: 102px 1fr;
  }
}
