:root {
  --graphite: #060b14;
  --navy: #0e1b3d;
  --gold: #d4af62;
  --cyan: #3fd9ff;
  --violet: #7b61ff;
  --white: #f7f8fa;
  --text: #f7f8fa;
  --muted: #aeb8c8;
  --line: rgba(212, 175, 98, .28);
  --glass: rgba(8, 16, 31, .78);
  --glass-2: rgba(14, 27, 61, .55);
  --field-bg: rgba(255, 255, 255, .055);
  --field-border: rgba(247, 248, 250, .12);
  --topbar-bg: rgba(6, 11, 20, .84);
  --body-bg:
    radial-gradient(circle at 85% 12%, rgba(123, 97, 255, .18), transparent 28rem),
    radial-gradient(circle at 20% 85%, rgba(63, 217, 255, .10), transparent 24rem),
    linear-gradient(135deg, var(--graphite), #07101e 48%, #05080e);
  --page-grid:
    linear-gradient(115deg, transparent 0 64%, rgba(212, 175, 98, .12) 64.1% 64.25%, transparent 64.35%),
    linear-gradient(115deg, transparent 0 72%, rgba(63, 217, 255, .09) 72.1% 72.25%, transparent 72.35%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  --danger: #ff6b7a;
  --success: #53e0a3;
}

/* Minakov Academy public identity */
.topbar {
  min-height: 76px;
  padding: 13px max(24px, calc((100vw - 1240px) / 2));
  border-bottom-color: rgba(78, 220, 231, .16);
  background: rgba(5, 10, 18, .88);
}

.lms-home {
  --academy-cyan: #4edce7;
  --academy-gold: #d8b36a;
  --academy-ink: #050a12;
  --academy-panel: #0b1421;
  background: var(--academy-ink);
}

.lms-home-hero {
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: calc(100svh - 76px);
  padding: 72px 0 58px;
  overflow: hidden;
  background: #050a12;
}

.lms-home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 10, 18, .96) 0%, rgba(5, 10, 18, .82) 42%, rgba(5, 10, 18, .20) 78%, rgba(5, 10, 18, .48) 100%),
    linear-gradient(0deg, #050a12 0%, transparent 22%);
}

.lms-home-hero::after {
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 1px;
  transform: none;
  opacity: 1;
  background: linear-gradient(90deg, transparent, rgba(78, 220, 231, .65), rgba(216, 179, 106, .5), transparent);
}

.lms-home-hero__backdrop {
  position: absolute;
  inset: -5% -3%;
  z-index: -3;
  background: url('../img/minakov-academy-hero-v1.webp') 63% center / cover no-repeat;
  transform: translate3d(calc(var(--pointer-x, 0) * -12px), calc(var(--parallax-y, 0px) * .12 + var(--pointer-y, 0) * -8px), 0) scale(1.07);
  will-change: transform;
}

.lms-home-hero__lines {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .34;
  background:
    linear-gradient(112deg, transparent 0 47%, rgba(78, 220, 231, .2) 47.2%, transparent 47.5%),
    linear-gradient(101deg, transparent 0 70%, rgba(216, 179, 106, .18) 70.2%, transparent 70.5%);
  transform: translate3d(calc(var(--pointer-x, 0) * 14px), calc(var(--parallax-y, 0px) * .22), 0);
  will-change: transform;
}

.lms-home-hero__grid {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 420px);
  gap: 72px;
  align-items: end;
}

.lms-home-hero__copy {
  max-width: 780px;
  padding: 42px 0 28px;
}

.lms-home-hero__copy .eyebrow,
.lms-home-author-band .eyebrow,
.lms-home-section-head .eyebrow {
  color: var(--academy-gold);
}

.lms-home-hero__copy h1 {
  max-width: 780px;
  margin: 0 0 26px;
  font-size: 62px;
  line-height: 1.02;
  letter-spacing: 0;
  text-shadow: 0 10px 36px rgba(0, 0, 0, .38);
}

.lms-home-hero__copy h1 span {
  display: block;
  margin-top: 12px;
  color: #b9c8d8;
  font-family: Inter, sans-serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.25;
}

.lms-home-hero__copy > p:not(.eyebrow) {
  max-width: 680px;
  color: #c5d0dc;
  font-size: 19px;
}

.lms-home-hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.lms-home-hero__proof span {
  display: grid;
  gap: 3px;
  color: #9baabd;
  font-size: 12px;
}

.lms-home-hero__proof strong {
  color: #f6f8fb;
  font-family: "Unbounded", sans-serif;
  font-size: 20px;
}

.lms-home-hero__author {
  position: relative;
  margin: 0;
  transform: translate3d(calc(var(--pointer-x, 0) * 8px), calc(var(--pointer-y, 0) * 6px), 0);
  will-change: transform;
}

.lms-home-hero__author::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border: 1px solid rgba(78, 220, 231, .28);
  background: rgba(4, 10, 18, .62);
  backdrop-filter: blur(10px);
}

.lms-home-hero__author img {
  display: block;
  width: 100%;
  height: 430px;
  object-fit: cover;
  object-position: center 18%;
  filter: saturate(.9) contrast(1.03);
}

.lms-home-hero__author figcaption {
  display: grid;
  gap: 5px;
  padding: 18px 20px 20px;
  border-top: 1px solid rgba(216, 179, 106, .35);
}

.lms-home-hero__author figcaption strong {
  color: #fff;
  font-family: "Unbounded", sans-serif;
  font-size: 17px;
}

.lms-home-hero__author figcaption span {
  color: #aebccd;
  font-size: 13px;
  line-height: 1.45;
}

.lms-home-author-band {
  padding: 100px 0;
  border-block: 1px solid rgba(255, 255, 255, .07);
  background: linear-gradient(110deg, #0a111b, #0d1825 70%, #09111b);
}

.lms-home-author-band__grid {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 84px;
  align-items: center;
}

.lms-home-author-band__portrait {
  position: relative;
  height: 510px;
  border: 1px solid rgba(216, 179, 106, .32);
  overflow: hidden;
  transform: translateY(var(--portrait-y, 0));
}

.lms-home-author-band__portrait::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 38%;
  background: linear-gradient(transparent, rgba(5, 10, 18, .78));
}

.lms-home-author-band__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.lms-home-author-band__copy h2 {
  max-width: 760px;
  margin: 10px 0 22px;
  font-size: 38px;
  line-height: 1.16;
}

.lms-home-author-band__copy > p:not(.eyebrow) {
  max-width: 740px;
  color: #b7c3d1;
  font-size: 18px;
  line-height: 1.7;
}

.lms-home-author-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 30px 0;
}

.lms-home-author-facts span {
  position: relative;
  padding: 12px 0 12px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #e6ebf1;
  line-height: 1.45;
}

.lms-home-author-facts span::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--academy-cyan);
  transform: rotate(45deg);
}

.lms-home-text-link {
  color: var(--academy-gold);
  font-weight: 800;
}

.site-footer__brand-block {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.site-footer__brand-block img {
  width: 48px;
  height: 48px;
}

@media (max-width: 1120px) {
  .lms-home-hero {
    min-height: auto;
  }

  .lms-home-hero__grid {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 36px;
  }

  .lms-home-hero__copy h1 {
    font-size: 48px;
  }

  .lms-home-hero__author img {
    height: 370px;
  }

  .lms-home-author-band__grid {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 860px) {
  .topbar {
    min-height: 68px;
    padding: 10px 14px;
  }

  .brand--logo img {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .brand__wordmark strong {
    font-size: 12px;
  }

  .brand__wordmark small {
    font-size: 9px;
  }

  .lms-home-hero {
    min-height: auto;
    padding: 50px 0 42px;
  }

  .lms-home-hero__grid,
  .lms-home-author-band__grid {
    grid-template-columns: 1fr;
  }

  .lms-home-hero__copy {
    padding: 0;
  }

  .lms-home-hero__copy h1 {
    font-size: 42px;
  }

  .lms-home-hero__copy h1 span {
    font-size: 22px;
  }

  .lms-home-hero__author {
    max-width: 420px;
  }

  .lms-home-author-band {
    padding: 72px 0;
  }

  .lms-home-author-band__portrait {
    width: min(100%, 420px);
    height: 460px;
    transform: none;
  }
}

@media (max-width: 560px) {
  .brand__wordmark small {
    display: none;
  }

  .brand__wordmark strong {
    max-width: 180px;
    white-space: normal;
  }

  .lms-home-hero__backdrop {
    background-position: 69% center;
    transform: scale(1.05);
  }

  .lms-home-hero::before {
    background: linear-gradient(90deg, rgba(5, 10, 18, .96), rgba(5, 10, 18, .74)), linear-gradient(0deg, #050a12, transparent 32%);
  }

  .lms-home-hero__copy h1 {
    font-size: 36px;
    line-height: 1.06;
  }

  .lms-home-hero__copy h1 span {
    font-size: 19px;
  }

  .lms-home-hero__copy > p:not(.eyebrow) {
    font-size: 17px;
  }

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

  .lms-home-hero__author img {
    height: 340px;
  }

  .lms-home-author-band__portrait {
    height: 420px;
  }

  .lms-home-author-band__copy h2 {
    font-size: 30px;
  }

  .lms-home-author-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce), (pointer: coarse) {
  .lms-home-hero__backdrop,
  .lms-home-hero__lines,
  .lms-home-hero__author,
  .lms-home-author-band__portrait {
    transform: none;
  }
}

:root[data-theme="light"] {
  --graphite: #f3f6fb;
  --navy: #e7edf7;
  --white: #132034;
  --text: #132034;
  --muted: #5d6b80;
  --line: rgba(172, 133, 54, .34);
  --glass: rgba(255, 255, 255, .86);
  --glass-2: rgba(245, 248, 252, .82);
  --field-bg: rgba(255, 255, 255, .92);
  --field-border: rgba(19, 32, 52, .18);
  --topbar-bg: rgba(255, 255, 255, .88);
  --body-bg:
    radial-gradient(circle at 86% 10%, rgba(212, 175, 98, .18), transparent 26rem),
    radial-gradient(circle at 16% 82%, rgba(63, 217, 255, .16), transparent 24rem),
    linear-gradient(135deg, #f7f9fd, #edf2f8 52%, #f9fbff);
  --page-grid:
    linear-gradient(115deg, transparent 0 64%, rgba(212, 175, 98, .13) 64.1% 64.25%, transparent 64.35%),
    linear-gradient(115deg, transparent 0 72%, rgba(63, 217, 255, .12) 72.1% 72.25%, transparent 72.35%),
    linear-gradient(rgba(19,32,52,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19,32,52,.035) 1px, transparent 1px);
  --danger: #b42336;
  --success: #087b52;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--white);
  background: var(--body-bg);
  font-family: Inter, Manrope, system-ui, -apple-system, Segoe UI, sans-serif;
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: var(--page-grid);
  background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), rgba(0,0,0,.15));
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--white);
  background: var(--field-bg);
  outline: none;
}

.password-toggle-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.password-toggle-wrap input {
  padding-right: 98px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  min-width: 78px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 7px 10px;
  color: var(--gold);
  background: rgba(6, 11, 20, .62);
  font: 800 12px/1 Inter, sans-serif;
  cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
  color: #120f08;
  background: var(--gold);
}

:root[data-theme="light"] .password-toggle {
  background: rgba(255,255,255,.78);
}

select {
  color-scheme: dark;
}

:root[data-theme="light"] select {
  color-scheme: light;
}

select option {
  color: var(--white);
  background: var(--navy);
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
}

h1,
h2,
h3,
.brand span,
.brand-mark,
.kpi strong,
.score-card strong,
.progress-ring strong {
  font-family: Unbounded, Inter, sans-serif;
  letter-spacing: 0;
}

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

h1 {
  font-size: clamp(32px, 5vw, 64px);
  line-height: 1.06;
}

h2 {
  font-size: clamp(22px, 3vw, 34px);
}

h3 {
  font-size: 18px;
}

hr {
  border: 0;
  border-top: 1px solid rgba(247, 248, 250, .10);
  margin: 24px 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px clamp(18px, 4vw, 52px);
  background: var(--topbar-bg);
  border-bottom: 1px solid rgba(212, 175, 98, .18);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
}

.brand--logo {
  align-items: center;
  min-width: 0;
}

.brand--logo img {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.brand__wordmark {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.brand__wordmark strong {
  color: var(--text);
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  line-height: 1.12;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand__wordmark small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.brand span,
.brand-mark {
  color: var(--gold);
  font-weight: 900;
}

.brand small {
  color: var(--muted);
}

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

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  padding: 8px 11px;
  color: var(--white);
  background: rgba(212, 175, 98, .10);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: rgba(212, 175, 98, .62);
  background: rgba(212, 175, 98, .16);
}

.theme-toggle__icon {
  color: var(--gold);
  font-size: 15px;
  line-height: 1;
}

.topbar-theme-toggle {
  flex: 0 0 auto;
}

.topnav a,
.admin-menu a {
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
}

.topnav a:hover,
.admin-menu a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .06);
}

.preview-switcher {
  position: sticky;
  top: 70px;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  width: min(100% - 32px, 1320px);
  margin: 0 auto 12px;
  border: 1px solid rgba(212, 175, 98, .26);
  border-radius: 8px;
  padding: 8px;
  background: rgba(6, 11, 20, .86);
  backdrop-filter: blur(16px);
}

.preview-switcher span {
  margin: 0 4px 0 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.preview-switcher button {
  min-height: 32px;
  border: 1px solid rgba(247, 248, 250, .14);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.preview-switcher button.active {
  color: #130f07;
  border-color: rgba(212, 175, 98, .72);
  background: linear-gradient(135deg, #f2d690, var(--gold));
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1220px, calc(100% - 32px));
  margin: 34px auto 86px;
}

.auth-screen {
  display: grid;
  min-height: calc(100vh - 72px);
  place-items: center;
  padding: 24px;
}

.auth-card,
.panel,
.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--glass), rgba(14, 27, 61, .34));
  box-shadow: 0 24px 90px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(18px);
}

:root[data-theme="light"] .auth-card,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .hero-panel {
  background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(238, 244, 252, .82));
  box-shadow: 0 24px 70px rgba(40, 58, 82, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
}

:root[data-theme="light"] .preview-switcher,
:root[data-theme="light"] .mobile-nav,
:root[data-theme="light"] .lesson-card,
:root[data-theme="light"] .workshop-card,
:root[data-theme="light"] .workshop-strip__card,
:root[data-theme="light"] .available-course-card,
:root[data-theme="light"] .course-module-block,
:root[data-theme="light"] .course-lesson-row,
:root[data-theme="light"] .prompt-card,
:root[data-theme="light"] .prompt-card pre,
:root[data-theme="light"] .workshop-order-form,
:root[data-theme="light"] .workshop-price-card,
:root[data-theme="light"] .step,
:root[data-theme="light"] .video-placeholder,
:root[data-theme="light"] .access-lock,
:root[data-theme="light"] .quiz-box,
:root[data-theme="light"] .trainer-box,
:root[data-theme="light"] .lesson-notes,
:root[data-theme="light"] .locked-material,
:root[data-theme="light"] .user-management-row,
:root[data-theme="light"] .content-table-row,
:root[data-theme="light"] .admin-create-panel,
:root[data-theme="light"] .material-admin-card,
:root[data-theme="light"] .lesson-material-card,
:root[data-theme="light"] .content-filter-stats span,
:root[data-theme="light"] .notice {
  background: rgba(255, 255, 255, .72);
}

:root[data-theme="light"] .landing-hero,
:root[data-theme="light"] .workshops-showcase,
:root[data-theme="light"] .workshop-hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(212, 175, 98, .16), transparent 22rem),
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(239, 246, 252, .84));
}

:root[data-theme="light"] .topnav a:hover,
:root[data-theme="light"] .admin-menu a:hover,
:root[data-theme="light"] .preview-switcher button,
:root[data-theme="light"] .btn {
  background: rgba(19, 32, 52, .055);
}

:root[data-theme="light"] hr {
  border-top-color: rgba(19, 32, 52, .10);
}

:root[data-theme="light"] body,
:root[data-theme="light"] .auth-card,
:root[data-theme="light"] .panel,
:root[data-theme="light"] .hero-panel,
:root[data-theme="light"] .lesson-card,
:root[data-theme="light"] .workshop-card,
:root[data-theme="light"] .workshop-order-form,
:root[data-theme="light"] .workshop-price-card,
:root[data-theme="light"] .step,
:root[data-theme="light"] .quiz-box,
:root[data-theme="light"] .trainer-box,
:root[data-theme="light"] .lesson-notes,
:root[data-theme="light"] .locked-material,
:root[data-theme="light"] .user-management-row,
:root[data-theme="light"] .content-table-row,
:root[data-theme="light"] .admin-create-panel,
:root[data-theme="light"] .material-admin-card,
:root[data-theme="light"] .lesson-material-card,
:root[data-theme="light"] .content-filter-stats span {
  color: #132034;
}

