.course-intro h1 { margin-bottom: 8px }
.course-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 18px;
  margin-block: 28px 75px;
}
.course-card {
  max-width: 530px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
}
.course-card:hover { border-color: var(--teal) }
.course-card img { height: auto; aspect-ratio: 2.05; background: var(--sand) }
.course-card a > div { padding: 18px 21px }
.course-card h2 { font-size: clamp(23px, 3vw, 33px); margin-bottom: 6px }
.course-card .kicker { margin-bottom: 4px }
.course-card h2 + p { color: var(--muted); margin-bottom: 14px }
.course-hero {
  display: grid;
  grid-template-columns: .93fr 1.07fr;
  min-height: 350px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: linear-gradient(140deg, #e2eee7, #f5ede0 70%, #f4e1e3);
}
.course-hero > div { align-self: center; padding: clamp(20px, 4vw, 58px) }
.course-hero .course-cover { min-height: 100%; max-height: 490px; object-position: center }
.course-hero h1 { color: var(--dark); font-size: clamp(37px, 5vw, 72px); margin-bottom: 14px }
.course-description { color: var(--muted) }
.course-facts { margin: 19px 0 0; color: var(--teal); font-weight: 750; font-size: 13px }
.course-price { margin: 4px 0 13px; color: var(--dark); font-weight: 800 }
.course-access-message { color: var(--dark); font-size: 13px; font-weight: 700 }
.course-access-message a { display: inline-block; color: var(--teal); text-decoration: underline; text-underline-offset: 4px }
.course-checkout {
  width: min(560px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: clamp(13px, 3vw, 23px);
  border: 1px solid #bad5ca;
  border-radius: 18px;
  background: var(--card);
  color: var(--dark);
  overscroll-behavior: contain;
}
.course-checkout::backdrop { background: #142e2bbb }
.checkout-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:14px }
.checkout-heading h2 { font-size:clamp(17px, 3.8vw, 25px) }
.checkout-heading .kicker { margin-bottom:3px }
.checkout-heading .btn { min-height:36px }
.checkout-overview { display:grid; gap:10px; font-size:14px }
.checkout-overview > .btn { justify-self:start }
.checkout-overview ol { margin:0; padding-inline-start:22px; color:var(--muted) }
.checkout-price { display:flex; align-items:center; flex-wrap:wrap; justify-content:space-between; gap:7px; padding:11px; background:var(--mint); border-radius:9px; color:var(--teal) }
.checkout-price strong { font-size:16px }
.checkout-messengers { display:grid; gap:6px; padding-top:10px; border-top:1px solid var(--border) }
.checkout-messengers p { color:var(--muted) }
.course-bank-transfer {
  display: grid;
  gap: 10px;
  padding: clamp(11px, 2.2vw, 19px);
  border: 1px solid #bcd7cc;
  border-radius: 15px;
  background: #fffdf7;
  color: var(--dark);
  font-size: 13px;
}
.course-bank-heading { display: flex; align-items: center; gap: 9px }
.course-bank-heading > span { display: grid; flex: none; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: #e2efe7; color: var(--teal) }
.course-bank-heading h2 { font-size: clamp(17px, 2vw, 23px) }
.course-bank-transfer dl { display: grid; gap: 6px; margin: 0; padding-block: 9px; border-block: 1px solid var(--border) }
.course-bank-transfer dl > div { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 3px 9px }
.course-bank-transfer dt, .course-bank-transfer > p:not(.feedback) { color: var(--muted) }
.course-bank-transfer dd { margin: 0; font-weight: 750; overflow-wrap: anywhere }
.bank-card-number { font: 700 clamp(13px, 2.5vw, 18px)/1.45 Consolas, monospace; color: var(--teal); user-select: all }
.course-bank-actions { display: flex; flex-wrap: wrap; gap: 6px }
.course-bank-actions .btn { min-height: 36px }
.course-bank-transfer > .btn { justify-self: start }
.course-bank-transfer form { gap: 8px }
.course-bank-transfer form small { color: var(--muted) }
.course-bank-transfer summary { cursor: pointer; margin-bottom: 7px; color: var(--teal) }
.course-bank-details summary { min-height: 38px; margin-bottom: 0 }
.course-bank-details summary::-webkit-details-marker { display: none }
.course-bank-details summary svg { width: 18px; height: 18px; flex: none }
.course-bank-details[open] summary { background: var(--mint) }
.course-bank-details-body { margin-top: 8px; padding: 9px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--card) }
.course-bank-details-body dl { padding-block: 0; border: 0 }
.course-bank-details-body .course-bank-actions { margin-top: 9px }
.course-roadmap { margin-block: 60px 24px }
.course-roadmap .heading p { color: var(--muted); margin-top: 7px }
.roadmap-grid {
  --stage-gap: 12px;
  --stage-node: clamp(48px, 5vw, 62px);
  --stage-line: 3px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--stage-gap);
  margin: 0;
  padding: clamp(12px, 3vw, 27px);
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(150deg, #edf5ee, var(--card) 54%, #f6eeeb);
  list-style: none;
}
.course-stage { --connector: #cdbeb8; position: relative; min-width: 0 }
.course-stage.unlocked { --connector: #77bdb1 }
.course-stage:not(:first-child)::before,
.course-stage:not(:last-child)::after {
  content: '';
  position: absolute;
  inset-inline-start: calc((var(--stage-node) - var(--stage-line)) / 2);
  width: var(--stage-line);
  background: var(--connector);
  pointer-events: none;
}
.course-stage::before { inset-block: 0 50% }
.course-stage::after { inset-block: 50% calc(-1 * var(--stage-gap)) }
.course-stage button {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: var(--stage-node) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  width: 100%;
  min-height: calc(var(--stage-node) + 8px);
  text-align: start;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 4px 0;
}
.stage-number {
  display: grid;
  place-items: center;
  width: var(--stage-node);
  height: var(--stage-node);
  border: 1px solid #d6c5c2;
  border-radius: 50%;
  background: #faf0ef;
  color: #65484d;
  font-size: clamp(17px, 2.5vw, 23px);
  font-weight: 800;
  box-shadow: 0 2px 6px #513a3916;
  transition: box-shadow .2s, border-color .2s, background .2s, color .2s;
}
.unlocked .stage-number { border-color: #8bc8ba; background: #d8eee7; color: var(--teal) }
.course-stage button:hover .stage-number { border-color: var(--teal); box-shadow: 0 0 0 4px #eacbd8 }
.course-stage button[aria-pressed=true] .stage-number {
  border-color: var(--teal);
  background: var(--teal);
  color: white;
  box-shadow: 0 0 0 4px #bce0d8;
}
.stage-title { font-size: clamp(13px, 1.5vw, 16px); font-weight: 750; line-height: 1.55; overflow-wrap: anywhere }
.course-stage button[aria-pressed=true] .stage-title { color: var(--teal) }
.stage-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 30px;
  background: #f4e8e6;
  color: #65484d;
  font-size: 11px;
}
.stage-badge svg { width: 13px; height: 13px }
.unlocked .stage-badge { background: #e0f0e9; color: var(--teal) }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%) }
.lesson-view { margin-block: 24px 75px; padding: clamp(15px, 3vw, 28px); border: 1px solid var(--border); border-radius: 17px; background: var(--card) }
.lesson-copy { margin-bottom: 18px }
.lesson-copy h2 { font-size: clamp(23px, 3vw, 35px); margin-bottom: 7px }
.lesson-copy > p:last-child { color: var(--muted) }
.lesson-video video { display: block; width: 100%; aspect-ratio: 16/9; max-height: 620px; border-radius: 11px; background: #152b27 }
.lesson-video .feedback { margin-top: 8px }
.lesson-video video[hidden] { display: none }
.lesson-video [data-complete-lesson] { margin-block-start: 8px }
[data-learning-summary] progress, .learner-course progress { width: min(100%, 24rem); accent-color: var(--teal); }
.lesson-placeholder {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 7px;
  min-height: 170px;
  padding: 15px;
  border: 1px dashed #b9cabe;
  border-radius: 11px;
  background: #eaf0e7;
  color: var(--dark);
  text-align: center;
}
.lesson-placeholder svg { width: 29px; height: 29px }
.lesson-placeholder .btn { min-height: 36px }
.course-catalog-heading,.course-section-heading { margin-bottom: 14px }
.course-catalog-heading p { margin-top: 5px; color: var(--muted); font-size: 13px }
.course-add-icon { font-size: 22px; font-weight: 400; line-height: 1 }
.course-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(min(100%,260px),1fr));
  gap: 14px;
}
.course-admin-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fffefa;
}
.course-admin-card > img { aspect-ratio: 2.4; height: auto; background: var(--sand) }
.course-admin-card > div { padding: 14px }
.course-admin-card h3 { margin: 6px 0 3px }
.course-admin-card p,.course-admin-banner p { color: var(--muted); font-size: 13px }
.course-admin-card .btn { margin-top: 11px }
.course-admin-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 122px;
  padding: clamp(12px,3vw,20px);
  border: 1px solid #d9e2d8;
  border-radius: 14px;
  background: linear-gradient(120deg,#f3e6e3,#e9f0e6 65%,#e0eee5);
}
.course-admin-banner h2 { margin: 4px 0; overflow-wrap: anywhere }
.course-admin-banner > img { width: min(27%,142px); height: auto; aspect-ratio: 1.55; border-radius: 8px }
.course-back { border: 0; padding: 2px 0; color: var(--teal); background: none; font-size: 12px; font-weight: 750 }
.course-back:hover { text-decoration: underline; text-underline-offset: 4px }
.course-admin-status { margin: 8px 0 }
.course-admin-switch { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; padding: 4px; width: fit-content; max-width: 100%; border-radius: 10px; background: #eef0e8 }
.course-admin-switch button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid transparent; border-radius: 7px; padding: 5px 8px; background: transparent; font-size: 12px }
.course-admin-switch button:hover,.course-admin-switch button[aria-pressed=true] { border-color: #d6e3d9; background: #fffefa; color: var(--teal) }
.course-admin-switch svg { width: 16px; height: 16px }
.course-admin-sections { display: grid; gap: 13px; margin-top: 17px }
.course-admin-sections [data-class-capacity] { margin-top: 14px }
.class-roster-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: var(--card) }
.class-roster { width: 100%; border-collapse: collapse; text-align: start; font-size: .88rem }
.class-roster :is(th, td) { text-align: start; padding: 14px; border-block-end: 1px solid var(--border) }
.class-roster thead { background: #e4efe9 }
.class-roster tbody tr:last-child > * { border-block-end: 0 }
.class-roster td { white-space: nowrap }
.course-admin-lessons { display: grid; gap: 8px }
.course-admin-lesson { border: 1px solid var(--border); border-radius: 10px; background: #fffefa }
.course-admin-lesson[open] { border-color: #a8c5b9 }
.course-admin-lesson summary {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: center;
  gap: 9px;
  min-height: 59px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
}
.course-admin-lesson summary::-webkit-details-marker { display: none }
.course-admin-lesson summary:hover,.course-admin-lesson[open] summary { background: #f0f5ee; border-radius: 9px }
.course-step-number { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--teal); background: #dfede5; font-weight: 800 }
.course-step-text { display: grid; min-width: 0; font-size: 13px; line-height: 1.55 }
.course-step-text strong { overflow-wrap: anywhere }
.course-step-text small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px }
.course-step-badges { display: flex; flex-wrap: wrap; gap: 4px }
.course-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 5px; background: #f2ede3; color: #655746; font-size: 10px; font-weight: 720; white-space: nowrap }
.course-badge.is-ready,.course-badge.is-free { background: #e0eee5; color: var(--teal) }
.course-badge svg { width: 12px; height: 12px }
.course-lesson-body { padding: 13px 11px }
.course-new-lesson { margin-bottom: 11px; border-color: #9abdaf; background: #f7fbf6 }
.course-new-lesson h3 { margin-bottom: 10px }
.course-lesson-fields { display: grid; grid-template-columns: minmax(0,1fr) minmax(104px,.3fr); gap: 8px }
.course-video-field { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 9px; border: 1px dashed #9abdaf; border-radius: 9px; background: #f1f6ef }
.course-video-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #dcece5; color: var(--teal) }
.course-video-field label { flex: 1 1 180px; min-width: 0 }
.course-video-field small { color: var(--muted); font-weight: 400 }
.course-video-field input[type=file] { background: #fffefa; font-size: 11px }
.course-video-field input[type=file]::file-selector-button { padding: 4px 8px; margin-inline-end: 6px; border: 0; border-radius: 4px; color: var(--teal); background: #e2eee6; font: inherit; cursor: pointer }
.course-admin-sections progress { width: min(100%,310px); accent-color: var(--teal) }
.course-lesson-actions { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px }
.course-admin-request + .course-admin-request { margin-top: 9px }
.course-admin-request { display: grid; gap: 12px; padding: clamp(12px, 2vw, 20px) }
.course-request-header, .course-request-amount { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px }
.course-request-header p { margin-top: 2px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere }
.course-request-amount { padding: 10px 12px; border-radius: 9px; background: #e9f2eb; color: var(--teal) }
.course-request-amount span, .course-request-amount small { font-size: 12px }
.course-request-proof { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; color: var(--muted); font-size: 13px }
.course-request-amount strong { display: block; font-size: 17px }
.course-admin-request > .payment-note { margin: 0 }
.course-request-access { border-top: 1px solid var(--border); padding-top: 9px }
.course-request-access summary { cursor: pointer; font-size: 12px; color: var(--teal) }
.course-request-access form { margin-top: 9px; max-width: 360px }
.account-course-list { display: grid; gap: 8px; margin: 0 0 27px }
.account-course-list a { display: flex; justify-content: space-between; align-items: center; gap: 9px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 8px; background: var(--card) }
.account-course-list a:hover { border-color: var(--teal) }
.account-course-list .tag { margin: 0 }
@media (max-width: 760px) {
  .course-hero { grid-template-columns: 1fr 1fr }
}
@media (max-width: 550px) {
  .course-catalog-heading { flex-wrap: wrap }
  .course-admin-lesson summary { grid-template-columns: auto minmax(0,1fr) auto; gap: 5px }
  .course-step-badges { grid-column: 2; grid-row: 2 }
  .course-admin-lesson summary > .plus { grid-column: 3; grid-row: 1 }
  .course-hero { grid-template-columns: 1fr }
  .course-hero .course-cover { min-height: 0; height: auto; aspect-ratio: 2 }
  .course-roadmap { margin-top: 39px }
  .course-stage button { grid-template-columns: var(--stage-node) minmax(0, 1fr); gap: 2px 12px }
  .stage-number { grid-row: 1 / span 2 }
  .stage-title { align-self: end }
  .stage-badge { align-self: start; padding-block: 2px }
}
