:root {
  --ink: #101b18;
  --muted: #5b6964;
  --line: #d5e0db;
  --surface: #f3f7f5;
  --surface-strong: #ffffff;
  --green: #16805d;
  --green-dark: #0f513d;
  --aqua: #117a88;
  --gold: #b36c10;
  --blue: #2f5397;
  --red: #b0392e;
  --violet: #6540a2;
  --focus: rgba(22, 128, 93, 0.22);
  --shadow: 0 24px 64px rgba(19, 32, 29, 0.14);
  --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;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(238, 246, 242, 0.98), rgba(246, 249, 253, 0.92) 46%, rgba(255, 250, 241, 0.9)),
    linear-gradient(90deg, rgba(17, 122, 136, 0.1), rgba(179, 108, 16, 0.07));
  background-attachment: fixed;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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(201, 216, 209, 0.78);
  background: rgba(250, 253, 251, 0.88);
  box-shadow: 0 10px 30px rgba(19, 32, 29, 0.07);
  backdrop-filter: blur(18px);
}

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

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, #0f513d, #117a88 58%, #2f5397);
  box-shadow: 0 10px 24px rgba(18, 86, 64, 0.24);
  font-weight: 800;
}

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

.brand small {
  margin-top: 3px;
  color: var(--muted);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(199, 214, 207, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

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

.primary-nav a:hover {
  color: var(--green-dark);
  background: #edf6f1;
}

.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,
.example-chips button:focus-visible,
.prompt-sport-chips button: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;
}

.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,
.example-chips button:active,
.prompt-sport-chips button:active {
  transform: translateY(0);
}

.solid-button {
  border: 1px solid var(--green-dark);
  color: #fff;
  background: linear-gradient(145deg, var(--green-dark), #177957);
  box-shadow: 0 12px 24px rgba(18, 86, 64, 0.2);
}

.solid-button:hover {
  background: linear-gradient(145deg, #0e4735, #146c50);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(18, 86, 64, 0.24);
}

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

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

.workspace {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: min(1320px, 100%);
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 40px) 56px;
}

.sidebar {
  order: 2;
  display: grid;
  grid-template-columns: minmax(280px, 1.2fr) repeat(4, minmax(180px, 0.7fr));
  gap: 12px;
  align-items: stretch;
}

.content {
  order: 1;
}

.generator-panel {
  order: 1;
}

.popular-panel {
  order: 2;
}

.toolbar {
  order: 3;
}

.stats-grid {
  order: 4;
}

.sports-grid {
  order: 5;
}

.account-panel {
  order: 6;
}

.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: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scrollbar-width: thin;
}

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

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

.sport-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: auto;
  min-width: 176px;
  flex: 0 0 auto;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  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-main {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sport-filter-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--sport-deep);
  font-size: 0.72rem;
  font-weight: 900;
}

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

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

.sport-filter.is-active {
  border-color: var(--sport-deep);
  background: var(--sport-tint);
  box-shadow: inset 3px 0 0 var(--sport-deep), 0 8px 18px rgba(19, 32, 29, 0.06);
}

.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;
}

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

.generator-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(170px, 0.26fr);
  gap: clamp(14px, 2vw, 24px);
  overflow: hidden;
  padding: clamp(20px, 3vw, 34px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(240, 248, 244, 0.97) 43%, rgba(237, 244, 253, 0.96));
  box-shadow: var(--shadow);
}

.generator-panel::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(22, 128, 93, 0.08), transparent 28%),
    repeating-linear-gradient(90deg, rgba(47, 83, 151, 0.045) 0 1px, transparent 1px 44px);
  content: "";
  pointer-events: none;
}

.generator-panel::after {
  position: absolute;
  right: clamp(18px, 4vw, 54px);
  bottom: -42px;
  width: min(340px, 34vw);
  height: 168px;
  border: 2px solid rgba(31, 122, 92, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 49%, rgba(31, 122, 92, 0.18) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 47%, rgba(31, 122, 92, 0.15) 47% 53%, transparent 53%);
  transform: rotate(-5deg);
  content: "";
  pointer-events: none;
}

.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-copy,
.generator-card,
.prompt-result {
  position: relative;
  z-index: 1;
}

.generator-copy {
  display: grid;
  align-content: stretch;
  gap: 10px;
}

.generator-copy h2 {
  max-width: 520px;
  font-size: clamp(1.6rem, 2.25vw, 2.35rem);
}

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;
}

.app-status-strip {
  display: grid;
  gap: 10px;
  height: 100%;
}

.app-status-strip div {
  display: grid;
  align-content: center;
  min-height: 0;
  border: 1px solid rgba(197, 215, 207, 0.9);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.app-status-strip strong,
.app-status-strip span {
  display: block;
}

.app-status-strip strong {
  color: var(--green-dark);
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  line-height: 1;
}

.app-status-strip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  line-height: 1.2;
}

.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;
}

.example-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.example-chips button {
  min-height: 34px;
  border: 1px solid #cbdad3;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green-dark);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(19, 32, 29, 0.04);
  font-size: 0.84rem;
  font-weight: 850;
}

.example-chips button:hover {
  border-color: var(--green);
  background: #e8f6ee;
  transform: translateY(-1px);
}

.generator-card {
  align-self: stretch;
  border: 1px solid rgba(216, 227, 222, 0.94);
  border-radius: 8px;
  padding: clamp(16px, 2.2vw, 24px);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 38px rgba(19, 32, 29, 0.12);
  backdrop-filter: blur(10px);
}

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

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

.prompt-hero-copy .hero-copy {
  max-width: 720px;
  font-size: 1rem;
}

