.live-body {
  --live-bg: #0b0814;
  --live-panel: #151023;
  --live-soft-panel: #1b142c;
  --live-line: #2d2240;
  --live-text: #f8f4ff;
  --live-muted: #bdb0d2;
  --live-violet: #a78bfa;
  --live-accent: #e4d1ff;
  color: var(--live-text);
  background:
    radial-gradient(ellipse at 80% 12%, #29134b 0%, transparent 36rem),
    var(--live-bg);
  color-scheme: dark;
  min-height: 100vh;
  font-size: 15px;
}

.live-header {
  position: relative;
  display: block;
  height: auto;
  padding: 0;
  border-bottom: 1px solid #261c38;
  background: #0e0a19d9;
}

.live-header-inner,
.live-page {
  max-width: 1280px;
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 68px);
}

.live-header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

.live-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  font-size: 23px;
  font-weight: 840;
  letter-spacing: -.05em;
}

.live-brand-mark {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 10px;
  background: linear-gradient(150deg, #a16dff, #6936d3);
  border: 1px solid #c09aff85;
  box-shadow: 0 3px 18px #7729cc45, inset 0 1px 1px #ffffff34;
}

.live-brand-mark::before {
  content: "";
  width: 16px;
  height: 16px;
  background: #fff;
  clip-path: polygon(50% 0, 64% 34%, 100% 50%, 64% 64%, 50% 100%, 35% 64%, 0 50%, 35% 34%);
}

.live-header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.live-header nav a,
.live-header nav button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--live-muted);
  background: transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.live-header nav :is(a, button):hover,
.live-header nav [aria-current="page"] {
  color: var(--live-text);
  background: #241734;
  border-color: #332247;
}

.live-page .content {
  max-width: none;
  padding: clamp(26px, 5vw, 58px) 0 72px;
}

.live-body :is(a, button, input, textarea):focus-visible {
  outline: 2px solid #d5bcff;
  outline-offset: 4px;
}

.live-body [hidden] {
  display: none !important;
}

.live-page h1 {
  max-width: 14ch;
  margin: 0;
  color: var(--live-text);
  font-size: clamp(2.6rem, 6vw, 5rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.07em;
  overflow-wrap: anywhere;
}

.live-page h2,
.live-page h3 {
  color: var(--live-text);
  letter-spacing: -.035em;
}

.live-page h2 {
  font-size: clamp(1.25rem, 2.3vw, 1.65rem);
}

.live-page p,
.live-page .muted {
  color: var(--live-muted);
  font-size: 14px;
  line-height: 1.65;
}

.live-page .content > h1 + p {
  max-width: 60ch;
  margin: 16px 0 28px;
  font-size: clamp(.95rem, 2vw, 1.08rem);
}

.live-page .store-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  min-height: clamp(260px, 34vw, 390px);
  padding: clamp(28px, 5vw, 64px);
  border: 1px solid #65458d;
  border-radius: 26px;
  background:
    radial-gradient(ellipse at 82% 43%, #6e37bb 0%, #42216a 27%, transparent 61%),
    linear-gradient(120deg, #211332, #140e21 73%);
  box-shadow: inset 0 1px 0 #ffffff17, 0 24px 54px #0704114a;
}

.live-page .store-hero::before,
.live-page .store-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.live-page .store-hero::before {
  inset: 0;
  background-image: linear-gradient(#e6c5ff13 1px, transparent 1px), linear-gradient(90deg, #e6c5ff13 1px, transparent 1px);
  background-size: 33px 33px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 75%);
}

.live-page .store-hero::after {
  width: clamp(230px, 30vw, 390px);
  aspect-ratio: 1;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle, #f3d8ff82 0%, #c886ff43 6%, transparent 28%),
    repeating-radial-gradient(circle, transparent 0 12.2%, #e7bcff47 12.4% 12.7%, transparent 12.9% 17%);
  box-shadow: inset 0 0 84px #c390ff3c, 0 0 88px #9d58ff3d;
  opacity: .8;
}

.live-page .store-hero > * {
  position: relative;
  z-index: 1;
}

.live-page .store-hero p {
  max-width: 43ch;
  margin: 0;
  font-size: clamp(.95rem, 2vw, 1.1rem);
  color: #e2d4f3;
}

.live-page .content > h2 {
  margin-top: 36px;
}

.live-page :is(.catalog-grid, .grid) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin: 18px 0 36px;
}

.live-page .product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--live-line);
  background: linear-gradient(165deg, #1b132a, var(--live-panel));
  box-shadow: 0 13px 34px #07041126;
}

.live-page .product-card h3 {
  margin: 0 0 8px;
  font-size: clamp(1.18rem, 2.4vw, 1.48rem);
}

.live-page .product-card p {
  margin: 0 0 16px;
}

.live-page .product-card .muted {
  min-height: 0;
}

.live-page .product-card :is(.link, .primary, .product-card-action),
.live-page button.primary,
#login-form button.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid #a070ef;
  border-radius: 10px;
  background: linear-gradient(160deg, #8750df, #6936c2);
  box-shadow: inset 0 1px 0 #ffffff27, 0 4px 16px #6428b942;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 790;
}

.live-page .product-card :is(.link, .primary, .product-card-action) {
  margin-top: auto;
}

.live-page .product-card a:is(.link, .product-card-action)::after {
  content: "↗";
}

.live-page :is(button.primary, .product-card a.link, .product-card-action):hover,
#login-form button.primary:hover {
  background: #8752db;
  border-color: #d4adff;
}

