:root {
  --ink: #101b18;
  --muted: #5b6964;
  --line: #d5e0db;
  --surface: #f3f7f5;
  --surface-strong: #ffffff;
  --green: #16805d;
  --green-dark: #0f513d;
  --aqua: #117a88;
  --court: #087758;
  --court-dark: #061f19;
  --clay: #ef6b2d;
  --sky: #1677b8;
  --lime: #d9f85f;
  --energy: #ffcf3d;
  --gold: #b36c10;
  --blue: #2f5397;
  --red: #b0392e;
  --violet: #6540a2;
  --focus: rgba(13, 111, 85, 0.24);
  --shadow: 0 26px 72px rgba(12, 28, 24, 0.16);
  --shadow-soft: 0 10px 28px rgba(19, 32, 29, 0.08);
  --shadow-lift: 0 18px 42px rgba(19, 32, 29, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

html {
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f7fbf8 0%, #eef7f2 42%, #f7f4ea 100%),
    linear-gradient(90deg, rgba(8, 119, 88, 0.16), rgba(239, 107, 45, 0.12) 48%, rgba(22, 119, 184, 0.14));
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
label,
input,
select,
textarea,
h1,
h2,
h3,
p,
li,
span,
strong,
small {
  overflow-wrap: anywhere;
}

input,
textarea,
select,
label,
.account-panel,
.prompt-form,
.sport-search,
.support-email,
.terms-acknowledgment,
.terms-note {
  -webkit-user-select: text;
  user-select: text;
}

img,
.training-preview,
.training-frame,
.content-watermark,
.lesson-card,
.lesson-detail,
.lesson-detail .support-panel,
.step-card {
  -webkit-user-drag: none;
  user-select: none;
}

button {
  cursor: pointer;
}

button,
a,
select,
input,
textarea {
  -webkit-tap-highlight-color: rgba(22, 128, 93, 0.16);
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 40px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(6, 31, 25, 0.96), rgba(8, 44, 35, 0.94) 56%, rgba(16, 58, 67, 0.94));
  box-shadow: 0 16px 40px rgba(6, 20, 16, 0.18);
  backdrop-filter: blur(18px);
}

.topbar::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 4px;
  background: linear-gradient(90deg, var(--lime), var(--clay), var(--sky));
  content: "";
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #10231f;
  background:
    linear-gradient(145deg, var(--lime), var(--clay) 52%, var(--sky));
  box-shadow: 0 10px 24px rgba(217, 248, 95, 0.2);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  line-height: 1.1;
}

.brand small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.72);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.primary-nav a {
  min-height: 32px;
  border-radius: 7px;
  padding: 7px 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.primary-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.primary-nav a.is-active {
  color: #10231f;
  background: var(--lime);
  box-shadow: 0 10px 20px rgba(217, 248, 95, 0.2);
}

.primary-nav a:focus-visible,
.solid-button:focus-visible,
.ghost-button:focus-visible,
.small-button:focus-visible,
.sport-filter:focus-visible,
.level-filter:focus-visible,
.prompt-sport-search:focus-visible,
.voice-button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.top-actions,
.form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.solid-button,
.ghost-button {
  min-height: 42px;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.solid-button:active,
.ghost-button:active,
.small-button:active,
.sport-filter:active,
.level-filter:active,
.prompt-sport-search:active {
  transform: translateY(0);
}

.solid-button {
  border: 1px solid #0d4b3a;
  color: #fff;
  background: linear-gradient(145deg, #0e5a44, #07905f 55%, #0d6f55);
  box-shadow: 0 14px 28px rgba(8, 119, 88, 0.24);
}

.solid-button:hover {
  background: linear-gradient(145deg, #084735, #078d5e);
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(8, 119, 88, 0.3);
}

.ghost-button {
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface-strong);
}

.topbar .ghost-button {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.topbar .solid-button {
  border-color: rgba(217, 248, 95, 0.55);
  color: #10231f;
  background: linear-gradient(145deg, var(--lime), var(--energy));
  box-shadow: 0 14px 30px rgba(255, 207, 61, 0.2);
}

.topbar .ghost-button:hover {
  border-color: rgba(217, 248, 95, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.topbar .solid-button:hover {
  color: #10231f;
  background: linear-gradient(145deg, #eefb89, #ffc12f);
}

.ghost-button:hover {
  border-color: #b8c8c0;
  transform: translateY(-1px);
  background: #f7fbf9;
}

.workspace {
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 34px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: min(1320px, 100%);
  margin: 0 auto;
  border-top: 1px solid rgba(190, 208, 200, 0.82);
  padding: 16px clamp(16px, 4vw, 40px) 28px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.site-footer div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 850;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--court);
  text-decoration: underline;
}

.mobile-tabbar {
  display: none;
}

.app-view {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.app-view[hidden] {
  display: none;
}

.home-view {
  align-content: start;
}

.browse-view {
  grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
  align-items: start;
}

.browse-sidebar {
  position: sticky;
  top: 96px;
  min-width: 0;
}

.browse-sidebar .compact-panel {
  min-width: 0;
  max-height: calc(100vh - 120px);
  overflow: auto;
}

.browse-content {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.profile-view {
  align-content: start;
}

.more-view {
  max-width: 920px;
  margin-inline: auto;
  align-items: start;
}

.panel,
.generator-panel {
  border: 1px solid rgba(206, 220, 213, 0.94);
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}

.compact-panel,
.safety-panel,
.beta-panel,
.app-access-panel,
.sport-survey-panel {
  padding: 14px;
}

.section-label,
.eyebrow {
  margin: 0 0 10px;
  color: var(--green-dark);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sport-nav {
  display: grid;
  gap: 8px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

.sport-search-label {
  display: block;
  margin-bottom: 6px;
}

.sport-search {
  margin-bottom: 12px;
}

.sport-filter {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 70px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px;
  color: var(--ink);
  background: linear-gradient(145deg, #ffffff, #f3f7f5);
  text-align: left;
  box-shadow: 0 1px 0 rgba(19, 32, 29, 0.03);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sport-filter:hover {
  transform: translateY(-1px);
  background: var(--sport-tint);
  box-shadow: 0 8px 18px rgba(19, 32, 29, 0.06);
}

.sport-filter-image {
  width: 58px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 8px 16px rgba(19, 32, 29, 0.14);
}

.sport-filter-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sport-filter strong {
  display: block;
  font-size: 0.95rem;
}

.sport-filter span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.sport-filter.is-active {
  border-color: var(--sport-deep);
  background: var(--sport-tint);
  box-shadow: 0 10px 22px rgba(19, 32, 29, 0.1);
}

.sport-nav-empty {
  border: 1px dashed #b7c8c0;
  border-radius: 8px;
  padding: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 750;
}

.safety-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.safety-disclaimer {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.42;
}

.safety-disclaimer.small {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
}

.safety-list li {
  position: relative;
  padding-left: 18px;
}

.safety-list li::before {
  position: absolute;
  left: 0;
  top: 0.54em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.sport-survey-form {
  display: grid;
  gap: 9px;
}

.app-access-panel {
  display: grid;
  gap: 9px;
}

.app-access-status,
.sport-survey-status {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.4;
}

.app-access-status[data-state="accepted"],
.app-access-status[data-state="ready"],
.sport-survey-status[data-state="accepted"] {
  color: var(--green-dark);
}

.app-access-status[data-state="rejected"],
.sport-survey-status[data-state="rejected"] {
  color: #79271f;
}

.generator-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 0.86fr) minmax(210px, 0.34fr);
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
  overflow: visible;
  padding: clamp(20px, 3vw, 34px);
  min-height: auto;
  background:
    linear-gradient(90deg, rgba(3, 12, 10, 0.9), rgba(5, 31, 24, 0.58) 42%, rgba(6, 24, 31, 0.24)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(8, 18, 15, 0.46)),
    url("assets/hero/sportcues-main-hero.webp") center / cover no-repeat;
  box-shadow: 0 30px 90px rgba(6, 20, 16, 0.24);
}

.generator-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 20, 16, 0.02), rgba(6, 20, 16, 0.66)),
    linear-gradient(120deg, rgba(8, 119, 88, 0.32), rgba(239, 107, 45, 0.2) 46%, rgba(22, 119, 184, 0.2));
  content: "";
  pointer-events: none;
}

.generator-panel::after {
  display: none;
}

.home-sports-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(210px, 0.3fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  border: 1px solid rgba(198, 216, 207, 0.9);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 22px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 249, 243, 0.82)),
    linear-gradient(90deg, rgba(8, 119, 88, 0.12), rgba(239, 107, 45, 0.1) 52%, rgba(22, 119, 184, 0.08));
  box-shadow: 0 16px 38px rgba(12, 28, 24, 0.1);
}

.home-sports-panel::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--court), var(--clay), var(--sky));
  content: "";
}

.home-sports-panel h2 {
  margin: 0;
  font-size: clamp(1.2rem, 1.7vw, 1.6rem);
}

.home-sports-panel p:not(.eyebrow) {
  margin: 9px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-sport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 12px;
  min-width: 0;
}

.home-sport-card {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 238px;
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: #fff;
  background: var(--sport-deep);
  text-align: left;
  box-shadow: 0 18px 38px rgba(12, 28, 24, 0.18);
  isolation: isolate;
  transition: transform 170ms ease, box-shadow 170ms ease;
}

.home-sport-card:hover {
  box-shadow: 0 26px 52px rgba(12, 28, 24, 0.22);
  transform: translateY(-3px);
}

.home-sport-card img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.18) contrast(1.06);
  transform: scale(1.02);
  transition: transform 220ms ease;
}

.home-sport-card:hover img {
  transform: scale(1.06);
}

.home-sport-card::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(16, 27, 24, 0.0), rgba(16, 27, 24, 0.78)),
    linear-gradient(120deg, color-mix(in srgb, var(--sport-deep) 78%, transparent), rgba(16, 27, 24, 0.02) 62%);
  content: "";
}

