:root {
  --bg: #f7f1e8;
  --surface: #fff9f1;
  --surface-strong: #fffdf8;
  --ink: #173a33;
  --muted: #64736c;
  --primary: #236a5d;
  --primary-dark: #143f37;
  --secondary: #874c61;
  --accent: #c95c4b;
  --accent-dark: #a84639;
  --blush: #f1d3cd;
  --gold: #d7a467;
  --border: #ded2c3;
  --shadow: 0 24px 70px rgba(52, 41, 30, 0.16);
  --radius: 8px;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --font-script: "Caveat", cursive;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(216, 111, 91, 0.65);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(255, 249, 241, 0.94);
  border-bottom: 1px solid rgba(222, 213, 201, 0.9);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(47, 107, 95, 0.1);
  color: var(--primary-dark);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.mobile-bottom-nav {
  display: none;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, #d86554, var(--accent));
  color: white;
  box-shadow: 0 12px 28px rgba(201, 92, 75, 0.25);
}

.button-primary:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: rgba(255, 249, 241, 0.78);
  color: var(--accent-dark);
  border-color: rgba(201, 92, 75, 0.42);
}

.button-ghost {
  background: transparent;
  color: var(--primary-dark);
  border-color: var(--border);
}

.button-large {
  min-height: 52px;
  padding-inline: 22px;
}

.button-full {
  width: 100%;
}

.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(500px, 62dvh, 610px);
  background: var(--surface);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(255, 249, 241, 0.99) 0%, rgba(255, 249, 241, 0.96) 34%, rgba(255, 249, 241, 0.62) 55%, rgba(255, 249, 241, 0.14) 100%),
    url("/img/hero-studio.jpg") center right / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  z-index: -1;
  background: linear-gradient(0deg, rgba(255, 249, 241, 0.24), rgba(255, 249, 241, 0));
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  min-height: clamp(500px, 62dvh, 610px);
  padding: clamp(34px, 4vw, 58px) clamp(16px, 6vw, 92px);
}

.hero-copy {
  max-width: 690px;
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: var(--font-display);
  line-height: 1.05;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.55rem, 8vw, 5.7rem);
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  margin-bottom: 8px;
  font-size: 1.15rem;
  line-height: 1.2;
}

p {
  color: var(--muted);
}

.hero p {
  max-width: 600px;
  font-size: 1.16rem;
}

.script-kicker {
  margin: -2px 0 8px;
  color: var(--primary);
  font-family: var(--font-script);
  font-size: clamp(2.1rem, 5vw, 3.7rem);
  line-height: 0.9;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 16px;
  color: var(--primary-dark);
  font-size: clamp(3.05rem, 5.35vw, 4.95rem);
  letter-spacing: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-price-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  width: min(100%, 420px);
  margin-left: auto;
  padding: clamp(22px, 4vw, 34px);
  background: rgba(255, 249, 241, 0.92);
  border: 1px solid rgba(222, 210, 195, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  text-align: center;
}

.price-chip {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 6px 16px;
  background: rgba(241, 211, 205, 0.85);
  border-radius: var(--radius);
  color: var(--accent-dark);
  font-weight: 800;
}

.hero-price {
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 6vw, 5.5rem);
  line-height: 0.9;
}

.hero-price-period {
  margin-top: -10px;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
}

.hero-price-divider {
  width: 100%;
  height: 1px;
  background: rgba(20, 63, 55, 0.25);
}

.spots-row {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--accent-dark);
  font-size: 1.18rem;
  font-weight: 800;
}

.spots-row .icon-orb {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  background: linear-gradient(180deg, #f1d3cd, #d86554);
  border-radius: 50%;
  color: white;
  font-size: 0.82rem;
  letter-spacing: 0;
}

.hero-price-card small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(232, 222, 210, 0.68);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 700;
}

.icon-animated {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.icon-animated .draw {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 34;
  stroke-dashoffset: 0;
}

.icon-animated .delay-1 {
  animation-delay: 80ms;
}

.icon-animated .delay-2 {
  animation-delay: 160ms;
}

.icon-animated .dot {
  stroke-width: 3;
}

.icon-orb {
  position: relative;
  isolation: isolate;
}

.icon-orb::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: -1;
  border: 1px solid currentColor;
  border-radius: inherit;
  opacity: 0.14;
  transform: scale(0.86);
}

.icon-orb:hover::after,
.feature-item:hover .icon-orb::after {
  animation: icon-orb-pulse 900ms ease-out;
}

.icon-orb:hover .draw,
.feature-item:hover .draw,
.work-step:hover .draw,
.check-list li:hover .draw,
.hero-price-card:hover .spots-row .draw {
  animation: icon-line-draw 720ms ease both;
}

.icon-circle-help .wiggle-group {
  transform-box: fill-box;
  transform-origin: center;
}

.feature-item:hover .icon-circle-help .wiggle-group,
.feature-item:focus-within .icon-circle-help .wiggle-group {
  animation: circle-help-wiggle 500ms ease-in-out;
}

.icon-clipboard-check .check-mark {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 9;
  stroke-dashoffset: 9;
  opacity: 0;
}

.feature-item:hover .icon-clipboard-check .check-mark,
.feature-item:focus-within .icon-clipboard-check .check-mark {
  animation: clipboard-check-draw 300ms ease-in-out forwards;
}

.icon-users .users-extra {
  transform-box: fill-box;
  transform-origin: center;
}

.feature-item:hover .icon-users .users-extra,
.feature-item:focus-within .icon-users .users-extra {
  animation: users-slide-in 520ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.icon-waypoints .waypoint-piece {
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 32;
  stroke-dashoffset: 0;
}

.work-step:hover .icon-waypoints .waypoint-piece {
  animation: waypoint-draw 620ms ease-in-out both;
}

.work-step:hover .icon-waypoints .waypoint-delay-1 {
  animation-delay: 150ms;
}

.work-step:hover .icon-waypoints .waypoint-delay-2 {
  animation-delay: 300ms;
}

.work-step:hover .icon-waypoints .waypoint-delay-3 {
  animation-delay: 450ms;
}

.icon-calendar-days .calendar-dot {
  fill: currentColor;
  stroke: none;
}

.work-step:hover .icon-calendar-days .calendar-dot {
  animation: calendar-dot-pulse 400ms ease-in-out;
}

.work-step:hover .icon-calendar-days .calendar-delay-1 {
  animation-delay: 100ms;
}

.work-step:hover .icon-calendar-days .calendar-delay-2 {
  animation-delay: 200ms;
}

.work-step:hover .icon-calendar-days .calendar-delay-3 {
  animation-delay: 300ms;
}

.work-step:hover .icon-calendar-days .calendar-delay-4 {
  animation-delay: 400ms;
}

.work-step:hover .icon-calendar-days .calendar-delay-5 {
  animation-delay: 500ms;
}

.icon-chess-knight {
  overflow: visible;
}

.icon-chess-knight .knight-piece {
  transform-box: view-box;
  transform-origin: 12px 22px;
}

.work-step:hover .icon-chess-knight .knight-piece {
  animation: knight-hop 900ms ease-in-out;
}

.inline-icon {
  width: 20px;
  height: 20px;
}

.point-icon,
.list-icon {
  color: var(--accent-dark);
}

.point-icon {
  width: 28px;
  height: 28px;
}

.list-icon {
  width: 26px;
  height: 26px;
}

@keyframes icon-line-draw {
  0% {
    stroke-dashoffset: 34;
    opacity: 0.35;
  }

  100% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}

@keyframes icon-orb-pulse {
  0% {
    opacity: 0.18;
    transform: scale(0.86);
  }

  100% {
    opacity: 0;
    transform: scale(1.26);
  }
}

@keyframes circle-help-wiggle {
  0%,
  100% {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(-10deg);
  }

  50% {
    transform: rotate(10deg);
  }

  75% {
    transform: rotate(-10deg);
  }
}

@keyframes clipboard-check-draw {
  0% {
    opacity: 0;
    stroke-dashoffset: 9;
  }

  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes users-slide-in {
  0% {
    transform: translateX(-6px);
  }

  100% {
    transform: translateX(0);
  }
}

@keyframes waypoint-draw {
  0% {
    opacity: 0;
    stroke-dashoffset: 32;
  }

  100% {
    opacity: 1;
    stroke-dashoffset: 0;
  }
}

@keyframes calendar-dot-pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes knight-hop {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  10% {
    transform: translateY(-2px) rotate(12deg);
  }

  30% {
    transform: translateY(-9px) rotate(38deg);
  }

  45% {
    transform: translateY(-12px) rotate(42deg);
  }

  60% {
    transform: translateY(-9px) rotate(38deg);
  }

  78% {
    transform: translateY(-2px) rotate(10deg);
  }

  90% {
    transform: translateY(1px) rotate(-5deg);
  }
}

.progress-line {
  height: 10px;
  overflow: hidden;
  background: #e9e0d5;
  border-radius: 999px;
}

.progress-line span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
}

.section-band,
.content-section,
.page-shell,
.app-shell,
.lesson-shell,
.auth-page,
.state-page {
  padding: clamp(36px, 6vw, 72px) clamp(16px, 5vw, 64px);
}

.section-band {
  padding-block: clamp(24px, 2.8vw, 36px) clamp(28px, 3.4vw, 42px);
  background:
    radial-gradient(circle at 5% 0%, rgba(47, 107, 95, 0.44), transparent 30%),
    linear-gradient(135deg, #103b34, #174c42);
  color: white;
}

.section-band p,
.section-band .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-band .section-heading {
  display: block;
  max-width: 820px;
  margin-inline: auto;
  margin-bottom: clamp(18px, 2.4vw, 28px);
  text-align: center;
}

.section-band h2 {
  font-size: clamp(1.65rem, 3vw, 2.8rem);
}

.section-heading.compact {
  display: block;
  max-width: 760px;
}

.feature-grid,
.course-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-band .feature-grid {
  gap: 0;
}

.feature-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  column-gap: 20px;
  row-gap: 12px;
  align-items: start;
  padding: 16px clamp(18px, 3vw, 34px) 18px;
  min-height: 142px;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 0;
}

.feature-item:last-child {
  border-right: 0;
}

.problem-icon {
  display: grid;
  grid-row: 1 / span 2;
  place-items: center;
  width: 64px;
  height: 64px;
  background: linear-gradient(180deg, #f4d5ce, #e9bdb4);
  border-radius: 50%;
  color: var(--primary-dark);
}

.problem-icon .icon-animated {
  width: 32px;
  height: 32px;
}

.feature-item strong {
  display: block;
  grid-column: 2;
  align-self: center;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.15;
}

.feature-item p {
  grid-column: 2;
  grid-row: 2;
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.course-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.course-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #ebe2d8;
}

.course-card div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px;
}

.course-card p {
  flex: 1;
}

.badge,
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(47, 107, 95, 0.1);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 800;
}