:root[data-theme="light"] .user-stats strong {
  color: #132034;
}

:root[data-theme="light"] .demo-access-popover[open] .demo-link-form {
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 50px rgba(40, 58, 82, .16);
}

:root[data-theme="light"] p,
:root[data-theme="light"] label,
:root[data-theme="light"] small,
:root[data-theme="light"] .muted,
:root[data-theme="light"] .brand small,
:root[data-theme="light"] .topnav a,
:root[data-theme="light"] .admin-menu a,
:root[data-theme="light"] .auth-alt,
:root[data-theme="light"] .preview-switcher span,
:root[data-theme="light"] .tariff-locked p {
  color: #5d6b80;
}

:root[data-theme="light"] input,
:root[data-theme="light"] textarea,
:root[data-theme="light"] select,
:root[data-theme="light"] select option {
  color: #132034;
}

:root[data-theme="light"] input::placeholder,
:root[data-theme="light"] textarea::placeholder {
  color: #7c8798;
}

:root[data-theme="light"] .topnav a:hover,
:root[data-theme="light"] .admin-menu a:hover,
:root[data-theme="light"] .btn,
:root[data-theme="light"] .theme-toggle {
  color: #132034;
}

:root[data-theme="light"] .btn.primary,
:root[data-theme="light"] .preview-switcher button.active {
  color: #120f08;
}

:root[data-theme="light"] .notice.danger,
:root[data-theme="light"] .tariff-locked,
:root[data-theme="light"] .access-expired {
  color: #8f1628;
}

:root[data-theme="light"] .notice.success,
:root[data-theme="light"] .access-ok {
  color: #087b52;
}

.auth-card {
  width: min(560px, 100%);
  padding: clamp(24px, 4vw, 34px);
  overflow: hidden;
}

.auth-card h1 {
  max-width: 100%;
  font-size: clamp(40px, 6.5vw, 56px);
  line-height: 1.08;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.auth-method {
  display: grid;
  gap: 14px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
}

.auth-method h2 {
  margin: 0;
  font-family: var(--font-title);
  font-size: 22px;
  line-height: 1.2;
}

.auth-method .muted {
  margin: 0;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-alt {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.auth-alt a {
  color: var(--gold);
  font-weight: 800;
}

.brand-mark {
  font-size: 36px;
  margin-bottom: 18px;
}

.brand-mark--logo {
  margin-bottom: 22px;
}

.brand-mark--logo img {
  display: block;
  width: min(100%, 320px);
  max-height: 108px;
  height: auto;
  object-fit: contain;
}

.stack {
  display: grid;
  gap: 16px;
}

.stack.compact {
  gap: 12px;
}

.billing-form {
  margin-top: 22px;
}

.billing-panel {
  display: grid;
  gap: 18px;
  max-width: 1220px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
}

.billing-panel .eyebrow {
  margin-bottom: 0;
}

.billing-panel h1 {
  max-width: 1050px;
  margin-bottom: 0;
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.billing-panel .lead {
  max-width: 980px;
  margin-bottom: 0;
  color: var(--white);
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.65;
}

.billing-panel .result-box {
  margin: 0;
  padding: 18px 20px;
  font-weight: 800;
}

.billing-form {
  gap: 18px 16px;
}

.billing-form .wide {
  display: block;
}

.billing-form .checkline {
  align-items: flex-start;
}

.billing-form .btn {
  width: min(100%, 600px);
}

.billing-panel > .muted {
  max-width: 920px;
  margin: -4px 0 0;
  font-size: 16px;
  line-height: 1.5;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid rgba(212, 175, 98, .55);
  border-radius: 8px;
  padding: 0 18px;
  color: var(--white);
  background: rgba(255, 255, 255, .05);
  cursor: pointer;
  font-weight: 700;
}

.btn.primary {
  color: #120f08;
  background: linear-gradient(135deg, #f2d690, var(--gold));
}

.btn.ghost {
  color: var(--gold);
}

.btn.danger {
  color: #26070c;
  border-color: rgba(255, 107, 122, .65);
  background: linear-gradient(135deg, #ff9aa5, var(--danger));
}

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

.notice {
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .07);
}

.notice.danger {
  color: #ffd5da;
  border: 1px solid rgba(255, 107, 122, .45);
}

.notice.success {
  color: #d8ffec;
  border: 1px solid rgba(83, 224, 163, .45);
}

.tariff-pill {
  display: inline-flex;
  width: fit-content;
  margin: 6px 0 12px;
  border: 1px solid rgba(212, 175, 98, .42);
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--gold);
  background: rgba(212, 175, 98, .08);
  font-size: 12px;
  font-weight: 800;
}

.tariff-locked {
  display: grid;
  gap: 8px;
  border: 1px solid rgba(255, 107, 122, .34);
  border-radius: 8px;
  padding: 14px;
  color: #ffd5da;
  background: rgba(255, 107, 122, .08);
}

.tariff-locked p {
  margin: 0;
  color: var(--muted);
}

.tariff-locked .btn,
.access-lock .btn {
  width: fit-content;
  margin-top: 6px;
}

.access-ok,
.access-expired {
  width: fit-content;
  border-radius: 8px;
  padding: 7px 10px;
  font-size: 13px;
  font-weight: 800;
}

.access-ok {
  color: #d8ffec;
  background: rgba(83, 224, 163, .10);
}

.access-expired {
  color: #ffd5da;
  background: rgba(255, 107, 122, .10);
}

.access-lock {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(255, 107, 122, .34);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 107, 122, .08);
}

.guest-preview .route-head {
  grid-template-columns: 1fr 150px;
}

.guest-request-form {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin-top: 18px;
  padding-top: 4px;
}

.guest-route-map {
  overflow: visible;
}

.guest-preview .route-stage {
  margin: 0;
  overflow: visible;
}

.guest-preview .route-stage::before,
.guest-preview .route-stage::after {
  display: none;
}

.guest-preview .route-map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}

.guest-preview .station {
  flex: initial;
}

.masterclass-panel {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  margin-bottom: 26px;
}

.masterclass-video {
  display: grid;
  gap: 12px;
}

.masterclass-video--wide .video-frame,
.masterclass-video--wide .video-placeholder {
  min-height: 0;
}

.masterclass-video h2 {
  margin: 0;
  font-size: 20px;
}

.masterclass-panel .muted,
.masterclass-panel .status-line,
.guest-preview p,
.course-route .route-head p {
  line-height: 1.65;
}

.masterclass-panel .section-title {
  gap: 18px;
}

.access-request-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border-radius: 8px;
}

.access-request-row {
  display: grid;
  grid-template-columns: 1.2fr 1.4fr 140px 110px 1.3fr;
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .035);
}

.access-request-row small {
  color: var(--muted);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 22px;
  align-items: center;
  padding: clamp(24px, 5vw, 48px);
  margin-bottom: 28px;
  overflow: hidden;
}

.hero-panel::after,
.course-route::after {
  content: "";
  position: absolute;
}

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.score-card,
.progress-ring {
  display: grid;
  place-items: center;
  align-content: center;
  justify-items: center;
  gap: 6px;
  width: 150px;
  min-width: 150px;
  aspect-ratio: 1;
  padding: 16px;
  border: 1px solid rgba(212, 175, 98, .45);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(212, 175, 98, .16), rgba(14, 27, 61, .35));
  text-align: center;
  overflow: hidden;
}

.score-card strong,
.progress-ring strong {
  color: var(--gold);
  font-size: 38px;
  line-height: 1;
}

.score-card span,
.score-card small,
.progress-ring span {
  color: var(--muted);
  max-width: 100%;
  font-size: 14px;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.course-route {
  position: relative;
  padding: clamp(22px, 3vw, 34px);
  overflow: hidden;
}

.route-head {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
}

.route-controls {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  margin-bottom: 18px;
}

.route-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 175, 98, .42);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, .045);
  font-size: 28px;
  cursor: pointer;
}

.route-arrow:hover,
.route-dots button:hover {
  border-color: rgba(212, 175, 98, .8);
  background: rgba(212, 175, 98, .12);
}

.route-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.route-dots button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(247, 248, 250, .14);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.route-dots button.active {
  color: #120f08;
  border-color: var(--gold);
  background: linear-gradient(135deg, #f2d690, var(--gold));
  box-shadow: 0 0 24px rgba(212, 175, 98, .32);
}

.route-stage {
  position: relative;
  margin: 0 -4px;
  overflow: hidden;
}

.route-stage::before,
.route-stage::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 3;
  width: 54px;
  pointer-events: none;
}

.route-stage::before {
  left: 0;
  background: linear-gradient(to right, rgba(8, 16, 31, .78), transparent);
}

.route-stage::after {
  right: 0;
  background: linear-gradient(to left, rgba(8, 16, 31, .78), transparent);
}

.route-map {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 18px 112px 34px;
  scroll-padding-inline: 112px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.route-map::-webkit-scrollbar {
  display: none;
}

.station {
  position: relative;
  flex: 0 0 330px;
  min-height: 100%;
  padding: 24px;
  border: 1px solid rgba(247, 248, 250, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  scroll-snap-align: start;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.station.active {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 98, .72);
  background: linear-gradient(180deg, rgba(212, 175, 98, .105), rgba(255, 255, 255, .045));
  box-shadow: 0 22px 70px rgba(0, 0, 0, .32), 0 0 0 1px rgba(212, 175, 98, .12), 0 0 34px rgba(212, 175, 98, .18);
}

.station:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 98, .34);
  background: rgba(255, 255, 255, .055);
}

.station.active:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 98, .80);
}

.station::before {
  content: "";
  position: absolute;
  top: 33px;
  left: -25px;
  width: 25px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.station:first-child::before {
  display: none;
}

.station-node {
  width: 18px;
  height: 18px;
  margin-bottom: 14px;
  border: 3px solid var(--gold);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(212, 175, 98, .65);
}

.station.active .station-node {
  background: var(--gold);
  box-shadow: 0 0 0 6px rgba(212, 175, 98, .14), 0 0 30px rgba(212, 175, 98, .82);
}

.level-badge {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  border: 1px solid rgba(212, 175, 98, .42);
  border-radius: 999px;
  padding: 6px 10px;
  color: #f7e3a7;
  background: linear-gradient(135deg, rgba(212, 175, 98, .18), rgba(255, 255, 255, .045));
  box-shadow: 0 10px 28px rgba(212, 175, 98, .10);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.number-badge,
.step-body em,
.table strong em {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  border: 1px solid rgba(212, 175, 98, .36);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--gold);
  background: rgba(212, 175, 98, .08);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
}

.step-body em,
.table strong em {
  display: flex;
}

.table strong {
  display: grid;
  gap: 4px;
}

.steps {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(247, 248, 250, .09);
  border-radius: 8px;
  background: rgba(6, 11, 20, .5);
}

.lesson-cover {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 10px 0 2px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 98, .20);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.lesson-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.step.locked {
  cursor: not-allowed;
  opacity: .62;
  filter: grayscale(.25);
}

.step > span:not(.lesson-cover) {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--gold);
  border: 1px solid rgba(212, 175, 98, .4);
  border-radius: 8px;
}

.step .lesson-cover {
  display: block;
  width: 100%;
  height: auto;
  grid-column: auto;
}

.step .lesson-cover img {
  width: 100%;
  height: 100%;
}

.cover-preview {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(212, 175, 98, .22);
  border-radius: 8px;
  background: rgba(212, 175, 98, .06);
}

.cover-preview img {
  width: min(360px, 100%);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.cover-preview span {
  color: var(--muted);
  font-size: 13px;
}

.step-video-icon {
  width: 20px;
  height: 20px;
  color: var(--gold);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.step small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.step-body {
  min-width: 0;
}

.step.done {
  border-color: rgba(83, 224, 163, .35);
  background: rgba(83, 224, 163, .08);
}

.step.started,
.step.resume {
  border-color: rgba(63, 217, 255, .34);
  background: rgba(63, 217, 255, .075);
}

.step.resume {
  box-shadow: 0 0 0 1px rgba(212, 175, 98, .24), 0 14px 38px rgba(63, 217, 255, .08);
}

.lesson-progress-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
  padding: 14px;
  border: 1px solid rgba(247, 248, 250, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.lesson-progress-state {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: rgba(255, 255, 255, .055);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.lesson-progress-state::before,
.lesson-progress-badge::before {
  content: "";
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, .08);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.lesson-progress-state.done::before,
.lesson-progress-badge.ok::before {
  content: "✓";
}

.lesson-progress-state.started::before,
.lesson-progress-badge.warn::before {
  content: "▶";
}

.lesson-progress-state.not-started::before,
.lesson-progress-badge.empty::before {
  content: "•";
}

.lesson-progress-state.done {
  color: var(--success);
  background: rgba(83, 224, 163, .10);
}

.lesson-progress-state.started {
  color: var(--cyan);
  background: rgba(63, 217, 255, .10);
}

.lesson-progress-state.not-started {
  color: var(--muted);
}

.lesson-progress-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.lesson-progress-panel .lesson-progress-badges {
  margin-top: 0;
}

.lesson-resume-hint {
  appearance: none;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 11px;
  border: 1px solid rgba(212, 175, 98, .42);
  border-radius: 999px;
  background: rgba(212, 175, 98, .12);
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.lesson-resume-hint:hover {
  transform: translateY(-1px);
  border-color: rgba(212, 175, 98, .72);
  background: rgba(212, 175, 98, .18);
}

.lesson-resume-hint:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.lesson-resume-hint[data-state="error"] {
  border-color: rgba(255, 107, 139, .55);
  color: var(--danger);
}

.lesson-progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(247, 248, 250, .10);
  border-radius: 999px;
  padding: 4px 8px 4px 5px;
  color: var(--muted);
  background: rgba(6, 11, 20, .42);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
}

.lesson-progress-badge.ok {
  color: var(--success);
  border-color: rgba(83, 224, 163, .30);
  background: rgba(83, 224, 163, .09);
}

.lesson-progress-badge.warn {
  color: var(--gold);
  border-color: rgba(212, 175, 98, .32);
  background: rgba(212, 175, 98, .09);
}

.lesson-progress-badge.empty {
  color: #ff9cab;
  border-color: rgba(255, 107, 122, .28);
  background: rgba(255, 107, 122, .07);
}

.lesson-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
}

.lesson-main,
.side-panel,
.question,
.admin-content > .panel {
  padding: 26px;
}

.video-frame,
.video-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 22px 0;
  border: 1px solid rgba(63, 217, 255, .26);
  border-radius: 8px;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(14, 27, 61, .58), rgba(6, 11, 20, .92));
  color: var(--muted);
  text-align: center;
  line-height: 1.55;
}

.video-frame iframe,
.video-frame img,
.video-frame video {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 8px;
  object-fit: cover;
}

.video-frame {
  padding: 0;
}

.demo-page {
  max-width: 1040px;
}

.demo-access-panel {
  padding: clamp(22px, 4vw, 42px);
}

.demo-video {
  margin-bottom: 0;
}

.content-text,
.result-box,
.reply {
  margin: 20px 0;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.result-box {
  border-left: 3px solid var(--gold);
}

.lesson-notes {
  margin: 22px 0;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
  overflow: hidden;
}

.lesson-notes summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  color: var(--white);
  cursor: pointer;
  list-style: none;
}

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

.lesson-notes summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(212, 175, 98, .45);
  border-radius: 8px;
  color: var(--gold);
}

.lesson-notes[open] summary::before {
  content: "-";
}

.lesson-notes summary span {
  margin-right: auto;
  font-weight: 900;
}

.lesson-notes summary small {
  color: var(--muted);
}

.lesson-notes .content-text {
  margin: 0;
  border-radius: 0;
  border-top: 1px solid rgba(247, 248, 250, .08);
  background: rgba(6, 11, 20, .35);
}

.quiz-box {
  margin-top: 28px;
  border-top: 1px solid rgba(212, 175, 98, .22);
  padding-top: 24px;
}

.quiz-box summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--white);
  background: rgba(255, 255, 255, .035);
  cursor: pointer;
  list-style: none;
}

.quiz-box summary::-webkit-details-marker {
  display: none;
}

.quiz-box summary::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(212, 175, 98, .45);
  border-radius: 8px;
  color: var(--gold);
}

.quiz-box[open] summary::before {
  content: "-";
}

.quiz-box summary span:first-of-type {
  margin-right: auto;
  font-weight: 900;
}

.quiz-box summary small {
  color: var(--muted);
}

