:root {
  --pearl-bg: #f8f9fb;
  --pearl-bg-warm: #fcfbf8;
  --pearl-bg-soft: #f1f4f7;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(148, 163, 184, 0.26);
  --graphite: #111827;
  --blue-soft: #60a5fa;
  --completed: #22c55e;
  --locked: #cbd5e1;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.055);
  --shadow-lift: 0 18px 54px rgba(15, 23, 42, 0.09);
  --bg: #f8f9fb;
  --surface: #f8f9fb;
  --card: #ffffff;
  --card-soft: #f2f4f6;
  --border: rgba(0, 0, 0, 0.06);
  --text: var(--graphite);
  --muted: #64748b;
  --muted-2: #76777c;
  --blue: #2563eb;
  --blue-glow: rgba(37, 99, 235, 0.14);
  --steel: #585e6c;
  --gold: #b89121;
  --shadow: var(--shadow-soft);
  color-scheme: light;
  font-family: Manrope, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -14%, rgba(37, 99, 235, 0.095), transparent 36%),
    radial-gradient(circle at 9% 14%, rgba(255, 255, 255, 0.95), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(226, 232, 240, 0.78), transparent 30%),
    linear-gradient(180deg, #fcfbf8 0%, #f8f9fb 48%, #eceef1 100%);
  color: var(--text);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 18% 10%, rgba(37, 99, 235, 0.07), transparent 28%),
    radial-gradient(circle at 84% 18%, rgba(148, 163, 184, 0.12), transparent 24%),
    radial-gradient(circle at 50% 90%, rgba(193, 198, 215, 0.2), transparent 34%);
}

body::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(225, 226, 228, 0.42)),
    radial-gradient(ellipse at center, transparent 28%, rgba(118, 119, 124, 0.12) 100%);
}

button {
  font: inherit;
}

.app-shell {
  width: min(100%, 520px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 18px calc(126px + env(safe-area-inset-bottom, 0px));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 4px 0 28px;
}

.training-exit-button {
  position: fixed;
  top: calc(14px + env(safe-area-inset-top, 0px));
  right: max(14px, calc((100vw - 520px) / 2 + 14px));
  z-index: 9;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025)),
    rgba(7, 10, 17, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.32);
  color: #e5edf8;
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
  backdrop-filter: blur(16px);
}

.training-exit-button:focus-visible {
  border-color: rgba(96, 165, 250, 0.66);
  outline: none;
  box-shadow:
    0 0 0 5px rgba(59, 130, 246, 0.14),
    0 16px 34px rgba(0, 0, 0, 0.32);
}

.brand-lockup {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #101622;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 800;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 1.12rem;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  overflow: hidden;
  max-width: 30ch;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.rank-chip {
  display: inline-flex;
  min-height: 32px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(200, 164, 93, 0.22);
  border-radius: 999px;
  padding: 0 12px;
  background: rgba(200, 164, 93, 0.08);
  color: #ddc690;
  font-size: 0.76rem;
  font-weight: 700;
}

.header-reset {
  min-height: 32px;
  border: 1px solid rgba(141, 152, 168, 0.2);
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(11, 15, 22, 0.62);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 700;
}

.header-reset:hover,
.header-reset:focus-visible {
  border-color: rgba(59, 130, 246, 0.34);
  color: var(--text);
  outline: none;
}

main {
  min-height: calc(100vh - 190px);
}

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

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.85rem, 14vw, 5.2rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.95;
}

h2 {
  margin-bottom: 6px;
  font-size: 1.08rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.18;
}

h3 {
  margin-bottom: 4px;
  font-size: 0.98rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.2;
}

p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.screen {
  display: none;
  min-height: calc(100vh - 190px);
}

.screen.active {
  display: block;
}

.screen-head {
  margin-bottom: 26px;
}

.screen-head h1 {
  max-width: 8ch;
}

.screen-head p {
  max-width: 28ch;
  color: var(--muted);
  font-size: 1rem;
}

.onboarding-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 22px;
  background: rgba(248, 249, 251, 0.68);
  backdrop-filter: blur(24px);
}

.onboarding-modal {
  display: grid;
  gap: 14px;
  width: min(100%, 430px);
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 251, 0.78));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(28px);
}

.modal-kicker {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.onboarding-modal h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 9vw, 3.15rem);
  line-height: 0.96;
}

.onboarding-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.modal-field {
  display: grid;
  gap: 8px;
}

.modal-field span {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
}

.modal-field input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(118, 119, 124, 0.22);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  outline: none;
}

.modal-field input:focus {
  border-color: rgba(59, 130, 246, 0.72);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.14);
}

.modal-actions {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.foundation-v15-notice-modal {
  width: min(100%, 430px);
  max-height: calc(100dvh - 24px);
  overflow-x: hidden;
  overflow-y: auto;
}

.foundation-v15-notice-copy {
  display: grid;
  gap: 10px;
}

.foundation-v15-notice-copy p,
.foundation-v15-notice-copy strong,
.foundation-v15-notice-error {
  margin: 0;
}

.foundation-v15-notice-copy strong {
  color: var(--text);
  font-size: 0.94rem;
}

.foundation-v15-notice-actions {
  position: sticky;
  bottom: 0;
  padding-top: 4px;
}

.foundation-v15-notice-error:empty {
  display: none;
}

.foundation-v15-notice-error {
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 700;
}

.foundation-v15-start-check-entry {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 20px;
  padding: 14px 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(239, 246, 255, 0.82));
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.07);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.foundation-v15-start-check-entry > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.foundation-v15-start-check-entry strong,
.foundation-v15-start-check-entry small {
  overflow-wrap: anywhere;
}

.foundation-v15-start-check-entry small {
  color: var(--muted);
  line-height: 1.35;
}

.foundation-v15-start-check-entry > span:last-child {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 1.25rem;
}

.foundation-v15-start-check-entry:hover,
.foundation-v15-start-check-entry:focus-visible {
  border-color: rgba(37, 99, 235, 0.34);
  outline: none;
  box-shadow: 0 15px 34px rgba(37, 99, 235, 0.12);
  transform: translateY(-1px);
}

.foundation-v15-start-check-entry-error {
  margin: 7px 2px 0;
  color: #b42318;
  font-size: 0.78rem;
  font-weight: 700;
}

.foundation-v15-start-check-backdrop {
  z-index: 32;
  overflow: hidden;
  padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
}

.foundation-v15-start-check-modal {
  position: relative;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(100%, 500px);
  max-height: calc(100dvh - max(20px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)));
  gap: 10px;
  overflow: hidden;
  padding: 22px;
}

.foundation-v15-start-check-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  color: var(--graphite);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
}

.foundation-v15-start-check-close:focus-visible {
  border-color: rgba(37, 99, 235, 0.55);
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.foundation-v15-start-check-header {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding-right: 42px;
}

.foundation-v15-start-check-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 6vw, 2rem);
  line-height: 1.05;
}

.foundation-v15-start-check-header p,
.foundation-v15-start-check-body p {
  font-size: 0.9rem;
  line-height: 1.42;
}

.foundation-v15-start-check-body {
  display: grid;
  min-width: 0;
  min-height: 0;
  align-content: start;
  gap: 9px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px 3px 8px;
  overscroll-behavior: contain;
}

.foundation-v15-start-check-body.intro-copy {
  align-content: center;
}

.foundation-v15-start-check-options {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.foundation-v15-start-check-option {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 17px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.foundation-v15-start-check-option.selected {
  border-color: rgba(37, 99, 235, 0.72);
  background: rgba(239, 246, 255, 0.96);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.foundation-v15-start-check-option:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgba(37, 99, 235, 0.13);
}

.foundation-v15-start-check-option > span:last-child {
  display: grid;
  min-width: 0;
  gap: 2px;
  padding: 0 3px 4px;
}

.foundation-v15-start-check-option strong,
.foundation-v15-start-check-option small {
  overflow-wrap: anywhere;
}

.foundation-v15-start-check-option strong {
  font-size: 0.84rem;
  line-height: 1.18;
}

.foundation-v15-start-check-option small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.28;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.foundation-v15-start-check-media {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  place-items: center;
  border-radius: 12px;
  background: #eef2f7;
}

.foundation-v15-start-check-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.foundation-v15-start-check-media.fallback {
  align-content: center;
  gap: 2px;
  padding: 8px;
  background:
    radial-gradient(circle at 50% 22%, rgba(96, 165, 250, 0.18), transparent 48%),
    linear-gradient(145deg, #f8fafc, #e8eef5);
  color: var(--blue);
  text-align: center;
}

.foundation-v15-start-check-media.fallback strong {
  font-size: 1.15rem;
}

.foundation-v15-start-check-media.fallback small {
  color: var(--muted);
  font-size: 0.62rem;
}

.foundation-v15-start-check-value,
.foundation-v15-start-check-recommendation {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 18px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
}

.foundation-v15-start-check-value > span,
.foundation-v15-start-check-recommendation > span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
}

.foundation-v15-start-check-value-readout {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.foundation-v15-start-check-value-readout strong {
  color: var(--graphite);
  font-size: 1.55rem;
  line-height: 1;
}

.foundation-v15-start-check-value-readout small,
.foundation-v15-start-check-value > small {
  color: var(--muted);
}

.foundation-v15-start-check-slider {
  width: 100%;
  min-width: 0;
  height: 24px;
  margin: 0;
  accent-color: var(--blue);
  cursor: pointer;
}

.foundation-v15-start-check-slider-guidance {
  display: block;
  margin-top: -2px;
  color: var(--muted-2) !important;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-align: center;
}

.foundation-v15-start-check-zero-note {
  color: var(--blue) !important;
  font-weight: 700;
}

.foundation-v15-start-check-equipment-action {
  justify-self: start;
  border: 0;
  padding: 3px 1px;
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  text-underline-offset: 3px;
}

.foundation-v15-start-check-equipment-action.selected {
  color: var(--graphite);
  text-decoration-color: var(--blue);
}

.foundation-v15-start-check-equipment-action:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(37, 99, 235, 0.14);
}

.foundation-v15-start-check-quality,
.foundation-v15-start-check-result-note {
  margin: 0;
  border-radius: 14px;
  padding: 7px 9px;
  background: rgba(241, 245, 249, 0.8);
}

.foundation-v15-start-check-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 9px;
  padding-top: 2px;
  background: linear-gradient(180deg, rgba(248, 249, 251, 0), rgba(248, 249, 251, 0.94) 28%);
}

.foundation-v15-start-check-actions.single-action {
  grid-template-columns: 1fr;
}

.foundation-v15-start-check-actions.foundation-ready-actions {
  grid-template-columns: 1fr;
}

.foundation-v15-start-check-actions .btn {
  min-width: 0;
}

.foundation-v15-start-check-recommendation {
  justify-items: center;
  padding: 16px;
  background:
    radial-gradient(circle at 20% 0%, rgba(96, 165, 250, 0.2), transparent 42%),
    linear-gradient(135deg, #172033, #0d1729 58%, #07111f);
  color: #f8fbff;
  text-align: center;
}

.foundation-v15-start-check-recommendation > span,
.foundation-v15-start-check-recommendation > small {
  color: #c7d6ea;
}

.foundation-v15-start-check-recommendation > strong {
  font-size: 1.65rem;
}

.foundation-v15-start-level-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.foundation-v15-start-level-options button {
  display: grid;
  min-width: 0;
  gap: 2px;
  border: 1px solid rgba(100, 116, 139, 0.17);
  border-radius: 14px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.foundation-v15-start-level-options button.selected {
  border-color: var(--blue);
  background: rgba(219, 234, 254, 0.72);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.foundation-v15-start-level-options span,
.foundation-v15-start-level-options strong {
  overflow-wrap: anywhere;
}

.foundation-v15-start-level-options span {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.foundation-v15-start-level-options strong {
  font-size: 0.82rem;
}

.foundation-v15-start-check-review-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  padding: 10px 12px;
  background: rgba(241, 245, 249, 0.9);
  color: var(--graphite);
  cursor: pointer;
  font-weight: 750;
  text-align: left;
}

.foundation-v15-start-check-review-toggle span {
  transition: transform 180ms ease;
}

.foundation-v15-start-check-review-toggle[aria-expanded="true"] span {
  transform: rotate(180deg);
}

.foundation-v15-start-check-review-list {
  display: grid;
  gap: 6px;
}

.foundation-v15-start-check-review-list > div {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(100, 116, 139, 0.12);
  padding: 7px 2px;
}

.foundation-v15-start-check-review-list span,
.foundation-v15-start-check-review-list small {
  color: var(--muted);
  font-size: 0.7rem;
}

.foundation-v15-start-check-review-list strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
}

.foundation-v15-start-check-error {
  min-height: 0;
  margin: 0;
  color: #b42318;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

.foundation-v15-start-check-error:empty {
  display: none;
}

.foundation-v15-start-check-busy {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  border-radius: inherit;
  background: rgba(248, 249, 251, 0.68);
  color: var(--graphite);
  font-size: 0.86rem;
  font-weight: 800;
  backdrop-filter: blur(3px);
}

.start-check-modal {
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
}

.start-check-header,
.start-check-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.start-check-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 2px;
  overscroll-behavior: contain;
}

.start-check-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 10px;
  padding-top: 2px;
}

.start-check-actions.single-action {
  grid-template-columns: 1fr;
}

.start-check-previous {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.start-check-review {
  margin-top: 2px;
}

.start-check-modal h2 {
  font-size: clamp(1.65rem, 7vw, 2.45rem);
  line-height: 1;
}

.start-check-helper {
  margin-top: -6px;
}

.start-check-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.start-check-option {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 154px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 10px;
  background: var(--glass);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 760;
  line-height: 1.2;
  text-align: left;
}

.start-check-option span:not(.start-check-image) {
  display: block;
}

.start-check-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(241, 245, 249, 0.96), rgba(203, 213, 225, 0.9)),
    rgba(226, 232, 240, 0.92);
}

.start-check-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  transform: scale(1.07);
}