.membership-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 380px);
  gap: 36px;
  align-items: start;
}

.membership-copy h1 {
  font-size: clamp(2.3rem, 6vw, 4.5rem);
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.check-list li {
  min-height: 44px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(47, 107, 95, 0.08);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
}

.price-card,
.auth-card,
.materials-panel,
.metric-card {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.price-card {
  padding: 24px;
}

.price {
  color: var(--primary-dark);
  font-size: 2.4rem;
  font-weight: 800;
}

.price-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.membership-program {
  margin-top: 54px;
}

.work-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.72fr) minmax(0, 1fr);
  gap: clamp(34px, 5vw, 78px);
  align-items: center;
}

.work-journey-section {
  position: relative;
  padding-block: clamp(54px, 7vw, 88px) clamp(110px, 12vw, 156px);
  background:
    linear-gradient(90deg, rgba(255, 249, 241, 0.64), rgba(247, 241, 232, 0.82)),
    radial-gradient(circle at 19% 21%, rgba(215, 164, 103, 0.13), transparent 28%);
  overflow: hidden;
}

.work-visual {
  position: relative;
  align-self: stretch;
}

.work-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 62%, rgba(247, 241, 232, 0.72) 86%, var(--bg) 100%),
    linear-gradient(180deg, transparent 72%, rgba(247, 241, 232, 0.55) 100%);
  border-radius: 0 var(--radius) var(--radius) 0;
  pointer-events: none;
}

.work-image {
  width: 100%;
  height: 100%;
  min-height: 620px;
  max-height: 760px;
  object-fit: cover;
  object-position: center;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: 0 24px 58px rgba(52, 41, 30, 0.12);
}

.work-copy .section-heading {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.work-copy .section-heading p {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 1.05rem;
}

.journey-map {
  position: relative;
}

.journey-curve {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 82px;
  overflow: visible;
  pointer-events: none;
}

.journey-curve path {
  fill: none;
  stroke: rgba(201, 92, 75, 0.72);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-curve marker path {
  fill: none;
  stroke: rgba(201, 92, 75, 0.72);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.journey-curve > path {
  marker-end: url("#journey-arrow");
}

.work-points {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 52px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.work-points::before {
  content: none;
}

.work-points::after {
  content: none;
}

.work-step {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 12px;
  min-width: 0;
}

.step-number {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--primary-dark);
  border-radius: 50%;
  color: var(--surface);
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(20, 63, 55, 0.18);
}

.step-icon {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  margin-top: -18px;
  margin-left: 2px;
  background: rgba(241, 211, 205, 0.82);
  border-radius: 50%;
  color: var(--accent-dark);
}

.step-icon .point-icon {
  width: 34px;
  height: 34px;
}

.work-step strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.68rem);
  font-weight: 800;
  line-height: 1.12;
}

.work-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.journey-banner {
  position: absolute;
  left: clamp(240px, 22vw, 390px);
  right: clamp(20px, 3vw, 56px);
  bottom: clamp(26px, 5vw, 54px);
  z-index: 4;
  display: grid;
  grid-template-columns:
    minmax(68px, 88px)
    minmax(360px, 1.25fr)
    minmax(230px, 0.68fr)
    minmax(180px, 236px);
  align-items: center;
  gap: clamp(18px, 2.6vw, 32px);
  padding: clamp(22px, 2.4vw, 28px) clamp(24px, 3.2vw, 40px);
  background: rgba(255, 249, 241, 0.86);
  border: 1px solid rgba(201, 92, 75, 0.34);
  border-radius: var(--radius);
  box-shadow: 0 22px 54px rgba(52, 41, 30, 0.08);
  backdrop-filter: blur(8px);
}

.banner-illustration {
  display: grid;
  place-items: center;
  min-height: 76px;
  color: var(--gold);
}

.banner-illustration-icon {
  display: block;
  width: 78px;
  height: 78px;
  aspect-ratio: 1;
  object-fit: contain;
  opacity: 0.9;
}

.journey-banner strong {
  min-width: 0;
  max-width: 620px;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.8rem);
  line-height: 1.1;
  text-wrap: balance;
}

.banner-meta {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding-left: clamp(18px, 3vw, 34px);
  border-left: 1px solid rgba(201, 92, 75, 0.42);
}

.banner-meta .inline-icon {
  width: 42px;
  height: 42px;
  color: var(--primary-dark);
}

.banner-meta b,
.banner-meta small {
  display: block;
}

.banner-meta b {
  color: var(--ink);
}

.banner-meta small {
  color: var(--accent-dark);
  font-weight: 800;
}

@media (max-width: 1180px) {
  .journey-banner {
    grid-template-columns: minmax(62px, 78px) minmax(280px, 1fr) minmax(200px, 240px);
    gap: 18px 24px;
  }

  .journey-banner strong {
    grid-column: 2 / 3;
  }

  .banner-meta {
    grid-column: 2 / 3;
    grid-row: 2;
    padding-left: 0;
    border-left: 0;
  }

  .journey-banner .button {
    grid-column: 3 / 4;
    grid-row: 1 / span 2;
    justify-self: stretch;
  }
}

.course-preview-section {
  padding-top: 0;
}

.membership-preview-section {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  padding-block: clamp(68px, 8vw, 108px);
  background:
    linear-gradient(90deg, rgba(255, 249, 241, 0.78), rgba(247, 241, 232, 0.94)),
    radial-gradient(circle at 12% 14%, rgba(215, 164, 103, 0.18), transparent 28%);
  border-top: 1px solid rgba(222, 210, 195, 0.72);
}

.membership-preview-copy {
  max-width: 640px;
}

.membership-preview-copy h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: 0.96;
}

.membership-preview-copy p {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.05rem;
}

.membership-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

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

.preview-item {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 15px;
  align-items: start;
  min-height: 160px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(222, 210, 195, 0.9);
  border-radius: var(--radius);
  box-shadow: 0 18px 42px rgba(52, 41, 30, 0.06);
}

.preview-token {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: linear-gradient(180deg, #f5d9d4, #f0c9c1);
  border-radius: 50%;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
}

.preview-item strong {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.preview-item p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.membership-preview-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin-top: clamp(4px, 1.4vw, 14px);
  padding: 20px clamp(20px, 3vw, 30px);
  background: rgba(255, 249, 241, 0.9);
  border: 1px solid rgba(201, 92, 75, 0.28);
  border-radius: var(--radius);
}

.membership-preview-strip strong {
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.1vw, 1.85rem);
  line-height: 1.1;
}

.membership-preview-strip span {
  color: var(--primary-dark);
  font-weight: 900;
}

.membership-preview-strip small {
  color: var(--accent-dark);
  font-weight: 900;
}

.auth-page {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(420px, 510px) minmax(320px, 0.9fr);
  gap: clamp(32px, 5vw, 76px);
  align-items: center;
  min-height: calc(100dvh - 176px);
  padding: clamp(52px, 7vw, 88px) clamp(42px, 6vw, 92px);
  overflow: hidden;
  background: #f7f1e8;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0 0 0 54%;
  z-index: -2;
  background: url("/img/login-artwork.jpg") center right / cover no-repeat;
}

.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(247, 241, 232, 1) 0%, rgba(247, 241, 232, 0.97) 34%, rgba(247, 241, 232, 0.46) 57%, rgba(247, 241, 232, 0.06) 100%),
    radial-gradient(circle at 50% 52%, rgba(255, 249, 241, 0.78), transparent 26%);
}

.auth-welcome {
  max-width: 360px;
  align-self: center;
}

.auth-sprig,
.auth-card-sprig {
  display: grid;
  place-items: center;
  color: var(--gold);
}

.auth-sprig {
  justify-content: start;
  margin-bottom: 18px;
}

.auth-sprig::after {
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin-top: 10px;
  background: rgba(215, 164, 103, 0.8);
}

.auth-sprig img {
  width: 58px;
  height: 70px;
  object-fit: contain;
}

.auth-welcome h1 {
  max-width: 340px;
  margin-bottom: 18px;
  font-size: clamp(2.65rem, 4.3vw, 4.4rem);
  line-height: 1.02;
}

.auth-welcome p {
  max-width: 340px;
  color: var(--muted);
  font-size: 1.04rem;
}

.auth-welcome strong {
  display: block;
  color: var(--accent);
  font-weight: 500;
}

.auth-card {
  width: min(100%, 510px);
  padding: clamp(28px, 3.4vw, 38px);
  background: rgba(255, 253, 248, 0.9);
  border-color: rgba(222, 210, 195, 0.78);
  box-shadow: 0 28px 76px rgba(52, 41, 30, 0.16);
  backdrop-filter: blur(10px);
}

.auth-login-card {
  justify-self: center;
  text-align: center;
}

.auth-card-sprig {
  margin-bottom: 16px;
}

.auth-card-sprig img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.auth-login-card h2 {
  margin-bottom: 8px;
  font-size: clamp(2.05rem, 3vw, 2.95rem);
  line-height: 1;
}

.auth-login-card p {
  max-width: none;
  margin-bottom: 24px;
  color: var(--muted);
}