.quiz-form {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.quiz-question {
  display: grid;
  gap: 10px;
  margin: 0;
  border: 1px solid rgba(247, 248, 250, .10);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
}

.quiz-question legend {
  padding: 0 8px;
  color: var(--white);
  font-weight: 800;
}

.answer-option {
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid rgba(247, 248, 250, .08);
  border-radius: 8px;
  padding: 10px;
  color: var(--white);
  background: rgba(6, 11, 20, .42);
}

.answer-option input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.status-line {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.trainer-criteria {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(212, 175, 98, .06);
}

.trainer-criteria > strong {
  display: block;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.trainer-criteria .markdown-content {
  color: var(--white);
  font-size: 15px;
  line-height: 1.65;
}

.trainer-criteria .markdown-content p,
.trainer-criteria .markdown-content ul {
  margin: 0;
}

.trainer-criteria .markdown-content ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.trainer-criteria .markdown-content li {
  overflow-wrap: anywhere;
}

.trainer-criteria .markdown-content strong {
  color: var(--gold);
}

.trainer-prompt {
  margin: 14px 0;
  border: 1px solid rgba(63, 217, 255, .24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(63, 217, 255, .06);
}

.trainer-prompt strong {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
}

.trainer-prompt p {
  margin: 0;
}

.trainer-main {
  margin-top: 28px;
  border-top: 1px solid rgba(123, 97, 255, .24);
  padding-top: 24px;
}

.trainer-dialog {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.chat-message {
  border: 1px solid rgba(247, 248, 250, .10);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .04);
}

.chat-message strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
}

.chat-message p {
  margin: 0;
}

.chat-message.ai {
  border-color: rgba(63, 217, 255, .22);
  background: rgba(63, 217, 255, .055);
}

.chat-message.ai strong {
  color: var(--cyan);
}

.chat-message.user {
  margin-left: 22px;
  border-color: rgba(212, 175, 98, .34);
  background: rgba(212, 175, 98, .08);
}

.chat-message.feedback {
  border-color: rgba(123, 97, 255, .32);
  background: rgba(123, 97, 255, .08);
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
}

.page-head {
  margin-bottom: 22px;
}

.list {
  display: grid;
  gap: 16px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  gap: 22px;
}

.shell:has(.admin-layout) {
  width: min(100% - 24px, 1760px);
}

.admin-content {
  min-width: 0;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  padding: 14px;
}

.stats,
.course-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-alerts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
}

.admin-alerts form {
  margin: 0;
}

.alert-pill,
.status-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  border: 1px solid rgba(247, 248, 250, .14);
  border-radius: 999px;
  padding: 4px 10px;
  color: var(--muted);
  background: rgba(255, 255, 255, .045);
  font-size: 12px;
  font-weight: 800;
}

.alert-pill.active,
.status-badge.ok {
  color: #d8ffec;
  border-color: rgba(83, 224, 163, .36);
  background: rgba(83, 224, 163, .10);
}

.alert-pill.warn,
.status-badge.warn {
  color: #fff2ce;
  border-color: rgba(212, 175, 98, .48);
  background: rgba(212, 175, 98, .12);
}

.status-badge.empty {
  color: #ffccd2;
  border-color: rgba(255, 107, 122, .34);
  background: rgba(255, 107, 122, .08);
}

.status-badge.muted,
.status-badge.muted-badge {
  color: var(--muted);
}

.muted-badge {
  color: var(--muted);
}

.alert-kpi a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--gold);
}

.section-title {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.admin-layout .section-title h1 {
  max-width: 820px;
  margin-bottom: 0;
  font-size: clamp(30px, 3.2vw, 46px);
  line-height: 1.14;
  overflow-wrap: normal;
}

.compact-section-title {
  margin-bottom: 12px;
}

.admin-content-toolbar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
  overflow: hidden;
}

.admin-content-toolbar h1 {
  max-width: 1080px;
  margin-bottom: 8px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

.admin-content-toolbar .muted {
  max-width: 900px;
  line-height: 1.55;
}

.admin-content-toolbar .content-filter-form {
  justify-content: flex-start;
  max-width: 100%;
}

.admin-content-toolbar .content-filter-form label {
  flex: 0 1 560px;
}

.admin-layout .panel > h1,
.admin-progress-head h1,
.admin-courses-panel h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.admin-progress-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  gap: 18px;
  align-items: end;
}

.admin-progress-filter {
  justify-content: end;
}

.admin-progress-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

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

.admin-progress-card {
  padding: 0;
  overflow: hidden;
}

.admin-progress-card > summary {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(220px, .82fr) minmax(260px, .9fr);
  gap: 16px;
  align-items: center;
  padding: 16px;
  cursor: pointer;
}

.admin-progress-card > summary::-webkit-details-marker {
  display: none;
}

.admin-progress-card > summary::after {
  content: "↓";
  justify-self: end;
  color: var(--gold);
  font-weight: 900;
}

.admin-progress-card[open] > summary::after {
  content: "↑";
}

.admin-progress-student,
.admin-progress-main,
.admin-progress-facts,
.admin-progress-notes {
  display: grid;
  gap: 7px;
}

.admin-progress-student strong {
  font-size: 17px;
}

.admin-progress-student span,
.admin-progress-student small,
.admin-progress-main small,
.admin-progress-facts,
.admin-progress-notes {
  color: var(--muted);
  font-size: 13px;
}

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

.admin-progress-facts strong,
.admin-progress-notes strong {
  color: var(--white);
}

.admin-progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.admin-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.admin-progress-detail {
  display: grid;
  gap: 14px;
  padding: 0 16px 16px;
}

.admin-progress-notes {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(247, 248, 250, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.admin-progress-lessons {
  display: grid;
  gap: 8px;
}

.admin-progress-lesson {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(260px, 1.2fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(247, 248, 250, .08);
  border-radius: 8px;
  background: rgba(6, 11, 20, .38);
}

.admin-progress-lesson.done {
  border-color: rgba(83, 224, 163, .25);
  background: rgba(83, 224, 163, .06);
}

.admin-progress-lesson.started,
.admin-progress-lesson.resume {
  border-color: rgba(63, 217, 255, .28);
  background: rgba(63, 217, 255, .06);
}

.admin-progress-lesson em {
  display: inline-flex;
  margin-bottom: 3px;
  color: var(--gold);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.admin-progress-lesson strong {
  display: block;
}

.admin-progress-lesson small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

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

.content-filter-form label {
  flex: 1 1 260px;
  margin: 0;
}

.content-filter-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.content-filter-stats span {
  border: 1px solid rgba(247, 248, 250, .08);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
}

.content-filter-stats strong {
  display: block;
  color: var(--gold);
  font-size: 24px;
  line-height: 1.1;
}

.content-filter-stats .warn {
  border-color: rgba(255, 107, 122, .30);
  background: rgba(255, 107, 122, .06);
}

.admin-create-panel {
  padding: 0;
  overflow: hidden;
}

.admin-create-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 0 22px;
  cursor: pointer;
  color: var(--gold);
  font-weight: 900;
}

.admin-create-panel summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(212, 175, 98, .36);
  border-radius: 8px;
}

.admin-create-panel[open] summary::after {
  content: "-";
}

.admin-create-panel form {
  padding: 0 22px 22px;
}

.content-dashboard {
  padding: 24px;
}

.content-table {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.content-table-head,
.content-table-row {
  display: grid;
  grid-template-columns: minmax(310px, 1.7fr) repeat(7, minmax(96px, .55fr)) minmax(170px, .85fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.content-table-head {
  padding: 0 12px 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.content-table-row {
  margin-bottom: 8px;
  border: 1px solid rgba(247, 248, 250, .08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
}

.content-table-row.row-empty {
  border-color: rgba(255, 107, 122, .25);
  background: rgba(255, 107, 122, .045);
}

.content-table-row.row-hidden {
  position: relative;
  border: 1px solid rgba(255, 107, 122, .62);
  box-shadow: inset 4px 0 0 rgba(255, 107, 122, .88), 0 0 0 1px rgba(255, 107, 122, .10);
  background:
    linear-gradient(90deg, rgba(255, 107, 122, .14), rgba(255, 107, 122, .045) 34%, rgba(255, 255, 255, .025));
}

.content-table-row.row-hidden .lesson-cell strong {
  color: #ffd8dd;
}

.content-table-row.row-hidden .lesson-cell > em {
  border-color: rgba(255, 107, 122, .46);
  color: #ffb8bf;
  background: rgba(255, 107, 122, .12);
}

.content-table-row.row-hidden .muted-badge {
  color: #ffd8dd;
  border-color: rgba(255, 107, 122, .48);
  background: rgba(255, 107, 122, .16);
}

.content-table-row.row-hidden .visibility-toggle-form .mini-link {
  color: #84f0c7;
  border-color: rgba(63, 214, 160, .42);
  background: rgba(63, 214, 160, .08);
}

.admin-content-lessons {
  overflow: hidden;
}

.admin-content-row .lesson-cell small {
  display: block;
  margin-top: 5px;
}

.admin-content-actions {
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-start;
}

.lesson-order-cell {
  width: 100%;
}

.admin-content-actions > .mini-link,
.admin-content-actions > form,
.admin-content-actions > details {
  margin-bottom: 2px;
  min-width: 0;
}

.admin-content-actions > .mini-link,
.admin-content-actions > form > .mini-link,
.admin-content-actions > details > summary.mini-link {
  min-height: 29px;
  padding-inline: 8px;
  font-size: 11px;
  white-space: nowrap;
}

.admin-content-head,
.admin-content-row {
  grid-template-columns: minmax(190px, 1.15fr) repeat(8, minmax(42px, .24fr)) minmax(220px, .9fr);
  gap: 8px;
  min-width: 0;
}

.admin-content-head span,
.admin-content-row > span {
  min-width: 0;
}

.admin-content-head span {
  overflow-wrap: anywhere;
}

.content-duration-refresh {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
}

.duration-cell {
  display: grid;
  gap: 2px;
  justify-items: start;
  min-width: 0;
}

.duration-cell strong {
  color: var(--gold);
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
}

.duration-cell small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.duplicate-lesson-form {
  display: inline-flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 6px;
  align-items: center;
}

.duplicate-lesson-form select {
  width: min(180px, 100%);
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}

.course-landing {
  display: grid;
  gap: 26px;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 28px;
  align-items: center;
  padding: clamp(28px, 4vw, 46px);
}

.landing-hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
}

.landing-hero p {
  max-width: 820px;
  line-height: 1.65;
  color: var(--muted);
}

.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.landing-badge {
  display: grid;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(212, 175, 98, .32);
  border-radius: 8px;
  background: rgba(212, 175, 98, .08);
}

.landing-badge strong {
  color: var(--gold);
  font-family: var(--font-display);
}

.landing-badge span,
.tariff-card small {
  color: var(--muted);
  line-height: 1.55;
}

.masterclass-announce {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
  padding: clamp(20px, 3vw, 34px);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(212, 175, 98, .13), rgba(11, 18, 32, .92) 38%),
    rgba(9, 15, 29, .92);
}

.masterclass-copy {
  display: grid;
  gap: 16px;
}

.masterclass-copy h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 46px);
  line-height: 1.12;
}

.masterclass-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.masterclass-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.masterclass-facts span {
  padding: 9px 11px;
  border: 1px solid rgba(212, 175, 98, .32);
  border-radius: 8px;
  background: rgba(212, 175, 98, .08);
  color: var(--text);
  font-size: 13px;
}

.countdown {
  display: grid;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  padding: 14px;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 98, .13), rgba(255, 255, 255, .035));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}

.countdown-label {
  color: #f5d88b;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(58px, 1fr));
  gap: 8px;
}

.countdown-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  background: rgba(5, 10, 18, .44);
  text-align: center;
}

.countdown-grid strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1;
}

.countdown-grid small {
  color: var(--muted);
  font-size: 11px;
}

.countdown.is-live {
  border-color: rgba(40, 214, 143, .45);
  background: rgba(40, 214, 143, .08);
}

.masterclass-announce img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
}

.workshops-showcase {
  display: grid;
  gap: 22px;
  padding: clamp(22px, 3vw, 34px);
  background:
    radial-gradient(circle at 92% 12%, rgba(63, 217, 255, .13), transparent 24rem),
    linear-gradient(135deg, rgba(12, 22, 42, .96), rgba(7, 13, 25, .92));
}

.workshops-showcase .section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .8fr);
  gap: 18px;
  align-items: end;
}

.workshops-showcase .section-title p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.workshop-card {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  gap: 20px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 8px;
  background: rgba(6, 11, 20, .62);
}

.workshop-card__media img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 98, .28);
}

.workshop-card__body {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 8px 4px;
}

.workshop-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.15;
}

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

.workshop-strip {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 26px);
}

.workshop-strip .section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .7fr);
  gap: 16px;
  align-items: end;
}

.workshop-strip .section-title p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.workshop-strip__grid {
  display: grid;
  gap: 12px;
}

.workshop-strip__card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr) minmax(170px, max-content);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(8, 15, 28, .58);
}

.workshop-strip__card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 98, .25);
}

.workshop-strip__card h3 {
  margin: 4px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.2;
}

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

.workshop-strip__card small {
  display: inline-block;
  margin-top: 8px;
}

.workshop-strip__buy {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.available-courses {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 26px);
}

.available-courses .section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .72fr);
  gap: 16px;
  align-items: end;
}

.available-courses .section-title p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.available-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.available-course-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 280px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(8, 15, 28, .62);
}

.available-course-card[data-course-url] {
  cursor: pointer;
}

.available-course-card h3 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.2;
}

.available-course-card h3 a {
  color: inherit;
}

.available-course-card h3 a:hover {
  color: var(--gold);
}

.available-course-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.available-course-meta span {
  display: inline-flex;
  width: fit-content;
  padding: 7px 10px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  font-size: 13px;
}

.available-course-card .card-actions {
  align-items: center;
}

.cabinet-dashboard {
  position: relative;
  display: grid;
  gap: 18px;
}

.cabinet-dashboard::before {
  content: "";
  position: fixed;
  inset: 130px 0 auto;
  height: 420px;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 37%, rgba(63, 217, 255, .10) 37.2% 37.6%, transparent 37.8% 100%),
    linear-gradient(125deg, transparent 0 62%, rgba(212, 175, 98, .10) 62.2% 62.6%, transparent 62.8% 100%);
  opacity: .7;
  z-index: -1;
}

.cabinet-dashboard h1,
.cabinet-dashboard h2,
.cabinet-dashboard h3 {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}

.cabinet-hero-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .48fr);
  gap: 18px;
  align-items: stretch;
  padding: clamp(22px, 4vw, 34px);
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 18%, rgba(63, 217, 255, .14), transparent 25%),
    linear-gradient(145deg, rgba(12, 25, 45, .92), rgba(8, 14, 26, .92));
}

.cabinet-hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent, rgba(63, 217, 255, .16), transparent) 0 22% / 100% 1px no-repeat,
    linear-gradient(90deg, transparent, rgba(212, 175, 98, .12), transparent) 0 82% / 100% 1px no-repeat;
  opacity: .75;
}

.cabinet-hero-panel > * {
  position: relative;
  z-index: 1;
}

.cabinet-hero-copy {
  min-width: 0;
}

.cabinet-hero-copy h1 {
  max-width: 720px;
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.cabinet-hero-copy > p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.cabinet-resume-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 16px;
  align-items: end;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(63, 217, 255, .24);
  border-radius: 8px;
  background: rgba(6, 11, 20, .58);
}

.cabinet-resume-main {
  min-width: 0;
}

.cabinet-resume-main span,
.cabinet-resume-main small {
  display: block;
  color: var(--muted);
  line-height: 1.45;
}

.cabinet-resume-main strong {
  display: block;
  margin: 4px 0 6px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.14;
}

.cabinet-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.cabinet-quick-actions .mini-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

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

.cabinet-progress-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: center;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.cabinet-progress-card::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(63, 217, 255, .08);
  border-radius: 8px;
  pointer-events: none;
}

.cabinet-hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 128px;
  margin-bottom: 2px;
}

.cabinet-art-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 230px);
  aspect-ratio: 2.5 / 1;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 98, .32);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(3, 12, 24, .95), rgba(10, 27, 48, .82)),
    #071324;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .22);
}

.cabinet-art-frame img {
  display: block;
  width: 86%;
  max-height: 84%;
  object-fit: contain;
  filter: drop-shadow(0 10px 24px rgba(212, 175, 98, .18));
}

.cabinet-art-frame::before,
.cabinet-art-frame::after {
  content: "";
  position: absolute;
  inset: 14px 18px;
  border-radius: 50%;
  border: 1px solid rgba(63, 217, 255, .16);
  transform: rotate(-10deg);
}

.cabinet-art-frame::after {
  inset: 24px 42px;
  border-color: rgba(212, 175, 98, .22);
  transform: rotate(16deg);
}

.cabinet-art-line {
  position: absolute;
  width: 72px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 217, 255, .75), transparent);
}

.cabinet-art-line--one {
  top: 18px;
  right: 24px;
  transform: rotate(-18deg);
}

