@font-face {
  font-family: "Barlow Condensed Local";
  font-style: italic;
  font-weight: 800;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-800-italic.woff2") format("woff2");
}

:root {
  --paper: #f2f3ee;
  --surface: #f7f8f4;
  --ink: #191b1f;
  --muted: #666b73;
  --line: #ccd0d4;
  --soft-line: #e1e3e2;
  --vermilion: #ff5a3c;
  --vermilion-dark: #dc432a;
  --green: #28705d;
  --blue: #2754e8;
  --yellow: #ff5a3c;
  --sticker-shadow: 0 2px 0 rgba(25, 27, 31, 0.16);
  --dark: #161918;
  --dark-soft: #242827;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #d7d8d4;
  color: var(--ink);
}

body {
  display: grid;
  place-items: center;
}

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

button {
  border: 0;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out), border-color 160ms var(--ease-out), color 160ms var(--ease-out), opacity 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

button:active:not(:disabled) {
  transform: scale(0.97);
}

button:disabled {
  cursor: default;
}

img,
svg,
canvas {
  display: block;
}

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

h1,
h2,
p {
  margin: 0;
}

h1,
h2,
strong,
.energy-count,
.live-time {
  font-variant-numeric: tabular-nums;
}

.app-shell {
  --shell-height: 100dvh;
  position: relative;
  width: min(100%, 430px);
  height: var(--shell-height);
  overflow: hidden;
  background: var(--paper);
  box-shadow: none;
}

.home-map-layer {
  position: absolute;
  z-index: 34;
  inset: 0;
  overflow: hidden;
  background: transparent;
  clip-path: polygon(0 58%, 100% 36%, 100% 36%, 0 58%);
  visibility: hidden;
  opacity: 1;
  pointer-events: none;
  transition: clip-path 300ms var(--ease-in-out);
  will-change: clip-path;
}

.home-map-layer[data-map-transition="home"] {
  clip-path: polygon(0 58%, 100% 36%, 100% 36%, 0 58%);
}

.home-map-layer[data-map-transition="entering"],
.home-map-layer[data-map-transition="map"] {
  clip-path: polygon(0 -14%, 100% -36%, 100% 108%, 0 130%);
}

.home-map-layer[data-map-transition="leaving"] {
  clip-path: polygon(0 58%, 100% 36%, 100% 36%, 0 58%);
  transition-duration: 300ms;
  transition-delay: 190ms;
}

.home-map-layer[hidden] {
  display: none;
}

.home-map-layer.is-interactive {
  pointer-events: auto;
  touch-action: pan-x;
}

.home-map-layer dialog[open] {
  pointer-events: auto;
}

#view {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-behavior: smooth;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  touch-action: pan-y;
  transition: transform 220ms var(--ease-drawer), opacity 160ms var(--ease-out);
  -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 92px), transparent calc(100% - 76px));
  mask-image: linear-gradient(180deg, #000 calc(100% - 92px), transparent calc(100% - 76px));
}

#view.is-route-leaving {
  transform: translate3d(0, -8px, 0);
  opacity: 0.36;
}

#view.is-route-entering {
  transform: translate3d(0, 10px, 0);
  opacity: 0.36;
}

#view.is-route-leaving[data-route-motion="tab-next"] {
  transform: translate3d(-30px, 0, 0) scale(0.992);
}

#view.is-route-entering[data-route-motion="tab-next"] {
  transform: translate3d(32px, 0, 0) scale(0.988);
}

#view.is-route-leaving[data-route-motion="tab-prev"] {
  transform: translate3d(30px, 0, 0) scale(0.992);
}

#view.is-route-entering[data-route-motion="tab-prev"] {
  transform: translate3d(-32px, 0, 0) scale(0.988);
}

#view.is-route-leaving[data-route-motion="push"] {
  transform: translate3d(-16px, 0, 0) scale(0.978);
}

#view.is-route-entering[data-route-motion="push"] {
  transform: translate3d(40px, 0, 0) scale(0.988);
}

#view.is-route-leaving[data-route-motion="pop"] {
  transform: translate3d(40px, 0, 0) scale(0.988);
}

#view.is-route-entering[data-route-motion="pop"] {
  transform: translate3d(-16px, 0, 0) scale(0.978);
}

.route-fx {
  position: absolute;
  z-index: 36;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.route-fx-band {
  position: absolute;
  top: -8%;
  left: 50%;
  height: 116%;
  opacity: 0;
  will-change: transform, opacity;
}

.route-fx-band--wash {
  width: 138px;
  background: rgba(39, 84, 232, 0.14);
}

.route-fx-band--edge {
  width: 7px;
  background: var(--vermilion);
  box-shadow: 13px 0 0 rgba(39, 84, 232, 0.62);
}

.route-fx.is-active[data-direction="next"] .route-fx-band--wash {
  animation: route-sweep-next 280ms var(--ease-in-out) both;
}

.route-fx.is-active[data-direction="next"] .route-fx-band--edge {
  animation: route-sweep-next 280ms var(--ease-in-out) both;
}

.route-fx.is-active[data-direction="prev"] .route-fx-band--wash {
  animation: route-sweep-prev 280ms var(--ease-in-out) both;
}

.route-fx.is-active[data-direction="prev"] .route-fx-band--edge {
  animation: route-sweep-prev 280ms var(--ease-in-out) both;
}

@keyframes route-sweep-next {
  0% { transform: translate3d(300px, 0, 0) skewX(-9deg); opacity: 0; }
  16%, 82% { opacity: 1; }
  100% { transform: translate3d(-430px, 0, 0) skewX(-9deg); opacity: 0; }
}

@keyframes route-sweep-prev {
  0% { transform: translate3d(-430px, 0, 0) skewX(9deg); opacity: 0; }
  16%, 82% { opacity: 1; }
  100% { transform: translate3d(300px, 0, 0) skewX(9deg); opacity: 0; }
}

.route-without-motion .topbar-overlay,
.route-without-motion .energy-visual,
.route-without-motion .hero-actions,
.route-without-motion .performance-primary,
.route-without-motion .performance-stat {
  animation-delay: 0ms !important;
  animation-duration: 1ms !important;
}

#view::-webkit-scrollbar {
  display: none;
}

#view.home-scroll {
  --paper: #f2f3ee;
  --surface: #f7f8f4;
  --ink: #191b1f;
  --muted: #666b73;
  --line: #ccd0d4;
  --soft-line: #e1e3e2;
  --vermilion: #ff5a3c;
  --vermilion-dark: #dc432a;
  --green: #28705d;
  --blue: #2754e8;
  --yellow: #ff5a3c;
  scroll-snap-type: none;
  scroll-timeline-name: --home-depth;
  scroll-timeline-axis: block;
}

.app-shell:has(#view.home-scroll) #tabbar {
  border-color: var(--line);
  background: #f2f3ee;
}

.app-shell:has(#view.home-scroll) .tab-item {
  color: #666a64;
}

.app-shell:has(#view.home-scroll) .tab-item.active {
  color: #2754e8;
}

.page {
  width: 100%;
  min-height: 100%;
  padding-bottom: calc(86px + var(--safe-bottom));
}

.eyebrow {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: uppercase;
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: max(22px, env(safe-area-inset-top)) 22px 16px;
}

.topbar h1 {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 760;
  line-height: 1.15;
  letter-spacing: 0;
}

.icon-button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.icon-button.quiet {
  width: 44px;
  height: 44px;
  flex-basis: 44px;
  border-color: transparent;
  background: transparent;
}

.icon-button.quiet.active {
  color: var(--vermilion);
  background: #f0dfd9;
}

.text-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  background: transparent;
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

/* Main navigation */
#tabbar {
  --tab-offset: 0%;
  position: absolute;
  z-index: 40;
  right: 12px;
  bottom: max(20px, calc(var(--safe-bottom) + 12px));
  left: 12px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: auto;
  height: 68px;
  padding: 6px 14px;
  transform: translate3d(0, 0, 0);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: #f2f3ee;
  box-shadow: var(--sticker-shadow), 0 12px 30px rgba(23, 25, 23, 0.14);
  opacity: 1;
  transition: transform 260ms var(--ease-drawer), opacity 180ms var(--ease-out);
  will-change: transform, opacity;
}

.app-shell:is(.map-transitioning, .map-mode) #tabbar {
  transform: translate3d(0, calc(100% + 24px), 0);
  opacity: 0;
  pointer-events: none;
}

.app-shell.map-transitioning:not(.map-mode) #tabbar {
  transition-duration: 0ms;
}

.app-shell:is(.map-transitioning, .map-mode) #view {
  -webkit-mask-image: none;
  mask-image: none;
  scroll-behavior: auto;
}

#tabbar[hidden] {
  display: none;
}

.tab-item {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  transition: color 180ms var(--ease-out), transform 140ms var(--ease-out);
}

.tab-item svg {
  width: 21px;
  height: 21px;
}

.tab-glider {
  position: absolute;
  z-index: 0;
  top: 6px;
  bottom: 6px;
  left: 14px;
  width: calc((100% - 28px) / 3);
  border-radius: 8px;
  background: rgba(39, 84, 232, 0.07);
  transform: translate3d(var(--tab-offset), 0, 0);
  transition: transform 260ms var(--ease-drawer);
  pointer-events: none;
}

#tabbar.is-motion-instant .tab-glider,
#tabbar.is-motion-instant .tab-item {
  transition: none;
}

.tab-glider::before {
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 24px;
  height: 3px;
  border-radius: 4px;
  background: var(--blue);
  content: "";
  transform: translateX(-50%);
}

.tab-item.active {
  color: var(--blue);
  font-weight: 750;
}

.tab-item.is-confirming {
  color: var(--blue);
}

.tab-item:active {
  transform: scale(0.97);
}

.tab-item.is-confirming svg {
  animation: tab-icon-confirm 260ms var(--ease-out);
}