.start-check-single-image .start-check-image {
  border-radius: 18px;
}

.start-check-option.selected {
  border-color: rgba(59, 130, 246, 0.72);
  background: rgba(59, 130, 246, 0.15);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.08);
}

.start-check-option:focus-visible {
  border-color: rgba(59, 130, 246, 0.9);
  outline: none;
}

.start-check-slider {
  position: relative;
  overflow: hidden;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}

.start-check-slider::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 23px;
  left: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.34), transparent);
  opacity: 0.52;
  transform: translateX(-55%);
  animation: start-check-slider-guide 2.8s ease-in-out infinite;
  pointer-events: none;
}

.start-check-slider strong {
  color: var(--text);
  font-size: 2rem;
  line-height: 1;
}

.start-check-slider input[type="range"] {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--blue);
}

.start-check-slider input[type="range"]::-webkit-slider-thumb {
  animation: start-check-thumb-guide 2.8s ease-in-out infinite;
}

.start-check-slider input[type="range"]::-moz-range-thumb {
  animation: start-check-thumb-guide 2.8s ease-in-out infinite;
}

.start-check-slider input[type="range"]:focus {
  box-shadow: none;
}

@keyframes start-check-slider-guide {
  0%, 18% {
    transform: translateX(-55%);
    opacity: 0;
  }
  42%, 68% {
    opacity: 0.52;
  }
  100% {
    transform: translateX(55%);
    opacity: 0;
  }
}

@keyframes start-check-thumb-guide {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
  }
  48% {
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
  }
}

@media (max-height: 740px) {
  .onboarding-modal {
    padding: 22px;
  }

  .start-check-modal {
    gap: 12px;
  }

  .start-check-option {
    min-height: 134px;
    padding: 10px;
  }
}

@media (max-width: 339px) {
  .start-check-options {
    grid-template-columns: 1fr;
  }
}

.hero-card {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 32px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-status {
  display: grid;
  gap: 5px;
  margin-bottom: 54px;
  color: var(--muted);
  font-size: 0.82rem;
}

.hero-status strong {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 680;
}

.hero-copy {
  max-width: 25ch;
  margin-bottom: 28px;
  color: #c4cbd5;
  font-size: 1.02rem;
}

.btn {
  min-height: 52px;
  border: 0;
  border-radius: 17px;
  cursor: pointer;
  font-weight: 760;
}

.btn.primary {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  width: 100%;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.18);
  animation: primary-cta-breathe 3.4s ease-in-out infinite;
  transform: translateY(0) scale(1);
  transition:
    box-shadow 180ms ease,
    transform 180ms ease,
    filter 180ms ease;
}

.btn.primary::after {
  content: "";
  position: absolute;
  inset: -55% auto -55% -48%;
  z-index: 0;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  opacity: 0.72;
  transform: translateX(0) skewX(-18deg);
  animation: primary-cta-sheen 3.6s ease-in-out infinite;
  pointer-events: none;
}

.btn.primary.active {
  transform: translateY(1px);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-1px) scale(1.005);
  filter: saturate(1.04);
  box-shadow:
    0 18px 38px rgba(26, 32, 44, 0.24),
    0 0 0 4px rgba(37, 99, 235, 0.1);
}

.btn.primary:active {
  transform: translateY(0) scale(0.99);
  filter: saturate(1);
  box-shadow: 0 10px 22px rgba(26, 32, 44, 0.18);
}

@keyframes primary-cta-sheen {
  0%, 44% {
    transform: translateX(0) skewX(-18deg);
  }
  72%, 100% {
    transform: translateX(500%) skewX(-18deg);
  }
}

@keyframes primary-cta-breathe {
  0%, 100% {
    box-shadow: 0 14px 30px rgba(26, 32, 44, 0.18);
  }
  50% {
    box-shadow:
      0 16px 34px rgba(26, 32, 44, 0.22),
      0 0 0 4px rgba(37, 99, 235, 0.08);
  }
}

.btn.quiet {
  width: 100%;
  margin-top: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

.unlock-note {
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 0.9rem;
}

.mini-path {
  display: grid;
  grid-template-columns: 16px 1fr 16px 1fr 16px 1fr 16px;
  align-items: center;
  gap: 9px;
  width: min(78%, 260px);
  margin: 28px auto 0;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass);
}

.mini-node {
  width: 16px;
  height: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: var(--surface);
}

.mini-node.current {
  border-color: rgba(59, 130, 246, 0.55);
  background: var(--blue);
}

.mini-node.completed {
  border-color: rgba(95, 126, 166, 0.55);
  background: rgba(95, 126, 166, 0.6);
}

.mini-node.checkpoint {
  border-color: rgba(200, 164, 93, 0.55);
  background: rgba(200, 164, 93, 0.28);
}

.mini-line {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.micro-mini-path {
  display: flex;
  justify-content: center;
  grid-template-columns: none;
}

.micro-mini-path .mini-line {
  width: 28px;
}

.mini-node.available,
.mini-node.in-progress,
.mini-node.placed-ahead {
  border-color: rgba(95, 126, 166, 0.45);
  background: rgba(95, 126, 166, 0.24);
}

.path-map {
  position: relative;
  --roadmap-node-size: 60px;
  --roadmap-label-width: 112px;
  --roadmap-label-nudge: 14px;
  min-height: var(--map-height);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 34px;
  background:
    radial-gradient(circle at 48% 12%, rgba(37, 99, 235, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(242, 244, 246, 0.84));
  box-shadow: var(--shadow-lift);
  backdrop-filter: blur(24px);
}

.path-map::before,
.path-map::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.path-map::before {
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(248, 249, 251, 0.16)),
    url("../../assets/00-ui-backgrounds/foundation-roadmap-bg.png") center 54% / cover no-repeat;
  opacity: 0.36;
  filter: brightness(1.03) saturate(0.96) contrast(0.98);
}

.path-map::after {
  z-index: 1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% 12%, rgba(37, 99, 235, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(244, 242, 238, 0.34));
}

.path-curve {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: visible;
}

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

.path-base {
  stroke: rgba(148, 163, 184, 0.26);
  stroke-width: 1.8;
}

.path-active {
  stroke: url("#roadmapActiveGradient");
  stroke-dasharray: var(--path-progress) 100;
  stroke-dashoffset: 0;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 9px rgba(59, 130, 246, 0.18));
  opacity: 0.92;
}

.map-node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: var(--y);
  z-index: 3;
  width: var(--roadmap-label-width);
  text-align: center;
  transform: translate(-50%, -50%);
}