.cabinet-art-line--two {
  left: 22px;
  bottom: 18px;
  transform: rotate(-18deg);
  background: linear-gradient(90deg, transparent, rgba(212, 175, 98, .75), transparent);
}

.cabinet-art-caption {
  display: inline-flex;
  width: fit-content;
  margin-top: 9px;
  padding: 6px 10px;
  border: 1px solid rgba(63, 217, 255, .18);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(63, 217, 255, .06);
  font-size: 12px;
  font-weight: 800;
}

.cabinet-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 138px;
  height: 138px;
  margin: 0 auto;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 var(--value), rgba(255, 255, 255, .08) var(--value) 100%);
}

.cabinet-ring::before {
  content: "";
  position: absolute;
  inset: 11px;
  border-radius: inherit;
  background: #0b1628;
}

.cabinet-ring strong,
.cabinet-ring span {
  position: relative;
  z-index: 1;
  display: block;
  text-align: center;
}

.cabinet-ring strong {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
}

.cabinet-ring span {
  max-width: 84px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

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

.cabinet-kpis span {
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, .035);
  font-size: 13px;
  line-height: 1.25;
}

.cabinet-kpis strong {
  display: block;
  margin-bottom: 2px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.cabinet-section {
  display: grid;
  gap: 14px;
  padding: clamp(18px, 2.4vw, 26px);
}

.cabinet-section-title {
  margin-bottom: 0;
}

.cabinet-section-title h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(25px, 2.4vw, 34px);
  line-height: 1.08;
}

.cabinet-section-title p:last-child {
  max-width: 540px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.cabinet-course-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(110px, .24fr);
  gap: 16px;
  min-height: 228px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 8%, rgba(63, 217, 255, .14), transparent 28%),
    rgba(8, 15, 28, .62);
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease, background-color .22s ease;
}

.cabinet-course-card[data-course-url] {
  cursor: pointer;
}

.cabinet-course-card::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(63, 217, 255, .12);
  border-radius: 50%;
  pointer-events: none;
}

.cabinet-course-card:hover {
  transform: translateY(-3px);
  border-color: rgba(63, 217, 255, .26);
}

.cabinet-course-card h3 {
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.12;
}

.cabinet-course-card h3 a {
  color: inherit;
}

.cabinet-course-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.cabinet-status {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(212, 175, 98, .08);
  font-size: 12px;
  font-weight: 900;
}

.cabinet-status.is-open {
  color: #8ff0c4;
  border-color: rgba(40, 214, 143, .30);
  background: rgba(40, 214, 143, .09);
}

.cabinet-status.is-expired {
  color: #ffb2bb;
  border-color: rgba(255, 107, 122, .30);
  background: rgba(255, 107, 122, .08);
}

.cabinet-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cabinet-meta-row span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
  font-size: 12px;
  font-weight: 800;
}

.cabinet-progress {
  height: 8px;
  overflow: hidden;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.cabinet-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}

.cabinet-course-side {
  display: grid;
  gap: 9px;
  align-content: space-between;
  justify-items: end;
  text-align: right;
}

.cabinet-course-art {
  display: block;
  width: 118px;
  aspect-ratio: 1 / .78;
  object-fit: cover;
  border: 1px solid rgba(63, 217, 255, .22);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .28);
}

.cabinet-course-side strong {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1;
}

.cabinet-course-side span {
  color: var(--muted);
  font-size: 13px;
}

.cabinet-columns {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
}

.cabinet-task-list,
.cabinet-tool-grid,
.cabinet-event-list,
.cabinet-recommend-grid {
  display: grid;
  gap: 10px;
}

.cabinet-task,
.cabinet-event-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, .035);
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.cabinet-task:hover,
.cabinet-event-card:hover,
.cabinet-tool-card:hover,
.cabinet-recommend-card:hover {
  transform: translateY(-2px);
  border-color: rgba(63, 217, 255, .30);
  background: rgba(63, 217, 255, .06);
}

.cabinet-task-icon,
.cabinet-tool-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(63, 217, 255, .24);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(63, 217, 255, .08);
}

.cabinet-task strong,
.cabinet-event-card strong,
.cabinet-tool-card strong,
.cabinet-recommend-card strong {
  display: block;
  color: var(--white);
  line-height: 1.25;
}

.cabinet-task small,
.cabinet-event-card small,
.cabinet-tool-card small,
.cabinet-recommend-card small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  line-height: 1.35;
}

.cabinet-task em {
  color: var(--gold);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

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

.cabinet-tool-card,
.cabinet-recommend-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  color: var(--text);
  background:
    radial-gradient(circle at 92% 8%, rgba(63, 217, 255, .12), transparent 28%),
    rgba(255, 255, 255, .035);
  transition: transform .18s ease, border-color .18s ease, background-color .18s ease;
}

.cabinet-tool-card::after,
.cabinet-recommend-card::after {
  content: "";
  position: absolute;
  inset: auto -20% 12px 38%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(63, 217, 255, .35), transparent);
  pointer-events: none;
}

.cabinet-tool-card > span {
  margin-bottom: 16px;
}

.cabinet-tool-card:nth-child(1) {
  background:
    linear-gradient(135deg, rgba(63, 217, 255, .09), transparent 55%),
    rgba(255, 255, 255, .035);
}

.cabinet-tool-card:nth-child(2) {
  background:
    linear-gradient(135deg, rgba(212, 175, 98, .12), transparent 55%),
    rgba(255, 255, 255, .035);
}

.cabinet-tool-card:nth-child(3) {
  background:
    linear-gradient(135deg, rgba(129, 101, 255, .12), transparent 55%),
    rgba(255, 255, 255, .035);
}

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

.cabinet-recommend-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding-top: 82px;
}

.cabinet-recommend-art {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 86px;
  aspect-ratio: 1 / .72;
  object-fit: cover;
  border: 1px solid rgba(63, 217, 255, .24);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .30);
}

.partner-panel {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(212, 175, 98, .105), transparent 34%),
    linear-gradient(145deg, rgba(7, 17, 31, .94), rgba(10, 20, 38, .82));
}

.partner-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(212, 175, 98, .18);
  border-radius: 50%;
  pointer-events: none;
}

.partner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(130px, .6fr));
  gap: 12px;
}

.partner-link-card,
.partner-stat {
  position: relative;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.partner-link-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.partner-link-card strong,
.partner-stat span {
  display: block;
  color: var(--white);
  font-weight: 900;
}

.partner-link-card code {
  display: block;
  max-width: 100%;
  margin: 7px 0 10px;
  padding: 10px 12px;
  overflow-x: auto;
  border: 1px solid rgba(63, 217, 255, .18);
  border-radius: 8px;
  color: #c6f6ff;
  background: rgba(3, 10, 18, .56);
  font-family: var(--font-sans);
  font-size: 13px;
  white-space: nowrap;
}

.partner-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}

.partner-copy-actions .btn {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

.partner-link-card small,
.partner-stat small {
  display: block;
  color: var(--muted);
  line-height: 1.35;
}

.partner-stat strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
}

.partner-history {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
}

.partner-history div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .035);
}

.partner-history strong {
  color: var(--success);
}

.partner-history small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.partner-history em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.success-text {
  color: var(--success);
  font-weight: 900;
}

.cabinet-empty-state {
  display: grid;
  gap: 8px;
  align-content: center;
  min-height: 148px;
  padding: 18px;
  border: 1px dashed rgba(212, 175, 98, .28);
  border-radius: 8px;
  background: rgba(212, 175, 98, .055);
}

.cabinet-empty-state.compact {
  min-height: 0;
}

.cabinet-empty-state strong {
  color: var(--white);
  font-size: 18px;
}

.cabinet-empty-state span {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .cabinet-hero-panel,
  .cabinet-columns {
    grid-template-columns: 1fr;
  }

  .cabinet-course-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-progress-card {
    grid-template-columns: minmax(0, .9fr) minmax(138px, auto) minmax(0, 1fr);
    align-items: center;
  }

  .cabinet-hero-art {
    margin-bottom: 0;
  }

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

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

  .partner-link-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .cabinet-hero-panel,
  .cabinet-section {
    padding: 18px;
  }

  .cabinet-hero-copy h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .cabinet-resume-card,
  .cabinet-course-card,
  .cabinet-task,
  .cabinet-event-card {
    grid-template-columns: 1fr;
  }

  .cabinet-resume-card .btn,
  .cabinet-course-side .btn {
    width: 100%;
  }

  .cabinet-progress-card {
    grid-template-columns: 1fr;
    align-content: start;
  }

  .cabinet-kpis,
  .cabinet-tool-grid,
  .cabinet-recommend-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .cabinet-course-side {
    justify-items: start;
    text-align: left;
  }

  .cabinet-course-art {
    width: 100%;
    max-width: 280px;
    order: -1;
  }

  .cabinet-recommend-card {
    padding-top: 92px;
  }

  .cabinet-section-title {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cabinet-hero-art {
    animation: cabinet-float 7s ease-in-out infinite;
  }

  .cabinet-art-frame::before {
    animation: cabinet-tilt 12s linear infinite;
  }

  .cabinet-art-frame::after {
    animation: cabinet-tilt 16s linear infinite reverse;
  }

  .cabinet-progress span {
    animation: cabinet-progress-glow 2.8s ease-in-out infinite;
  }
}

@keyframes cabinet-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes cabinet-tilt {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cabinet-progress-glow {
  0%, 100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.4) brightness(1.08);
  }
}

.course-lessons-editor {
  display: grid;
  gap: 18px;
}

.course-module-list {
  display: grid;
  gap: 16px;
}

.course-module-block {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(8, 15, 28, .56);
}

.course-module-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 14px;
  align-items: start;
}

.course-module-head h3 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 28px);
}

.course-module-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.course-lesson-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, .9fr) max-content;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(247, 248, 250, .08);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.lesson-status-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lesson-status-tags span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.status-ok {
  border: 1px solid rgba(40, 214, 143, .34);
  color: #72f0bf;
  background: rgba(40, 214, 143, .10);
}

.status-empty {
  border: 1px solid rgba(255, 107, 122, .30);
  color: #ff9aa6;
  background: rgba(255, 107, 122, .08);
}

.quick-lesson-add {
  margin-top: 4px;
}

.sort-button-form {
  margin: 0;
}

.order-cell {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.sort-controls {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.sort-mini {
  width: 32px;
  min-width: 32px;
  height: 32px;
  min-height: 32px;
  justify-content: center;
  padding-inline: 0;
  color: var(--gold);
}

.promptbook-page {
  display: grid;
  gap: 22px;
}

.promptbook-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 24px;
  align-items: center;
  padding: clamp(24px, 4vw, 42px);
}

.promptbook-hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
}

.promptbook-hero p,
.promptbook-filters p {
  color: var(--muted);
  line-height: 1.65;
}

.promptbook-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
}

.promptbook-counter {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(212, 175, 98, .36);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 0%, rgba(212, 175, 98, .18), rgba(255, 255, 255, .04));
  text-align: center;
}

.promptbook-counter strong {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  color: var(--gold);
}

.promptbook-counter span {
  max-width: 130px;
  color: var(--muted);
}

.promptbook-filters {
  display: grid;
  gap: 16px;
}

.promptbook-search {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 220px max-content;
  gap: 12px;
  align-items: end;
}

.promptbook-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.promptbook-categories a {
  padding: 8px 11px;
  border: 1px solid rgba(212, 175, 98, .26);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, .04);
}

.promptbook-categories a.active {
  color: #09111f;
  background: var(--gold);
  border-color: transparent;
  font-weight: 900;
}

.promptbook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
}

.promptbook-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 24px;
}

.promptbook-empty h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.15;
}

.promptbook-empty p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.prompt-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 18px;
}

.prompt-card__head,
.prompt-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.prompt-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.1vw, 28px);
  line-height: 1.18;
}

.prompt-card pre {
  overflow: auto;
  max-height: 360px;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  white-space: pre-wrap;
  color: var(--text);
  background: rgba(6, 11, 20, .54);
  font: 500 14px/1.55 var(--font-sans);
}

.active-like {
  color: var(--gold);
  border-color: rgba(212, 175, 98, .48);
}

.promptbook-add {
  display: grid;
  gap: 12px;
}

.workshop-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workshop-facts span {
  padding: 8px 10px;
  border: 1px solid rgba(63, 217, 255, .22);
  border-radius: 8px;
  color: var(--text);
  background: rgba(63, 217, 255, .06);
  font-size: 13px;
}

.workshop-buy {
  display: grid;
  grid-template-columns: minmax(160px, .45fr) minmax(0, .55fr);
  gap: 16px;
  align-items: end;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}

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

.workshop-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.workshop-page {
  display: grid;
  gap: 22px;
}

.workshop-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
  gap: clamp(22px, 4vw, 42px);
  align-items: center;
  padding: clamp(22px, 4vw, 42px);
  background:
    radial-gradient(circle at 88% 14%, rgba(212, 175, 98, .16), transparent 22rem),
    linear-gradient(135deg, rgba(12, 22, 42, .97), rgba(6, 10, 20, .94));
}

.workshop-hero h1 {
  max-width: 980px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.03;
}

.workshop-hero__content {
  min-width: 0;
}

.workshop-hero__media {
  display: grid;
  gap: 12px;
}

.workshop-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 98, .32);
  box-shadow: 0 28px 70px rgba(0, 0, 0, .34);
}

.workshop-price-card,
.workshop-price-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: baseline;
}

.workshop-price-card {
  justify-content: space-between;
  padding: 14px 16px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 8px;
  background: rgba(6, 11, 20, .68);
}

.workshop-price-card small {
  width: 100%;
  color: var(--muted);
}

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

.workshop-details-grid > .panel {
  padding: clamp(22px, 3vw, 32px);
}

.workshop-details-grid h2,
.workshop-buy-panel h2 {
  margin: 0 0 14px;
  line-height: 1.15;
}

.workshop-details-grid .eyebrow,
.workshop-buy-panel .eyebrow {
  margin-bottom: 12px;
}

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

.check-list li {
  position: relative;
  padding-left: 30px;
  color: var(--muted);
  line-height: 1.55;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(212, 175, 98, .42);
  border-radius: 6px;
  color: var(--gold);
  font-size: 12px;
}

.workshop-buy-panel {
  display: grid;
  grid-template-columns: minmax(0, .72fr) minmax(320px, .9fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: start;
  padding: clamp(22px, 3vw, 34px);
}

.workshop-buy-panel > div {
  min-width: 0;
}

.workshop-buy-panel p {
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.65;
}

.workshop-buy-panel .btn {
  margin-top: 4px;
}

.workshop-order-form {
  margin: 0;
  padding: clamp(16px, 2.5vw, 22px);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

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

.landing-info {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.landing-info h2,
.landing-legal h2 {
  margin: 0 0 12px;
}

.landing-info p,
.landing-legal p,
.legal-document p {
  line-height: 1.65;
  color: var(--muted);
}

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

.info-grid span {
  min-height: 72px;
  display: grid;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  color: var(--text);
  background: rgba(212, 175, 98, .06);
}

.landing-course {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.landing-course h2 {
  margin: 0;
}

.landing-course h2 a {
  color: inherit;
}

.landing-course h2 a:hover {
  color: var(--gold);
}

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

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

.course-meta span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-size: 13px;
}

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

.tariff-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  background: rgba(7, 13, 25, .68);
}

.tariff-card strong {
  color: var(--gold);
}

.price {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--text);
}

.price-stack {
  display: grid;
  gap: 4px;
}

.price-old {
  width: fit-content;
  color: var(--muted);
  font-size: 15px;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(212, 175, 98, .85);
}

.discount-note {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(212, 175, 98, .08);
  font-size: 12px;
  font-weight: 800;
}

.tariff-card .btn,
.tariff-card form {
  width: 100%;
}

.tariff-card .btn {
  justify-content: center;
}

.integration-url-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .04);
}

.integration-url-list span {
  overflow-wrap: anywhere;
  color: var(--muted);
}

.payment-table {
  display: grid;
  gap: 8px;
}

