:root {
  --bg-page: #020402;
  --bg-shell: #050805;
  --bg-panel: #0a0d0a;
  --bg-card: #0b0f0b;
  --bg-card-2: #0f130f;
  --bg-elevated: #121812;
  --line-soft: rgba(188,255,72,0.08);
  --line-mid: rgba(188,255,72,0.16);
  --line-strong: rgba(188,255,72,0.28);
  --text-strong: #f3f5f2;
  --text-main: #d7ddd5;
  --text-muted: #8d978d;
  --text-faint: #667066;
  --lime-1: #d8ff2f;
  --lime-2: #b7f20d;
  --lime-3: #9ad400;
  --lime-4: #7cab00;
  --success-lime: #bfff24;
  --hero-glow: rgba(182,255,0,0.22);
  --hero-glow-2: rgba(117,255,0,0.10);
  --shadow-black: rgba(0,0,0,0.55);
  --shadow-green: rgba(180,255,0,0.10);
  --radius-shell: 22px;
  --radius-xl: 20px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --sidebar-w: 250px;
  --right-rail-w: 292px;
  --gap: 24px;
  --shell-pad: 24px;
  --card-pad: 18px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 12% 8%, rgba(157,255,0,.10) 0%, rgba(157,255,0,0) 22%),
    radial-gradient(circle at 92% 6%, rgba(157,255,0,.10) 0%, rgba(157,255,0,0) 18%),
    radial-gradient(circle at 84% 82%, rgba(157,255,0,.08) 0%, rgba(157,255,0,0) 18%),
    linear-gradient(135deg, rgba(255,255,255,.02) 0%, rgba(255,255,255,0) 28%, rgba(255,255,255,.015) 48%, rgba(255,255,255,0) 72%),
    #020402;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .05;
  background-image:
    linear-gradient(rgba(255,255,255,.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: soft-light;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }

.page-wrap {
  width: min(1464px, calc(100vw - 32px));
  min-height: calc(100vh - 56px);
  margin: 28px auto;
  border-radius: var(--radius-shell);
  border: 1px solid rgba(142,255,0,.20);
  background: rgba(3,5,3,.92);
  box-shadow:
    0 0 0 1px rgba(145,255,0,.03) inset,
    0 20px 60px rgba(0,0,0,.45),
    0 0 50px rgba(153,255,0,.05);
  overflow: hidden;
  position: relative;
}

.app-grid {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: calc(100vh - 56px);
}

.sidebar {
  border-right: 1px solid rgba(188,255,72,.08);
  background: linear-gradient(180deg, rgba(7,10,7,.92) 0%, rgba(5,7,5,.98) 100%);
  padding: 18px 16px 20px;
  display: flex;
  flex-direction: column;
}
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 8px 10px 14px;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: radial-gradient(circle at 35% 35%, rgba(216,255,47,.4), rgba(216,255,47,.08) 45%, rgba(216,255,47,.03) 70%, rgba(0,0,0,0) 72%);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px rgba(216,255,47,.16);
}
.logo-mark img { width: 30px; height: 30px; }
.logo-text strong,
.brand-wordmark {
  display: block;
  color: var(--text-strong);
  font-weight: 900;
  letter-spacing: .08em;
  line-height: .95;
}
.logo-text span { color: var(--lime-1); font-weight: 800; font-size: 12px; letter-spacing: .22em; }
.nav {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.nav a {
  height: 48px;
  border-radius: 12px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.03);
  color: #cfd4cf;
  font-size: 15px;
  font-weight: 700;
  transition: var(--transition);
}
.nav a:hover,
.nav a.active {
  background: linear-gradient(90deg, rgba(176,255,0,.16) 0%, rgba(176,255,0,.06) 70%, rgba(176,255,0,0) 100%);
  border: 1px solid rgba(176,255,0,.25);
  color: #fff;
  box-shadow: 0 0 18px rgba(176,255,0,.08);
}
.nav-icon {
  width: 18px;
  text-align: center;
  color: var(--lime-1);
  font-weight: 900;
}
.sidebar-spacer { flex: 1; }
.sidebar-card {
  margin: 18px 6px 12px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(176,255,0,.22);
  background: linear-gradient(180deg, rgba(14,18,14,.94) 0%, rgba(7,10,7,.98) 100%);
  box-shadow: 0 16px 36px rgba(0,0,0,.28), 0 0 24px rgba(176,255,0,.06);
}
.sidebar-card .promo-image { margin-bottom: 16px; }
.sidebar-card h4 {
  margin: 0 0 10px;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 34px;
  line-height: .92;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.sidebar-card p { color: var(--text-muted); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }
.sidebar-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 13px;
  padding: 8px 10px 4px;
}