.map-node-button {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.map-dot {
  display: grid;
  position: relative;
  width: var(--roadmap-node-size);
  height: var(--roadmap-node-size);
  place-items: center;
  border: 1px solid rgba(118, 119, 124, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  cursor: pointer;
  font-weight: 780;
  transition: border-color 160ms ease, box-shadow 160ms ease, color 160ms ease, transform 160ms ease;
}

.map-node-button:hover .map-dot,
.map-node-button:focus-visible .map-dot {
  border-color: rgba(59, 130, 246, 0.5);
  color: var(--text);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.map-node-button:focus-visible {
  outline: none;
}

.map-label {
  display: block;
  width: var(--roadmap-label-width);
  padding: 0 2px;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(255, 255, 255, 0.74);
}

.label-left .map-label {
  transform: translateX(calc(var(--roadmap-label-nudge) * -1));
}

.label-right .map-label {
  transform: translateX(var(--roadmap-label-nudge));
}

.label-center .map-label {
  transform: translateX(0);
}

.map-node.current .map-dot {
  border-color: rgba(37, 99, 235, 0.32);
  background: var(--blue);
  color: #ffffff;
  box-shadow:
    0 0 0 7px rgba(59, 130, 246, 0.16),
    0 0 0 13px rgba(59, 130, 246, 0.055),
    0 16px 34px rgba(59, 130, 246, 0.24);
  animation: current-node-breathe 3.8s ease-in-out infinite;
}

.map-node.completed .map-dot {
  border-color: rgba(59, 130, 246, 0.22);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(145deg, rgba(239, 246, 255, 0.94), rgba(191, 219, 254, 0.7));
  color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(30, 64, 175, 0.09);
}

.map-node.ready .map-dot {
  border-color: rgba(37, 99, 235, 0.3);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.82), transparent 32%),
    linear-gradient(145deg, rgba(239, 246, 255, 0.98), rgba(191, 219, 254, 0.82));
  color: #1d4ed8;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 9px 20px rgba(30, 64, 175, 0.12);
}

.map-node.completed .map-dot::after {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #1e3a8a;
  font-size: calc(var(--roadmap-node-size) * 0.34);
  font-weight: 850;
}

.map-node.available .map-dot,
.map-node.in-progress .map-dot,
.map-node.placed-ahead .map-dot {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.map-node.placed-ahead .map-dot {
  border-color: rgba(200, 164, 93, 0.45);
  color: var(--gold);
}

.map-node.checkpoint .map-dot {
  border-color: rgba(200, 164, 93, 0.58);
  background: rgba(200, 164, 93, 0.16);
  color: #e7d3a2;
}

.map-node.locked {
  opacity: 0.72;
}

.map-node.locked .map-dot {
  border-color: rgba(118, 119, 124, 0.2);
  background: #e7e8ea;
  color: #858991;
}

.micro-path-map {
  margin-top: 28px;
}

.map-label span {
  display: block;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 720;
  line-height: 1.18;
}

.map-label em {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-style: normal;
  line-height: 1.2;
}

.map-node.current .map-label span,
.map-node.in-progress .map-label span {
  color: var(--text);
}

.map-node.current .map-label em,
.map-node.in-progress .map-label em {
  color: var(--muted);
}

.map-node.completed .map-label span {
  color: var(--text);
}

.map-node.completed .map-label em {
  color: var(--muted);
}

.map-node.locked .map-label span {
  color: var(--text);
}

.map-node.locked .map-label em {
  color: var(--muted);
}

@keyframes current-node-breathe {
  0%,
  100% {
    box-shadow:
      0 0 0 7px rgba(59, 130, 246, 0.14),
      0 0 0 13px rgba(59, 130, 246, 0.045),
      0 16px 34px rgba(59, 130, 246, 0.22);
  }

  50% {
    box-shadow:
      0 0 0 9px rgba(59, 130, 246, 0.18),
      0 0 0 16px rgba(59, 130, 246, 0.065),
      0 18px 38px rgba(59, 130, 246, 0.26);
  }
}

@media (prefers-reduced-motion: reduce) {
  .map-node.current .map-dot,
  .btn.primary,
  .minimal-skill-card,
  .minimal-skill-card::after,
  .start-check-slider input[type="range"]::-webkit-slider-thumb,
  .start-check-slider input[type="range"]::-moz-range-thumb,
  .btn.primary::after {
    animation: none;
    transition: none;
  }

  .btn.primary::after,
  .minimal-skill-card::after,
  .start-check-slider::after {
    opacity: 0;
  }
}

.roadmap-quote {
  max-width: 34ch;
  margin: -8px 0 18px;
  color: #c6cfdb;
  font-size: 0.98rem;
  line-height: 1.55;
}

.roadmap-quote::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 9px;
  vertical-align: middle;
  background: rgba(95, 126, 166, 0.56);
}

.roadmap-progress-card {
  position: relative;
  display: grid;
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.32);
  border-radius: 30px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.04), rgba(2, 6, 23, 0.44)),
    radial-gradient(circle at 10% 10%, rgba(147, 197, 253, 0.22), transparent 28%),
    radial-gradient(circle at 84% 14%, rgba(34, 211, 238, 0.14), transparent 32%),
    linear-gradient(135deg, #123b86 0%, #081832 62%, #061023 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(15, 23, 42, 0.72),
    0 24px 62px rgba(0, 0, 0, 0.42),
    0 18px 60px rgba(59, 130, 246, 0.16);
  backdrop-filter: blur(10px);
}

.roadmap-progress-card::before {
  content: "";
  position: absolute;
  inset: 14px -38px auto auto;
  width: 190px;
  height: 86px;
  border-top: 1px solid rgba(178, 207, 255, 0.12);
  border-radius: 50%;
  opacity: 0.82;
  transform: rotate(-12deg);
  pointer-events: none;
}

.roadmap-progress-card > * {
  position: relative;
}

.roadmap-progress-main,
.roadmap-progress-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.roadmap-progress-percent {
  display: grid;
  gap: 4px;
}

.roadmap-progress-percent strong {
  display: block;
  color: var(--text);
  font-size: clamp(3.15rem, 16vw, 5.1rem);
  font-weight: 790;
  letter-spacing: 0;
  line-height: 0.88;
}

.roadmap-progress-percent span,
.roadmap-current-level span,
.roadmap-progress-grid span {
  display: block;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 780;
}

.roadmap-current-level {
  display: grid;
  max-width: 18ch;
  gap: 6px;
  text-align: right;
}

.roadmap-current-level strong {
  display: block;
  color: #dce5f0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.roadmap-progress-line {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.roadmap-progress-line span {
  display: block;
  width: calc(var(--value) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5b9bff, #9ec2ff);
}

.roadmap-progress-grid {
  align-items: flex-start;
  padding-top: 2px;
}

.roadmap-progress-grid div {
  min-width: 0;
}

.roadmap-progress-grid strong {
  display: block;
  color: var(--text);
  font-size: 1.02rem;
  line-height: 1.18;
}

.roadmap-progress-grid span {
  margin-top: 5px;
}

.roadmap-node-hint {
  margin: 20px 0 0;
  color: var(--muted-2);
  font-size: 0.8rem;
  line-height: 1.4;
  text-align: center;
}

.roadmap-next-phase {
  position: relative;
  display: grid;
  gap: 6px;
  margin-top: 20px;
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 24px;
  padding: 18px 18px 18px 78px;
  background:
    radial-gradient(circle at 16% 50%, rgba(37, 99, 235, 0.09), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 249, 251, 0.68));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.055);
  backdrop-filter: blur(24px);
}

.roadmap-next-phase::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.76);
  box-shadow:
    58px 0 0 -6px rgba(59, 130, 246, 0.08),
    116px 0 0 -10px rgba(59, 130, 246, 0.045);
  transform: translateY(-50%);
}

.roadmap-next-phase span,
.roadmap-next-phase em {
  color: var(--muted-2);
  font-size: 0.76rem;
  font-style: normal;
}

.roadmap-next-phase strong {
  color: var(--text);
  font-size: 1.02rem;
}

.skills-screen .screen-head {
  position: relative;
  overflow: hidden;
  min-height: 152px;
  margin-bottom: 22px;
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-radius: 32px;
  padding: 26px 24px;
  background:
    linear-gradient(90deg, rgba(3, 7, 18, 0.52), rgba(3, 7, 18, 0.8)),
    radial-gradient(circle at 20% 14%, rgba(59, 130, 246, 0.22), transparent 36%),
    url("../../assets/00-ui-backgrounds/skill-paths-header-bg.png") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.28),
    0 0 38px rgba(59, 130, 246, 0.08);
}

.skills-screen .screen-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 18%, rgba(59, 130, 246, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.42));
  pointer-events: none;
}

.skills-screen .screen-head > * {
  position: relative;
  z-index: 1;
}

.skills-screen .screen-head h1,
.skills-screen .screen-head p {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.72);
}

.skills-screen h1,
.progress-screen h1 {
  max-width: 8ch;
}

.skill-grid,
.progress-grid {
  display: grid;
  gap: 16px;
}

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

.skill-card,
.progress-card {
  display: flex;
  min-height: 96px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  background: var(--glass);
}

.minimal-skill-card {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) 58px;
  min-height: 118px;
  align-items: center;
  width: 100%;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.055);
  border-radius: 28px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(248, 249, 251, 0.68)),
    radial-gradient(circle at 16% 4%, rgba(37, 99, 235, 0.085), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 42px rgba(0, 0, 0, 0.06);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  text-align: left;
  backdrop-filter: blur(24px);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.minimal-skill-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 27px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 34%, rgba(37, 99, 235, 0.08));
  opacity: 0.82;
  pointer-events: none;
}

.minimal-skill-card::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -42%;
  z-index: 1;
  width: 30%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  opacity: 0.28;
  transform: skewX(-18deg);
  animation: skill-card-sheen 6.8s ease-in-out infinite;
  pointer-events: none;
}

.minimal-skill-card > * {
  position: relative;
  z-index: 2;
}

.minimal-skill-card:focus-visible {
  border-color: rgba(59, 130, 246, 0.68);
  outline: none;
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12);
  transform: translateY(-1px);
}

.minimal-skill-card:hover {
  border-color: rgba(96, 165, 250, 0.34);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.092), rgba(255, 255, 255, 0.022)),
    radial-gradient(circle at 16% 6%, rgba(59, 130, 246, 0.22), transparent 34%),
    radial-gradient(circle at 96% 0%, rgba(34, 211, 238, 0.1), transparent 30%),
    rgba(14, 20, 31, 0.78);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 24px 56px rgba(0, 0, 0, 0.34),
    0 0 34px rgba(59, 130, 246, 0.08);
  transform: translateY(-1px);
}

.minimal-skill-card:active {
  transform: translateY(0) scale(0.995);
}

@keyframes skill-card-sheen {
  0%, 62% {
    transform: translateX(0) skewX(-18deg);
  }
  84%, 100% {
    transform: translateX(520%) skewX(-18deg);
  }
}

.minimal-skill-card.usable-v0-1 {
  border-color: rgba(96, 165, 250, 0.2);
}

.skill-art {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(145deg, #ffffff, #eef0f3);
  color: var(--text);
  font-size: 1rem;
  font-weight: 820;
}

.skill-cover-art {
  position: relative;
  width: 90px;
  height: 90px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.14);
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.34), rgba(2, 6, 23, 0.6)),
    rgba(5, 7, 11, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 30px rgba(0, 0, 0, 0.26),
    0 0 24px rgba(59, 130, 246, 0.08);
}

.skill-cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(2, 6, 23, 0.02), rgba(2, 6, 23, 0.28)),
    radial-gradient(circle at 50% 14%, rgba(255, 255, 255, 0.14), transparent 28%);
  pointer-events: none;
}

.skill-cover-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
}

.skill-art.large {
  width: 88px;
  height: 88px;
  margin: 0 auto;
  border-radius: 28px;
  font-size: 1.25rem;
}

.skill-card-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.skill-card-main strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.12;
}

.skill-card-main em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  line-height: 1.25;
}

.skill-card-progress-line {
  display: block;
  width: min(100%, 210px);
  height: 3px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
}

.skill-card-progress-line span {
  display: block;
  width: calc(var(--value) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
}

.skill-card-progress-line.inactive span {
  background: rgba(148, 163, 184, 0.26);
}

.skill-progress-ring {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffffff 56%, transparent 57%),
    conic-gradient(var(--blue) calc(var(--skill-percent) * 1%), rgba(148, 163, 184, 0.22) 0);
}

.skill-progress-ring b {
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 820;
}

.btn.compact {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.78rem;
}

.skill-chip {
  display: inline-flex;
  width: max-content;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 720;
}

.skill-chip.free {
  border-color: rgba(200, 164, 93, 0.3);
  color: var(--gold);
}

.skill-chip.preview-ready {
  border-color: rgba(59, 130, 246, 0.34);
  color: #cfe0ff;
}

.skill-chip.preview-only,
.skill-chip.full-path-coming-later {
  opacity: 0.82;
}

.skill-detail-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 22px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}