.live-page button:disabled,
#login-form button:disabled {
  opacity: .6;
  cursor: wait;
}

.live-page .resource-intro {
  margin: 0 0 clamp(20px, 3vw, 34px);
}

.live-page .resource-intro h1 {
  max-width: 18ch;
  margin: 10px 0 12px;
  font-size: clamp(2.25rem, 5vw, 4.25rem);
}

.live-page .resource-intro p {
  max-width: 64ch;
  margin: 0;
}

.live-page .course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
  gap: 20px;
  align-items: start;
}

.live-page .course-layout > .lesson-list {
  grid-column: 2;
  grid-row: 1;
}

.live-page .course-layout > .lesson-panel {
  grid-column: 1;
  grid-row: 1;
}

.live-page :is(.lesson-list, .lesson-panel) {
  min-width: 0;
  border: 1px solid var(--live-line);
  border-radius: 18px;
  background: var(--live-panel);
  box-shadow: 0 12px 30px #07041132;
}

.live-page .lesson-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 17px;
  margin: 0 0 18px;
}

.live-page .lesson-list h2 {
  margin: 2px 4px 7px;
  font-size: 18px;
}

.live-page .lesson-list :is(button, .lesson-item) {
  display: flex;
  width: 100%;
  min-height: 47px;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #463260;
  border-radius: 9px;
  background: #221638;
  color: #f1e5ff;
  text-align: left;
  font-size: 13px;
  font-weight: 720;
  box-shadow: none;
}

.live-page .lesson-list :is(button, .lesson-item):hover,
.live-page .lesson-list :is([aria-current], [aria-pressed="true"], .active, .is-active) {
  background: #372250;
  border-color: #9a6bd7;
}

.live-page .lesson-panel {
  padding: clamp(15px, 2.5vw, 24px);
}

.live-page .lesson-panel h2 {
  margin: 0 0 9px;
}

.live-page .lesson-panel p {
  margin: 10px 0 0;
}

.live-page video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 70vh;
  margin-block: 12px 0;
  background: #07050c;
  border: 1px solid #2a1c3b;
  border-radius: 12px;
  object-fit: contain;
}

.live-page .lesson-panel p[role="status"]:empty {
  display: none;
}

.live-page .notice,
.live-page .live-loading {
  width: 100%;
  margin: 0 0 18px;
  padding: 14px 16px;
  border: 1px solid #53386d;
  border-radius: 12px;
  background: #251638;
  color: #ecd9ff;
}

.live-body #auth-dialog {
  border: 1px solid #5f4481;
  border-radius: 18px;
  background: #1a1127;
  color: var(--live-text);
}

.live-body #auth-dialog::backdrop {
  background: #07040dc9;
}

#login-form label {
  display: grid;
  gap: 6px;
  margin: 15px 0;
}

#login-form input,
.live-page textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #5c4578;
  border-radius: 9px;
  background: #10091b;
  color: #fff;
  font: inherit;
}

.live-page textarea {
  min-height: 110px;
}

#user-status {
  color: var(--live-muted);
  margin: 12px 0 0;
}
#user-status:empty {
  display: none;
}

@media (max-width: 750px) {
  .live-page .course-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .live-page .course-layout > .lesson-list,
  .live-page .course-layout > .lesson-panel {
    grid-column: auto;
    grid-row: auto;
    margin: 0;
  }

  .live-page .course-layout > .lesson-panel {
    order: -1;
  }

  .live-page .store-hero::after {
    right: -25%;
    opacity: .45;
  }

}

@media (prefers-reduced-motion: no-preference) {
  .live-body :is(a, button) {
    transition: background-color .16s ease, border-color .16s ease, color .16s ease;
  }
}
.live-page .store-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, .7fr);
  align-items: center;
}