.main-area {
  padding: var(--shell-pad);
  display: grid;
  gap: 24px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--right-rail-w);
  gap: var(--gap);
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
}
.page-kicker {
  font-size: 18px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #bfc4bb;
  margin-top: 6px;
}
.display-title {
  margin: 0;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .86;
  text-transform: uppercase;
  letter-spacing: .02em;
  color: var(--text-strong);
  transform: skewX(-7deg);
  transform-origin: left center;
}
.display-title .accent { color: var(--lime-1); }
.search {
  width: min(365px, 100%);
  height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 16px;
  background: rgba(0,0,0,.32);
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
.search input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text-strong);
  font-size: 15px;
}
.search input::placeholder { color: #727b72; }
.profile-cluster {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-cluster .circle-icon,
.ghost-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  color: var(--lime-1);
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(216,255,47,.24);
}
.user-chip strong { display: block; color: var(--text-strong); font-size: 14px; }
.user-chip span { color: var(--text-muted); font-size: 12px; }

.card,
.panel {
  background: linear-gradient(180deg, rgba(11,14,11,.96) 0%, rgba(7,9,7,.98) 100%);
  border: 1px solid rgba(188,255,72,.10);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 8px 24px rgba(0,0,0,.25);
}
.interactive {
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.interactive:hover {
  transform: translateY(-2px);
  border-color: rgba(188,255,72,.20);
  box-shadow: 0 16px 36px rgba(0,0,0,.32), 0 0 24px rgba(176,255,0,.07);
}
.hero-card {
  min-height: 354px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  background: linear-gradient(180deg, rgba(10,13,10,.94) 0%, rgba(3,5,3,.98) 100%);
  border: 1px solid rgba(188,255,72,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03), inset 0 0 80px rgba(126,255,0,.03), 0 12px 30px rgba(0,0,0,.28);
}
.hero-content {
  padding: 36px 28px 30px 32px;
  position: relative;
  z-index: 2;
}
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  border-radius: 10px;
  background: rgba(176,255,0,.14);
  border: 1px solid rgba(176,255,0,.22);
  color: #d6ff5d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero-heading,
.module-eyebrow,
.section-title,
.video-title,
.course-title,
.lesson-title,
.course-hero-title {
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.hero-heading {
  margin: 22px 0 14px;
  font-size: clamp(40px, 4.6vw, 56px);
  line-height: .92;
  color: var(--text-strong);
}
.hero-heading .accent { color: var(--lime-1); }
.hero-copy {
  max-width: 360px;
  font-size: 15px;
  line-height: 1.45;
  color: #c3c8c1;
}
.actions {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.btn-primary,
.btn-secondary,
.btn-ghost,
.btn-outline {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: .01em;
  transition: var(--transition);
}
.btn-primary {
  border: 0;
  background: linear-gradient(180deg, #d8ff2f 0%, #b8ee0e 100%);
  color: #0a0d06;
  box-shadow: 0 10px 22px rgba(176,255,0,.14), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-secondary {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.10);
  color: #f0f3ef;
}
.btn-outline {
  background: transparent;
  border: 1px solid rgba(188,255,72,.25);
  color: var(--lime-1);
}
.btn-ghost {
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
  color: var(--text-main);
}
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline:hover,
.btn-ghost:hover { transform: translateY(-1px); }

.hero-media {
  position: relative;
  min-height: 354px;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8,10,8,1) 0%, rgba(8,10,8,.75) 18%, rgba(8,10,8,.12) 38%, rgba(8,10,8,0) 54%),
    radial-gradient(circle at 68% 26%, rgba(172,255,0,.26) 0%, rgba(172,255,0,.06) 24%, rgba(172,255,0,0) 52%);
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.slider-bars {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.slider-bars span {
  width: 40px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
}
.slider-bars span.active { background: linear-gradient(180deg, #d8ff2f 0%, #b8ee0e 100%); }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.section-title {
  margin: 0;
  font-size: 26px;
  color: var(--text-strong);
}
.section-link {
  color: var(--lime-1);
  font-weight: 800;
}
.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.module-card {
  overflow: hidden;
}
.module-thumb {
  height: 178px;
  position: relative;
}
.module-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.module-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(5,7,5,.10) 40%, rgba(5,7,5,.82) 100%);
}
.thumb-badge,
.thumb-duration {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.36);
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}
.thumb-duration { left: auto; right: 14px; }
.module-overlay-title {
  position: absolute;
  left: 16px;
  right: 16px;
  top: 18px;
  z-index: 2;
  font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
  font-size: 28px;
  line-height: .9;
  text-transform: uppercase;
}
.module-overlay-title span { color: var(--lime-1); display: block; }
.module-body { padding: 16px; }
.module-body h3,
.video-card h3,
.playlist-card h4 { margin: 0 0 8px; color: var(--text-strong); }
.module-body p,
.meta-copy,
.sidebar-card p,
.course-meta,
.lesson-meta,
.stat-copy,
.playlist-item p,
.note-copy { color: var(--text-muted); }
.progress-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}
.progress {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden;
}
.progress > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(180deg, #d8ff2f 0%, #b8ee0e 100%);
}
.percent { color: var(--lime-1); font-weight: 800; font-size: 13px; }

.right-rail {
  display: grid;
  gap: 18px;
  align-content: start;
}
.rail-card { padding: 18px; }
.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.rail-title {
  margin: 0;
  font-size: 18px;
  color: var(--text-strong);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.live-event {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.05);
}
.date-box {
  width: 70px;
  min-height: 76px;
  border-radius: 16px;
  border: 1px solid rgba(188,255,72,.18);
  background: linear-gradient(180deg, rgba(176,255,0,.12) 0%, rgba(255,255,255,.02) 100%);
  display: grid;
  place-items: center;
  text-align: center;
}
.date-box small { display: block; color: var(--lime-1); font-weight: 800; letter-spacing: .16em; }
.date-box strong { display: block; color: var(--text-strong); font-size: 30px; line-height: 1; }
.event-title { margin: 2px 0 8px; color: var(--text-strong); font-weight: 800; }
.avatar-stack { display: flex; margin: 10px 0 14px; }
.avatar-stack img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: -8px;
  border: 2px solid #0c110c;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  text-align: center;
}
.stat-grid strong {
  display: block;
  color: var(--text-strong);
  font-size: 28px;
  line-height: 1;
}
.stat-grid span {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
}
.progress-ring-wrap {
  display: grid;
  place-items: center;
  margin-top: 10px;
}
.ring {
  width: 140px;
  height: 140px;
  position: relative;
  display: grid;
  place-items: center;
}
.ring svg {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}
.ring .label {
  position: absolute;
  text-align: center;
}
.ring .label strong {
  display: block;
  font-size: 36px;
  color: var(--text-strong);
}
.ring .label span {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: .14em;
}
.leader-list {
  display: grid;
  gap: 14px;
}
.leader-item {
  display: grid;
  grid-template-columns: 28px 40px 1fr auto;
  gap: 12px;
  align-items: center;
}
.rank {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  color: #111;
  background: linear-gradient(180deg, #ffe689, #c9a013);
}
.rank.r2 { background: linear-gradient(180deg, #d9dde4, #8f98a5); }
.rank.r3 { background: linear-gradient(180deg, #f2c49b, #b97438); }
.leader-item img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.leader-item strong { display: block; color: var(--text-strong); font-size: 14px; }
.leader-item span { color: var(--lime-1); font-weight: 800; font-size: 14px; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.kpi-card { padding: 18px; }
.kpi-label { color: var(--text-muted); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.kpi-value {
  margin-top: 8px;
  color: var(--text-strong);
  font-size: 34px;
  font-weight: 900;
}
.kpi-foot { margin-top: 10px; color: var(--lime-1); font-size: 13px; font-weight: 700; }

.course-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
  gap: 24px;
  align-items: stretch;
}
.course-hero-card { padding: 28px; }
.course-hero-title {
  margin: 18px 0 12px;
  font-size: clamp(40px, 5vw, 58px);
  line-height: .92;
  color: var(--text-strong);
}
.course-hero-title .accent { color: var(--lime-1); }
.course-meta-row,
.detail-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
.chip {
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.02);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
}
.course-sidebar-card { padding: 20px; }
.course-sidebar-card h3,
.watch-side-card h3 { margin: 0 0 14px; color: var(--text-strong); text-transform: uppercase; letter-spacing: .06em; }
.bullet-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.bullet-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-main);
}
.bullet-list li::before {
  content: "•";
  color: var(--lime-1);
  font-size: 22px;
  line-height: 1;
}
.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
}
.lesson-list { display: grid; gap: 14px; }
.lesson-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
}
.lesson-index {
  width: 86px;
  min-height: 78px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(176,255,0,.16), rgba(176,255,0,.04));
  border: 1px solid rgba(188,255,72,.18);
  display: grid;
  place-items: center;
  text-align: center;
}
.lesson-index strong {
  display: block;
  color: var(--text-strong);
  font-size: 28px;
}
.lesson-index span {
  display: block;
  color: var(--lime-1);
  font-size: 12px;
  letter-spacing: .14em;
}
.lesson-title {
  margin: 0 0 6px;
  font-size: 24px;
  color: var(--text-strong);
}
.lesson-meta { font-size: 14px; line-height: 1.5; }
.lesson-right {
  display: grid;
  gap: 10px;
  justify-items: end;
}

.video-player-card { overflow: hidden; }
.video-shell {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}
.video-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.02);
}
.video-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55));
}
.play-button {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d8ff2f 0%, #b8ee0e 100%);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(176,255,0,.25), 0 0 30px rgba(176,255,0,.12);
}
.play-button span {
  color: #0a0d06;
  font-size: 34px;
  margin-left: 6px;
}
.video-meta-bar {
  padding: 18px 22px 20px;
  display: grid;
  gap: 14px;
}
.video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}
.watch-side {
  display: grid;
  gap: 18px;
}
.watch-side-card { padding: 18px; }
.playlist-list {
  display: grid;
  gap: 10px;
}
.playlist-item {
  padding: 12px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  border: 1px solid rgba(255,255,255,.05);
  background: rgba(255,255,255,.02);
}
.playlist-item.active {
  border-color: rgba(188,255,72,.22);
  background: linear-gradient(90deg, rgba(176,255,0,.10), rgba(255,255,255,.02));
}
.playlist-thumb {
  width: 110px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
}
.playlist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.playlist-item h4 { margin: 0 0 5px; color: var(--text-strong); font-size: 15px; }
.playlist-item p { margin: 0; font-size: 12px; line-height: 1.4; }
.note-box {
  padding: 16px;
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  border: 1px solid rgba(255,255,255,.06);
}
.note-box textarea {
  width: 100%;
  min-height: 120px;
  resize: vertical;
  background: transparent;
  color: var(--text-main);
  border: 0;
  outline: 0;
  font: inherit;
}
.note-box textarea::placeholder { color: var(--text-faint); }