.minimal-skill-detail {
  gap: 18px;
  padding: 18px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.coming-soon-skill {
  display: grid;
  justify-items: center;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 30px;
  padding: 30px 20px;
  background: var(--glass);
  text-align: center;
}

.coming-soon-skill h2 {
  margin: 4px 0 0;
}

.coming-soon-skill p {
  margin: 0;
  color: var(--muted);
}

.skill-roadmap-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.skill-roadmap-summary strong {
  color: var(--text);
  font-size: 1.15rem;
}

.skill-roadmap-progress-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 28px;
  padding: 18px;
  background:
    radial-gradient(circle at 18% 6%, rgba(147, 197, 253, 0.18), transparent 32%),
    radial-gradient(circle at 84% 16%, rgba(34, 211, 238, 0.12), transparent 32%),
    linear-gradient(145deg, rgba(15, 47, 107, 0.62), rgba(7, 14, 30, 0.76));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 20px 48px rgba(0, 0, 0, 0.26),
    0 0 38px rgba(59, 130, 246, 0.08);
}

.skill-roadmap-progress-card > span {
  color: #9fb9df;
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.04em;
}

.skill-roadmap-progress-main strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  color: var(--text);
  font-size: clamp(2rem, 12vw, 3.15rem);
  line-height: 0.94;
}

.skill-roadmap-progress-main em {
  color: #bfccdc;
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 760;
}

.skill-roadmap-progress-line {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
}

.skill-roadmap-progress-line span {
  display: block;
  width: calc(var(--value) * 1%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #22d3ee);
}

.skill-roadmap-progress-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
}

.skill-roadmap-progress-meta b {
  color: #d8e3f2;
  font-size: 0.82rem;
  font-weight: 760;
}

.skill-path-map {
  --roadmap-node-size: 56px;
  --roadmap-label-width: 116px;
  --roadmap-label-nudge: 12px;
  margin-top: 4px;
  border-color: rgba(0, 0, 0, 0.055);
  border-radius: 32px;
  background:
    radial-gradient(circle at 50% 8%, rgba(37, 99, 235, 0.075), transparent 24%),
    radial-gradient(circle at 26% 70%, rgba(148, 163, 184, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 244, 246, 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 18px 50px rgba(0, 0, 0, 0.065);
}

.skill-path-map::before {
  opacity: 0.3;
  filter: brightness(1.05) contrast(1.02) saturate(0.95);
}

.skill-path-map::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(37, 99, 235, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(244, 242, 238, 0.14));
}

.skill-theme-pistol-squat .skill-path-map::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(248, 249, 251, 0.08)),
    url("../../assets/00-ui-backgrounds/pistol-squat-roadmap-bg.png") center 54% / cover no-repeat;
}

.skill-theme-l-sit .skill-path-map::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(248, 249, 251, 0.08)),
    url("../../assets/00-ui-backgrounds/l-sit-roadmap-bg.png") center 54% / cover no-repeat;
}

.skill-theme-handstand .skill-path-map::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(248, 249, 251, 0.08)),
    url("../../assets/00-ui-backgrounds/handstand-roadmap-bg.png") center 54% / cover no-repeat;
}

.skill-theme-muscle-up .skill-path-map::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(248, 249, 251, 0.08)),
    url("../../assets/00-ui-backgrounds/muscle-up-roadmap-bg.png") center 54% / cover no-repeat;
}

.skill-theme-front-lever .skill-path-map::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(248, 249, 251, 0.08)),
    url("../../assets/00-ui-backgrounds/front-lever-roadmap-bg.png") center 54% / cover no-repeat;
}

.skill-path-map.curve-climb {
  --roadmap-node-size: 58px;
  --roadmap-label-width: 122px;
  background:
    radial-gradient(circle at 32% 16%, rgba(37, 99, 235, 0.075), transparent 24%),
    radial-gradient(circle at 72% 82%, rgba(200, 164, 93, 0.055), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 244, 246, 0.82));
}

.skill-path-map.curve-climb .path-base {
  stroke-width: 2;
}

.skill-path-map.curve-compact {
  --roadmap-node-size: 52px;
  --roadmap-label-width: 108px;
  --roadmap-label-nudge: 9px;
  background:
    radial-gradient(circle at 50% 12%, rgba(37, 99, 235, 0.065), transparent 22%),
    radial-gradient(circle at 46% 78%, rgba(148, 163, 184, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 244, 246, 0.82));
}

.skill-path-map.curve-compact .path-base {
  stroke-width: 1.55;
}

.skill-path-map.curve-vertical {
  --roadmap-node-size: 56px;
  --roadmap-label-width: 118px;
  background:
    radial-gradient(circle at 50% 10%, rgba(37, 99, 235, 0.085), transparent 24%),
    radial-gradient(circle at 50% 92%, rgba(148, 163, 184, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 244, 246, 0.82));
}

.skill-path-map.curve-vertical .path-base {
  stroke-width: 1.9;
}

.skill-path-map.curve-surge {
  --roadmap-node-size: 57px;
  --roadmap-label-width: 120px;
  --roadmap-label-nudge: 11px;
  background:
    radial-gradient(circle at 38% 12%, rgba(37, 99, 235, 0.075), transparent 22%),
    radial-gradient(circle at 70% 40%, rgba(148, 163, 184, 0.08), transparent 20%),
    radial-gradient(circle at 43% 86%, rgba(96, 165, 250, 0.06), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(242, 244, 246, 0.82));
}

.skill-path-map.curve-surge .path-base {
  stroke-width: 2.1;
}

.skill-path-active {
  stroke: url("#skillActiveGradient");
}

.skill-stage-preview {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 22px;
  padding: 16px;
  background: rgba(59, 130, 246, 0.08);
}

.skill-stage-preview span {
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 800;
}

.skill-stage-preview strong {
  color: var(--text);
  font-size: 1rem;
}

.skill-stage-preview p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.skill-detail-panel h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 8vw, 3rem);
  line-height: 0.96;
}

.skill-detail-panel > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.skill-detail-grid {
  display: grid;
  gap: 10px;
}

.skill-detail-grid article,
.skill-readiness-note {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--glass);
}

.skill-detail-grid span,
.skill-readiness-note strong {
  display: block;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 780;
}

.skill-detail-grid strong,
.skill-readiness-note p {
  display: block;
  margin: 6px 0 0;
  color: var(--text);
  font-size: 0.84rem;
  line-height: 1.42;
}

.skill-stage-list {
  display: grid;
  gap: 12px;
}

.skill-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted-2);
  font-size: 0.78rem;
  font-weight: 780;
}

.skill-stage-head strong {
  color: var(--text);
}

.skill-stage-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 16px;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.09), transparent 36%),
    var(--glass);
}

.skill-stage-title span,
.skill-stage-target span,
.skill-stage-support span {
  display: block;
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 800;
}

.skill-stage-title h3 {
  margin: 5px 0 0;
  color: var(--text);
  font-size: 1.05rem;
}

.skill-stage-target strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.94rem;
  line-height: 1.35;
}

.skill-stage-support {
  display: grid;
  gap: 7px;
}

.skill-stage-support em {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.35;
}

.readiness-list {
  display: grid;
  gap: 10px;
}

.readiness-test {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.readiness-test.passed {
  border-color: rgba(59, 130, 246, 0.36);
  background: rgba(59, 130, 246, 0.11);
}

.readiness-test span,
.readiness-test strong,
.readiness-test em,
.readiness-test small {
  display: block;
}

.readiness-test strong {
  color: var(--text);
  font-size: 0.95rem;
}

.readiness-test em {
  margin-top: 6px;
  color: #c6cfdb;
  font-size: 0.82rem;
  font-style: normal;
  line-height: 1.35;
}

.readiness-test small {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.35;
}

.readiness-test b {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.72rem;
}

.readiness-test.passed b {
  background: rgba(59, 130, 246, 0.16);
  color: #1d4ed8;
}

.progress-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.progress-section {
  display: grid;
  gap: 12px;
  margin-bottom: 20px;
}

.progress-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.progress-section-head span {
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 780;
}

.progress-section-head strong {
  color: var(--text);
  font-size: 0.92rem;
  text-align: right;
}

.progress-card {
  display: block;
  min-height: 112px;
}

.progress-card.wide {
  grid-column: 1 / -1;
  min-height: 86px;
}

.progress-card span {
  display: block;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 650;
}

.progress-card strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-size: 1.45rem;
}

.progress-card:first-child {
  grid-column: 1 / -1;
}

.progress-empty {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 16px;
  margin-bottom: 20px;
  background: var(--glass);
}

.progress-empty.compact {
  margin-bottom: 0;
}

.progress-empty strong,
.progress-empty p {
  display: block;
}

.progress-empty strong {
  color: var(--text);
  font-size: 0.98rem;
}

.progress-empty p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

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

.skill-progress-card,
.recent-progress-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: var(--glass);
}

.skill-progress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.skill-progress-card strong,
.skill-progress-card span,
.skill-progress-card em,
.recent-progress-card strong,
.recent-progress-card span,
.recent-progress-card em {
  display: block;
}

.skill-progress-card strong,
.recent-progress-card strong {
  color: var(--text);
  font-size: 0.92rem;
}

.skill-progress-card span,
.recent-progress-card span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.skill-progress-card em {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  padding: 6px 9px;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 760;
}

.recent-progress-card em {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-style: normal;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--glass);
  overflow: hidden;
}

.history-card summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px;
  cursor: pointer;
  list-style: none;
}

.history-card summary::-webkit-details-marker {
  display: none;
}

.history-date {
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 999px;
  padding: 6px 9px;
  color: #1d4ed8;
  font-size: 0.72rem;
  font-weight: 800;
}

.history-main {
  min-width: 0;
}

.history-main strong,
.history-main em,
.history-meta {
  display: block;
}

.history-main strong {
  color: var(--text);
  font-size: 0.94rem;
}

.history-main em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.history-meta {
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 780;
  text-align: right;
}

.history-card.start-check-history summary {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px;
}

.history-card.start-check-history .history-meta {
  text-align: left;
}

.history-detail-list {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 12px 15px 15px;
}

.history-detail-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  border-radius: 14px;
  padding: 10px;
  background: var(--glass);
}

.history-detail-row strong,
.history-detail-row span,
.history-detail-row em {
  display: block;
}

.history-detail-row strong {
  color: var(--text);
  font-size: 0.84rem;
}

.history-detail-row span {
  color: var(--muted);
  font-size: 0.76rem;
}

.history-detail-row em {
  color: #1d4ed8;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 780;
}

