:root {
  color-scheme: dark;
  --page: #020817;
  --page-deep: #020817;
  --panel: rgba(4, 15, 40, 0.92);
  --panel-strong: rgba(8, 24, 56, 0.94);
  --panel-soft: rgba(8, 24, 56, 0.78);
  --line: rgba(76, 195, 255, 0.28);
  --line-strong: rgba(76, 195, 255, 0.62);
  --text: #f5f8ff;
  --copy: #aab7d1;
  --muted: #aab7d1;
  --cyan: #4cc3ff;
  --cyan-bright: #93ddff;
  --blue: #1877f2;
  --purple: #d023e8;
  --pink: #d98cff;
  --mint: #46e6a8;
  --gold: #ffd166;
  --danger: #ff6f91;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.38);
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --font-display: Inter, Arial, Helvetica, sans-serif;
  --font-body: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(
      rgba(2, 8, 23, 0.54),
      rgba(2, 8, 23, 0.58)
    ),
    url("/aigency-dev-lab/tool-background-1.png") center top / cover fixed,
    var(--page);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(76, 195, 255, 0.72);
  outline-offset: 3px;
}

.course-page {
  min-height: 100vh;
}

.course-topbar {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: 76px;
  padding: 10px max(20px, calc((100vw - 1360px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(76, 195, 255, 0.18);
  background: rgba(2, 8, 23, 0.9);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

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

.course-logo {
  display: block;
  width: 200px;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.course-brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.course-brand-text span {
  color: var(--text);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.course-brand-text small {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lab-header-actions {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.return-lab-button {
  min-height: 38px;
  padding: 9px 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(76, 195, 255, 0.38);
  border-radius: 9px;
  color: #dff6ff;
  background: rgba(76, 195, 255, 0.08);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.return-lab-button:hover {
  border-color: var(--cyan);
  background: rgba(76, 195, 255, 0.14);
  transform: translateY(-1px);
}

.return-lab-icon {
  color: var(--cyan);
  font-size: 14px;
  line-height: 1;
}

.course-assistant-toggle {
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(70, 230, 168, 0.48);
  border-radius: 9px;
  color: #eafff7;
  background: linear-gradient(135deg, rgba(70, 230, 168, 0.13), rgba(76, 195, 255, 0.09));
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.course-assistant-toggle:hover {
  border-color: var(--mint);
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(0, 0, 0, 0.24), 0 0 18px rgba(70, 230, 168, 0.09);
}

.course-assistant-toggle-icon {
  color: var(--mint);
  font-size: 14px;
}

.course-main {
  width: min(1360px, calc(100% - 36px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.65fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 70px;
}

.hero-content,
.progress-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(
      145deg,
      rgba(7, 22, 53, 0.96),
      rgba(3, 11, 31, 0.94)
    );
  box-shadow: var(--shadow);
}

.hero-content {
  padding: clamp(32px, 5vw, 64px);
  position: relative;
  overflow: hidden;
}

.hero-content::before {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  top: -220px;
  right: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(76, 195, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-content::after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  bottom: -180px;
  left: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 35, 232, 0.13), transparent 70%);
  pointer-events: none;
}

.course-eyebrow,
.content-heading > div > span,
.block-label,
.guide-label {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.course-eyebrow {
  margin-bottom: 17px;
  font-size: 12px;
  letter-spacing: 0.22em;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  max-width: 800px;
  margin: 0 0 10px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: transparent;
  background: linear-gradient(90deg, #ffffff 0%, #93ddff 48%, #d98cff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  position: relative;
  z-index: 1;
}

.hero-content h2 {
  margin: 0 0 22px;
  color: #d0d8e8;
  font-size: clamp(19px, 2vw, 27px);
  font-weight: 500;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.course-description {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.course-stats {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 23px;
  position: relative;
  z-index: 1;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-item strong {
  color: #ffffff;
  font-size: 22px;
  line-height: 1;
}

.stat-item span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.14);
}

.start-course-button {
  width: fit-content;
  margin-top: 36px;
  padding: 15px 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid rgba(76, 195, 255, 0.82);
  border-radius: 12px;
  color: #02101e;
  background: linear-gradient(135deg, #4cc3ff, #72e0ff);
  box-shadow: 0 10px 28px rgba(76, 195, 255, 0.21);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.start-course-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(76, 195, 255, 0.34);
}

.progress-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.progress-card::before {
  content: "";
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 35, 232, 0.16), transparent 70%);
  position: absolute;
  top: -110px;
  right: -100px;
}

.progress-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.progress-card-header > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.progress-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.progress-card-header strong {
  font-size: 46px;
  line-height: 1;
}

.progress-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(76, 195, 255, 0.28);
  border-radius: 16px;
  background: rgba(76, 195, 255, 0.09);
  font-size: 26px;
}

.progress-track {
  width: 100%;
  height: 11px;
  margin-top: 30px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  box-shadow: 0 0 14px rgba(76, 195, 255, 0.45);
  transition: width 0.4s ease;
}

.progress-card > p {
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.progress-card > p strong {
  color: #eaf2ff;
}

.progress-message {
  margin-top: auto;
  padding: 18px;
  border: 1px solid rgba(70, 230, 168, 0.22);
  border-radius: 13px;
  color: #c8f9e7;
  background: rgba(70, 230, 168, 0.07);
  font-size: 13px;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

.reset-progress {
  margin-top: 15px;
  padding: 0;
  border: 0;
  color: #75849d;
  background: transparent;
  font-size: 0.65rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.reset-progress:hover {
  color: #adbbcf;
}

.course-content {
  padding: 0 0 24px;
}

.availability-note {
  margin-bottom: 26px;
  padding: 13px 15px 13px 42px;
  position: relative;
  border: 1px solid rgba(255, 198, 109, 0.2);
  border-radius: 13px;
  color: #d4c3a8;
  background: rgba(121, 80, 25, 0.09);
  font-size: 0.7rem;
}

.availability-note::before {
  content: "i";
  position: absolute;
  left: 13px;
  top: 12px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 198, 109, 0.3);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.58rem;
  font-weight: 900;
}

.content-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}

.content-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.content-heading > p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.curriculum-section {
  margin-bottom: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(3, 12, 32, 0.82);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.26);
  overflow: hidden;
}

.curriculum-section-heading {
  padding: 25px 28px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  border-bottom: 1px solid rgba(76, 195, 255, 0.17);
  background: linear-gradient(90deg, rgba(76, 195, 255, 0.09), rgba(208, 35, 232, 0.045));
}

.section-number {
  width: 55px;
  height: 55px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  color: var(--cyan);
  background: rgba(76, 195, 255, 0.08);
  font-size: 18px;
  font-weight: 900;
}

.curriculum-section-title {
  min-width: 0;
  flex: 1;
}

.curriculum-section-title h3 {
  margin: 0;
  font-size: 22px;
}

.curriculum-section-title p {
  max-width: 760px;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.section-progress {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #d0d8e8;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

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

.lesson-card {
  width: 100%;
  min-height: 210px;
  padding: 21px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  color: inherit;
  background: linear-gradient(145deg, rgba(9, 25, 57, 0.86), rgba(4, 13, 34, 0.88));
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.lesson-card:hover {
  border-color: var(--line-strong);
  background: linear-gradient(145deg, rgba(12, 34, 75, 0.93), rgba(5, 16, 41, 0.94));
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28), 0 0 20px rgba(76, 195, 255, 0.08);
  transform: translateY(-3px);
}

.lesson-card-number {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 255, 0.32);
  border-radius: 13px;
  color: var(--cyan);
  background: rgba(76, 195, 255, 0.08);
  font-size: 15px;
  font-weight: 900;
}

.lesson-card.completed .lesson-card-number {
  border-color: rgba(70, 230, 168, 0.3);
  color: #9af9dd;
  background: rgba(27, 155, 127, 0.12);
}

.lesson-card-copy {
  min-width: 0;
}

.lesson-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lesson-card-copy strong {
  display: block;
  margin-top: 13px;
  color: #f1f4ff;
  font-size: 18px;
  line-height: 1.3;
}

.lesson-card-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.lesson-card-arrow {
  align-self: center;
  color: var(--cyan);
  font-size: 18px;
}

.lesson-card.completed .lesson-card-arrow {
  color: var(--mint);
}

.lesson-workspace {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 242px;
  gap: 18px;
  align-items: start;
}

.lesson-sidebar,
.lesson-reader,
.lesson-guide {
  min-width: 0;
}

.lesson-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 116px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(5, 14, 32, 0.91);
}

.sidebar-heading {
  padding: 17px;
  border-bottom: 1px solid var(--line);
}

.sidebar-heading strong {
  display: block;
  margin-top: 15px;
  color: #e8edfa;
  font-family: var(--font-display);
  font-size: 0.76rem;
}

.overview-button {
  padding: 0;
  border: 0;
  color: var(--cyan);
  background: transparent;
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.lesson-navigation {
  max-height: calc(100vh - 206px);
  padding: 9px;
  overflow-y: auto;
  scrollbar-color: rgba(76, 195, 255, 0.5) rgba(4, 13, 28, 0.8);
  scrollbar-width: thin;
}

.sidebar-section-label {
  margin: 11px 9px 6px;
  color: #697b98;
  font-size: 0.54rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sidebar-lesson {
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  border: 1px solid transparent;
  border-radius: 11px;
  color: #91a0b8;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.sidebar-lesson:hover {
  color: #dce5f5;
  background: rgba(18, 38, 69, 0.45);
}

.sidebar-lesson.active {
  border-color: rgba(76, 195, 255, 0.25);
  color: white;
  background: linear-gradient(120deg, rgba(24, 82, 119, 0.27), rgba(86, 40, 136, 0.17));
}

.sidebar-lesson.completed .sidebar-index {
  border-color: rgba(70, 230, 168, 0.28);
  color: var(--mint);
}

.sidebar-index {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 255, 0.18);
  border-radius: 8px;
  color: #82bbda;
  font-size: 0.52rem;
  font-weight: 800;
}

.sidebar-lesson strong {
  font-size: 0.63rem;
  line-height: 1.42;
}

.lesson-reader {
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(8, 18, 42, 0.96), rgba(4, 12, 29, 0.96));
  box-shadow: var(--shadow);
}

.lesson-reader-header {
  padding-bottom: 26px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(100, 159, 225, 0.14);
}

.lesson-kicker {
  margin: 0;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.lesson-reader-header h1 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.3vw, 3rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.lesson-description {
  max-width: 760px;
  margin: 0;
  color: #aab6ca;
  font-size: 0.9rem;
}

.lesson-duration-badge {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(208, 35, 232, 0.25);
  border-radius: 999px;
  color: #dfc0ff;
  background: rgba(130, 44, 177, 0.1);
  font-size: 0.61rem;
  font-weight: 800;
}

.lesson-outcomes {
  margin-top: 28px;
  padding: 22px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(76, 195, 255, 0.19);
  border-radius: 17px;
  background: rgba(12, 40, 69, 0.24);
}

.section-symbol {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 255, 0.27);
  border-radius: 11px;
  color: var(--cyan);
  font-size: 0.58rem;
  font-weight: 900;
}

.lesson-outcomes h2,
.lesson-block h2,
.lesson-mini-card h2,
.reflection-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
}

.lesson-outcomes ul,
.feature-list,
.lesson-mini-card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.lesson-outcomes li,
.feature-list li,
.lesson-mini-card li {
  position: relative;
  margin-top: 8px;
  padding-left: 19px;
  color: var(--copy);
  font-size: 0.78rem;
}

.lesson-outcomes li::before,
.feature-list li::before,
.lesson-mini-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.69em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(76, 195, 255, 0.55);
}

.lesson-block {
  padding: 34px 0 4px;
}

.lesson-block h2 {
  margin-top: 7px;
  font-size: 1.25rem;
}

.lead-copy {
  margin: 12px 0 0;
  color: var(--copy);
  font-size: 0.88rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
}

.feature-list li {
  padding: 12px 14px 12px 31px;
  border: 1px solid rgba(100, 155, 218, 0.12);
  border-radius: 12px;
  background: rgba(3, 10, 25, 0.42);
}

.feature-list li::before {
  left: 14px;
  top: 1.24rem;
}

.step-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: lesson-steps;
}

.step-list li {
  position: relative;
  min-height: 46px;
  margin-top: 11px;
  padding: 13px 14px 13px 58px;
  border-left: 1px solid rgba(96, 171, 237, 0.2);
  color: var(--copy);
  background: linear-gradient(90deg, rgba(22, 66, 104, 0.12), transparent);
  font-size: 0.8rem;
  counter-increment: lesson-steps;
}

.step-list li::before {
  content: counter(lesson-steps, decimal-leading-zero);
  position: absolute;
  left: 13px;
  top: 10px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(76, 195, 255, 0.25);
  border-radius: 9px;
  color: var(--cyan);
  background: rgba(20, 84, 126, 0.12);
  font-size: 0.56rem;
  font-weight: 900;
}

.practice-card {
  margin-top: 34px;
  padding: 23px;
  border: 1px solid rgba(70, 230, 168, 0.2);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(70, 230, 168, 0.08), transparent 44%),
    rgba(5, 35, 39, 0.28);
}

.practice-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.practice-heading h2,
.prompt-card h2,
.source-card h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.35;
}

.practice-heading .section-symbol {
  border-color: rgba(70, 230, 168, 0.27);
  color: var(--mint);
}

.practice-steps {
  margin-top: 18px;
}

.practice-steps li {
  border-left-color: rgba(70, 230, 168, 0.23);
  background: linear-gradient(90deg, rgba(27, 113, 95, 0.12), transparent);
}

.practice-steps li::before {
  border-color: rgba(70, 230, 168, 0.29);
  color: var(--mint);
  background: rgba(27, 113, 95, 0.13);
}

.prompt-card {
  margin-top: 16px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(208, 35, 232, 0.24);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(208, 35, 232, 0.12), transparent 45%),
    rgba(30, 13, 53, 0.34);
}

.prompt-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.prompt-card-header button {
  min-height: 38px;
  padding: 0 13px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(208, 35, 232, 0.32);
  border-radius: 10px;
  color: #ead7fa;
  background: rgba(148, 57, 201, 0.13);
  font-size: 0.62rem;
  font-weight: 800;
  cursor: pointer;
}

.prompt-card-header button:hover {
  border-color: rgba(210, 126, 255, 0.5);
  background: rgba(148, 57, 201, 0.22);
}

.prompt-card pre {
  max-width: 100%;
  margin: 17px 0 0;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid rgba(139, 114, 220, 0.18);
  border-radius: 13px;
  color: #d8d8e8;
  background: rgba(2, 7, 19, 0.68);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.68rem;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

.lesson-mini-card {
  position: relative;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(100, 158, 220, 0.16);
  border-radius: 16px;
  background: rgba(4, 12, 28, 0.56);
}

.lesson-mini-card > span {
  position: absolute;
  right: 13px;
  top: 9px;
  color: rgba(153, 181, 225, 0.14);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
}

.leave-card {
  border-color: rgba(70, 230, 168, 0.19);
  background: rgba(7, 43, 43, 0.25);
}

.leave-card li::before {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(70, 230, 168, 0.48);
}

.lesson-note {
  margin-top: 16px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid;
  border-radius: 14px;
}

.lesson-note > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  font-weight: 900;
}

.lesson-note strong {
  font-family: var(--font-display);
  font-size: 0.72rem;
}

.lesson-note p {
  margin: 3px 0 0;
  font-size: 0.75rem;
}

.tip-note {
  border-color: rgba(70, 230, 168, 0.2);
  color: #c7eee4;
  background: rgba(20, 107, 92, 0.1);
}

.tip-note > span {
  color: var(--mint);
  background: rgba(70, 230, 168, 0.1);
}

.caution-note {
  border-color: rgba(255, 198, 109, 0.19);
  color: #e9d6b6;
  background: rgba(130, 88, 31, 0.09);
}

.caution-note > span {
  color: var(--gold);
  background: rgba(255, 198, 109, 0.09);
}

.reflection-card {
  margin-top: 30px;
  padding: 25px;
  border: 1px solid rgba(208, 35, 232, 0.22);
  border-radius: 17px;
  background:
    radial-gradient(circle at 100% 0%, rgba(208, 35, 232, 0.12), transparent 42%),
    rgba(41, 18, 66, 0.23);
}

.reflection-card h2 {
  max-width: 760px;
  margin-top: 9px;
  font-size: clamp(1rem, 2vw, 1.35rem);
}

.next-step-card {
  margin-top: 18px;
  padding: 19px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(76, 195, 255, 0.15);
  border-radius: 15px;
  background: rgba(4, 13, 30, 0.7);
}

.source-card {
  margin-top: 16px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(76, 195, 255, 0.14);
  border-radius: 15px;
  background: rgba(4, 13, 30, 0.54);
}

.source-card ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  list-style: none;
}

.source-card a {
  min-height: 35px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(76, 195, 255, 0.19);
  border-radius: 9px;
  color: #9fdef3;
  background: rgba(28, 87, 124, 0.1);
  font-size: 0.6rem;
  font-weight: 700;
  text-decoration: none;
}

.source-card a:hover {
  border-color: rgba(76, 195, 255, 0.38);
  color: var(--cyan-bright);
}

.next-step-card p {
  margin: 5px 0 0;
  color: #aeb9cd;
  font-size: 0.74rem;
}

.tool-link {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(76, 195, 255, 0.31);
  border-radius: 11px;
  color: var(--cyan-bright);
  background: rgba(30, 109, 158, 0.13);
  font-size: 0.68rem;
  font-weight: 800;
  text-decoration: none;
}

.tool-link:hover {
  border-color: rgba(76, 195, 255, 0.55);
  background: rgba(30, 109, 158, 0.25);
}

.lesson-footer {
  margin-top: 29px;
  padding-top: 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  border-top: 1px solid rgba(100, 159, 225, 0.13);
}

.lesson-nav-button {
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid rgba(76, 195, 255, 0.26);
  border-radius: 11px;
  color: #f4f7ff;
  background: rgba(21, 76, 116, 0.18);
  font-size: 0.67rem;
  font-weight: 800;
  cursor: pointer;
}

.lesson-nav-button:last-child {
  justify-self: end;
}

.lesson-nav-button.secondary {
  justify-self: start;
  color: #aebbd0;
  background: rgba(5, 13, 28, 0.55);
}

.lesson-nav-button.complete {
  border-color: rgba(70, 230, 168, 0.3);
  color: #b8f6e4;
  background: rgba(27, 155, 127, 0.12);
}

.lesson-nav-button.complete.completed {
  border-color: rgba(70, 230, 168, 0.45);
  color: #05231b;
  background: var(--mint);
}

.lesson-nav-button:disabled {
  opacity: 0.36;
  cursor: not-allowed;
}

.lesson-guide {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 12px;
}

.guide-card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(5, 14, 32, 0.86);
}

.guide-card h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 0.86rem;
  line-height: 1.45;
}

.guide-card > p:not(.guide-label) {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.lifecycle-card ol {
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  list-style: none;
}

.lifecycle-card li {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(102, 153, 213, 0.12);
  border-radius: 9px;
  color: #a9b5ca;
  background: rgba(3, 10, 25, 0.48);
  font-size: 0.59rem;
  font-weight: 700;
}

.lifecycle-card li span {
  color: var(--cyan);
  font-size: 0.49rem;
}

.assistant-guide {
  border-color: rgba(208, 35, 232, 0.21);
  background: linear-gradient(145deg, rgba(34, 14, 62, 0.75), rgba(5, 14, 32, 0.86));
}

.assistant-guide button {
  width: 100%;
  min-height: 39px;
  margin-top: 14px;
  border: 1px solid rgba(208, 35, 232, 0.28);
  border-radius: 10px;
  color: #efddff;
  background: rgba(154, 56, 211, 0.13);
  font-size: 0.61rem;
  font-weight: 800;
  cursor: pointer;
}

.course-footer {
  margin-top: 30px;
  padding: 35px 20px 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(76, 195, 255, 0.14);
  color: var(--muted);
  background: transparent;
  text-align: center;
}

.course-footer img {
  display: block;
  width: 170px;
  height: auto;
  object-fit: contain;
}

.course-footer p {
  margin: 3px 0 0;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-footer span {
  font-size: 11px;
  line-height: 1.5;
}

.course-footer .footer-copyright {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.assistant-backdrop {
  position: fixed;
  z-index: 9997;
  inset: 0;
  background: rgba(0, 4, 14, 0.28);
  backdrop-filter: blur(1px);
}

.assistant-panel {
  position: fixed;
  z-index: 9998;
  top: 74px;
  right: 24px;
  bottom: 24px;
  width: min(440px, calc(100vw - 36px));
  height: auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  border: 1px solid rgba(76, 195, 255, 0.42);
  border-radius: 17px;
  color: var(--text);
  background: linear-gradient(165deg, rgba(3, 13, 35, 0.99), rgba(1, 7, 22, 0.99));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.58), 0 0 35px rgba(76, 195, 255, 0.09);
  overflow: hidden;
}

.assistant-panel[hidden],
.assistant-backdrop[hidden] {
  display: none !important;
}

.assistant-header {
  min-height: 78px;
  padding: 15px 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid rgba(100, 159, 225, 0.15);
}

.assistant-header > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
}

.assistant-header > div > span {
  width: 37px;
  height: 37px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(208, 35, 232, 0.3);
  border-radius: 11px;
  color: #e0a9ff;
  background: rgba(153, 53, 207, 0.12);
}

.assistant-header strong,
.assistant-header small {
  display: block;
}

.assistant-header strong {
  font-family: var(--font-display);
  font-size: 0.76rem;
}

.assistant-header small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.58rem;
}

.assistant-header > button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(122, 151, 196, 0.17);
  border-radius: 10px;
  color: #9baac0;
  background: rgba(4, 12, 28, 0.55);
  font-size: 1.35rem;
  cursor: pointer;
}

.assistant-messages {
  padding: 18px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(153, 102, 238, 0.55) rgba(4, 13, 28, 0.8);
  scrollbar-width: thin;
}

.assistant-message {
  max-width: 91%;
  margin-top: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(107, 157, 218, 0.16);
  border-radius: 14px 14px 14px 4px;
  color: #c9d3e4;
  background: rgba(11, 29, 57, 0.82);
  font-size: 0.76rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.assistant-message.user {
  margin-left: auto;
  border-color: rgba(208, 35, 232, 0.24);
  border-radius: 14px 14px 4px 14px;
  color: #efe5fa;
  background: rgba(114, 42, 155, 0.2);
}

.assistant-message.error {
  border-color: rgba(255, 111, 145, 0.27);
  color: #ffc1d0;
  background: rgba(140, 35, 65, 0.12);
}

.assistant-suggestions {
  padding: 10px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid rgba(100, 159, 225, 0.12);
}

.assistant-suggestions button {
  padding: 7px 9px;
  border: 1px solid rgba(142, 113, 231, 0.2);
  border-radius: 999px;
  color: #bcb1df;
  background: rgba(78, 52, 143, 0.1);
  font-size: 0.56rem;
  cursor: pointer;
}

.assistant-suggestions button:hover {
  border-color: rgba(208, 35, 232, 0.38);
  color: #eadcff;
}

.assistant-composer {
  padding: 13px 16px 16px;
  border-top: 1px solid rgba(100, 159, 225, 0.13);
  background: rgba(3, 10, 25, 0.8);
}

.assistant-composer textarea {
  width: 100%;
  min-height: 84px;
  max-height: 190px;
  padding: 11px 12px;
  resize: vertical;
  border: 1px solid rgba(103, 163, 225, 0.23);
  border-radius: 12px;
  outline: 0;
  color: #eff3fc;
  background: rgba(2, 8, 21, 0.7);
  font-size: 0.72rem;
  line-height: 1.5;
}

.assistant-composer textarea:focus {
  border-color: rgba(76, 195, 255, 0.48);
  box-shadow: 0 0 0 3px rgba(76, 195, 255, 0.07);
}

.assistant-composer > div {
  margin-top: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.assistant-clear,
.assistant-send {
  min-height: 37px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 0.63rem;
  font-weight: 800;
  cursor: pointer;
}

.assistant-clear {
  border: 1px solid rgba(120, 148, 190, 0.17);
  color: #8898b0;
  background: transparent;
}

.assistant-send {
  min-width: 78px;
  border: 1px solid rgba(208, 35, 232, 0.37);
  color: white;
  background: linear-gradient(120deg, #ad2bc6, #6669e8);
}

.assistant-send:disabled {
  opacity: 0.58;
  cursor: wait;
}

.assistant-spinner {
  width: 13px;
  height: 13px;
  display: none;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.assistant-send.loading .assistant-spinner {
  display: inline-block;
}

.assistant-send.loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.reset-dialog {
  width: min(430px, calc(100% - 28px));
  padding: 0;
  border: 1px solid rgba(76, 195, 255, 0.25);
  border-radius: 18px;
  color: var(--text);
  background: #07142d;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.6);
}

.reset-dialog::backdrop {
  background: rgba(0, 3, 10, 0.72);
  backdrop-filter: blur(3px);
}

.reset-dialog > div {
  padding: 24px;
}

.reset-dialog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
}

.reset-dialog p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.reset-dialog footer {
  margin-top: 22px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.reset-dialog button {
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid rgba(122, 151, 196, 0.19);
  border-radius: 10px;
  color: #b2bfd3;
  background: rgba(5, 13, 29, 0.56);
  font-size: 0.65rem;
  font-weight: 800;
  cursor: pointer;
}

.reset-dialog button.danger {
  border-color: rgba(255, 111, 145, 0.28);
  color: #ffd2dc;
  background: rgba(155, 43, 72, 0.17);
}

.toast-region {
  position: fixed;
  z-index: 110;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}

.toast {
  max-width: 330px;
  padding: 11px 14px;
  border: 1px solid rgba(70, 230, 168, 0.26);
  border-radius: 12px;
  color: #cef8ec;
  background: rgba(7, 43, 42, 0.96);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.36);
  font-size: 0.68rem;
  animation: toast-in 180ms ease-out;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@media (max-width: 1180px) {
  .lesson-workspace {
    grid-template-columns: 226px minmax(0, 1fr);
  }

  .lesson-guide {
    position: static;
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .course-hero {
    grid-template-columns: 1fr;
  }

  .progress-card {
    min-height: 280px;
  }

  .lesson-card-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .lesson-workspace {
    grid-template-columns: 1fr;
  }

  .lesson-sidebar {
    position: static;
    max-height: none;
  }

  .lesson-navigation {
    max-height: 290px;
  }

  .lesson-guide {
    grid-column: 1;
  }
}

@media (max-width: 700px) {
  .course-topbar {
    min-height: 68px;
    padding: 9px 13px;
  }

  .course-brand-text {
    display: none;
  }

  .course-logo {
    width: 135px;
    height: 44px;
  }

  .lab-header-actions {
    gap: 7px;
  }

  .return-lab-button {
    width: 38px;
    padding: 8px;
  }

  .return-lab-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .course-main {
    width: min(100% - 22px, 1360px);
    padding-top: 22px;
  }

  .course-hero {
    margin-top: 0;
  }

  .hero-content {
    padding: 30px 22px;
  }

  .hero-content h1 {
    font-size: 39px;
  }

  .hero-content h2 {
    font-size: 18px;
  }

  .course-description {
    font-size: 14px;
  }

  .course-stats {
    align-items: flex-start;
    gap: 14px;
  }

  .stat-divider {
    height: 31px;
  }

  .stat-item strong {
    font-size: 18px;
  }

  .stat-item span {
    font-size: 9px;
  }

  .start-course-button {
    width: 100%;
  }

  .progress-card {
    min-height: 270px;
    padding: 24px 20px;
  }

  .content-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .content-heading > p {
    font-size: 13px;
  }

  .curriculum-section-heading {
    padding: 21px 18px;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 15px;
  }

  .section-progress {
    display: none;
  }

  .section-number {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .curriculum-section-title h3 {
    font-size: 18px;
  }

  .lesson-card-grid {
    padding: 13px;
    gap: 13px;
  }

  .lesson-card {
    min-height: 225px;
    padding: 18px 15px;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 13px;
  }

  .lesson-card-number {
    width: 40px;
    height: 40px;
    font-size: 13px;
  }

  .lesson-card-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .lesson-card-copy strong {
    font-size: 16px;
  }

  .lesson-reader {
    padding: 24px 17px;
    border-radius: 19px;
  }

  .lesson-reader-header {
    display: block;
  }

  .lesson-duration-badge {
    display: inline-flex;
    margin-top: 13px;
  }

  .feature-list,
  .lesson-columns {
    grid-template-columns: 1fr;
  }

  .lesson-outcomes {
    padding: 18px 15px;
    grid-template-columns: 1fr;
  }

  .section-symbol {
    width: 32px;
    height: 32px;
  }

  .next-step-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-card-header,
  .source-card {
    align-items: stretch;
    flex-direction: column;
  }

  .prompt-card-header button {
    width: 100%;
    justify-content: center;
  }

  .source-card ul {
    justify-content: flex-start;
  }

  .source-card li,
  .source-card a {
    width: 100%;
  }

  .source-card a {
    justify-content: space-between;
  }

  .tool-link {
    width: 100%;
    justify-content: center;
  }

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

  .lesson-nav-button.complete {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .lesson-guide {
    grid-template-columns: 1fr;
  }

  .assistant-panel {
    top: 12px;
    right: 12px;
    bottom: 12px;
    left: 12px;
    width: auto;
    border-radius: 14px;
  }

  .assistant-backdrop {
    background: rgba(0, 3, 12, 0.68);
  }
}

@media (max-width: 430px) {
  .course-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-divider {
    display: none;
  }

  .stat-item span {
    line-height: 1.35;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