.utility-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(188,255,72,.18), rgba(255,255,255,.02));
  margin: 8px 0;
}
.mobile-nav-toggle { display: none; }

@media (max-width: 1279px) {
  :root { --sidebar-w: 92px; --right-rail-w: 100%; }
  .app-grid { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .logo-text,
  .nav-label,
  .sidebar-card,
  .sidebar-footer span:last-child { display: none; }
  .logo { justify-content: center; padding-inline: 0; }
  .nav a { justify-content: center; padding: 0; }
  .two-col,
  .course-layout,
  .watch-layout,
  .course-hero { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .page-wrap { width: calc(100vw - 14px); margin: 7px auto; border-radius: 18px; }
  .app-grid { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 82vw);
    z-index: 100;
    transform: translateX(-101%);
    transition: transform var(--transition);
    box-shadow: 18px 0 44px rgba(0,0,0,.48);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .logo-text,
  .nav-label,
  .sidebar-card,
  .sidebar-footer span:last-child { display: block; }
  .nav a { justify-content: flex-start; padding: 0 16px; }
  .main-area { padding: 16px; }
  .topbar { grid-template-columns: 1fr; }
  .profile-cluster { justify-content: space-between; }
  .hero-card { grid-template-columns: 1fr; }
  .hero-media { min-height: 220px; }
  .module-grid,
  .kpi-strip { grid-template-columns: 1fr; }
  .lesson-card,
  .playlist-item,
  .live-event { grid-template-columns: 1fr; }
  .lesson-right { justify-items: stretch; }
  .mobile-nav-toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.02);
    color: var(--lime-1);
    align-items: center;
    justify-content: center;
  }
}