.store-hero-copy {
  display: grid;
  justify-items: start;
  gap: 18px;
}

.live-page .content-type {
  color: var(--live-accent);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.store-hero-art {
  display: grid;
  justify-self: center;
  place-items: center;
  width: clamp(62px, 11vw, 116px);
  aspect-ratio: 1;
  padding-left: .12em;
  border: 1px solid #d8b4ff9c;
  border-radius: 27%;
  background: linear-gradient(145deg, #d897ff94, #8737d23f);
  box-shadow: inset 0 1px 1px #ffffff69, 0 12px 48px #271347a6;
  color: #fff3ff;
  font-size: clamp(1.65rem, 5vw, 3.2rem);
}

.live-page .store-hero a.primary {
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  min-height: 44px;
  border: 1px solid #dec2ffad;
  border-radius: 10px;
  background: #f4e7ff;
  color: #341461;
  font-weight: 790;
  text-decoration: none;
}

.live-page .store-hero a.primary::after {
  content: "↓";
  margin-left: 9px;
}

.live-page .store-hero a.primary:hover {
  border-color: #fff;
  background: #fff;
}

.live-page #catalogo,
.live-page #catalogo ~ section {
  margin-top: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.live-page .section-heading {
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
}

.live-page .product-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #251740;
}

.live-page .product-card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 19px;
  padding-left: .12em;
  border: 1px solid #67478b;
  border-radius: 13px;
  background: linear-gradient(145deg, #7545a7, #442168);
  color: #f6dcff;
  font-size: 18px;
}

.live-page .product-card .product-card-meta {
  margin: 0 0 7px;
  color: #d7b3ff;
  font-size: 11px;
  font-weight: 770;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.live-page .product-card {
  background:
    radial-gradient(ellipse at 82% 40%, #2c1947, transparent 68%),
    linear-gradient(160deg, #1b132a, var(--live-panel));
}

.live-page .back-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-bottom: 10px;
  color: var(--live-accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.live-page .back-link:hover {
  text-decoration: underline;
}

.live-page .lesson-count {
  margin: -5px 4px 5px;
  font-size: 12px;
}

.live-page .lesson-choice-marker {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  place-items: center;
  padding-left: .1em;
  border-radius: 8px;
  background: #513579;
  color: #f2dbff;
  font-size: 11px;
}

.live-page .lesson-choice-title {
  overflow-wrap: anywhere;
}

.live-page .lesson-description {
  margin: 0;
  overflow-wrap: anywhere;
}

.live-page .video-frame {
  position: relative;
  margin-top: 16px;
}

.live-page .video-frame video {
  margin: 0;
}

@media (min-width: 751px) {
  .live-page .grid:has(> .product-card:only-child):not(:has(.product-image)) > .product-card {
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    column-gap: 20px;
  }

  .live-page .grid:has(> .product-card:only-child):not(:has(.product-image)) > .product-card > :not(.product-card-icon, .product-card-action) {
    grid-column: 2;
  }

  .live-page .grid:has(> .product-card:only-child):not(:has(.product-image)) .product-card-icon {
    grid-column: 1;
    grid-row: 1 / span 3;
    width: 66px;
    height: 66px;
    margin: 0;
    border-radius: 16px;
    font-size: 23px;
  }

  .live-page .grid:has(> .product-card:only-child):not(:has(.product-image)) .product-card-action {
    grid-column: 3;
    grid-row: 1 / span 3;
    margin: 0;
  }

  .live-page .grid:has(> .product-card:only-child):not(:has(.product-image)) .product-card .muted {
    margin-bottom: 0;
  }
}

@media (max-width: 570px) {
  .live-header-inner,
  .live-page {
    padding-inline: 16px;
  }

  .live-header-inner {
    min-height: 63px;
  }

  .live-header nav a,
  .live-header nav button {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 12px;
  }

  .live-page .store-hero {
    display: flex;
    min-height: 265px;
    padding: 25px 22px;
    justify-content: center;
    align-items: flex-start;
  }

  .live-page .store-hero-copy {
    position: relative;
    z-index: 1;
    max-width: 100%;
  }

  .live-page .store-hero .store-hero-art {
    position: absolute;
    right: 14px;
    bottom: 20px;
    opacity: .68;
    pointer-events: none;
  }

  .live-page .store-hero h1 {
    max-width: 8ch;
  }

  .live-page .product-card {
    padding: 19px;
  }
}

@media (max-width: 340px) {
  .live-page .store-hero .store-hero-art {
    display: none;
  }
}