.payment-head,
.payment-row {
  display: grid;
  grid-template-columns: 70px 1.2fr 1.4fr 110px 110px 110px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-table--course .payment-head,
.payment-table--course .payment-row {
  grid-template-columns: 52px minmax(150px, 1.1fr) minmax(180px, 1.3fr) minmax(82px, .55fr) minmax(120px, .7fr) minmax(140px, .85fr) minmax(112px, .6fr);
}

.payment-table--partners .payment-head,
.payment-table--partners .payment-row {
  grid-template-columns: minmax(180px, 1.3fr) minmax(100px, .7fr) minmax(110px, .7fr) minmax(80px, .45fr) minmax(90px, .55fr) minmax(120px, .75fr);
}

.payment-table--partner-orders .payment-head,
.payment-table--partner-orders .payment-row {
  grid-template-columns: 52px minmax(145px, 1fr) minmax(145px, 1fr) minmax(170px, 1.2fr) minmax(112px, .7fr) minmax(120px, .75fr) minmax(112px, .65fr);
}

.payment-row code {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 5px 7px;
  overflow-x: auto;
  border: 1px solid rgba(63, 217, 255, .18);
  border-radius: 8px;
  color: #c6f6ff;
  background: rgba(3, 10, 18, .45);
  font-family: var(--font-sans);
  font-size: 12px;
}

.payment-head {
  color: var(--gold);
  font-size: 12px;
  text-transform: uppercase;
}

.payment-row small {
  display: block;
  color: var(--muted);
}

.landing-legal {
  display: grid;
  gap: 20px;
  padding: 24px;
}

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

.legal-grid article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.legal-grid h3 {
  margin: 0 0 10px;
  color: var(--gold);
}

.legal-grid code {
  overflow-wrap: anywhere;
  color: var(--text);
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.legal-links a {
  padding: 10px 12px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(212, 175, 98, .06);
}

.legal-page {
  max-width: 980px;
}

.legal-document {
  padding: clamp(24px, 4vw, 44px);
}

.legal-document h2 {
  margin: 28px 0 10px;
  color: var(--text);
}

.legal-document a,
.landing-legal a {
  color: var(--gold);
}

.contacts-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr);
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.contacts-panel h2 {
  margin: 0 0 12px;
}

.contacts-panel p {
  color: var(--muted);
  line-height: 1.65;
}

.contact-cards {
  display: grid;
  gap: 10px;
}

.contact-cards a {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 8px;
  background: rgba(212, 175, 98, .07);
}

.contact-cards span {
  color: var(--muted);
  font-size: 13px;
}

.contact-cards strong {
  color: var(--gold);
  overflow-wrap: anywhere;
}

.lms-home {
  width: 100%;
  overflow: hidden;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 4%, rgba(18, 105, 255, .22), transparent 28%),
    radial-gradient(circle at 82% 3%, rgba(53, 210, 255, .12), transparent 24%),
    linear-gradient(180deg, #030a15 0%, #06172d 42%, #061326 58%, #f7faff 58%, #f7faff 77%, #061326 77%, #05101f 100%);
}

.lms-home :is(h1, h2, h3) {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

.lms-home-wrap {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.lms-home-hero {
  position: relative;
  padding: clamp(42px, 6vw, 78px) 0 30px;
}

.lms-home-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 190px;
  z-index: 0;
  background: repeating-linear-gradient(174deg, rgba(53, 210, 255, .16) 0 1px, transparent 1px 13px);
  transform: skewY(-6deg);
  opacity: .42;
}

.lms-home-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(520px, 1.22fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
}

.lms-home-hero__copy h1 {
  max-width: 560px;
  margin: 0 0 22px;
  font-size: clamp(36px, 4.7vw, 58px);
  line-height: 1.06;
  letter-spacing: 0;
}

.lms-home-hero__copy > p:not(.eyebrow) {
  max-width: 500px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.62;
}

.lms-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.lms-home-hero__media {
  position: relative;
}

.lms-home-hero__media::before {
  content: "";
  position: absolute;
  inset: 16% -4% -8% 8%;
  z-index: -1;
  background: radial-gradient(circle, rgba(18, 105, 255, .36), transparent 62%);
  filter: blur(18px);
}

.lms-home-hero__media img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38), 0 0 0 1px rgba(55, 135, 255, .32);
}

.lms-home-dashboard-shot {
  display: grid;
  grid-template-columns: 170px 1fr;
  min-height: 490px;
  border: 1px solid rgba(55, 135, 255, .36);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 28, 56, .96), rgba(4, 13, 29, .96));
  box-shadow: 0 28px 90px rgba(0, 0, 0, .38), 0 0 0 1px rgba(55, 135, 255, .20);
  transform: perspective(1200px) rotateX(0) rotateY(0);
  transition: transform .2s ease;
}

.lms-home-dashboard-shot aside {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px 18px;
  border-right: 1px solid rgba(108, 157, 228, .20);
  background: rgba(4, 13, 29, .72);
}

.lms-home-dashboard-shot aside strong {
  margin-bottom: 12px;
  color: #f5f9ff;
  font-size: 13px;
  line-height: 1.2;
  text-transform: uppercase;
}

.lms-home-dashboard-shot aside span,
.lms-home-dashboard-shot aside small {
  border-radius: 8px;
  padding: 10px 12px;
  color: #aebfda;
  background: rgba(255, 255, 255, .035);
  font-size: 12px;
  font-weight: 800;
}

.lms-home-dashboard-shot aside span:first-of-type {
  color: #fff;
  background: rgba(18, 105, 255, .22);
}

.lms-home-dashboard-shot aside small {
  margin-top: 24px;
  border: 1px solid rgba(53, 210, 255, .22);
  line-height: 1.45;
}

.lms-home-dashboard-main {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.lms-home-dashboard-top,
.lms-home-dashboard-grid {
  display: grid;
  gap: 18px;
}

.lms-home-dashboard-top {
  grid-template-columns: 1fr auto;
  align-items: center;
  border-bottom: 1px solid rgba(108, 157, 228, .18);
  padding-bottom: 16px;
}

.lms-home-dashboard-top small,
.lms-home-dashboard-progress p,
.lms-home-dashboard-grid p {
  color: #aebfda;
}

.lms-home-dashboard-top strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.lms-home-dashboard-top span {
  border: 1px solid rgba(53, 210, 255, .22);
  border-radius: 999px;
  padding: 8px 12px;
  color: #cfe7ff;
  background: rgba(18, 105, 255, .12);
  font-size: 12px;
  font-weight: 900;
}

.lms-home-dashboard-progress,
.lms-home-dashboard-grid > div {
  border: 1px solid rgba(108, 157, 228, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .035);
}

.lms-home-dashboard-progress {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
}

.lms-home-dashboard-progress img {
  width: 150px;
  aspect-ratio: 1.28 / 1;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: none;
}

.lms-home-dashboard-progress strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lms-home-dashboard-progress p {
  margin-bottom: 14px;
  font-size: 13px;
}

.lms-home-dashboard-progress span {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .09);
  overflow: hidden;
}

.lms-home-dashboard-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1269ff, #35d2ff);
}

.lms-home-dashboard-grid {
  grid-template-columns: 1fr .9fr;
}

.lms-home-dashboard-grid > div {
  padding: 18px;
}

.lms-home-dashboard-grid strong {
  display: block;
  margin-bottom: 14px;
}

.lms-home-dashboard-grid p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 10px 0;
  font-size: 13px;
  line-height: 1.4;
}

.lms-home-dashboard-grid p span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  color: #35d2ff;
  background: rgba(18, 105, 255, .16);
}

.lms-home-dashboard-grid a {
  display: inline-flex;
  margin-top: 12px;
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  background: linear-gradient(135deg, #1184ff, #075cff);
  font-size: 12px;
  font-weight: 900;
}

.lms-home-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 26px 0 34px;
}

.lms-home-value-card,
.lms-home-course-card,
.lms-home-agent-card,
.lms-home-faq details {
  border: 1px solid rgba(108, 157, 228, .26);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(13, 34, 65, .92), rgba(7, 19, 38, .86));
  box-shadow: 0 14px 48px rgba(0, 0, 0, .18);
}

.lms-home-value-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.lms-home-value-card > span,
.lms-home-course-icon,
.lms-home-steps article > span {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(53, 210, 255, .22);
  border-radius: 8px;
  color: #35d2ff;
  background: rgba(18, 105, 255, .17);
  font-size: 30px;
}

.lms-home-value-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 18px;
}

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

.lms-home-section {
  padding: 38px 0 46px;
}

.lms-home-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 22px;
}

.lms-home-section-head h2,
.lms-home-faq h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
}

.lms-home-section-head a {
  color: #56b8ff;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lms-home-courses {
  display: grid;
  grid-template-columns: minmax(360px, .95fr) 1fr;
  gap: 22px;
}

.lms-home-course-card {
  position: relative;
  min-height: 178px;
  padding: 24px;
  overflow: hidden;
}

.lms-home-course-card--featured {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .42fr);
  grid-template-areas:
    "badge cover"
    "title cover"
    "text cover"
    "meta cover"
    "action cover";
  column-gap: 28px;
  align-items: end;
  min-height: 360px;
  border-color: rgba(43, 132, 255, .56);
}

.lms-home-badge {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 8px;
  padding: 7px 10px;
  color: #b9cff2;
  background: rgba(255, 255, 255, .07);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.lms-home-course-card--featured .lms-home-badge {
  grid-area: badge;
}

.lms-home-course-card h3 {
  max-width: 380px;
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.14;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
  text-wrap: balance;
}

.lms-home-course-card--featured h3 {
  grid-area: title;
  font-size: clamp(27px, 2.45vw, 34px);
  line-height: 1.08;
}

.lms-home-course-card p {
  max-width: 420px;
  margin: 0;
  color: #c7d6ed;
  line-height: 1.52;
}

.lms-home-course-card--featured p {
  grid-area: text;
}

.lms-home-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.lms-home-meta span {
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .04);
}

.lms-home-course-card--featured .lms-home-meta {
  grid-area: meta;
}

.lms-home-course-card--featured .btn {
  grid-area: action;
  width: fit-content;
}

.lms-home-course-card--featured .lms-home-course-cover {
  position: static;
  grid-area: cover;
  justify-self: end;
  width: min(100%, 260px);
  height: 100%;
  max-height: 310px;
  border: 1px solid rgba(53, 210, 255, .22);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 20px 46px rgba(18, 105, 255, .22);
  pointer-events: none;
}

.lms-home-course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.lms-home-course-grid .lms-home-course-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px;
  grid-template-areas:
    "icon thumb"
    "title title"
    "meta meta";
  column-gap: 16px;
  row-gap: 14px;
  align-content: start;
  min-height: 242px;
  padding-right: 18px;
}

.lms-home-course-grid .lms-home-course-card h3 {
  grid-area: title;
  max-width: none;
  min-width: 0;
  margin-bottom: 0;
  font-size: clamp(17px, 1.2vw, 20px);
  line-height: 1.12;
  overflow-wrap: normal;
}

.lms-home-course-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  font-size: 21px;
  position: relative;
  z-index: 1;
}

.lms-home-course-thumb {
  position: static;
  grid-area: thumb;
  justify-self: end;
  width: 104px;
  height: 118px;
  border: 1px solid rgba(53, 210, 255, .18);
  border-radius: 10px;
  object-fit: cover;
  opacity: .9;
  pointer-events: none;
  transform: translateZ(0);
}

.lms-home-course-grid .lms-home-meta {
  grid-area: meta;
  margin: 4px 46px 0 0;
}

.lms-home-card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #dce9ff;
  background: rgba(255, 255, 255, .08);
}

.lms-home-section--agents {
  padding-top: 10px;
}

.lms-home-agent-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.lms-home-agent-card {
  padding: 18px;
  overflow: hidden;
  transform: translateY(0);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.lms-home-agent-card:hover {
  border-color: rgba(53, 210, 255, .42);
  box-shadow: 0 22px 70px rgba(18, 105, 255, .22);
  transform: translateY(-4px);
}

.lms-home-agent-card img {
  width: 100%;
  aspect-ratio: 1 / .82;
  margin-bottom: 16px;
  border-radius: 8px;
  object-fit: cover;
  object-position: center 18%;
  animation: lms-home-float 5.8s ease-in-out infinite;
}

.lms-home-agent-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.lms-home-agent-card p {
  min-height: 74px;
  margin: 0 0 18px;
  color: #b7c8e4;
  font-size: 14px;
  line-height: 1.48;
}

.lms-home-agent-card .btn {
  width: 100%;
  min-height: 38px;
}

.lms-home-promptbook,
.lms-home-progress {
  padding: 42px 0;
  color: #071326;
  background: #f7faff;
}

.lms-home-promptbook {
  position: relative;
}

.lms-home-promptbook::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 0, rgba(18, 105, 255, .08), transparent 24%),
    radial-gradient(circle at 88% 18%, rgba(53, 210, 255, .10), transparent 22%);
  pointer-events: none;
}

.lms-home-promptbook .lms-home-wrap {
  position: relative;
}

.lms-home-promptbook .lms-home-section-head h2,
.lms-home-progress .lms-home-section-head h2 {
  color: #071326;
}

.lms-home-promptbook .lms-home-section-head p {
  margin: 8px 0 0;
  color: #50627f;
}

.lms-home-prompt-layout {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: start;
}

.lms-home-prompt-tabs {
  display: grid;
  gap: 2px;
  border: 1px solid #d9e4f4;
  border-radius: 8px;
  padding: 8px;
  color: #50627f;
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.lms-home-prompt-tabs span {
  padding: 9px 10px;
  border-radius: 6px;
}

.lms-home-prompt-tabs span:first-child {
  color: #1269ff;
  background: rgba(18, 105, 255, .08);
}

.lms-home-prompt-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.lms-home-prompt-card,
.lms-home-metrics article {
  border: 1px solid #dce6f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(14, 34, 66, .08);
}

.lms-home-prompt-card {
  min-height: 164px;
  padding: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.lms-home-prompt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(14, 34, 66, .12);
}

.lms-home-prompt-card > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #1269ff;
  background: rgba(18, 105, 255, .08);
}

.lms-home-prompt-card:nth-child(2) > span { color: #0f9f82; background: rgba(15, 159, 130, .09); }
.lms-home-prompt-card:nth-child(3) > span { color: #7d5cff; background: rgba(125, 92, 255, .10); }
.lms-home-prompt-card:nth-child(4) > span { color: #1269ff; background: rgba(18, 105, 255, .09); }
.lms-home-prompt-card:nth-child(5) > span { color: #9b62ff; background: rgba(155, 98, 255, .10); }

.lms-home-prompt-card h3 {
  margin: 0 0 8px;
  color: #071326;
  font-size: 15px;
}

.lms-home-prompt-card p {
  margin: 0;
  color: #50627f;
  font-size: 13px;
}

.lms-home-steps {
  padding: 34px 0;
  background: linear-gradient(135deg, #061326, #08254a);
}

.lms-home-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.lms-home-steps article {
  display: grid;
  grid-template-columns: auto 52px 1fr;
  gap: 16px;
  align-items: center;
}

.lms-home-steps article > strong {
  color: #1269ff;
  font-size: 46px;
  line-height: 1;
}

.lms-home-steps article > span {
  width: 52px;
  height: 52px;
  font-size: 23px;
}

.lms-home-steps h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.lms-home-steps p {
  margin: 0;
  color: #aebfda;
  line-height: 1.45;
}

.lms-home-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.lms-home-metrics article {
  min-height: 170px;
  padding: 22px;
}

.lms-home-metrics span {
  color: #50627f;
  font-weight: 800;
}

.lms-home-metrics strong {
  display: block;
  margin: 14px 0;
  color: #071326;
  font-size: 34px;
  line-height: 1;
}

.lms-home-metrics p {
  margin: 0;
  color: #50627f;
  line-height: 1.45;
}

.lms-home-faq {
  padding: 36px 0;
  background: #061326;
}

.lms-home-faq h2 {
  margin-bottom: 20px;
}

.lms-home-faq-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lms-home-faq details {
  padding: 0;
  overflow: hidden;
}

.lms-home-faq summary {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0 18px;
  color: #cfe0fb;
  font-weight: 800;
  cursor: pointer;
}

.lms-home-faq p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.5;
}

.lms-home-cta {
  padding: 0 0 56px;
  background: #061326;
}

.lms-home-cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: 12px;
  padding: 34px 46px;
  background:
    radial-gradient(circle at 22% 20%, rgba(53, 210, 255, .24), transparent 30%),
    linear-gradient(135deg, #075cff, #0b7dff);
  box-shadow: 0 24px 70px rgba(18, 105, 255, .30);
}

.lms-home-cta h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.8vw, 46px);
  line-height: 1.08;
}

.lms-home-cta p {
  margin: 0;
  color: #cfe6ff;
  font-size: 18px;
}

.lms-home-cta-panel > div:last-child {
  display: grid;
  gap: 14px;
  justify-items: center;
}

.lms-home-cta-panel > div:last-child a:not(.btn) {
  color: #dcecff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@keyframes lms-home-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.015); }
}

@media (prefers-reduced-motion: no-preference) {
  .lms-home-value-card,
  .lms-home-course-card,
  .lms-home-metrics article {
    animation: lms-home-rise .7s ease both;
  }

  .lms-home-value-card:nth-child(2),
  .lms-home-course-card:nth-child(2),
  .lms-home-metrics article:nth-child(2) { animation-delay: .08s; }
  .lms-home-value-card:nth-child(3),
  .lms-home-course-card:nth-child(3),
  .lms-home-metrics article:nth-child(3) { animation-delay: .14s; }
}

@keyframes lms-home-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1120px) {
  .lms-home-hero__grid,
  .lms-home-courses {
    grid-template-columns: 1fr;
  }

  .lms-home-hero__media {
    max-width: 820px;
  }

  .lms-home-agent-grid,
  .lms-home-prompt-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 760px) {
  .lms-home-wrap {
    width: min(100% - 28px, 1240px);
  }

  .lms-home-hero__copy h1 {
    font-size: clamp(38px, 12vw, 56px);
  }

  .lms-home-value-grid,
  .lms-home-course-grid,
  .lms-home-agent-grid,
  .lms-home-prompt-layout,
  .lms-home-prompt-grid,
  .lms-home-steps-grid,
  .lms-home-metrics,
  .lms-home-faq-grid,
  .lms-home-cta-panel {
    grid-template-columns: 1fr;
  }

  .lms-home-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .lms-home-course-card--featured {
    grid-template-columns: 1fr;
    grid-template-areas:
      "badge"
      "title"
      "text"
      "cover"
      "meta"
      "action";
    min-height: 0;
  }

  .lms-home-course-card--featured .lms-home-course-cover {
    justify-self: stretch;
    width: 100%;
    max-height: 240px;
  }

  .lms-home-dashboard-shot {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .lms-home-dashboard-shot aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid rgba(108, 157, 228, .20);
  }

  .lms-home-dashboard-shot aside strong,
  .lms-home-dashboard-shot aside small {
    grid-column: 1 / -1;
  }

  .lms-home-dashboard-progress,
  .lms-home-dashboard-grid,
  .lms-home-dashboard-top {
    grid-template-columns: 1fr;
  }

  .lms-home-dashboard-progress img {
    width: 100%;
    aspect-ratio: 1.7 / 1;
  }

  .lms-home-course-grid .lms-home-course-card {
    grid-template-columns: minmax(0, 1fr) 92px;
  }

  .lms-home-course-thumb {
    width: 92px;
    height: 104px;
  }

  .lms-home-course-grid .lms-home-meta {
    margin-right: 42px;
  }

  .lms-home-steps article {
    grid-template-columns: auto 1fr;
  }

  .lms-home-steps article > span {
    grid-row: span 2;
  }

  .lms-home-cta-panel {
    padding: 28px;
  }
}

.site-footer {
  margin: 38px auto 0;
  padding: 24px clamp(16px, 4vw, 42px) 30px;
  border-top: 1px solid rgba(212, 175, 98, .22);
  background: rgba(5, 9, 17, .82);
}

.site-footer__inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr .75fr 1.1fr;
  gap: 22px;
}

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

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer a {
  color: var(--gold);
}