.home-sport-card::before {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 1;
  height: 4px;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--lime), var(--sport-accent), var(--clay));
  content: "";
}

.home-sport-card-copy {
  display: grid;
  align-self: end;
  gap: 6px;
  padding: 18px 16px 28px;
}

.home-sport-card-copy strong {
  font-size: 1.2rem;
  line-height: 1.15;
}

.home-sport-card-copy span {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
}

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

.beta-headline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.beta-headline strong {
  font-size: 1.7rem;
  line-height: 1;
}

.beta-headline span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.beta-limit-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.beta-limit-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  border-top: 1px solid #e4ece8;
  padding-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.beta-limit-list strong {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.generator-card,
.prompt-result {
  position: relative;
  z-index: 1;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 680px;
  font-size: clamp(2.25rem, 3.35vw, 3.9rem);
  line-height: 1.02;
}

h2 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.1;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 620px;
}

.hero-proof div {
  min-height: 74px;
  border: 1px solid rgba(197, 215, 207, 0.88);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.hero-proof strong,
.hero-proof span {
  display: block;
}

.hero-proof strong {
  color: var(--green-dark);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  line-height: 1;
}

.hero-proof span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
}

.generator-card {
  align-self: stretch;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: clamp(16px, 2.2vw, 24px);
  background:
    linear-gradient(145deg, rgba(5, 25, 20, 0.92), rgba(10, 52, 41, 0.82)),
    linear-gradient(90deg, rgba(217, 248, 95, 0.12), rgba(239, 107, 45, 0.1));
  box-shadow: 0 28px 60px rgba(2, 12, 10, 0.34);
  backdrop-filter: blur(16px);
}