.form-stack {
  display: grid;
  gap: 15px;
  margin-top: 0;
  text-align: left;
}

.form-stack label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.input-field span:first-child {
  display: block;
}

.input-control {
  position: relative;
  display: block;
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 15px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.form-stack input {
  min-height: 48px;
  width: 100%;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  color: var(--ink);
}

.input-control input {
  min-height: 52px;
  padding-left: 48px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.input-control-password input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  color: var(--primary);
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: rgba(47, 107, 95, 0.08);
}

.password-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-hide,
.password-toggle.is-visible .password-toggle-show {
  display: none;
}

.password-toggle.is-visible .password-toggle-hide {
  display: block;
}

.auth-form-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 2px;
  font-size: 0.92rem;
}

.form-stack .remember-check {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  color: var(--muted);
  font-weight: 500;
}

.remember-check input {
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  accent-color: var(--primary);
}

.auth-form-row a,
.auth-signup a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.auth-form .button {
  min-height: 52px;
  margin-top: 8px;
  box-shadow: 0 16px 36px rgba(201, 92, 75, 0.22);
}

.oauth-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.oauth-button {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.oauth-button:hover {
  border-color: rgba(47, 107, 95, 0.42);
  box-shadow: 0 12px 26px rgba(52, 41, 30, 0.08);
  transform: translateY(-1px);
}

.oauth-button svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.oauth-button.is-disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr 32px 1fr;
  gap: 12px;
  align-items: center;
  margin: 16px 0 0;
  color: var(--gold);
}

.auth-divider span {
  height: 1px;
  background: rgba(222, 210, 195, 0.98);
}

.auth-divider small {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.auth-divider-compact {
  margin: 12px 0 4px;
}

.auth-divider svg {
  width: 24px;
  height: 24px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform-origin: center;
}

.auth-divider:hover .auth-heart-handshake,
.auth-login-card:focus-within .auth-heart-handshake {
  animation: heart-handshake 0.7s ease-in-out;
}

@keyframes heart-handshake {
  0% {
    transform: scale(1) rotate(0deg);
  }

  15% {
    transform: scale(0.9) rotate(0deg);
  }

  30% {
    transform: scale(1) rotate(0deg);
  }

  40% {
    transform: scale(1) rotate(-7deg);
  }

  55% {
    transform: scale(1) rotate(7deg);
  }

  75% {
    transform: scale(1) rotate(-3deg);
  }

  100% {
    transform: scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-divider:hover .auth-heart-handshake,
  .auth-login-card:focus-within .auth-heart-handshake {
    animation: none;
  }
}

.auth-signup {
  margin: -2px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.94rem;
}

.account-page {
  min-height: calc(100dvh - 176px);
  display: grid;
  place-items: center;
  padding-block: clamp(42px, 6vw, 78px);
}

.account-card {
  width: min(100%, 680px);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 38px);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.account-card h1 {
  margin: 0;
  font-size: clamp(2.25rem, 5vw, 3.6rem);
  line-height: 1;
}

.account-card p {
  margin: 0;
  color: var(--muted);
}

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

.account-status-grid div,
.linked-provider {
  padding: 14px;
  background: rgba(236, 232, 222, 0.56);
  border-radius: var(--radius);
}

.account-status-grid span,
.linked-provider span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.account-status-grid strong {
  color: var(--primary-dark);
  font-size: 1.1rem;
}

.linked-account-section {
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.linked-account-section h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

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

.linked-provider {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.linked-provider strong {
  display: block;
  color: var(--primary-dark);
}

.form-error {
  padding: 12px 14px;
  margin-top: 16px;
  background: #fff0ed;
  border: 1px solid #e7a092;
  border-radius: var(--radius);
  color: #8c2f21;
  font-weight: 700;
}

.app-shell,
.lesson-shell {
  max-width: 1280px;
  margin: 0 auto;
}

.no-pad {
  padding-inline: 0;
}

.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.dashboard-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.admin-dashboard {
  max-width: 1160px;
  min-height: calc(100dvh - 176px);
  padding-block: clamp(54px, 6vw, 82px);
}

.admin-dashboard .dashboard-hero {
  align-items: flex-end;
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: 32px;
}

.admin-dashboard .dashboard-hero h1 {
  max-width: 720px;
  margin-bottom: 14px;
  font-size: clamp(2.55rem, 4.6vw, 4.15rem);
  line-height: 1.02;
}

.admin-dashboard .dashboard-hero p {
  max-width: 560px;
  margin-bottom: 0;
}

.admin-primary-action {
  flex: 0 0 auto;
  min-width: 144px;
  box-shadow: 0 16px 36px rgba(201, 92, 75, 0.18);
}

.admin-primary-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-pill.is-active {
  background: rgba(47, 107, 95, 0.12);
  color: var(--primary-dark);
}

.student-campus {
  max-width: 1240px;
  min-height: calc(100dvh - 176px);
  padding-block: clamp(42px, 5.4vw, 70px);
}

.campus-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
  gap: clamp(22px, 4vw, 44px);
  align-items: stretch;
  margin-bottom: 28px;
}

.campus-hero-copy {
  min-height: 320px;
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 42px);
  background:
    linear-gradient(90deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.84)),
    url("/img/work-journey-illustration.png") left center / cover no-repeat;
  border: 1px solid rgba(222, 210, 195, 0.82);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px rgba(52, 41, 30, 0.08);
}

.campus-hero-copy h1 {
  max-width: 680px;
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4.55rem);
  line-height: 0.98;
}

.campus-hero-copy p {
  max-width: 680px;
}

.campus-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.campus-summary span {
  min-height: 58px;
  display: grid;
  align-content: center;
  min-width: 132px;
  padding: 10px 14px;
  background: rgba(255, 249, 241, 0.82);
  border: 1px solid rgba(222, 210, 195, 0.92);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.campus-summary strong {
  display: block;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.45rem;
  line-height: 1;
}

.campus-next-card {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: clamp(22px, 3vw, 30px);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.campus-next-card h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  line-height: 1.02;
}

.campus-next-card p {
  margin: -4px 0 4px;
  color: var(--muted);
}

.campus-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 22px;
  align-items: start;
}

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

.campus-course-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.campus-course-card {
  box-shadow: 0 18px 44px rgba(52, 41, 30, 0.07);
}

.campus-course-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.course-progress {
  width: 100%;
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
}

.course-progress span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.course-progress .progress-line {
  height: 8px;
}

.campus-side-panel {
  position: sticky;
  top: 98px;
  display: grid;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.campus-side-panel .notice {
  margin: 0;
}

.notice-list {
  display: grid;
  gap: 12px;
  margin-bottom: 34px;
}

.notice {
  padding: 16px;
  background: rgba(216, 166, 110, 0.16);
  border: 1px solid rgba(216, 166, 110, 0.35);
  border-radius: var(--radius);
}

.notice span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--primary-dark);
  font-weight: 800;
  text-decoration: none;
}

.course-player-shell {
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  max-width: 1440px;
  min-height: calc(100dvh - 76px);
  margin: 0 auto;
}

.course-sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  height: calc(100dvh - 76px);
  overflow-y: auto;
  padding: 22px 16px 30px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(247, 241, 232, 0.92)),
    radial-gradient(circle at 10% 0%, rgba(241, 211, 205, 0.42), transparent 34%);
  border-right: 1px solid rgba(222, 210, 195, 0.92);
}

.course-sidebar-top {
  display: grid;
  gap: 12px;
  padding: 0 2px 18px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(222, 210, 195, 0.9);
}

.course-sidebar-back {
  display: inline-flex;
  color: var(--accent-dark);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.course-sidebar h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.08;
}

.course-index {
  display: grid;
  gap: 10px;
}

.course-index-module {
  background: rgba(255, 249, 241, 0.74);
  border: 1px solid rgba(222, 210, 195, 0.9);
  border-radius: var(--radius);
  overflow: hidden;
}

.course-index-module summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 13px 14px;
  cursor: pointer;
  list-style: none;
}

.course-index-module summary::-webkit-details-marker {
  display: none;
}

.course-index-module summary span,
.course-index-lesson span:last-child {
  min-width: 0;
}

.course-index-module summary small,
.course-index-module summary em,
.course-index-lesson small {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.course-index-module summary strong {
  display: block;
  margin-top: 2px;
  color: var(--primary-dark);
  line-height: 1.18;
}

.course-index-module summary em {
  padding: 4px 8px;
  background: rgba(47, 107, 95, 0.08);
  border-radius: 999px;
  white-space: nowrap;
}

.course-index-module[open] summary {
  border-bottom: 1px solid rgba(222, 210, 195, 0.76);
}

.course-index-lessons {
  display: grid;
  gap: 6px;
  padding: 10px;
}

.course-index-lesson {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 58px;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.course-index-lesson:hover {
  background: rgba(47, 107, 95, 0.06);
}

.course-index-lesson.is-current {
  background: rgba(47, 107, 95, 0.1);
  border-color: rgba(47, 107, 95, 0.26);
  box-shadow: inset 3px 0 0 var(--primary);
}

.course-index-lesson strong {
  display: block;
  font-size: 0.94rem;
  line-height: 1.25;
}

.course-index-status {
  position: relative;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid rgba(35, 106, 93, 0.34);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.9);
}

.course-index-lesson.is-done .course-index-status {
  background: var(--primary);
  border-color: var(--primary);
}

.course-index-lesson.is-done .course-index-status::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.course-player-main {
  min-width: 0;
  padding: clamp(30px, 4.8vw, 64px);
}

.course-overview-hero {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  margin-bottom: 24px;
  padding: clamp(18px, 3vw, 28px);
  background: rgba(255, 253, 248, 0.74);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 20px 54px rgba(52, 41, 30, 0.08);
}

.course-overview-hero img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ebe2d8;
  border: 1px solid rgba(222, 210, 195, 0.88);
  border-radius: var(--radius);
}

.course-overview-hero h1 {
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1;
}

.course-continue-card {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(20, 63, 55, 0.96), rgba(35, 106, 93, 0.94));
  border-radius: var(--radius);
  color: white;
}

