:root {
  color-scheme: dark;
  --bg: #071524;
  --deep: #040e1a;
  --surface: #102235;
  --surface2: #172d41;
  --line: #253c50;
  --text: #f0f3f5;
  --muted: #a6b5c3;
  --primary: #fb863e;
  --primary-text: #17110b;
  --green: #7cdda5;
  --warning: #e4b581;
  --red: #ff9089;
  --shadow: 0 12px 30px #020b1812;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
}
:root[data-theme='light'] {
  color-scheme: light;
  --bg: #f2f5f7;
  --deep: #e8eef3;
  --surface: #fff;
  --surface2: #edf3f7;
  --line: #d4dfe8;
  --text: #122b40;
  --muted: #516879;
  --primary: #b7470c;
  --primary-text: #fff;
  --green: #1c7742;
  --warning: #95611e;
  --red: #c53730;
  --shadow: 0 12px 30px #10223508;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a,
button,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
a:hover {
  color: var(--primary);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}
h1,
h2,
h3,
.brand,
.big-number,
.stat strong {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
h1,
h2,
h3 {
  line-height: 1.27;
  letter-spacing: -0.035em;
  margin: 0 0 14px;
}
h1 {
  font-size: clamp(29px, 3vw, 43px);
  font-weight: 750;
}
h1:focus {
  outline: none;
}
h2 {
  font-size: 22px;
  font-weight: 750;
}
h3 {
  font-size: 16px;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 18px;
  color: var(--muted);
}
strong {
  color: var(--text);
}
small {
  font-size: 12px;
  color: var(--muted);
}
img {
  max-width: 100%;
  display: block;
}
svg {
  flex-shrink: 0;
}
ul,
ol {
  padding-left: 24px;
}
li {
  margin-bottom: 12px;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 5px 0 20px;
}
legend {
  margin-bottom: 12px;
  font-weight: 600;
}
figure {
  margin: 20px 0;
}
figcaption {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 240px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 33px 20px 24px;
  background: var(--deep);
  border-right: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  font-size: 24px;
  letter-spacing: -1px;
  font-weight: 800;
  white-space: nowrap;
  line-height: 1.3;
}
.brand span {
  color: var(--primary);
}
.brand img {
  width: 32px;
  height: 36px;
  object-fit: contain;
  margin-right: 9px;
}
.nav-caption {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.9px;
  color: var(--muted);
  margin: 58px 12px 15px;
}
.sidebar nav {
  display: grid;
  gap: 7px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  min-height: 49px;
  padding: 12px 14px;
  border-radius: 9px;
}
.nav-item.selected {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  box-shadow: inset 3px 0 var(--primary);
}
.nav-item:hover {
  background: var(--surface);
}
.sidebar-secondary {
  border-top: 1px solid var(--line);
  margin: 28px 10px 0;
  padding-top: 22px;
  display: grid;
  gap: 8px;
}
.sidebar-secondary a {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
}
.sidebar-secondary a:hover {
  color: var(--primary);
}
.nav-spark {
  font-size: 24px;
  width: 22px;
  text-align: center;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 30px 9px 0;
  font-size: 11px;
}
.sidebar-bottom p {
  margin: 0 0 8px;
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.local-dot {
  height: 5px;
  width: 5px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
}
.sidebar-bottom a {
  color: var(--muted);
}
.app-body {
  margin-left: 240px;
  width: calc(100% - 240px);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 82px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.topbar-tag {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 600;
}
.topbar-actions {
  display: flex;
  gap: 23px;
  align-items: center;
}
.connection {
  font-size: 11px;
  color: var(--muted);
}
.icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 34px;
}
.mini-avatar {
  height: 34px;
  width: 34px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.main-content {
  padding: 40px 42px 55px;
  max-width: 1450px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.page-heading {
  margin-bottom: 32px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 11px;
}
.page-heading p {
  max-width: 720px;
  margin-top: 12px;
  font-size: 14px;
}
.page-heading h1 {
  margin-bottom: 0;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.main-content > .card + .card {
  margin-top: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  max-width: 100%;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-text);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  line-height: 1.5;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  filter: brightness(1.08);
  color: var(--primary-text);
  transform: translateY(-1px);
}
.button:disabled {
  opacity: 0.65;
  transform: none;
}
.button.secondary {
  background: var(--surface2);
  border-color: var(--line);
  color: var(--text);
}
.button.text-button {
  color: var(--primary);
  background: transparent;
  padding: 8px 0;
  box-shadow: none;
}
.button.danger {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 9%, var(--surface));
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
}
.button.choice {
  width: 100%;
  white-space: normal;
  font-size: 14px;
  text-align: left;
  justify-content: flex-start;
  font-weight: 400;
}
.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.actions .button {
  flex-shrink: 0;
}
.support-actions {
  margin-top: 16px;
  gap: 14px 18px;
}
.section-title {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin: 28px 0 20px;
}
.section-title p,
.section-title h2,
.section-title h3 {
  margin: 0;
}
.card > .section-title:first-child {
  margin-top: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 5px;
  background: var(--surface2);
  color: var(--muted);
  line-height: 1.6;
}
.pill.accent {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}
.pill.overdue {
  color: var(--red);
  background: color-mix(in srgb, var(--red) 9%, transparent);
}
.pill.dueSoon {
  color: var(--warning);
  background: color-mix(in srgb, var(--warning) 10%, transparent);
}
.pill.completed,
.pill.ok {
  color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, transparent);
}
.two-grid,
.three-grid,
.module-grid,
.stats-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}
.two-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.three-grid,
.module-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
}
.home-top {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(240px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.hero {
  position: relative;
  overflow: hidden;
  padding: 32px;
  min-height: 340px;
  display: flex;
  align-items: center;
  background: #112536;
  color: #f0f3f5;
}
.hero:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #0b1c2dee 0%,
    #0b1c2de0 25%,
    #0b1c2d25 100%
  );
  pointer-events: none;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 365px;
}
.hero-copy h2 {
  font-size: clamp(27px, 2.5vw, 36px);
  font-weight: 800;
  letter-spacing: -1.4px;
  line-height: 1.22;
}
.hero-copy p {
  font-size: 13px;
  color: #c3cdd6;
  max-width: 280px;
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  opacity: 0.82;
}
.hero .eyebrow {
  font-size: 9px;
  color: #fb9a61;
  letter-spacing: 1.6px;
}
.score-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 23px;
}
.score-card > .section-title {
  width: 100%;
  margin: 0 0 16px;
  text-align: left;
}
.score-card .section-title .eyebrow {
  color: var(--muted);
  margin: 0;
  font-size: 10px;
}
.score-ring {
  width: 152px;
  height: 152px;
  border-radius: 50%;
  padding: 7px;
  background: conic-gradient(var(--primary) var(--score), var(--surface2) 0);
  margin: 4px auto 16px;
  transform: rotate(-0.001deg);
}
.score-ring > div {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  border-radius: 50%;
  background: var(--surface);
}
.score-ring strong {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 50px;
  font-weight: 750;
  letter-spacing: -3px;
  line-height: 1.1;
}
.score-ring span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.score-card p {
  font-size: 11px;
  max-width: 230px;
  margin: 12px 0 0;
}
.stat {
  padding: 20px;
  min-height: 116px;
  display: flex;
  flex-direction: column;
}
.stat > span {
  font-size: 11px;
  color: var(--muted);
}
.stat strong {
  font-size: 30px;
  font-weight: 700;
  margin-top: 7px;
  line-height: 1.3;
}
.stat small {
  margin-left: 8px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
}
.stat .stat-link {
  font-size: 17px;
  color: var(--primary);
  margin-top: 19px;
}
.next-lesson h2 {
  font-size: 25px;
}
.next-lesson progress {
  margin-bottom: 22px;
}
.notice {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.notice:last-child {
  border-bottom: 0;
}
.notice > div {
  flex: 1;
  min-width: 0;
}
.notice strong {
  font-size: 13px;
}
.notice p {
  font-size: 11px;
  margin: 2px 0 0;
}
.notice-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--warning);
  flex-shrink: 0;
}
.notice-dot.overdue {
  background: var(--red);
}
progress {
  appearance: none;
  display: block;
  width: 100%;
  height: 5px;
  background: var(--surface2);
  border: 0;
  border-radius: 5px;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: var(--surface2);
}
progress::-webkit-progress-value {
  background: var(--primary);
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: var(--primary);
}
.disclaimer {
  font-size: 11px;
  line-height: 1.8;
  max-width: 850px;
  margin: 36px 0 0;
}
.module-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  min-height: 315px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.module-card:hover {
  color: var(--text);
  border-color: var(--primary);
  transform: translateY(-3px);
}
.module-card h2 {
  font-size: 20px;
  margin: 15px 0 10px;
}
.module-card p {
  font-size: 12px;
  line-height: 1.7;
}
.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.module-number {
  font-size: 11px;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.module-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.module-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
  margin: 7px 0 14px;
}
.toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 20px;
  margin-bottom: 24px;
}
.toolbar form {
  display: flex;
  align-items: end;
  gap: 16px;
  margin: 0;
}
.toolbar label {
  flex: 1;
  margin: 0;
}
.toolbar label:first-child {
  flex: 2;
}
.toolbar button {
  margin-bottom: 0;
}
.toolbar .form-error[hidden] {
  display: none;
}
.back {
  display: inline-flex;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 22px;
  gap: 7px;
  align-items: center;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(270px, 1fr);
  align-items: start;
  gap: 24px;
  margin-bottom: 24px;
}
.sticky {
  position: sticky;
  top: 22px;
}
.lesson-list {
  margin-top: 20px;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.lesson-row:last-child {
  border: 0;
  padding-bottom: 0;
}
.lesson-row > div {
  flex: 1;
  min-width: 0;
}
.lesson-row h3 {
  font-size: 14px;
  margin: 0 0 5px;
  line-height: 1.5;
}
.lesson-row p {
  font-size: 11px;
  margin: 0;
}
.lesson-row .button {
  padding: 8px 14px;
  min-height: 40px;
  font-size: 10px;
  flex-shrink: 0;
}
.step-number {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  font-size: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.step-number.done {
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: var(--green);
}
.big-number {
  font-size: 72px;
  line-height: 1.2;
  letter-spacing: -4px;
  font-weight: 750;
  margin: 18px 0;
  color: var(--text);
}
.big-number small {
  font-size: 18px;
  letter-spacing: 0;
  margin-left: 8px;
}
.reading-heading {
  max-width: 780px;
  margin: 0 auto 24px;
}
.reading-heading h1 {
  font-size: 32px;
}
.reading-heading .section-title {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 12px;
}
.reader {
  max-width: 780px;
  margin: 0 auto 24px;
  padding: 35px;
  min-height: 180px;
  font-size: 16px;
  line-height: 1.9;
}
.reader p {
  color: var(--text);
}
.reader-toolbar {
  max-width: 780px;
  margin: 0 auto 18px;
}
.reader.reader-size-16 {
  font-size: 16px;
}
.reader.reader-size-20 {
  font-size: 20px;
}
.reader.reader-size-24 {
  font-size: 24px;
}
.reader.reader-size-28 {
  font-size: 28px;
}
.reader[class*='reader-size-'] h2 {
  font-size: 1.55em;
}
.reader[class*='reader-size-'] h3 {
  font-size: 1.2em;
}
.reader[class*='reader-size-'] .eyebrow {
  font-size: 0.8em;
}
.club-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.club-editor {
  margin-bottom: 28px;
}
.club-photos,
.club-photo-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 18px;
}
.club-photos img {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}
.club-photo-picker img {
  width: 140px;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}
.club-card {
  margin-top: 24px;
  overflow-wrap: anywhere;
}
.club-grid .club-card {
  margin-top: 0;
}
.mobile-nav .nav-item {
  min-width: 0;
}
.reader h2 {
  font-size: 25px;
}
.reader h3 {
  margin-top: 24px;
}
.reader .button {
  margin-top: 10px;
}
.reader figure img {
  max-height: 260px;
  object-fit: contain;
  margin: auto;
}
.reader-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 780px;
  margin: auto;
}
.sources {
  max-width: 780px;
  margin: 35px auto;
  font-size: 12px;
  color: var(--muted);
}
.sources a {
  color: var(--primary);
  text-decoration: underline;
}
.callout {
  background: var(--surface2);
  border-left: 3px solid var(--primary);
  padding: 23px;
  border-radius: 0 8px 8px 0;
  margin: 20px 0;
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout.warning {
  border-left-color: var(--warning);
  color: var(--text);
}
.callout.tip {
  border-left-color: var(--green);
}
.callout .eyebrow {
  margin: 0 0 9px;
}
.callout.scenario h2 {
  font-size: 20px;
}
.choices {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.choice {
  background: var(--surface2);
  border: 1px solid var(--line);
  padding: 16px 18px;
  border-radius: 9px;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  line-height: 1.65;
  font-size: 14px;
  min-height: 58px;
}
.choice:hover:not(:disabled) {
  border-color: var(--primary);
  color: var(--text);
  background: var(--surface2);
}
.choice:disabled {
  opacity: 1;
}
.choice-letter {
  height: 26px;
  min-width: 26px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}
.choice.correct {
  border-color: var(--green);
  background: color-mix(in srgb, var(--green) 8%, var(--surface));
}
.choice.incorrect {
  border-color: var(--red);
  background: color-mix(in srgb, var(--red) 8%, var(--surface));
}
.result {
  text-align: center;
  padding: 40px;
  margin-bottom: 26px;
}
.result .actions {
  justify-content: center;
  margin-top: 25px;
}
.result .three-grid {
  margin-top: 30px;
  gap: 14px;
}
.result .three-grid > div {
  padding: 20px;
  background: var(--surface2);
  border-radius: 10px;
}
.review-list {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}
.review-list details[open] summary {
  margin-bottom: 22px;
}
.review-list summary {
  font-weight: 600;
  cursor: pointer;
  line-height: 1.65;
}
.review-list details p {
  font-size: 14px;
}
.review-list details h3 {
  margin-top: 24px;
}
.success {
  color: var(--green);
}
.warning {
  color: var(--warning);
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.empty {
  text-align: center;
  padding: 55px 28px;
  width: 100%;
  grid-column: 1/-1;
}
.empty h2 {
  margin-top: 15px;
}
.empty p {
  max-width: 550px;
  margin: 0 auto 24px;
}
.card-symbol {
  font-size: 40px;
  color: var(--primary);
  line-height: 1;
  display: block;
  margin-bottom: 22px;
}
.training-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 24px;
  padding: 35px;
  background: linear-gradient(115deg, var(--surface) 50%, var(--surface2));
}
.training-hero > div:first-child {
  max-width: 510px;
}
.training-hero h2 {
  font-size: 32px;
}
.training-hero p {
  font-size: 14px;
}
.training-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 150px;
}
.training-steps span {
  display: flex;
  gap: 18px;
  color: var(--primary);
  font-size: 12px;
}
.training-steps strong {
  font-weight: 500;
  font-size: 18px;
}
.three-grid .card p {
  font-size: 13px;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 25px 0;
}
.catalog-card {
  padding: 0;
  overflow: hidden;
  align-self: start;
}
.catalog-card summary {
  list-style: none;
  cursor: pointer;
}
.catalog-card summary::-webkit-details-marker {
  display: none;
}
.catalog-card summary img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  margin-bottom: 20px;
}
.catalog-card summary h2,
.catalog-card summary p,
.catalog-card summary .eyebrow {
  margin-left: 22px;
  margin-right: 22px;
}
.catalog-card summary h2 {
  font-size: 19px;
}
.catalog-card summary p {
  font-size: 12px;
}
.catalog-variants {
  padding: 0 22px;
}
.catalog-variants > div {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.catalog-variants p {
  font-size: 12px;
}
.stage-track {
  display: flex;
  gap: 10px;
  margin: 10px 0 20px;
}
.stage-track span {
  flex: 1;
  font-size: 11px;
  padding: 10px;
  border-bottom: 2px solid var(--line);
  color: var(--muted);
  text-align: center;
}
.stage-track span.active {
  color: var(--primary);
  border-color: var(--primary);
}
.training-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 28px;
}
.training-layout aside h2 {
  font-size: 21px;
  line-height: 1.4;
}
.training-layout aside .callout {
  padding: 16px;
}
.training-layout aside p {
  font-size: 13px;
}
.scene {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  line-height: 0;
  background: var(--deep);
  border-radius: 12px;
  overflow: hidden;
}
.scene.interactive {
  cursor: crosshair;
}
.scene img {
  width: 100%;
  height: auto;
}
.target {
  position: absolute;
  border: 3px solid #7cdda5;
  border-radius: 7px;
  background: #7cdda522;
  box-shadow: 0 0 0 2px #0008;
}
.image-caption {
  font-size: 11px;
  margin: 13px 4px;
  color: var(--muted);
}
.development img {
  width: 100%;
  border-radius: 12px;
}
.form-card {
  max-width: 830px;
  margin-bottom: 24px;
}
.form {
  display: grid;
  gap: 18px;
}
.form .two-grid {
  gap: 16px;
  margin: 0;
}
.form label,
.file-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  min-width: 0;
}
.form label small {
  font-weight: 400;
}
.form .button {
  justify-self: start;
}
.form h2 {
  font-size: 19px;
  margin: 18px 0 0;
}
.form p {
  margin-bottom: 0;
}
.form .checkbox {
  flex-direction: row;
  align-items: center;
}
.form input,
.form textarea,
.form select,
.file-label input {
  width: 100%;
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 44px;
  font-size: 14px;
}
.form textarea {
  resize: vertical;
}
.form input[type='checkbox'] {
  width: 18px;
  height: 18px;
  min-height: 0;
  accent-color: var(--primary);
  margin: 0;
}
.form input[type='file'],
.file-label input {
  font-size: 11px;
}
.form input::file-selector-button,
.file-label input::file-selector-button {
  background: var(--surface2);
  color: var(--text);
  border: 1px solid var(--line);
  padding: 8px;
  border-radius: 5px;
  cursor: pointer;
  margin-right: 10px;
}
.form-error {
  font-size: 13px;
  color: var(--red);
  padding: 12px;
  background: color-mix(in srgb, var(--red) 10%, transparent);
  border-radius: 6px;
}
.goal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.goal-option {
  position: relative;
}
.goal-option input {
  position: absolute;
  opacity: 0;
  width: 1px !important;
  height: 1px !important;
}
.goal-option span {
  display: grid;
  place-items: center;
  min-height: 50px;
  text-align: center;
  padding: 10px 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  cursor: pointer;
}
.goal-option input:checked + span {
  border-color: var(--primary);
  background: color-mix(in srgb, var(--primary) 10%, var(--surface));
  color: var(--primary);
}
.goal-option input:focus-visible + span {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.bike-card {
  display: flex;
  flex-direction: column;
}
.bike-card h2 {
  margin-top: 0;
}
.bike-card .section-title {
  margin-top: 22px;
}
.bike-image,
.bike-placeholder {
  height: 170px;
  object-fit: cover;
  width: 100%;
  border-radius: 9px;
  background: var(--surface2);
}
.bike-placeholder {
  display: grid;
  place-items: center;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 70px;
  color: var(--line);
}
.bike-mileage {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
}
.bike-mileage span {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}
.bike-card > p {
  font-size: 12px;
}
.bike-detail-photo {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  border-radius: 10px;
}
.specs {
  margin: 25px 0 0;
}
.specs > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.specs dt {
  color: var(--muted);
}
.specs dd {
  margin: 0;
  max-width: 65%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.task-row:last-child {
  border-bottom: 0;
}
.task-row .section-title {
  margin: 0 0 10px;
  align-items: flex-start;
}
.task-row h3 {
  font-size: 15px;
}
.task-row p {
  font-size: 12px;
  margin-bottom: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.task-row .button {
  font-size: 10px;
  padding: 9px 11px;
  min-height: 36px;
}
.danger-zone {
  border-color: color-mix(in srgb, var(--red) 30%, var(--line));
  margin: 24px 0;
  max-width: 850px;
}
.danger-zone h2 {
  color: var(--red);
}
.score-overview {
  text-align: center;
}
.score-overview .big-number {
  margin-top: 22px;
}
.score-overview progress {
  margin: 25px 0 14px;
}
.score-overview .button {
  margin: 20px 0 5px;
}
.category {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.category:last-child {
  padding-bottom: 0;
  border: 0;
}
.category .section-title {
  margin: 0 0 12px;
}
.category h3 {
  font-size: 14px;
}
.category small {
  font-size: 10px;
  margin-left: 3px;
}
.category p {
  font-size: 10px;
  margin: 10px 0 0;
}
.progress-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.progress-row h3 {
  font-size: 14px;
  margin-bottom: 4px;
}
.progress-row p {
  font-size: 11px;
  margin: 0;
}
.progress-row > div:last-child {
  width: 28%;
  min-width: 100px;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}
.progress-row progress {
  margin-bottom: 7px;
}
.session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.session-row p {
  font-size: 12px;
  margin: 0;
}
.session-row h3 {
  margin-bottom: 5px;
}
.session-row > strong {
  font-size: 25px;
  color: var(--primary);
}
.week-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px;
  margin: 30px 0;
}
.week-day {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}
.week-day > div {
  height: 85px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--bg);
  font-size: 24px;
  margin-bottom: 10px;
}
.week-day.studied > div {
  border-color: color-mix(in srgb, var(--primary) 50%, var(--line));
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 8%, var(--bg));
}
.score-history {
  display: grid;
  gap: 12px;
}
.score-history > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
}
.score-history span {
  width: 86px;
  flex-shrink: 0;
  color: var(--muted);
}
.score-history strong {
  width: 22px;
  text-align: right;
}
.achievement {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 300px;
}
.achievement-icon {
  font-size: 62px;
  line-height: 1.3;
  color: var(--muted);
  margin-bottom: 16px;
}
.achievement.unlocked .achievement-icon {
  color: var(--primary);
}
.achievement h2 {
  font-size: 20px;
  margin-top: 18px;
}
.achievement p {
  font-size: 12px;
}
.achievement progress {
  margin-top: auto;
}
.achievement > p:last-child {
  margin: 10px 0 0;
  font-size: 10px;
}
.achievement.unlocked {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--line));
}
.profile-summary {
  display: flex;
  gap: 23px;
  align-items: center;
  margin-bottom: 24px;
}
.profile-summary h2 {
  margin-bottom: 5px;
}
.profile-summary p {
  margin: 0 0 7px;
  font-size: 13px;
}
.profile-summary > div:nth-child(2) {
  flex: 1;
}
.avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 700;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.menu-list {
  display: grid;
}
.menu-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.menu-list a:last-child {
  border-bottom: 0;
}
.menu-list a span {
  color: var(--muted);
}
.sync-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sync-card > div {
  max-width: 700px;
}
.sync-card p {
  font-size: 13px;
  margin: 0;
}
.sync-card > .button {
  flex-shrink: 0;
}
.onboarding {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 620px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
}
.onboarding-art {
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 35px;
  overflow: hidden;
  background: #07182a;
}
.onboarding-art:after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #07182af5, transparent 100%);
}
.onboarding-art > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.onboarding-art > div {
  position: relative;
  z-index: 1;
}
.onboarding-art h1 {
  font-size: 38px;
  color: #f0f3f5;
  line-height: 1.22;
}
.onboarding-art .eyebrow {
  color: #fb9a61;
}
.onboarding-copy {
  padding: 45px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex-direction: column;
}
.onboarding-copy h2 {
  font-size: 32px;
}
.onboarding-copy p {
  font-size: 14px;
}
.onboarding-copy .local-note {
  font-size: 11px;
  margin-top: 30px;
  line-height: 1.9;
}
.app-footer {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 25px 42px 30px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.app-footer > div {
  display: flex;
  gap: 20px;
}
.mobile-nav,
.mobile-brand {
  display: none;
}
.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  max-width: min(600px, 90vw);
  background: var(--surface2);
  color: var(--text);
  padding: 17px 24px;
  border: 1px solid var(--primary);
  box-shadow: 0 10px 50px #0006;
  border-radius: 10px;
  font-size: 13px;
}
.toast.error {
  border-color: var(--red);
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: var(--primary);
  color: var(--primary-text);
  padding: 10px 20px;
  border-radius: 5px;
}
.skip:focus {
  top: 10px;
}
.loading {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
}
.recovery {
  max-width: 800px;
  margin: 10vh auto;
  padding: 35px;
}
.recovery .brand {
  margin-bottom: 35px;
}
.recovery h1 {
  font-size: 28px;
}
.recovery .actions {
  margin: 25px 0;
}
.local-note {
  color: var(--muted);
}
@media (min-width: 1600px) {
  .main-content {
    padding: 48px 58px;
  }
  .topbar {
    padding: 0 58px;
  }
  .hero {
    min-height: 370px;
  }
  .hero-copy {
    max-width: 390px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding: 28px 14px;
  }
  .sidebar .brand {
    font-size: 21px;
  }
  .sidebar .brand img {
    width: 25px;
    margin-right: 6px;
  }
  .app-body {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .main-content {
    padding: 32px 27px 45px;
  }
  .topbar {
    padding: 0 27px;
  }
  .home-top {
    grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
  }
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    padding: 26px;
    min-height: 330px;
  }
  .hero-copy {
    max-width: 300px;
  }
  .hero-copy h2 {
    font-size: 29px;
  }
  .hero-copy p {
    max-width: 240px;
  }
  .score-ring {
    height: 135px;
    width: 135px;
  }
  .training-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  }
  .card {
    padding: 23px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 1fr);
  }
  .topbar-tag {
    letter-spacing: 1.3px;
    font-size: 8px;
  }
  .goal-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .onboarding {
    min-height: 550px;
  }
  .onboarding-copy {
    padding: 28px;
  }
  .onboarding-art {
    padding: 27px;
  }
  .onboarding-art h1 {
    font-size: 31px;
  }
  .onboarding-copy h2 {
    font-size: 27px;
  }
  .three-grid {
    gap: 14px;
  }
  .three-grid .card {
    padding: 20px;
  }
  .three-grid .card h2 {
    font-size: 19px;
  }
  .stat strong {
    font-size: 27px;
  }
  .stat {
    padding: 16px;
  }
  .sync-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 950px) {
  .sidebar {
    width: 185px;
    padding: 25px 10px;
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar .brand img {
    display: none;
  }
  .sidebar .nav-item {
    gap: 10px;
    font-size: 12px;
    padding: 11px;
  }
  .sidebar-secondary {
    margin: 25px 9px 0;
  }
  .sidebar-secondary a {
    font-size: 12px;
  }
  .nav-caption {
    font-size: 9px;
    margin-left: 11px;
  }
  .app-body {
    margin-left: 185px;
    width: calc(100% - 185px);
  }
  .home-top {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: 330px;
  }
  .hero-copy {
    max-width: 350px;
  }
  .hero-copy h2 {
    font-size: 34px;
  }
  .score-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 20px 28px;
    text-align: left;
  }
  .score-card .section-title {
    grid-column: 1;
  }
  .score-card .score-ring {
    grid-column: 2;
    grid-row: 1/4;
    height: 125px;
    width: 125px;
    margin: 0;
  }
  .score-card .pill {
    justify-self: start;
  }
  .score-card p {
    grid-column: 1;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .two-grid,
  .detail-grid,
  .training-layout {
    grid-template-columns: 1fr;
  }
  .three-grid {
    grid-template-columns: 1fr;
  }
  .training-hero {
    padding: 25px;
    gap: 20px;
  }
  .training-hero h2 {
    font-size: 28px;
  }
  .training-steps {
    min-width: 120px;
  }
  .skill-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .sticky {
    position: static;
  }
  .toolbar {
    padding: 15px;
  }
  .toolbar form {
    gap: 12px;
    flex-wrap: wrap;
  }
  .toolbar label {
    min-width: 120px;
  }
  .topbar-tag {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
    height: 70px;
  }
  .reading-heading h1 {
    font-size: 29px;
  }
  .onboarding {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .onboarding-art {
    min-height: 280px;
    align-items: end;
  }
  .onboarding-art h1 {
    max-width: 380px;
  }
  .onboarding-copy {
    padding: 30px;
  }
  .onboarding-copy h2 {
    font-size: 29px;
  }
  .onboarding-copy .local-note {
    margin-bottom: 5px;
  }
  .app-footer {
    padding: 25px 27px;
    flex-direction: column;
    gap: 10px;
  }
  .hero-copy .eyebrow {
    font-size: 9px;
  }
  .result .three-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .result .three-grid > div {
    padding: 15px;
  }
  .result .three-grid h3 {
    font-size: 13px;
  }
  .profile-summary {
    gap: 16px;
  }
  .avatar {
    width: 65px;
    height: 65px;
  }
  .profile-summary .button {
    font-size: 11px;
    padding: 11px 14px;
  }
}
@media (max-width: 700px) {
  .sidebar {
    display: none;
  }
  .app-body {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    padding: 0 21px;
    justify-content: space-between;
    height: 69px;
    gap: 8px;
  }
  .mobile-brand {
    display: flex;
    font-size: 22px;
  }
  .topbar-actions {
    gap: 14px;
  }
  .connection {
    font-size: 10px;
  }
  .mini-avatar {
    width: 31px;
    height: 31px;
  }
  .main-content {
    padding: 29px 20px 35px;
  }
  .page-heading {
    margin-bottom: 25px;
  }
  .page-heading h1 {
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -1px;
  }
  .page-heading p {
    font-size: 12px;
    margin-top: 14px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .card {
    padding: 21px;
    border-radius: 13px;
  }
  .hero {
    min-height: 315px;
    padding: 25px;
  }
  .hero-copy {
    max-width: 300px;
  }
  .hero-copy h2 {
    font-size: 32px;
  }
  .hero-copy p {
    font-size: 12px;
    max-width: 250px;
  }
  .hero-copy .eyebrow {
    max-width: 190px;
    line-height: 1.9;
    font-size: 8px;
  }
  .home-top {
    gap: 16px;
  }
  .hero-image {
    object-position: 65% center;
  }
  .score-card {
    padding: 20px 25px;
  }
  .score-card .score-ring {
    height: 118px;
    width: 118px;
  }
  .score-card .section-title {
    margin-bottom: 10px;
  }
  .score-card .score-ring strong {
    font-size: 39px;
  }
  .score-card p {
    font-size: 10px;
    margin-top: 10px;
  }
  .stat {
    padding: 17px;
    min-height: 110px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat > span {
    font-size: 10px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat .stat-link {
    font-size: 15px;
  }
  .two-grid,
  .three-grid,
  .module-grid {
    gap: 16px;
  }
  .section-title {
    gap: 12px;
    align-items: flex-start;
    flex-wrap: wrap;
    margin-top: 28px;
  }
  .section-title h2 {
    font-size: 20px;
  }
  .section-title .text-button {
    font-size: 11px;
    padding: 0;
  }
  .section-title > p {
    font-size: 11px;
  }
  .section-title > .actions {
    gap: 8px;
  }
  .section-title .button {
    padding: 10px 13px;
    font-size: 11px;
  }
  .two-grid {
    grid-template-columns: 1fr;
  }
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .module-card {
    padding: 18px;
    min-height: 280px;
  }
  .module-card h2 {
    font-size: 17px;
    line-height: 1.4;
  }
  .module-card p {
    font-size: 11px;
  }
  .module-icon {
    height: 32px;
    width: 32px;
  }
  .module-card .pill {
    font-size: 9px;
    padding: 3px 6px;
  }
  .module-meta {
    font-size: 9px;
    line-height: 1.6;
  }
  .module-top {
    margin-bottom: 17px;
  }
  .toolbar {
    padding: 14px;
  }
  .toolbar form {
    gap: 10px;
  }
  .toolbar input,
  .toolbar select {
    font-size: 12px;
  }
  .toolbar .form label:first-child {
    flex-basis: 100%;
  }
  .toolbar label {
    font-size: 10px;
    flex: 1;
  }
  .toolbar .button {
    font-size: 11px;
    min-width: 70px;
  }
  .detail-grid {
    gap: 18px;
  }
  .lesson-row {
    gap: 12px;
    padding: 20px 0;
  }
  .lesson-row h3 {
    font-size: 13px;
  }
  .lesson-row .button {
    padding: 8px 11px;
  }
  .lesson-row p {
    font-size: 10px;
  }
  .step-number {
    width: 26px;
    height: 26px;
    font-size: 10px;
  }
  .reader {
    padding: 24px;
    font-size: 15px;
    line-height: 1.9;
  }
  .reader h2 {
    font-size: 23px;
  }
  .reader-actions .button {
    font-size: 11px;
    padding: 12px 14px;
  }
  .reading-heading h1 {
    font-size: 28px;
  }
  .callout {
    padding: 19px;
  }
  .result {
    padding: 27px 20px;
  }
  .result .big-number {
    font-size: 63px;
  }
  .result h2 {
    font-size: 20px;
  }
  .result .three-grid {
    gap: 8px;
  }
  .result .three-grid > div {
    padding: 12px 5px;
  }
  .result .three-grid h3 {
    font-size: 11px;
  }
  .result .actions {
    gap: 8px;
  }
  .result .actions .button {
    font-size: 10px;
    padding: 11px 12px;
  }
  .training-hero {
    flex-direction: column;
    align-items: stretch;
    padding: 26px;
    gap: 28px;
  }
  .training-hero h2 {
    font-size: 29px;
  }
  .training-hero p {
    font-size: 12px;
  }
  .training-steps {
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
  }
  .training-steps span {
    font-size: 9px;
    gap: 7px;
    align-items: center;
  }
  .training-steps strong {
    font-size: 12px;
  }
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .skill-grid .button {
    font-size: 11px;
  }
  .catalog-card {
    padding: 0;
  }
  .catalog-card summary h2,
  .catalog-card summary p,
  .catalog-card summary .eyebrow {
    margin-left: 15px;
    margin-right: 15px;
  }
  .catalog-card summary h2 {
    font-size: 16px;
  }
  .catalog-card summary .eyebrow {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .catalog-variants {
    padding: 0 15px;
  }
  .catalog-variants h3 {
    font-size: 13px;
  }
  .catalog-variants p {
    font-size: 11px;
  }
  .catalog-variants .button {
    font-size: 10px;
    min-height: 38px;
    padding: 9px 12px;
  }
  .stage-track span {
    font-size: 10px;
  }
  .training-layout {
    gap: 16px;
    margin-top: 20px;
  }
  .training-layout aside h2 {
    font-size: 20px;
  }
  .training-layout .choices {
    margin: 20px 0 10px;
  }
  .choice,
  .button.choice {
    font-size: 13px;
    padding: 14px;
  }
  .goal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .form .two-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .form label {
    font-size: 11px;
  }
  .form input,
  .form select,
  .form textarea {
    font-size: 13px;
    padding: 11px;
  }
  .form h2 {
    font-size: 18px;
  }
  .bike-card {
    padding: 16px;
  }
  .bike-card h2 {
    font-size: 19px;
  }
  .bike-card .bike-image,
  .bike-card .bike-placeholder {
    height: 120px;
  }
  .bike-card .bike-mileage {
    font-size: 23px;
  }
  .bike-card .section-title {
    gap: 5px;
    margin-top: 17px;
  }
  .bike-card .pill {
    font-size: 8px;
  }
  .bike-card p {
    font-size: 10px;
  }
  .big-number {
    font-size: 57px;
    letter-spacing: -2px;
  }
  .big-number small {
    font-size: 15px;
  }
  .score-overview .big-number {
    font-size: 75px;
  }
  .task-row .section-title {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .task-row .section-title .pill {
    white-space: nowrap;
  }
  .week-chart {
    gap: 8px;
    margin: 25px 0;
  }
  .week-day > div {
    height: 65px;
    font-size: 21px;
  }
  .week-day {
    font-size: 9px;
  }
  .progress-row {
    gap: 13px;
  }
  .progress-row h3 {
    font-size: 12px;
  }
  .progress-row p {
    font-size: 10px;
  }
  .progress-row > div:last-child {
    min-width: 80px;
  }
  .achievement {
    min-height: 285px;
    padding: 18px;
  }
  .achievement h2 {
    font-size: 17px;
  }
  .achievement p {
    font-size: 11px;
  }
  .achievement-icon {
    font-size: 52px;
  }
  .profile-summary {
    flex-wrap: wrap;
    gap: 16px;
  }
  .profile-summary .avatar {
    width: 60px;
    height: 60px;
  }
  .profile-summary > div:nth-child(2) {
    flex-basis: calc(100% - 80px);
  }
  .profile-summary > .button {
    margin-left: 76px;
  }
  .sync-card h2 {
    font-size: 23px;
  }
  .onboarding-art {
    padding: 28px;
    min-height: 290px;
  }
  .onboarding-art h1 {
    font-size: 32px;
  }
  .onboarding-copy {
    padding: 28px;
  }
  .onboarding-copy h2 {
    font-size: 28px;
  }
  .onboarding-copy p {
    font-size: 12px;
  }
  .onboarding-copy .local-note {
    font-size: 10px;
  }
  .mobile-nav {
    position: fixed;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 8px 8px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: var(--deep);
    z-index: 50;
    box-shadow: 0 -5px 20px #0001;
  }
  .mobile-nav .nav-item {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 6px 2px;
    min-height: 50px;
    font-size: 9px;
    line-height: 1.2;
    border-radius: 8px;
  }
  .mobile-nav .nav-item svg {
    height: 20px;
    width: 20px;
  }
  .mobile-nav .selected {
    box-shadow: none;
    background: color-mix(in srgb, var(--primary) 8%, transparent);
  }
  .app-footer {
    padding: 20px 20px calc(100px + env(safe-area-inset-bottom));
    font-size: 9px;
    gap: 12px;
  }
  .toast {
    bottom: calc(90px + env(safe-area-inset-bottom));
    padding: 15px 18px;
    font-size: 12px;
    min-width: 280px;
  }
  .recovery {
    margin: 10vh 20px;
    padding: 25px;
  }
  .disclaimer {
    font-size: 10px;
    margin-top: 26px;
  }
  .empty {
    padding: 40px 22px;
  }
  .empty h2 {
    font-size: 23px;
  }
  .empty p {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .main-content {
    padding: 25px 15px;
  }
  .module-grid {
    grid-template-columns: 1fr;
  }
  .form .two-grid {
    grid-template-columns: 1fr;
  }
  .hero-copy h2 {
    font-size: 29px;
  }
  .topbar {
    padding: 0 16px;
  }
  .mobile-nav .nav-item {
    font-size: 8px;
  }
  .topbar-actions {
    gap: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
/* Account entry shares the original website's session, with local profile data. */
.sidebar {
  overflow-y: auto;
}
.account-entry {
  max-width: 760px;
  margin: 0 auto;
}
.account-entry .page-heading h1 {
  font-size: clamp(30px, 4vw, 46px);
}
.account-entry .form-card {
  max-width: 570px;
  margin-top: 30px;
}
.auth-providers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-providers .button {
  font-size: 12px;
  padding: 13px 15px;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  color: var(--muted);
  margin: 25px 0;
}
.auth-divider:before,
.auth-divider:after {
  content: '';
  height: 1px;
  background: var(--line);
  flex: 1;
}
.account-links {
  margin: 20px 0 25px;
  justify-content: space-between;
}
.account-links .button {
  font-size: 11px;
}
.account-entry .checkbox {
  flex-wrap: wrap;
  gap: 7px;
  line-height: 1.7;
}
.account-summary {
  margin-bottom: 24px;
  max-width: 850px;
}
.account-summary .pill {
  margin-bottom: 20px;
}
.account-summary h2 {
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  .auth-providers {
    grid-template-columns: 1fr;
  }
  .account-entry .page-heading h1 {
    font-size: 32px;
  }
  .account-links {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
}