.prompt-form {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.prompt-hero-copy {
  display: grid;
  gap: 10px;
}

.prompt-hero-copy .hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.04rem;
}

.prompt-hero-copy .eyebrow {
  color: var(--lime);
}

.prompt-hero-copy h1 {
  color: #fff;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.26);
}

label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.generator-card label,
.generator-card .voice-status {
  color: rgba(255, 255, 255, 0.78);
}

.prompt-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.voice-status {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.voice-status[data-state="ready"] {
  color: var(--green-dark);
}

.voice-status[data-state="listening"] {
  color: var(--gold);
}

.voice-status[data-state="notice"] {
  color: var(--muted);
}

.prompt-input-shell {
  position: relative;
  display: grid;
}

select,
textarea,
input[type="search"],
input[type="text"],
input[type="email"] {
  width: 100%;
  border: 1px solid #c4d5cd;
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: inset 0 1px 2px rgba(19, 32, 29, 0.04);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

select,
input[type="search"],
input[type="text"],
input[type="email"] {
  min-height: 46px;
  padding: 0 12px;
}

textarea {
  min-height: 156px;
  resize: vertical;
  padding: 18px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.generator-card textarea {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 249, 0.96));
  box-shadow: 0 14px 30px rgba(2, 12, 10, 0.14);
}

.prompt-input-shell.has-voice textarea {
  padding-right: 104px;
}

.voice-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 82px;
  min-height: 44px;
  border: 1px solid rgba(255, 207, 61, 0.82);
  border-radius: 8px;
  color: #10231f;
  background:
    linear-gradient(145deg, var(--lime), var(--energy));
  box-shadow: 0 10px 22px rgba(255, 207, 61, 0.24);
  font-size: 0.84rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sport-picker-shell {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.prompt-sport-search {
  min-height: 48px;
  border-color: rgba(255, 255, 255, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 252, 249, 0.96));
  box-shadow: 0 14px 30px rgba(2, 12, 10, 0.14);
  font-weight: 850;
}

.generator-card .solid-button {
  border-color: rgba(217, 248, 95, 0.72);
  color: #10231f;
  background: linear-gradient(145deg, var(--lime), var(--energy));
  box-shadow: 0 16px 34px rgba(255, 207, 61, 0.28);
}

.generator-card .ghost-button {
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.sport-picker-label {
  margin-top: 2px;
}

.sport-select-label,
#sportSelect {
  display: none;
}

.voice-button:hover:not(:disabled) {
  border-color: var(--green);
  background: #e1f3ea;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(18, 86, 64, 0.12);
}

.voice-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

select:focus,
textarea:focus,
input[type="search"]:focus,
input[type="text"]:focus,
input[type="email"]:focus {
  border-color: var(--green);
  background: #fff;
  box-shadow: 0 0 0 4px var(--focus), inset 0 1px 2px rgba(19, 32, 29, 0.03);
}

.prompt-result {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 52px;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 800;
  line-height: 1.4;
  box-shadow: 0 10px 22px rgba(19, 32, 29, 0.06);
}

.prompt-result[hidden] {
  display: none;
}

.prompt-result.with-actions {
  display: grid;
  align-items: start;
  gap: 12px;
}

.prompt-answer {
  display: grid;
  gap: 4px;
  max-width: 860px;
  color: #24433b;
  font-weight: 700;
  line-height: 1.48;
}

.prompt-answer strong {
  color: var(--green-dark);
}

.prompt-result-actions {
  display: inline-flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.prompt-result.with-actions .small-button {
  flex: 0 0 auto;
  border-color: #b9d9c8;
  color: var(--green-dark);
  background: #fff;
}

.prompt-result.with-actions .small-button.primary {
  border-color: var(--green-dark);
  color: #fff;
  background: var(--green-dark);
}

.prompt-result.neutral {
  border: 1px solid rgba(217, 248, 95, 0.28);
  color: rgba(255, 255, 255, 0.84);
  background:
    linear-gradient(145deg, rgba(6, 31, 25, 0.9), rgba(9, 54, 43, 0.82));
  box-shadow: 0 18px 40px rgba(2, 12, 10, 0.22);
}

.prompt-result.accepted {
  border: 1px solid #b9d9c8;
  color: var(--green-dark);
  background:
    linear-gradient(145deg, #ecf9f1, #f8fffb);
}

.prompt-result.rejected {
  border: 1px solid #ecc4bf;
  color: #79271f;
  background:
    linear-gradient(145deg, #fff5f3, #fff);
}

.prompt-result.clarifier {
  display: grid;
  gap: 10px;
}

.prompt-result.clarifier strong {
  color: var(--ink);
}

.clarifier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 620px) {
  .prompt-result.with-actions {
    align-items: flex-start;
    flex-direction: column;
  }
}

.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
  border: 1px solid rgba(216, 227, 222, 0.88);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 249, 245, 0.84));
  box-shadow: 0 16px 34px rgba(12, 28, 24, 0.08);
}