.course-continue-card .eyebrow,
.course-continue-card p {
  color: rgba(255, 255, 255, 0.76);
}

.course-continue-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  line-height: 1.05;
}

.course-continue-card p {
  margin: 6px 0 0;
}

.module-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.module-preview-card {
  min-height: 138px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.module-preview-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.module-preview-card h3 {
  margin-bottom: 8px;
  font-family: var(--font-body);
  font-size: 1.08rem;
}

.module-preview-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.course-detail {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 34px;
}

.course-detail img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.course-detail h1 {
  font-size: clamp(2.1rem, 5vw, 4rem);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
}

.lesson-list {
  display: grid;
  gap: 18px;
}

.module-block {
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.module-block h2 {
  margin: 0;
  padding: 18px;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-body);
  font-size: 1.05rem;
}

.lesson-row {
  min-height: 72px;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}

.lesson-row:last-child {
  border-bottom: 0;
}

.lesson-row:hover {
  background: rgba(47, 107, 95, 0.06);
}

.lesson-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
}

.lesson-check.is-done {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 5px white;
}

.lesson-row small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: start;
}

.video-frame {
  overflow: hidden;
  background: #17211f;
  border-radius: var(--radius);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #17211f;
}

.materials-panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.materials-panel h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.2rem;
}

.material-link {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  background: rgba(123, 81, 104, 0.08);
  border: 1px solid rgba(123, 81, 104, 0.18);
  border-radius: var(--radius);
  color: var(--secondary);
  font-weight: 800;
  text-decoration: none;
}

.lesson-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.lesson-nav-card {
  min-height: 94px;
  display: grid;
  align-content: center;
  padding: 18px;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
}

.lesson-nav-card:hover {
  border-color: rgba(47, 107, 95, 0.4);
}

.lesson-nav-card span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.lesson-nav-card strong {
  display: block;
  margin-top: 4px;
  line-height: 1.25;
}

.lesson-nav-card.is-next {
  text-align: right;
}

.lesson-nav-card.is-empty {
  opacity: 0.56;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}

.metric-card {
  display: grid;
  align-content: space-between;
  gap: 18px;
  min-height: 118px;
  padding: 18px;
  background: rgba(255, 253, 248, 0.78);
  box-shadow: 0 14px 34px rgba(52, 41, 30, 0.06);
}

.metric-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.25;
}

.metric-label svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--primary);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.metric-card strong {
  display: block;
  color: var(--primary-dark);
  font-size: 1.9rem;
  line-height: 1;
}

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

.admin-actions a {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 26px;
  gap: 16px;
  align-items: center;
  min-height: 132px;
  padding: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(52, 41, 30, 0.07);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-actions a:hover {
  border-color: var(--primary);
  box-shadow: 0 20px 50px rgba(52, 41, 30, 0.1);
  transform: translateY(-1px);
}

.admin-action-card > span {
  color: inherit;
}

.admin-action-card strong,
.admin-action-card small {
  display: block;
}

.admin-action-card strong {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.admin-action-card small {
  color: var(--muted);
  font-size: 0.96rem;
}

.admin-action-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  background: rgba(241, 211, 205, 0.62);
  border: 1px solid rgba(201, 92, 75, 0.14);
  border-radius: var(--radius);
  color: var(--accent-dark);
}

.admin-action-icon svg,
.admin-action-arrow {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-action-arrow {
  justify-self: end;
  color: var(--gold);
}

.admin-content-shell {
  max-width: 1260px;
  min-height: calc(100dvh - 176px);
  padding-block: clamp(42px, 5vw, 72px);
}

.admin-studio-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 18px;
}

.admin-studio-hero h1 {
  max-width: 780px;
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  line-height: 1;
}

.admin-studio-hero p {
  max-width: 720px;
  margin: 0;
}

.admin-hero-actions,
.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tone-data {
  --tone: #236a5d;
  --tone-dark: #143f37;
  --tone-soft: rgba(47, 107, 95, 0.1);
  --tone-surface: rgba(245, 251, 247, 0.94);
  --tone-border: rgba(47, 107, 95, 0.22);
}

.tone-structure {
  --tone: #874c61;
  --tone-dark: #633448;
  --tone-soft: rgba(135, 76, 97, 0.1);
  --tone-surface: rgba(255, 247, 250, 0.92);
  --tone-border: rgba(135, 76, 97, 0.22);
}

.tone-upload {
  --tone: #2a7580;
  --tone-dark: #14535d;
  --tone-soft: rgba(42, 117, 128, 0.1);
  --tone-surface: rgba(244, 252, 252, 0.93);
  --tone-border: rgba(42, 117, 128, 0.24);
}

.admin-focus-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.admin-focus-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  background: var(--tone-surface);
  border: 1px solid var(--tone-border);
  border-left: 6px solid var(--tone);
  border-radius: var(--radius);
}

.admin-focus-item span,
.admin-step-number {
  display: grid;
  place-items: center;
  background: var(--tone);
  color: white;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
}

.admin-focus-item span {
  width: 36px;
  height: 36px;
  font-size: 1.18rem;
}

.admin-focus-item strong,
.admin-focus-item small {
  display: block;
  min-width: 0;
}

.admin-focus-item strong {
  color: var(--tone-dark);
  font-weight: 900;
}