.site-footer .legal-links {
  width: min(1220px, 100%);
  margin: 18px auto 0;
}

.lesson-cell {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.lesson-cell em {
  width: fit-content;
  border: 1px solid rgba(212, 175, 98, .36);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--gold);
  background: rgba(212, 175, 98, .08);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.lesson-cell strong {
  line-height: 1.3;
}

.lesson-cell small {
  color: var(--muted);
}

.missing-note {
  color: #ffccd2 !important;
}

.settings-help {
  margin-top: 18px;
}

.settings-subpanel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  padding: 16px;
  background: rgba(255, 255, 255, .035);
}

.nested-grid {
  margin: 0;
}

.usage-panel {
  margin-top: 18px;
  padding: 24px;
}

.usage-table {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(247, 248, 250, .08);
  border-radius: 8px;
}

.usage-head,
.usage-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(100px, .5fr));
  gap: 12px;
  align-items: center;
  padding: 13px 15px;
  background: rgba(255, 255, 255, .035);
}

.usage-head {
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.usage-row small {
  display: block;
  color: var(--muted);
}

.enrollment-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  max-width: 100%;
  overflow-x: hidden;
}

.enrollment-head,
.enrollment-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  align-items: end;
  min-width: 0;
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .035);
}

.enrollment-head {
  display: none;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.enrollment-row {
  border: 1px solid rgba(247, 248, 250, .08);
}

.enrollment-row > * {
  min-width: 0;
}

.enrollment-row > span {
  display: grid;
  gap: 4px;
  align-content: center;
  min-height: 42px;
  overflow-wrap: anywhere;
}

.enrollment-row small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.enrollment-row label {
  display: grid;
  gap: 6px;
}

.enrollment-row select,
.enrollment-row input {
  width: 100%;
  min-height: 38px;
}

.enrollment-row .access-ok,
.enrollment-row .access-expired {
  width: 100%;
  min-height: 42px;
  align-items: center;
}

.enrollment-row .mini-link {
  width: 100%;
  justify-content: center;
}

.admin-courses-panel {
  display: grid;
  gap: 20px;
  padding: clamp(22px, 3vw, 32px);
}

.admin-courses-panel h1 {
  margin-bottom: 0;
}

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

.admin-course-cards .panel {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: clamp(18px, 2.5vw, 24px);
}

.admin-course-cards h2,
.admin-course-cards p {
  margin: 0;
}

.admin-course-cards p {
  color: var(--muted);
}

.kpi {
  padding: 24px;
}

.kpi strong {
  display: block;
  margin-top: 10px;
  color: var(--gold);
  font-size: 42px;
}

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

.grid-form .wide {
  grid-column: 1 / -1;
}

.checkline {
  align-content: end;
  grid-template-columns: 20px 1fr;
  color: var(--white);
}

.checkline input {
  width: 18px;
  height: 18px;
}

.delete-form {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 107, 122, .25);
}

.table {
  display: grid;
  gap: 1px;
  margin-top: 18px;
  padding: 0;
  overflow: hidden;
}

.table > div {
  display: grid;
  grid-template-columns: 60px 1fr 1.6fr 110px 250px;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .035);
}

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

.card-actions {
  margin-top: 18px;
}

.row-actions form {
  margin: 0;
}

.demo-link-form {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.demo-link-form input {
  width: 170px;
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

.demo-link-form input[type="number"] {
  width: 78px;
}

.demo-link-form select {
  width: auto;
  min-height: 30px;
  padding: 0 28px 0 8px;
  font-size: 12px;
}

.demo-access-popover {
  position: relative;
}

.demo-access-popover summary {
  list-style: none;
}

.demo-access-popover summary::-webkit-details-marker {
  display: none;
}

.demo-access-popover[open] .demo-link-form {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 8px);
  width: min(520px, calc(100vw - 36px));
  padding: 12px;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  background: rgba(10, 16, 28, .98);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .32);
}

.demo-link-result {
  display: grid;
  gap: 12px;
}

.demo-link-result input {
  cursor: copy;
}

.demo-access-dashboard {
  display: grid;
  gap: 12px;
  padding: 0;
  overflow-x: hidden;
}

.demo-access-dashboard .content-table-head {
  display: none;
}

.demo-access-dashboard .demo-access-row {
  display: grid;
  grid-template-columns: minmax(180px, .95fr) minmax(240px, 1.35fr) repeat(3, minmax(110px, .42fr));
  gap: 14px;
  min-width: 0;
  border: 1px solid rgba(247, 248, 250, .08);
}

.demo-access-dashboard .demo-access-row > * {
  min-width: 0;
}

.demo-access-dashboard .lesson-cell strong,
.demo-access-dashboard .lesson-cell small,
.demo-access-dashboard .row-actions small {
  overflow-wrap: anywhere;
}

.demo-access-dashboard .row-actions {
  align-items: stretch;
  min-width: 0;
}

.demo-access-dashboard .demo-access-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.demo-access-dashboard .demo-access-actions form {
  min-width: 0;
}

.demo-access-dashboard .demo-access-actions .mini-link {
  width: 100%;
  justify-content: center;
}

.demo-access-dashboard .demo-access-actions > .mini-link,
.demo-access-dashboard .demo-access-actions > form {
  width: auto;
}

.demo-access-meta {
  display: grid;
  gap: 6px;
  align-content: start;
}

.demo-access-meta small {
  color: var(--muted);
  font-size: 12px;
}

.demo-access-meta strong {
  color: var(--white);
  line-height: 1.25;
}

.demo-access-meta .status-badge {
  align-self: start;
}

.demo-url-input {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 0 8px;
  font-size: 12px;
  cursor: copy;
}

@media (max-width: 1320px) {
  .demo-access-dashboard .demo-access-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-access-dashboard .lesson-cell,
  .demo-access-dashboard .demo-access-actions {
    grid-column: 1 / -1;
  }

  .demo-access-dashboard .demo-access-actions {
    grid-template-columns: 1fr;
  }

  .demo-access-dashboard .demo-access-actions > .mini-link,
  .demo-access-dashboard .demo-access-actions > form {
    width: 100%;
  }
}

.demo-email-gate {
  margin-top: 22px;
}

.locked-material-list {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.locked-material {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(212, 175, 98, .22);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
}

.lock-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(212, 175, 98, .42);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(212, 175, 98, .08);
}

.locked-material p {
  margin: 4px 0;
}

.lesson-material-admin {
  display: grid;
  gap: 16px;
  margin: 26px 0;
  border-top: 1px solid rgba(247, 248, 250, .10);
  padding-top: 22px;
}

.material-admin-list,
.lesson-material-list {
  display: grid;
  gap: 12px;
}

.material-admin-card,
.lesson-material-card {
  border: 1px solid rgba(247, 248, 250, .10);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .04);
}

.material-admin-card {
  display: grid;
  gap: 10px;
}

.material-admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.material-delete-form {
  margin: 0;
}

.material-add-panel {
  margin-top: 4px;
}

.lesson-material-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.lesson-material-card strong {
  display: block;
  margin-top: 5px;
}

.lesson-material-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.material-type {
  display: inline-flex;
  width: fit-content;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.demo-answer-explanation {
  display: none;
  margin-top: 8px;
}

.demo-quiz-result {
  margin-top: 14px;
}

.user-management-table {
  display: grid;
  gap: 10px;
  max-width: 100%;
  overflow-x: hidden;
}

.user-management-head,
.user-edit-form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(170px, .8fr) minmax(220px, 1.15fr) minmax(110px, .55fr) minmax(92px, .4fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
}

.user-management-head {
  padding: 0 12px 4px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-management-row {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(247, 248, 250, .08);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
}

.user-management-row.is-blocked {
  border-color: rgba(255, 190, 91, .34);
  background: rgba(255, 190, 91, .055);
}

.user-edit-form textarea {
  min-height: 72px;
}

.user-edit-form,
.user-edit-form > *,
.user-management-row .lesson-cell,
.user-management-row .stack,
.user-management-row label,
.user-management-row input,
.user-management-row select,
.user-management-row textarea {
  min-width: 0;
}

.user-management-row input,
.user-management-row select,
.user-management-row textarea {
  width: 100%;
}

.user-management-row .lesson-cell strong,
.user-management-row .lesson-cell small {
  overflow-wrap: anywhere;
}

.user-stats {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.user-stats strong {
  color: var(--white);
}

.user-delete-form {
  position: absolute;
  right: 12px;
  bottom: 12px;
}

@media (max-width: 1280px) {
  .user-management-head {
    display: none;
  }

  .user-edit-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .user-edit-form .lesson-cell,
  .user-edit-form .user-stats,
  .user-edit-form .row-actions {
    grid-column: 1 / -1;
  }

  .user-delete-form {
    position: static;
    margin-top: 10px;
  }
}

.mini-link:disabled,
.danger-link:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.course-sales-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 356px);
  gap: clamp(22px, 3vw, 36px);
  align-items: stretch;
  margin-bottom: 28px;
  padding: clamp(26px, 4vw, 48px);
  overflow: hidden;
}

.course-sales-hero h1 {
  max-width: min(100%, 820px);
  margin: 10px 0 18px;
  font-size: clamp(40px, 4.2vw, 68px);
  line-height: 1.04;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.course-sales-hero__copy {
  display: grid;
  align-content: center;
  min-width: 0;
}

.course-sales-hero__copy .lead {
  max-width: 780px;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.55;
}

.sales-result-callout {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  background: rgba(212, 175, 98, .08);
}

.sales-result-callout strong,
.course-sales-offer span {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.course-sales-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.course-sales-offer {
  display: grid;
  align-content: center;
  gap: 12px;
  min-width: 0;
  padding: 26px;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 0, rgba(212, 175, 98, .16), transparent 42%), rgba(255, 255, 255, .025);
}

.course-sales-offer strong {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: clamp(42px, 4vw, 62px);
  line-height: 1;
}

.sales-price-value {
  display: block;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  letter-spacing: 0;
}

.course-sales-offer del,
.vip-price-line del {
  color: rgba(247, 248, 250, .52);
  font-size: 18px;
}

.course-sales-offer small {
  color: var(--muted);
}

.course-sales-hero-media {
  position: relative;
  grid-column: 1 / -1;
  min-height: 300px;
  margin: 4px 0 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  background: #060d17;
}

.course-sales-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 70px rgba(2, 7, 14, .46);
}

.course-sales-hero-media img {
  display: block;
  width: 100%;
  height: clamp(300px, 38vw, 520px);
  object-fit: cover;
  object-position: center;
}

.course-sales-hero-caption {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 4vw, 58px);
  bottom: clamp(22px, 4vw, 50px);
  display: grid;
  gap: 10px;
  width: min(650px, calc(100% - 44px));
  padding: clamp(18px, 2.5vw, 28px);
  border-left: 3px solid var(--gold);
  background: rgba(4, 10, 19, .82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
  backdrop-filter: blur(10px);
}

.course-sales-hero-caption strong {
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(25px, 3vw, 42px);
  line-height: 1.08;
}

.course-sales-hero-caption span {
  color: rgba(247, 248, 250, .82);
  font-size: clamp(15px, 1.6vw, 19px);
  line-height: 1.5;
}

.sales-facts {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.vip-price-line {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(212, 175, 98, .22);
}

.vip-price-line strong {
  font-size: clamp(30px, 2.7vw, 40px);
}

.sales-facts span,
.sales-check-grid span,
.sales-trust-grid article {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.sales-section {
  margin-top: 28px;
}

.sales-section.panel,
.sales-section .panel {
  padding: clamp(22px, 3vw, 34px);
}

.sales-card-grid,
.sales-program-grid,
.sales-check-grid,
.sales-trust-grid {
  display: grid;
  gap: 14px;
}

.sales-card-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.sales-card {
  min-height: 178px;
  padding: 20px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 8px;
  background: rgba(5, 12, 22, .7);
}

.sales-card__num {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border: 1px solid rgba(212, 175, 98, .5);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 800;
}

.sales-card p {
  margin: 0;
  color: var(--text);
  font-weight: 650;
}

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

.sales-check-grid span::before,
.sales-list li::before {
  content: "✓";
  color: var(--gold);
  margin-right: 10px;
  font-weight: 900;
}

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

.sales-program-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .028);
}

.sales-program-card > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(212, 175, 98, .14);
  color: var(--gold);
  font-weight: 900;
}

.sales-program-card h3 {
  margin: 0 0 8px;
  color: var(--gold);
}

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

.sales-visual-panel {
  display: grid;
  gap: 22px;
  overflow: hidden;
}

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

.sales-flow article {
  display: grid;
  gap: 10px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid rgba(212, 175, 98, .26);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(212, 175, 98, .08), rgba(255, 255, 255, .028));
}

.sales-flow-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  padding: 8px;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(212, 175, 98, .18), rgba(5, 12, 22, .72) 62%);
  box-shadow: 0 0 24px rgba(212, 175, 98, .14);
}

.sales-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(212, 175, 98, .48);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.sales-flow strong {
  color: var(--text);
  font-family: var(--font-heading);
}

.sales-flow p {
  margin: 0;
  color: var(--muted);
}

.sales-illustration {
  display: grid;
  grid-template-columns: minmax(280px, .75fr) 1fr;
  gap: 18px;
  align-items: stretch;
}

.sales-pdf-program {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  grid-row: span 2;
  border: 1px solid rgba(212, 175, 98, .3);
  border-radius: 8px;
  background: rgba(5, 12, 22, .76);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .22);
}

.course-mockup {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 98, .3);
  border-radius: 8px;
  background: radial-gradient(circle at 70% 10%, rgba(212, 175, 98, .16), transparent 42%), rgba(2, 7, 14, .72);
}

.mockup-bar {
  display: flex;
  gap: 6px;
}

.mockup-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(212, 175, 98, .55);
}

.mockup-screen {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 210px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(212, 175, 98, .16), transparent 38%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 36px);
}

.play-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #0a0f18;
  background: linear-gradient(135deg, #f5dda2, var(--gold));
  font-size: 22px;
}

.mockup-screen strong {
  font-family: var(--font-heading);
}

.mockup-screen small {
  color: var(--muted);
}

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

.sales-mini-tools span {
  display: grid;
  place-items: center;
  min-height: 88px;
  padding: 14px;
  border: 1px solid rgba(212, 175, 98, .22);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(255, 255, 255, .035);
  font-weight: 800;
  text-align: center;
}

.sales-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

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