.session-panel,
.checkpoint-panel,
.level-intro-panel,
.level-panel,
.result-card {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 26px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.session-panel > p,
.checkpoint-panel > p,
.level-intro-panel > p,
.level-panel > p {
  margin-bottom: 22px;
  color: var(--muted);
}

.workout-overview-panel,
.workout-step-panel {
  display: grid;
  gap: 18px;
}

.workout-step-panel {
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 26px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.workout-step-panel > h2,
.workout-overview-panel > h2 {
  margin: 0;
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1.08;
}

.workout-step-panel > p,
.workout-step-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.workout-action-stack {
  display: grid;
  gap: 10px;
  margin-top: 4px;
}

.foundation-workout-resume-card {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.foundation-workout-resume-card div:first-child,
.foundation-workout-resume-actions,
.foundation-hold-timer,
.foundation-hold-timer-panel {
  display: grid;
  gap: 8px;
}

.foundation-workout-resume-card span,
.foundation-hold-timer-heading span {
  color: var(--blue);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.foundation-workout-resume-card p,
.foundation-workout-message,
.foundation-hold-timer-heading small {
  margin: 0;
  color: var(--muted);
}

.foundation-hold-timer {
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card-soft);
}

.foundation-hold-timer-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.foundation-hold-timer-grid {
  display: grid;
  gap: 10px;
}

.foundation-hold-timer-grid.paired {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.foundation-hold-timer-panel {
  min-width: 0;
  gap: 2px;
  padding: 4px;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.foundation-hold-timer-panel > strong {
  font-size: clamp(1.2rem, 5.25vw, 1.5rem);
  font-variant-numeric: tabular-nums;
}

.foundation-hold-timer-panel > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.foundation-hold-timer-panel .btn {
  min-width: 0;
  min-height: 44px;
  margin-top: 0;
  padding-inline: 8px;
}

.overview-progress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 16px;
  border-color: rgba(59, 130, 246, 0.24);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.82));
}

.overview-progress-card span {
  display: block;
  color: var(--muted-2);
  font-size: 0.73rem;
  font-weight: 780;
}

.overview-progress-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1.65rem;
  line-height: 1.1;
}

.overview-progress-card p {
  max-width: 18ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
  line-height: 1.35;
  text-align: right;
}

.overview-equipment-line,
.overview-warmup-line {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.workout-summary-list {
  display: grid;
  gap: 10px;
}

.workout-summary-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}

.workout-summary-head span {
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 780;
}

.workout-summary-head strong {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.workout-summary-list article {
  display: grid;
  gap: 4px;
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 12px 13px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.workout-summary-list strong {
  color: var(--text);
  font-size: 0.88rem;
}

.workout-summary-list em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  line-height: 1.35;
}

.warmup-flow-list {
  display: grid;
  gap: 12px;
}

.flow-card {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 12px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}

.flow-card strong,
.flow-card span {
  display: block;
}

.flow-card strong {
  color: var(--text);
  font-size: 0.92rem;
}

.flow-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.flow-media-placeholder,
.workout-media-placeholder {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.76);
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 820;
}

.flow-media-placeholder {
  width: 52px;
  height: 52px;
}

.flow-media-shell {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 18px;
  background: rgba(245, 247, 250, 0.92);
}

.flow-media-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.flow-step-media-shell,
.flow-step-media-placeholder {
  width: 100%;
  max-width: min(100%, 360px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 20%, rgba(37, 99, 235, 0.1), transparent 42%),
    rgba(255, 255, 255, 0.76);
}

.flow-step-media-placeholder {
  display: grid;
  place-items: center;
  color: #1d4ed8;
  font-size: 2rem;
  font-weight: 860;
}

.flow-step-media-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.canonical-training-media-shell {
  max-height: min(68vh, 640px);
  aspect-ratio: var(--canonical-media-aspect-ratio, auto);
}

.canonical-training-media-image {
  object-fit: contain;
  transform: none;
}

[data-media-shell] {
  position: relative;
  isolation: isolate;
}

[data-media-shell]::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(226, 232, 240, 0.72) 18%,
    rgba(248, 250, 252, 0.96) 42%,
    rgba(226, 232, 240, 0.72) 66%
  );
  background-size: 220% 100%;
  animation: media-skeleton-shift 1.35s ease-in-out infinite;
  opacity: 1;
  transition: opacity 180ms ease;
  pointer-events: none;
}

[data-progressive-media] {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 180ms ease;
}

[data-media-shell].is-ready::before,
[data-media-shell].media-ready::before {
  opacity: 0;
  animation: none;
}

[data-media-shell].is-ready [data-progressive-media] {
  opacity: 1;
}

@keyframes media-skeleton-shift {
  from {
    background-position: 100% 0;
  }

  to {
    background-position: -100% 0;
  }
}

.workout-media-shell {
  width: 100%;
  max-width: min(100%, 420px);
  max-height: min(68vh, 640px);
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 24px;
  background: #f3f3f2;
}

.workout-media-placeholder.large {
  width: 100%;
  min-height: 190px;
  border-radius: 24px;
}

.workout-media-placeholder.large {
  gap: 8px;
  align-content: center;
  text-align: center;
}

.workout-media-placeholder.large strong {
  color: var(--text);
  font-size: 1.45rem;
}

.workout-media-placeholder.large span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.workout-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  border-radius: inherit;
  transform: scale(1.04);
}

.workout-media-video-shell {
  position: relative;
}

.workout-media-shell.workout-media-video-shell {
  width: min(
    100%,
    420px,
    calc(min(68vh, 640px) * var(--foundation-video-width-ratio))
  );
  aspect-ratio: var(--foundation-video-aspect-ratio);
}

.workout-media-video-shell .workout-media-fallback {
  position: absolute;
  inset: 0;
  height: 100%;
  object-fit: contain;
  transform: none;
}

.workout-media-video {
  position: absolute;
  inset: 0;
  z-index: 2;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transform: none;
  transition: opacity 180ms ease;
}

.workout-media-video-shell.video-ready .workout-media-video {
  opacity: 1;
}

.workout-media-video-shell.video-ready .workout-media-fallback {
  opacity: 0;
}

.workout-media-video-shell.video-failed .workout-media-video {
  display: none;
}

.workout-compact-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: -2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
}

.workout-compact-meta span + span::before {
  content: "·";
  margin-right: 8px;
  color: rgba(148, 163, 184, 0.58);
}

.workout-target-standard {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(59, 130, 246, 0.26);
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.1), transparent 42%),
    rgba(219, 225, 255, 0.44);
}

.workout-target-standard span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 820;
}

.workout-target-standard strong {
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: 2.25rem;
  font-weight: 860;
  line-height: 0.98;
}

.workout-target-standard em {
  color: var(--muted);
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 720;
}

.workout-cue {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.workout-instruction-card {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.56);
}

.workout-instruction-card span {
  color: var(--muted-2);
  font-size: 0.72rem;
  font-weight: 820;
}

.workout-instruction-card p {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 720;
  line-height: 1.4;
}

.workout-instruction-card ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.workout-instruction-card.collapsible-instruction {
  gap: 0;
  overflow: hidden;
  padding: 0;
}

.workout-instruction-toggle {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 0;
  padding: 13px 14px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.workout-instruction-toggle span:first-child {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 800;
}

.instruction-chevron {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid #64748b;
  border-bottom: 2px solid #64748b;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.workout-instruction-toggle[aria-expanded="true"] .instruction-chevron {
  transform: translateY(2px) rotate(225deg);
}

.workout-instruction-details {
  display: grid;
  gap: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  padding: 13px 14px 14px;
}

.workout-instruction-details[hidden] {
  display: none;
}

.foundation-v15-demo-link-section {
  display: grid;
  min-width: 0;
  gap: 2px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 8px;
}

.foundation-v15-demo-link-section a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  align-items: center;
  flex-wrap: wrap;
  color: #1d4ed8;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.foundation-v15-demo-link-section a:focus-visible {
  border-radius: 8px;
  outline: 3px solid rgba(37, 99, 235, 0.38);
  outline-offset: 2px;
}

.foundation-v15-demo-link-section small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.3;
}

@media (prefers-reduced-motion: reduce) {
  [data-media-shell]::before {
    animation: none;
  }

  [data-progressive-media],
  [data-media-shell]::before,
  .instruction-chevron {
    transition: none;
  }
}

.workout-live {
  margin-bottom: 0;
}

.workout-log-panel .target-input-grid {
  grid-template-columns: 1fr;
}

.target-head.compact {
  align-items: flex-start;
}

.result-stepper {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 20px;
  padding: 15px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}

.stepper-number {
  color: var(--text);
  font-size: 3.4rem;
  font-weight: 880;
  line-height: 1;
  text-align: center;
}

.stepper-buttons {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 10px;
  align-items: center;
}

.stepper-buttons button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 800;
}

.stepper-buttons input[type="range"] {
  width: 100%;
  accent-color: var(--blue);
}

.quality-complete-control {
  grid-template-columns: 28px 1fr;
  align-items: center;
}

.quality-complete-control input {
  width: 26px;
  min-height: 26px;
  accent-color: var(--blue);
}

.rest-panel {
  justify-items: center;
  text-align: center;
}

.rest-ring {
  display: grid;
  width: 152px;
  height: 152px;
  place-items: center;
  border-radius: 50%;
  background:
    conic-gradient(
      from 0deg,
      #2563eb 0%,
      #60a5fa calc(var(--rest-progress, 0) * 1%),
      rgba(148, 163, 184, 0.18) calc(var(--rest-progress, 0) * 1%),
      rgba(148, 163, 184, 0.18) 100%
    );
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rest-countdown {
  display: grid;
  width: 130px;
  height: 130px;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(37, 99, 235, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.9);
  color: var(--text);
  font-size: 2.2rem;
  font-weight: 850;
}

.rest-status {
  margin-top: -4px;
  color: var(--muted);
}

.rest-controls {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

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

.result-stat-grid article {
  border: 1px solid var(--border);
  border-radius: 17px;
  padding: 12px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.result-stat-grid span,
.result-stat-grid strong {
  display: block;
}

.result-stat-grid span {
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 760;
}

.result-stat-grid strong {
  margin-top: 5px;
  color: var(--text);
  font-size: 1rem;
}

.result-exercise-list {
  display: grid;
  gap: 10px;
}

.result-exercise-list article {
  display: grid;
  grid-template-columns: 30px 1fr auto;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.result-exercise-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.14);
  color: #1d4ed8;
  font-weight: 800;
}

.result-exercise-list strong {
  color: var(--text);
  font-size: 0.9rem;
}

.result-exercise-list em {
  color: var(--muted);
  font-size: 0.84rem;
  font-style: normal;
  font-weight: 760;
}

.result-encouragement {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.level-progress-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  background: var(--glass);
}

.level-progress-row strong,
.level-progress-row span {
  display: block;
}

.level-progress-row strong {
  color: var(--text);
  font-size: 0.98rem;
}

.level-progress-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.82rem;
}

.progress-ring {
  display: grid;
  width: 70px;
  height: 70px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, var(--card) 0 56%, transparent 57%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), rgba(255, 255, 255, 0.1) 0);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 800;
}

.level-meta-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.level-meta-grid article,
.warmup-panel {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.level-meta-grid span,
.warmup-panel > span {
  display: block;
  color: var(--muted-2);
  font-size: 0.76rem;
  font-weight: 740;
}

.level-meta-grid strong,
.warmup-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.38;
}

.warmup-panel {
  display: grid;
  gap: 8px;
  margin-bottom: 22px;
}

.target-section-title {
  margin: 22px 0 10px;
}

.target-list {
  display: grid;
  gap: 12px;
}