.admin-focus-item small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-editor-layout {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.admin-panel,
.admin-course-card,
.admin-module-card,
.empty-content-state {
  background: rgba(255, 253, 248, 0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 46px rgba(52, 41, 30, 0.07);
}

.admin-panel {
  display: grid;
  gap: 16px;
  padding: clamp(18px, 2.4vw, 24px);
}

.admin-step-panel {
  background:
    linear-gradient(135deg, var(--tone-surface), rgba(255, 253, 248, 0.9));
  border-color: var(--tone-border);
  border-left: 6px solid var(--tone);
}

.admin-step-heading,
.admin-upload-heading {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.admin-step-number {
  width: 46px;
  height: 46px;
  box-shadow: 0 10px 24px rgba(52, 41, 30, 0.11);
  font-size: 1.35rem;
}

.admin-step-heading .eyebrow,
.admin-upload-heading .eyebrow {
  color: var(--tone-dark);
}

.admin-panel h2,
.admin-section-heading h2,
.admin-module-header h2,
.empty-content-state h2 {
  margin: 0;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.06;
}

.admin-panel p,
.admin-section-heading p,
.admin-module-header p,
.empty-content-state p {
  margin: 0;
  color: var(--muted);
}

.admin-create-panel,
.admin-course-settings {
  position: sticky;
  top: 98px;
}

.admin-form,
.admin-inline-form {
  display: grid;
  gap: 12px;
}

.admin-form label {
  display: grid;
  gap: 7px;
  color: #304f47;
  font-weight: 800;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.admin-inline-form input {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  background: rgba(255, 253, 248, 0.92);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font: inherit;
  font-weight: 650;
}

.admin-step-panel .admin-form input,
.admin-step-panel .admin-form textarea,
.admin-step-panel .admin-form select,
.admin-step-panel .admin-inline-form input {
  border-color: rgba(68, 84, 78, 0.18);
  border-left: 4px solid var(--tone-border);
}

.admin-form textarea {
  resize: vertical;
  line-height: 1.45;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-inline-form input:focus {
  border-color: var(--tone, var(--primary));
  box-shadow: 0 0 0 4px var(--tone-soft, rgba(47, 107, 95, 0.1));
  outline: none;
}

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

.admin-inline-form {
  grid-template-columns: minmax(0, 1fr) auto;
}

.admin-course-library,
.admin-module-workspace,
.admin-module-list {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.admin-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
}

.admin-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.admin-course-card {
  overflow: hidden;
}

.admin-course-cover {
  min-height: 170px;
  background-color: rgba(241, 211, 205, 0.24);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--border);
}

.admin-course-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.admin-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.admin-course-card h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.06;
}

.admin-course-card p {
  margin: 0;
  color: var(--muted);
}

.admin-course-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.admin-course-stats div {
  padding: 12px;
  background: rgba(236, 232, 222, 0.62);
  border-radius: 8px;
}

.admin-course-stats dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-course-stats dd {
  margin: 3px 0 0;
  color: var(--primary-dark);
  font-family: var(--font-display);
  font-size: 1.75rem;
  line-height: 1;
}

.admin-upload-panel {
  grid-template-columns: minmax(0, 1fr);
}

.admin-module-card {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 2.2vw, 22px);
}

.admin-module-card.tone-structure {
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(255, 247, 250, 0.7));
  border-left: 6px solid var(--tone);
}

.admin-module-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.admin-module-header span {
  display: block;
  margin-bottom: 6px;
  color: var(--tone-dark, var(--accent-dark));
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.admin-small-editor {
  min-width: min(320px, 100%);
  padding: 10px;
  background: rgba(236, 232, 222, 0.48);
  border: 1px solid rgba(222, 210, 195, 0.76);
  border-radius: 8px;
}

.admin-small-editor summary {
  cursor: pointer;
  color: var(--primary-dark);
  font-weight: 900;
}

.admin-small-editor form {
  margin-top: 10px;
}

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

.admin-lesson-item {
  background: rgba(255, 249, 241, 0.78);
  border: 1px solid rgba(222, 210, 195, 0.82);
  border-radius: 8px;
  overflow: hidden;
}

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

.admin-lesson-item summary::-webkit-details-marker {
  display: none;
}

.lesson-position,
.upload-icon,
.empty-icon {
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.lesson-position {
  width: 36px;
  height: 36px;
  background: var(--primary-dark);
  color: white;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.admin-lesson-item strong,
.admin-lesson-item small {
  display: block;
}

.admin-lesson-item small,
.admin-lesson-item em {
  color: var(--muted);
  font-size: 0.88rem;
  font-style: normal;
}

.admin-lesson-edit-form {
  padding: 12px;
  border-top: 1px solid rgba(222, 210, 195, 0.72);
}

.admin-lesson-item > form {
  padding: 0 12px 12px;
}

.admin-upload-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: clamp(16px, 2vw, 20px);
  background:
    linear-gradient(135deg, rgba(244, 252, 252, 0.78), rgba(255, 253, 248, 0.92));
  border: 1px solid var(--tone-border);
  border-left: 6px solid var(--tone);
  border-radius: 12px;
}

.admin-upload-box .admin-form {
  grid-column: auto;
  gap: 14px;
}

.admin-form-block {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: var(--block-bg, rgba(255, 253, 248, 0.82));
  border: 1px solid var(--block-border, var(--border));
  border-left: 6px solid var(--block-color, var(--tone));
  border-radius: 10px;
}

.admin-form-block.tone-video {
  --block-color: #2a7580;
  --block-bg: rgba(229, 246, 246, 0.66);
  --block-border: rgba(42, 117, 128, 0.24);
  --block-focus: rgba(42, 117, 128, 0.12);
}

.admin-form-block.tone-details {
  --block-color: #874c61;
  --block-bg: rgba(255, 247, 250, 0.72);
  --block-border: rgba(135, 76, 97, 0.22);
  --block-focus: rgba(135, 76, 97, 0.12);
}

.admin-form-block.tone-materials {
  --block-color: #a56e2d;
  --block-bg: rgba(255, 248, 237, 0.84);
  --block-border: rgba(215, 164, 103, 0.34);
  --block-focus: rgba(215, 164, 103, 0.16);
}

.admin-block-label {
  color: var(--block-color, var(--tone-dark));
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.admin-form-block input,
.admin-form-block textarea,
.admin-form-block select {
  border-left-color: var(--block-border);
}

.admin-form-block input:focus,
.admin-form-block textarea:focus,
.admin-form-block select:focus {
  border-color: var(--block-color);
  box-shadow: 0 0 0 4px var(--block-focus);
}

.admin-file-drop {
  min-height: 154px;
  place-items: center;
  padding: 18px;
  background: rgba(255, 253, 248, 0.78);
  border: 1px dashed rgba(47, 107, 95, 0.34);
  border-radius: 10px;
  color: var(--primary-dark);
  text-align: center;
  cursor: pointer;
}

.admin-file-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-file-drop strong,
.admin-file-drop small {
  display: block;
}

.admin-file-drop small {
  max-width: 420px;
  color: var(--muted);
  font-weight: 700;
}

.upload-icon {
  width: 56px;
  height: 56px;
  background: rgba(42, 117, 128, 0.14);
  color: #14535d;
}

.upload-icon svg,
.empty-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-upload-box h3 {
  margin: 2px 0 4px;
  color: var(--tone-dark);
  font-size: 1.25rem;
}

.admin-upload-box p {
  margin: 0;
  color: var(--muted);
}

.empty-content-state {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 240px;
  padding: 28px;
  text-align: center;
}

.empty-icon {
  width: 66px;
  height: 66px;
  background: rgba(241, 211, 205, 0.52);
  color: var(--primary-dark);
}

.danger-button {
  background: rgba(140, 47, 33, 0.08);
  border: 1px solid rgba(140, 47, 33, 0.28);
  color: #8c2f21;
}

.danger-button:hover {
  background: rgba(140, 47, 33, 0.13);
  border-color: rgba(140, 47, 33, 0.46);
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

td span {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}

tr:last-child td {
  border-bottom: 0;
}

.state-page {
  min-height: 56dvh;
  display: grid;
  place-content: center;
  justify-items: start;
  max-width: 760px;
  margin: 0 auto;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(260px, 560px) minmax(300px, 1fr);
  align-items: start;
  gap: clamp(28px, 6vw, 72px);
  padding: 34px clamp(16px, 5vw, 64px);
  background: #17211f;
  color: white;
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.site-footer p {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer small {
  color: rgba(255, 255, 255, 0.56);
}

.footer-groups {
  display: grid;
  justify-items: end;
  gap: 18px;
}

.footer-social {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.34);
  color: white;
}

.footer-social svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: white;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 960px) {
  .admin-studio-hero,
  .admin-editor-layout {
    grid-template-columns: 1fr;
  }

  .admin-create-panel,
  .admin-course-settings {
    position: static;
  }

  .admin-studio-hero {
    align-items: stretch;
  }

  .admin-focus-strip {
    grid-template-columns: 1fr;
  }

  .admin-step-heading,
  .admin-upload-heading {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .admin-step-number {
    width: 40px;
    height: 40px;
    font-size: 1.15rem;
  }

  .admin-hero-actions .button {
    width: 100%;
  }

  .site-header {
    grid-template-columns: auto auto;
    gap: 12px 16px;
    padding-block: 12px;
  }

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-actions {
    grid-column: 1 / -1;
  }

  .site-nav,
  .header-actions {
    display: none;
  }

  .site-header.is-menu-open .site-nav,
  .site-header.is-menu-open .header-actions {
    display: flex;
  }

  .site-nav {
    justify-content: start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
  }

  .header-actions {
    justify-content: start;
    padding-top: 4px;
  }

  .hero,
  .hero-inner,
  .membership-layout,
  .auth-page,
  .campus-hero,
  .campus-layout,
  .course-player-shell,
  .course-overview-hero,
  .course-detail,
  .video-layout,
  .section-heading,
  .membership-preview-section,
  .work-section {
    grid-template-columns: 1fr;
  }

  .hero-media {
    background:
      linear-gradient(90deg, rgba(255, 249, 241, 0.98) 0%, rgba(255, 249, 241, 0.88) 56%, rgba(255, 249, 241, 0.48) 100%),
      url("/img/hero-studio.jpg") center right / cover no-repeat;
  }

  .hero-price-card {
    margin-inline: 0;
  }

  .auth-page {
    grid-template-columns: minmax(0, 520px);
    justify-content: center;
    min-height: calc(100dvh - 150px);
    padding-inline: 24px;
  }

  .auth-page::before {
    inset: 0;
    background-position: 70% center;
    opacity: 0.7;
  }

  .auth-page::after {
    background:
      linear-gradient(90deg, rgba(247, 241, 232, 0.98) 0%, rgba(247, 241, 232, 0.9) 56%, rgba(247, 241, 232, 0.56) 100%),
      radial-gradient(circle at 50% 52%, rgba(255, 249, 241, 0.82), transparent 32%);
  }

  .auth-welcome {
    display: none;
  }

  .campus-side-panel {
    position: static;
  }

  .course-player-shell {
    min-height: auto;
  }

  .course-sidebar {
    position: static;
    height: auto;
    max-height: none;
    margin: 24px clamp(16px, 5vw, 48px) 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
  }

  .course-player-main {
    padding-top: 28px;
  }

  .auth-card {
    max-width: 520px;
  }

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

  .work-image {
    min-height: 420px;
    max-height: 560px;
    border-radius: var(--radius);
  }

  .journey-banner {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    grid-template-columns: 76px minmax(0, 1fr) minmax(180px, 232px);
    gap: 18px 24px;
    margin-top: 28px;
    padding: 24px;
  }

  .journey-banner strong {
    grid-column: 2 / 3;
  }

  .banner-meta {
    grid-column: 2 / 3;
    grid-row: 2;
    padding-left: 0;
    border-left: 0;
  }

  .journey-banner .button {
    grid-column: 3 / 4;
    grid-row: 1 / span 2;
    justify-self: stretch;
    align-self: center;
  }

  .membership-preview-copy {
    max-width: 760px;
  }

  .membership-preview-copy h2 {
    max-width: 780px;
  }

  .membership-preview-strip {
    grid-template-columns: 1fr auto;
  }

  .membership-preview-strip small {
    grid-column: 1 / -1;
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .footer-groups {
    justify-items: start;
  }
}

@media (max-width: 1180px) and (min-width: 641px) {
  .section-band .feature-item {
    grid-template-columns: 1fr;
    gap: 16px;
    padding-inline: clamp(18px, 2.4vw, 26px);
  }

  .section-band .problem-icon {
    grid-row: auto;
  }

  .section-band .feature-item strong,
  .section-band .feature-item p {
    grid-column: 1;
    grid-row: auto;
  }
}

@media (max-width: 960px) and (min-width: 641px) {
  .section-band .feature-item:nth-child(3) {
    grid-column: 1 / -1;
    justify-items: center;
    max-width: 520px;
    margin-inline: auto;
    text-align: center;
    border-right: 0;
  }

  .section-band .feature-item:nth-child(3) p {
    max-width: 440px;
  }
}

@media (max-width: 760px) {
  .journey-banner {
    grid-template-columns: 70px minmax(0, 1fr);
    padding: 24px 22px;
  }

  .journey-banner .button {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
  }

  .membership-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .site-header {
    position: sticky;
    min-height: 68px;
    padding: 14px 16px;
    grid-template-columns: 1fr;
  }

  .brand small {
    display: none;
  }

  .brand {
    max-width: max-content;
  }

  .nav-toggle,
  .site-nav,
  .header-actions,
  .site-header.is-menu-open .site-nav,
  .site-header.is-menu-open .header-actions {
    display: none;
  }

  .header-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .header-actions .button,
  .header-actions form {
    width: 100%;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: max(10px, env(safe-area-inset-left));
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    gap: 4px;
    min-height: 66px;
    padding: 8px 8px 10px;
    background: rgba(255, 249, 241, 0.96);
    border: 1px solid rgba(222, 210, 195, 0.94);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(52, 41, 30, 0.18);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-form button {
    min-width: 0;
    min-height: 52px;
    display: grid;
    justify-content: center;
    justify-items: center;
    align-content: center;
    gap: 3px;
    padding: 4px 3px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-decoration: none;
  }

  .mobile-bottom-form {
    margin: 0;
  }

  .mobile-bottom-nav svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav a.is-active,
  .mobile-bottom-form button:active {
    background: rgba(47, 107, 95, 0.1);
    color: var(--primary-dark);
  }

  .mobile-bottom-nav .mobile-bottom-primary {
    position: relative;
    min-height: 66px;
    margin-top: -26px;
    color: var(--primary-dark);
  }

  .mobile-bottom-mark {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin-bottom: 2px;
    background: linear-gradient(180deg, #2e7769, var(--primary-dark));
    border: 4px solid var(--surface);
    border-radius: 50%;
    color: white;
    font-size: 1rem;
    box-shadow: 0 14px 28px rgba(20, 63, 55, 0.22);
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 34px;
    padding-inline: 20px;
    max-width: 100vw;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    max-width: 350px;
    font-size: clamp(2.25rem, 10.5vw, 2.75rem);
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .hero p {
    max-width: 340px;
  }

  .script-kicker {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-actions,
  .site-footer,
  .dashboard-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .auth-page {
    min-height: auto;
    padding: 34px 18px 46px;
  }

  .auth-page::before {
    background-position: 76% center;
    opacity: 0.52;
  }

  .auth-page::after {
    background: rgba(247, 241, 232, 0.86);
  }

  .auth-login-card h2 {
    font-size: clamp(2.1rem, 10vw, 2.85rem);
  }

  .auth-form-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .auth-signup {
    display: grid;
    gap: 6px;
  }

  .account-status-grid,
  .linked-provider {
    grid-template-columns: 1fr;
  }

  .linked-provider {
    align-items: stretch;
    flex-direction: column;
  }

  .linked-provider .button {
    width: 100%;
  }

  .student-campus {
    padding-block: 28px 44px;
  }

  .campus-hero-copy {
    min-height: auto;
    padding: 24px 20px;
    background:
      linear-gradient(90deg, rgba(255, 253, 248, 0.98), rgba(255, 253, 248, 0.9)),
      url("/img/work-journey-illustration.png") center / cover no-repeat;
  }

  .campus-summary {
    display: grid;
    grid-template-columns: 1fr;
  }

  .campus-summary span {
    min-width: 0;
  }

  .course-player-main {
    padding: 24px 18px 44px;
  }

  .course-sidebar {
    margin: 18px 18px 0;
    padding: 16px 12px;
  }

  .course-overview-hero,
  .course-continue-card {
    padding: 18px;
  }

  .course-continue-card,
  .lesson-navigation {
    grid-template-columns: 1fr;
  }

  .course-continue-card {
    display: grid;
  }

  .course-continue-card .button,
  .lesson-nav-card.is-next {
    width: 100%;
    text-align: left;
  }

  .feature-grid,
  .course-grid,
  .metric-grid,
  .admin-actions,
  .admin-form-grid,
  .admin-inline-form,
  .work-points,
  .membership-preview-grid {
    grid-template-columns: 1fr;
  }

  .admin-content-shell {
    padding-block: 28px 44px;
  }

  .admin-studio-hero h1 {
    font-size: clamp(2.2rem, 12vw, 3.1rem);
  }

  .admin-panel,
  .admin-module-card {
    padding: 18px;
  }

  .admin-upload-box,
  .admin-form-block {
    border-left-width: 4px;
  }

  .admin-section-heading,
  .admin-module-header,
  .admin-card-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-module-header {
    display: flex;
  }

  .admin-course-stats,
  .admin-lesson-item summary,
  .admin-upload-box {
    grid-template-columns: 1fr;
  }

  .admin-small-editor {
    min-width: 0;
  }

  .admin-card-actions .button,
  .admin-inline-form .button {
    width: 100%;
  }

  .lesson-position {
    width: 34px;
    height: 34px;
  }

  .membership-preview-section {
    padding-block: 46px 54px;
  }

  .membership-preview-copy h2 {
    font-size: clamp(2rem, 9vw, 2.9rem);
  }

  .membership-preview-actions {
    flex-direction: column;
  }

  .membership-preview-actions .button {
    width: 100%;
  }

  .preview-item {
    min-height: auto;
    padding: 18px;
  }

  .membership-preview-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .section-band {
    overflow-x: hidden;
  }

  .section-band .feature-grid {
    width: 100%;
    max-width: 100%;
  }

  .feature-item {
    grid-template-columns: 1fr;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    padding-inline: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .feature-item strong,
  .feature-item p {
    grid-column: 1;
    grid-row: auto;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .feature-item:last-child {
    border-bottom: 0;
  }

  .problem-icon {
    grid-row: auto;
    width: 50px;
    height: 50px;
  }

  .problem-icon .icon-animated {
    width: 26px;
    height: 26px;
  }

  .work-journey-section {
    padding-block: 38px 46px;
  }

  .work-image {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 1 / 1.05;
  }

  .journey-curve {
    display: none;
  }

  .work-points::before {
    content: "";
    position: absolute;
    top: 26px;
    bottom: 26px;
    left: 23px;
    right: auto;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--gold), rgba(201, 92, 75, 0.68));
  }

  .work-points::after {
    display: none;
  }

  .work-step {
    grid-template-columns: 46px minmax(0, 1fr);
    column-gap: 14px;
    row-gap: 8px;
  }

  .step-number {
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    font-size: 1.2rem;
  }

  .step-icon {
    grid-column: 2;
    width: 42px;
    height: 42px;
    margin: 0;
  }

  .work-step strong,
  .work-step p {
    grid-column: 2;
  }

  .work-step strong {
    font-size: 1.25rem;
  }

  .work-step p {
    padding-left: 0;
  }

  .journey-banner {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .journey-banner strong,
  .banner-meta,
  .journey-banner .button {
    grid-column: 1;
    grid-row: auto;
  }

  .banner-illustration {
    justify-content: start;
    min-height: 0;
  }

  .banner-illustration-icon {
    width: 58px;
  }

  .banner-meta {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .journey-banner .button {
    width: 100%;
  }

  .course-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .footer-groups {
    justify-items: stretch;
  }

  .footer-social,
  .footer-links {
    justify-content: flex-start;
    flex-direction: column;
  }

  .footer-social a {
    width: 100%;
  }
}

/* Course editor studio */
.admin-course-editor.admin-content-shell {
  max-width: 1540px;
  min-height: calc(100dvh - 176px);
  padding-block: 28px 56px;
  --course-layer-1: #cfe1b9;
  --course-layer-2: #b5c99a;
  --course-layer-3: #97a97c;
  --course-layer-4: #87986a;
  --course-ink: #123d36;
  background:
    radial-gradient(circle at 18% 8%, rgba(207, 225, 185, 0.44), transparent 34%),
    radial-gradient(circle at 82% 24%, rgba(181, 201, 154, 0.34), transparent 36%),
    linear-gradient(180deg, #f5f8ed 0%, #edf3e4 100%);
  border-radius: 0;
}

.admin-course-editor svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-studio-toolbar {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) auto auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 20px;
  padding: 14px 16px;
  background:
    linear-gradient(90deg, rgba(207, 225, 185, 0.72), rgba(181, 201, 154, 0.52));
  border: 1px solid rgba(135, 152, 106, 0.42);
  border-radius: 8px;
  box-shadow: 0 16px 46px rgba(33, 62, 51, 0.08);
}

.admin-guide-lead,
.admin-guide-steps,
.admin-toolbar-actions,
.admin-card-title,
.admin-module-board-head,
.admin-lesson-meta,
.admin-image-control {
  display: flex;
  align-items: center;
}

.admin-guide-lead {
  min-width: 0;
  gap: 12px;
  color: #253631;
  font-size: 1rem;
}

.admin-guide-lead strong {
  color: var(--primary-dark);
  font-size: 1.16rem;
}

.admin-guide-lead span:last-child {
  min-width: 0;
}

.admin-guide-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  color: var(--course-ink);
  background: rgba(255, 253, 248, 0.72);
  border-radius: 999px;
}

.admin-guide-steps {
  gap: 14px;
  margin: 0;
  padding: 0;
  color: #283b35;
  font-weight: 750;
  list-style: none;
  white-space: nowrap;
}

.admin-guide-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.admin-guide-steps li + li::before {
  content: ">";
  margin-right: 4px;
  color: var(--muted);
  font-weight: 900;
}

.admin-guide-steps span,
.admin-stage-number {
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: white;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1;
}

.admin-guide-steps span {
  width: 34px;
  height: 34px;
  background: var(--primary-dark);
  font-size: 1.05rem;
}

.admin-guide-steps li:nth-child(2) span,
.admin-stage-number.is-blue {
  background: #1f7b4e;
}

.admin-guide-steps li:nth-child(3) span {
  background: var(--course-layer-4);
}

.admin-toolbar-actions {
  justify-content: end;
  gap: 10px;
}

.admin-course-editor .admin-editor-layout {
  grid-template-columns: minmax(330px, 402px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.admin-studio-card {
  background:
    linear-gradient(180deg, rgba(207, 225, 185, 0.36), rgba(207, 225, 185, 0.58));
  border: 1px solid rgba(135, 152, 106, 0.52);
  border-radius: 8px;
  box-shadow: 0 18px 52px rgba(33, 62, 51, 0.11);
}

.admin-editor-settings {
  position: sticky;
  top: 98px;
  overflow: hidden;
}

.admin-settings-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.14), transparent 34%),
    linear-gradient(135deg, #0e4d43, #1d704d);
  color: white;
}

.admin-settings-head h2,
.admin-card-head h2,
.admin-module-board h3 {
  margin: 0;
  font-family: var(--font-body);
  letter-spacing: 0;
}

.admin-settings-head h2 {
  font-size: 1.25rem;
}

.admin-settings-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--primary-dark);
  background: rgba(255, 253, 248, 0.94);
  border-radius: 999px;
}

.admin-editor-form {
  padding: 18px 20px 20px;
  background: rgba(207, 225, 185, 0.48);
}

.admin-editor-settings > form:not(.admin-editor-form) {
  padding: 0 20px 20px;
}

.admin-course-editor .admin-form label {
  gap: 8px;
  color: #123d36;
  font-size: 0.92rem;
  font-weight: 850;
}

.admin-course-editor .admin-form input,
.admin-course-editor .admin-form textarea,
.admin-course-editor .admin-form select,
.admin-course-editor .admin-inline-form input {
  min-height: 48px;
  background: rgba(255, 253, 248, 0.98);
  border: 1px solid rgba(192, 202, 184, 0.98);
  border-radius: 8px;
  color: #243933;
  font-weight: 600;
}

.admin-course-editor .admin-form textarea {
  line-height: 1.48;
}

.admin-course-editor .admin-form input:focus,
.admin-course-editor .admin-form textarea:focus,
.admin-course-editor .admin-form select:focus,
.admin-course-editor .admin-inline-form input:focus {
  border-color: #1b8092;
  box-shadow: 0 0 0 4px rgba(27, 128, 146, 0.14);
}

.admin-image-control {
  gap: 10px;
}

.admin-image-control input {
  min-width: 0;
}

.admin-image-control .button {
  flex: 0 0 auto;
  min-height: 48px;
}

.button-icon {
  width: 20px;
  height: 20px;
}

.admin-studio-stack {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.admin-modules-card,
.admin-class-card {
  overflow: hidden;
}

.admin-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(180deg, rgba(207, 225, 185, 0.88), rgba(181, 201, 154, 0.78));
  border-bottom: 1px solid rgba(135, 152, 106, 0.48);
}

.admin-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.admin-card-title {
  gap: 14px;
  min-width: 0;
}

.admin-card-head h2 {
  color: var(--primary-dark);
  font-size: 1.25rem;
  line-height: 1.1;
}

.admin-stage-number {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  background: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(20, 63, 55, 0.18);
  font-size: 1.25rem;
}

.admin-stage-number.is-small {
  width: 40px;
  height: 40px;
  font-size: 1.12rem;
}

.admin-add-module {
  min-width: min(340px, 100%);
}

.admin-add-module summary {
  list-style: none;
}

.admin-add-module summary::-webkit-details-marker {
  display: none;
}

.admin-add-module .admin-inline-form {
  margin-top: 12px;
  padding: 12px;
  background: rgba(181, 201, 154, 0.46);
  border: 1px solid rgba(135, 152, 106, 0.5);
  border-radius: 8px;
}

.admin-course-editor .admin-module-list {
  gap: 16px;
  padding: 20px;
  background: rgba(207, 225, 185, 0.24);
}

.admin-module-board {
  background:
    radial-gradient(circle at 10% 6%, rgba(255, 255, 255, 0.3), transparent 28%),
    linear-gradient(180deg, rgba(207, 225, 185, 0.98), rgba(181, 201, 154, 0.9));
  border: 1px solid rgba(135, 152, 106, 0.58);
  border-radius: 8px;
  overflow: visible;
}

.admin-module-board-head {
  display: grid;
  grid-template-columns: 20px 44px minmax(220px, 1fr) auto 44px 44px;
  gap: 12px 10px;
  align-items: start;
  padding: 18px 20px;
  background: rgba(181, 201, 154, 0.76);
  border-bottom: 1px solid rgba(135, 152, 106, 0.42);
}

.admin-module-board-head > .admin-drag-handle {
  grid-column: 1;
  grid-row: 1;
}

.admin-module-board-head > .admin-stage-number {
  grid-column: 2;
  grid-row: 1;
}

.admin-module-board-head > div:not(.admin-module-actions):not(.admin-module-edit-popover) {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}

.admin-module-board-head > .admin-stage-number,
.admin-module-board-head > .admin-drag-handle,
.admin-module-board-head > div:not(.admin-module-actions):not(.admin-module-edit-popover) {
  align-self: center;
}

.admin-drag-handle {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  gap: 4px;
  justify-content: center;
}

.admin-drag-handle i {
  width: 4px;
  height: 4px;
  background: rgba(20, 63, 55, 0.72);
  border-radius: 999px;
}

.admin-module-kicker {
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.admin-module-board h3 {
  color: var(--primary-dark);
  font-size: 1rem;
  line-height: 1.25;
}

.admin-lessons-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--primary-dark);
  background: rgba(255, 253, 248, 0.84);
  border: 1px solid rgba(135, 152, 106, 0.56);
  border-radius: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.admin-lessons-pill svg,
.admin-lesson-meta svg {
  width: 19px;
  height: 19px;
}

.admin-module-actions {
  grid-column: 4;
  grid-row: 1;
  display: flex;
  gap: 10px;
  justify-self: end;
  align-items: center;
  min-width: 0;
}

.admin-new-class-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 15px 0 12px;
  color: white;
  background: linear-gradient(135deg, #1f7b4e, #0e5d3c);
  border: 1px solid rgba(31, 123, 78, 0.38);
  border-radius: 8px;
  box-shadow: 0 12px 24px rgba(18, 97, 58, 0.18);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.admin-new-class-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(18, 97, 58, 0.22);
  filter: saturate(1.05);
}

.admin-new-class-button:focus-visible {
  outline: 3px solid rgba(27, 128, 146, 0.24);
  outline-offset: 3px;
}

.admin-clap-icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
}

.admin-clap-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  overflow: visible;
}

.admin-new-class-button:hover .admin-clap-stage {
  animation: adminClapStage 800ms ease-in-out both;
  transform-origin: 4px 20px;
}

.admin-new-class-button:hover .admin-clap-lid {
  animation: adminClapLid 400ms ease-in-out both;
  transform-origin: 3px 11px;
}

.admin-module-board .admin-small-editor {
  display: contents;
  position: static;
  min-width: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

.admin-module-board .admin-small-editor summary::-webkit-details-marker {
  display: none;
}

.admin-module-board .admin-small-editor summary,
.admin-module-board .admin-small-editor summary::marker {
  list-style: none;
}

.admin-module-board .admin-small-editor summary {
  grid-column: 5;
  grid-row: 1;
}

.admin-icon-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid rgba(135, 152, 106, 0.54);
  border-radius: 8px;
  color: var(--primary-dark);
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, background 160ms ease;
}

.admin-icon-button:hover {
  transform: translateY(-1px);
  border-color: rgba(35, 106, 93, 0.35);
  box-shadow: 0 10px 24px rgba(52, 41, 30, 0.1);
}

.admin-icon-button::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 50%;
  bottom: calc(100% + 10px);
  z-index: 5;
  width: max-content;
  max-width: 180px;
  padding: 7px 10px;
  background: #17211f;
  color: white;
  border-radius: 7px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.15;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
  white-space: nowrap;
}

.admin-icon-button::before {
  content: "";
  position: absolute;
  right: 50%;
  bottom: calc(100% + 3px);
  z-index: 5;
  border: 6px solid transparent;
  border-top-color: #17211f;
  opacity: 0;
  pointer-events: none;
  transform: translate(50%, 4px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.admin-icon-button:hover::before,
.admin-icon-button:hover::after,
.admin-icon-button:focus-visible::before,
.admin-icon-button:focus-visible::after {
  opacity: 1;
  transform: translate(50%, 0);
}

.admin-icon-button svg {
  width: 24px;
  height: 24px;
  transition: transform 260ms ease;
}

.admin-icon-edit:hover svg {
  animation: adminPenTool 720ms ease both;
}

.admin-icon-edit:hover .admin-pen-line {
  animation: adminPenTrace 720ms ease both;
}

.admin-icon-save:hover svg {
  animation: adminBookmarkBounce 600ms ease-out both;
}

.admin-icon-delete {
  color: #a9362a;
  border-color: rgba(169, 54, 42, 0.32);
}

.admin-icon-delete:hover {
  background: rgba(169, 54, 42, 0.08);
  border-color: rgba(169, 54, 42, 0.54);
}

.admin-icon-delete:hover .admin-trash-lid {
  transform: translateY(-1.2px);
}

.admin-icon-delete:hover .admin-trash-can,
.admin-icon-delete:hover line {
  transform: translateY(1px);
}

.admin-trash-lid,
.admin-trash-can,
.admin-icon-delete line {
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.admin-module-edit-popover {
  position: static;
  display: none;
  grid-column: 1 / -1;
  grid-row: 2;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(151, 169, 124, 0.96), rgba(135, 152, 106, 0.84));
  border: 1px solid rgba(91, 112, 68, 0.58);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(33, 62, 51, 0.1);
}

.admin-module-board-head:has(.admin-small-editor[open]) > .admin-module-edit-popover {
  display: grid;
  margin-top: 4px;
}

.admin-module-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.admin-module-edit-form .admin-icon-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 124px;
  min-height: 46px;
  padding: 0 16px;
  gap: 8px;
  color: white;
  background: var(--primary-dark);
  border-color: rgba(20, 63, 55, 0.46);
  box-shadow: 0 12px 24px rgba(20, 63, 55, 0.18);
  font-weight: 900;
}

.admin-module-edit-form .admin-icon-save::before,
.admin-module-edit-form .admin-icon-save::after {
  display: none;
}

.admin-module-edit-form label {
  display: grid;
  gap: 7px;
  color: #102f2a;
  font-size: 0.86rem;
  font-weight: 900;
}

.admin-module-edit-form input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  background: rgba(255, 253, 248, 0.96);
  border: 1px solid rgba(165, 190, 158, 0.98);
  border-radius: 8px;
  color: #243933;
  font: inherit;
  font-weight: 650;
}

.admin-module-edit-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(35, 106, 93, 0.1);
  outline: none;
}

.admin-module-delete-form {
  grid-column: 6;
  grid-row: 1;
  display: grid;
  margin: 0;
}

@keyframes adminClapStage {
  0%, 62%, 100% {
    transform: rotate(0deg);
  }
  1%, 50% {
    transform: rotate(-10deg);
  }
}

@keyframes adminClapLid {
  0%, 100% {
    transform: rotate(0deg);
  }
  30% {
    transform: rotate(-10deg);
  }
  60% {
    transform: rotate(16deg);
  }
}

@keyframes adminPenTool {
  0%, 100% {
    transform: rotate(0deg) translate(0, 0);
  }
  36% {
    transform: rotate(8deg) translateY(-1px);
  }
  58% {
    transform: rotate(-3deg) translateY(1px);
  }
  78% {
    transform: rotate(8deg) translateY(0);
  }
}

@keyframes adminPenTrace {
  0%, 20% {
    stroke-dasharray: 0 24;
    opacity: 0;
  }
  100% {
    stroke-dasharray: 24 0;
    opacity: 1;
  }
}

@keyframes adminBookmarkBounce {
  0%, 100% {
    transform: scale(1);
  }
  25% {
    transform: scale(0.9, 1.28);
  }
  50% {
    transform: scale(1.1, 0.92);
  }
  72% {
    transform: scale(0.96, 1.05);
  }
}

.admin-lesson-table {
  margin: 0 20px 20px;
  overflow: hidden;
  background: var(--course-layer-3);
  border: 1px solid rgba(86, 103, 66, 0.42);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 253, 248, 0.28);
}

.admin-lesson-row {
  border-bottom: 1px solid rgba(86, 103, 66, 0.32);
}

.admin-lesson-row:last-child {
  border-bottom: 0;
}

.admin-lesson-row summary {
  display: grid;
  grid-template-columns: 44px minmax(180px, 1fr) 110px 130px 84px 28px;
  gap: 12px;
  align-items: center;
  min-height: 76px;
  padding: 10px 14px;
  color: var(--primary-dark);
  background: rgba(231, 241, 219, 0.9);
  cursor: pointer;
  list-style: none;
}

.admin-lesson-row:nth-child(even) summary {
  background: rgba(218, 233, 205, 0.92);
}

.admin-lesson-row[open] summary {
  background: rgba(207, 225, 185, 0.98);
}

.admin-lesson-row summary::-webkit-details-marker {
  display: none;
}

.admin-play-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--primary-dark);
  background: rgba(255, 253, 248, 0.82);
  border: 1px solid rgba(135, 152, 106, 0.58);
  border-radius: 8px;
}

.admin-lesson-row strong {
  min-width: 0;
  font-size: 0.92rem;
  line-height: 1.25;
}

.admin-lesson-meta {
  gap: 7px;
  color: #435852;
  font-size: 0.92rem;
  white-space: nowrap;
}

.admin-lesson-row em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: var(--primary-dark);
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(135, 152, 106, 0.58);
  border-radius: 8px;
  font-style: normal;
  font-weight: 850;
}

.admin-row-menu {
  color: var(--primary-dark);
  font-size: 1.45rem;
  line-height: 1;
  text-align: center;
}

.admin-lesson-row .admin-lesson-edit-form,
.admin-lesson-row > form {
  padding: 16px;
  background: rgba(181, 201, 154, 0.52);
  border-top: 1px solid rgba(86, 103, 66, 0.32);
}

.admin-class-card .admin-card-head {
  background: linear-gradient(180deg, rgba(207, 225, 185, 0.96), rgba(181, 201, 154, 0.9));
}

.admin-class-dialog {
  width: min(1040px, calc(100vw - 32px));
  max-height: min(860px, calc(100vh - 32px));
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.admin-class-dialog::backdrop {
  background: rgba(13, 25, 22, 0.68);
  backdrop-filter: blur(4px);
}

.admin-class-dialog .admin-dialog-panel {
  max-height: min(860px, calc(100vh - 32px));
  overflow: auto;
  border-color: rgba(135, 152, 106, 0.72);
  box-shadow: 0 34px 86px rgba(13, 25, 22, 0.32);
}

.admin-dialog-head {
  position: sticky;
  top: 0;
  z-index: 2;
}

.admin-dialog-head .admin-card-title {
  align-items: start;
}

.admin-dialog-head p {
  margin: 4px 0 0;
  color: #5d6c67;
  font-size: 0.94rem;
  font-weight: 600;
}

.admin-dialog-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  color: var(--primary-dark);
  background: rgba(255, 253, 248, 0.95);
  border: 1px solid rgba(155, 181, 148, 0.72);
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.admin-dialog-close:hover {
  border-color: rgba(169, 54, 42, 0.36);
  color: #a9362a;
}

.admin-new-class-form {
  gap: 0;
}

.admin-class-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 10px;
  background: rgba(255, 253, 248, 0.9);
  border: 1px solid rgba(222, 210, 195, 0.92);
  border-radius: 10px;
  overflow: hidden;
}

.admin-class-tabs span {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #243933;
  border-right: 1px solid rgba(222, 210, 195, 0.82);
  font-size: 1rem;
  font-weight: 800;
}

.admin-class-tabs span:last-child {
  border-right: 0;
}

.admin-class-tabs .is-active {
  color: #0c6978;
  background: linear-gradient(135deg, rgba(229, 246, 246, 0.9), rgba(245, 251, 247, 0.82));
  box-shadow: inset 0 0 0 1px rgba(27, 128, 146, 0.38);
}

.admin-class-upload-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(240px, 360px);
  gap: 34px;
  align-items: center;
  padding: 26px 20px 14px;
}

.admin-video-drop {
  min-height: 220px;
  background: linear-gradient(135deg, rgba(244, 252, 252, 0.82), rgba(255, 253, 248, 0.96));
  border: 2px dashed rgba(27, 128, 146, 0.52);
  color: #0c6978;
}

.admin-video-drop .upload-icon {
  width: 66px;
  height: 54px;
  background: linear-gradient(135deg, #1b8092, #0f6b79);
  color: white;
}

.admin-video-drop strong {
  margin-top: 10px;
  color: #0c6978;
  font-size: 1.18rem;
}

.admin-video-drop small {
  max-width: 360px;
  margin-top: 4px;
  color: #315c64;
}

.admin-video-drop b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 14px;
  padding: 0 26px;
  background: linear-gradient(135deg, #1b8092, #0c6978);
  color: white;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.92rem;
}

.admin-upload-tip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 120px;
  padding: 18px;
  background: linear-gradient(135deg, rgba(229, 246, 246, 0.68), rgba(244, 252, 252, 0.82));
  border: 1px solid rgba(27, 128, 146, 0.24);
  border-radius: 8px;
  color: #14535d;
}

.admin-upload-tip > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: #0c6978;
  background: rgba(255, 253, 248, 0.78);
  border-radius: 999px;
}