@keyframes tab-icon-confirm {
  0% { transform: translate3d(0, 1px, 0) scale(0.95); opacity: 0.72; }
  58% { transform: translate3d(0, -1px, 0) scale(1.06); opacity: 1; }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Home / energy */
.home-page {
  position: relative;
  min-height: calc(var(--shell-height) + var(--shell-height));
  padding-bottom: 0;
}

.energy-hero {
  --ring-size: min(88vw, 360px);
  --energy-visual-top: clamp(96px, 22dvh, 168px);
  --hero-action-gap: 40px;
  --hero-reserve: 254px;
  position: sticky;
  z-index: 1;
  top: 0;
  height: var(--shell-height);
  min-height: var(--shell-height);
  overflow: hidden;
  background: var(--paper);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.home-map-scroll-spacer {
  position: relative;
  height: var(--shell-height);
  min-height: var(--shell-height);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.topbar-overlay {
  position: absolute;
  z-index: 6;
  top: 0;
  right: 0;
  left: 0;
  animation: home-layer-in 220ms var(--ease-out) both;
}

.home-user {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.home-user-avatar {
  display: block;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: #dfe3e9;
}

.home-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.home-user-copy {
  min-width: 0;
}

.topbar .home-user-copy h1 {
  margin: 0;
  overflow: hidden;
  font-size: 19px;
  font-weight: 780;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-user-copy p {
  display: flex;
  gap: 12px;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

.energy-copy {
  position: absolute;
  z-index: 5;
  right: 0;
  bottom: 0;
  left: 0;
  width: var(--ring-size);
  height: var(--ring-size);
  margin: 0 auto;
  pointer-events: none;
}

.energy-count {
  position: absolute;
  top: 13%;
  left: 50%;
  display: flex;
  align-items: baseline;
  gap: 9px;
  color: var(--ink);
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-style: italic;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  transform: translateX(-50%);
  transform-origin: center center;
  text-rendering: geometricPrecision;
  white-space: nowrap;
  z-index: 1;
}

.energy-label {
  position: absolute;
  top: -18px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
  white-space: nowrap;
}

.energy-goal {
  position: relative;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 760;
  line-height: 1;
  pointer-events: auto;
}

.energy-goal::before {
  position: absolute;
  inset: -16px -8px;
  border-radius: 8px;
  background: transparent;
  content: "";
}

.energy-goal [data-goal-value] {
  text-decoration: underline dotted rgba(25, 27, 31, 0.45) 1px;
  text-underline-offset: 3px;
}

.energy-goal:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.energy-label em {
  padding-left: 8px;
  border-left: 1px solid rgba(25, 27, 31, 0.18);
  color: var(--vermilion-dark);
  font-style: normal;
  font-weight: 760;
}

.energy-count strong {
  display: block;
  min-width: 2.4ch;
  font-size: clamp(50px, calc(var(--ring-size) * 0.235), 80px);
  font-weight: 800;
  line-height: 0.82;
  text-align: left;
}

.energy-count span {
  position: static;
  display: block;
  margin: 0;
  color: inherit;
  font-size: clamp(11px, calc(var(--ring-size) * 0.048), 16px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.energy-metric-contrast {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.energy-copy p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.energy-copy p b {
  color: var(--vermilion);
}

.energy-visual {
  position: absolute;
  z-index: 1;
  top: var(--energy-visual-top);
  right: 0;
  left: 0;
  height: calc(var(--ring-size) + 150px);
  overflow: visible;
  animation: home-visual-in 280ms 55ms var(--ease-out) both;
}

.energy-visual-depth {
  position: absolute;
  inset: 0;
  transform-origin: center 65%;
  will-change: transform;
}

.energy-ring {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50%;
  width: var(--ring-size);
  height: var(--ring-size);
  transform: translateX(-50%) scale(1);
  transform-origin: center;
  pointer-events: none;
}

.energy-motion-halo {
  position: absolute;
  z-index: 0;
  inset: -7%;
  width: 114%;
  height: 114%;
  object-fit: contain;
  mix-blend-mode: multiply;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

.energy-hero[data-workout-state="running"] .energy-motion-halo {
  opacity: 0.025;
  animation: energy-halo-orbit 7s linear infinite;
}

@keyframes energy-halo-orbit {
  from { transform: rotate(0deg) scale(0.99); }
  to { transform: rotate(360deg) scale(0.99); }
}

.lottie-stage {
  position: absolute;
  z-index: 3;
  right: auto;
  bottom: -8%;
  left: 50%;
  width: var(--ring-size);
  height: var(--ring-size);
  margin: 0;
  overflow: hidden;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  transform: translateX(-50%) scale(0.72);
  transform-origin: center center;
  pointer-events: none;
}

.lottie-stage svg {
  display: block;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  filter: saturate(0.9) contrast(1.02);
}

.avatar-fallback {
  position: absolute;
  z-index: 2;
  right: auto;
  bottom: -16%;
  left: 50%;
  display: grid;
  width: var(--ring-size);
  height: var(--ring-size);
  margin: 0;
  grid-template-rows: 1fr auto;
  justify-items: center;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  transform: translateX(-50%) scale(0.9);
}

.avatar-fallback[hidden] {
  display: none;
}

.avatar-fallback img {
  width: 78%;
  height: 96%;
  margin-top: 0;
  object-fit: cover;
  object-position: center 44%;
  mix-blend-mode: darken;
  -webkit-mask-image: radial-gradient(ellipse 54% 55% at 50% 50%, #000 62%, rgba(0, 0, 0, 0.94) 74%, transparent 100%);
  mask-image: radial-gradient(ellipse 54% 55% at 50% 50%, #000 62%, rgba(0, 0, 0, 0.94) 74%, transparent 100%);
  opacity: 0.34;
  transition: opacity 220ms var(--ease-out);
}

.avatar-fallback span {
  position: absolute;
  bottom: 14px;
  padding: 4px 8px;
  background: rgba(245, 245, 240, 0.86);
}

.avatar-fallback.is-static {
  z-index: 4;
}

.avatar-fallback.is-static img {
  opacity: 1;
}

.home-scroll .topbar-overlay .icon-button {
  border-color: transparent;
  background: transparent;
}

.energy-hero[data-workout-state="running"] .start-button {
  background: var(--blue);
}

.energy-hero[data-workout-state="running"] .start-button-icon {
  background: var(--paper);
  color: var(--blue);
}

.energy-hero[data-motion-active="false"] .energy-motion-halo,
.energy-hero[data-motion-active="false"] .performance-vector-field {
  animation-play-state: paused !important;
}

.hero-actions {
  position: absolute;
  z-index: 8;
  right: 20px;
  top: calc(var(--energy-visual-top) + var(--ring-size) + var(--hero-action-gap));
  bottom: auto;
  left: 20px;
  animation: home-layer-in 240ms 120ms var(--ease-out) both;
}

.home-performance-rail {
  position: relative;
  display: grid;
  min-height: 96px;
  grid-template-columns: minmax(0, 1.18fr) minmax(132px, 0.82fr);
  align-items: stretch;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px 0 12px;
  overflow: hidden;
  border-top: 1px solid rgba(25, 27, 31, 0.16);
}

.workout-live-state {
  position: absolute;
  z-index: 2;
  top: 7px;
  right: 0;
  color: var(--vermilion);
  font-size: 9px;
  font-weight: 760;
}

.energy-hero[data-workout-state="running"] .performance-vector-field {
  animation: performance-field-live 2.8s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
}

.energy-hero[data-workout-state="running"] .home-performance-rail strong {
  color: var(--blue);
}

.performance-vector-field {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.performance-primary,
.performance-secondary,
.performance-stat {
  min-width: 0;
}

.performance-primary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  column-gap: 7px;
  transform-origin: left center;
  animation: performance-primary-in 420ms 180ms var(--ease-out) both;
}

.performance-secondary {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 7px;
}

.performance-stat {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 7px;
  animation: performance-stat-in 360ms var(--ease-out) both;
}

.performance-stat:nth-child(1) {
  animation-delay: 240ms;
}

.performance-stat:nth-child(2) {
  animation-delay: 300ms;
}

.home-performance-rail strong {
  color: var(--ink);
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-style: italic;
  font-weight: 800;
  line-height: 0.88;
  white-space: nowrap;
}

.performance-metric {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.performance-metric small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.performance-value-row {
  display: flex;
  min-width: 0;
  align-items: flex-end;
  gap: 6px;
}

.performance-primary strong {
  font-size: 40px;
}

.performance-stat strong {
  overflow: hidden;
  font-size: 24px;
  text-overflow: ellipsis;
}

.performance-glyph {
  align-self: center;
  color: var(--muted);
}

.performance-primary .performance-glyph {
  color: var(--blue);
}

.performance-glyph svg {
  width: 100%;
  height: auto;
}

.performance-unit {
  padding-bottom: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
}

.performance-primary .performance-unit {
  align-self: auto;
  padding-bottom: 3px;
  font-size: 12px;
}

@keyframes home-layer-in {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes home-visual-in {
  from { transform: scale(0.985); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes performance-primary-in {
  from { transform: translate3d(-18px, 7px, 0); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes performance-stat-in {
  from { transform: translate3d(12px, 5px, 0); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes performance-field-live {
  from { transform: translate3d(-4px, 1px, 0) scale(1.02); opacity: 0.82; }
  to { transform: translate3d(4px, -1px, 0) scale(1.02); opacity: 1; }
}

.map-launch {
  display: grid;
  width: 100%;
  min-height: 58px;
  grid-template-columns: 32px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.map-launch > span:nth-child(2) {
  min-width: 0;
}

.map-launch b,
.map-launch small {
  display: block;
}

.map-launch b {
  font-size: 13px;
}

.map-launch small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-launch-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #e4eafb;
  color: var(--blue);
}

.map-launch.is-empty .map-launch-icon {
  background: #e3ece8;
  color: var(--green);
}

.start-button {
  position: relative;
  display: flex;
  width: 100%;
  height: 62px;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px 0 20px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  font-weight: 760;
  box-shadow: 0 4px 0 rgba(23, 25, 23, 0.15);
  transition:
    background-color 220ms var(--ease-out),
    color 180ms var(--ease-out),
    box-shadow 160ms var(--ease-out),
    transform 140ms var(--ease-out);
}

.workout-controls {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

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

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

.start-button-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--vermilion);
  color: var(--paper);
  transform: translate3d(0, 0, 0);
  transition:
    background-color 220ms var(--ease-out),
    color 180ms var(--ease-out),
    transform 180ms var(--ease-out);
}

.start-button [data-workout-action-label] {
  display: inline-block;
}

.start-button.is-motion-instant,
.start-button.is-motion-instant .start-button-icon {
  transition: none;
}

.start-button.is-state-changing [data-workout-action-label] {
  animation: workout-label-confirm 220ms var(--ease-out) both;
}

.start-button.is-state-changing .start-button-icon {
  animation: workout-icon-confirm 220ms var(--ease-out) both;
}

.start-button svg {
  width: 34px !important;
  height: 34px !important;
  padding: 8px;
}

.start-button-icon svg {
  width: 100% !important;
  height: 100% !important;
}

.finish-inline-button {
  display: grid;
  width: 62px;
  height: 62px;
  padding: 0;
  place-items: center;
  border-radius: 8px;
  background: var(--vermilion);
  color: var(--paper);
  animation: finish-command-in 180ms var(--ease-out);
  transition: transform 140ms var(--ease-out), background-color 160ms var(--ease-out);
}

.finish-inline-button[hidden] {
  display: none;
}

.finish-inline-button.skip-entry-motion {
  animation: none;
}

@keyframes finish-command-in {
  from { transform: translate3d(8px, 0, 0) scale(0.95); opacity: 0; }
  to { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@keyframes workout-label-confirm {
  0% { transform: translate3d(0, 4px, 0); opacity: 0.54; }
  100% { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes workout-icon-confirm {
  0% { transform: scale(0.9); opacity: 0.56; }
  62% { transform: scale(1.055); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.hero-actions .map-launch + .start-button {
  margin-top: 12px;
}

.start-button:active,
.workout-action:active,
.finish-inline-button:active {
  transform: scale(0.97);
  background: #2d302c;
  box-shadow: 0 2px 0 rgba(23, 25, 23, 0.12);
}

/* Activity section */
.activity-section {
  padding: 27px 20px 42px;
  background: var(--dark);
  color: #f5f4ef;
}

.activity-section.will-reveal {
  transform: translateY(14px);
  opacity: 0;
  transition: transform 280ms var(--ease-out), opacity 220ms var(--ease-out);
}

.activity-section.will-reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.section-heading,
.metric-heading,
.group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.metric-heading-title,
.group-title {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.section-title-icon,
.metric-heading-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
  background: rgba(39, 84, 232, 0.08);
  color: var(--blue);
}

.section-title-icon {
  width: 28px;
  height: 28px;
}

.metric-heading-icon {
  width: 26px;
  height: 26px;
}

.section-title-icon svg,
.metric-heading-icon svg {
  stroke-width: 1.8;
}

.section-heading {
  align-items: flex-end;
  margin-bottom: 18px;
}

.section-heading h2,
.metric-heading h2,
.group-head h2 {
  margin-top: 3px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: 0;
}

.activity-section .eyebrow {
  color: #9ca19d;
}

.route-media {
  position: relative;
  height: 252px;
  margin: 0 -20px;
  overflow: hidden;
  background: #313634;
}

.route-media::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(10, 14, 13, 0.2);
  content: "";
  pointer-events: none;
}

.route-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.route-caption {
  position: absolute;
  z-index: 3;
  top: 14px;
  right: 16px;
  left: 16px;
  display: flex;
  justify-content: space-between;
  color: var(--paper);
  font-size: 10px;
  font-weight: 650;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.route-line {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
}

.route-line path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-shadow {
  stroke: rgba(0, 0, 0, 0.4);
  stroke-width: 7;
}

.route-path {
  stroke: #f2f0e6;
  stroke-width: 3;
}

.route-start {
  fill: var(--green);
  stroke: var(--paper);
  stroke-width: 2;
}

.route-end {
  fill: var(--vermilion);
  stroke: var(--paper);
  stroke-width: 2;
}

.activity-map-section .route-shadow,
.activity-map-section .route-path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 680ms 80ms cubic-bezier(0.16, 1, 0.3, 1);
}

.activity-map-section .route-start,
.activity-map-section .route-end {
  transform: scale(0.82);
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  transition: transform 260ms var(--ease-out), opacity 200ms var(--ease-out);
}

.activity-map-section .route-end {
  transition-delay: 360ms;
}

.activity-map-section.is-arrived .route-shadow,
.activity-map-section.is-arrived .route-path {
  stroke-dashoffset: 0;
}

.activity-map-section.is-arrived .route-start,
.activity-map-section.is-arrived .route-end {
  transform: scale(1);
  opacity: 1;
}

.activity-primary {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  padding: 24px 0;
  border-bottom: 1px solid #3a3f3d;
}

.activity-primary > div,
.activity-secondary > div,
.profile-numbers > div,
.live-stats > div,
.baseline-strip > div {
  min-width: 0;
}

.activity-primary span,
.activity-secondary span,
.activity-primary em,
.activity-secondary em {
  color: #979c98;
  font-size: 10px;
  font-style: normal;
}

.activity-primary span {
  display: block;
  margin-bottom: 5px;
}

.activity-primary strong {
  font-size: 27px;
  line-height: 1;
}

.activity-primary em {
  margin-left: 3px;
}

.pace-block {
  padding: 24px 0 18px;
  border-bottom: 1px solid #3a3f3d;
}

.metric-heading > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.metric-heading b {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.pace-chart,
.heart-chart {
  width: 100%;
  height: 118px;
  margin-top: 14px;
  overflow: visible;
}

.pace-chart line,
.heart-chart line {
  stroke: #343937;
  stroke-width: 1;
}

.pace-chart path,
.heart-chart path,
.micro-line path {
  fill: none;
  stroke: var(--vermilion);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  color: #8f9490;
  font-size: 9px;
}

.empty-activity {
  min-height: 530px;
  padding-bottom: 12px;
}

.empty-activity img {
  display: block;
  width: calc(100% + 40px);
  height: 238px;
  margin: -27px -20px 24px;
  object-fit: cover;
  object-position: center bottom;
}

.empty-activity h2 {
  margin-top: 5px;
  font-size: 23px;
}

.empty-activity > div > span {
  display: block;
  max-width: 300px;
  margin-top: 8px;
  color: #a5aaa6;
  font-size: 11px;
  line-height: 1.7;
}

.empty-start {
  width: 100%;
  height: 46px;
  margin-top: 24px;
  border: 1px solid #626864;
  border-radius: 4px;
  background: transparent;
  color: #f5f4ef;
  font-size: 12px;
  font-weight: 720;
}

.activity-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-top: 22px;
}

.activity-secondary span {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.activity-secondary strong {
  font-size: 21px;
}

.activity-secondary em {
  margin-left: 2px;
}

/* Body detail */
.body-page {
  background: var(--paper);
}

.body-page .card,
.me-page .card {
  margin: 16px 16px 0;
  border: 1px solid var(--soft-line);
  border-radius: 12px;
  background-color: var(--surface);
  box-shadow: 0 1px 3px rgba(25, 27, 31, 0.05);
  animation: card-in 280ms var(--enter-delay, 0ms) var(--ease-out) both;
}

@keyframes card-in {
  from { transform: translate3d(0, 8px, 0); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

.date-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  margin: 4px 16px 0;
  padding: 4px;
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  background: #e9ebe5;
}

.date-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  line-height: 1;
}

.date-item span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
}

.date-item.active {
  color: var(--ink);
  font-weight: 700;
}

.date-item.active span {
  background: var(--ink);
  color: var(--paper);
}

.summary-card {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 28px;
  padding: 16px 18px 14px;
}

.summary-card > div:not(.baseline-status) {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.summary-card strong {
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 32px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.summary-card > div > span {
  color: var(--muted);
  font-size: 10px;
}

.summary-card .summary-label {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 1.2;
}

.summary-card .summary-label svg,
.detail-grid .detail-label svg {
  flex: 0 0 auto;
  color: var(--blue);
  stroke-width: 1.8;
}

.baseline-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  padding-bottom: 4px;
  color: var(--muted);
  font-size: 10px;
}

.baseline-status .baseline-status-icon {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 6px;
  background: rgba(39, 84, 232, 0.08);
  color: var(--blue);
}

.baseline-status-icon svg {
  stroke-width: 1.8;
}

.body-group {
  padding: 18px;
  border-bottom: 0;
}

.group-head {
  align-items: flex-start;
  margin-bottom: 18px;
}

.group-head h2 {
  font-size: 23px;
  font-weight: 800;
}

.section-period {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.normal-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--blue);
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
}

.normal-tag::before {
  content: none;
}

.heart-main {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 16px;
}

.heart-main > div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  column-gap: 4px;
}

.heart-main strong {
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 44px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.heart-main em,
.detail-grid em,
.vital-rows em,
.sleep-score em,
.composition-primary em,
.live-stats em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  font-weight: 600;
}

.heart-main span {
  grid-column: 1 / -1;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
}

.heart-chart {
  height: 132px;
  margin-top: 18px;
}

.heart-chart line {
  stroke: var(--soft-line);
}

.heart-chart .heart-area {
  fill: rgba(39, 84, 232, 0.1);
  stroke: none;
  animation: heart-area-reveal 720ms 140ms var(--ease-out) both;
}

.heart-chart .heart-line {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: heart-line-draw 860ms 180ms var(--ease-out) forwards;
}

.heart-chart .heart-peak {
  fill: var(--vermilion);
  stroke: var(--paper);
  stroke-width: 2.5;
  transform-box: fill-box;
  transform-origin: center;
  animation: heart-peak-in 260ms 820ms var(--ease-out) both;
}

@keyframes heart-area-reveal {
  from { clip-path: inset(0 100% 0 0); opacity: 0.24; }
  to { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes heart-line-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes heart-peak-in {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.detail-grid {
  display: grid;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--soft-line);
}

.detail-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.detail-grid > div {
  min-width: 0;
  padding-right: 7px;
}

.detail-grid > div + div {
  padding-left: 12px;
  border-left: 1px solid var(--soft-line);
}

.detail-grid span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.detail-grid strong {
  display: block;
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 28px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.vital-group {
  background: transparent;
}

.vital-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.vital-rows > div {
  display: flex;
  min-height: 108px;
  flex-direction: column;
  padding: 14px 12px;
}

.vital-rows > div:nth-child(odd) {
  border-right: 1px solid var(--soft-line);
}

.vital-rows > div:nth-child(-n + 2) {
  border-bottom: 1px solid var(--soft-line);
}

.vital-rows > div:nth-child(even) {
  padding-left: 16px;
}

.vital-rows > div:nth-child(odd) {
  padding-right: 16px;
}

.vital-rows span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.vital-rows span svg {
  color: var(--blue);
}

.vital-rows strong {
  margin-top: auto;
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 34px;
  font-style: italic;
  font-weight: 800;
}

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

.sleep-score {
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 38px;
  font-style: italic;
  font-weight: 800;
}

.sleep-line {
  display: flex;
  width: 100%;
  height: 16px;
  overflow: hidden;
  border-radius: 2px;
  background: var(--soft-line);
}

.sleep-line.detailed {
  height: 20px;
}

.sleep-line span {
  flex: 2;
  transform: scaleX(0.04);
  transform-origin: left center;
  animation: sleep-stage-reveal 480ms var(--ease-out) both;
}

.sleep-line span:nth-child(2) { animation-delay: 70ms; }
.sleep-line span:nth-child(3) { animation-delay: 120ms; }
.sleep-line span:nth-child(4) { animation-delay: 170ms; }
.sleep-line span:nth-child(5) { animation-delay: 220ms; }
.sleep-line span:nth-child(6) { animation-delay: 270ms; }
.sleep-line span:nth-child(7) { animation-delay: 320ms; }

@keyframes sleep-stage-reveal {
  from { transform: scaleX(0.04); opacity: 0.28; }
  to { transform: scaleX(1); opacity: 1; }
}

.sleep-line .short {
  flex: 0.6;
}

.sleep-line .awake,
.sleep-legend i.awake {
  background: var(--vermilion);
}

.sleep-line .light,
.sleep-legend i.light {
  background: #9db9ee;
}

.sleep-line .deep,
.sleep-legend i.deep {
  background: var(--blue);
}

.sleep-line .rem,
.sleep-legend i.rem {
  background: #ccd5e4;
}

.sleep-legend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 20px;
  margin-top: 19px;
}

.sleep-legend span {
  display: grid;
  grid-template-columns: 7px 1fr;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 9px;
}

.sleep-legend i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.sleep-legend b {
  grid-column: 2;
  color: var(--ink);
  font-size: 12px;
}

.composition-group {
  background: transparent;
}

.body-page .vital-group,
.body-page .sleep-group,
.body-page .composition-group {
  margin-top: 12px;
  padding: 24px 18px;
  border-width: 1px 0 0;
  border-radius: 0;
  box-shadow: none;
}

.composition-primary {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.composition-primary strong {
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 58px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
}

.composition-primary > span {
  margin-left: auto;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.recovery-row {
  display: grid;
  min-height: 56px;
  grid-template-columns: 1fr auto 18px;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  color: var(--ink);
  text-align: left;
}

.recovery-row > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 650;
  text-align: left;
}

.recovery-row strong {
  font-size: 14px;
}

/* Me */
.me-page {
  background: var(--paper);
}

.profile-head {
  display: grid;
  grid-template-columns: 66px 1fr 44px;
  gap: 14px;
  align-items: center;
  padding: max(26px, env(safe-area-inset-top)) 20px 4px;
}

.profile-avatar {
  display: block;
  width: 66px;
  height: 66px;
  overflow: hidden;
  border: 2px solid var(--surface);
  border-radius: 50%;
  box-shadow: var(--sticker-shadow), 0 0 0 1.5px var(--line);
}

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

.profile-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1.5px solid var(--paper);
  border-radius: 8px;
  background: var(--blue);
  box-shadow: var(--sticker-shadow);
  color: var(--paper);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
}

.profile-head > div > span:not(.profile-badge) {
  color: var(--muted);
  font-size: 11px;
}

.profile-head h1 {
  margin: 7px 0 5px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.stat-card {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  padding: 16px 18px;
}

.stat-card > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.stat-card > div + div {
  padding-left: 14px;
  border-left: 1px solid var(--soft-line);
}

.stat-card strong {
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 30px;
  font-style: italic;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.stat-card span {
  color: var(--muted);
  font-size: 11px;
}

.detail-grid .detail-label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.stat-card .stat-label {
  display: flex;
  align-items: center;
  gap: 5px;
  line-height: 1.2;
}

.stat-card .stat-label svg {
  flex: 0 0 auto;
  color: var(--blue);
  stroke-width: 1.8;
}

.report-band {
  position: relative;
  display: flex;
  min-height: 154px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 20px;
  overflow: hidden;
  border-radius: 12px;
  background-color: var(--paper);
  color: var(--ink);
}

.report-band::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, rgba(242, 243, 238, 0.98) 0%, rgba(242, 243, 238, 0.95) 34%, rgba(242, 243, 238, 0.4) 63%, rgba(242, 243, 238, 0) 82%);
  content: "";
  pointer-events: none;
}

.report-band::after {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: 64%;
  background: url("../assets/images/me-report-banner-v1.png") right center / auto 100% no-repeat;
  content: "";
  pointer-events: none;
}

.report-band > div {
  position: relative;
  z-index: 2;
}

.report-band-copy {
  width: 52%;
  max-width: 210px;
}

.report-band .eyebrow {
  color: var(--muted);
}

.report-band h2 {
  margin-top: 6px;
  font-size: 25px;
  font-weight: 800;
  line-height: 1.08;
}

.report-band-summary {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
}

.report-entry-cue {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 13px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
}

.report-entry-cue svg {
  flex: 0 0 auto;
  stroke-width: 2;
}

.report-band {
  cursor: pointer;
  width: calc(100% - 32px);
  border: 0;
  text-align: left;
}

.report-band:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.friend-section {
  padding: 16px 18px 8px;
}

.friend-section h2 {
  font-size: 20px;
}

.section-heading.compact {
  margin-bottom: 8px;
}

.friend-list {
  margin-top: 10px;
}

.friend-row {
  display: grid;
  width: 100%;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 0;
  border-bottom: 1px solid var(--soft-line);
  background: transparent;
  text-align: left;
}

.friend-row:last-child {
  border-bottom: 0;
}

.friend-avatar {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--friend);
  box-shadow: var(--sticker-shadow);
  color: var(--paper);
  font-size: 14px;
  font-weight: 750;
}

.friend-row b,
.friend-row small {
  display: block;
}

.friend-row b {
  font-size: 12px;
}

.friend-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.menu-list {
  padding: 6px 18px;
}

.menu-list button:last-child {
  border-bottom: 0;
}

.menu-list button {
  display: flex;
  width: 100%;
  min-height: 57px;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  border-bottom: 1px solid var(--soft-line);
  background: transparent;
  font-size: 12px;
}

.menu-list button > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

/* Sheets */
#sheetRoot {
  position: absolute;
  z-index: 80;
  inset: 0;
  display: none;
  overflow: hidden;
}

#sheetRoot.open {
  display: block;
}

.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 17, 16, 0.48);
  backdrop-filter: blur(3px);
  animation: backdrop-in 180ms var(--ease-out);
}

.workout-sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  min-height: 430px;
  padding: 10px 22px calc(24px + var(--safe-bottom));
  border-radius: 8px 8px 0 0;
  background: #f9f9f5;
  transform-origin: center bottom;
  animation: sheet-in 280ms var(--ease-out);
}

@keyframes sheet-in {
  from { transform: translateY(18%) scale(0.985); opacity: 0.45; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes sheet-out {
  from { transform: translateY(0) scale(1); opacity: 1; }
  to { transform: translateY(9%) scale(0.992); opacity: 0; }
}

@keyframes backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}

#sheetRoot.closing .workout-sheet {
  animation: sheet-out 180ms var(--ease-out) both;
}

#sheetRoot.closing .sheet-backdrop {
  animation: backdrop-out 160ms var(--ease-out) both;
}

.sheet-handle {
  position: relative;
  width: 64px;
  height: 44px;
  margin: -8px auto -15px;
  cursor: grab;
  touch-action: none;
}

.sheet-handle::before {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 42px;
  height: 4px;
  border-radius: 2px;
  background: #c4c6c1;
  content: "";
  transform: translateX(-50%);
}

.workout-sheet.is-dragging .sheet-handle {
  cursor: grabbing;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.sheet-head h2 {
  margin-top: 4px;
  font-size: 23px;
}

.live-time {
  margin: 34px 0 27px;
  font-size: 53px;
  font-weight: 780;
  line-height: 1;
  text-align: center;
}

.live-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 19px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.live-stats div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.live-stats span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 9px;
}

.live-stats strong {
  font-size: 22px;
}

.workout-action {
  display: flex;
  width: 100%;
  height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  border-radius: 4px;
  background: var(--vermilion);
  color: var(--paper);
  font-size: 14px;
  font-weight: 750;
}

.finish-action {
  width: 100%;
  height: 44px;
  margin-top: 5px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
}

.activity-map-section {
  position: absolute;
  inset: 0;
  width: 100%;
  height: var(--shell-height);
  min-height: var(--shell-height);
  max-height: var(--shell-height);
  overflow: hidden;
  padding: 0;
  background: var(--blue);
  isolation: isolate;
}

.activity-map-content {
  position: absolute;
  z-index: 11;
  inset: 0;
  min-height: 0;
  clip-path: polygon(0 58%, 100% 36%, 100% 36%, 0 58%);
  opacity: 1;
  transform: scale(1.018);
  transform-origin: center;
  transition: clip-path 430ms var(--ease-in-out), transform 430ms var(--ease-out);
  will-change: transform, clip-path;
}

.activity-map-section[data-map-transition="home"] .activity-map-content {
  clip-path: polygon(0 58%, 100% 36%, 100% 36%, 0 58%);
  transform: scale(1.018);
}

.activity-map-section[data-map-transition="entering"] .activity-map-content,
.activity-map-section[data-map-transition="map"] .activity-map-content {
  clip-path: polygon(0 -14%, 100% -36%, 100% 108%, 0 130%);
  transform: scale(1);
}

.activity-map-section[data-map-transition="entering"] .activity-map-content {
  transition-delay: 120ms;
}

.activity-map-section[data-map-transition="leaving"] .activity-map-content {
  clip-path: polygon(0 58%, 100% 36%, 100% 36%, 0 58%);
  transform: scale(1.018);
  transition-delay: 0ms;
}

.map-card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e8ebee;
}

.map-sheet-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #e8ebee;
  transform: none;
}

.activity-map-section.is-arrived .map-sheet-media {
  transform: none;
}

.map-sheet-media > img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(0.88) brightness(1.04);
  opacity: 1;
  transition: opacity 180ms var(--ease-out);
}

.map-amap-canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: #e8ebee;
  opacity: 0;
  transition: opacity 180ms var(--ease-out);
  pointer-events: none;
  touch-action: none;
}

.map-sheet-media.is-amap-live > img {
  opacity: 0;
}

.map-sheet-media[data-map-provider="loading"] > .route-line,
.map-sheet-media[data-map-provider="loading"] > .nearby-runner-layer {
  opacity: 0;
  pointer-events: none;
}

.map-sheet-media.is-amap-live .map-amap-canvas {
  opacity: 1;
  pointer-events: auto;
}

.map-sheet-media.is-amap-live > .route-line,
.map-sheet-media.is-amap-live > .nearby-runner-layer {
  opacity: 0;
  pointer-events: none;
}

.map-sheet-media .amap-runner-marker {
  position: relative;
  top: auto;
  left: auto;
  transform: none;
}

.map-sheet-media .amap-runner-marker:active:not(:disabled) {
  transform: scale(0.96);
}

.map-sheet-media.is-amap-live .amap-logo {
  bottom: 94px !important;
  left: 14px !important;
}

.map-sheet-media.is-amap-live .amap-copyright {
  right: 14px !important;
  bottom: 96px !important;
  left: auto !important;
  color: rgba(25, 27, 31, 0.56) !important;
  font-size: 8px !important;
}

.map-sheet-media.is-amap-live .leaflet-container {
  background: #e8ebee;
  color: var(--ink);
  font-family: inherit;
  outline: none;
}

.map-sheet-media.is-amap-live .leaflet-tile-pane {
  filter: saturate(0.74) contrast(0.93) brightness(1.035);
}

.map-sheet-media.is-amap-live .leaflet-control-attribution {
  margin: 0 0 102px 12px;
  padding: 2px 5px;
  border-radius: 3px;
  background: rgba(242, 243, 238, 0.82);
  box-shadow: 0 1px 3px rgba(25, 27, 31, 0.08);
  color: rgba(25, 27, 31, 0.58);
  font-size: 8px;
  line-height: 1.25;
}

.map-sheet-media.is-amap-live .leaflet-control-attribution a {
  color: inherit;
  text-decoration: none;
}

.map-sheet-media.is-amap-live .leaflet-top.leaflet-right {
  top: 82px;
  right: 12px;
}

.map-sheet-media.is-amap-live .leaflet-control-scale {
  margin: 0;
}

.map-sheet-media.is-amap-live .leaflet-control-scale-line {
  padding: 2px 4px 1px;
  border-width: 0 1px 1px;
  border-color: rgba(25, 27, 31, 0.66);
  background: rgba(247, 248, 244, 0.76);
  box-shadow: 0 1px 3px rgba(25, 27, 31, 0.08);
  color: rgba(25, 27, 31, 0.72);
  font-size: 8px;
  font-weight: 720;
  line-height: 1.1;
}

.map-sheet-media .amap-leaflet-marker {
  border: 0;
  background: transparent;
}

.map-sheet-media .amap-leaflet-marker .nearby-runner-avatar img {
  width: 100%;
  height: 100%;
  max-width: 100% !important;
  max-height: 100% !important;
}

.map-sheet-caption {
  position: absolute;
  z-index: 6;
  top: max(14px, calc(env(safe-area-inset-top) + 10px));
  right: 16px;
  left: 16px;
  display: grid;
  min-height: 56px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(242, 243, 238, 0.96);
  box-shadow: 0 4px 8px rgba(25, 27, 31, 0.12);
  color: var(--ink);
  opacity: 0;
  transform: translate3d(0, -10px, 0);
  transition: transform 180ms var(--ease-out) 20ms, opacity 140ms var(--ease-out) 20ms;
}

.activity-map-section.is-arrived .map-sheet-caption {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.map-locate-button {
  position: absolute;
  z-index: 8;
  right: 16px;
  bottom: max(104px, calc(var(--safe-bottom) + 100px));
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(25, 27, 31, 0.13);
  border-radius: 50%;
  background: rgba(247, 248, 244, 0.94);
  box-shadow: 0 4px 10px rgba(25, 27, 31, 0.14);
  color: var(--ink);
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: transform 180ms var(--ease-out), opacity 140ms var(--ease-out), color 140ms var(--ease-out), background-color 140ms var(--ease-out);
  pointer-events: none;
}

.activity-map-section.is-arrived .map-sheet-media.is-amap-live .map-locate-button {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.map-locate-button > span {
  display: grid;
  place-items: center;
}

.map-locate-button [data-locate-loading] {
  display: none;
}

.map-locate-button[data-state="loading"] [data-locate-idle] {
  display: none;
}

.map-locate-button[data-state="loading"] [data-locate-loading] {
  display: grid;
}

.map-locate-button[data-state="loading"] [data-locate-loading] svg {
  animation: map-locate-spin 760ms linear infinite;
}

.map-locate-button[data-state="success"] {
  color: var(--blue);
}

.map-locate-button[data-state="error"] {
  color: var(--vermilion);
}

.map-locate-button:disabled {
  cursor: wait;
}

.map-locate-button:active:not(:disabled) {
  transform: scale(0.96);
}

.map-locate-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .map-locate-button:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.98);
  }
}

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

.map-return-button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
}

.map-return-button:focus-visible {
  outline-color: var(--blue);
}

.map-scene-copy {
  display: grid;
  align-content: center;
  min-width: 0;
  gap: 2px;
  line-height: 1;
}

.map-scene-copy .map-scene-kicker {
  color: var(--blue);
  font-size: 9px;
  font-weight: 760;
  letter-spacing: 0.03em;
}

.map-scene-copy strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-scene-copy span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-presence-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 0 2px 0 12px;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}

.map-presence-badge::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vermilion);
  content: "";
}

.activity-map-section .route-shadow {
  stroke: rgba(255, 255, 255, 0.88);
  stroke-width: 7;
}

.activity-map-section .route-path {
  stroke: var(--blue);
  stroke-width: 4;
}

.activity-map-section .route-start {
  fill: var(--blue);
  stroke: var(--paper);
}

.activity-map-section .route-start-pulse {
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: route-start-ping 1.8s var(--ease-out) infinite;
}

@keyframes route-start-ping {
  0% { transform: scale(1); opacity: 0.55; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

.activity-map-section .route-end {
  fill: var(--vermilion);
  stroke: var(--paper);
}

.nearby-runner-layer {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.nearby-runner {
  position: absolute;
  top: var(--map-y);
  left: var(--map-x);
  display: grid;
  width: 64px;
  min-height: 72px;
  padding: 0;
  justify-items: center;
  align-content: start;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 8px;
  background: transparent;
  pointer-events: auto;
}

.nearby-runner-avatar {
  position: relative;
  display: grid;
  width: 48px;
  height: 48px;
  padding: 4px;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(39, 84, 232, 0.34), var(--sticker-shadow);
  opacity: 0;
  transform: translate3d(0, 8px, 0) scale(0.95);
}

.activity-map-section.is-arrived .nearby-runner-avatar {
  animation: nearby-runner-in 220ms calc(120ms + var(--marker-delay)) var(--ease-out) forwards;
}

.nearby-runner.is-nearest .nearby-runner-avatar {
  background: var(--vermilion);
  box-shadow: 0 0 0 2px rgba(255, 90, 60, 0.28), var(--sticker-shadow);
}

.nearby-runner.is-nearest .nearby-runner-avatar::after {
  position: absolute;
  inset: -7px;
  border: 1.5px solid rgba(255, 90, 60, 0.66);
  border-radius: 50%;
  content: "";
  animation: nearby-runner-pulse 2.6s calc(var(--marker-delay) * -1) cubic-bezier(0.45, 0, 0.55, 1) infinite;
  pointer-events: none;
}

.nearby-runner-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;
}

.nearby-runner-meta {
  display: inline-grid;
  min-width: 54px;
  margin-top: 4px;
  padding: 4px 6px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(242, 243, 238, 0.96);
  box-shadow: var(--sticker-shadow);
  color: var(--ink);
  line-height: 1.05;
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  white-space: nowrap;
}

.activity-map-section.is-arrived .nearby-runner-meta {
  animation: nearby-runner-meta-in 190ms calc(170ms + var(--marker-delay)) var(--ease-out) forwards;
}

.nearby-runner-meta strong {
  max-width: 54px;
  overflow: hidden;
  font-size: 9px;
  font-weight: 760;
  text-overflow: ellipsis;
}

.nearby-runner-meta small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 680;
}

.nearby-runner:active:not(:disabled) {
  transform: translate3d(-50%, -50%, 0) scale(0.96);
}

@keyframes nearby-runner-in {
  from { transform: translate3d(0, 8px, 0) scale(0.95); opacity: 0; }
  to { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@keyframes nearby-runner-meta-in {
  from { transform: translate3d(0, 6px, 0); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes nearby-runner-pulse {
  0%, 100% { transform: scale(0.96); opacity: 0.18; }
  50% { transform: scale(1.14); opacity: 0.72; }
}

.map-detail-button {
  position: absolute;
  z-index: 7;
  right: 16px;
  bottom: max(18px, calc(var(--safe-bottom) + 14px));
  left: 16px;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 4px 0 rgba(23, 25, 23, 0.15);
  color: var(--paper);
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition: transform 220ms var(--ease-out) 80ms, opacity 150ms var(--ease-out) 80ms;
  pointer-events: none;
}

.activity-map-section.is-arrived .map-detail-button {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
}

.map-detail-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
  text-align: left;
}

.map-detail-copy strong {
  font-size: 15px;
  font-weight: 760;
  line-height: 1.05;
}

.map-detail-copy small {
  overflow: hidden;
  color: rgba(242, 243, 238, 0.68);
  font-size: 10px;
  font-weight: 610;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-detail-arrow {
  flex: 0 0 auto;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--vermilion);
  color: var(--paper);
}

.map-record-sheet {
  height: min(78dvh, 620px);
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.map-record-sheet::-webkit-scrollbar {
  display: none;
}

.map-record-sheet .sheet-handle {
  margin: -8px auto -18px;
}

.map-record-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 16px;
}

.map-record-head p {
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 720;
}

.map-record-head h2 {
  overflow: hidden;
  font-size: 20px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-record-primary {
  display: flex;
  min-height: 92px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0 15px;
}

.map-record-primary > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.map-record-primary strong {
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 60px;
  font-style: italic;
  font-weight: 800;
  line-height: 0.86;
}

.map-record-primary > div span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.map-record-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 750;
}

.map-record-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.map-record-metrics > div {
  min-width: 0;
  padding: 13px 8px 14px;
}

.map-record-metrics > div:first-child {
  padding-left: 0;
}

.map-record-metrics > div + div {
  border-left: 1px solid var(--line);
}

.map-record-metrics dt {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
}

.map-record-metrics dd {
  margin: 5px 0 0;
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 18px;
  font-weight: 760;
  line-height: 1;
  white-space: nowrap;
}

.map-record-metrics dd small {
  margin-left: 3px;
  color: var(--muted);
  font-family: inherit;
  font-size: 8px;
  font-weight: 650;
}

.map-record-splits {
  padding: 17px 0 8px;
}

.map-record-splits > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.map-record-splits h3 {
  font-size: 14px;
}

.map-record-splits header span {
  color: var(--muted);
  font-size: 9px;
}

.map-record-split {
  display: grid;
  min-height: 31px;
  grid-template-columns: 34px minmax(0, 1fr) 42px 47px;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(204, 208, 212, 0.72);
}

.map-record-split > span,
.map-record-split em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.map-record-split i {
  display: block;
  width: var(--split);
  height: 4px;
  border-radius: 4px;
  background: var(--blue);
}

.map-record-split strong {
  font-size: 10px;
  text-align: right;
}

.map-record-split em {
  text-align: right;
  white-space: nowrap;
}

.map-record-split.is-fastest i {
  background: var(--vermilion);
}

.map-record-split.is-fastest strong {
  color: var(--vermilion-dark);
}

.map-record-secondary {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 7px 0 15px;
  border-bottom: 1px solid var(--line);
}

.map-record-secondary span {
  color: var(--muted);
  font-size: 8px;
}

.map-record-secondary .secondary-fact-label {
  display: flex;
  align-items: center;
  gap: 5px;
}

.secondary-fact-label svg {
  flex: 0 0 auto;
  color: var(--blue);
  stroke-width: 1.8;
}

.map-record-secondary span + span {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.map-record-secondary strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
}

.map-record-share {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 720;
  transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out);
}

.map-record-share:active {
  transform: scale(0.98);
  background: #2d302c;
}

@media (max-height: 760px) {
  .map-record-primary {
    min-height: 80px;
    padding: 8px 0 10px;
  }

  .map-record-metrics > div {
    padding-top: 10px;
    padding-bottom: 11px;
  }

  .map-record-splits {
    padding: 12px 0 4px;
  }

  .map-record-split {
    min-height: 28px;
  }

  .map-record-secondary {
    padding: 4px 0 8px;
  }

  .map-record-share {
    margin-top: 10px;
  }
}

.map-transition-wipe {
  position: absolute;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  background: var(--blue);
  color: var(--paper);
  opacity: 1;
  transform: none;
  pointer-events: none;
  will-change: opacity;
}

.activity-map-section.is-arrived .map-transition-wipe {
  transform: none;
}

.map-transition-line {
  position: absolute;
  left: -22%;
  display: block;
  width: 144%;
  transform-origin: center;
  transition: transform 560ms var(--ease-in-out), opacity 220ms var(--ease-out);
}

.map-transition-line--primary {
  top: 42%;
  height: 3px;
  background: rgba(242, 243, 238, 0.82);
  transform: rotate(-14deg);
}

.map-transition-line--accent {
  top: 49%;
  left: 12%;
  width: 46%;
  height: 12px;
  background: var(--vermilion);
  transform: rotate(-14deg);
}

.activity-map-section:is([data-map-transition="entering"], .is-arrived) .map-transition-line--primary {
  transform: translate3d(16%, 0, 0) rotate(-14deg);
}

.activity-map-section:is([data-map-transition="entering"], .is-arrived) .map-transition-line--accent {
  transform: translate3d(34%, 0, 0) rotate(-14deg);
  opacity: 0;
}

.map-transition-title {
  position: absolute;
  right: 24px;
  bottom: max(36px, calc(var(--safe-bottom) + 28px));
  left: 24px;
  transition: transform 300ms var(--ease-out), opacity 180ms var(--ease-out);
}

.map-transition-title small,
.map-transition-title strong {
  display: block;
}

.map-transition-title small {
  margin-bottom: 5px;
  color: rgba(242, 243, 238, 0.78);
  font-size: 11px;
  font-weight: 700;
}

.map-transition-title strong {
  font-size: 30px;
  line-height: 1.1;
}

.activity-map-section:is([data-map-transition="entering"], .is-arrived) .map-transition-title {
  opacity: 0;
  transform: translate3d(0, -24px, 0);
}

.map-sheet-summary {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  padding: 20px;
  border-bottom: 1px solid var(--soft-line);
}

.map-sheet-summary > div + div {
  padding-left: 15px;
  border-left: 1px solid var(--line);
}

.map-sheet-summary strong,
.map-sheet-summary span {
  display: block;
}

.map-sheet-summary strong {
  font-size: 22px;
  line-height: 1;
}

.map-sheet-summary span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
}

.nearby-chat-dialog {
  width: min(calc(100vw - 24px), 390px);
  height: min(calc(100dvh - 32px), 640px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(23, 25, 23, 0.28);
}

.nearby-chat-dialog[open] {
  animation: nearby-chat-in 220ms var(--ease-out) both;
}

.nearby-chat-dialog::backdrop {
  background: rgba(23, 25, 23, 0.58);
}

.nearby-chat-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #faf7f2;
}

.nearby-chat-scene::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(250, 247, 242, 0) 60%, rgba(250, 247, 242, 0.9) 70%, rgba(250, 247, 242, 0.98) 78%);
  content: "";
  pointer-events: none;
}

.nearby-chat-avatar {
  width: 100%;
  height: calc(100% - 68px);
  margin-top: 68px;
  object-fit: cover;
  object-position: center top;
}

.nearby-chat-vector {
  position: absolute;
  right: -22%;
  bottom: 18%;
  width: 78%;
  height: 28%;
  transform: rotate(-12deg);
  border: 22px solid rgba(39, 84, 232, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.nearby-chat-head {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 18px;
  background: rgba(242, 243, 238, 0.94);
}

.nearby-chat-head strong,
.nearby-chat-head span {
  display: block;
}

.nearby-chat-head strong {
  font-size: 16px;
}

.nearby-chat-head span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.nearby-chat-thread {
  position: absolute;
  z-index: 2;
  right: 12px;
  bottom: 70px;
  left: 12px;
  display: flex;
  max-height: 46%;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  overflow-y: auto;
  scrollbar-width: none;
}

.nearby-chat-thread::-webkit-scrollbar {
  display: none;
}

.nearby-chat-message {
  max-width: 76%;
  margin: 0;
  padding: 9px 11px;
  border: 1.5px solid var(--line);
  border-radius: 10px 10px 10px 3px;
  background: var(--surface);
  box-shadow: 0 2px 0 rgba(25, 27, 31, 0.18);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
  animation: chat-message-in 180ms var(--ease-out) both;
}

.nearby-chat-message.is-own {
  align-self: flex-end;
  border-color: #c3d0f7;
  border-radius: 10px 10px 3px 10px;
  background: #e7edfd;
  color: var(--ink);
}

.nearby-chat-compose {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 7px;
}

.nearby-chat-compose input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: rgba(255, 255, 255, 0.97);
  color: var(--ink);
  font-size: 12px;
}

.nearby-chat-compose input:focus-visible {
  border-color: var(--blue);
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.nearby-chat-compose button {
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 2px solid var(--paper);
  border-radius: 10px;
  background: var(--vermilion);
  box-shadow: var(--sticker-shadow);
  color: var(--paper);
}

@keyframes nearby-chat-in {
  from { transform: translate3d(0, 12px, 0) scale(0.97); opacity: 0; }
  to { transform: translate3d(0, 0, 0) scale(1); opacity: 1; }
}

@keyframes chat-message-in {
  from { transform: translate3d(0, 6px, 0); opacity: 0; }
  to { transform: translate3d(0, 0, 0); opacity: 1; }
}

@keyframes hero-depth-parallax {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -88px, 0) scale(0.975); }
}

@keyframes map-depth-parallax {
  from { transform: translate3d(0, -18px, 0) scale(1.06); }
  to { transform: translate3d(0, 18px, 0) scale(1.06); }
}

@supports (animation-timeline: scroll()) {
  .home-scroll .energy-visual-depth {
    animation-name: hero-depth-parallax;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: --home-depth;
    animation-range: 0% 100%;
  }

  .activity-map-section .map-sheet-media {
    view-timeline-name: --map-depth;
    view-timeline-axis: block;
  }

  .activity-map-section .map-sheet-media > img {
    position: absolute;
    top: -6%;
    right: 0;
    bottom: auto;
    left: 0;
    height: 112%;
    animation-name: map-depth-parallax;
    animation-duration: auto;
    animation-timing-function: linear;
    animation-fill-mode: both;
    animation-timeline: --map-depth;
    animation-range: entry 0% cover 100%;
    will-change: transform;
  }
}

.report-sheet {
  min-height: 0;
  max-height: min(78dvh, 560px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.report-sheet:focus {
  outline: none;
}

.report-sheet::-webkit-scrollbar {
  display: none;
}

.report-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: stretch;
  margin-top: 22px;
  padding: 14px 15px 13px;
  border-radius: 10px;
  background: #eceee9;
}

.report-score {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 0;
}

.report-score-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.report-score strong {
  color: var(--vermilion);
  font-size: 56px;
  line-height: 1;
}

.report-score small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.map-record-metrics dt svg {
  flex: 0 0 auto;
  color: var(--blue);
  stroke-width: 1.8;
}

.report-score-label,
.report-copy {
  color: var(--muted);
  font-size: 11px;
}

.report-score-label {
  font-weight: 600;
}

.report-score-meter {
  display: block;
  width: min(180px, 100%);
  height: 5px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #d5d8d2;
}

.report-score-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--vermilion);
}

.report-trend {
  display: flex;
  min-width: 88px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding-left: 14px;
  border-left: 1px solid rgba(25, 27, 31, 0.12);
}

.report-trend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.report-trend svg {
  flex: 0 0 auto;
  stroke-width: 2;
}

.report-trend small {
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}

.report-copy {
  margin-top: 16px;
  line-height: 1.8;
}

.report-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.report-actions {
  margin-top: 19px;
}

.report-share-action {
  display: inline-flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 720;
}

.report-share-action svg {
  flex: 0 0 auto;
}

.report-list span,
.report-list b {
  min-width: 0;
}

.report-list > span {
  display: grid;
  grid-template-columns: 20px 1fr;
  grid-template-areas:
    "icon label"
    "icon value";
  align-items: center;
  column-gap: 6px;
  min-height: 38px;
  color: var(--muted);
  font-size: 9px;
}

.report-list > span > svg {
  grid-area: icon;
  color: var(--vermilion);
  stroke-width: 1.8;
}

.report-list small {
  grid-area: label;
  color: var(--muted);
  font-size: 9px;
}

.report-list b {
  grid-area: value;
  margin-top: 4px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.15;
}

.feature-sheet {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: #f9f9f5;
}

.feature-sheet::-webkit-scrollbar {
  display: none;
}

.feature-backdrop--dialog {
  background: rgba(15, 17, 16, 0.38);
  backdrop-filter: blur(2px);
}

.feature-backdrop--screen {
  background: rgba(15, 17, 16, 0.18);
  backdrop-filter: none;
}

.feature-surface--sheet {
  min-height: 0;
  max-height: min(78dvh, 620px);
}

.feature-surface--dialog {
  position: absolute;
  top: 50%;
  right: 18px;
  bottom: auto;
  left: 18px;
  max-height: calc(100% - 32px);
  padding: 20px 22px 22px;
  border-radius: 8px;
  transform-origin: center;
  animation: feature-dialog-in 220ms var(--ease-out) both;
}

.feature-surface--screen {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  max-height: none;
  padding: calc(18px + env(safe-area-inset-top)) 22px calc(20px + var(--safe-bottom));
  border-radius: 0;
  overflow: hidden;
  animation: feature-screen-in 220ms var(--ease-out) both;
}

@keyframes feature-dialog-in {
  from { opacity: 0; transform: translateY(-48%) scale(0.97); }
  to { opacity: 1; transform: translateY(-50%) scale(1); }
}

@keyframes feature-dialog-out {
  from { opacity: 1; transform: translateY(-50%) scale(1); }
  to { opacity: 0; transform: translateY(-49%) scale(0.985); }
}

@keyframes feature-screen-in {
  from { opacity: 0.68; transform: translateX(10%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes feature-screen-out {
  from { opacity: 1; transform: translateX(0); }
  to { opacity: 0; transform: translateX(7%); }
}

#sheetRoot.closing .feature-surface--dialog {
  animation: feature-dialog-out 160ms var(--ease-out) both;
}

#sheetRoot.closing .feature-surface--screen {
  animation: feature-screen-out 170ms var(--ease-out) both;
}

.feature-sheet-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: start;
  gap: 10px;
  margin-bottom: 20px;
}

.feature-sheet-head:has([data-action="sheet-back"]) {
  grid-template-columns: 44px minmax(0, 1fr) 44px;
}

.feature-sheet-head > div {
  min-width: 0;
}

.feature-sheet-head h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-sheet-content {
  display: grid;
  gap: 18px;
  padding-bottom: 2px;
}

.feature-surface--screen .feature-sheet-head {
  margin-bottom: 16px;
}

.feature-surface--screen .feature-sheet-content {
  min-height: 0;
  align-content: start;
  align-items: start;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.feature-surface--screen .feature-sheet-content::-webkit-scrollbar {
  display: none;
}

.feature-surface--screen[data-feature-type="friend-chat"] .feature-sheet-content {
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
}

.feature-surface--screen[data-feature-type="friend-chat"] .feature-chat-thread {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

#sheetRoot.is-layer-switch .feature-sheet {
  animation: none;
}

#sheetRoot.is-layer-switch .feature-sheet-head,
#sheetRoot.is-layer-switch .feature-sheet-content {
  animation: feature-layer-forward 180ms var(--ease-out) both;
}

#sheetRoot.is-layer-switch .feature-sheet-content {
  animation-delay: 18ms;
}

#sheetRoot.is-layer-switch.is-layer-back .feature-sheet-head,
#sheetRoot.is-layer-switch.is-layer-back .feature-sheet-content {
  animation-name: feature-layer-back;
}

@keyframes feature-layer-forward {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes feature-layer-back {
  from { opacity: 0; transform: translateX(-10px); }
  to { opacity: 1; transform: translateX(0); }
}

.feature-copy,
.feature-footnote {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.feature-footnote {
  margin-top: 2px;
  font-size: 10px;
}

.feature-option-list,
.feature-friend-list,
.feature-faq-list {
  border-top: 1px solid var(--line);
}

.feature-option-row,
.feature-friend-row,
.feature-faq-list > button {
  border-bottom: 1px solid var(--line);
}

.feature-fact-list {
  display: grid;
  gap: 18px;
}

.feature-fact-list > div {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  grid-template-areas:
    "icon label value"
    "icon note value";
  align-items: start;
  column-gap: 10px;
  row-gap: 4px;
}

.feature-fact-list span,
.feature-fact-list small,
.feature-stat-grid span,
.feature-label,
.feature-device-card span,
.feature-setting-block > span {
  color: var(--muted);
  font-size: 10px;
}

.feature-fact-list strong {
  grid-area: value;
  align-self: center;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.feature-fact-list span {
  grid-area: label;
  color: var(--ink);
  font-size: 11px;
  font-weight: 650;
}

.feature-fact-list .feature-fact-icon {
  display: grid;
  grid-area: icon;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  background: rgba(39, 84, 232, 0.08);
  color: var(--blue);
}

.feature-fact-icon svg {
  width: 17px;
  height: 17px;
  stroke-width: 1.8;
}

.feature-fact-list small {
  grid-area: note;
  font-size: 10px;
}

.feature-fact-list.compact > div {
  grid-template-columns: 24px 1fr auto;
  grid-template-areas:
    "icon label value"
    "icon note value";
}

.feature-fact-list.compact strong {
  font-size: 14px;
}

.feature-score {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.feature-score-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-right: 1px;
  place-items: center;
  border-radius: 8px;
  background: rgba(39, 84, 232, 0.08);
  color: var(--blue);
}

.feature-score-icon svg {
  stroke-width: 1.8;
}

.feature-score strong {
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 68px;
  font-style: italic;
  line-height: 0.9;
}

.feature-score span {
  color: var(--muted);
  font-size: 11px;
}

.feature-score b,
.is-positive {
  color: var(--blue);
  font-size: 11px;
}

.feature-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--soft-line);
}

.feature-progress span {
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.feature-segmented {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft-line);
}

.feature-segmented button {
  min-height: 44px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.feature-segmented button.is-active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(25, 27, 31, 0.08);
}

.feature-trend-chart {
  display: flex;
  height: 150px;
  align-items: end;
  gap: 7px;
  padding: 16px 8px 0;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0 36px, var(--soft-line) 37px 38px);
}

.feature-trend-chart span {
  flex: 1;
  height: var(--bar);
  min-height: 10px;
  border-radius: 4px 4px 0 0;
  background: var(--blue);
  animation: feature-bar-in 420ms var(--ease-out) var(--bar-delay) both;
}

.feature-trend-chart[data-range="90"] span:nth-child(3n) {
  background: var(--vermilion);
}

@keyframes feature-bar-in {
  from { transform: scaleY(0.1); opacity: 0.25; }
  to { transform: scaleY(1); opacity: 1; }
}

.feature-trend-axis {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
}

.feature-stat-grid {
  display: grid;
  border-top: 1px solid var(--line);
}

.feature-stat-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-stat-grid > div {
  min-width: 0;
  padding: 13px 8px 4px 0;
}

.feature-stat-grid > div + div {
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

.feature-stat-grid span {
  display: block;
  margin-bottom: 5px;
}

.feature-stat-grid .feature-stat-label {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 6px;
  line-height: 1.2;
}

.feature-stat-grid .feature-stat-label > span {
  display: inline;
  min-width: 0;
  margin: 0;
}

.feature-stat-label svg {
  flex: 0 0 auto;
  color: var(--blue);
  stroke-width: 1.8;
}

.feature-stat-grid strong {
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 21px;
  font-style: italic;
}

.feature-stat-grid em {
  margin-left: 2px;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.feature-option-row,
.feature-faq-list > button {
  display: grid;
  width: 100%;
  min-height: 58px;
  align-items: center;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  background: transparent;
  text-align: left;
}

.feature-friend-row {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0;
  background: transparent;
  text-align: left;
}

.feature-option-row > span:not(.feature-option-icon),
.feature-friend-row > span:nth-child(2) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.feature-option-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(39, 84, 232, 0.08);
  color: var(--blue);
}

.feature-option-icon svg {
  stroke-width: 1.8;
}

.feature-option-row strong,
.feature-friend-row strong {
  font-size: 12px;
}

.feature-option-row small,
.feature-friend-row small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-switch {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 24px;
  border-radius: 12px;
  background: var(--line);
  transition: background-color 160ms var(--ease-out);
}

.feature-switch::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 1px 3px rgba(25, 27, 31, 0.18);
  content: "";
  transition: transform 160ms var(--ease-out);
}

.feature-option-row[aria-checked="true"] .feature-switch {
  background: var(--blue);
}

.feature-option-row[aria-checked="true"] .feature-switch::after {
  transform: translateX(16px);
}

.feature-setting-block {
  display: grid;
  gap: 9px;
}

.feature-settings-links {
  gap: 10px;
  margin-top: 2px;
}

.feature-settings-link-list {
  border-top: 1px solid var(--line);
}

.feature-settings-link {
  display: grid;
  width: 100%;
  min-height: 64px;
  grid-template-columns: 28px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
}

.feature-settings-link > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.feature-settings-link strong {
  font-size: 12px;
}

.feature-settings-link small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-settings-link > svg {
  color: var(--muted);
}

.feature-primary-action {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 720;
}

.feature-primary-action:disabled {
  opacity: 0.65;
}

.feature-primary-action.is-loading svg {
  animation: feature-spin 700ms linear infinite;
}

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

.feature-friend-row .friend-avatar {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  font-size: 13px;
}

.feature-friend-row > span:nth-child(2) {
  flex: 1;
}

.feature-friend-row > svg {
  color: var(--blue);
}

.feature-device-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-device-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  background: var(--soft-line);
  color: var(--blue);
}

.feature-device-card > div {
  display: grid;
  gap: 4px;
  flex: 1;
}

.feature-device-card > div strong {
  font-size: 13px;
}

.feature-device-card > div span {
  font-size: 10px;
}

.feature-device-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.feature-chat-thread {
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: end;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-chat-message {
  max-width: 78%;
  padding: 9px 12px;
  border-radius: 10px 10px 10px 2px;
  background: var(--soft-line);
  color: var(--ink);
  font-size: 11px;
  line-height: 1.5;
}

.feature-chat-message.is-me {
  justify-self: end;
  border-radius: 10px 10px 2px 10px;
  background: var(--blue);
  color: var(--paper);
}

.feature-chat-compose {
  display: flex;
  gap: 8px;
}

.feature-chat-compose input,
.feature-feedback textarea {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
}

.feature-chat-compose input {
  flex: 1;
  height: 44px;
  padding: 0 12px;
}

.feature-chat-compose button {
  display: grid;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  background: var(--blue);
  color: var(--paper);
}

.feature-chat-compose button:disabled {
  opacity: 0.42;
}

.feature-faq-list > button {
  font-size: 12px;
  font-weight: 680;
}

.feature-faq-list > button > span:not(.feature-faq-icon) {
  min-width: 0;
}

.feature-faq-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(39, 84, 232, 0.08);
  color: var(--blue);
}

.feature-faq-icon svg {
  stroke-width: 1.8;
}

.feature-faq-list > button > svg {
  color: var(--muted);
  transition: transform 160ms var(--ease-out);
}

.feature-faq-list > button[aria-expanded="true"] > svg {
  transform: rotate(180deg);
}

.feature-faq-list > div {
  padding: 0 24px 13px 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}

.feature-feedback {
  display: grid;
  gap: 8px;
}

.feature-feedback label {
  color: var(--muted);
  font-size: 10px;
}

.feature-feedback textarea {
  width: 100%;
  resize: vertical;
  padding: 10px 12px;
  line-height: 1.5;
}

.feature-feedback textarea:focus,
.feature-chat-compose input:focus {
  border-color: var(--blue);
}

.feature-feedback textarea:focus-visible,
.feature-chat-compose input:focus-visible {
  outline: 3px solid rgba(39, 84, 232, 0.16);
}

.feature-feedback textarea::placeholder,
.feature-chat-compose input::placeholder {
  color: #676b66;
  opacity: 1;
}

.feature-form-message {
  min-height: 16px;
  color: var(--vermilion);
  font-size: 10px;
  line-height: 1.5;
}

.feature-form-message[hidden] {
  display: block;
  visibility: hidden;
}

.feature-form-message[data-state="success"] {
  color: var(--green);
}

.body-page.is-date-updating .summary-card,
.body-page.is-date-updating .body-group {
  opacity: 0.48;
  transform: translateY(3px);
}

.body-page .summary-card,
.body-page .body-group {
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

/* Toast */
#toast {
  position: absolute;
  z-index: 120;
  right: auto;
  bottom: calc(104px + var(--safe-bottom));
  left: 50%;
  display: inline-flex;
  width: max-content;
  max-width: calc(100% - 48px);
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  transform: translate(-50%, 8px) scale(0.98);
  border: 1px solid rgba(242, 243, 238, 0.12);
  border-radius: 8px;
  background: rgba(23, 25, 23, 0.96);
  box-shadow: 0 8px 20px rgba(23, 25, 23, 0.18);
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.25;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

#toast.show {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

#toast.is-motion-instant {
  transition: none;
}

.toast-mark {
  display: grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--paper);
}

.toast-mark svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.6;
}

.toast-copy {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 2px 7px;
}

.toast-detail {
  color: rgba(242, 243, 238, 0.64);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.map-scene-copy > span:last-child {
  font-size: 9px;
  font-weight: 620;
}

.app-shell:has(#sheetRoot.open) #toast {
  top: calc(14px + env(safe-area-inset-top));
  bottom: auto;
  transform: translate(-50%, -8px) scale(0.98);
}

.app-shell:has(#sheetRoot.open) #toast.show {
  transform: translate(-50%, 0) scale(1);
}

@media (max-height: 800px) {
  .energy-hero {
    --ring-size: min(78vw, calc(var(--shell-height) - 390px), 320px);
    --energy-visual-top: clamp(108px, 26dvh, 180px);
    --hero-action-gap: 24px;
    --hero-reserve: 254px;
  }
}

@media (min-height: 820px) {
  .energy-hero {
    --ring-size: min(90vw, 360px);
    --energy-visual-top: clamp(130px, 18.5dvh, 158px);
  }

  .hero-actions {
    top: auto;
    bottom: clamp(112px, 16.4dvh, 150px);
  }
}

@media (max-width: 370px) {
  .energy-hero {
    --ring-size: min(84vw, 300px);
    --hero-action-gap: 56px;
    --hero-reserve: 208px;
  }

  .home-performance-rail {
    margin-bottom: 13px;
  }

  .lottie-stage,
  .avatar-fallback {
    transform-origin: center center;
  }

  .lottie-stage {
    bottom: -8%;
    transform: translateX(-50%) scale(0.72);
  }

  .avatar-fallback {
    bottom: -15%;
    transform: translateX(-50%) scale(0.87);
  }

  .hero-actions {
    right: 16px;
    left: 16px;
  }

  .home-performance-rail {
    grid-template-columns: minmax(0, 1.05fr) minmax(122px, 0.95fr);
    gap: 11px;
  }

  .performance-primary strong {
    font-size: 34px;
  }

  .performance-stat strong {
    font-size: 21px;
  }

}

@media (max-height: 620px) {
  .energy-hero {
    --ring-size: min(57vw, 210px);
    --energy-visual-top: max(72px, calc(env(safe-area-inset-top) + 54px));
    --hero-action-gap: 6px;
    --hero-reserve: 94px;
  }

  .map-sheet-caption {
    top: max(10px, calc(env(safe-area-inset-top) + 6px));
    right: 12px;
    left: 12px;
    min-height: 56px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .map-detail-button {
    right: 14px;
    bottom: max(14px, calc(var(--safe-bottom) + 10px));
    left: 14px;
    min-height: 56px;
    padding: 6px 6px 6px 14px;
  }

  .map-locate-button {
    right: 14px;
    bottom: max(82px, calc(var(--safe-bottom) + 78px));
  }

  .map-sheet-media.is-amap-live .leaflet-top.leaflet-right {
    top: 76px;
    right: 10px;
  }

  .map-detail-arrow {
    width: 44px;
    height: 44px;
  }

  .map-transition-title {
    right: 18px;
    bottom: max(22px, calc(var(--safe-bottom) + 16px));
    left: 18px;
  }

  .topbar-overlay {
    padding-top: max(14px, env(safe-area-inset-top));
  }

  .energy-label {
    display: none;
  }

  .performance-metric small {
    display: none;
  }

  .energy-count {
    top: 12%;
    gap: 6px;
  }

  .energy-count strong {
    min-width: 2.15ch;
    font-size: 52px;
  }

  .energy-count span {
    margin: 0;
    font-size: 11px;
  }

  .lottie-stage,
  .avatar-fallback {
    transform-origin: center center;
  }

  .lottie-stage {
    bottom: -6%;
    transform: translateX(-50%) scale(0.68);
  }

  .avatar-fallback {
    bottom: -18%;
    transform: translateX(-50%) scale(0.84);
  }

  .energy-visual {
    height: var(--ring-size);
  }

  .home-performance-rail {
    min-height: 36px;
    grid-template-columns: 1fr;
    margin-bottom: 6px;
    padding: 2px 0;
  }

  .performance-primary {
    grid-template-columns: 20px max-content 1fr;
  }

  .performance-primary strong {
    font-size: 28px;
  }

  .performance-secondary {
    display: none;
  }

  .start-button,
  .finish-inline-button {
    height: 44px;
  }

}

@media (min-width: 700px) {
  .app-shell {
    --shell-height: min(900px, calc(100dvh - 32px));
    border-radius: 10px;
    box-shadow: 0 12px 36px rgba(23, 25, 23, 0.12);
  }
}

@media (hover: hover) and (pointer: fine) {
  .icon-button:hover {
    border-color: #b7bab4;
    background: rgba(255, 255, 255, 0.94);
  }

  .text-button:hover {
    color: var(--vermilion);
  }

  .activity-section .text-button:hover {
    color: var(--paper);
  }

  .map-launch:hover,
  .friend-row:hover,
  .menu-list button:hover,
  .recovery-row:hover {
    background-color: rgba(23, 25, 23, 0.045);
  }

  .feature-option-row:hover,
  .feature-friend-row:hover,
  .feature-faq-list > button:hover {
    color: var(--blue);
  }

  .report-share-action:hover {
    background: #2d302c;
  }
}

@media (prefers-reduced-motion: reduce) {
  #sheetRoot .workout-sheet,
  #sheetRoot .feature-sheet,
  #sheetRoot .sheet-backdrop {
    animation-duration: 1ms !important;
  }

  .home-map-layer,
  .activity-map-content {
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }

  .heart-chart .heart-area,
  .heart-chart .heart-line,
  .heart-chart .heart-peak,
  .feature-trend-chart span,
  .feature-primary-action.is-loading svg,
  #sheetRoot.is-layer-switch .feature-sheet-head,
  #sheetRoot.is-layer-switch .feature-sheet-content,
  .sleep-line span {
    animation: none !important;
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .heart-chart .heart-line {
    stroke-dashoffset: 0 !important;
  }

  .energy-visual-depth,
  .activity-map-section .map-sheet-media > img {
    transform: none !important;
    animation: none !important;
  }

  .map-transition-wipe {
    opacity: 1;
    transform: none !important;
  }

  .activity-map-section.is-arrived .map-transition-wipe {
    opacity: 0;
  }

  .map-transition-line,
  .map-transition-title,
  .map-sheet-media,
  .map-sheet-caption,
  .map-locate-button,
  .map-detail-button {
    transform: none !important;
  }

  .map-locate-button[data-state="loading"] [data-locate-loading] svg {
    animation: none !important;
  }

  .activity-map-section.is-arrived .nearby-runner {
    transform: translate3d(-50%, -50%, 0) !important;
    animation: none !important;
  }

  .activity-map-section.is-arrived .nearby-runner-avatar,
  .activity-map-section.is-arrived .nearby-runner-meta {
    opacity: 1;
    transform: none !important;
    animation: none !important;
  }

  .nearby-runner.is-nearest .nearby-runner-avatar::after {
    animation: none !important;
    opacity: 0.34;
  }

  #tabbar {
    transition: none;
  }

  .tab-glider {
    transition: none;
  }

  .tab-item.is-confirming svg,
  .start-button.is-state-changing [data-workout-action-label],
  .start-button.is-state-changing .start-button-icon,
  .finish-inline-button,
  .route-fx-band {
    animation: none !important;
  }

  #view {
    transition: opacity 1ms linear;
  }

  .activity-map-section .route-shadow,
  .activity-map-section .route-path {
    stroke-dashoffset: 0;
  }

  .activity-map-section .route-start-pulse {
    display: none;
  }

  .activity-map-section .route-start,
  .activity-map-section .route-end {
    transform: none;
    opacity: 1;
  }

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

/* Home data stage: top calorie dial + bottom typographic orbit */
.energy-hero {
  --dial-size: min(74vw, 296px);
}

.energy-ring.energy-carousel {
  z-index: 2;
  top: 0;
  bottom: auto;
  overflow: visible;
  animation: none;
  pointer-events: none;
  transform: translateX(-50%);
  isolation: isolate;
  background: transparent;
}

.energy-hero {
  background: var(--paper);
}

.energy-dial {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 50%;
  width: var(--dial-size);
  height: var(--dial-size);
  transform: translateX(-50%);
  pointer-events: none;
}

.energy-dial-track,
.energy-dial-progress {
  fill: none;
  stroke-width: 9.5;
}

.energy-dial-track {
  stroke: rgba(25, 27, 31, 0.1);
}

.energy-dial-progress {
  stroke: var(--blue);
  stroke-dasharray: calc(var(--ring-progress, 0) * 100) 100;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  filter: drop-shadow(0 2px 0 rgba(25, 27, 31, 0.14));
  transition: stroke-dasharray 420ms var(--ease-out);
}

.drum-wrap {
  position: absolute;
  z-index: 3;
  top: calc(var(--dial-size) + 35px);
  right: auto;
  left: 50%;
  width: min(92vw, 360px);
  height: 140px;
  overflow: hidden;
  border-radius: 8px;
  isolation: isolate;
  transform: translateX(-50%);
}

.drum-wrap::before,
.drum-wrap::after {
  content: none;
}

.energy-carousel-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: grab;
  outline: none;
  pointer-events: auto;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.energy-carousel-stage:focus-visible {
  border-radius: 8px;
  outline: 2px solid rgba(39, 84, 232, 0.72);
  outline-offset: -3px;
}

.energy-carousel-stage.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.drum-track,
.orbit-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.drum-track {
  opacity: 0;
  transform: translateY(7px) scale(0.985);
  transform-origin: 50% 50%;
  animation: orbit-stage-in 420ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes orbit-stage-in {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.orbit-field {
  transform-origin: 50% 50%;
  will-change: transform;
}

.orbit-ribbon-svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
  pointer-events: none;
}

.orbit-ribbon-path {
  fill: none;
  stroke: none;
}

.orbit-ribbon-layer {
  pointer-events: none;
}

.orbit-ribbon-layer--rear {
  opacity: 0.48;
}

.orbit-ribbon-layer--front {
  opacity: 1;
}

.orbit-ribbon-text {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
  letter-spacing: 0;
  text-rendering: geometricPrecision;
  white-space: pre;
}

.orbit-ribbon-text--front {
  fill: var(--ink);
  font-size: var(--ribbon-front-font, 28px);
}

.orbit-ribbon-text--rear {
  fill: var(--ink);
  font-size: var(--ribbon-rear-font, 18px);
}

.orbit-ribbon-label {
  fill: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-size: 0.56em;
  font-style: normal;
  font-weight: 700;
}

.orbit-ribbon-value {
  fill: inherit;
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 1em;
  font-style: italic;
  font-weight: 800;
}

.orbit-ribbon-unit {
  fill: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  font-size: 0.4em;
  font-style: normal;
  font-weight: 700;
}

.orbit-ribbon-text--rear .orbit-ribbon-label {
  fill: var(--muted);
}

.orbit-ribbon-text--rear .orbit-ribbon-value {
  fill: var(--ink);
}

.orbit-ribbon-text--rear .orbit-ribbon-unit {
  fill: var(--muted);
}

.orbit-ribbon-measure {
  visibility: hidden;
  pointer-events: none;
}

.carousel-manage-button {
  position: absolute;
  z-index: 9;
  top: -2px;
  right: -2px;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(25, 27, 31, 0.28);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(25, 27, 31, 0.1);
  pointer-events: auto;
  transition: transform 140ms var(--ease-out), border-color 140ms var(--ease-out), background-color 140ms var(--ease-out);
}

.carousel-manage-button::before {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: transparent;
  content: "";
}

.carousel-manage-button:active {
  transform: scale(0.96);
}

.carousel-manage-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.energy-carousel + .energy-copy {
  z-index: 5;
  top: 0;
  bottom: auto;
  width: var(--dial-size);
  height: var(--dial-size);
}

.energy-carousel + .energy-copy .energy-count {
  top: 50%;
  left: 50%;
  gap: 6px;
  transform: translate(-50%, -50%);
}

.energy-carousel + .energy-copy .energy-count strong {
  min-width: 2.2ch;
  font-size: clamp(52px, calc(var(--dial-size) * 0.3), 76px);
  line-height: 0.82;
  text-align: center;
}

.energy-carousel + .energy-copy .energy-count span {
  font-size: clamp(11px, calc(var(--dial-size) * 0.058), 15px);
}

.energy-carousel + .energy-copy .energy-label {
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
}

.carousel-module-list {
  display: grid;
}

.carousel-module-option {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 58px;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(25, 27, 31, 0.1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.carousel-module-option:last-child {
  border-bottom: 0;
}

.carousel-module-option.is-disabled {
  cursor: not-allowed;
}

.carousel-module-option.is-disabled .carousel-module-check {
  opacity: 0.48;
}

.carousel-module-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.carousel-module-option > span:nth-of-type(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.carousel-module-option strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-module-option small {
  color: var(--muted);
  font-size: 11px;
}

.carousel-module-check {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(25, 27, 31, 0.2);
  border-radius: 6px;
  color: transparent;
  transition: color 140ms var(--ease-out), background-color 140ms var(--ease-out), border-color 140ms var(--ease-out), transform 140ms var(--ease-out);
}

.carousel-module-option input:checked ~ .carousel-module-check {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--paper);
}

.carousel-module-option:active .carousel-module-check {
  transform: scale(0.94);
}

.carousel-module-option:focus-within {
  border-radius: 6px;
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.carousel-module-count {
  margin-top: 14px;
}

/* Calorie goal picker: scroll wheel */
.goal-wheel-box {
  position: relative;
  margin-top: 16px;
}

.goal-wheel-box::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 14px;
  left: 14px;
  height: 44px;
  border: 1.5px solid var(--blue);
  border-radius: 12px;
  background: rgba(39, 84, 232, 0.05);
  transform: translateY(-50%);
  pointer-events: none;
}

.goal-wheel-box::after {
  content: "kcal";
  position: absolute;
  z-index: 1;
  top: 50%;
  left: calc(50% + 44px);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-58%);
  pointer-events: none;
}

.goal-wheel {
  height: 200px;
  padding: 80px 0;
  overflow-x: hidden;
  overflow-y: auto;
  border-radius: 14px;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(transparent, #000 26%, #000 74%, transparent);
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.goal-wheel::-webkit-scrollbar {
  display: none;
}

.goal-wheel:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.goal-wheel-item {
  display: grid;
  height: 40px;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  transition: color 140ms var(--ease-out), font-size 140ms var(--ease-out);
  user-select: none;
}

.goal-wheel-item.is-current {
  color: var(--ink);
  font-size: 30px;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-manage-button:hover {
    border-color: rgba(39, 84, 232, 0.38);
    background: rgba(232, 235, 246, 0.96);
  }

  .carousel-module-option:hover .feature-option-icon {
    color: var(--blue);
  }
}

@media (max-height: 720px) {
  .energy-carousel + .energy-copy .energy-count {
    top: 50%;
    transform: translate(-50%, -50%);
  }

  .carousel-manage-button {
    top: -2px;
    right: -2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drum-track {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .carousel-manage-button,
  .carousel-module-check {
    transition-duration: 0ms;
  }
}

/* Energy copy alignment for drum carousel */
.energy-copy {
  pointer-events: none;
}

@media (max-height: 620px) {
  .energy-hero {
    --dial-size: min(57vw, 210px);
  }
}

/* Tall viewports have room for a separate drum stage below the dial */
@media (min-height: 820px) {
  .drum-wrap {
    top: calc(var(--dial-size) + 31px);
  }
}

/* Keep the dial, data orbit, primary action, and floating tab bar in
   separate vertical bands on compact phones. */
@media (max-height: 800px) {
  .energy-hero {
    --dial-size: min(68vw, 248px);
    --energy-visual-top: clamp(116px, 18dvh, 144px);
  }

  .drum-wrap {
    top: calc(var(--dial-size) + 25px);
    height: 134px;
  }

  .hero-actions {
    top: auto;
    bottom: max(108px, calc(100px + var(--safe-bottom)));
  }
}

@media (max-height: 720px) {
  .energy-hero {
    --dial-size: min(56vw, 218px);
    --energy-visual-top: max(92px, calc(env(safe-area-inset-top) + 72px));
  }

  .drum-wrap {
    top: calc(var(--dial-size) + 18px);
    height: 128px;
  }

  .start-button,
  .finish-inline-button {
    height: 56px;
  }
}

@media (max-height: 620px) {
  .energy-hero {
    --dial-size: min(52vw, 190px);
    --energy-visual-top: max(72px, calc(env(safe-area-inset-top) + 54px));
  }

  .drum-wrap {
    top: calc(var(--dial-size) + 14px);
    height: 112px;
  }

  .start-button,
  .finish-inline-button {
    height: 44px;
  }
}

/* ui-v2-163: cohesive product finish
   Keep the current paper / cobalt / ink direction, but remove the old sticker
   treatment so surfaces, controls, and motion share one visual language. */
:root {
  --shadow-card: 0 4px 18px rgba(25, 27, 31, 0.055), 0 1px 2px rgba(25, 27, 31, 0.04);
  --shadow-float: 0 10px 28px rgba(25, 27, 31, 0.12), 0 2px 6px rgba(25, 27, 31, 0.05);
  --blue-wash: #e8ecff;
  --paper-deep: #e9ebe5;
}

/* Route changes keep their directional hierarchy through #view. The former
   blue/red sweep read as a separate layer and made the app feel like slides. */
.route-fx {
  display: none;
}

#tabbar {
  height: 64px;
  padding: 5px 12px;
  border: 1px solid rgba(25, 27, 31, 0.13);
  border-radius: 16px;
  background: rgba(247, 248, 244, 0.94);
  box-shadow: var(--shadow-float);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.tab-glider {
  top: 5px;
  bottom: 5px;
  left: 12px;
  width: calc((100% - 24px) / 3);
  border-radius: 12px;
  background: var(--blue-wash);
}

.tab-glider::before {
  display: none;
}

.tab-item {
  gap: 3px;
  font-size: 11px;
}

.tab-item svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.8;
}

.body-page .card,
.me-page .card {
  border-color: rgba(25, 27, 31, 0.11);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
}

.body-page .vital-group,
.body-page .sleep-group,
.body-page .composition-group {
  border-color: rgba(25, 27, 31, 0.10);
  border-radius: 0;
  box-shadow: none;
}

.body-page .summary-card,
.body-page .heart-group,
.me-page .stat-card,
.me-page .report-band {
  background: rgba(247, 248, 244, 0.96);
}

.body-page .body-group h2,
.me-page .friend-section h2 {
  font-weight: 760;
  letter-spacing: -0.01em;
}

.body-page .detail-grid span,
.vital-rows span,
.vital-rows small,
.friend-row small {
  font-size: 11px;
  line-height: 1.35;
}

.body-page .summary-card strong,
.me-page .stat-card strong {
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.68);
}

.profile-avatar,
.home-user-avatar,
.friend-avatar {
  box-shadow: 0 2px 10px rgba(25, 27, 31, 0.10);
}

.profile-badge {
  box-shadow: none;
}

.report-band {
  min-height: 150px;
  border: 1px solid rgba(25, 27, 31, 0.09);
  box-shadow: var(--shadow-card);
}

/* The report card carries the same instrument language as the home dial. The
   motion field is kept quiet enough that the copy and entry affordance stay
   primary. */
.report-band::after {
  width: 46%;
  opacity: 0.62;
  background-image: url("../assets/images/performance-vector-field-v2.png");
  background-position: 100% 0;
  background-size: 130% auto;
  mix-blend-mode: multiply;
}

.report-band::before {
  background: linear-gradient(90deg, rgba(247, 248, 244, 0.99) 0%, rgba(247, 248, 244, 0.98) 52%, rgba(247, 248, 244, 0.70) 78%, rgba(247, 248, 244, 0) 100%);
}

.report-band-summary {
  max-width: 190px;
}

.energy-dial-track {
  stroke: rgba(25, 27, 31, 0.075);
}

.energy-dial-progress {
  filter: drop-shadow(0 4px 9px rgba(39, 84, 232, 0.18));
}

.energy-motion-video {
  position: absolute;
  z-index: 0;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  border-radius: 50%;
  opacity: 0.035;
  mix-blend-mode: multiply;
  pointer-events: none;
  filter: hue-rotate(24deg) saturate(1.18) contrast(0.94);
  transform: scale(1.01);
  transition: opacity 260ms var(--ease-out), transform 500ms var(--ease-out);
}

.energy-hero[data-workout-state="running"] .energy-motion-video {
  opacity: 0.12;
  transform: scale(1.035);
}

.energy-hero[data-motion-active="false"] .energy-motion-video {
  visibility: hidden;
}

.drum-wrap {
  width: min(100vw, 390px);
}

.orbit-ribbon-svg {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent 16%, rgba(0, 0, 0, 0.45) 25%, #000 33%, #000 67%, rgba(0, 0, 0, 0.45) 75%, transparent 84%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, transparent 16%, rgba(0, 0, 0, 0.45) 25%, #000 33%, #000 67%, rgba(0, 0, 0, 0.45) 75%, transparent 84%, transparent 100%);
}

.orbit-ribbon-layer--rear {
  opacity: 0.36;
}

.orbit-ribbon-text--rear {
  font-size: var(--ribbon-rear-font, 16px);
}

@media (prefers-reduced-motion: reduce) {
  .energy-motion-video {
    display: none;
  }
}

.carousel-manage-button {
  border-color: rgba(25, 27, 31, 0.16);
  background: rgba(247, 248, 244, 0.92);
  box-shadow: 0 4px 14px rgba(25, 27, 31, 0.08);
}

.start-button {
  box-shadow: 0 7px 18px rgba(25, 27, 31, 0.16), 0 1px 2px rgba(25, 27, 31, 0.18);
}

.start-button:active {
  box-shadow: 0 3px 9px rgba(25, 27, 31, 0.13);
}

@media (prefers-reduced-motion: reduce) {
  #tabbar,
  .start-button {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ui-v2-165: make the data ribbon read as a deliberate instrument band.
   The carousel keeps its existing physics; only the visual contrast and
   viewport falloff are tuned so labels remain legible while the ends recede. */
.drum-wrap {
  top: calc(var(--dial-size) + 28px);
  height: 146px;
}

.orbit-ribbon-svg {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.48) 12%,
    #000 24%,
    #000 76%,
    rgba(0, 0, 0, 0.48) 88%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 0.48) 12%,
    #000 24%,
    #000 76%,
    rgba(0, 0, 0, 0.48) 88%,
    transparent 100%
  );
}

.orbit-ribbon-layer--rear {
  opacity: 0.44;
}

.orbit-ribbon-text--front {
  font-weight: 760;
}

.orbit-ribbon-text--front .orbit-ribbon-label {
  fill: rgba(25, 27, 31, 0.72);
}

.orbit-ribbon-text--front .orbit-ribbon-unit {
  fill: rgba(25, 27, 31, 0.62);
}

.orbit-ribbon-text--rear .orbit-ribbon-label {
  fill: rgba(102, 107, 115, 0.82);
}

.orbit-ribbon-text--rear .orbit-ribbon-unit {
  fill: rgba(102, 107, 115, 0.72);
}

@media (min-height: 820px) {
  .drum-wrap {
    top: calc(var(--dial-size) + 28px);
    height: 146px;
  }
}

@media (max-height: 800px) {
  .drum-wrap {
    top: calc(var(--dial-size) + 22px);
    height: 136px;
  }
}

@media (max-height: 720px) {
  .drum-wrap {
    top: calc(var(--dial-size) + 16px);
    height: 128px;
  }
}

@media (max-height: 620px) {
  .drum-wrap {
    top: calc(var(--dial-size) + 12px);
    height: 112px;
  }
}

/* ui-v2-166: the supplied athlete becomes the visual anchor. The existing
   metric carousel stays in front as a readable, draggable data band. */
.energy-hero--athlete {
  --athlete-stage-height: min(61dvh, 520px);
  --athlete-dial-size: min(72vw, calc(var(--athlete-stage-height) * 0.72), 300px);
  --energy-visual-top: max(74px, calc(env(safe-area-inset-top) + 62px));
  --hero-action-gap: 18px;
}

.energy-hero--athlete .energy-visual {
  height: calc(var(--athlete-stage-height) + 34px);
}

.energy-hero--athlete .energy-visual-depth {
  height: var(--athlete-stage-height);
}

.energy-ring.energy-ring--athlete {
  top: 0;
  right: 0;
  bottom: auto;
  left: 0;
  width: 100%;
  height: var(--athlete-stage-height);
  overflow: visible;
  transform: none;
}

.energy-model-surface {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
}

.energy-model-surface::before {
  position: absolute;
  right: 12%;
  bottom: 12%;
  left: 12%;
  height: 22%;
  border-radius: 50%;
  background: rgba(110, 126, 255, 0.12);
  box-shadow: 0 0 70px rgba(86, 103, 255, 0.16);
  content: "";
  filter: blur(18px);
  pointer-events: none;
}

.athlete-model-stage {
  position: absolute;
  z-index: 2;
  inset: 0 10px 0;
  overflow: hidden;
  pointer-events: none;
}

.athlete-model-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.athlete-model-loader {
  position: absolute;
  z-index: 3;
  top: 52%;
  left: 50%;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(242, 243, 238, 0.18);
  border-top-color: rgba(118, 139, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 180ms var(--ease-out);
  animation: athlete-loader-spin 800ms linear infinite;
}

.athlete-model-stage[data-ready="true"] .athlete-model-loader,
.athlete-model-stage[data-error="true"] .athlete-model-loader {
  opacity: 0;
  animation-play-state: paused;
}

@keyframes athlete-loader-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.energy-hero--athlete .energy-dial {
  z-index: 1;
  top: 48px;
  left: 50%;
  width: var(--athlete-dial-size);
  height: var(--athlete-dial-size);
  opacity: 0.62;
  transform: translateX(-50%);
}

.energy-hero--athlete .energy-dial-track,
.energy-hero--athlete .energy-dial-progress {
  stroke-width: 4.5;
}

.energy-hero--athlete .energy-dial-track {
  stroke: rgba(242, 243, 238, 0.13);
}

.energy-hero--athlete .energy-dial-progress {
  stroke: var(--blue);
  filter: drop-shadow(0 3px 9px rgba(78, 104, 255, 0.36));
}

.energy-hero--athlete .drum-wrap {
  z-index: 4;
  top: auto;
  right: 14px;
  bottom: 12px;
  left: 14px;
  width: auto;
  height: clamp(96px, 14dvh, 118px);
  transform: none;
  border: 1px solid rgba(25, 27, 31, 0.08);
  border-radius: 8px;
  background: rgba(242, 243, 238, 0.95);
  box-shadow: 0 7px 18px rgba(4, 6, 6, 0.2);
}

.energy-hero--athlete .energy-carousel-stage {
  border-radius: inherit;
}

.energy-hero--athlete .orbit-ribbon-svg {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

.energy-hero--athlete .carousel-manage-button {
  z-index: 9;
  top: 12px;
  right: 14px;
  border-color: rgba(242, 243, 238, 0.22);
  background: rgba(242, 243, 238, 0.96);
  box-shadow: 0 5px 14px rgba(4, 6, 6, 0.22);
}

.energy-hero--athlete .energy-copy {
  z-index: 6;
  top: 82px;
  right: 18px;
  bottom: auto;
  left: auto;
  width: 108px;
  height: 96px;
  padding: 11px 12px 10px;
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 6px 16px rgba(4, 6, 6, 0.22);
  pointer-events: auto;
}

.energy-hero--athlete .energy-label {
  top: 10px;
  left: 12px;
  display: grid;
  gap: 4px;
  align-items: start;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.1;
  transform: none;
  white-space: nowrap;
}

.energy-hero--athlete .energy-goal {
  color: var(--ink);
  font-size: 10px;
  text-align: left;
}

.energy-hero--athlete .energy-carousel + .energy-copy .energy-count {
  top: auto;
  right: 12px;
  bottom: 11px;
  left: 12px;
  gap: 4px;
  color: var(--ink);
  transform: none;
}

.energy-hero--athlete .energy-carousel + .energy-copy .energy-count strong {
  min-width: 0;
  font-size: 46px;
  line-height: 0.76;
  text-align: left;
}

.energy-hero--athlete .energy-carousel + .energy-copy .energy-count span {
  font-size: 9px;
}

.energy-hero--athlete .hero-actions {
  top: calc(var(--energy-visual-top) + var(--athlete-stage-height) + var(--hero-action-gap));
  bottom: auto;
}

.energy-hero--athlete .start-button {
  background: var(--ink);
  box-shadow: 0 7px 18px rgba(25, 27, 31, 0.22), 0 1px 2px rgba(25, 27, 31, 0.2);
}

.energy-hero--athlete[data-workout-state="running"] .start-button {
  background: var(--blue);
}

@media (max-width: 370px) {
  .energy-hero--athlete {
    --energy-visual-top: max(70px, calc(env(safe-area-inset-top) + 58px));
  }

  .energy-hero--athlete .energy-copy {
    right: 12px;
    width: 100px;
  }

  .energy-hero--athlete .drum-wrap {
    right: 10px;
    left: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .athlete-model-loader {
    animation: none;
  }
}

/* ui-v2-170: keep the original paper surface and let the metrics form the
   orbit around the athlete instead of becoming a separate dark showcase. */
.energy-hero--athlete {
  --athlete-stage-height: min(56dvh, 470px);
  --athlete-dial-size: min(72vw, 300px);
  --energy-visual-top: max(92px, calc(env(safe-area-inset-top) + 72px));
  --hero-action-gap: 24px;
}

.energy-hero--athlete .energy-visual {
  height: calc(var(--athlete-stage-height) + 34px);
}

.energy-hero--athlete .energy-ring.energy-ring--athlete {
  height: var(--athlete-stage-height);
}

.energy-hero--athlete .energy-model-surface {
  background: transparent;
  box-shadow: none;
}

.energy-hero--athlete .energy-model-surface,
.energy-hero--athlete .athlete-model-stage,
.energy-hero--athlete .energy-carousel-stage,
.energy-hero--athlete .drum-wrap {
  isolation: isolate;
}

.energy-hero--athlete .energy-model-surface::after {
  position: absolute;
  right: 18%;
  bottom: 1%;
  left: 18%;
  height: 10%;
  border-radius: 50%;
  background: rgba(25, 27, 31, 0.08);
  content: "";
  filter: blur(18px);
  pointer-events: none;
}

.energy-hero--athlete .energy-model-surface::before {
  right: 22%;
  bottom: 2%;
  left: 22%;
  height: 12%;
  background: rgba(25, 27, 31, 0.12);
  box-shadow: none;
  filter: blur(16px);
}

.energy-hero--athlete .athlete-model-stage {
  inset: 0;
}

.energy-hero--athlete .energy-dial {
  top: 20px;
  opacity: 0.22;
  z-index: 1;
}

.energy-hero--athlete .energy-dial-track {
  stroke: rgba(25, 27, 31, 0.12);
}

.energy-hero--athlete .energy-dial-progress {
  filter: drop-shadow(0 2px 6px rgba(39, 84, 232, 0.18));
}

.energy-hero--athlete .drum-wrap {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.energy-hero--athlete .energy-carousel-stage,
.energy-hero--athlete .drum-track,
.energy-hero--athlete .orbit-field {
  background: transparent;
}

.energy-hero--athlete .energy-carousel-stage {
  border-radius: 0;
}

.energy-hero--athlete .orbit-ribbon-svg {
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.energy-hero--athlete .orbit-ribbon-layer--rear {
  opacity: 0.38;
}

.energy-hero--athlete .orbit-ribbon-layer--front {
  transform: translateY(4px);
}

.energy-hero--athlete .carousel-manage-button {
  top: 8px;
  right: 12px;
  border-color: rgba(25, 27, 31, 0.14);
  background: rgba(247, 248, 244, 0.88);
  box-shadow: 0 2px 10px rgba(25, 27, 31, 0.08);
}

.energy-hero--athlete .energy-copy {
  top: 12px;
  right: auto;
  bottom: auto;
  left: 18px;
  width: 118px;
  height: 96px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.energy-hero--athlete .energy-label {
  top: 6px;
  left: 0;
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
  transform: none;
}

.energy-hero--athlete .energy-label > span,
.energy-hero--athlete .energy-goal {
  display: block;
}

.energy-hero--athlete .energy-goal {
  color: var(--ink);
  font-size: 11px;
  pointer-events: auto;
}

.energy-hero--athlete .energy-carousel + .energy-copy .energy-count {
  top: 54px;
  right: auto;
  bottom: auto;
  left: 0;
  gap: 5px;
  transform: none;
}

.energy-hero--athlete .energy-carousel + .energy-copy .energy-count strong {
  font-size: 58px;
  line-height: 0.78;
}

.energy-hero--athlete .energy-carousel + .energy-copy .energy-count span {
  font-size: 10px;
}

.energy-hero--athlete .hero-actions {
  top: calc(var(--energy-visual-top) + var(--athlete-stage-height) + var(--hero-action-gap));
  bottom: auto;
}

@media (max-width: 370px) {
  .energy-hero--athlete {
    --energy-visual-top: max(86px, calc(env(safe-area-inset-top) + 66px));
  }

  .energy-hero--athlete .energy-copy {
    left: 14px;
  }
}

/* Model picker: a quiet secondary control beside the athlete, separate from
   the metric-module control above it. */
.energy-hero--athlete .athlete-model-button {
  position: absolute;
  z-index: 12;
  top: 48%;
  right: 14px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(25, 27, 31, 0.14);
  border-radius: 50%;
  background: rgba(247, 248, 244, 0.9);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(25, 27, 31, 0.1);
  pointer-events: auto;
  transition: transform 140ms var(--ease-out), background-color 140ms var(--ease-out), border-color 140ms var(--ease-out);
}

.energy-hero--athlete .athlete-model-button::before {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  content: "";
}

.energy-hero--athlete .athlete-model-button:active {
  transform: scale(0.96);
}

.energy-hero--athlete .athlete-model-button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.energy-hero--athlete .athlete-model-button:hover {
  border-color: rgba(39, 84, 232, 0.42);
  background: var(--paper);
}

.athlete-model-stage[data-model-loading="true"] .athlete-model-loader {
  opacity: 1;
  animation-play-state: running;
}

.athlete-model-list {
  display: grid;
  gap: 8px;
}

.athlete-model-option {
  display: grid;
  min-height: 84px;
  grid-template-columns: 58px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(25, 27, 31, 0.12);
  border-radius: 10px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}

.athlete-model-option:active {
  transform: scale(0.985);
}

.athlete-model-option:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.athlete-model-option.is-selected {
  border-color: var(--blue);
  background: rgba(39, 84, 232, 0.06);
}

.athlete-model-option:disabled {
  cursor: wait;
  opacity: 0.62;
}

.athlete-model-thumb {
  display: grid;
  width: 58px;
  height: 66px;
  place-items: end center;
  overflow: hidden;
  border-radius: 8px;
  background: #eef0ec;
}

.athlete-model-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

.athlete-model-copy strong {
  overflow: hidden;
  font-size: 15px;
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.athlete-model-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.athlete-model-check {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid rgba(25, 27, 31, 0.18);
  border-radius: 50%;
  color: transparent;
}

.athlete-model-option.is-selected .athlete-model-check {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--paper);
}

@media (max-width: 370px) {
  .energy-hero--athlete .athlete-model-button {
    right: 10px;
    width: 40px;
    height: 40px;
  }
}

/* ui-v2-170: the orbit is a layered spatial cue, not a card or a stage. */
.energy-hero--athlete .drum-wrap {
  z-index: auto;
  isolation: auto;
}

.energy-hero--athlete .energy-model-surface {
  z-index: auto;
  isolation: auto;
}

.energy-hero--athlete .energy-carousel-stage {
  z-index: auto;
  isolation: auto;
}

.energy-hero--athlete .drum-track {
  z-index: auto;
  opacity: 1;
  transform: none;
  animation: none;
}

.energy-hero--athlete .orbit-field--rear {
  z-index: 1;
}

.energy-hero--athlete .orbit-field--front {
  z-index: 3;
}

.energy-hero--athlete .orbit-ribbon-svg--rear,
.energy-hero--athlete .orbit-ribbon-svg--front {
  z-index: inherit;
}

.energy-hero--athlete .athlete-model-stage {
  z-index: 2;
}

.energy-hero--athlete .energy-copy {
  width: 132px;
  isolation: isolate;
  background: linear-gradient(90deg, var(--paper) 0 76%, rgba(242, 243, 238, 0.82) 90%, transparent 100%);
}

@media (max-width: 370px) {
  .energy-hero--athlete .energy-copy {
    width: 124px;
  }
}

/* ui-v2-173: give the hero more breathing room, keep the action compact, and
   let the rear metric layer recede without softening the active values. */
.energy-hero--athlete {
  --energy-visual-top: max(110px, calc(env(safe-area-inset-top) + 90px));
}

.energy-hero--athlete .hero-actions {
  right: 32px;
  left: 32px;
}

.energy-hero--athlete .orbit-ribbon-svg--rear {
  filter: blur(var(--orbit-rear-blur, 0.65px));
  will-change: filter;
}

@media (max-width: 370px) {
  .energy-hero--athlete {
    --energy-visual-top: max(104px, calc(env(safe-area-inset-top) + 84px));
  }

  .energy-hero--athlete .hero-actions {
    right: 26px;
    left: 26px;
  }
}

/* ui-v2-174: the athlete is a manual object, while the metric orbit keeps its
   own gesture surface. Keep the rotation hit area centered on the figure so
   the orbit remains draggable at the sides. */
.energy-hero--athlete .energy-dial {
  display: none;
}

.energy-hero--athlete .athlete-rotate-hit {
  position: absolute;
  z-index: 4;
  top: 6%;
  left: 27%;
  width: 46%;
  height: 80%;
  border-radius: 50%;
  cursor: grab;
  outline: none;
  pointer-events: auto;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.energy-hero--athlete .athlete-rotate-hit.is-rotating {
  cursor: grabbing;
}

.energy-hero--athlete .athlete-rotate-hit:focus-visible {
  outline: none;
}

.energy-hero--athlete .athlete-rotate-hit:focus-visible::after {
  position: absolute;
  top: 8%;
  right: 8%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 4px rgba(39, 84, 232, 0.12);
  content: "";
}

.energy-hero--athlete .start-button {
  width: min(100%, 286px);
  margin-inline: auto;
}

.energy-hero--athlete .energy-model-surface::before {
  background: rgba(110, 126, 255, 0.045);
  box-shadow: 0 0 84px rgba(86, 103, 255, 0.06);
  filter: blur(28px);
}

.energy-hero--athlete .energy-model-surface::after {
  right: 15%;
  bottom: 0;
  left: 15%;
  height: 14%;
  background: rgba(25, 27, 31, 0.045);
  filter: blur(28px);
}

/* ui-v2-176: close the unused gap beneath the primary action without moving
   the floating navigation or crowding shorter viewports. */
.energy-hero--athlete {
  --hero-action-gap: clamp(8px, calc(21dvh - 122px), 52px);
}

/* ui-v2-191: feature overlays share an app-level hierarchy and surface language. */
.feature-backdrop--sheet {
  background: rgba(25, 27, 31, 0.24);
  backdrop-filter: blur(3px) saturate(0.96);
}

.feature-sheet.feature-surface--sheet {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: 100%;
  min-height: 0;
  max-height: min(86dvh, 700px);
  flex-direction: column;
  padding: 0 18px calc(18px + var(--safe-bottom));
  border-radius: 24px 24px 0 0;
  background: var(--paper);
  box-shadow: 0 -16px 42px rgba(25, 27, 31, 0.15);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  animation: feature-drawer-in 260ms var(--ease-drawer) both;
}

.feature-sheet.feature-surface--sheet .sheet-handle {
  flex: 0 0 40px;
  width: 64px;
  height: 40px;
  margin: 0 auto;
  cursor: grab;
  touch-action: none;
}

.feature-sheet.feature-surface--sheet .sheet-handle::before {
  top: 16px;
  width: 36px;
  height: 4px;
  border-radius: 99px;
  background: rgba(102, 107, 115, 0.48);
}

.feature-sheet.feature-surface--sheet .feature-sheet-head {
  position: sticky;
  z-index: 2;
  top: 0;
  flex: 0 0 auto;
  margin: 0 -18px;
  padding: 0 18px 16px;
  background: var(--paper);
}

.feature-sheet.feature-surface--sheet .feature-sheet-head h2 {
  font-size: 24px;
  line-height: 1.12;
}

.feature-sheet.feature-surface--sheet .feature-sheet-head .eyebrow {
  color: var(--blue);
  font-size: 10px;
}

.feature-sheet.feature-surface--sheet .feature-sheet-head .icon-button.quiet {
  border-radius: 14px;
  background: rgba(225, 227, 226, 0.66);
}

.feature-sheet.feature-surface--sheet .feature-sheet-head .icon-button.quiet:focus-visible {
  outline: 2px solid rgba(39, 84, 232, 0.44);
  outline-offset: 2px;
}

.feature-sheet.feature-surface--sheet .feature-sheet-content {
  display: grid;
  flex: 0 0 auto;
  gap: 16px;
  min-height: 0;
  padding-bottom: 12px;
}

.feature-sheet.feature-surface--sheet .feature-copy {
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.feature-sheet.feature-surface--sheet .feature-footnote {
  padding: 0 2px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.feature-sheet.feature-surface--sheet .feature-option-list,
.feature-sheet.feature-surface--sheet .feature-friend-list,
.feature-sheet.feature-surface--sheet .feature-faq-list,
.feature-sheet.feature-surface--sheet .feature-settings-link-list,
.feature-sheet.feature-surface--sheet .carousel-module-list {
  padding: 4px 14px;
  border: 1px solid rgba(204, 208, 212, 0.56);
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--sheet .feature-option-row,
.feature-sheet.feature-surface--sheet .feature-friend-row,
.feature-sheet.feature-surface--sheet .feature-settings-link,
.feature-sheet.feature-surface--sheet .carousel-module-option {
  border-bottom-color: rgba(204, 208, 212, 0.58);
}

.feature-sheet.feature-surface--sheet .feature-option-row:last-child,
.feature-sheet.feature-surface--sheet .feature-friend-row:last-child,
.feature-sheet.feature-surface--sheet .feature-settings-link:last-child,
.feature-sheet.feature-surface--sheet .carousel-module-option:last-child,
.feature-sheet.feature-surface--sheet .feature-faq-list > button:last-of-type {
  border-bottom: 0;
}

.feature-sheet.feature-surface--sheet .feature-option-row,
.feature-sheet.feature-surface--sheet .feature-friend-row,
.feature-sheet.feature-surface--sheet .feature-settings-link {
  min-height: 64px;
  padding: 10px 0;
}

.feature-sheet.feature-surface--sheet .feature-settings-link-list {
  padding-top: 4px;
  padding-bottom: 4px;
}

.feature-sheet.feature-surface--sheet .feature-settings-links {
  gap: 9px;
  margin-top: 0;
}

.feature-sheet.feature-surface--sheet .feature-setting-block > .feature-label {
  padding: 0 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.feature-sheet.feature-surface--sheet .feature-fact-list {
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--sheet .feature-fact-list > div {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(204, 208, 212, 0.5);
}

.feature-sheet.feature-surface--sheet .feature-fact-list > div:last-child {
  border-bottom: 0;
}

.feature-sheet.feature-surface--sheet .feature-stat-grid {
  padding: 7px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--sheet .feature-stat-grid > div {
  padding: 10px 8px 7px;
}

.feature-sheet.feature-surface--sheet .feature-trend-chart {
  height: 148px;
  padding: 16px 10px 0;
  border: 1px solid rgba(204, 208, 212, 0.56);
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--sheet .feature-segmented {
  border: 0;
  border-radius: 12px;
  background: var(--soft-line);
}

.feature-sheet.feature-surface--sheet .feature-segmented button {
  border-radius: 9px;
}

.feature-sheet.feature-surface--sheet .feature-primary-action {
  min-height: 48px;
  border-radius: 13px;
  box-shadow: 0 3px 0 rgba(25, 27, 31, 0.12);
}

.feature-sheet.feature-surface--sheet .feature-device-card {
  padding: 12px 14px;
  border: 1px solid rgba(204, 208, 212, 0.56);
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--sheet .feature-chat-thread {
  min-height: 180px;
  padding: 14px;
  border: 1px solid rgba(204, 208, 212, 0.56);
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--sheet .feature-chat-compose input,
.feature-sheet.feature-surface--sheet .feature-feedback textarea {
  border-color: rgba(204, 208, 212, 0.82);
  border-radius: 12px;
  background: var(--surface);
}

.feature-sheet.feature-surface--sheet .feature-chat-compose button {
  border-radius: 12px;
}

.feature-sheet.feature-surface--sheet .feature-faq-list > button {
  min-height: 58px;
  padding: 10px 0;
}

.feature-sheet.feature-surface--sheet .feature-faq-list > div {
  padding-right: 10px;
}

.feature-sheet.feature-surface--sheet .goal-wheel-box {
  margin-top: 0;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--sheet .goal-wheel-box::before {
  right: 20px;
  left: 20px;
  border-color: rgba(39, 84, 232, 0.32);
  background: rgba(39, 84, 232, 0.045);
}

.feature-sheet.feature-surface--sheet .athlete-model-list {
  gap: 8px;
}

.feature-sheet.feature-surface--sheet .athlete-model-option {
  min-height: 82px;
  border-color: rgba(204, 208, 212, 0.72);
  border-radius: 14px;
  background: var(--surface);
}

.feature-sheet.feature-surface--sheet .athlete-model-option.is-selected {
  border-color: rgba(39, 84, 232, 0.72);
  background: rgba(39, 84, 232, 0.07);
}

.feature-sheet.feature-surface--sheet[data-feature-type="friend-chat"] {
  height: min(84dvh, 680px);
  min-height: min(560px, calc(100dvh - 24px));
  overflow: hidden;
}

.feature-sheet.feature-surface--sheet[data-feature-type="friend-chat"] .feature-sheet-content {
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  overflow: hidden;
}

.feature-sheet.feature-surface--sheet[data-feature-type="friend-chat"] .feature-chat-thread {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

@keyframes feature-drawer-in {
  from { opacity: 0; transform: translate3d(0, 12%, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes feature-drawer-out {
  from { opacity: 1; transform: translate3d(0, 0, 0); }
  to { opacity: 0; transform: translate3d(0, 8%, 0); }
}

#sheetRoot.closing .feature-sheet.feature-surface--sheet {
  animation: feature-drawer-out 170ms var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  .feature-sheet.feature-surface--sheet,
  #sheetRoot.closing .feature-sheet.feature-surface--sheet {
    animation-duration: 1ms !important;
  }
}

/* Page-level destinations keep the same app rhythm without pretending to be a
   browser dialog. They are used for settings, history, friends, and nested
   account/help content that needs sustained reading or scrolling. */
.feature-sheet.feature-surface--screen {
  padding: max(18px, env(safe-area-inset-top)) 18px calc(24px + var(--safe-bottom));
  background: var(--paper);
  box-shadow: none;
}

.feature-sheet.feature-surface--screen .feature-sheet-head {
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 20px;
  padding: 0 0 2px;
}

.feature-sheet.feature-surface--screen .feature-sheet-head:has([data-action="sheet-back"]) {
  grid-template-columns: 44px minmax(0, 1fr);
}

.feature-sheet.feature-surface--screen .feature-sheet-head h2 {
  font-size: 24px;
  line-height: 1.12;
}

.feature-sheet.feature-surface--screen .feature-sheet-head .eyebrow {
  color: var(--blue);
  font-size: 10px;
}

.feature-sheet.feature-surface--screen .feature-sheet-head .icon-button.quiet:focus-visible {
  outline: 2px solid rgba(39, 84, 232, 0.44);
  outline-offset: 2px;
}

.feature-sheet button:focus-visible {
  outline: 2px solid rgba(39, 84, 232, 0.42);
  outline-offset: -2px;
}

.feature-sheet.feature-surface--screen .feature-sheet-content {
  gap: 18px;
  padding-bottom: 8px;
}

.feature-sheet.feature-surface--screen .feature-copy {
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--surface);
  color: var(--muted);
  line-height: 1.6;
}

.feature-sheet.feature-surface--screen .feature-option-list,
.feature-sheet.feature-surface--screen .feature-friend-list,
.feature-sheet.feature-surface--screen .feature-faq-list,
.feature-sheet.feature-surface--screen .feature-settings-link-list,
.feature-sheet.feature-surface--screen .carousel-module-list {
  padding: 4px 14px;
  border: 1px solid rgba(204, 208, 212, 0.56);
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--screen .feature-option-row,
.feature-sheet.feature-surface--screen .feature-friend-row,
.feature-sheet.feature-surface--screen .feature-settings-link {
  min-height: 64px;
  padding: 10px 0;
  border-bottom-color: rgba(204, 208, 212, 0.58);
}

.feature-sheet.feature-surface--screen .feature-option-row:last-child,
.feature-sheet.feature-surface--screen .feature-friend-row:last-child,
.feature-sheet.feature-surface--screen .feature-settings-link:last-child,
.feature-sheet.feature-surface--screen .feature-faq-list > button:last-of-type {
  border-bottom: 0;
}

.feature-sheet.feature-surface--screen .feature-settings-link-list {
  padding-top: 4px;
  padding-bottom: 4px;
}

.feature-sheet.feature-surface--screen .feature-fact-list {
  gap: 4px;
  padding: 6px;
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--screen .feature-fact-list > div {
  padding: 9px 8px;
  border-bottom: 1px solid rgba(204, 208, 212, 0.5);
}

.feature-sheet.feature-surface--screen .feature-fact-list > div:last-child {
  border-bottom: 0;
}

.feature-sheet.feature-surface--screen .feature-stat-grid {
  padding: 7px;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--screen .feature-trend-chart,
.feature-sheet.feature-surface--screen .feature-chat-thread,
.feature-sheet.feature-surface--screen .feature-device-card {
  border: 1px solid rgba(204, 208, 212, 0.56);
  border-radius: 16px;
  background: var(--surface);
}

.feature-sheet.feature-surface--screen .feature-trend-chart {
  padding: 16px 10px 0;
}

.feature-sheet.feature-surface--screen .feature-device-card {
  padding: 12px 14px;
}

.feature-sheet.feature-surface--screen .feature-chat-thread {
  padding: 14px;
}

.feature-sheet.feature-surface--screen .feature-chat-compose input,
.feature-sheet.feature-surface--screen .feature-feedback textarea {
  border-color: rgba(204, 208, 212, 0.82);
  border-radius: 12px;
  background: var(--surface);
}

.feature-sheet.feature-surface--screen .feature-primary-action {
  border-radius: 13px;
  box-shadow: 0 3px 0 rgba(25, 27, 31, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .feature-sheet.feature-surface--screen,
  #sheetRoot.closing .feature-sheet.feature-surface--screen {
    animation-duration: 1ms !important;
  }
}

/* ui-v2-192: finish the athlete hero with semantic rhythm, not extra scenery. */
.energy-hero--athlete {
  --hero-action-gap: clamp(16px, calc(14dvh - 74px), 34px);
}

.energy-hero--athlete .energy-progress-note {
  display: grid;
  width: min(100%, 274px);
  min-height: 18px;
  grid-template-columns: auto minmax(34px, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 0 auto 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}

.energy-progress-note-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
}

.energy-progress-note-copy strong {
  color: var(--ink);
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 16px;
  font-style: italic;
  font-weight: 800;
}

.energy-progress-note-remaining {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.energy-hero--athlete .start-button {
  width: min(100%, 274px);
  height: 58px;
  border-radius: 12px;
}

.energy-hero--athlete .carousel-manage-button,
.energy-hero--athlete .athlete-model-button {
  width: 42px;
  height: 42px;
  border-color: rgba(25, 27, 31, 0.13);
  background: rgba(247, 248, 244, 0.88);
  box-shadow: 0 4px 12px rgba(25, 27, 31, 0.10);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.energy-hero--athlete .carousel-manage-button {
  top: 8px;
  right: 14px;
}

.energy-hero--athlete .athlete-model-button {
  right: 14px;
}

.energy-hero--athlete .energy-model-surface::before {
  right: 25%;
  bottom: 1%;
  left: 25%;
  height: 10%;
  background: rgba(25, 27, 31, 0.035);
  box-shadow: none;
  filter: blur(26px);
}

.energy-hero--athlete .energy-model-surface::after {
  right: 31%;
  bottom: 1%;
  left: 31%;
  height: 6%;
  background: rgba(25, 27, 31, 0.05);
  filter: blur(16px);
}

.energy-hero--athlete .orbit-ribbon-svg {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    transparent 14%,
    rgba(0, 0, 0, 0.42) 24%,
    #000 33%,
    #000 67%,
    rgba(0, 0, 0, 0.42) 76%,
    transparent 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    transparent 14%,
    rgba(0, 0, 0, 0.42) 24%,
    #000 33%,
    #000 67%,
    rgba(0, 0, 0, 0.42) 76%,
    transparent 86%,
    transparent 100%
  );
}

.energy-hero--athlete .orbit-ribbon-layer--front {
  transform: translateY(2px);
}

.energy-hero--athlete .orbit-ribbon-svg--rear {
  filter: blur(var(--orbit-rear-blur, 0.9px));
}

@media (max-width: 370px) {
  .energy-hero--athlete .energy-progress-note,
  .energy-hero--athlete .start-button {
    width: min(100%, 256px);
  }

  .energy-hero--athlete .energy-progress-note {
    gap: 6px;
  }

  .energy-progress-note-remaining {
    font-size: 8px;
  }
}

/* ui-v2-193: finish the home hierarchy through alignment and spacing only. */
.energy-hero--athlete .athlete-tool-stack {
  position: absolute;
  z-index: 12;
  top: clamp(94px, 23%, 110px);
  right: 14px;
  display: grid;
  gap: 10px;
  pointer-events: auto;
}

.energy-hero--athlete .athlete-tool-stack .carousel-manage-button,
.energy-hero--athlete .athlete-tool-stack .athlete-model-button {
  position: relative;
  top: auto;
  right: auto;
}

.energy-hero--athlete .hero-actions {
  top: auto;
  bottom: calc(max(20px, calc(var(--safe-bottom) + 12px)) + 100px);
}

.energy-hero--athlete .energy-model-surface::before {
  right: 30%;
  bottom: 2%;
  left: 30%;
  height: 6%;
  background: rgba(25, 27, 31, 0.026);
  filter: blur(20px);
}

.energy-hero--athlete .energy-model-surface::after {
  display: none;
}

@media (max-width: 370px) {
  .energy-hero--athlete .athlete-tool-stack {
    right: 10px;
  }
}

@media (max-height: 720px) {
  .energy-hero--athlete {
    --athlete-stage-height: min(54dvh, 360px);
    --energy-visual-top: max(92px, calc(env(safe-area-inset-top) + 72px));
  }

  .energy-hero--athlete .hero-actions {
    bottom: calc(max(20px, calc(var(--safe-bottom) + 12px)) + 84px);
  }
}

@media (max-height: 620px) {
  .energy-hero--athlete {
    --athlete-stage-height: min(46dvh, 300px);
    --energy-visual-top: max(82px, calc(env(safe-area-inset-top) + 62px));
  }
}

/* ui-v2-194: preserve bare metric text over dark athlete materials. The
   paper-colored edge is a glyph treatment, not a background surface. */
.energy-hero--athlete:has(.athlete-model-stage[data-model-id="onyx"]) .orbit-ribbon-text--front .orbit-ribbon-value {
  paint-order: stroke fill;
  stroke: rgba(242, 243, 238, 0.86);
  stroke-linejoin: round;
  stroke-width: 1.8px;
}

.energy-hero--athlete:has(.athlete-model-stage[data-model-id="onyx"]) .orbit-ribbon-text--front .orbit-ribbon-label,
.energy-hero--athlete:has(.athlete-model-stage[data-model-id="onyx"]) .orbit-ribbon-text--front .orbit-ribbon-unit {
  paint-order: stroke fill;
  stroke: rgba(242, 243, 238, 0.72);
  stroke-linejoin: round;
  stroke-width: 0.85px;
}

/* ui-v2-196: express goal progress as a compact native-app readout. */
.energy-hero--athlete .energy-progress-note {
  display: flex;
  min-height: 28px;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 10px;
}

.energy-progress-note-copy {
  gap: 7px;
}

.energy-progress-note-copy > span {
  color: rgba(102, 107, 115, 0.9);
  font-size: 10px;
}

.energy-progress-note-copy strong {
  color: var(--blue);
  font-size: 20px;
  font-style: normal;
  line-height: 1;
}

.energy-progress-note-remaining {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 4px;
  color: rgba(102, 107, 115, 0.9);
  font-size: 10px;
  white-space: nowrap;
}

.energy-progress-note-remaining strong {
  color: var(--ink);
  font-family: "Barlow Condensed Local", "Arial Narrow", sans-serif;
  font-size: 15px;
  font-style: normal;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.energy-progress-note-remaining small {
  color: rgba(102, 107, 115, 0.9);
  font-size: 9px;
  font-weight: 650;
}