.target-card {
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 15px;
  background: var(--glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}

.target-card.cleared {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(236, 253, 245, 0.78);
}

.target-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.target-head span,
.target-head h3,
.target-head p {
  display: block;
}

.target-head span {
  color: var(--gold);
  font-size: 0.74rem;
  font-weight: 760;
}

.target-head h3 {
  margin: 5px 0 0;
  color: var(--text);
}

.target-head p {
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.45;
}

.target-percent {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(118, 119, 124, 0.2);
  border-radius: 50%;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.target-standard {
  margin: 14px 0 12px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(59, 130, 246, 0.06);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 720;
  line-height: 1.4;
}

.target-live {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 10px;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.66);
}

.target-live span,
.target-live em {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.target-live strong {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 820;
}

.target-live em {
  grid-column: 1 / -1;
  font-style: normal;
}

.target-card.cleared .target-live strong {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
}

.target-card.cleared .target-live em {
  color: var(--muted);
}

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

.target-input-grid label,
.confirm-toggle {
  display: grid;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 720;
}

.target-input-grid input {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(118, 119, 124, 0.2);
  border-radius: 12px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
  font: inherit;
}

.target-input-grid input[type="checkbox"],
.confirm-toggle input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--blue);
}

.target-options {
  display: grid;
  gap: 10px;
}

.target-option {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 12px;
  background: var(--glass);
}

.target-option > strong {
  display: block;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.35;
}

.target-foot {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.35;
}

.confirmation-grid {
  margin-top: 18px;
}

.unlock-guidance-wrap {
  margin-top: 18px;
}

.unlock-guidance {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  padding: 14px;
  background: var(--glass);
}

.unlock-guidance span {
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 780;
}

.unlock-guidance strong {
  color: var(--text);
  font-size: 0.95rem;
}

.unlock-guidance p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.unlock-guidance ul {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.unlock-guidance li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.unlock-guidance li::before {
  content: "";
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--steel);
}

.unlock-guidance.pending {
  border-color: rgba(200, 164, 93, 0.24);
  background: rgba(200, 164, 93, 0.07);
}

.unlock-guidance.ready {
  border-color: rgba(59, 130, 246, 0.34);
  background: rgba(59, 130, 246, 0.1);
}

.unlock-guidance.ready span,
.unlock-guidance.ready li::before {
  color: #1d4ed8;
  background: var(--blue);
}

.confirm-toggle {
  grid-template-columns: 24px 1fr;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
}

.exercise-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.exercise-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 112px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: var(--glass);
}

.session-source,
.exercise-main strong,
.exercise-main span,
.exercise-main p,
.exercise-details span,
.exercise-details em {
  display: block;
}

.session-source {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 760;
}

.exercise-main {
  min-width: 0;
}

.exercise-main strong {
  color: var(--text);
  font-size: 0.98rem;
}

.exercise-main span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 720;
}

.exercise-main p {
  max-width: 32ch;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.45;
}

.exercise-details {
  display: grid;
  flex: 0 0 min(42%, 190px);
  gap: 6px;
  justify-items: end;
}

.exercise-details em,
.exercise-details span {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
  text-align: right;
}

.exercise-details em {
  color: var(--muted);
  font-style: normal;
  font-weight: 700;
}

.result-card {
  display: grid;
  gap: 16px;
}

.result-mark {
  display: inline-flex;
  width: max-content;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(200, 164, 93, 0.3);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 760;
}

.result-card h1 {
  margin-bottom: 0;
}

.result-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.result-summary span {
  color: var(--muted-2);
  font-size: 0.82rem;
}

.result-summary strong {
  color: var(--text);
  text-align: right;
}

.result-coaching {
  display: grid;
  gap: 12px;
  margin: 4px 0;
  text-align: left;
}

.result-coaching summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 0 14px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 780;
  list-style: none;
}

.result-coaching summary::-webkit-details-marker {
  display: none;
}

.result-coaching summary b {
  display: inline-block;
  color: var(--muted);
  font-size: 0.84rem;
  transition: transform 0.18s ease;
}

.result-coaching[open] summary {
  border-color: rgba(59, 130, 246, 0.22);
}

.result-coaching[open] summary b {
  transform: rotate(180deg);
}

.result-coaching-head,
.result-coach-card {
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 14px;
  background: var(--glass);
}

.result-coaching-head {
  background: rgba(59, 130, 246, 0.07);
}

.result-coaching-head span {
  display: block;
  color: var(--muted-2);
  font-size: 0.74rem;
  font-weight: 780;
}

.result-coaching-head strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 1rem;
}

.result-coaching-head p,
.result-coach-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.result-coach-list {
  display: grid;
  gap: 10px;
}

.result-coach-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.result-coach-card .result-gap {
  color: var(--muted);
  font-weight: 740;
}

.result-coach-card strong {
  color: var(--muted);
}

.checkpoint-list {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.checkpoint-test {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  min-height: 96px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: var(--glass);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
  cursor: pointer;
  text-align: left;
}

.checkpoint-main,
.checkpoint-main strong,
.checkpoint-main em,
.checkpoint-main small,
.checkpoint-status {
  display: block;
}

.checkpoint-main {
  min-width: 0;
  line-height: 1.25;
}

.checkpoint-main strong {
  color: var(--text);
  font-size: 0.98rem;
  font-style: normal;
  font-weight: 730;
}

.checkpoint-main em {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 660;
  line-height: 1.35;
}

.checkpoint-main small {
  margin-top: 6px;
  color: var(--muted-2);
  font-size: 0.76rem;
  line-height: 1.35;
}

.checkpoint-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 730;
}

.checkpoint-test.passed {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(236, 253, 245, 0.72);
}

.checkpoint-test.passed .checkpoint-status {
  color: #047857;
}

.checkpoint-safety {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.safety-toggle {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 12px 14px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.safety-toggle span,
.safety-toggle strong {
  display: block;
}

.safety-toggle span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.safety-toggle strong {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 0.76rem;
}

.safety-toggle.passed {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(236, 253, 245, 0.72);
}

.safety-toggle.passed strong {
  color: #047857;
}

.checkpoint-message {
  margin: 0 0 16px;
  border: 1px solid rgba(200, 164, 93, 0.24);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255, 249, 219, 0.58);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkpoint-message p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkpoint-guidance {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid rgba(200, 164, 93, 0.16);
  padding-top: 12px;
}

.checkpoint-guidance article {
  display: grid;
  gap: 4px;
}

.checkpoint-guidance strong,
.checkpoint-guidance span {
  display: block;
}

.checkpoint-guidance strong {
  color: var(--gold);
  font-size: 0.82rem;
}

.checkpoint-guidance span {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.preview-reset {
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 720;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0;
}

.benefit-list span {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 13px 14px;
  background: var(--glass);
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.25;
}

.coming-next {
  margin-bottom: 22px;
  border-top: 1px solid var(--border);
  padding-top: 18px;
}

.coming-next > span {
  display: block;
  margin-bottom: 12px;
  color: var(--muted-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.coming-next div {
  display: grid;
  gap: 8px;
}

.coming-next strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
}

.level-preview-list {
  display: grid;
  gap: 10px;
  margin: 22px 0;
}

.level-preview-item {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  background: var(--glass);
}

.level-preview-item strong,
.level-preview-item span {
  display: block;
}

.level-preview-item strong {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.25;
}

.level-preview-item span {
  flex: 0 0 auto;
  color: var(--muted-2);
  font-size: 0.8rem;
  font-weight: 720;
}

.level-note {
  margin-bottom: 22px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  color: var(--muted-2);
  font-size: 0.9rem;
  line-height: 1.55;
}

.bottom-nav {
  position: fixed;
  right: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  display: grid;
  width: min(calc(100% - 28px), 492px);
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.09);
  transform: translateX(50%);
  backdrop-filter: blur(18px);
}

.nav-item {
  min-width: 0;
  min-height: 42px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.76rem;
  font-weight: 720;
}

.nav-item.active {
  background: var(--graphite);
  color: #ffffff;
}

.review-link {
  width: 100%;
  min-height: 46px;
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--glass);
  color: var(--text);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 740;
}

.review-head h1 {
  max-width: 9ch;
}

.review-panel {
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 24px;
  background: var(--glass-strong);
  box-shadow: var(--shadow);
}

.review-panel > p {
  margin-bottom: 20px;
  color: var(--muted);
}

.review-meta-grid {
  display: grid;
  gap: 12px;
}

.review-meta-grid section {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 16px;
  background: var(--glass);
}

.review-meta-grid h3 {
  margin-bottom: 10px;
  color: var(--text);
}

.review-meta-grid ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.review-stack {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.review-card {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--glass);
  overflow: hidden;
}

.review-card summary {
  display: grid;
  gap: 5px;
  padding: 18px;
  cursor: pointer;
  list-style-position: inside;
}

.review-card summary span,
.review-card summary small {
  display: block;
}

.review-card summary span {
  color: var(--text);
  font-size: 1rem;
  font-weight: 760;
}

.review-card summary small {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.review-card .exercise-list,
.review-checkpoint-list {
  padding: 0 14px 14px;
}

.checkpoint-logic {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin: 0 14px 12px;
  border: 1px solid rgba(200, 164, 93, 0.2);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(200, 164, 93, 0.07);
}

.checkpoint-logic strong,
.checkpoint-logic span {
  display: block;
}

.checkpoint-logic strong {
  color: var(--gold);
  font-size: 0.82rem;
}

.checkpoint-logic span {
  color: #ddc690;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: right;
}

.review-checkpoint-test {
  cursor: default;
}

/* Pearl Glass theme experiment: visual-only surface and state tuning. */
.logo-mark,
.hero-card,
.level-panel,
.skill-detail-panel,
.result-card,
.review-panel,
.history-card,
.progress-empty,
.progress-card,
.skill-card,
.flow-card,
.target-card,
.review-card,
.roadmap-progress-card,
.skill-roadmap-progress-card,
.overview-progress-card,
.result-coaching-head,
.result-coach-card,
.recent-progress-card,
.skill-progress-card {
  border-color: var(--border);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.68)),
    rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  color: var(--text);
  backdrop-filter: blur(24px);
}

.logo-mark,
.skill-art {
  background: linear-gradient(145deg, #ffffff, #ece8df);
  color: var(--text);
}

.hero-copy,
.review-panel > p,
.history-meta,
.result-coach-card .result-gap,
.result-coach-card strong,
.checkpoint-logic span {
  color: var(--muted);
}

.training-exit-button {
  border-color: rgba(23, 25, 29, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.btn.primary {
  background: #1a202c;
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(26, 32, 44, 0.18);
}

.btn.quiet,
.review-link,
.header-reset {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  backdrop-filter: blur(18px);
}

.rank-chip,
.skill-chip,
.history-date {
  border-color: rgba(37, 99, 235, 0.16);
  background: rgba(37, 99, 235, 0.07);
  color: #1d4ed8;
}

.mini-path,
.review-meta-grid section {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.62);
}

.mini-node {
  border-color: rgba(23, 25, 29, 0.14);
  background: #ffffff;
}

.bottom-nav {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.09);
  backdrop-filter: blur(28px);
}

.nav-item {
  color: var(--muted);
}

.nav-item.active {
  background: #1a202c;
  color: #ffffff;
}

.minimal-skill-card {
  border-color: rgba(0, 0, 0, 0.055);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.84), rgba(248, 249, 251, 0.68)),
    radial-gradient(circle at 16% 4%, rgba(37, 99, 235, 0.085), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 42px rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(24px);
}

.minimal-skill-card::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), transparent 34%, rgba(37, 99, 235, 0.08));
  opacity: 0.82;
}