.admin-upload-tip strong {
  color: #14535d;
}

.admin-upload-tip p {
  margin: 4px 0 0;
  color: #315c64;
  font-size: 0.92rem;
}

.admin-format-note {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 20px 18px;
  padding: 8px 14px;
  color: #0c6978;
  background: rgba(229, 246, 246, 0.72);
  border-radius: 8px;
  font-size: 0.9rem;
}

.admin-format-note span + span::before {
  content: ".";
  margin-right: 18px;
  font-weight: 900;
}

.admin-class-fields {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(140px, 0.45fr) minmax(220px, 0.8fr);
  gap: 14px;
  padding: 0 20px 20px;
}

.admin-class-title-field {
  grid-column: 1 / -1;
}

.admin-class-actions {
  display: flex;
  justify-content: end;
  padding: 16px 20px;
  background: rgba(255, 249, 241, 0.72);
  border-top: 1px solid rgba(222, 210, 195, 0.82);
}

.admin-class-actions .button {
  min-width: 260px;
}

@media (max-width: 1180px) {
  .admin-studio-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-guide-steps,
  .admin-toolbar-actions {
    justify-content: start;
    flex-wrap: wrap;
  }

  .admin-course-editor .admin-editor-layout {
    grid-template-columns: 1fr;
  }

  .admin-editor-settings {
    position: static;
  }

  .admin-module-board-head {
    grid-template-columns: 20px 44px minmax(0, 1fr) auto 44px 44px;
  }

  .admin-module-actions {
    grid-column: 4;
    grid-row: 1;
    flex-wrap: wrap;
    justify-content: end;
  }
}