.beta-meter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cfe0d8;
  border-radius: 8px;
  padding: 8px 10px;
  background:
    linear-gradient(145deg, #f7fcf9, #edf8f2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.beta-meter span {
  color: var(--green-dark);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.beta-meter strong {
  color: var(--ink);
  font-size: 0.82rem;
  text-align: right;
}

.prompt-hero-copy .hero-copy,
.beta-meter {
  display: none;
}

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

.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="unavailable"] {
  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 104px 18px 18px;
  font-size: 1.05rem;
  line-height: 1.5;
}

.voice-button {
  position: absolute;
  right: 10px;
  bottom: 10px;
  min-width: 82px;
  min-height: 44px;
  border: 1px solid #bfd4cb;
  border-radius: 8px;
  color: var(--green-dark);
  background:
    linear-gradient(145deg, #f2fbf6, #e2f4ea);
  box-shadow: 0 6px 14px rgba(18, 86, 64, 0.08);
  font-size: 0.84rem;
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.prompt-sport-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prompt-sport-chips button {
  min-height: 36px;
  border: 1px solid #cbdad3;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  font-weight: 850;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.prompt-sport-chips button:hover,
.prompt-sport-chips button.is-active {
  border-color: var(--green-dark);
  color: var(--green-dark);
  background: #e8f6ee;
  box-shadow: 0 8px 16px rgba(18, 86, 64, 0.08);
  transform: translateY(-1px);
}

.sport-select-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-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.with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.prompt-result.neutral {
  border: 1px solid #cbdad3;
  color: var(--muted);
  background:
    linear-gradient(145deg, #ffffff, #f4f8f6);
}

.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;
  border: 1px solid rgba(216, 227, 222, 0.88);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-soft);
}

.popular-panel {
  display: grid;
  gap: 16px;
  border: 1px solid rgba(216, 227, 222, 0.9);
  border-radius: 8px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(246, 251, 249, 0.82));
  box-shadow: var(--shadow-soft);
}

.compact-heading {
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.9fr);
}

.popular-grid {
  display: grid;
  gap: 16px;
}

.popular-rail {
  display: grid;
  gap: 10px;
}

.popular-rail-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.popular-rail-heading h3 {
  font-size: 1rem;
}

.popular-rail-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.popular-card-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 12px;
}

.popular-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 168px;
  border: 1px solid rgba(204, 218, 211, 0.94);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, #ffffff, var(--sport-tint));
  box-shadow: 0 8px 22px rgba(19, 32, 29, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.popular-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--sport-deep), var(--sport-accent));
  content: "";
}

.popular-card:hover {
  border-color: color-mix(in srgb, var(--sport-accent) 44%, #b8c9c1);
  box-shadow: 0 14px 30px rgba(19, 32, 29, 0.1);
  transform: translateY(-2px);
}

.popular-card h3 {
  margin-bottom: 7px;
}

.popular-card p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.popular-card .small-button {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: auto;
}

.account-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(240px, 0.72fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
  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-copy {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.account-card,
.history-card {
  display: grid;
  gap: 12px;
  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;
}

.auth-methods {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.auth-method {
  min-height: 40px;
  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(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 228px;
  overflow: auto;
  padding-right: 2px;
}

.interest-option {
  display: flex;
  min-height: 36px;
  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;
}

.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;
}

.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;
}

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

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

.stat-card {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  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 {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(216, 227, 222, 0.9);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(249, 252, 250, 0.76));
  box-shadow: var(--shadow-soft);
}

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

.sport-title-group {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.sport-icon {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(145deg, var(--sport-deep), var(--sport-accent));
  box-shadow: 0 10px 22px rgba(19, 32, 29, 0.14);
  font-weight: 900;
}

.sport-icon.small {
  width: 38px;
  height: 38px;
  font-size: 0.78rem;
}

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

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

.sport-feature {
  display: grid;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(216, 227, 222, 0.86);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), 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(260px, 100%), 1fr));
  gap: 14px;
}

.lesson-card {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 13px;
  min-height: 294px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, #ffffff, #fbfdfc);
  box-shadow: 0 1px 0 rgba(23, 33, 31, 0.04);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.lesson-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--sport-deep), var(--sport-accent));
  content: "";
}

.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;
}

.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;
  white-space: nowrap;
}

.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: 118px;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(145deg, var(--sport-tint), rgba(255, 255, 255, 0.92));
  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;
}

.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: center;
  gap: 8px;
}

.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);
}

.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) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .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) {
  .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;
  }

  .sidebar {
    display: contents;
  }

  .compact-panel {
    order: 1;
  }

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

  .safety-panel {
    order: 5;
  }

  .beta-panel {
    order: 6;
  }

  .app-access-panel {
    order: 3;
  }

  .sport-survey-panel {
    order: 4;
  }

  .content {
    order: 1;
  }

  .compact-panel {
    order: 2;
  }

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

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

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

  .generator-panel {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .generator-copy {
    display: none;
  }

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

  .example-chips {
    flex-wrap: nowrap;
    margin-inline: -2px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
  }

  .prompt-sport-chips {
    flex-wrap: nowrap;
    margin-inline: -2px;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scrollbar-width: thin;
  }

  .example-chips button {
    flex: 0 0 auto;
  }

  .prompt-sport-chips button {
    flex: 0 0 auto;
  }

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

  h1 {
    font-size: 2.15rem;
  }

  textarea {
    min-height: 152px;
  }

  .toolbar,
  .sport-header,
  .section-heading,
  .compact-heading {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

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

  .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%;
  }

  .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;
  }

  .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;
  }
}