.minimal-skill-card:hover {
  border-color: rgba(37, 99, 235, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 251, 0.76)),
    radial-gradient(circle at 16% 6%, rgba(37, 99, 235, 0.12), transparent 34%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 48px rgba(0, 0, 0, 0.08);
}

.minimal-skill-card.usable-v0-1 {
  border-color: rgba(37, 99, 235, 0.22);
}

.skill-cover-art {
  border-color: rgba(23, 25, 29, 0.12);
  background: linear-gradient(145deg, #ffffff, #eef0f3);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.skill-progress-ring {
  background:
    radial-gradient(circle, #ffffff 56%, transparent 57%),
    conic-gradient(var(--blue) calc(var(--skill-percent) * 1%), rgba(148, 163, 184, 0.22) 0);
}

.skill-progress-ring b {
  color: var(--text);
}

.skill-card-progress-line,
.roadmap-progress-line,
.skill-roadmap-progress-line {
  background: rgba(148, 163, 184, 0.18);
}

.path-map {
  border-color: rgba(0, 0, 0, 0.055);
  background:
    radial-gradient(circle at 48% 12%, rgba(37, 99, 235, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(242, 244, 246, 0.84));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.065);
  backdrop-filter: blur(24px);
}

.path-map::before {
  opacity: 0.36;
  filter: brightness(1.03) saturate(0.96) contrast(0.98);
}

.path-map::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(37, 99, 235, 0.1), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.52), rgba(244, 242, 238, 0.34));
}

.path-base {
  stroke: rgba(118, 119, 124, 0.28);
}

.path-active {
  filter: drop-shadow(0 0 7px rgba(37, 99, 235, 0.16));
}

.map-dot {
  border-color: rgba(118, 119, 124, 0.22);
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.055);
}

.map-node.current .map-dot {
  border-color: rgba(37, 99, 235, 0.32);
  background: var(--blue);
  color: #ffffff;
}

.map-node.completed .map-dot {
  border-color: rgba(59, 130, 246, 0.22);
  background:
    radial-gradient(circle at 34% 22%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(145deg, rgba(239, 246, 255, 0.94), rgba(191, 219, 254, 0.7));
  color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(30, 64, 175, 0.09);
}

.map-node.available .map-dot,
.map-node.in-progress .map-dot,
.map-node.placed-ahead .map-dot {
  border-color: rgba(148, 163, 184, 0.42);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.map-node.locked .map-dot {
  border-color: rgba(118, 119, 124, 0.2);
  background: #e7e8ea;
  color: #858991;
}

.map-node.ready .map-label span {
  color: var(--text);
}

.map-node.ready .map-label em {
  color: #1d4ed8;
  font-weight: 800;
}

.foundation-ready-summary .roadmap-progress-grid > div:last-child strong {
  max-width: 15ch;
  font-size: 0.92rem;
  line-height: 1.2;
}

.map-label {
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.86),
    0 8px 18px rgba(255, 255, 255, 0.74);
}

.map-label span,
.map-node.current .map-label span,
.map-node.in-progress .map-label span,
.map-node.completed .map-label span,
.map-node.locked .map-label span {
  color: var(--text);
}

.map-label em,
.map-node.current .map-label em,
.map-node.in-progress .map-label em,
.map-node.completed .map-label em,
.map-node.locked .map-label em {
  color: var(--muted);
}

.skill-path-map::before {
  opacity: 0.3;
  filter: brightness(1.05) contrast(1.02) saturate(0.95);
}

.skill-path-map::after {
  background:
    radial-gradient(circle at 50% 12%, rgba(37, 99, 235, 0.07), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(244, 242, 238, 0.14));
}

.skill-roadmap-progress-card > span,
.skill-roadmap-progress-main em,
.skill-roadmap-progress-meta b {
  color: var(--muted);
}

.progress-ring {
  background:
    radial-gradient(circle at center, #ffffff 0 56%, transparent 57%),
    conic-gradient(var(--blue) calc(var(--value) * 1%), rgba(148, 163, 184, 0.2) 0);
}

.target-card.cleared {
  border-color: rgba(16, 185, 129, 0.28);
  background: rgba(236, 253, 245, 0.78);
}

.target-card.cleared .target-live strong {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text);
}

.target-card.cleared .target-live em {
  color: var(--muted);
}

.rest-timer-ring {
  background:
    conic-gradient(
      from 0deg,
      #2563eb 0%,
      #60a5fa calc(var(--rest-progress, 0) * 1%),
      rgba(148, 163, 184, 0.18) calc(var(--rest-progress, 0) * 1%),
      rgba(148, 163, 184, 0.18) 100%
    );
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.history-detail-row em {
  color: #1d4ed8;
}

.screen-head p,
.session-panel > p,
.checkpoint-panel > p,
.level-intro-panel > p,
.level-panel > p,
.overview-progress-card p,
.workout-summary-head strong,
.result-exercise-list em,
.result-encouragement,
.checkpoint-main em,
.checkpoint-main small,
.checkpoint-message p,
.checkpoint-guidance span,
.coming-next > span,
.coming-next div,
.coming-soon-skill p {
  color: var(--muted);
}

.onboarding-backdrop {
  background: rgba(248, 249, 251, 0.68);
  backdrop-filter: blur(24px);
}

.onboarding-modal {
  border-color: rgba(0, 0, 0, 0.07);
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(248, 249, 251, 0.78));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(28px);
}

.modal-field input {
  border-color: rgba(118, 119, 124, 0.22);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
}

.start-check-option,
.start-check-slider,
.target-option,
.result-stepper,
.result-stat-grid article,
.result-exercise-list article,
.workout-summary-list article,
.checkpoint-test,
.checkpoint-guidance article,
.coming-next,
.checkpoint-message {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.66);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}

.start-check-option.selected {
  border-color: rgba(37, 99, 235, 0.44);
  background: rgba(219, 225, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

.skills-screen .screen-head {
  border-color: rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.58), rgba(17, 24, 39, 0.74)),
    radial-gradient(circle at 20% 14%, rgba(49, 107, 243, 0.18), transparent 36%),
    url("../../assets/00-ui-backgrounds/skill-paths-header-bg.png") center / cover no-repeat;
}

.skills-screen .screen-head::after {
  background:
    radial-gradient(circle at 72% 18%, rgba(49, 107, 243, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(3, 8, 19, 0.08), rgba(3, 8, 19, 0.42));
}

.skills-screen .screen-head h1,
.skills-screen .screen-head p {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(17, 24, 39, 0.72);
}

.roadmap-next-phase {
  border-color: rgba(37, 99, 235, 0.14);
  background:
    radial-gradient(circle at 16% 50%, rgba(37, 99, 235, 0.09), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 249, 251, 0.68));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.055);
  backdrop-filter: blur(24px);
}

.roadmap-next-phase::before {
  border-color: rgba(37, 99, 235, 0.18);
  background:
    radial-gradient(circle, rgba(37, 99, 235, 0.14), transparent 58%),
    rgba(255, 255, 255, 0.76);
}

.roadmap-next-phase strong,
.workout-summary-list strong,
.checkpoint-main strong,
.coming-next strong,
.coming-soon-skill h2 {
  color: var(--text);
}

.coming-soon-skill,
.skill-stage-card,
.stage-target-row,
.skill-readiness-card,
.skill-readiness-row,
.target-input-card,
.target-live,
.best-card,
.simple-result-card,
.warmup-card,
.cooldown-card {
  border-color: rgba(0, 0, 0, 0.06);
  background: rgba(255, 255, 255, 0.68);
  color: var(--text);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.045);
  backdrop-filter: blur(20px);
}

.stepper-buttons button {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(255, 255, 255, 0.84);
  color: var(--text);
}