@media (max-width: 760px) {
  .admin-course-editor.admin-content-shell {
    max-width: 100%;
    padding: 18px 14px 44px;
  }

  .admin-studio-toolbar,
  .admin-card-head {
    grid-template-columns: 1fr;
  }

  .admin-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar-actions .button,
  .admin-add-module,
  .admin-add-module summary,
  .admin-add-module .button,
  .admin-class-actions .button {
    width: 100%;
  }

  .admin-module-board-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px 44px;
    gap: 10px;
    padding: 14px;
  }

  .admin-drag-handle {
    display: none;
  }

  .admin-module-board-head > .admin-stage-number {
    grid-column: 1;
    grid-row: 1;
  }

  .admin-module-board-head > div:not(.admin-module-actions):not(.admin-module-edit-popover) {
    grid-column: 2;
    grid-row: 1;
  }

  .admin-lessons-pill {
    justify-content: center;
    width: 100%;
  }

  .admin-module-actions {
    grid-column: 1 / -1;
    grid-row: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    justify-self: stretch;
    justify-content: stretch;
    max-width: 100%;
  }

  .admin-new-class-button {
    width: 100%;
  }

  .admin-module-board .admin-small-editor summary {
    grid-column: 3;
    grid-row: 1;
  }

  .admin-module-delete-form {
    grid-column: 4;
    grid-row: 1;
  }

  .admin-module-edit-popover {
    grid-column: 1 / -1;
    grid-row: 3;
    width: 100%;
    min-width: 0;
  }

  .admin-module-edit-form {
    grid-template-columns: 1fr;
  }

  .admin-module-edit-form .admin-icon-save {
    width: 100%;
  }

  .admin-lesson-row summary {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .admin-lesson-meta,
  .admin-lesson-row em,
  .admin-row-menu {
    grid-column: 2;
    justify-content: start;
  }

  .admin-class-tabs,
  .admin-class-upload-grid,
  .admin-class-fields {
    grid-template-columns: 1fr;
  }

  .admin-class-upload-grid {
    gap: 14px;
  }

  .admin-class-dialog {
    width: min(100vw - 18px, 640px);
    max-height: calc(100vh - 18px);
  }

  .admin-class-dialog .admin-dialog-panel {
    max-height: calc(100vh - 18px);
  }

  .admin-image-control {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