.sales-list li {
  color: var(--text);
}

.sales-cta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.sales-cta h2 {
  max-width: 820px;
  margin: 0;
}

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

.sales-instructor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.sales-instructor-card {
  display: grid;
  grid-template-columns: 136px 1fr;
  gap: 18px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 98, .09), rgba(255, 255, 255, .03));
}

.sales-instructor-card img {
  width: 136px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(212, 175, 98, .35);
  background: rgba(5, 12, 22, .72);
}

.sales-instructor-card h3 {
  margin: 0 0 8px;
  color: var(--white);
}

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

.course-instructor-profile {
  display: grid;
  grid-template-columns: minmax(260px, .68fr) minmax(0, 1.55fr);
  gap: clamp(24px, 4vw, 48px);
  margin-bottom: 22px;
  padding: clamp(18px, 2.8vw, 30px);
  border: 1px solid rgba(212, 175, 98, .3);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(212, 175, 98, .09), rgba(255, 255, 255, .025));
}

.course-instructor-photo {
  min-height: 460px;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  background: #07101c;
}

.course-instructor-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.course-instructor-copy h3 {
  margin: 4px 0 10px;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
}

.course-instructor-role {
  color: var(--gold) !important;
  font-size: 18px;
  font-weight: 750;
}

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

.course-instructor-achievements span {
  position: relative;
  padding: 12px 14px 12px 38px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 8px;
  background: rgba(5, 12, 22, .55);
  color: var(--text);
  line-height: 1.45;
}

.course-instructor-achievements span::before {
  content: "✓";
  position: absolute;
  left: 14px;
  color: var(--gold);
  font-weight: 900;
}

.course-instructor-more {
  margin-top: 14px;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  background: rgba(5, 12, 22, .46);
}

.course-instructor-more > summary {
  padding: 14px 16px;
  color: var(--gold);
  cursor: pointer;
  font-weight: 800;
}

.course-instructor-more[open] > summary {
  border-bottom: 1px solid rgba(212, 175, 98, .18);
}

.course-instructor-more .course-instructor-achievements {
  padding: 0 14px 14px;
}

.form-section-divider {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding-top: 18px;
  border-top: 1px solid rgba(212, 175, 98, .24);
}

.tripwire-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border-color: rgba(212, 175, 98, .42);
  background: linear-gradient(135deg, rgba(212, 175, 98, .12), rgba(255, 255, 255, .035));
}

.tripwire-panel h2,
.tripwire-panel p {
  margin-bottom: 0;
}

.tripwire-form {
  margin: 0;
}

.sales-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

.sales-lms-preview {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: center;
}

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

.sales-feature-grid span {
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.sales-feature-grid strong {
  color: var(--gold);
}

.sales-feature-grid small {
  color: var(--muted);
}

.sales-steps {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 20px;
}

.nested-grid-form {
  margin-top: 16px;
}

.nested-grid-form label small {
  display: block;
  margin: 4px 0 8px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .course-sales-hero {
    grid-template-columns: 1fr;
  }

  .course-sales-hero h1 {
    max-width: 100%;
    font-size: clamp(38px, 8vw, 58px);
  }

  .course-sales-offer {
    align-content: start;
  }
}

@media (max-width: 760px) {
  .course-sales-hero,
  .sales-two-col,
  .sales-cta,
  .tripwire-panel,
  .sales-bottom-grid,
  .sales-flow,
  .sales-illustration,
  .sales-lms-preview,
  .sales-feature-grid,
  .sales-instructor-grid,
  .guest-preview .route-map {
    grid-template-columns: 1fr;
    display: grid;
  }

  .course-sales-hero h1 {
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.08;
  }

  .course-sales-offer {
    padding: 20px;
  }

  .course-sales-hero-media {
    min-height: 220px;
  }

  .course-sales-hero-media img {
    height: 240px;
    object-position: 62% center;
  }

  .course-sales-hero-caption {
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: auto;
    padding: 14px 16px;
  }

  .course-sales-hero-caption strong {
    font-size: 21px;
  }

  .course-sales-hero-caption span {
    font-size: 13px;
  }

  .course-instructor-profile,
  .course-instructor-achievements {
    grid-template-columns: 1fr;
  }

  .course-instructor-photo {
    min-height: 360px;
    aspect-ratio: 4 / 5;
  }

  .course-sales-offer strong {
    font-size: clamp(38px, 13vw, 56px);
  }

  .vip-price-line strong {
    font-size: clamp(30px, 10vw, 42px);
  }

  .sales-card-grid,
  .sales-program-grid,
  .sales-check-grid,
  .sales-trust-grid {
    grid-template-columns: 1fr;
  }

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

  .sales-program-card {
    grid-template-columns: 40px 1fr;
  }

  .sales-instructor-card {
    grid-template-columns: 96px 1fr;
  }

  .sales-instructor-card img {
    width: 96px;
  }

  .sales-pdf-program {
    grid-row: auto;
    min-height: auto;
  }

  .user-management-table {
    overflow-x: visible;
  }

  .user-management-head {
    display: none;
  }

  .user-edit-form {
    min-width: 0;
    grid-template-columns: 1fr;
  }

  .user-delete-form {
    position: static;
    margin-top: 10px;
  }
}

.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  padding: 0 9px;
  color: var(--gold);
  background: rgba(255, 255, 255, .035);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.danger-link {
  color: #ffb8bf;
  border-color: rgba(255, 107, 122, .38);
}

.warning-link {
  color: #ffd891;
  border-color: rgba(255, 198, 88, .42);
  background: rgba(255, 198, 88, .06);
}

.pill {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(212, 175, 98, .38);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
}

.front-edit {
  margin: 12px 0;
  border: 1px dashed rgba(212, 175, 98, .34);
  border-radius: 8px;
  padding: 10px;
  background: rgba(212, 175, 98, .055);
}

.front-edit summary {
  cursor: pointer;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
}

.front-edit-form {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.front-edit-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.generated-field {
  gap: 8px;
}

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

.field-label-row .mini-link {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
}

.generate-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 12px;
}

.generate-status.is-error {
  color: var(--danger);
}

.ajax-form-status {
  display: block;
  grid-column: 1 / -1;
  min-height: 18px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.ajax-form-status.is-success {
  color: var(--success);
}

.ajax-form-status.is-error {
  color: var(--danger);
}

form[data-ajax-busy="1"] {
  opacity: .82;
}

.ajax-form-status:empty {
  display: none;
}

.ajax-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1200;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border: 1px solid rgba(83, 224, 163, .42);
  border-radius: 8px;
  color: #d9fff0;
  background: rgba(7, 48, 38, .96);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .34);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.ajax-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ajax-toast.is-error {
  border-color: rgba(255, 107, 122, .48);
  color: #ffe8eb;
  background: rgba(70, 18, 29, .97);
}

@media (max-width: 640px) {
  .ajax-toast {
    right: 16px;
    bottom: 76px;
    left: 16px;
    max-width: none;
  }
}

.generate-field-btn:disabled {
  cursor: wait;
  opacity: .72;
}

.generator-panel {
  display: grid;
  gap: 10px;
  align-items: start;
  border: 1px dashed rgba(212, 175, 98, .32);
  border-radius: 8px;
  padding: 12px;
  background: rgba(212, 175, 98, .055);
}

.generator-panel.compact {
  margin: 12px 0;
}

.generator-panel p {
  margin: 4px 0 0;
}

.generate-quiz-btn:disabled {
  cursor: wait;
  opacity: .72;
}

.front-edit-form input,
.front-edit-form textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid rgba(247, 248, 250, .14);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, .06);
}

.front-edit-form textarea {
  min-height: 92px;
  resize: vertical;
}

.markdown-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 8px;
}

.markdown-toolbar button {
  min-height: 32px;
  border: 1px solid rgba(212, 175, 98, .34);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--gold);
  background: rgba(255, 255, 255, .045);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.markdown-toolbar button:hover {
  border-color: rgba(212, 175, 98, .68);
  background: rgba(212, 175, 98, .10);
}

.markdown-source {
  font-family: Consolas, Monaco, 'Courier New', monospace;
  line-height: 1.55;
}

.markdown-preview {
  min-height: 140px;
  border: 1px solid rgba(247, 248, 250, .14);
  border-radius: 8px;
  padding: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, .045);
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin: 18px 0 10px;
  line-height: 1.2;
}

.markdown-content h1 {
  font-size: 28px;
}

.markdown-content h2 {
  font-size: 22px;
}

.markdown-content h3 {
  font-size: 18px;
}

.markdown-content p,
.markdown-content li {
  line-height: 1.7;
}

.markdown-content ul {
  margin: 10px 0 14px;
  padding-left: 22px;
}

.markdown-content blockquote {
  margin: 12px 0;
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  color: var(--text);
  background: rgba(212, 175, 98, .07);
}

.markdown-content code {
  border: 1px solid rgba(212, 175, 98, .18);
  border-radius: 6px;
  padding: 1px 5px;
  color: var(--gold);
  background: rgba(0, 0, 0, .22);
}

.markdown-content pre {
  overflow: auto;
  border: 1px solid rgba(212, 175, 98, .18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(0, 0, 0, .28);
}

.markdown-content pre code {
  border: 0;
  padding: 0;
  color: var(--text);
  background: transparent;
}

.front-edit-form .checkline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lesson-front-edit {
  margin-bottom: 18px;
}

.gpt-card {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.gpt-card.is-disabled {
  opacity: .82;
}

.neuro-shell {
  display: grid;
  gap: clamp(18px, 3vw, 30px);
}

.neuro-page-head,
.neuro-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}

.neuro-page-head {
  padding: 22px 4px 6px;
}

.neuro-page-head > div {
  max-width: 820px;
}

.neuro-page-head p:last-child {
  margin-bottom: 0;
}

.neuro-page-head h1,
.neuro-hero h1 {
  margin-bottom: 12px;
}

.neuro-hero {
  padding: clamp(24px, 4vw, 44px);
  overflow: hidden;
  background:
    linear-gradient(105deg, rgba(212, 175, 98, .08), transparent 48%),
    var(--glass);
}

.neuro-hero > div:first-child {
  max-width: 780px;
}

.neuro-account-summary,
.neuro-balance {
  display: grid;
  min-width: 190px;
  gap: 3px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--glass-2);
}

.neuro-account-summary span,
.neuro-balance span,
.neuro-account-summary small,
.neuro-balance small {
  color: var(--muted);
  font-size: 13px;
}

.neuro-account-summary strong,
.neuro-balance strong {
  color: var(--gold);
  font-family: Unbounded, Inter, sans-serif;
  font-size: 30px;
  line-height: 1.1;
}

.neuro-account-summary a {
  margin-top: 8px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
}

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

.neuro-assistant-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  min-height: 162px;
  padding: 16px 18px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  color: var(--text);
  background: var(--glass);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.neuro-assistant-card:hover,
.neuro-assistant-card.is-active {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(212, 175, 98, .13), var(--glass));
  transform: translateY(-2px);
}

.neuro-assistant-card strong,
.neuro-assistant-card small {
  display: block;
}

.neuro-assistant-card strong {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.25;
}

.neuro-assistant-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.neuro-assistant-icon {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(212, 175, 98, .07);
}

.neuro-assistant-icon.small {
  width: 38px;
  height: 38px;
}

.neuro-assistant-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.neuro-workspace {
  display: grid;
  gap: 24px;
  padding: clamp(20px, 3vw, 32px);
}

.neuro-workspace-head,
.neuro-form-footer,
.neuro-history-head,
.neuro-history-foot,
.neuro-history-totals {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.neuro-workspace-head h2 {
  margin-bottom: 0;
  line-height: 1.16;
}

.neuro-model,
.neuro-status,
.neuro-key-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  color: var(--muted);
  background: var(--field-bg);
  font-size: 12px;
  white-space: nowrap;
}

.neuro-key-status.is-connected,
.neuro-status.status-completed {
  border-color: rgba(83, 224, 163, .4);
  color: var(--success);
}

.neuro-status.status-pending,
.neuro-status.status-processing {
  border-color: var(--line);
  color: var(--gold);
}

.neuro-status.status-failed {
  border-color: rgba(255, 107, 122, .42);
  color: var(--danger);
}

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

.neuro-generation-options {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.neuro-reference-mode {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  min-height: 70px;
  padding: 22px 0 0;
}

.neuro-reference-mode[hidden],
.neuro-reference-upload[hidden],
.neuro-action-templates[hidden] {
  display: none !important;
}

.neuro-reference-mode > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.neuro-reference-mode label {
  display: inline-flex;
  grid-template-columns: none;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--text);
  background: var(--field-bg);
  font-size: 13px;
  cursor: pointer;
}

.neuro-reference-mode input {
  width: auto;
}

.neuro-action-templates {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(212, 175, 98, .22);
  border-radius: 8px;
  background: rgba(212, 175, 98, .045);
}

.neuro-action-templates > div:first-child {
  display: grid;
  gap: 4px;
}

.neuro-action-templates span,
.neuro-action-template strong {
  color: var(--text);
  font-weight: 800;
}

.neuro-action-templates small,
.neuro-action-template small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

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

.neuro-action-template {
  display: grid;
  gap: 6px;
  min-height: 96px;
  padding: 12px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  color: var(--text);
  background: var(--field-bg);
  text-align: left;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.neuro-action-template:hover,
.neuro-action-template.is-selected {
  border-color: var(--gold);
  background: linear-gradient(145deg, rgba(212, 175, 98, .13), var(--field-bg));
  transform: translateY(-1px);
}

.neuro-reference-upload {
  display: grid;
  gap: 12px;
  border: 1px dashed rgba(212, 175, 98, .34);
  border-radius: 8px;
  padding: 16px;
  background: rgba(212, 175, 98, .055);
}

.neuro-reference-upload input[type="file"] {
  padding: 10px;
}

.neuro-prompt-form textarea {
  min-height: 190px;
}

.neuro-form-footer {
  padding-top: 2px;
}

.neuro-form-footer .muted {
  max-width: 690px;
  margin-bottom: 0;
  line-height: 1.55;
}

.neuro-cost-hint {
  margin: 2px 0 0;
  padding: 12px 14px;
  border: 1px solid rgba(212, 175, 98, .24);
  border-radius: 8px;
  color: var(--gold);
  background: rgba(212, 175, 98, .06);
  font-weight: 800;
}

.neuro-cost-source {
  margin: -6px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.neuro-empty-state,
.neuro-empty-history {
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  text-align: center;
}

.neuro-empty-state p {
  max-width: 660px;
  margin-right: auto;
  margin-left: auto;
  color: var(--muted);
}

.neuro-history-section {
  display: grid;
  gap: 18px;
}

.neuro-history-totals {
  justify-content: flex-end;
  color: var(--muted);
  font-size: 13px;
}

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

.neuro-history-card {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 2.4vw, 24px);
}

.neuro-history-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.neuro-history-head strong,
.neuro-history-head small {
  display: block;
}

.neuro-history-head small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.neuro-history-card details {
  padding: 10px 12px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  color: var(--muted);
}

.neuro-history-card details p {
  margin: 12px 0 0;
  color: var(--text);
}

.neuro-text-result {
  padding: 18px 20px;
  border-left: 2px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: var(--field-bg);
}

.neuro-text-result .markdown-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  margin: 12px 0;
}

.neuro-text-result table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.neuro-text-result th,
.neuro-text-result td {
  border: 1px solid var(--field-border);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.neuro-text-result th {
  color: var(--gold);
  background: rgba(212, 175, 98, .08);
}

.neuro-text-result > :last-child {
  margin-bottom: 0;
}

.neuro-reference-result {
  display: grid;
  gap: 10px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  padding: 12px;
  background: rgba(255, 255, 255, .035);
}

.neuro-reference-result > strong {
  color: var(--gold);
  font-size: 13px;
}

.neuro-reference-result > div {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.neuro-reference-result img {
  display: block;
  width: 112px;
  height: 112px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: #05080e;
  object-fit: cover;
}

.neuro-media-result {
  display: grid;
  gap: 10px;
}

.neuro-media-result img,
.neuro-media-result video {
  display: block;
  width: min(100%, 860px);
  max-height: 640px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #05080e;
  object-fit: contain;
}

.neuro-history-foot {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.neuro-history-foot form {
  margin-left: auto;
}

.neuro-settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .75fr);
  gap: 20px;
}

.neuro-settings-content {
  display: grid;
  gap: 20px;
}

.neuro-key-panel,
.neuro-balance-panel,
.neuro-model-settings {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(22px, 3vw, 32px);
}

.neuro-key-panel .section-title,
.neuro-model-settings .section-title {
  margin-bottom: 0;
}

.neuro-key-panel .section-title h2,
.neuro-balance-panel h2,
.neuro-model-settings h2 {
  margin-bottom: 0;
}

.neuro-key-panel > .muted,
.neuro-model-settings__head .muted {
  margin-bottom: 0;
}

.neuro-key-panel .stack {
  gap: 14px;
}

.kie-key-guide {
  border: 1px solid rgba(63, 217, 255, .22);
  border-radius: 8px;
  background: rgba(63, 217, 255, .055);
  overflow: hidden;
}

.kie-key-guide summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 0 16px;
  color: var(--cyan);
  font-weight: 900;
  cursor: pointer;
}

