@font-face {
  font-family: DeskSans;
  src: local("Inter"), local("Aptos"), local("Arial");
  font-display: swap;
}
:root {
  --paper: #f6f6f0;
  --white: #fff;
  --ink: #213b31;
  --muted: #768077;
  --green: #174c3c;
  --lime: #d6efab;
  --line: #e0e4d9;
  --soft: #e9eee3;
  --orange: #c87548;
  --red: #ad403d;
  --radius: 18px;
  --shadow: 0 12px 40px #1439280b;
  --font: DeskSans, "Helvetica Neue", Arial, sans-serif;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #9ebc59;
  outline-offset: 3px;
}
button {
  color: inherit;
}
img,
svg {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1,
h2,
h3,
h4 {
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 600;
}
h1 {
  font-size: 72px;
}
h2 {
  font-size: 42px;
}
h3 {
  font-size: 24px;
}
p {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1.2px;
  white-space: nowrap;
}
.brand > span {
  font-size: 25px;
  font-weight: 400;
  margin-left: 2px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 14px 23px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  transition:
    background 0.2s,
    transform 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.button > span {
  font-size: 22px;
  line-height: 1;
}
.button.primary {
  background: var(--green);
  color: #fff;
}
.button.primary:hover {
  background: #24664b;
}
.button.lime {
  background: var(--lime);
  color: var(--green);
}
.button.outline {
  border-color: #c9d0c5;
  background: transparent;
}
.button.ghost {
  background: var(--soft);
  color: var(--green);
}
.button.danger {
  color: #a43e35;
  background: #fae9e3;
}
.button.small {
  padding: 10px 16px;
  font-size: 13px;
  gap: 18px;
}
.button.large {
  padding: 17px 26px;
  font-size: 15px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  margin-bottom: 22px;
}
.status-dot {
  display: inline-block;
  background: #79a25a;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
  box-shadow: 0 0 0 4px #79a25a15;
}
.quiet {
  font-size: 12px;
  color: var(--muted);
}
.pill {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--soft);
  border-radius: 50px;
  font-weight: 550;
}
.glass {
  background: #ffffff24;
  backdrop-filter: blur(12px);
  border: 1px solid #ffffff45;
  color: #fff;
}
.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  background: #fff;
  padding: 12px;
  z-index: 100;
}
.skip-link:focus {
  top: 10px;
}
.landing-header {
  height: 104px;
  max-width: 1480px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5.2%;
}
.landing-header nav {
  display: flex;
  gap: 35px;
  font-size: 13px;
}
.landing-header nav a:hover {
  color: var(--orange);
}
.hero {
  max-width: 1480px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 42px;
  padding: 34px 5.2% 60px;
  min-height: 650px;
}
.hero-copy {
  padding: 55px 0 25px;
  align-self: center;
}
.hero h1 {
  font-size: clamp(54px, 5.6vw, 86px);
  letter-spacing: -5px;
  line-height: 0.99;
  margin-bottom: 28px;
}
.hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
  color: #6b855c;
}
.hero-copy > p {
  font-size: 17px;
  max-width: 340px;
  line-height: 1.7;
  margin-bottom: 30px;
}
.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 25px;
}
.tiny-icon {
  font-size: 26px;
  color: #5a7e5a;
}
.hero-scene {
  min-height: 548px;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #a4c2a8;
}
.hero-landscape {
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 65% center;
  position: absolute;
  transform: scale(1.05) translateX(var(--pan, 0px));
  transition: transform 0.35s;
}
.hero-scene:after {
  content: "";
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, #123d2e80);
  pointer-events: none;
}
.scene-label {
  position: absolute;
  top: 25px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #245448;
  z-index: 1;
}
.scene-live {
  padding: 8px 10px;
  background: #f6f9e699;
  border-radius: 5px;
}
.scene-label > span:last-child {
  align-self: center;
}
.scene-location {
  position: absolute;
  left: 32px;
  bottom: 125px;
  right: 32px;
  z-index: 2;
  color: #fff;
}
.scene-location > span {
  font-size: 10px;
  letter-spacing: 2px;
}
.scene-location h2 {
  font-size: 53px;
  letter-spacing: -2px;
  margin: 16px 0 22px;
}
.scene-location > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.round-arrow {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid #ffffff70;
  border-radius: 50%;
  font-size: 26px;
}
.mini-stat {
  position: absolute;
  bottom: 23px;
  left: 24px;
  right: 24px;
  background: #f8f9edf0;
  border: 1px solid #fff;
  border-radius: 11px;
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 17px 20px;
  z-index: 2;
}
.mini-stat svg {
  width: 40px;
  fill: none;
  stroke: #d5deca;
  stroke-width: 3;
}
.mini-stat svg path {
  stroke: #668654;
  stroke-linecap: round;
}
.mini-stat strong,
.mini-stat span {
  display: block;
  font-size: 12px;
}
.mini-stat span {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.feature-strip {
  max-width: 1326px;
  margin: 0 auto;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-strip > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  border-right: 1px solid var(--line);
  padding: 0 24px;
}
.feature-strip > div:last-child {
  border: 0;
}
.feature-strip > div > span {
  grid-row: span 2;
  font-size: 32px;
  color: #7e9265;
}
.feature-strip strong {
  font-size: 12px;
  font-weight: 600;
}
.feature-strip small {
  font-size: 10px;
  color: var(--muted);
}
.experience {
  max-width: 1480px;
  padding: 92px 5.2% 76px;
  margin: auto;
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: end;
  column-gap: 100px;
}
.section-intro .eyebrow {
  grid-column: 1/-1;
  margin-bottom: 16px;
}
.section-intro h2 {
  font-size: 45px;
  margin-bottom: 0;
}
.section-intro p {
  max-width: 360px;
  font-size: 14px;
  margin: 0 0 4px auto;
}
.experience-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 40px;
}
.experience-card {
  border-radius: 14px;
  padding: 25px 26px 24px;
  overflow: hidden;
}
.experience-card.green {
  background: #e4ebdf;
}
.experience-card.cream {
  background: #eeeddf;
}
.experience-card.peach {
  background: #f0e4d8;
}
.card-number {
  font-size: 9px;
  letter-spacing: 1.4px;
  font-weight: 700;
}
.experience-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  letter-spacing: -0.7px;
}
.experience-card p {
  font-size: 12px;
  max-width: 280px;
  margin: 0;
}
.route-sketch {
  height: 160px;
  position: relative;
  padding: 14px 0;
}
.route-sketch svg {
  height: 115px;
  width: 100%;
  fill: none;
  stroke: #63845b;
  stroke-width: 2.5;
  stroke-dasharray: 5 5;
}
.route-sketch svg circle {
  fill: #d6e6be;
  stroke-dasharray: none;
}
.route-sketch > span {
  position: absolute;
  right: 0;
  bottom: 20px;
  font-size: 8px;
  letter-spacing: 1px;
}
.rhythm-sketch {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}
.rhythm-sketch span {
  height: 50px;
  width: 17px;
  background: #7c9566;
  border-radius: 5px;
}
.rhythm-sketch span:nth-child(2n) {
  height: 74px;
  background: #adc18c;
}
.rhythm-sketch span:nth-child(3n) {
  height: 97px;
  background: #436c4e;
}
.rhythm-sketch span:nth-child(4) {
  height: 117px;
}
.achievement-sketch {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 95px;
  color: #a1693d;
  position: relative;
}
.achievement-sketch span {
  position: absolute;
  bottom: 21px;
  right: 0;
  font-size: 8px;
  letter-spacing: 1px;
}
.closing {
  max-width: 1326px;
  border-top: 1px solid var(--line);
  margin: auto;
  padding: 56px 0 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.closing h2 {
  margin-bottom: 0;
  font-size: 46px;
}
.closing p {
  font-size: 14px;
  line-height: 1.8;
}
.landing-footer {
  max-width: 1326px;
  border-top: 1px solid var(--line);
  margin: auto;
  padding: 27px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
.landing-footer .brand {
  font-size: 22px;
  color: var(--ink);
}
.landing-footer > span:last-child {
  font-size: 8px;
  letter-spacing: 1px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  padding: 26px;
  gap: 26px;
}
.login-form-wrap {
  padding: 26px 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
}
.login-form-wrap > div {
  max-width: 380px;
  margin: 20px auto;
  width: 100%;
}
.login-form-wrap h1 {
  font-size: 58px;
  margin-bottom: 22px;
}
.login-form-wrap > div > p {
  font-size: 14px;
}
.login-form-wrap form {
  margin-top: 35px;
}
.login-form-wrap form .button {
  width: 100%;
  justify-content: space-between;
  margin-top: 10px;
}
.login-form-wrap .quiet {
  margin-top: 24px;
  font-size: 11px;
  max-width: 310px;
}
.back-link {
  font-size: 12px;
  color: var(--muted);
}
.login-art {
  border-radius: 18px;
  position: relative;
  overflow: hidden;
  background: #8faf90;
  min-height: 650px;
}
.login-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60%;
  position: absolute;
}
.login-art > div {
  position: absolute;
  bottom: 55px;
  left: 45px;
  right: 25px;
  color: #fff;
  text-shadow: 0 2px 20px #174c3c30;
}
.login-art h2 {
  font-size: 50px;
}
.login-art .eyebrow {
  font-size: 9px;
}
label {
  font-size: 12px;
  display: block;
  font-weight: 600;
  margin-bottom: 7px;
}
input,
select,
textarea {
  width: 100%;
  border: 1px solid #d6ded0;
  border-radius: 8px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 20px;
  font-size: 13px;
}
input::placeholder {
  color: #a2aaa0;
}
input[type="checkbox"] {
  width: auto;
  margin: 0 8px 0 0;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
select {
  appearance: auto;
}
input[type="range"] {
  padding: 0;
}
.password-input {
  position: relative;
}
.password-input input {
  padding-right: 65px;
}
.password-input button {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  font-size: 11px;
  padding: 7px;
}
.form-error {
  color: var(--red);
  font-size: 12px;
  min-height: 0;
}
.form-error:empty {
  display: none;
}
.app-shell {
  display: grid;
  grid-template-columns: 226px 1fr;
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  width: 226px;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  background: #f3f4ec;
  padding: 30px 19px;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  margin: 0 10px 40px;
  font-size: 26px;
}
.nav-label {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.5px;
  color: #8b9487;
  padding: 0 13px;
  margin: 10px 0;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav-button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 12px;
  text-align: left;
  transition: background 0.2s;
}
.nav-button svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.7;
  opacity: 0.8;
}
.nav-button.active {
  background: var(--green);
  color: #fff;
}
.nav-button:hover:not(.active) {
  background: #e7ecdf;
}
.nav-spacer {
  margin-top: 26px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.device-card {
  padding: 15px 13px;
  border: 1px solid #dbe2d3;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 11px;
}
.device-card strong {
  display: block;
  font-size: 12px;
  margin-bottom: 4px;
}
.device-card p {
  margin: 0;
  font-size: 10px;
}
.device-card .status-dot {
  width: 6px;
  height: 6px;
  margin-right: 5px;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
}
.avatar {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: #dce5cf;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}
.user-menu strong {
  font-size: 11px;
  display: block;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-menu small {
  font-size: 9px;
  color: var(--muted);
}
.logout-button {
  border: 0;
  background: none;
  margin-left: auto;
  padding: 4px;
  color: var(--muted);
}
.main-app {
  grid-column: 2;
  min-width: 0;
  padding: 0 38px 35px;
  max-width: 1800px;
  width: 100%;
  margin: auto;
}
.app-topbar {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  margin-bottom: 31px;
}
.breadcrumb {
  font-size: 11px;
  color: #899081;
}
.breadcrumb strong {
  color: var(--ink);
  font-weight: 500;
}
.topbar-right {
  display: flex;
  gap: 15px;
  align-items: center;
  font-size: 10px;
}
.level-pill {
  padding: 7px 12px;
  border: 1px solid #d5dfc7;
  border-radius: 30px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.level-pill svg {
  width: 13px;
  height: 13px;
}
.page-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading h1 {
  font-size: 35px;
  letter-spacing: -1.5px;
  margin: 0 0 8px;
}
.page-heading p {
  font-size: 12px;
  margin: 0;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 10px;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 23px 0;
}
.stat-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
}
.stat-card .stat-label {
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  margin-bottom: 13px;
}
.stat-card svg {
  width: 15px;
  height: 15px;
  color: #819173;
}
.stat-value {
  font-size: 31px;
  line-height: 1.1;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.stat-value small {
  font-size: 11px;
  letter-spacing: 0;
  margin-left: 5px;
  color: var(--muted);
}
.stat-foot {
  font-size: 9px;
  margin-top: 9px;
  color: var(--muted);
}
.dashboard-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 22px;
}
.welcome-ride {
  height: 302px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #376d50;
  color: #fff;
}
.welcome-ride > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 60%;
  opacity: 0.85;
}
.welcome-ride:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #153e34aa, transparent);
}
.welcome-ride > div {
  position: relative;
  z-index: 1;
  padding: 28px;
}
.welcome-ride .eyebrow {
  font-size: 8px;
  margin-bottom: 50px;
}
.welcome-ride h2 {
  font-size: 35px;
  max-width: 300px;
  margin-bottom: 17px;
}
.welcome-ride .button {
  font-size: 11px;
  padding: 10px 15px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 23px;
  min-width: 0;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}
.panel-header h2,
.panel-header h3 {
  font-size: 16px;
  letter-spacing: -0.4px;
  margin: 0;
}
.panel-header small {
  font-size: 10px;
  color: var(--muted);
}
.text-button {
  border: 0;
  background: none;
  color: var(--green);
  font-size: 11px;
  padding: 2px;
  font-weight: 600;
}
.two-columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.goal-flex {
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 25px 0;
}
.goal-ring {
  width: 115px;
  height: 115px;
  position: relative;
  flex: none;
}
.goal-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.goal-ring circle {
  fill: none;
  stroke: #edf0e6;
  stroke-width: 7;
}
.goal-ring circle:last-child {
  stroke: #78975a;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 0.5s;
}
.goal-ring > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font-size: 25px;
  letter-spacing: -1px;
}
.goal-ring > div small {
  font-size: 9px;
  letter-spacing: 0;
  color: var(--muted);
}
.goal-copy h3 {
  font-size: 18px;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.goal-copy p {
  font-size: 11px;
  margin: 0;
}
.bars {
  height: 105px;
  display: flex;
  gap: 12px;
  align-items: end;
  padding-top: 10px;
}
.bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
  gap: 8px;
}
.bar > div {
  width: 100%;
  max-width: 28px;
  min-height: 4px;
  background: #d5e4bc;
  border-radius: 4px 4px 0 0;
}
.bar.today > div {
  background: var(--green);
}
.bar span {
  font-size: 8px;
  color: var(--muted);
}
.mini-routes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.mini-route {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #f8faf4;
  text-align: left;
  padding: 0;
}
.mini-route-art {
  height: 84px;
  background: url("/assets/alpine.svg") center 38% / cover;
}
.mini-route-art.coast {
  filter: hue-rotate(25deg) saturate(0.7);
}
.mini-route-art.desert {
  filter: sepia(0.6) hue-rotate(340deg);
}
.mini-route-info {
  padding: 11px;
}
.mini-route-info strong {
  display: block;
  font-size: 10px;
}
.mini-route-info small {
  font-size: 9px;
  color: var(--muted);
}
.history-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.history-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid #edf0e8;
}
.history-row:last-child {
  border: 0;
}
.history-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eaf0df;
  display: grid;
  place-items: center;
  color: #658352;
  flex: none;
}
.history-icon svg {
  width: 17px;
  height: 17px;
}
.history-row > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.history-row strong {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.history-row .history-distance {
  font-size: 12px;
  font-weight: 600;
  text-align: right;
}
.empty {
  padding: 28px 18px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  background: #f7f9f3;
  border-radius: 9px;
}
.empty svg {
  display: block;
  margin: 0 auto 12px;
  width: 28px;
  height: 28px;
  color: #879c72;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 8px;
}
.workout-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.studio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 19px;
}
.ride-scene {
  height: 365px;
  background: #174735;
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  color: #fff;
}
.ride-scene > canvas,
.ride-scene > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.ride-scene:after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, #102e2bb3);
  pointer-events: none;
}
.ride-scene-top {
  position: absolute;
  top: 18px;
  left: 19px;
  right: 19px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  z-index: 2;
}
.ride-scene-top .pill {
  font-size: 8px;
}
.scene-mode-toggle {
  display: flex;
  background: #163f35a6;
  padding: 3px;
  border-radius: 7px;
}
.scene-mode-toggle button {
  border: 0;
  padding: 6px 9px;
  font-size: 9px;
  background: transparent;
  color: #fff;
  border-radius: 4px;
}
.scene-mode-toggle button.active {
  background: #ffffff30;
}
.ride-scene-bottom {
  position: absolute;
  left: 23px;
  bottom: 23px;
  right: 23px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.ride-scene-bottom h2 {
  font-size: 30px;
  margin: 5px 0 8px;
}
.ride-scene-bottom small {
  font-size: 9px;
  color: #e0e9d4;
}
.ride-speed {
  font-size: 48px;
  font-weight: 600;
  letter-spacing: -2px;
  line-height: 1;
}
.ride-speed small {
  display: block;
  font-size: 10px;
  letter-spacing: 1px;
  margin-top: 8px;
  text-align: right;
  font-weight: 400;
}
.ride-status-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 18px;
  border-radius: 8px;
  background: #11382de6;
  z-index: 5;
  font-size: 12px;
  text-align: center;
  max-width: 80%;
}
.studio-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.studio-stats .stat-card {
  padding: 14px;
}
.studio-stats .stat-value {
  font-size: 25px;
}
.studio-stats .stat-label {
  margin-bottom: 8px;
  font-size: 9px;
}
.studio-side .panel {
  margin-bottom: 14px;
  padding: 19px;
}
.studio-side label {
  font-size: 10px;
}
.studio-side select {
  font-size: 11px;
  padding: 10px;
  margin-bottom: 16px;
}
.gauge {
  position: relative;
  margin: 10px auto 0;
  width: 185px;
  height: 115px;
}
.gauge svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke-width: 11;
  stroke-linecap: round;
}
.gauge-bg {
  stroke: #edf0e6;
}
.gauge-fill {
  stroke: #71985d;
  stroke-dasharray: 230;
  stroke-dashoffset: 230;
  transition: stroke-dashoffset 0.5s;
}
.gauge-value {
  position: absolute;
  inset: 40px 0 0;
  text-align: center;
  font-size: 37px;
  font-weight: 500;
  letter-spacing: -1.5px;
}
.gauge-value small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: -3px;
}
.gauge-range {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color: var(--muted);
  margin: 0 20px 14px;
}
.cadence-note {
  text-align: center;
  font-size: 10px;
  margin-bottom: 0;
  color: var(--muted);
}
.metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0e7;
  font-size: 11px;
}
.metric-row:last-child {
  border: 0;
}
.metric-row > span {
  color: var(--muted);
}
.metric-row strong {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.mode-tabs {
  display: flex;
  gap: 4px;
  margin: 23px 0 16px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.mode-tabs button {
  border: 0;
  background: none;
  font-size: 11px;
  padding: 10px 13px 13px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.mode-tabs button.active {
  color: var(--green);
  border-color: var(--green);
  font-weight: 650;
}
.chart-wrap {
  position: relative;
  height: 160px;
}
.chart-wrap canvas {
  width: 100%;
  height: 100%;
}
.chart-key {
  display: flex;
  gap: 16px;
  font-size: 9px;
  color: var(--muted);
}
.chart-key > span:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #50795a;
  border-radius: 50%;
  margin-right: 5px;
}
.chart-key > span:nth-child(2):before {
  background: #ca9765;
}
.training-card {
  padding: 22px;
  border-radius: 12px;
  background: #edf3e4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}
.training-card h3 {
  margin: 7px 0;
  font-size: 22px;
}
.training-card p {
  font-size: 11px;
  margin: 0;
}
.training-card .countdown {
  font-size: 38px;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.training-card .eyebrow {
  font-size: 8px;
  margin-bottom: 7px;
}
.interval-blocks {
  display: flex;
  gap: 5px;
  margin: 15px 0;
}
.interval-block {
  flex: 1;
  background: #e7edde;
  border-radius: 5px;
  padding: 11px 7px;
  font-size: 9px;
  min-width: 0;
}
.interval-block.active {
  background: var(--green);
  color: #fff;
}
.interval-block strong {
  display: block;
  margin-bottom: 3px;
}
.progress-track {
  height: 7px;
  background: #e6eadf;
  overflow: hidden;
  border-radius: 10px;
  margin: 12px 0;
}
.progress-track > div {
  height: 100%;
  background: #7f9d63;
  border-radius: 10px;
  transition: width 0.5s;
}
.map-canvas {
  width: 100%;
  height: 270px;
  border-radius: 12px;
  background: #ecf0e5;
  display: block;
}
.route-map-wrap {
  position: relative;
}
.map-attribution {
  position: absolute;
  right: 8px;
  bottom: 5px;
  background: #ffffffdf;
  padding: 1px 4px;
  font-size: 8px;
}
.map-attribution a {
  text-decoration: underline;
}
.checkpoints {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 16px 0 0;
  font-size: 9px;
  color: var(--muted);
  flex-wrap: wrap;
}
.checkpoints span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.checkpoints span:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #cad6bb;
  border-radius: 50%;
}
.checkpoints .passed {
  color: var(--green);
}
.checkpoints .passed:before {
  background: var(--green);
}
.ghost-track {
  height: 115px;
  position: relative;
  background: repeating-linear-gradient(#f0f3e8 0 54px, #dce5d3 54px 55px);
  border-radius: 10px;
  overflow: hidden;
}
.ghost-rider {
  position: absolute;
  top: 16px;
  left: 12px;
  color: var(--green);
  transition: left 0.4s;
  font-size: 11px;
}
.ghost-rider svg {
  width: 30px;
  height: 25px;
  display: block;
}
.ghost-rider.ghost {
  top: 68px;
  color: #aa997e;
}
.arcade-canvas {
  display: block;
  width: 100%;
  height: 230px;
  border-radius: 12px;
  background: #dbe8db;
}
.focus-dial {
  text-align: center;
  padding: 24px 0;
}
.focus-dial > strong {
  font-size: 68px;
  letter-spacing: -3px;
  display: block;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}
.focus-dial > span {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.focus-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 22px 0;
}
.focus-note {
  font-size: 12px;
  text-align: center;
  max-width: 400px;
  margin: auto;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.route-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.route-card .mini-route-art {
  height: 180px;
  position: relative;
}
.route-card .mini-route-art .pill {
  position: absolute;
  left: 15px;
  top: 15px;
  background: #fff9;
}
.route-card-body {
  padding: 22px;
}
.route-card h2 {
  font-size: 23px;
  margin-bottom: 12px;
}
.route-card p {
  font-size: 12px;
  min-height: 56px;
}
.route-card .metric-row {
  font-size: 10px;
}
.route-card .button {
  margin-top: 12px;
  width: 100%;
  justify-content: space-between;
}
.achievements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.achievement {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  text-align: center;
  position: relative;
}
.achievement.locked {
  background: #f1f3eb;
}
.achievement-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e4edcf;
  color: #62834b;
  box-shadow: 0 0 0 7px #f4f6ed;
}
.achievement-icon svg {
  width: 30px;
  height: 30px;
}
.achievement.locked .achievement-icon {
  filter: grayscale(1);
  opacity: 0.5;
}
.achievement h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.achievement p {
  font-size: 11px;
  min-height: 34px;
}
.achievement .button {
  margin-top: 8px;
}
.achievement small {
  font-size: 9px;
  color: var(--muted);
}
.level-banner {
  background: var(--green);
  color: #fff;
  border-radius: 14px;
  padding: 26px;
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 24px 0;
}
.level-number {
  font-size: 58px;
  line-height: 1;
  letter-spacing: -2px;
}
.level-number small {
  font-size: 10px;
  display: block;
  letter-spacing: 1px;
  margin-top: 8px;
  color: #c9ddb5;
}
.level-banner > div:nth-child(2) {
  flex: 1;
}
.level-banner h2 {
  font-size: 23px;
  margin-bottom: 10px;
}
.level-banner p {
  font-size: 11px;
  color: #c8dabd;
  margin: 0;
}
.level-banner .progress-track {
  background: #ffffff1f;
}
.level-banner .progress-track > div {
  background: var(--lime);
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
th {
  text-align: left;
  padding: 12px 14px;
  background: #f4f6ee;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
td {
  padding: 16px 14px;
  border-bottom: 1px solid #edf0e7;
  font-size: 11px;
}
td strong {
  font-size: 11px;
  font-weight: 600;
}
td small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 4px;
}
td .button {
  padding: 7px 10px;
  font-size: 10px;
}
.table-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.search-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
}
.search-row input {
  max-width: 350px;
  margin: 0;
}
.search-row select {
  max-width: 170px;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 22px;
}
.panel p {
  font-size: 12px;
}
.admin-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.admin-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}
.admin-item > div {
  flex: 1;
}
.admin-item h3 {
  font-size: 13px;
  letter-spacing: 0;
  margin: 0 0 6px;
}
.admin-item p {
  font-size: 10px;
  margin: 0;
}
.admin-item small {
  font-size: 9px;
  color: var(--muted);
}
.admin-item.disabled {
  opacity: 0.55;
}
.code-editor {
  font-family: monospace;
  font-size: 12px;
  min-height: 210px;
  line-height: 1.6;
}
.info-note {
  padding: 12px 15px;
  border-radius: 8px;
  background: #edf2e6;
  font-size: 11px;
  color: #65765c;
  margin: 15px 0;
}
.warning-note {
  background: #faf0dc;
  color: #8a6b36;
}
.transport-banner {
  padding: 10px 16px;
  background: #f9eddb;
  font-size: 11px;
  border-radius: 8px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0;
  max-width: 650px;
  width: calc(100% - 32px);
  color: var(--ink);
  background: #fff;
  box-shadow: 0 24px 120px #0e35233f;
  max-height: 90vh;
}
.modal::backdrop {
  background: #142e285f;
  backdrop-filter: blur(4px);
}
.modal-header {
  padding: 23px 27px 17px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-header h2 {
  font-size: 23px;
  margin: 0;
}
.close-modal {
  border: 0;
  background: #edf1e6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
}
.modal-body {
  padding: 25px 27px;
  overflow: auto;
}
.modal-body > p {
  font-size: 12px;
}
.modal-footer {
  display: flex;
  justify-content: end;
  gap: 10px;
  margin-top: 20px;
}
.modal-error {
  color: var(--red);
  font-size: 12px;
}
.share-preview {
  border-radius: 12px;
  width: 100%;
  margin-bottom: 20px;
}
.share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.share-buttons a {
  font-size: 11px;
  padding: 8px 12px;
  background: var(--soft);
  border-radius: 6px;
}
.share-url {
  display: flex;
  gap: 8px;
}
.share-url input {
  margin: 0;
  flex: 1;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #173e31;
  color: #fff;
  border-radius: 10px;
  padding: 13px 22px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 12px;
  max-width: 90%;
  text-align: center;
}
.toast.error {
  background: #913e35;
}
.mobile-menu {
  display: none;
}
.share-page {
  padding: 35px 6%;
  max-width: 1100px;
  margin: auto;
}
.share-result {
  margin: 80px auto 50px;
  max-width: 800px;
}
.share-result h1 {
  font-size: 50px;
}
.share-result > img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin: 20px 0 30px;
}
.share-page footer {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.error-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px;
}
.error-content {
  max-width: 550px;
  text-align: center;
}
.error-content .brand {
  margin-bottom: 50px;
}
.error-code {
  font-size: 110px;
  color: #a3b18c;
  line-height: 1;
  letter-spacing: -7px;
}
.error-content h1 {
  font-size: 38px;
  margin: 20px 0;
}
.error-content p {
  font-size: 14px;
}
.error-content .button {
  margin-top: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.loading-page {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
.connection-off .status-dot {
  background: #c58b51;
}
.inline-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.metric-detail {
  font-size: 9px;
  color: var(--muted);
  margin: 9px 0 0;
}
.badge {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 7px;
  background: #edf2e6;
  border-radius: 4px;
}
.status-completed {
  color: #397349;
  background: #e7f0df;
}
.status-interrupted {
  color: #997440;
  background: #faf0da;
}
.fullscreen .sidebar,
.fullscreen .app-topbar,
.fullscreen .page-heading,
.fullscreen .studio-side,
.fullscreen .mode-tabs,
.fullscreen .studio-detail {
  display: none;
}
.fullscreen .main-app {
  padding: 14px;
  grid-column: 1/-1;
  max-width: none;
}
.fullscreen .studio-layout {
  grid-template-columns: 1fr;
}
.fullscreen .ride-scene {
  height: calc(100vh - 150px);
}
.fullscreen .app-shell {
  grid-template-columns: 1fr;
}
.fullscreen-exit {
  position: fixed;
  right: 30px;
  top: 75px;
  z-index: 60;
}
.route-map-note {
  font-size: 9px;
  color: var(--muted);
  margin: 8px 0;
}
.reminder {
  margin-top: 12px;
  background: #f3ead6;
  border-radius: 8px;
  padding: 12px;
  font-size: 11px;
  color: #84704a;
}
.latest-workout {
  margin-top: 22px;
}
@media (min-width: 1600px) {
  .hero {
    padding-top: 55px;
    padding-bottom: 80px;
  }
  .hero-scene {
    min-height: 620px;
  }
  .main-app {
    padding: 0 50px 40px;
  }
  .ride-scene {
    height: 440px;
  }
}
@media (max-width: 1200px) {
  .hero h1 {
    letter-spacing: -3px;
  }
  .feature-strip,
  .closing,
  .landing-footer {
    margin-left: 5.2%;
    margin-right: 5.2%;
  }
  .feature-strip > div {
    padding: 0 10px;
  }
  .feature-strip {
    gap: 8px;
  }
  .main-app {
    padding: 0 24px 25px;
  }
  .app-shell {
    grid-template-columns: 200px 1fr;
  }
  .sidebar {
    width: 200px;
    padding: 28px 13px;
  }
  .studio-layout {
    grid-template-columns: minmax(0, 1fr) 235px;
  }
  .studio-side .panel {
    padding: 14px;
  }
  .studio-stats {
    gap: 8px;
  }
  .studio-stats .stat-card {
    padding: 10px;
  }
  .studio-stats .stat-value {
    font-size: 22px;
  }
  .mini-routes {
    gap: 7px;
  }
  .panel {
    padding: 18px;
  }
  .goal-flex {
    gap: 15px;
  }
  .goal-ring {
    width: 95px;
    height: 95px;
  }
  .route-grid {
    gap: 13px;
  }
  .route-card-body {
    padding: 17px;
  }
  .route-card .mini-route-art {
    height: 135px;
  }
  .topbar-right > span:first-child {
    display: none;
  }
  .stat-card {
    padding: 16px;
  }
  .login-form-wrap {
    padding: 25px 7%;
  }
}
@media (max-width: 1000px) {
  .studio-layout {
    grid-template-columns: 1fr;
  }
  .studio-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .studio-side > .panel:last-child {
    grid-column: 1/-1;
  }
  .ride-scene {
    height: 380px;
  }
  .hero {
    gap: 25px;
    padding-top: 10px;
    min-height: 560px;
  }
  .hero-scene {
    min-height: 480px;
  }
  .hero h1 {
    font-size: 57px;
  }
  .hero-copy > p {
    font-size: 15px;
  }
  .scene-location h2 {
    font-size: 43px;
  }
  .scene-label > span:last-child {
    display: none;
  }
  .hero-copy {
    padding-top: 20px;
  }
  .feature-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .feature-strip > div:nth-child(2) {
    border: 0;
  }
  .section-intro {
    gap: 35px;
  }
  .dashboard-hero {
    grid-template-columns: 1fr;
  }
  .welcome-ride {
    height: 260px;
  }
  .dashboard-goal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .dashboard-goal .panel-header {
    grid-column: 1/-1;
  }
  .dashboard-goal .goal-flex {
    margin: 0;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .route-grid {
    grid-template-columns: 1fr;
  }
  .route-card {
    display: grid;
    grid-template-columns: 200px 1fr;
  }
  .route-card .mini-route-art {
    height: 100%;
  }
  .route-card p {
    min-height: 0;
  }
  .achievements {
    grid-template-columns: repeat(2, 1fr);
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .stat-value {
    font-size: 25px;
  }
  .admin-items {
    grid-template-columns: 1fr;
  }
  .login-form-wrap h1 {
    font-size: 48px;
  }
  .login-art h2 {
    font-size: 38px;
  }
  .login-art > div {
    left: 27px;
  }
  .experience-card {
    padding: 20px;
  }
  .experience-card h3 {
    font-size: 18px;
  }
  .experience-card p {
    font-size: 11px;
  }
  .closing h2 {
    font-size: 38px;
  }
}
@media (max-width: 760px) {
  .landing-header {
    height: 85px;
    padding: 0 6%;
  }
  .landing-header nav {
    display: none;
  }
  .brand {
    font-size: 24px;
  }
  .brand img {
    width: 31px;
    height: 31px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 20px 6% 35px;
    gap: 35px;
  }
  .hero-copy {
    padding: 10px 0 0;
  }
  .hero h1 {
    font-size: 64px;
    letter-spacing: -4px;
  }
  .hero-copy > p {
    max-width: 360px;
    font-size: 15px;
  }
  .hero .eyebrow {
    font-size: 8px;
  }
  .hero-scene {
    height: 460px;
    min-height: 0;
  }
  .hero-note {
    font-size: 10px;
  }
  .scene-label > span:last-child {
    display: block;
  }
  .scene-location h2 {
    font-size: 44px;
  }
  .scene-location {
    bottom: 120px;
  }
  .feature-strip {
    margin: 0 6%;
    padding: 25px 0;
    gap: 24px 10px;
  }
  .feature-strip > div {
    padding: 0;
    grid-template-columns: 30px 1fr;
  }
  .feature-strip strong {
    font-size: 10px;
  }
  .feature-strip small {
    font-size: 9px;
  }
  .feature-strip > div > span {
    font-size: 25px;
  }
  .experience {
    padding: 55px 6% 45px;
  }
  .section-intro {
    display: block;
  }
  .section-intro h2 {
    font-size: 36px;
    margin-bottom: 20px;
  }
  .section-intro p {
    margin: 0;
    max-width: 330px;
    font-size: 12px;
  }
  .experience-cards {
    grid-template-columns: 1fr;
    margin-top: 30px;
    gap: 16px;
  }
  .experience-card {
    padding: 23px;
  }
  .experience-card h3 {
    font-size: 23px;
  }
  .experience-card p {
    font-size: 12px;
    max-width: none;
  }
  .route-sketch,
  .rhythm-sketch,
  .achievement-sketch {
    height: 150px;
  }
  .closing {
    margin: 0 6%;
    padding: 40px 0;
    display: block;
  }
  .closing h2 {
    font-size: 38px;
    margin-bottom: 25px;
  }
  .closing p {
    font-size: 12px;
  }
  .landing-footer {
    margin: 0 6%;
    padding: 25px 0;
    flex-wrap: wrap;
    font-size: 9px;
  }
  .landing-footer > span:last-child {
    display: none;
  }
  .landing-footer > span {
    max-width: 200px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    padding: 0;
    min-height: 100vh;
  }
  .login-art {
    display: none;
  }
  .login-form-wrap {
    padding: 28px 8%;
    gap: 45px;
  }
  .login-form-wrap > div {
    margin: 15px auto;
  }
  .login-form-wrap h1 {
    font-size: 53px;
  }
  .login-form-wrap > .brand {
    align-self: start;
  }
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 225px;
    box-shadow: var(--shadow);
    z-index: 70;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open:after {
    content: "";
    position: fixed;
    inset: 0;
    background: #173e314d;
    z-index: 65;
  }
  .main-app {
    grid-column: 1;
    padding: 0 18px 30px;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: none;
    padding: 8px 8px 8px 0;
    font-size: 22px;
    line-height: 1;
  }
  .app-topbar {
    height: 70px;
    margin-bottom: 24px;
    gap: 12px;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 10px;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-right .pill {
    font-size: 8px;
    padding: 5px 8px;
  }
  .level-pill {
    font-size: 9px;
    padding: 6px 8px;
  }
  .page-heading {
    align-items: start;
    gap: 12px;
  }
  .page-heading h1 {
    font-size: 29px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading .eyebrow {
    font-size: 8px;
  }
  .page-heading > .button {
    padding: 9px 12px;
    font-size: 10px;
    gap: 10px;
  }
  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin: 20px 0;
  }
  .stat-card {
    padding: 16px;
  }
  .stat-value {
    font-size: 29px;
  }
  .stat-foot {
    font-size: 9px;
  }
  .stat-card .stat-label {
    font-size: 10px;
  }
  .dashboard-goal {
    display: block;
  }
  .dashboard-goal .goal-flex {
    margin: 15px 0;
  }
  .dashboard-goal .bars {
    height: 80px;
  }
  .welcome-ride {
    height: 270px;
  }
  .welcome-ride > div {
    padding: 25px;
  }
  .welcome-ride .eyebrow {
    margin-bottom: 38px;
  }
  .welcome-ride h2 {
    font-size: 34px;
  }
  .two-columns {
    gap: 16px;
    margin-top: 16px;
  }
  .mini-routes {
    gap: 8px;
  }
  .mini-route-info {
    padding: 10px 8px;
  }
  .mini-route-info strong {
    font-size: 9px;
  }
  .mini-route-info small {
    font-size: 8px;
  }
  .mini-route-art {
    height: 80px;
  }
  .studio-layout {
    gap: 14px;
  }
  .studio-side {
    gap: 10px;
  }
  .studio-side .panel {
    padding: 13px;
    margin: 0;
  }
  .studio-side .panel-header h3 {
    font-size: 13px;
  }
  .studio-side .panel-header {
    margin-bottom: 12px;
  }
  .gauge {
    width: 155px;
    height: 100px;
  }
  .gauge-value {
    font-size: 31px;
    inset: 35px 0 0;
  }
  .gauge-value small {
    font-size: 8px;
  }
  .studio-side .metric-row {
    font-size: 10px;
  }
  .gauge-range {
    margin: 0 10px 12px;
  }
  .ride-scene {
    height: 340px;
  }
  .ride-scene-top {
    top: 13px;
    left: 13px;
    right: 13px;
  }
  .ride-scene-top .pill {
    font-size: 7px;
  }
  .scene-mode-toggle button {
    font-size: 8px;
    padding: 5px 6px;
  }
  .ride-scene-bottom {
    left: 17px;
    right: 17px;
    bottom: 20px;
  }
  .ride-scene-bottom h2 {
    font-size: 24px;
    max-width: 190px;
  }
  .ride-speed {
    font-size: 41px;
  }
  .studio-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
  }
  .studio-stats .stat-card {
    padding: 13px;
  }
  .studio-stats .stat-value {
    font-size: 26px;
  }
  .workout-controls {
    justify-content: end;
    max-width: 180px;
  }
  .workout-controls .button {
    padding: 8px 10px;
    font-size: 10px;
    gap: 6px;
  }
  .page-heading.studio-heading {
    flex-wrap: wrap;
  }
  .page-heading.studio-heading > div:first-child {
    flex: 1;
  }
  .mode-tabs {
    margin-top: 17px;
    gap: 0;
  }
  .mode-tabs button {
    padding: 10px 11px;
    font-size: 10px;
  }
  .training-card {
    padding: 17px;
  }
  .training-card h3 {
    font-size: 19px;
  }
  .training-card .countdown {
    font-size: 31px;
  }
  .interval-blocks {
    overflow: auto;
  }
  .interval-block {
    min-width: 75px;
  }
  .route-card {
    grid-template-columns: 1fr;
  }
  .route-card .mini-route-art {
    height: 150px;
  }
  .route-card-body {
    padding: 20px;
  }
  .achievements {
    gap: 10px;
  }
  .achievement {
    padding: 21px 13px;
  }
  .achievement h3 {
    font-size: 16px;
  }
  .achievement p {
    font-size: 10px;
  }
  .achievement .button {
    font-size: 10px;
    padding: 7px 10px;
  }
  .level-banner {
    padding: 22px;
    gap: 20px;
  }
  .level-number {
    font-size: 47px;
  }
  .level-banner h2 {
    font-size: 21px;
  }
  .search-row {
    gap: 8px;
  }
  .search-row select {
    max-width: 140px;
  }
  .settings-grid {
    gap: 16px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .form-grid label {
    font-size: 10px;
  }
  .form-grid input,
  .form-grid select {
    font-size: 12px;
  }
  .modal-header {
    padding: 20px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-header h2 {
    font-size: 21px;
  }
  .share-url {
    flex-wrap: wrap;
  }
  .share-url input {
    min-width: 100%;
  }
  .share-result {
    margin-top: 55px;
  }
  .share-result h1 {
    font-size: 35px;
  }
  .share-page {
    padding: 25px 6%;
  }
  .focus-dial > strong {
    font-size: 60px;
  }
  .sidebar .brand {
    margin-bottom: 30px;
  }
  .sidebar-bottom {
    padding-top: 20px;
  }
  .chart-key {
    font-size: 8px;
    gap: 10px;
  }
  .topbar-right > .pill {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
.stage-row {
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 9px;
  margin: 0 0 15px;
}
.stage-row legend {
  font-size: 10px;
  padding: 0 6px;
  color: var(--muted);
}
.stage-row input {
  margin-bottom: 12px;
}
.stage-row .text-button {
  margin-top: 20px;
}
.panel-header > svg {
  width: 18px;
  height: 18px;
}
.level-banner > svg {
  width: 45px;
  height: 45px;
  color: var(--lime);
}
.studio-side .info-note {
  font-size: 10px;
}
.page-heading > h2 {
  font-size: 23px;
  margin: 0;
}
.share-preview {
  height: auto;
}
.modal-body h4 {
  font-size: 15px;
  letter-spacing: 0;
  margin: 20px 0 8px;
}
.studio-layout > div,
.studio-side {
  min-width: 0;
}
.gauge {
  max-width: 100%;
}
.mode-tabs {
  max-width: 100%;
}
@media (max-width: 1000px) {
  .studio-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .studio-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.history-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-top: 20px;
  font-size: 10px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .history-pagination {
    flex-wrap: wrap;
  }
}