.account-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: 16px;
  align-items: stretch;
  min-width: 0;
  border: 1px solid rgba(216, 227, 222, 0.9);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(244, 250, 247, 0.86));
  box-shadow: var(--shadow-soft);
}

.account-panel > :first-child {
  grid-column: 1 / -1;
}

.profile-intro {
  max-width: 780px;
}

.profile-intro p:not(.eyebrow) {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-card,
.history-card,
.feedback-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid rgba(206, 220, 213, 0.9);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, #ffffff, #fbfdfc);
  box-shadow: 0 8px 22px rgba(19, 32, 29, 0.05);
}

.account-form {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.feedback-form {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.feedback-form textarea {
  min-height: 112px;
  resize: vertical;
}

.feedback-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.feedback-status[data-state="accepted"] {
  color: #176a45;
  font-weight: 800;
}

.feedback-status[data-state="rejected"] {
  color: #9b2f24;
  font-weight: 800;
}

.feedback-page-panel,
.sport-survey-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(206, 220, 213, 0.9);
  border-radius: 8px;
  padding: clamp(16px, 2vw, 22px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(242, 250, 246, 0.86));
  box-shadow: 0 12px 28px rgba(19, 32, 29, 0.07);
}

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

.feedback-page-heading p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.feedback-page-heading.compact h2 {
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
}

.feedback-footnote {
  margin: 0;
  border-top: 1px solid rgba(206, 220, 213, 0.88);
  padding: 12px 2px 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.auth-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(104px, 100%), 1fr));
  gap: 8px;
}

.auth-method {
  min-height: 40px;
  min-width: 0;
  border: 1px solid #ccd9d3;
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.auth-method:hover {
  border-color: #8faf9d;
  box-shadow: 0 8px 18px rgba(19, 32, 29, 0.08);
  transform: translateY(-1px);
}

.auth-method.is-active {
  border-color: var(--green-dark);
  color: #fff;
  background: var(--green-dark);
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.interest-picker {
  display: grid;
  gap: 9px;
  margin: 2px 0 4px;
  border: 0;
  padding: 0;
}

.interest-picker legend {
  padding: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.interest-helper {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 8px;
  max-height: 228px;
  overflow: auto;
  padding-right: 2px;
}

.interest-option {
  display: flex;
  min-height: 36px;
  min-width: 0;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(206, 220, 213, 0.9);
  border-radius: 8px;
  padding: 7px 8px;
  color: var(--muted);
  background: #f8fbfa;
  font-size: 0.84rem;
  font-weight: 800;
}

.interest-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--green);
}

.interest-option:has(input:disabled) {
  opacity: 0.48;
}

.account-form.is-hidden {
  display: none;
}

.account-summary {
  display: grid;
  gap: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.account-summary strong {
  color: var(--ink);
}

.interest-summary {
  display: grid;
  gap: 7px;
}

.interest-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.interest-chips span {
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--green-dark);
  background: #e7f3ed;
  font-size: 0.78rem;
  font-weight: 900;
}

.terms-acknowledgment {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid #cbdad3;
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  background: #f7fbf8;
  font-size: 0.88rem;
  font-weight: 750;
  line-height: 1.42;
}

.terms-acknowledgment input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green);
}

