:root {
  --canvas: #f5f1e8;
  --paper: #fffdf8;
  --ink: #20241e;
  --muted: #77796f;
  --line: rgba(32, 36, 30, 0.12);
  --orange: #f26f3d;
  --orange-deep: #df5524;
  --lime: #d9e77c;
  --moss: #415744;
  --sage: #acc4a4;
  --shadow: 0 24px 80px rgba(64, 57, 42, 0.13);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --safe-bottom: max(18px, env(safe-area-inset-bottom));
}

* {
  box-sizing: border-box;
}

html {
  background: #e9e3d7;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(217, 231, 124, 0.48), transparent 22rem),
    radial-gradient(circle at 88% 70%, rgba(242, 111, 61, 0.2), transparent 25rem),
    #e9e3d7;
  font-family: "Noto Sans SC", "PingFang SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible {
  outline: 3px solid rgba(242, 111, 61, 0.34);
  outline-offset: 3px;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
}

.ambient-one {
  top: -80px;
  left: -90px;
  background: rgba(217, 231, 124, 0.6);
}

.ambient-two {
  right: -100px;
  bottom: 8%;
  background: rgba(242, 111, 61, 0.24);
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 20px calc(112px + var(--safe-bottom));
  overflow: hidden;
  background:
    linear-gradient(rgba(245, 241, 232, 0.96), rgba(245, 241, 232, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 4px, rgba(32, 36, 30, 0.015) 5px);
  box-shadow: var(--shadow);
}

.app-view {
  display: none;
  padding-top: max(34px, env(safe-area-inset-top));
}

.app-view.is-active {
  display: block;
  animation: view-in 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

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

.topbar,
.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow,
.tiny-label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
.completion-card h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 9vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.045em;
}

.topbar .eyebrow,
.section-header .eyebrow {
  margin-bottom: 8px;
}

.avatar-button,
.icon-button,
.ghost-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  cursor: pointer;
}

.avatar-button {
  position: relative;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(32, 36, 30, 0.14);
  border-radius: 50%;
  background: var(--moss);
  color: #fff;
  font-family: "Noto Serif SC", serif;
  font-size: 17px;
}

.avatar-dot {
  position: absolute;
  right: -1px;
  bottom: 2px;
  width: 12px;
  height: 12px;
  border: 3px solid var(--canvas);
  border-radius: 50%;
  background: var(--orange);
}

.week-strip {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 13px;
  margin: 30px 0 16px;
}

.week-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13px 11px;
  border-radius: 18px;
  color: #fff;
  background: var(--moss);
}

.week-summary .tiny-label {
  color: rgba(255, 255, 255, 0.68);
  font-size: 9px;
}

.week-summary strong {
  margin-top: 4px;
  font-size: 17px;
}

.week-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  align-items: center;
}

.week-day {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}

.week-day span:last-child {
  display: grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}

.week-day.is-done span:last-child {
  color: var(--ink);
  background: var(--lime);
}

.week-day.is-today span:last-child {
  color: #fff;
  background: var(--orange);
  box-shadow: 0 7px 18px rgba(242, 111, 61, 0.3);
}

.today-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(32, 36, 30, 0.09);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 98% 0, rgba(217, 231, 124, 0.4), transparent 13rem),
    var(--paper);
  box-shadow: 0 18px 48px rgba(79, 72, 55, 0.09);
}

.today-card::after {
  position: absolute;
  top: -52px;
  right: -32px;
  width: 144px;
  height: 144px;
  border: 1px solid rgba(65, 87, 68, 0.16);
  border-radius: 44% 56% 55% 45%;
  content: "";
  transform: rotate(24deg);
}

.today-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}

.pill svg {
  width: 13px;
  height: 13px;
}

.pill-warm {
  color: #a43a16;
  background: #fee6d8;
}

.pill-dark {
  color: #fff;
  background: var(--moss);
}