.rest-ring {
  background:
    conic-gradient(
      from 0deg,
      #2563eb 0%,
      #60a5fa calc(var(--rest-progress, 0) * 1%),
      rgba(148, 163, 184, 0.18) calc(var(--rest-progress, 0) * 1%),
      rgba(148, 163, 184, 0.18) 100%
    );
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.rest-countdown {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.result-exercise-list span,
.checkpoint-status {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.checkpoint-test.passed {
  border-color: rgba(16, 185, 129, 0.24);
  background: rgba(236, 253, 245, 0.72);
}

.checkpoint-test.passed .checkpoint-status {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}

.checkpoint-safety,
.checkpoint-logic {
  border-color: rgba(184, 137, 33, 0.18);
  background: rgba(255, 249, 219, 0.58);
}

.roadmap-progress-card,
.skill-roadmap-progress-card,
.overview-progress-card,
.progress-card,
.roadmap-next-phase {
  border-color: rgba(178, 207, 255, 0.2);
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.18), rgba(17, 24, 39, 0.34)),
    radial-gradient(circle at 16% 8%, rgba(96, 165, 250, 0.28), transparent 36%),
    radial-gradient(circle at 88% 14%, rgba(147, 197, 253, 0.16), transparent 34%),
    linear-gradient(135deg, #172033 0%, #0d1729 54%, #07111f 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    inset 0 -1px 0 rgba(15, 23, 42, 0.54),
    0 22px 52px rgba(15, 23, 42, 0.2),
    0 12px 38px rgba(37, 99, 235, 0.1);
  color: #f8fbff;
  backdrop-filter: blur(22px);
}

.roadmap-progress-card::before,
.roadmap-next-phase::before {
  border-color: rgba(178, 207, 255, 0.2);
  background:
    radial-gradient(circle, rgba(147, 197, 253, 0.22), transparent 58%),
    rgba(255, 255, 255, 0.08);
}

.roadmap-progress-percent strong,
.roadmap-current-level strong,
.roadmap-progress-grid strong,
.skill-roadmap-progress-main strong,
.skill-roadmap-progress-meta b,
.overview-progress-card strong,
.progress-card strong,
.roadmap-next-phase strong {
  color: #f8fbff;
}

.roadmap-progress-percent span,
.roadmap-current-level span,
.roadmap-progress-grid span,
.skill-roadmap-progress-card > span,
.skill-roadmap-progress-main em,
.overview-progress-card span,
.overview-progress-card p,
.progress-card span,
.roadmap-next-phase span,
.roadmap-next-phase em {
  color: #c7d6ea;
}

.roadmap-progress-line,
.skill-roadmap-progress-line {
  background: rgba(255, 255, 255, 0.14);
}

.roadmap-progress-line span,
.skill-roadmap-progress-line span {
  background: linear-gradient(90deg, #3b82f6, #93c5fd);
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.26);
}

.result-summary {
  border: 1px solid rgba(178, 207, 255, 0.18);
  border-radius: 20px;
  padding: 14px;
  background:
    radial-gradient(circle at 14% 8%, rgba(96, 165, 250, 0.18), transparent 34%),
    linear-gradient(135deg, #172033, #0d1729 58%, #07111f);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

.result-summary span {
  color: #c7d6ea;
}

.result-summary strong {
  color: #f8fbff;
}

@media (min-width: 720px) {
  .app-shell {
    width: min(100%, 900px);
    padding: 34px 30px 136px;
  }

  .hero-card {
    padding: 46px;
  }

  .screen {
    min-height: 680px;
  }

  .review-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .training-exit-button {
    right: calc((100vw - min(100%, 900px)) / 2 + 30px);
  }
}

@media (max-width: 520px) {
  .onboarding-backdrop {
    padding: max(10px, env(safe-area-inset-top, 0px)) 10px max(10px, env(safe-area-inset-bottom, 0px));
  }

  .foundation-v15-start-check-modal {
    max-height: calc(100dvh - 20px);
    border-radius: 24px;
    gap: 8px;
    padding: 15px;
  }

  .foundation-v15-start-check-header {
    gap: 4px;
  }

  .foundation-v15-start-check-header h2 {
    font-size: clamp(1.28rem, 6.4vw, 1.72rem);
  }

  .foundation-v15-start-check-header p,
  .foundation-v15-start-check-body p {
    font-size: 0.78rem;
  }

  .foundation-v15-start-check-options {
    gap: 8px;
  }

  .foundation-v15-start-check-option {
    gap: 5px;
    border-radius: 15px;
    padding: 6px;
  }

  .foundation-v15-start-check-media {
    border-radius: 10px;
  }

  .foundation-v15-start-check-option > span:last-child {
    padding-bottom: 2px;
  }

  .foundation-v15-start-check-value {
    padding: 8px 10px;
  }

  .foundation-v15-start-check-quality {
    font-size: 0.74rem !important;
  }

  .foundation-v15-start-check-actions .btn {
    min-height: 46px;
    padding-inline: 10px;
    font-size: 0.82rem;
  }

  .foundation-v15-start-level-options {
    gap: 7px;
  }

  .start-check-modal {
    width: min(100%, 430px);
    max-height: calc(100dvh - 20px);
    padding: 18px;
  }

  .start-check-header {
    gap: 8px;
  }

  .start-check-option {
    min-height: 126px;
  }

  .app-shell.training-focus {
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(94px + env(safe-area-inset-bottom, 0px));
  }

  .app-shell.training-focus .workout-flow-screen.active {
    padding-bottom: 82px;
  }

  .app-shell.training-focus .workout-flow-screen.active .workout-step-panel {
    backdrop-filter: none;
  }

  .app-shell.training-focus .workout-flow-screen.active .workout-action-stack > .btn.primary {
    position: fixed;
    left: 50%;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    z-index: 8;
    width: min(calc(100% - 20px), 492px);
    translate: -50% 0;
    margin: 0;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.2);
  }

  .training-exit-button {
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: 12px;
    width: 36px;
    height: 36px;
    font-size: 1.35rem;
  }

  .workout-flow-screen .screen-head {
    margin-bottom: 8px;
    padding-right: 44px;
  }

  .workout-flow-screen .screen-head h1 {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1;
  }

  .workout-flow-screen .screen-head p {
    font-size: 0.86rem;
  }

  .workout-flow-screen .training-step-title {
    font-size: clamp(1.05rem, 4.8vw, 1.25rem);
    line-height: 1.1;
  }

  .workout-flow-screen .training-step-context {
    overflow: hidden;
    max-width: calc(100vw - 92px);
    margin-top: 4px;
    font-size: 0.78rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .workout-step-panel {
    gap: 10px;
    border-radius: 24px;
    padding: 14px;
  }

  .workout-step-panel > h2,
  .workout-overview-panel > h2 {
    font-size: 1.24rem;
    line-height: 1.1;
  }

  .workout-media-shell {
    max-width: min(100%, 320px);
    max-height: none;
    aspect-ratio: auto;
    border-radius: 20px;
  }

  .workout-media {
    height: auto;
    object-fit: contain;
    transform: none;
  }

  .workout-media-video {
    width: 100%;
    height: 100%;
    max-height: none;
  }

  .workout-media-shell.workout-media-video-shell {
    width: 100%;
    max-width: min(100%, 320px);
  }

  .flow-step-media-shell,
  .flow-step-media-placeholder {
    max-width: min(100%, 240px);
  }

  .flow-step-media-image {
    object-fit: contain;
  }

  .flow-step-media-shell.foundation-cooldown-media-shell {
    max-width: min(100%, 320px);
    aspect-ratio: auto;
  }

  .flow-step-media-image.foundation-cooldown-media-image {
    height: auto;
    object-fit: contain;
  }

  .workout-target-standard {
    gap: 6px;
    border-radius: 18px;
    padding: 12px;
  }

  .workout-target-standard strong {
    font-size: clamp(1.65rem, 9vw, 2.05rem);
  }

  .workout-compact-meta {
    gap: 6px;
    font-size: 0.78rem;
  }

  .workout-cue {
    font-size: 0.84rem;
    line-height: 1.34;
  }

  .workout-action-stack {
    gap: 8px;
    margin-top: 0;
  }

  .path-screen .screen-head {
    margin-bottom: 8px;
  }

  .path-screen .screen-head h1 {
    max-width: none;
    font-size: clamp(1.85rem, 8vw, 2.125rem);
    line-height: 1.02;
  }

  .path-screen .screen-head p {
    margin-top: 6px;
    font-size: 0.86rem;
  }

  .path-screen .roadmap-quote {
    display: none;
  }

  .path-screen .roadmap-progress-card {
    gap: 10px;
    border-radius: 22px;
    padding: 15px 16px;
  }

  .path-screen .roadmap-progress-main,
  .path-screen .roadmap-progress-grid {
    gap: 10px;
  }

  .path-screen .roadmap-progress-percent strong {
    font-size: clamp(2.25rem, 11vw, 2.75rem);
    line-height: 0.92;
  }

  .path-screen .roadmap-current-level {
    gap: 3px;
  }

  .path-screen .roadmap-current-level strong,
  .path-screen .roadmap-progress-grid strong {
    font-size: 0.88rem;
  }

  .path-screen .roadmap-progress-percent span,
  .path-screen .roadmap-current-level span,
  .path-screen .roadmap-progress-grid span {
    font-size: 0.68rem;
  }

  .path-screen .roadmap-progress-grid span {
    margin-top: 2px;
  }

  .path-screen .roadmap-progress-line {
    height: 6px;
  }

  .path-screen .roadmap-node-hint {
    margin-top: 9px;
  }

  .skills-screen .screen-head {
    min-height: 132px;
    margin-bottom: 18px;
    padding: 22px 20px;
    background-position: center;
  }

  .path-map::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(248, 249, 251, 0.18)),
      url("../../assets/00-ui-backgrounds/foundation-roadmap-bg.png") center center / cover no-repeat;
  }

  .skill-path-map::before {
    opacity: 0.28;
  }

  .skill-theme-pistol-squat .skill-path-map::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(248, 249, 251, 0.06)),
      url("../../assets/00-ui-backgrounds/pistol-squat-roadmap-bg.png") center center / cover no-repeat;
  }

  .skill-theme-l-sit .skill-path-map::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(248, 249, 251, 0.06)),
      url("../../assets/00-ui-backgrounds/l-sit-roadmap-bg.png") center center / cover no-repeat;
  }

  .skill-theme-handstand .skill-path-map::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(248, 249, 251, 0.06)),
      url("../../assets/00-ui-backgrounds/handstand-roadmap-bg.png") center center / cover no-repeat;
  }

  .skill-theme-muscle-up .skill-path-map::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(248, 249, 251, 0.06)),
      url("../../assets/00-ui-backgrounds/muscle-up-roadmap-bg.png") center center / cover no-repeat;
  }

  .skill-theme-front-lever .skill-path-map::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(248, 249, 251, 0.06)),
      url("../../assets/00-ui-backgrounds/front-lever-roadmap-bg.png") center center / cover no-repeat;
  }
}

@media (max-width: 370px) {
  .foundation-v15-start-check-modal {
    padding: 14px;
  }

  .foundation-v15-start-check-option strong {
    font-size: 0.78rem;
  }

  .foundation-v15-start-check-option small {
    font-size: 0.66rem;
  }

  .foundation-v15-start-check-actions {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: 7px;
  }
}

@media (max-width: 430px) {
  .app-shell {
    padding: 18px 14px calc(142px + env(safe-area-inset-bottom, 0px));
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-actions {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }

  h1 {
    font-size: clamp(2.55rem, 13vw, 4.1rem);
    line-height: 0.96;
  }

  .screen-head {
    margin-bottom: 20px;
  }

  .screen-head h1 {
    max-width: 10ch;
  }

  .foundation-hold-timer-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .foundation-hold-timer-grid.paired {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-card,
  .level-panel,
  .skill-detail-panel,
  .result-card {
    border-radius: 26px;
    padding: 22px;
  }

  .minimal-skill-card {
    grid-template-columns: 78px minmax(0, 1fr) 48px;
    gap: 12px;
    min-height: 102px;
    padding: 14px;
  }

  .skill-cover-art {
    width: 74px;
    height: 74px;
    border-radius: 20px;
  }

  .skill-progress-ring {
    width: 48px;
    height: 48px;
  }

  .hero-status {
    margin-bottom: 40px;
  }

  .path-map {
    --roadmap-node-size: 56px;
    --roadmap-label-width: 104px;
    --roadmap-label-nudge: 10px;
    min-height: var(--map-height);
  }

  .map-node {
    width: var(--roadmap-label-width);
  }

  .map-label {
    width: var(--roadmap-label-width);
    padding: 0 1px;
  }

  .overview-progress-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .overview-progress-card p {
    max-width: none;
    text-align: left;
  }

  .workout-summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .target-head {
    align-items: flex-start;
  }

  .target-input-grid,
  .confirmation-grid,
  .skill-actions {
    grid-template-columns: 1fr;
  }

  .level-meta-grid,
  .skill-detail-grid {
    gap: 8px;
  }

  .skill-progress-card {
    align-items: flex-start;
  }

  .progress-grid {
    grid-template-columns: 1fr;
  }

  .progress-card:first-child,
  .progress-card.wide {
    grid-column: auto;
  }

  .bottom-nav {
    width: min(calc(100% - 20px), 492px);
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 2px;
    padding: 5px;
  }

  .nav-item {
    min-height: 40px;
    padding: 0 4px;
    font-size: 0.68rem;
  }

  .exercise-row {
    display: grid;
  }

  .exercise-details {
    justify-items: start;
  }

  .exercise-details em,
  .exercise-details span {
    text-align: left;
  }

  .checkpoint-logic {
    display: grid;
  }

  .checkpoint-logic span {
    text-align: left;
  }
}

@media (max-width: 520px) and (max-height: 860px) {
  .app-shell.training-focus .workout-flow-screen.active .workout-action-stack > .btn.quiet:not([data-skip-rest]):not([data-skip-skill-rest]):not([data-skip-cooldown]):not([data-mu-v1-mobile-action]) {
    display: none;
  }
}

@media (max-width: 520px) and (max-height: 780px) {
  .workout-flow-screen .training-step-context {
    display: none;
  }

  .workout-flow-screen .screen-head {
    margin-bottom: 6px;
  }

  .workout-step-panel {
    gap: 8px;
    padding: 12px;
  }

  .flow-step-media-shell:not(.foundation-cooldown-media-shell),
  .flow-step-media-placeholder {
    max-width: min(100%, 196px);
  }

  .workout-target-standard {
    padding: 10px 12px;
  }

  .workout-target-standard strong {
    font-size: clamp(1.5rem, 8vw, 1.85rem);
  }
}