.terms-note {
  margin: -2px 0 2px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.account-summary-actions,
.history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.history-card-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.prompt-history {
  display: grid;
  gap: 10px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

.history-item {
  display: grid;
  gap: 8px;
  border: 1px solid #dce7e2;
  border-radius: 8px;
  padding: 11px;
  background: #fff;
}

.history-item strong {
  line-height: 1.25;
}

.history-item span,
.history-item small {
  color: var(--muted);
  line-height: 1.35;
}

.history-empty {
  border: 1px dashed #b7c8c0;
  border-radius: 8px;
  padding: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
}

.toolbar-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.level-control {
  display: inline-flex;
  min-height: 46px;
  border: 1px solid #cbdad3;
  border-radius: 8px;
  padding: 3px;
  background: #f4f8f6;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.level-filter {
  border: 0;
  border-radius: 6px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}

.level-filter:hover,
.level-filter.is-active {
  color: var(--green-dark);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(19, 32, 29, 0.07);
}

.progression-panel {
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 2fr);
  gap: 16px;
  border: 1px solid color-mix(in srgb, var(--sport-accent, var(--green)) 24%, #d9e7e1);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--sport-tint, #eef7f2) 42%, #ffffff));
  box-shadow: 0 8px 20px rgba(19, 32, 29, 0.045);
}

.progression-panel h3 {
  margin: 8px 0 0;
  font-size: 1rem;
}

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

.progression-columns article {
  display: grid;
  gap: 8px;
  border-left: 3px solid var(--sport-accent, var(--green));
  padding-left: 12px;
}

.progression-columns strong {
  color: var(--ink);
  font-size: 0.9rem;
}

.progression-columns ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.42;
  list-style: none;
}

.question-bank-panel {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--sport-accent, var(--green)) 22%, #d9e7e1);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--sport-tint, #eef7f2) 34%, #ffffff));
  box-shadow: 0 8px 20px rgba(19, 32, 29, 0.045);
}

.question-bank-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.question-bank-heading h3 {
  margin: 8px 0 0;
  font-size: 1rem;
}

.question-bank-heading > span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: right;
}

.question-bank-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 10px;
}

.question-card {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid #d7e3de;
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.question-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.25;
}

.question-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.42;
}

.question-card .small-button {
  justify-self: start;
  margin-top: 2px;
}

.search-control {
  width: min(360px, 100%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 96px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, #ffffff, #f7fbf9);
  box-shadow: var(--shadow-soft);
}

.stat-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green), var(--aqua));
  content: "";
}

.stat-card strong {
  display: block;
  font-size: 1.7rem;
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.stat-card small {
  display: block;
  margin-top: 12px;
  color: #7a8883;
  font-weight: 700;
}

.sports-grid {
  display: grid;
  gap: 18px;
}

.sport-section {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: clamp(16px, 2vw, 22px);
  border: 1px solid rgba(216, 227, 222, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 250, 0.82)),
    linear-gradient(90deg, color-mix(in srgb, var(--sport-tint) 70%, transparent), transparent);
  box-shadow: 0 16px 38px rgba(12, 28, 24, 0.08);
}

.sport-section::before {
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--sport-accent), var(--lime));
  content: "";
}

.sport-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  align-items: stretch;
  gap: 16px;
}

.sport-title-group {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr);
  align-items: flex-start;
  gap: 14px;
}

.sport-header-image {
  width: 100%;
  height: 178px;
  border-radius: 8px;
  object-fit: cover;
  filter: saturate(1.16) contrast(1.04);
  box-shadow: 0 18px 38px rgba(19, 32, 29, 0.17);
}

.sport-header p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.sport-count {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--sport-deep);
  background: var(--sport-tint);
  font-size: 0.82rem;
  font-weight: 800;
}

.sport-feature {
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(216, 227, 222, 0.72);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), var(--sport-tint));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.sport-feature strong {
  color: var(--sport-deep);
  line-height: 1.2;
}

.sport-feature span:last-child {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  gap: 14px;
}