.today-card h2 {
  max-width: 230px;
  margin: 16px 0 6px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

.today-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.duration-seal {
  display: flex;
  flex: 0 0 auto;
  width: 68px;
  height: 76px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(32, 36, 30, 0.12);
  border-radius: 45% 55% 50% 46%;
  background: rgba(255, 253, 248, 0.7);
  transform: rotate(4deg);
}

.duration-seal strong {
  font-family: "Noto Serif SC", serif;
  font-size: 24px;
  line-height: 1;
}

.duration-seal span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.move-preview {
  display: flex;
  align-items: center;
  margin: 28px 0 22px;
}

.move-token {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
}

.move-token svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.token-one { background: #dfeab2; }
.token-two { background: #f8d7c7; }
.token-three { background: #cddcd0; }

.move-line {
  width: 13px;
  height: 1px;
  background: var(--line);
}

.move-preview > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
}

.primary-button,
.outline-button {
  display: flex;
  width: 100%;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 18px;
  cursor: pointer;
  font-weight: 700;
}

.primary-button {
  border: 0;
  color: #fff;
  background: var(--orange);
  box-shadow: 0 12px 30px rgba(242, 111, 61, 0.26);
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button:hover { background: var(--orange-deep); }
.primary-button:active { transform: scale(0.985); }

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

.text-button,
.mini-link {
  border: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.text-button {
  display: block;
  margin: 14px auto -4px;
  padding: 5px;
  font-size: 12px;
}

.habit-card {
  display: flex;
  min-height: 144px;
  justify-content: space-between;
  margin-top: 16px;
  overflow: hidden;
  padding: 23px;
  border-radius: var(--radius-lg);
  color: #f8f6ef;
  background: var(--moss);
}

.habit-copy h2 {
  margin: 6px 0 5px;
  font-family: "Noto Serif SC", serif;
  font-size: 32px;
}

.habit-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.habit-card .tiny-label { color: rgba(255, 255, 255, 0.62); }

.habit-visual {
  position: relative;
  width: 132px;
  margin: -10px -8px -18px 0;
}

.sun-ring {
  position: absolute;
  top: 8px;
  right: 6px;
  width: 94px;
  height: 94px;
  border: 1px solid rgba(217, 231, 124, 0.45);
  border-radius: 50%;
}

.sun-ring::before,
.sun-ring::after {
  position: absolute;
  border-radius: 50%;
  content: "";
}

.sun-ring::before {
  inset: 12px;
  border: 1px solid rgba(217, 231, 124, 0.24);
}

.sun-ring::after {
  inset: 31px;
  background: var(--lime);
  box-shadow: 0 0 28px rgba(217, 231, 124, 0.3);
}

.leaf {
  position: absolute;
  bottom: 7px;
  width: 40px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 100% 0 100% 0;
  transform-origin: bottom;
}

.leaf-one { right: 52px; transform: rotate(-28deg); }
.leaf-two { right: 26px; transform: rotate(3deg) scale(0.8); }
.leaf-three { right: 0; transform: rotate(33deg) scale(0.65); }

.gentle-note {
  display: flex;
  gap: 15px;
  margin: 22px 2px 4px;
  padding: 16px 4px;
  color: var(--muted);
}

.gentle-note svg {
  flex: 0 0 auto;
  width: 19px;
  color: var(--orange);
}

.gentle-note p {
  margin: 0;
  font-family: "Noto Serif SC", serif;
  font-size: 14px;
  line-height: 1.7;
}

.bottom-nav {
  position: fixed;
  z-index: 20;
  right: 50%;
  bottom: 0;
  display: grid;
  width: min(100%, 460px);
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 30px var(--safe-bottom);
  border-top: 1px solid rgba(32, 36, 30, 0.08);
  background: rgba(255, 253, 248, 0.92);
  box-shadow: 0 -10px 40px rgba(65, 55, 38, 0.08);
  backdrop-filter: blur(18px);
  transform: translateX(50%);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
  color: #9c9b91;
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
}

.nav-item svg {
  width: 21px;
  height: 21px;
  stroke-width: 1.8;
}

.nav-item.is-active { color: var(--ink); }
.nav-item.is-active svg { fill: var(--lime); stroke: var(--ink); }

.section-header {
  margin-bottom: 28px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.7);
}

.icon-button svg { width: 19px; }

.plan-overview {
  position: relative;
  min-height: 198px;
  overflow: hidden;
  padding: 25px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: #20251f;
}

.plan-overview-copy { position: relative; z-index: 2; }
.plan-overview h2 { margin: 18px 0 8px; font-size: 24px; line-height: 1.4; }
.plan-overview p { max-width: 250px; margin: 0; color: rgba(255,255,255,.62); font-size: 12px; }

.plan-orbit {
  position: absolute;
  top: 20px;
  right: -44px;
  width: 178px;
  height: 178px;
  border: 1px solid rgba(217,231,124,.18);
  border-radius: 50%;
}

.plan-orbit::before,
.plan-orbit::after {
  position: absolute;
  border: 1px solid rgba(217,231,124,.14);
  border-radius: 50%;
  content: "";
}
.plan-orbit::before { inset: 25px; }
.plan-orbit::after { inset: 52px; background: rgba(217,231,124,.08); }
.plan-orbit span { position:absolute; width:12px; height:12px; border-radius:50%; background:var(--lime); }
.plan-orbit span:nth-child(1) { top: 6px; left: 45px; }
.plan-orbit span:nth-child(2) { right: 9px; bottom: 43px; transform: scale(.6); }
.plan-orbit span:nth-child(3) { left: 38px; bottom: 7px; transform: scale(.4); }

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 28px 2px 14px;
}

.section-title-row h2 { margin: 0; font-size: 18px; }
.section-title-row > span { color: var(--muted); font-size: 11px; }

.schedule-list,
.recent-list {
  display: grid;
  gap: 10px;
}

.schedule-item {
  display: grid;
  grid-template-columns: 47px 1fr auto;
  align-items: center;
  gap: 15px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 253, 248, 0.6);
}

.schedule-item.is-today {
  border-color: transparent;
  background: var(--paper);
  box-shadow: 0 15px 38px rgba(71, 64, 48, 0.08);
}

.schedule-date {
  display: flex;
  height: 56px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #ece8de;
}

.is-done .schedule-date { background: #e2e9c0; }
.is-today .schedule-date { color: #fff; background: var(--orange); }
.schedule-date span { font-size: 9px; }
.schedule-date strong { font-family: "Noto Serif SC", serif; font-size: 19px; }

.schedule-body h3 { margin: 4px 0; font-size: 14px; }
.schedule-body p { margin: 0; color: var(--muted); font-size: 10px; }
.status-label { display:flex; align-items:center; gap:3px; color:var(--orange-deep); font-size:9px; font-weight:700; }
.status-label svg { width: 11px; height: 11px; }
.is-done .status-label { color: #68793d; }
.schedule-item > svg { width: 16px; color: #aaa99f; }

.round-play {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  cursor: pointer;
}

.round-play svg { width: 16px; fill: currentColor; }

.outline-button {
  margin-top: 17px;
  border: 1px solid rgba(32, 36, 30, 0.16);
  background: transparent;
}

.outline-button svg { width: 17px; color: var(--orange); }

.record-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50% 50% 45% 55%;
  color: var(--moss);
  background: var(--lime);
  transform: rotate(8deg);
}

.record-mark svg { width: 23px; }

.record-hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius-xl);
  color: #fff;
  background: var(--orange);
}

.record-number span { display:block; color:rgba(255,255,255,.72); font-size:12px; }
.record-number strong { font-family:"Noto Serif SC",serif; font-size:68px; line-height:1.1; }
.record-number small { margin-left:4px; font-size:14px; }
.record-side-stats { display:grid; align-content:center; gap:17px; border-left:1px solid rgba(255,255,255,.24); padding-left:21px; }
.record-side-stats div { display:flex; flex-direction:column; }
.record-side-stats strong { font-size:23px; }
.record-side-stats span { color:rgba(255,255,255,.7); font-size:10px; }

.calendar-card {
  margin-top: 14px;
  padding: 5px 20px 20px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 15px 38px rgba(71, 64, 48, 0.06);
}

.calendar-card .section-title-row { margin-top: 19px; }
.calendar-weekdays,
.calendar-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:7px; text-align:center; }
.calendar-weekdays { margin-bottom:8px; color:#aaa99f; font-size:9px; }
.calendar-day { display:grid; aspect-ratio:1; place-items:center; border-radius:50%; color:#696b64; font-size:11px; }
.calendar-day.is-empty { visibility:hidden; }
.calendar-day.is-complete { color:var(--ink); background:var(--lime); font-weight:700; }
.calendar-day.is-today { outline:1.5px solid var(--orange); outline-offset:2px; }
.calendar-legend { display:flex; align-items:center; justify-content:flex-end; gap:5px; margin-top:14px; color:var(--muted); font-size:9px; }
.calendar-legend span { width:8px; height:8px; border-radius:50%; background:var(--lime); }

.recent-item {
  display: grid;
  grid-template-columns: 45px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--line);
}

.recent-icon { display:grid; width:43px; height:43px; place-items:center; border-radius:15px; background:#e3eac5; }
.recent-icon svg { width:20px; }
.recent-item h3 { margin:0 0 3px; font-size:13px; }
.recent-item p { margin:0; color:var(--muted); font-size:10px; }
.recent-item > strong { font-family:"Noto Serif SC",serif; font-size:14px; }
.recent-item > strong span { color:var(--muted); font-family:"Noto Sans SC",sans-serif; font-size:9px; font-weight:400; }

.workout-overlay,
.completion-overlay,
.sheet-overlay {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 260ms ease, visibility 260ms ease;
}

.workout-overlay.is-open,
.completion-overlay.is-open,
.sheet-overlay.is-open {
  visibility: visible;
  opacity: 1;
}

.workout-screen {
  display: flex;
  width: min(100%, 460px);
  min-height: 100dvh;
  flex-direction: column;
  padding: max(22px, env(safe-area-inset-top)) 22px max(30px, env(safe-area-inset-bottom));
  color: #fff;
  background:
    radial-gradient(circle at 50% 35%, rgba(217, 231, 124, 0.14), transparent 15rem),
    #20251f;
  transform: translateY(18px);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
}

.is-open .workout-screen { transform: translateY(0); }

.workout-header {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 15px;
}

.ghost-icon {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.04);
}

.ghost-icon svg { width:19px; }
.workout-progress-copy > span { display:block; margin-bottom:8px; color:rgba(255,255,255,.65); text-align:center; font-size:10px; }
.progress-track { height:4px; overflow:hidden; border-radius:999px; background:rgba(255,255,255,.12); }
.progress-track span { display:block; width:20%; height:100%; border-radius:inherit; background:var(--lime); transition:width 300ms ease; }

.exercise-stage {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.exercise-illustration {
  position: relative;
  display: grid;
  width: min(70vw, 270px);
  aspect-ratio: 1;
  place-items: center;
  margin: 3vh 0 4vh;
  border-radius: 42% 58% 53% 47%;
  color: var(--ink);
  background: var(--lime);
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0%, 100% { border-radius: 42% 58% 53% 47%; transform: scale(1); }
  50% { border-radius: 55% 45% 43% 57%; transform: scale(1.025); }
}

.exercise-illustration > svg { width:40%; height:40%; stroke-width:1.2; }
.motion-ring { position:absolute; border:1px solid rgba(32,36,30,.16); border-radius:50%; }
.ring-one { inset:22px; }
.ring-two { inset:48px; }
.exercise-type { color:var(--lime); font-size:10px; font-weight:700; letter-spacing:.12em; }
.exercise-stage h2 { margin:9px 0 7px; font-family:"Noto Serif SC",serif; font-size:34px; }
.exercise-stage > p { margin:0; color:rgba(255,255,255,.58); font-size:12px; }
.timer { display:flex; align-items:baseline; margin-top:23px; }
.timer strong { font-family:"Noto Serif SC",serif; font-size:58px; line-height:1; }
.timer span { margin-left:6px; color:rgba(255,255,255,.5); font-size:12px; }

.workout-controls {
  display: grid;
  grid-template-columns: 1fr 82px 1fr;
  align-items: center;
  gap: 20px;
}

.control-secondary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  border: 0;
  color: rgba(255,255,255,.58);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
}

.control-secondary svg { width:19px; }
.pause-button { display:grid; width:82px; height:82px; place-items:center; border:0; border-radius:50%; color:var(--ink); background:var(--lime); cursor:pointer; box-shadow:0 14px 40px rgba(0,0,0,.2); }
.pause-button svg { width:26px; height:26px; fill:currentColor; }

.completion-overlay {
  padding: 20px;
  background: rgba(32, 37, 31, 0.74);
  backdrop-filter: blur(12px);
}

.completion-card {
  width: min(100%, 416px);
  padding: 36px 25px 26px;
  border-radius: 38px;
  text-align: center;
  background: var(--paper);
  box-shadow: var(--shadow);
  transform: scale(.92) translateY(20px);
  transition:transform 360ms cubic-bezier(.2,.9,.2,1.1);
}

.is-open .completion-card { transform:scale(1) translateY(0); }
.completion-bloom { position:relative; display:grid; width:100px; height:100px; place-items:center; margin:0 auto 56px; }
.completion-bloom span { position:absolute; width:44px; height:66px; border-radius:50%; background:var(--lime); transform-origin:50% 76%; }
.completion-bloom span:nth-child(1) { transform:rotate(0deg) translateY(-19px); }
.completion-bloom span:nth-child(2) { transform:rotate(72deg) translateY(-19px); }
.completion-bloom span:nth-child(3) { transform:rotate(144deg) translateY(-19px); }
.completion-bloom span:nth-child(4) { transform:rotate(216deg) translateY(-19px); }
.completion-bloom span:nth-child(5) { transform:rotate(288deg) translateY(-19px); }
.completion-bloom i { position:relative; z-index:2; display:grid; width:52px; height:52px; place-items:center; border-radius:50%; background:var(--moss); }
.completion-bloom svg { position:relative; z-index:3; width:28px; color:#fff; }
.completion-card .eyebrow { position:relative; z-index:3; color:var(--orange); }
.completion-card h2 { margin:10px 0 24px; font-size:27px; line-height:1.45; }
.completion-stats { display:grid; grid-template-columns:repeat(3,1fr); padding:15px 0; border-block:1px solid var(--line); }
.completion-stats div { display:flex; flex-direction:column; }
.completion-stats div + div { border-left:1px solid var(--line); }
.completion-stats strong { font-family:"Noto Serif SC",serif; font-size:24px; }
.completion-stats span { color:var(--muted); font-size:9px; }
.completion-note { margin:20px 0; color:var(--muted); font-size:12px; line-height:1.7; }

.sheet-overlay {
  align-items: end;
  background: rgba(32,37,31,.54);
  backdrop-filter: blur(8px);
}

.sheet {
  width: min(100%, 460px);
  max-height: 92dvh;
  overflow-y: auto;
  padding: 12px 22px calc(24px + var(--safe-bottom));
  border-radius: 32px 32px 0 0;
  background: var(--paper);
  transform: translateY(100%);
  transition: transform 360ms cubic-bezier(.2,.8,.2,1);
}

.is-open .sheet { transform:translateY(0); }
.sheet-handle { width:42px; height:4px; margin:0 auto 22px; border-radius:999px; background:#d8d4ca; }
.sheet-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; }
.sheet-header h2 { margin:7px 0 22px; font-size:24px; }
fieldset { margin:0 0 21px; padding:0; border:0; }
legend { margin-bottom:10px; font-size:12px; font-weight:700; }
.choice-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.choice { min-height:45px; padding:8px; border:1px solid var(--line); border-radius:14px; color:var(--muted); background:transparent; cursor:pointer; font-size:11px; }
.choice.is-selected { border-color:var(--moss); color:#fff; background:var(--moss); }

.reveal {
  animation: reveal-up 620ms cubic-bezier(.2,.8,.2,1) both;
}

.delay-1 { animation-delay: 80ms; }
.delay-2 { animation-delay: 150ms; }
.delay-3 { animation-delay: 220ms; }
.delay-4 { animation-delay: 290ms; }

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 700px) {
  body { padding: 26px 0; }
  .app-shell { min-height: calc(100dvh - 52px); border-radius: 38px; }
  .bottom-nav { bottom: 26px; border-radius: 0 0 38px 38px; }
  .workout-screen { min-height: calc(100dvh - 52px); border-radius:38px; }
}

@media (max-width: 370px) {
  .app-shell { padding-inline: 15px; }
  .today-card { padding: 20px; }
  .today-card h2 { font-size: 22px; }
  .duration-seal { width: 58px; height: 66px; }
  .choice-grid { grid-template-columns:1fr; }
  .choice-grid.three { grid-template-columns:repeat(3,1fr); }
}

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

/* v1 product flows */
.is-hidden { display: none !important; }
.visually-hidden { position:absolute !important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

.week-progress {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 0 4px;
}

.progress-copy { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; color:var(--muted); font-size:10px; }
.progress-copy strong { color:var(--ink); font-size:12px; }
.progress-track.light { height:7px; background:rgba(32,36,30,.09); }
.progress-track.light span { width:0; background:var(--orange); transition:width .4s ease; }

.resume-card {
  display:grid;
  grid-template-columns:42px 1fr auto;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  padding:13px 14px;
  border-radius:18px;
  color:#fff;
  background:var(--moss);
}

.resume-icon { display:grid; width:38px; height:38px; place-items:center; border-radius:13px; color:var(--ink); background:var(--lime); }
.resume-icon svg { width:18px; }
.resume-card div:nth-child(2) { display:flex; min-width:0; flex-direction:column; }
.resume-card div:nth-child(2) span { color:rgba(255,255,255,.58); font-size:9px; }
.resume-card div:nth-child(2) strong { overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
.resume-card button { border:0; border-radius:999px; padding:8px 12px; color:var(--ink); background:var(--lime); cursor:pointer; font-size:10px; font-weight:700; }

.plan-route { display:flex; align-items:center; min-height:58px; margin:26px 0 20px; }
.route-step { display:flex; flex:1; min-width:0; align-items:center; }
.route-step:last-child { flex:0 0 auto; }
.route-icon { display:grid; width:39px; height:39px; flex:0 0 auto; place-items:center; border-radius:13px; background:#e4eac7; }
.route-icon svg { width:19px; }
.route-line { width:100%; height:1px; margin:0 5px; background:var(--line); }
.route-label { display:block; margin-top:5px; color:var(--muted); text-align:center; font-size:8px; }
.button-footnote { margin:10px 0 -5px; color:var(--muted); text-align:center; font-size:10px; }

.plan-week { margin-top:28px; }
.plan-week-head { display:flex; align-items:flex-end; justify-content:space-between; margin-bottom:12px; }
.plan-week-head div { display:flex; align-items:baseline; gap:8px; }
.plan-week-head h2 { margin:0; font-family:"Noto Serif SC",serif; font-size:22px; }
.plan-week-head span { color:var(--muted); font-size:10px; }
.plan-week-head > strong { font-size:11px; }

.session-list { display:grid; gap:10px; }
.session-card { display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:13px; padding:15px; border:1px solid var(--line); border-radius:21px; background:rgba(255,253,248,.65); }
.session-card.is-next { border-color:transparent; background:var(--paper); box-shadow:0 14px 35px rgba(71,64,48,.09); }
.session-card.is-complete { opacity:.68; }
.session-index { display:grid; width:46px; height:52px; place-items:center; border-radius:15px; color:var(--moss); background:#e4eac7; font-family:"Noto Serif SC",serif; font-size:18px; }
.session-card.is-next .session-index { color:#fff; background:var(--orange); }
.session-card.is-complete .session-index { color:#fff; background:var(--moss); }
.session-copy { min-width:0; }
.session-copy span { color:var(--orange-deep); font-size:9px; font-weight:700; }
.session-copy h3 { margin:3px 0; overflow:hidden; font-size:13px; text-overflow:ellipsis; white-space:nowrap; }
.session-copy p { margin:0; color:var(--muted); font-size:9px; }
.session-action { display:grid; width:36px; height:36px; place-items:center; border:0; border-radius:50%; color:#fff; background:var(--orange); cursor:pointer; }
.session-action svg { width:15px; }
.session-check { color:var(--moss); }
.session-check svg { width:20px; }

.journey-grid { display:grid; grid-template-columns:repeat(8,1fr); gap:7px; }
.journey-dot { display:flex; flex-direction:column; align-items:center; gap:6px; color:var(--muted); font-size:8px; }
.journey-dot span { display:grid; width:31px; height:31px; place-items:center; border:1px solid var(--line); border-radius:50%; background:#f3efe7; }
.journey-dot.is-complete span { border-color:transparent; color:var(--ink); background:var(--lime); }
.journey-dot.is-optional span { border-style:dashed; }
.journey-note { margin:16px 0 0; color:var(--muted); font-size:9px; line-height:1.6; }

.empty-record { padding:30px 12px; border:1px dashed var(--line); border-radius:20px; color:var(--muted); text-align:center; }
.empty-record i { display:grid; width:44px; height:44px; margin:0 auto 10px; place-items:center; border-radius:50%; color:var(--moss); background:#e4eac7; }
.empty-record svg { width:20px; }
.empty-record p { margin:0; font-size:11px; }
.record-badge { display:grid; width:44px; height:44px; place-items:center; border-radius:15px; background:#e4eac7; }
.record-badge svg { width:19px; }
.recent-item .record-status { display:block; margin-top:2px; color:var(--orange-deep); font-size:8px; }

.compact-sheet { padding-bottom:calc(24px + var(--safe-bottom)); }
.compact-sheet > h2 { margin:7px 0 8px; font-family:"Noto Serif SC",serif; font-size:27px; }
.sheet-intro { margin:0 0 20px; color:var(--muted); font-size:12px; line-height:1.7; }
.feeling-list { display:grid; gap:9px; }
.feeling-list button { display:grid; grid-template-columns:45px 1fr 20px; align-items:center; gap:12px; min-height:70px; padding:11px 15px; border:1px solid var(--line); border-radius:20px; text-align:left; background:#faf7f0; cursor:pointer; }
.feeling-list button:hover { border-color:rgba(242,111,61,.5); background:#fff9f4; }
.feeling-face { display:grid; width:43px; height:43px; place-items:center; border-radius:50%; background:var(--lime); font-family:"Noto Serif SC",serif; font-size:23px; }
.feeling-list button > span:nth-child(2) { display:flex; flex-direction:column; }
.feeling-list strong { font-size:13px; }
.feeling-list small { margin-top:3px; color:var(--muted); font-size:9px; }
.feeling-list svg { width:16px; color:var(--muted); }

.workout-screen { overflow:hidden; }
.exercise-stage { min-height:0; }
.exercise-stage h2 { max-width:100%; }
.exercise-stage > p { color:#fff; font-family:"Noto Serif SC",serif; font-size:20px; }
.exercise-illustration { width:min(58vw,235px); margin:2.5vh 0 3vh; }
.cue-card { display:flex; max-width:330px; align-items:flex-start; gap:9px; margin-top:22px; padding:13px 15px; border:1px solid rgba(255,255,255,.11); border-radius:16px; color:rgba(255,255,255,.67); text-align:left; background:rgba(255,255,255,.04); font-size:10px; line-height:1.6; }
.cue-card svg { width:15px; flex:0 0 auto; color:var(--lime); }
.cue-card.is-collapsed { visibility:hidden; }
.workout-controls { grid-template-columns:94px 1fr; gap:12px; }
.complete-action { display:flex; min-height:62px; align-items:center; justify-content:center; gap:9px; border:0; border-radius:20px; color:var(--ink); background:var(--lime); cursor:pointer; font-weight:700; }
.complete-action svg { width:20px; }
.control-secondary { min-height:62px; justify-content:center; border:1px solid rgba(255,255,255,.12); border-radius:20px; }
.switch-stage { text-align:center; }
.switch-visual { display:flex; width:min(76vw,310px); height:190px; flex-direction:column; align-items:center; justify-content:center; gap:10px; margin:5vh 0 4vh; border:1px solid rgba(217,231,124,.28); border-radius:38px; color:var(--ink); background:var(--lime); transform:rotate(-2deg); }
.switch-visual svg { width:70px; height:70px; stroke-width:1.25; }
.switch-visual span { font-size:12px; font-weight:700; }
.switch-stage > p { max-width:300px; color:rgba(255,255,255,.58); font-family:"Noto Sans SC",sans-serif; font-size:11px; line-height:1.7; }
.switch-timer { display:flex; flex-direction:column; margin:21px 0 14px; }
.switch-timer strong { font-family:"Noto Serif SC",serif; font-size:47px; }
.switch-timer span { color:rgba(255,255,255,.45); font-size:9px; }
.outline-dark-button { display:flex; min-height:46px; align-items:center; justify-content:center; gap:7px; padding:0 18px; border:1px solid rgba(255,255,255,.15); border-radius:15px; color:#fff; background:transparent; cursor:pointer; }
.outline-dark-button svg { width:16px; }
.switch-controls { margin-top:auto; }

.pause-orbit { display:grid; width:72px; height:72px; margin:4px auto 18px; place-items:center; border-radius:50%; color:var(--ink); background:var(--lime); }
.pause-orbit svg { width:26px; fill:currentColor; }
.compact-sheet .outline-button { margin-top:9px; }

.completion-actions { display:grid; gap:2px; }
.completion-actions .primary-button svg { width:17px; }

.settings-group { margin-bottom:24px; }
.settings-group h3 { margin:0 0 9px 3px; color:var(--muted); font-size:10px; letter-spacing:.08em; }
.settings-row { display:grid; width:100%; grid-template-columns:42px 1fr 18px; align-items:center; gap:12px; padding:13px 4px; border:0; border-bottom:1px solid var(--line); color:inherit; text-align:left; text-decoration:none; background:transparent; cursor:pointer; }
.settings-icon { display:grid; width:40px; height:40px; place-items:center; border-radius:13px; background:#e4eac7; }
.settings-icon svg { width:18px; }
.settings-row > span:nth-child(2) { display:flex; flex-direction:column; }
.settings-row strong { font-size:12px; }
.settings-row small { margin-top:3px; color:var(--muted); font-size:9px; }
.settings-row > svg { width:15px; color:var(--muted); }
.profile-note { padding:18px; border-radius:18px; background:#f0ece3; }
.profile-note strong { font-size:12px; }
.profile-note p { margin:7px 0 0; color:var(--muted); font-size:10px; line-height:1.65; }

.toast { position:fixed; z-index:300; left:50%; bottom:110px; max-width:calc(100% - 40px); padding:11px 17px; border-radius:999px; color:#fff; background:rgba(32,36,30,.92); box-shadow:0 12px 35px rgba(0,0,0,.18); opacity:0; pointer-events:none; transform:translate(-50%,12px); transition:.25s ease; font-size:11px; }
.toast.is-visible { opacity:1; transform:translate(-50%,0); }

@media (max-height: 720px) {
  .exercise-illustration { width:min(45vw,190px); margin:1vh 0 2vh; }
  .exercise-stage h2 { font-size:28px; }
  .cue-card { margin-top:12px; }
  .switch-visual { height:145px; margin:2vh 0; }
}

/* reviewer workspace */
.review-body { min-height:100vh; padding:0; background:#eee9de; }
.review-shell { width:min(1180px,calc(100% - 36px)); margin:0 auto; padding:42px 0 80px; }
.review-header { padding:34px; border-radius:34px; color:#fff; background:var(--moss); box-shadow:var(--shadow); }
.review-back { display:inline-flex; align-items:center; gap:7px; color:rgba(255,255,255,.7); text-decoration:none; font-size:11px; }
.review-back svg { width:16px; }
.review-title-row { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; margin-top:38px; }
.review-title-row .eyebrow { color:var(--lime); }
.review-title-row h1 { margin:5px 0 10px; font-size:48px; }
.review-title-row p:last-child { max-width:610px; margin:0; color:rgba(255,255,255,.62); font-size:12px; line-height:1.7; }
.review-counter { display:flex; flex-direction:column; align-items:flex-end; }
.review-counter strong { color:var(--lime); font-family:"Noto Serif SC",serif; font-size:54px; line-height:1; }
.review-counter span { margin-top:6px; color:rgba(255,255,255,.5); font-size:10px; }
.review-actions { display:flex; flex-wrap:wrap; gap:9px; margin-top:30px; }
.review-actions .primary-button { width:auto; min-height:46px; padding:0 18px; }
.review-secondary { display:flex; min-height:46px; align-items:center; justify-content:center; gap:7px; padding:0 16px; border:1px solid rgba(255,255,255,.15); border-radius:15px; color:#fff; background:rgba(255,255,255,.04); cursor:pointer; font-size:11px; font-weight:700; }
.review-secondary svg { width:16px; }
.review-filter { display:flex; gap:8px; margin:22px 0; overflow-x:auto; padding:2px; }
.review-filter button { flex:0 0 auto; padding:10px 17px; border:1px solid var(--line); border-radius:999px; color:var(--muted); background:rgba(255,253,248,.55); cursor:pointer; font-size:10px; }
.review-filter button.is-active { border-color:var(--moss); color:#fff; background:var(--moss); }
.review-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.review-card { position:relative; overflow:hidden; padding:23px; border:1px solid rgba(32,36,30,.09); border-radius:26px; background:var(--paper); box-shadow:0 12px 32px rgba(70,62,48,.06); }
.review-card.is-rejected { opacity:.55; filter:grayscale(.5); }
.review-card-head { display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:12px; }
.review-card-icon { display:grid; width:46px; height:46px; place-items:center; border-radius:15px; background:var(--lime); }
.review-card-icon svg { width:21px; }
.review-card-head div > span { color:var(--orange-deep); font-size:9px; font-weight:700; }
.review-card-head h2 { margin:3px 0 0; font-size:16px; }
.approval-toggle { display:flex !important; align-items:center; gap:7px; margin:0 !important; }
.approval-toggle input { position:absolute; opacity:0; pointer-events:none; }
.approval-toggle > span { position:relative; width:38px; height:22px; border-radius:999px; background:#d6d2c9; transition:.2s ease; }
.approval-toggle > span::after { position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%; background:#fff; content:""; transition:.2s ease; }
.approval-toggle input:checked + span { background:var(--moss); }
.approval-toggle input:checked + span::after { transform:translateX(16px); }
.approval-toggle small { color:var(--muted); font-size:8px; }
.review-meta { display:flex; flex-wrap:wrap; gap:6px; margin:18px 0; }
.review-meta span { padding:5px 9px; border-radius:999px; color:var(--muted); background:#f0ece3; font-size:8px; }
.review-card > label { display:block; margin-top:12px; color:var(--muted); font-size:9px; font-weight:700; }
.review-card input[type="text"], .review-card textarea { width:100%; margin-top:6px; padding:11px 12px; border:1px solid var(--line); border-radius:12px; color:var(--ink); background:#fbf8f2; outline:0; resize:vertical; font:500 11px/1.6 "Noto Sans SC",sans-serif; }
.review-card input:focus, .review-card textarea:focus { border-color:var(--orange); box-shadow:0 0 0 3px rgba(242,111,61,.1); }
.review-index { position:absolute; right:18px; bottom:4px; color:rgba(32,36,30,.15); font-family:"Noto Serif SC",serif; font-size:11px; }

@media (max-width: 760px) {
  .review-shell { width:min(100% - 24px,600px); padding-top:12px; }
  .review-header { padding:24px; border-radius:25px; }
  .review-title-row { display:block; margin-top:28px; }
  .review-title-row h1 { font-size:37px; }
  .review-counter { align-items:flex-start; margin-top:24px; }
  .review-grid { grid-template-columns:1fr; }
  .review-card { padding:19px; }
  .review-card-head { grid-template-columns:44px 1fr; }
  .approval-toggle { grid-column:1 / -1; justify-content:flex-end; }
}

/* orange mascot direction */
:root {
  --canvas: #ffab0b;
  --paper: #fffaf1;
  --ink: #2d241d;
  --muted: #806d5d;
  --line: rgba(77, 48, 25, 0.13);
  --orange: #ff6f32;
  --orange-deep: #e94c1c;
  --lime: #ffd349;
  --moss: #463328;
  --sage: #ffd98b;
  --shadow: 0 24px 70px rgba(124, 67, 8, 0.18);
}

html { background:#f2ece2; }
body { background:radial-gradient(circle at 16% 8%,#ffd253 0,transparent 24rem),radial-gradient(circle at 90% 82%,#ff793b55 0,transparent 25rem),#f2ece2; font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif; }
h1,.completion-card h2,.exercise-stage h2,.review-title-row h1 { font-family:"Songti SC","STSong",serif; }
.ambient-one { background:#ffca39; }
.ambient-two { background:#ff7438; }
.app-shell { background:linear-gradient(180deg,#ffad0b 0,#ffa20d 58%,#fff4e5 100%); }
.app-view { min-height:calc(100dvh - 110px); }
.playful-topbar .eyebrow,.section-header .eyebrow { color:rgba(255,255,255,.74); }
.playful-topbar h1,.section-header h1 { color:#fff; text-shadow:0 3px 0 rgba(173,74,0,.08); }
.playful-topbar h1 { font-size:42px; }
.avatar-button { border-color:rgba(255,255,255,.55); color:var(--orange-deep); background:#fff; box-shadow:0 10px 24px rgba(129,72,0,.16); }
.avatar-dot { border-color:#ffab0b; background:#fff36d; }

.focus-nav { display:grid; grid-template-columns:repeat(5,1fr); gap:2px; margin:25px -4px 22px; }
.focus-nav button { position:relative; border:0; padding:8px 2px 16px; color:rgba(255,255,255,.68); background:transparent; cursor:pointer; font-size:13px; font-weight:600; }
.focus-nav button.is-active { color:#fff; }
.focus-nav button.is-active::after { position:absolute; bottom:3px; left:50%; width:7px; height:7px; border-radius:50%; background:#ffe064; content:""; transform:translateX(-50%); box-shadow:0 0 0 5px rgba(255,224,100,.15); }

.week-strip { margin-top:4px; padding:14px; border:1px solid rgba(255,255,255,.22); border-radius:21px; background:rgba(255,255,255,.13); backdrop-filter:blur(10px); }
.week-summary { padding:3px 5px; color:#fff; background:transparent; }
.week-summary .tiny-label { color:rgba(255,255,255,.7); }
.week-progress .progress-copy { color:rgba(255,255,255,.7); }
.week-progress .progress-copy strong { color:#fff; }
.progress-track.light { background:rgba(255,255,255,.22); }
.progress-track.light span { background:#fff2a1; }

.today-card { border:0; background:linear-gradient(180deg,#fffaf1,#fff5de); box-shadow:0 22px 50px rgba(149,78,0,.22); }
.today-card::after { border-color:rgba(255,143,23,.22); }
.pill-warm { color:#cb461a; background:#ffe0c3; }
.duration-seal { border-color:rgba(255,111,50,.3); background:#fff3cc; }
.today-mascot { position:relative; height:285px; margin:22px -8px 18px; overflow:hidden; border-radius:27px; background:#3a2a22; box-shadow:0 14px 30px rgba(79,43,8,.16); }
.today-mascot img { width:100%; height:100%; object-fit:cover; object-position:center 42%; }
.today-mascot::after { position:absolute; inset:auto 0 0; height:35%; background:linear-gradient(transparent,rgba(0,0,0,.42)); content:""; }
.today-mascot span { position:absolute; z-index:2; left:16px; bottom:15px; padding:7px 11px; border-radius:999px; color:#fff; background:rgba(255,111,50,.94); font-size:10px; font-weight:700; }
.route-icon { background:#ffe5a0; }
.primary-button { background:linear-gradient(135deg,#ff803a,#ff5d28); box-shadow:0 13px 28px rgba(255,91,33,.28); }
.primary-button:hover { background:#f45420; }

.habit-card { border:1px solid rgba(255,255,255,.25); color:#fff; background:rgba(132,64,0,.28); backdrop-filter:blur(10px); box-shadow:0 16px 38px rgba(118,63,0,.12); }
.habit-copy p,.habit-card .tiny-label { color:rgba(255,255,255,.72); }
.sun-ring { border-color:rgba(255,255,255,.48); }
.sun-ring::after { background:#fff27a; }
.leaf { border-color:rgba(255,255,255,.55); }
.gentle-note { color:#fff; }
.gentle-note svg { color:#fff0a2; }
.bottom-nav { border-top:0; background:rgba(255,250,241,.96); box-shadow:0 -10px 35px rgba(124,67,8,.11); }
.nav-item.is-active { color:#e85822; }
.nav-item.is-active svg { fill:#ffd349; stroke:#e85822; }

.section-header .record-mark { border-color:rgba(255,255,255,.45); color:#e65621; background:#fff; }
.plan-overview { color:var(--ink); background:#fffaf1; box-shadow:0 20px 44px rgba(137,74,2,.18); }
.plan-overview .pill-dark { color:#fff; background:#ff6f32; }
.plan-overview p { color:var(--muted); }
.plan-orbit { border-color:rgba(255,152,20,.2); }
.plan-orbit::before,.plan-orbit::after { border-color:rgba(255,152,20,.18); }
.plan-orbit::after { background:rgba(255,193,46,.16); }
.plan-orbit span { background:#ffad0b; }
.plan-week-head h2,.plan-week-head > strong { color:#fff; }
.plan-week-head span { color:rgba(255,255,255,.65); }
.session-card { border:0; background:#fffaf1; box-shadow:0 12px 28px rgba(127,65,0,.1); }
.session-card.is-next { box-shadow:0 18px 38px rgba(136,64,0,.2); }
.session-index { color:#d75320; background:#ffe39a; }
.session-card.is-next .session-index { background:#ff6f32; }
.session-copy span { color:#ee5d27; }
.session-action { background:#ff6f32; }

.record-hero { color:var(--ink); background:#fffaf1; box-shadow:0 18px 42px rgba(130,69,0,.16); }
.record-number strong { color:#ff6f32; }
.record-number span,.record-side-stats span { color:var(--muted); }
.record-side-stats { border-color:var(--line); }
.calendar-card { box-shadow:0 15px 36px rgba(130,69,0,.12); }
.recent-section .section-title-row h2,.recent-section .section-title-row > span { color:#fff; }
.recent-list { padding:0 14px; border-radius:22px; background:#fffaf1; }
.record-badge { background:#ffe39a; }

.workout-screen { overflow-y:auto; color:#fff; background:linear-gradient(180deg,#ffad0b 0,#ff9412 58%,#ff7b27 100%); }
.ghost-icon { border-color:rgba(255,255,255,.5); background:rgba(255,255,255,.1); }
.workout-progress-copy > span { color:#fff; }
.workout-header .progress-track { background:rgba(255,255,255,.28); }
.workout-header .progress-track span { background:#fff5a6; }
.exercise-stage { flex:0 0 auto; padding-bottom:16px; }
.exercise-illustration { width:100%; max-width:356px; aspect-ratio:4/4.3; margin:3vh 0 2vh; overflow:hidden; border:2px solid rgba(255,255,255,.45); border-radius:30px; background:#33271f; animation:none; box-shadow:0 18px 42px rgba(116,54,0,.25); }
.exercise-illustration img { width:100%; height:100%; object-fit:cover; }
.exercise-type { color:#fff5a6; }
.exercise-stage h2 { margin-top:6px; color:#fff; font-size:38px; text-shadow:0 4px 0 rgba(145,57,0,.12); }
.exercise-stage > p { color:#fff; }
.cue-card { border:0; color:var(--ink); background:#fffaf1; box-shadow:0 10px 28px rgba(139,66,0,.16); }
.cue-card svg { color:#ff6f32; }
.technique-grid { display:grid; width:100%; max-width:356px; grid-template-columns:1fr 1fr; gap:9px; margin-top:10px; text-align:left; }
.technique-grid article { padding:13px; border-radius:17px; color:var(--ink); background:#fffaf1; box-shadow:0 9px 24px rgba(139,66,0,.11); }
.technique-grid span { display:block; margin-bottom:5px; color:#ff6f32; font-size:9px; font-weight:700; }
.technique-grid strong { display:block; font-size:10px; line-height:1.55; }
.workout-controls { position:sticky; bottom:0; z-index:3; padding-top:12px; background:linear-gradient(transparent,#ff7b27 22%); }
.control-secondary { border-color:rgba(255,255,255,.52); color:#fff; background:rgba(255,255,255,.1); }
.complete-action { color:#d94e1c; background:#fffaf1; box-shadow:0 12px 28px rgba(120,46,0,.2); }
.switch-visual { width:100%; max-width:356px; height:345px; overflow:hidden; margin:3vh 0 2vh; border:2px solid rgba(255,255,255,.45); border-radius:30px; background:#fff3b4; transform:none; box-shadow:0 18px 42px rgba(116,54,0,.22); }
.switch-visual img { width:100%; height:100%; object-fit:cover; }
.switch-stage > p { color:rgba(255,255,255,.82); }
.outline-dark-button { border-color:rgba(255,255,255,.55); background:rgba(255,255,255,.12); }
.switch-controls { position:sticky; bottom:0; padding-top:12px; background:linear-gradient(transparent,#ff7b27 24%); }
.completion-overlay { background:rgba(91,43,0,.64); }
.completion-card { background:#fff8e9; }
.completion-bloom span { background:#ffd349; }
.completion-bloom i { background:#ff6f32; }

.sheet { background:#fff8e9; }
.feeling-face { color:#d84d1c; background:#ffd349; }
.feeling-list button { background:#fffdf7; }
.feeling-list button:hover { background:#fff2d2; }
.settings-icon { color:#d8521f; background:#ffe39a; }
.profile-note { background:#ffebbd; }

.review-body { background:linear-gradient(180deg,#ffad0b 0,#ff9413 420px,#fff0d5 760px); }
.review-header { position:relative; overflow:hidden; color:#fff; background:linear-gradient(135deg,#ff7b27,#ff9f0c); box-shadow:0 24px 60px rgba(138,67,0,.25); }
.review-title-row { align-items:center; }
.review-title-row .eyebrow { color:#fff5a6; }
.review-title-row p:last-child { color:rgba(255,255,255,.78); }
.review-hero-art { position:relative; display:flex; min-width:340px; align-items:center; justify-content:flex-end; gap:18px; }
.review-hero-art img { width:180px; height:205px; border:2px solid rgba(255,255,255,.4); border-radius:25px; object-fit:cover; box-shadow:0 14px 34px rgba(117,45,0,.24); }
.review-counter { align-items:flex-start; }
.review-counter strong { color:#fff6a0; }
.review-counter span { color:rgba(255,255,255,.78); }
.review-actions .primary-button { color:#d84d1d; background:#fff; box-shadow:none; }
.review-filter button { background:#fff7e7; }
.review-filter button.is-active { border-color:#ff6f32; background:#ff6f32; }
.review-card { border:0; box-shadow:0 14px 34px rgba(135,70,0,.1); }
.review-card-icon { color:#d84e1c; background:#ffd349; }
.approval-toggle input:checked + span { background:#ff6f32; }
.review-meta span { background:#fff0cf; }
.review-knowledge { display:grid; grid-template-columns:1fr 1.3fr; gap:8px; margin-bottom:15px; }
.review-knowledge section { padding:12px; border-radius:15px; background:#fff2d4; }
.review-knowledge span { display:block; margin-bottom:5px; color:#ff6f32; font-size:9px; font-weight:700; }
.review-knowledge p { margin:0; color:var(--ink); font-size:10px; line-height:1.55; }
.review-card input[type="text"],.review-card textarea { background:#fffaf1; }
.review-card input:focus,.review-card textarea:focus { border-color:#ff6f32; }

@media (max-width:760px) {
  .review-body { background:linear-gradient(180deg,#ffad0b 0,#ff9413 330px,#fff0d5 680px); }
  .review-hero-art { min-width:0; justify-content:space-between; margin-top:22px; }
  .review-hero-art img { width:120px; height:142px; }
  .review-counter { margin-top:0; }
  .review-title-row { display:block; }
  .playful-topbar h1 { font-size:38px; }
  .today-mascot { height:260px; }
}

/* fluffy mascot + four-way strength split */
:root {
  --orange-sun: #ff9418;
  --orange-hot: #ff632f;
  --cream: #fff8e9;
  --cream-deep: #ffedc6;
  --forest: #233c31;
  --forest-soft: #315244;
  --yellow: #ffe16a;
}

.hero-subtitle {
  max-width: 285px;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1.7;
}

.today-card {
  overflow: hidden;
}

.today-card-head {
  position: relative;
  z-index: 2;
}

.today-card h2 {
  max-width: 240px;
  line-height: 1.25;
}

.today-mascot {
  height: 310px;
  background: #a9602c;
}

.today-mascot img {
  object-position: center;
  transition: transform 480ms cubic-bezier(.2,.8,.2,1);
}

.today-card:hover .today-mascot img {
  transform: scale(1.025);
}

.route-label {
  max-width: 52px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workout-screen {
  height: 100dvh;
  min-height: 0;
  padding-inline: 18px;
  background:
    radial-gradient(circle at 90% 8%, rgba(255, 235, 132, .44), transparent 14rem),
    linear-gradient(180deg, #ffad18 0%, #ff8b1d 46%, #ff6b31 100%);
}

.workout-overlay {
  place-items: start center;
}

.workout-header {
  position: sticky;
  z-index: 10;
  top: 0;
  padding: 0 0 12px;
  background: linear-gradient(#ffad18 70%, transparent);
}

.exercise-stage#guidedStage {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
  align-items: stretch;
  justify-content: flex-start;
  text-align: left;
}

.exercise-title-grid {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: end;
  gap: 13px;
  margin: 10px 1px 13px;
}

.exercise-title-grid > div:first-child {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.exercise-sequence {
  color: rgba(255, 255, 255, .55);
  font: 800 36px/1 "Avenir Next Condensed", "Arial Narrow", sans-serif;
  letter-spacing: -.06em;
}

.exercise-title-grid .exercise-type {
  overflow: hidden;
  color: #fff5b2;
  font-size: 8px;
  letter-spacing: .05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exercise-title-grid h2 {
  margin: 0 0 4px;
  color: #fff;
  font-family: "STKaiti", "Kaiti SC", "Songti SC", serif;
  font-size: clamp(29px, 8.5vw, 38px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.05em;
  text-align: left;
}

.exercise-title-grid p {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.exercise-illustration {
  width: 100%;
  max-width: none;
  aspect-ratio: 1 / .92;
  margin: 0 0 12px;
  border: 1px solid rgba(255, 255, 255, .6);
  border-radius: 28px;
  background: #6b4026;
}

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

.exercise-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 16px;
  color: var(--ink);
  text-align: left;
}

.exercise-detail-grid.is-collapsed {
  display: none;
}

.detail-card {
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(100, 53, 14, .08);
  border-radius: 19px;
  background: rgba(255, 250, 239, .98);
  box-shadow: 0 12px 28px rgba(126, 54, 0, .13);
}

.detail-label {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 9px;
  color: var(--orange-deep);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
}

.detail-label svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.detail-card p,
.detail-card li {
  color: #392b23;
  font-size: 11px;
  line-height: 1.72;
}

.detail-card p {
  margin: 0;
}

.detail-card ul,
.detail-card ol {
  margin: 0;
  padding-left: 18px;
}

.detail-card li + li {
  margin-top: 5px;
}

.detail-execution,
.detail-coaching {
  grid-column: 1 / -1;
}

.detail-execution ol {
  display: grid;
  gap: 7px;
  padding: 0;
  list-style: none;
  counter-reset: execution;
}

.detail-execution li {
  display: grid;
  grid-template-columns: 23px 1fr;
  align-items: start;
  gap: 8px;
  counter-increment: execution;
}

.detail-execution li::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange-hot);
  content: counter(execution);
  font-size: 9px;
  font-weight: 800;
}

.setup-copy {
  margin-bottom: 12px !important;
  padding: 10px 11px;
  border-radius: 12px;
  background: #fff0cf;
}

.tempo-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 11px;
}

.tempo-row span {
  padding: 9px 10px;
  border-radius: 11px;
  color: #5c402d;
  background: #fff0cf;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.45;
}

.detail-coaching small {
  display: block;
  margin-top: 10px;
  color: #7b6658;
  font-size: 9px;
  line-height: 1.6;
}

.workout-controls {
  max-width: 410px;
  margin: 0 auto;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.switch-stage {
  width: 100%;
  max-width: 410px;
  margin: 0 auto;
}

.switch-visual {
  height: min(54vh, 440px);
  max-width: 410px;
}

.switch-visual img {
  object-position: center 38%;
}

.review-shell {
  width: min(1080px, calc(100% - 36px));
}

.review-header {
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 237, 145, .36), transparent 18rem),
    linear-gradient(135deg, #ff702f, #ff9d12);
}

.review-title-row {
  align-items: center;
}

.review-hero-art {
  min-width: 320px;
}

.review-hero-art img {
  width: 176px;
  height: 176px;
  border-radius: 28px;
  object-position: center;
}

.review-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.review-card {
  padding: 24px;
  border-radius: 30px;
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.review-heading {
  display: grid;
  min-width: 0;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
}

.review-heading .review-index {
  position: static;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  color: #d64e1d;
  background: var(--yellow);
  font: 800 18px/1 "Avenir Next Condensed", sans-serif;
}

.review-heading > div > span {
  color: var(--orange-deep);
  font-size: 9px;
  font-weight: 800;
}

.review-heading h2 {
  margin: 3px 0 0;
  font-family: "STKaiti", "Kaiti SC", serif;
  font-size: 23px;
  line-height: 1.2;
}

.review-exercise-layout {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: 18px;
  margin-top: 18px;
}

.review-action-image {
  min-height: 330px;
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  background: #8a4e28;
}

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

.review-summary {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr 1fr;
  gap: 10px;
}

.review-meta {
  margin: 0;
}

.review-meta span {
  padding: 7px 10px;
  color: #6d513f;
  background: #fff0cf;
  font-size: 9px;
  font-weight: 700;
}

.review-info-block {
  min-width: 0;
  padding: 15px 16px;
  border: 1px solid rgba(102, 55, 17, .08);
  border-radius: 17px;
  background: #fff8e9;
}

.review-info-block > span {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--orange-deep);
  font-size: 10px;
  font-weight: 800;
}

.review-info-block svg {
  width: 15px;
  height: 15px;
}

.review-info-block p,
.review-info-block li {
  color: #463329;
  font-size: 11px;
  line-height: 1.72;
}

.review-info-block p {
  margin: 0;
}

.review-info-block ul,
.review-info-block ol {
  margin: 0;
  padding-left: 18px;
}

.review-instruction-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.review-instruction-grid .review-info-block:nth-child(2) {
  grid-row: span 2;
}

.review-editor {
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fffdf7;
}

.review-editor summary {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 15px;
  cursor: pointer;
  list-style: none;
  color: #5e4636;
  font-size: 11px;
  font-weight: 800;
}

.review-editor summary::-webkit-details-marker {
  display: none;
}

.review-editor summary > span {
  display: flex;
  align-items: center;
  gap: 7px;
}

.review-editor summary svg {
  width: 16px;
}

.review-editor[open] summary > svg {
  transform: rotate(180deg);
}

.review-editor-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 15px 15px;
}

.review-editor-fields label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.review-editor-fields .span-2 {
  grid-column: 1 / -1;
}

.review-editor-fields input,
.review-editor-fields textarea {
  width: 100%;
  margin-top: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff9ed;
  outline: 0;
  resize: vertical;
  font: 500 11px/1.6 "PingFang SC", sans-serif;
}

.review-editor-fields input:focus,
.review-editor-fields textarea:focus {
  border-color: var(--orange-hot);
  box-shadow: 0 0 0 3px rgba(255, 99, 47, .12);
}

@media (max-width: 760px) {
  .hero-subtitle {
    max-width: 230px;
    font-size: 10px;
  }

  .today-mascot {
    height: 285px;
  }

  .exercise-detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-execution,
  .detail-coaching {
    grid-column: auto;
  }

  .tempo-row {
    grid-template-columns: 1fr;
  }

  .review-shell {
    width: min(100% - 20px, 600px);
  }

  .review-header {
    padding: 22px;
  }

  .review-hero-art {
    min-width: 0;
  }

  .review-card {
    padding: 16px;
    border-radius: 24px;
  }

  .review-card-head {
    align-items: flex-start;
  }

  .review-heading {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .review-heading .review-index {
    width: 42px;
    height: 42px;
  }

  .review-heading h2 {
    font-size: 19px;
  }

  .approval-toggle {
    flex-direction: column;
    gap: 4px;
  }

  .review-exercise-layout,
  .review-instruction-grid,
  .review-editor-fields {
    grid-template-columns: 1fr;
  }

  .review-action-image {
    min-height: 0;
    aspect-ratio: 1;
  }

  .review-instruction-grid .review-info-block:nth-child(2) {
    grid-row: auto;
  }

  .review-editor-fields .span-2 {
    grid-column: auto;
  }
}

@media (max-height: 720px) {
  .exercise-illustration {
    width: 100%;
    aspect-ratio: 1 / .82;
    margin-bottom: 10px;
  }
}

@media (min-width: 700px) {
  .workout-screen {
    height: calc(100dvh - 52px);
  }

  .workout-overlay {
    place-items: center;
  }
}

/* current-week flow, set-by-set check-in, and full-width workout actions */
.set-checker {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 19px;
  background: rgba(255, 255, 255, .13);
  backdrop-filter: blur(12px);
}

.set-checker > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, .78);
  font-size: 10px;
}

.set-checker > div:first-child strong {
  color: #fff8bd;
  font-size: 11px;
}

.set-boxes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.set-box {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 15px;
  color: #fff;
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.set-box span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 9px;
  color: #d9501e;
  background: #fff8d0;
  font-size: 10px;
  font-weight: 900;
}

.set-box span svg {
  width: 14px;
}

.set-box small {
  font-size: 9px;
  font-weight: 800;
}

.set-box.is-current {
  border-color: #fff8ad;
  background: rgba(255, 248, 173, .2);
  box-shadow: 0 0 0 3px rgba(255, 248, 173, .1);
}

.set-box.is-complete {
  border-color: #fff;
  color: #d94e1c;
  background: #fffaf1;
}

.set-box.is-complete span {
  color: #fff;
  background: #ff6b31;
}

.set-box:active:not(:disabled) {
  transform: scale(.97);
}

.set-box:disabled {
  cursor: default;
  opacity: .48;
}

.workout-screen {
  padding-bottom: 0;
}

.workout-controls {
  width: calc(100% + 36px);
  max-width: none;
  grid-template-columns: minmax(104px, .38fr) minmax(0, 1fr);
  gap: 10px;
  margin: 0 -18px;
  padding: 18px 18px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #ff6b31 18%, #ff6b31 100%);
}

.workout-controls .control-secondary,
.workout-controls .complete-action {
  min-width: 0;
  min-height: 64px;
  border-radius: 20px;
}

.workout-controls .control-secondary {
  flex-direction: row;
  justify-content: center;
  gap: 7px;
}

.workout-controls .complete-action span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.switch-controls {
  width: calc(100% + 36px);
  margin-inline: -18px;
  padding: 18px 18px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(transparent, #ff6b31 18%, #ff6b31 100%);
}

.resume-choice-sheet .pause-orbit svg {
  fill: #fff;
  color: #ff6b31;
}

.danger-outline {
  color: #cf4b26;
  border: 1px solid rgba(207, 75, 38, .25);
  background: #fff6ec;
}

.discard-note {
  margin: 9px 4px 0;
  color: #a68471;
  text-align: center;
  font-size: 9px;
  line-height: 1.55;
}

@media (max-width: 370px) {
  .set-boxes {
    gap: 6px;
  }

  .set-box {
    min-height: 50px;
  }

  .set-box small {
    display: none;
  }

  .workout-controls {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