.kie-key-guide summary::after {
  content: "+";
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border: 1px solid rgba(63, 217, 255, .34);
  border-radius: 8px;
}

.kie-key-guide[open] summary::after {
  content: "-";
}

.kie-key-guide__intro {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px 14px;
}

.kie-key-guide__intro p {
  flex: 1 1 260px;
  margin: 0;
  color: var(--muted);
}

.kie-key-steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0 16px 16px;
  list-style: none;
  counter-reset: kie-step;
}

.kie-key-steps li {
  counter-increment: kie-step;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(247, 248, 250, .09);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, .035);
}

.kie-key-steps li > div {
  position: relative;
  display: grid;
  gap: 6px;
  padding-left: 40px;
}

.kie-key-steps li > div::before {
  content: counter(kie-step);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(212, 175, 98, .42);
  border-radius: 8px;
  color: #130f07;
  background: linear-gradient(135deg, #f2d690, var(--gold));
  font-weight: 900;
}

.kie-key-steps strong {
  color: var(--text);
  line-height: 1.3;
}

.kie-key-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.kie-key-steps a {
  color: var(--cyan);
}

.kie-key-steps img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(247, 248, 250, .10);
  border-radius: 8px;
  background: rgba(6, 11, 20, .42);
}

.neuro-balance-panel form {
  display: grid;
  gap: 10px;
}

.neuro-key-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  color: var(--muted);
}

.neuro-key-summary strong {
  color: var(--gold);
}

.neuro-mini-stats {
  display: grid;
  gap: 8px;
}

.neuro-mini-stats span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--field-border);
  color: var(--muted);
  font-size: 13px;
}

.neuro-mini-stats strong {
  color: var(--text);
}

.neuro-checked {
  margin: 0;
  font-size: 12px;
}

.danger-link {
  color: var(--danger);
}

.neuro-model-settings__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.neuro-model-settings__head > div {
  max-width: 860px;
}

.neuro-models-date {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  font-size: 12px;
  white-space: nowrap;
}

.neuro-model-form,
.neuro-model-list {
  display: grid;
  gap: 12px;
}

.neuro-model-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(270px, .72fr);
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--field-border);
  border-radius: 8px;
  background: var(--field-bg);
}

.neuro-model-row__copy strong,
.neuro-model-row__copy small {
  display: block;
}

.neuro-model-row__copy strong {
  margin-bottom: 3px;
  color: var(--text);
}

.neuro-model-row__copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.neuro-model-row select {
  min-width: 0;
}

.neuro-model-form__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding-top: 6px;
}

.neuro-model-form__footer .form-status {
  margin-right: auto;
}

.mobile-nav {
  display: none;
}

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

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

  .admin-menu {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .admin-menu a {
    flex: 1 1 150px;
    text-align: center;
  }
}

@media (max-width: 860px) {
  .topbar {
    gap: 12px;
  }

  .topbar-theme-toggle {
    margin-left: auto;
  }

  .theme-toggle [data-theme-label] {
    display: none;
  }

  .brand--logo img {
    width: clamp(150px, 46vw, 220px);
  }

  .topnav {
    display: none;
  }

  .preview-switcher {
    top: 0;
    width: min(100% - 24px, 680px);
  }

  .shell {
    width: min(100% - 24px, 680px);
    margin-top: 20px;
    margin-bottom: 92px;
  }

  .hero-panel,
  .landing-hero,
  .masterclass-announce,
  .landing-info,
  .workshops-showcase .section-title,
  .workshop-hero,
  .workshop-details-grid,
  .workshop-buy-panel,
  .workshop-card,
  .workshop-strip .section-title,
  .workshop-strip__card,
  .available-courses .section-title,
  .course-module-head,
  .course-lesson-row,
  .admin-content-toolbar,
  .admin-progress-head,
  .admin-progress-card > summary,
  .admin-progress-notes,
  .admin-progress-lesson,
  .promptbook-hero,
  .promptbook-search,
  .workshop-buy,
  .contacts-panel,
  .route-head,
  .lesson-grid,
  .admin-layout,
  .grid-form,
  .stats,
  .landing-grid,
  .legal-grid,
  .site-footer__inner,
  .tariff-grid,
  .course-cards {
    grid-template-columns: 1fr;
  }

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

  .neuro-page-head,
  .neuro-hero,
  .neuro-settings-grid,
  .neuro-model-settings__head {
    grid-template-columns: 1fr;
  }

  .neuro-page-head {
    padding: 12px 0 2px;
  }

  .neuro-page-head .btn {
    width: 100%;
    justify-content: center;
  }

  .neuro-model-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .neuro-generation-options {
    grid-template-columns: 1fr;
  }

  .neuro-reference-mode {
    min-height: 0;
    padding-top: 0;
  }

  .neuro-reference-mode label {
    flex: 1 1 170px;
  }

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

  .neuro-model-row select {
    grid-column: 1 / -1;
  }

  .neuro-models-date {
    justify-self: start;
  }

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

  .neuro-workspace {
    padding: 20px;
  }

  .neuro-account-summary {
    min-width: 0;
  }

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

  .workshop-card__media img {
    min-height: 190px;
  }

  .workshop-strip__card {
    grid-template-columns: 1fr;
  }

  .workshop-strip__buy {
    justify-items: stretch;
  }

  .available-course-card {
    min-height: 0;
  }

  .course-lesson-row {
    grid-template-columns: 1fr;
  }

  .promptbook-counter {
    width: min(220px, 100%);
    justify-self: start;
  }

  .workshop-hero {
    padding: 20px;
  }

  .workshop-hero h1 {
    font-size: 34px;
  }

  .workshop-actions {
    justify-content: stretch;
  }

  .workshop-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .neuro-form-footer,
  .neuro-history-foot,
  .neuro-model-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .neuro-form-footer .btn,
  .neuro-history-foot form,
  .neuro-history-foot .mini-link {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .neuro-model-form__footer .form-status {
    margin-right: 0;
  }

  .neuro-model-form__footer .btn {
    width: 100%;
    justify-content: center;
  }

  .section-title {
    display: grid;
  }

  .content-filter-form {
    justify-content: stretch;
  }

  .content-filter-form .btn,
  .content-filter-form .mini-link {
    justify-content: center;
    width: 100%;
  }

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

  .billing-panel {
    gap: 16px;
    padding: 22px 16px;
  }

  .billing-panel h1 {
    font-size: clamp(28px, 9vw, 38px);
    line-height: 1.14;
  }

  .admin-content-toolbar h1,
  .admin-layout .panel > h1,
  .admin-progress-head h1,
  .admin-courses-panel h1 {
    font-size: clamp(26px, 7vw, 36px);
    line-height: 1.15;
  }

  .billing-panel .lead,
  .billing-panel > .muted {
    font-size: 15px;
  }

  .billing-form .btn {
    width: 100%;
  }

  .content-table {
    overflow-x: hidden;
  }

  .content-table-head {
    display: none;
  }

  .content-table-row,
  .admin-content-row,
  .demo-access-dashboard .content-table-row {
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .admin-content-actions,
  .row-actions {
    align-items: stretch;
  }

  .admin-content-actions > .mini-link,
  .admin-content-actions > form,
  .admin-content-actions > details,
  .duplicate-lesson-form select {
    width: 100%;
  }

  .duplicate-lesson-form {
    width: 100%;
  }

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

  .lesson-material-card .mini-link {
    justify-content: center;
    width: 100%;
  }

  h1 {
    font-size: 34px;
  }

  .auth-card h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .score-card,
  .progress-ring {
    width: 132px;
    min-width: 132px;
    padding: 14px;
  }

  .route-controls {
    display: none;
  }

  .countdown {
    width: 100%;
  }

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

  .route-stage {
    margin: 0;
    overflow: visible;
  }

  .route-stage::before,
  .route-stage::after {
    display: none;
  }

  .route-map {
    display: grid;
    overflow: visible;
    padding: 0;
  }

  .station {
    flex-basis: auto;
  }

  .station::before {
    top: -22px;
    left: 31px;
    width: 1px;
    height: 22px;
  }

  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-auto-flow: column;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(212, 175, 98, .25);
    border-radius: 8px;
    background: rgba(6, 11, 20, .92);
    backdrop-filter: blur(18px);
  }

  .mobile-nav a {
    padding: 10px;
    text-align: center;
    color: var(--gold);
    font-size: 13px;
  }

  .table > div {
    grid-template-columns: 1fr;
  }

  .usage-head,
  .usage-row,
  .payment-head,
  .payment-row,
  .enrollment-head,
  .enrollment-row,
  .access-request-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .neuro-hero h1 {
    font-size: 28px;
    overflow-wrap: anywhere;
  }

  .neuro-assistant-grid {
    grid-template-columns: 1fr;
  }

  .neuro-assistant-card {
    min-height: 0;
  }

  .neuro-action-template-list {
    grid-template-columns: 1fr;
  }

  .neuro-workspace-head,
  .neuro-history-section > .section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .neuro-history-head {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .neuro-history-head .neuro-status {
    grid-column: 2;
    justify-self: start;
  }
}

/* Longread lessons */
.longread-editor {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(212, 175, 98, .22);
}

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

.longread-admin-card {
  border: 1px solid rgba(212, 175, 98, .2);
  border-radius: 8px;
  background: rgba(13, 22, 37, .72);
  overflow: hidden;
}

.longread-admin-card summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

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

.longread-block-number {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  flex: 0 0 28px;
  border: 1px solid rgba(212, 175, 98, .4);
  border-radius: 50%;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.longread-block-form {
  padding: 0 16px 16px;
}

.longread-block-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
}

.longread-block-actions form {
  margin: 0;
}

.longread-admin-preview {
  display: grid;
  gap: 10px;
  margin: 0;
}

.longread-admin-preview img {
  width: min(100%, 680px);
  max-height: 340px;
  border: 1px solid rgba(212, 175, 98, .2);
  border-radius: 6px;
  object-fit: contain;
  background: #080d16;
}

.longread-add-panel {
  border-color: rgba(55, 192, 169, .35);
}

.longread-reader {
  width: 100%;
  max-width: 920px;
  margin: 30px auto;
}

.longread-reader-toolbar {
  position: sticky;
  top: 76px;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  margin-bottom: 22px;
  padding: 14px 16px 12px;
  border: 1px solid rgba(212, 175, 98, .28);
  border-radius: 8px;
  background: rgba(7, 14, 25, .94);
  box-shadow: 0 14px 38px rgba(0, 0, 0, .24);
  backdrop-filter: blur(16px);
}

.longread-reader-toolbar > div:first-child {
  display: grid;
  gap: 2px;
}

.longread-reader-toolbar .eyebrow {
  margin: 0;
}

.longread-reader-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.longread-progress-track {
  grid-column: 1 / -1;
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, .09);
}

.longread-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), #42c7b5);
  transition: width .35s ease;
}

.longread-toc {
  margin-bottom: 22px;
  padding: 16px 18px;
  border-left: 3px solid #42c7b5;
  border-radius: 0 8px 8px 0;
  background: rgba(66, 199, 181, .07);
}

.longread-toc summary {
  cursor: pointer;
  color: var(--white);
  font-weight: 800;
}

.longread-toc nav {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.longread-toc a {
  color: var(--muted);
}

.longread-step {
  scroll-margin-top: 168px;
  animation: longreadReveal .32s ease both;
}

.longread-step[hidden] {
  display: none;
}

@keyframes longreadReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.longread-block {
  scroll-margin-top: 168px;
  margin: 0 0 26px;
}

.longread-heading {
  padding-top: 12px;
  border-top: 1px solid rgba(212, 175, 98, .2);
}

.longread-heading h2 {
  max-width: 760px;
  margin: 0 0 12px;
  font-size: clamp(27px, 4vw, 42px);
  line-height: 1.12;
}

.longread-text,
.longread-checklist {
  max-width: 760px;
}

.longread-text h3,
.longread-checklist h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.longread-reader .markdown-content p,
.longread-reader .markdown-content li {
  color: #d8dfeb;
  font-size: 18px;
  line-height: 1.72;
}

.longread-reader .markdown-content p + p {
  margin-top: 14px;
}

.longread-checklist .markdown-content ul {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.longread-checklist .markdown-content li {
  position: relative;
  padding-left: 34px;
}

.longread-checklist .markdown-content li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(66, 199, 181, .5);
  border-radius: 5px;
  color: #42c7b5;
  content: "✓";
  font-size: 13px;
  font-weight: 900;
}

.longread-quote {
  max-width: 820px;
  margin: 34px 0;
  padding: 24px 28px;
  border: 0;
  border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background: rgba(212, 175, 98, .09);
}

.longread-quote p {
  margin: 0;
  color: var(--white);
  font-size: 22px;
  line-height: 1.55;
}

.longread-quote cite {
  display: block;
  margin-top: 14px;
  color: var(--gold);
  font-style: normal;
}

.longread-callout {
  max-width: 820px;
  padding: 22px 24px;
  border: 1px solid rgba(66, 199, 181, .38);
  border-radius: 8px;
  background: rgba(66, 199, 181, .08);
}

.longread-callout > strong {
  display: block;
  margin-bottom: 8px;
  color: #72dece;
  font-size: 18px;
}

.longread-image {
  margin: 34px 0;
}

.longread-image img {
  display: block;
  width: 100%;
  max-height: 760px;
  border: 1px solid rgba(212, 175, 98, .22);
  border-radius: 8px;
  object-fit: contain;
  background: #070c14;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.longread-image figcaption {
  max-width: 760px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.longread-code {
  overflow: hidden;
  border: 1px solid rgba(212, 175, 98, .25);
  border-radius: 8px;
  background: #070b12;
}

.longread-code-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.longread-code-head button {
  border: 0;
  color: var(--gold);
  background: transparent;
  cursor: pointer;
}

.longread-code pre {
  max-width: 100%;
  margin: 0;
  padding: 18px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.longread-code code {
  color: #e9eef6;
  font-size: 14px;
  line-height: 1.65;
}

.longread-action {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px;
  border: 1px solid rgba(212, 175, 98, .22);
  border-radius: 8px;
  background: rgba(212, 175, 98, .06);
}

.longread-action p {
  margin: 0;
  color: var(--muted);
}

.longread-divider {
  margin: 36px 0;
  border-color: rgba(212, 175, 98, .24);
}

.longread-continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 36px 0 18px;
  padding: 22px 0 8px;
  border-top: 1px solid rgba(212, 175, 98, .22);
}

.longread-continue > span {
  color: var(--muted);
  font-size: 14px;
}

.longread-finish {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid rgba(66, 199, 181, .38);
  border-radius: 8px;
  background: rgba(66, 199, 181, .08);
}

.longread-finish > span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #06120f;
  background: #42c7b5;
  font-weight: 900;
}

:root[data-theme="light"] .longread-admin-card,
:root[data-theme="light"] .longread-reader-toolbar,
:root[data-theme="light"] .longread-code {
  color: #121a26;
  background: rgba(255, 255, 255, .96);
}

:root[data-theme="light"] .longread-reader .markdown-content p,
:root[data-theme="light"] .longread-reader .markdown-content li,
:root[data-theme="light"] .longread-quote p,
:root[data-theme="light"] .longread-code code,
:root[data-theme="light"] .longread-toc summary {
  color: #172131;
}

:root[data-theme="light"] .longread-quote {
  background: #fff8e9;
}

:root[data-theme="light"] .longread-callout,
:root[data-theme="light"] .longread-toc,
:root[data-theme="light"] .longread-finish {
  background: #edf9f7;
}

:root[data-theme="light"] .longread-image img,
:root[data-theme="light"] .longread-admin-preview img {
  background: #f1f4f7;
}

@media (max-width: 760px) {
  .longread-editor {
    margin-top: 22px;
    padding-top: 22px;
  }

  .longread-admin-card summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .longread-reader {
    margin-top: 22px;
  }

  .longread-reader-toolbar {
    top: 8px;
    grid-template-columns: 1fr;
  }

  .longread-reader-actions {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .longread-heading h2 {
    font-size: 29px;
  }

  .longread-reader .markdown-content p,
  .longread-reader .markdown-content li {
    font-size: 17px;
    line-height: 1.65;
  }

  .longread-quote {
    padding: 20px;
  }

  .longread-quote p {
    font-size: 19px;
  }

  .longread-continue {
    align-items: stretch;
    flex-direction: column;
  }

  .longread-continue .btn {
    width: 100%;
    justify-content: center;
  }
}