.sport-support-section {
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.lesson-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 13px;
  min-width: 0;
  min-height: 316px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc),
    linear-gradient(90deg, color-mix(in srgb, var(--sport-tint) 38%, transparent), transparent);
  box-shadow: 0 12px 28px rgba(23, 33, 31, 0.07);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lesson-card::before {
  display: none;
}

.lesson-card:hover {
  border-color: color-mix(in srgb, var(--sport-accent) 40%, #b7c9bf);
  box-shadow: 0 14px 32px rgba(23, 33, 31, 0.1);
  transform: translateY(-2px);
}

.lesson-card[data-highlighted="true"] {
  outline: 3px solid rgba(31, 122, 92, 0.28);
  border-color: var(--green);
}

.lesson-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.category-pill,
.level-pill,
.locked-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 0.76rem;
  font-weight: 800;
  text-align: center;
}

.category-pill {
  color: var(--sport-deep, var(--green-dark));
  background: var(--sport-tint, #e7f4ed);
}

.level-pill {
  color: #70450c;
  background: #fff2d8;
}

.locked-pill {
  color: #596560;
  background: #edf2ef;
}

.lesson-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.training-preview {
  position: relative;
  min-height: 158px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(16, 27, 24, 0.02), rgba(16, 27, 24, 0.36)),
    var(--sport-image) center / cover;
  filter: saturate(1.12) contrast(1.04);
  border: 1px solid rgba(206, 220, 213, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.training-preview::before,
.training-frame::before {
  position: absolute;
  inset: 12px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  content: "";
}

.training-preview::after,
.training-frame::after {
  position: absolute;
  left: var(--ball-x, 64%);
  top: var(--ball-y, 35%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #f0c144;
  box-shadow: 0 0 0 4px rgba(240, 193, 68, 0.2);
  content: "";
}

.training-preview[data-sport="basketball"]::after,
.training-frame[data-sport="basketball"]::after {
  background: #c46d22;
  box-shadow: 0 0 0 4px rgba(196, 109, 34, 0.18);
}

.training-preview[data-sport="soccer"]::after,
.training-frame[data-sport="soccer"]::after {
  background: #f6f8f7;
  box-shadow: inset 0 0 0 3px #25352f, 0 0 0 4px rgba(51, 79, 143, 0.12);
}

.training-preview[data-sport="baseball"]::after,
.training-frame[data-sport="baseball"]::after {
  background: #f8faf9;
  box-shadow: inset 0 0 0 2px #b0392e, 0 0 0 4px rgba(176, 57, 46, 0.12);
}

.training-preview[data-sport="golf"]::after,
.training-frame[data-sport="golf"]::after {
  width: 10px;
  height: 10px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px #b8c8c0, 0 0 0 4px rgba(255, 255, 255, 0.45);
}

.preview-player,
.frame-player {
  position: absolute;
  left: var(--player-x, 28%);
  top: var(--player-y, 44%);
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--sport-deep, var(--green-dark));
  box-shadow: 0 18px 0 4px color-mix(in srgb, var(--sport-deep, #125640) 24%, transparent);
}

.motion-line {
  position: absolute;
  left: calc(var(--player-x, 28%) + 12px);
  top: calc(var(--player-y, 44%) + 7px);
  width: 46px;
  height: 2px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--sport-deep, #125640) 38%, transparent);
  transform: rotate(-16deg);
}

.content-watermark {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 2;
  padding: 3px 6px;
  border-radius: 4px;
  color: rgba(18, 64, 48, 0.68);
  background: rgba(255, 255, 255, 0.62);
  font-size: 0.64rem;
  font-weight: 900;
  pointer-events: none;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.small-button {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff, #f8fbfa);
  box-shadow: 0 1px 0 rgba(19, 32, 29, 0.04);
  font-weight: 800;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.small-button.primary {
  border-color: var(--sport-deep, var(--green-dark));
  color: #fff;
  background:
    linear-gradient(145deg, var(--sport-deep, var(--green-dark)), var(--sport-accent, var(--green)));
  box-shadow: 0 10px 18px rgba(19, 32, 29, 0.12);
}

.small-button:not(:disabled):hover {
  transform: translateY(-1px);
  border-color: var(--sport-accent, var(--green));
  box-shadow: 0 10px 20px rgba(19, 32, 29, 0.1);
}

.small-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
}

.drawer.is-open {
  display: block;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(19, 32, 29, 0.54);
  backdrop-filter: blur(6px);
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(820px, 100%);
  overflow-y: auto;
  padding: 28px;
  background:
    linear-gradient(145deg, #ffffff, #f3f8f6 58%, #eef5f8);
  box-shadow: var(--shadow);
}

.drawer-close {
  position: sticky;
  top: 0;
  float: right;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff, #f7fbf9);
  box-shadow: 0 8px 20px rgba(19, 32, 29, 0.08);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.drawer-close:hover {
  border-color: #b8c8c0;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(19, 32, 29, 0.12);
}

.lesson-detail {
  display: grid;
  gap: 20px;
  padding-top: 26px;
}

.lesson-detail header,
.lesson-hero {
  display: grid;
  gap: 10px;
}

.lesson-hero {
  border: 1px solid rgba(216, 227, 222, 0.92);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), var(--sport-tint));
  box-shadow: var(--shadow-soft);
}

.lesson-detail p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

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

.step-card {
  display: grid;
  grid-template-columns: minmax(190px, 250px) 1fr;
  gap: 16px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, #ffffff, #fbfdfc);
  box-shadow: 0 8px 22px rgba(19, 32, 29, 0.06);
}

.training-frame {
  position: relative;
  min-height: 164px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(206, 220, 213, 0.8);
  background:
    linear-gradient(145deg, var(--sport-tint), rgba(255, 255, 255, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.training-frame.has-image::before,
.training-frame.has-image::after {
  display: none;
}

.step-image {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 164px;
  object-fit: cover;
  user-select: none;
  -webkit-user-drag: none;
}

.step-copy {
  display: grid;
  align-content: start;
  gap: 10px;
}

.step-sections {
  display: grid;
  gap: 8px;
}

.step-intro {
  margin: 0;
  border-left: 3px solid var(--sport-accent, var(--green));
  padding-left: 10px;
  color: var(--ink);
  font-weight: 750;
}

.step-cue {
  display: grid;
  grid-template-columns: minmax(104px, 0.34fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid #dce7e2;
  border-radius: 8px;
  padding: 9px 10px;
  background: rgba(255, 255, 255, 0.72);
}

.step-cue strong {
  color: var(--sport-deep, var(--green-dark));
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1.25;
}

.step-cue span {
  color: #41534c;
  font-size: 0.9rem;
  line-height: 1.48;
}

.step-cue[data-cue="how"] {
  border-color: color-mix(in srgb, var(--sport-accent, var(--green)) 38%, #dce7e2);
  background: color-mix(in srgb, var(--sport-tint, #eef7f2) 46%, #ffffff);
}

.step-cue[data-cue="self-check"],
.step-cue[data-cue="equipment-cue"],
.step-cue[data-cue="progression"] {
  background: #f8fbfa;
}

.step-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 4px;
}

.listen-button {
  width: fit-content;
}

.wrong-technique {
  display: grid;
  gap: 6px;
  border: 1px solid #e1cfc0;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff8f0;
}

.wrong-technique strong {
  color: #8a4a24;
  font-size: 0.9rem;
}

.wrong-technique p {
  color: #5d5149;
  font-size: 0.88rem;
  line-height: 1.45;
}

.wrong-technique small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.injury-prevention {
  display: grid;
  gap: 6px;
  border: 1px solid #cddfd8;
  border-radius: 8px;
  padding: 10px 12px;
  background: #f3fbf7;
}

.injury-prevention strong {
  color: #27614d;
  font-size: 0.9rem;
}

.injury-prevention p {
  color: #3f5f53;
  font-size: 0.88rem;
  line-height: 1.45;
}

.injury-prevention p span {
  color: var(--ink);
  font-weight: 800;
}

.injury-prevention small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.step-number {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--sport-deep, var(--green-dark));
  font-weight: 900;
}

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

.support-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, #ffffff, #fbfdfc);
  box-shadow: 0 8px 22px rgba(19, 32, 29, 0.05);
}

.support-panel h3 {
  margin: 8px 0 10px;
  font-size: 1.05rem;
}

.support-panel ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-panel li {
  display: grid;
  gap: 3px;
  padding-left: 14px;
  color: var(--muted);
  line-height: 1.45;
  border-left: 3px solid var(--sport-accent, var(--green));
}

.support-panel li strong {
  color: var(--ink);
}

.question-answer-panel {
  grid-column: 1 / -1;
}

.question-answer-panel li span {
  color: var(--muted);
}

.safety-panel {
  background:
    linear-gradient(145deg, #ffffff, #f4fbf7);
}

.affiliate-panel {
  display: grid;
  gap: 12px;
  border: 1px solid color-mix(in srgb, var(--sport-accent, var(--green)) 32%, #d9e7e1);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, #ffffff, color-mix(in srgb, var(--sport-tint, #eef7f2) 58%, #ffffff));
  box-shadow: 0 8px 22px rgba(19, 32, 29, 0.05);
}

.affiliate-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.affiliate-heading h3 {
  margin-top: 8px;
  font-size: 1.05rem;
}

.affiliate-heading small {
  max-width: 260px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.gear-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.gear-card {
  display: grid;
  gap: 6px;
  min-height: 104px;
  border: 1px solid #d7e3de;
  border-radius: 8px;
  padding: 12px;
  color: inherit;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.gear-card:hover {
  border-color: var(--sport-accent, var(--green));
  box-shadow: 0 10px 22px rgba(19, 32, 29, 0.1);
  transform: translateY(-1px);
}

.gear-card span {
  color: var(--ink);
  font-weight: 900;
  line-height: 1.2;
}

.gear-card small {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 650;
  line-height: 1.35;
}

.guardrail-box {
  border: 1px solid #c3d6ce;
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, #f7fcf9, #eef7f2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.guardrail-box strong {
  display: block;
  margin-bottom: 6px;
}

.empty-state {
  border: 1px dashed #b7c8c0;
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.product-section {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(216, 227, 222, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 250, 0.78));
  box-shadow: var(--shadow-soft);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(260px, 0.8fr);
  gap: 18px;
  align-items: end;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.section-heading > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

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

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

.module-card {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(145deg, #ffffff, #fbfdfc);
  box-shadow: 0 8px 22px rgba(19, 32, 29, 0.06);
}

.module-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--aqua), var(--gold));
  content: "";
}

.module-status {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--green-dark);
  background: #e6f3ed;
  font-size: 0.75rem;
  font-weight: 900;
}

.module-card h3 {
  margin: 0;
  font-size: 1.02rem;
}

.module-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.module-card li {
  position: relative;
  padding-left: 15px;
  color: #53615b;
  font-size: 0.88rem;
  font-weight: 700;
}

.module-card li::before {
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

@media (max-width: 1120px) {
  .browse-view {
    grid-template-columns: 1fr 1fr;
  }

  .browse-sidebar {
    position: static;
  }

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

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

  .module-grid,
  .hosting-grid,
  .account-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 76px;
  }

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

  .primary-nav {
    display: none;
  }

  .top-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .workspace {
    padding-inline: 12px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 12px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .mobile-tabbar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 6px;
    background: rgba(6, 31, 25, 0.94);
    box-shadow: 0 16px 40px rgba(6, 20, 16, 0.24);
    backdrop-filter: blur(18px);
  }

  .mobile-tabbar a {
    display: grid;
    min-height: 44px;
    place-items: center;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 900;
    text-decoration: none;
  }

  .mobile-tabbar a.is-active {
    color: #10231f;
    background: var(--lime);
  }

  .compact-panel,
  .app-view,
  .safety-panel,
  .beta-panel,
  .app-access-panel,
  .sport-survey-panel {
    width: 100%;
    min-width: 0;
  }

  .browse-view,
  .more-view,
  .home-sports-panel {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .sport-nav {
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-inline: -4px;
    overflow-x: auto;
    padding: 2px 4px 6px;
    scrollbar-width: thin;
  }

  .sport-filter {
    min-width: 258px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .sport-filter:hover {
    transform: none;
  }

  .generator-panel {
    grid-template-columns: 1fr;
    padding: 16px;
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(10, 18, 15, 0.55), rgba(10, 18, 15, 0.28) 46%, rgba(10, 18, 15, 0.7)),
      url("assets/hero/sportcues-main-hero-mobile.webp") center / cover no-repeat;
  }

  .prompt-hero-copy .hero-copy,
  .sport-select-label,
  #sportSelect {
    display: none;
  }

  .generator-panel::after {
    display: none;
  }

  h1 {
    font-size: 2.15rem;
  }

  textarea {
    min-height: 152px;
  }

  .toolbar,
  .sport-header,
  .sport-title-group,
  .section-heading,
  .home-sports-panel {
    min-width: 0;
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .home-sport-grid,
  .module-grid,
  .hosting-grid,
  .account-panel,
  .lesson-grid,
  .lesson-support-grid,
  .gear-list,
  .progression-panel,
  .progression-columns {
    grid-template-columns: 1fr;
  }

  .question-bank-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .affiliate-heading {
    display: grid;
  }

  .affiliate-heading small {
    max-width: none;
    text-align: left;
  }

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

  .filter-controls,
  .search-control {
    width: 100%;
    min-width: 0;
  }

  .history-card-header {
    align-items: stretch;
    flex-direction: column;
  }

  .level-control {
    width: 100%;
    overflow-x: auto;
  }

  .level-filter {
    flex: 1 0 auto;
  }

  .step-card {
    grid-template-columns: 1fr;
  }

  .step-cue {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .drawer-panel {
    padding: 18px;
  }
}

@media (max-width: 460px) {
  .topbar {
    display: grid;
  }

  .top-actions,
  .form-row {
    width: 100%;
  }

  .top-actions button,
  .form-row button {
    flex: 1;
  }

  .brand {
    width: 100%;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof div {
    min-height: 66px;
    padding: 10px 8px;
  }

  .hero-proof strong {
    font-size: 1.1rem;
  }

  .hero-proof span {
    font-size: 0.72rem;
  }
}
