:root {
  --ink: #06165c;
  --ink-soft: #52658e;
  --muted: #7a89aa;
  --blue: #0567ff;
  --blue-dark: #004fd8;
  --blue-soft: #eaf3ff;
  --blue-wash: #f4f9ff;
  --green: #10914a;
  --green-soft: #e9f8ef;
  --teal: #0798aa;
  --teal-soft: #e8f8fa;
  --violet: #5f49d9;
  --violet-soft: #f0edff;
  --amber: #c97900;
  --amber-soft: #fff5dd;
  --red: #d93d3d;
  --red-soft: #ffecec;
  --line: #dbe6f6;
  --line-strong: #bed0ec;
  --panel: rgba(255, 255, 255, 0.96);
  --shadow: 0 18px 46px rgba(29, 82, 151, 0.13);
  --shadow-soft: 0 12px 28px rgba(35, 83, 146, 0.1);
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 46%, #eaf3ff 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.hidden {
  display: none !important;
}

.app-shell {
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  height: 92px;
  padding: 0 50px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 260px;
  text-decoration: none;
}

.brand-logo {
  width: 230px;
  height: 68px;
  object-fit: contain;
  object-position: left center;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: clamp(18px, 2.8vw, 42px);
}

.nav-link {
  height: 92px;
  padding: 2px 0 0;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--ink);
  background: transparent;
  font-weight: 700;
  white-space: nowrap;
}

.nav-link.active {
  color: var(--blue);
  border-color: var(--blue);
}

.user-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 230px;
}

.divider {
  width: 1px;
  height: 34px;
  background: var(--line);
}

.icon-button,
.avatar,
.close-button,
.video-play-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.icon-button,
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}

.bell-button::before {
  content: "";
  width: 15px;
  height: 17px;
  border: 2px solid var(--ink);
  border-bottom-width: 3px;
  border-radius: 10px 10px 5px 5px;
}

.bell-button::after {
  content: "";
  position: absolute;
  top: 30px;
  width: 6px;
  height: 2px;
  border-radius: 99px;
  background: var(--ink);
}

.avatar {
  border: 1px solid var(--line);
  background: #fff;
}

.avatar::before {
  content: "";
  position: absolute;
  top: 10px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.avatar::after {
  content: "";
  position: absolute;
  top: 24px;
  width: 18px;
  height: 10px;
  border: 2px solid var(--ink);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.profile-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

.chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: rotate(45deg) translateY(-2px);
}

.view {
  min-height: calc(100vh - 92px);
}

.page-surface {
  position: relative;
  overflow: hidden;
}

.page-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 253, 255, 0.96) 44%, rgba(230, 242, 255, 0.92) 100%);
}

.page-bg::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -80px;
  width: 56vw;
  height: 520px;
  transform: skewY(-13deg);
  background:
    repeating-linear-gradient(
      164deg,
      rgba(255, 255, 255, 0) 0,
      rgba(255, 255, 255, 0) 40px,
      rgba(255, 255, 255, 0.72) 42px,
      rgba(255, 255, 255, 0.72) 44px
    ),
    linear-gradient(130deg, rgba(207, 226, 250, 0.15), rgba(155, 195, 245, 0.45));
  border-left: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-section,
.content-section,
.detail-container,
.player-container {
  position: relative;
  z-index: 1;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(450px, 0.78fr) minmax(660px, 1.22fr);
  align-items: center;
  gap: 44px;
  min-height: 286px;
  padding: 28px 74px 34px;
}

.hero-copy {
  max-width: 850px;
}

.hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 3.3vw, 3.45rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 610px;
  margin: 18px 0 0;
  color: #40547f;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.hero-panel {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(190, 208, 236, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.hero-feature-media {
  position: relative;
  display: block;
  width: 100%;
  height: 235px;
  overflow: hidden;
  border: 0;
  background: #06165c;
  padding: 0;
  text-align: left;
}

.hero-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  transform: scale(1.01);
}

.hero-media-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 14, 53, 0.28), rgba(3, 14, 53, 0.02) 58%, rgba(3, 14, 53, 0.1)),
    linear-gradient(0deg, rgba(3, 14, 53, 0.42), rgba(3, 14, 53, 0) 46%);
}

.hero-video-play {
  position: absolute;
  left: 28px;
  bottom: 24px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(5, 103, 255, 0.96);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.hero-video-play::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 16px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #fff;
}

.hero-media-badge {
  position: absolute;
  top: 18px;
  left: 20px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: rgba(3, 14, 53, 0.62);
  font-size: 0.82rem;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.hero-panel-body {
  padding: 20px 22px 22px;
}

.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-panel-head span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.82rem;
  font-weight: 900;
}

.hero-panel-head strong {
  min-width: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  text-align: right;
}

.hero-panel-body h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.38rem;
  line-height: 1.25;
}

.hero-panel-body p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 0.93rem;
  line-height: 1.48;
}

.current-learning-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.current-learning-card small {
  display: block;
  color: var(--ink-soft);
  font-weight: 800;
}

.current-learning-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  line-height: 1.3;
}

.current-learning-card > span {
  color: var(--blue);
  font-size: 1.55rem;
  font-weight: 900;
}

.hero-progress-track {
  margin-top: 14px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.hero-stats div {
  min-height: 66px;
  padding: 11px 10px;
  border: 1px solid #e3ebf7;
  border-radius: 8px;
  background: #f8fbff;
  text-align: center;
}

.hero-stats strong {
  display: block;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
}

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.hero-dashboard {
  width: 100%;
  padding: 18px;
  border: 1px solid rgba(190, 208, 236, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

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

.dashboard-title-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.76rem;
  font-weight: 900;
}

.dashboard-title-row h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.22;
}

.dashboard-title-row strong {
  color: var(--ink);
  font-size: 0.9rem;
  white-space: nowrap;
}

.hero-dashboard > p {
  display: none;
}

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

.dashboard-kpi {
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid #e3ebf7;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.dashboard-kpi small,
.progress-gauge-card small,
.mini-chart-heading span {
  display: block;
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-weight: 900;
}

.dashboard-kpi strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 1.24rem;
  line-height: 1;
}

.dashboard-kpi span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.dashboard-visuals {
  display: grid;
  grid-template-columns: minmax(210px, 0.9fr) minmax(260px, 1.1fr);
  gap: 12px;
  margin-top: 10px;
}

.progress-gauge-card,
.enrollment-chart {
  min-height: 108px;
  padding: 11px;
  border: 1px solid #e3ebf7;
  border-radius: 8px;
  background: #fff;
}

.progress-gauge-card {
  display: grid;
  grid-template-columns: 78px 1fr;
  align-items: center;
  gap: 12px;
}

.progress-gauge {
  position: relative;
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) var(--progress), #e7eef9 0);
}

.progress-gauge::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

.progress-gauge span {
  position: relative;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.progress-gauge-card strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.25;
}

.progress-gauge-card div:last-child > span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.35;
}

.mini-chart-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mini-chart-heading strong {
  color: var(--ink);
  font-size: 0.94rem;
}

.chart-row {
  display: grid;
  grid-template-columns: 72px 1fr 32px;
  align-items: center;
  gap: 9px;
  min-height: 19px;
}

.chart-row span {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 800;
}

.chart-row b {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef8;
}

.chart-row b::before {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #20b7ff);
}

.chart-row em {
  color: var(--ink-soft);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.rating-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.rating-strip div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid #e3ebf7;
  border-radius: 8px;
  background: #f8fbff;
}

.rating-strip strong {
  color: var(--green);
  font-size: 1rem;
}

.rating-strip span {
  min-width: 0;
  color: var(--ink-soft);
  font-size: 0.75rem;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-actions {
  display: none;
}

.primary-button,
.outline-button,
.text-button,
.chip-button,
.page-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.primary-button {
  border: 1px solid var(--blue);
  color: #fff;
  background: linear-gradient(180deg, #1174ff 0%, #005bed 100%);
  box-shadow: 0 12px 24px rgba(5, 103, 255, 0.22);
  padding: 0 24px;
}

.outline-button {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  padding: 0 22px;
}

.text-button {
  border: 0;
  color: var(--blue);
  background: transparent;
  padding: 0 4px;
  white-space: nowrap;
}

.primary-button:hover,
.outline-button:hover,
.text-button:hover,
.chip-button:hover,
.page-button:hover {
  transform: translateY(-1px);
}

.primary-button.full {
  width: 100%;
}

.play-mark {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.category-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin: -14px auto 0;
  padding: 0 74px;
}

.category-card {
  display: grid;
  grid-template-columns: 58px 1fr 18px;
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.category-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 0.92rem;
  line-height: 1.28;
}

.category-card span:last-child {
  color: var(--ink-soft);
  font-size: 0.76rem;
  line-height: 1.3;
}

.category-card .arrow-mark {
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  transform: rotate(45deg);
}

.category-icon {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  background: linear-gradient(145deg, #0c75ff, #044ed0);
}

.category-icon::before,
.category-icon::after {
  content: "";
  position: absolute;
}

.icon-shield::before {
  inset: 12px 16px 10px;
  border: 3px solid #fff;
  border-radius: 20px 20px 24px 24px;
  clip-path: polygon(50% 0, 100% 14%, 94% 67%, 50% 100%, 6% 67%, 0 14%);
}

.icon-shield::after {
  left: 26px;
  top: 19px;
  width: 8px;
  height: 17px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(42deg);
}

.icon-leaf {
  background: linear-gradient(145deg, #34b36d, #0f7544);
}

.icon-leaf::before {
  left: 14px;
  top: 14px;
  width: 29px;
  height: 29px;
  border: 3px solid #fff;
  border-radius: 36px 4px 36px 4px;
  transform: rotate(-20deg);
}

.icon-leaf::after {
  left: 14px;
  top: 34px;
  width: 31px;
  height: 3px;
  background: #fff;
  transform: rotate(-32deg);
  border-radius: 99px;
}

.icon-scale {
  background: linear-gradient(145deg, #7565ed, #4d38bf);
}

.icon-scale::before {
  left: 27px;
  top: 11px;
  width: 4px;
  height: 36px;
  background: #fff;
  border-radius: 99px;
  box-shadow: -14px 7px 0 -1px #fff, 14px 7px 0 -1px #fff;
}

.icon-scale::after {
  left: 13px;
  top: 26px;
  width: 32px;
  height: 20px;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: perspective(32px) rotateX(38deg);
}

.icon-award {
  background: linear-gradient(145deg, #1677ff, #004cc8);
}

.icon-award::before {
  left: 16px;
  top: 11px;
  width: 26px;
  height: 26px;
  border: 4px solid #fff;
  border-radius: 50%;
}

.icon-award::after {
  left: 18px;
  top: 36px;
  width: 22px;
  height: 17px;
  background: linear-gradient(135deg, transparent 47%, #fff 48% 56%, transparent 57%),
    linear-gradient(45deg, transparent 47%, #fff 48% 56%, transparent 57%);
}

.icon-gear {
  background: linear-gradient(145deg, #1bb4c6, #0a8391);
}

.icon-gear::before {
  left: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border: 4px dashed #fff;
  border-radius: 50%;
}

.icon-gear::after {
  left: 24px;
  top: 24px;
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
}

.icon-audio {
  background: linear-gradient(145deg, #0e9f9a, #0567ff);
}

.icon-audio::before {
  left: 13px;
  top: 16px;
  width: 32px;
  height: 26px;
  border: 4px solid #fff;
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
}

.icon-audio::after {
  left: 13px;
  top: 32px;
  width: 9px;
  height: 16px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 23px 0 0 #fff;
}

.content-section {
  padding: 30px 84px 44px;
}

.courses-page {
  padding-top: 38px;
}

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

.section-heading.compact {
  align-items: center;
  margin-bottom: 16px;
}

.section-heading h1,
.section-heading h2,
.chapter-heading h2,
.panel-heading h2 {
  margin: 0;
  color: var(--ink);
}

.section-heading h1 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.08;
}

.section-heading h2,
.chapter-heading h2,
.panel-heading h2 {
  font-size: 1.65rem;
}

.section-heading p,
.panel-heading span,
.breadcrumb,
.lesson-count {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.breadcrumb {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font-weight: 700;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 18px;
}

.course-grid.wide {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(5, 103, 255, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.course-card:hover {
  transform: translateY(-3px);
  border-color: #b8d0ff;
  box-shadow: var(--shadow);
}

.course-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 6.2;
  border-radius: 6px;
  background-color: var(--blue-wash);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.course-card-media.legacy-cover {
  background-position: left top;
  background-size: 150% auto;
}

.course-delivery-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  color: #fff;
  background: rgba(6, 22, 92, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  backdrop-filter: blur(10px);
}

.course-card h3 {
  margin: 12px 8px 8px;
  min-height: 2.6em;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
}

.course-card-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  margin: auto 8px 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #e8eef8;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0567ff, #00a3ff);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--ink-soft);
  background: #eef3fb;
  font-size: 0.76rem;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill.complete {
  color: var(--green);
  background: var(--green-soft);
}

.status-pill.progress {
  color: var(--blue);
  background: var(--blue-soft);
}

.status-pill.warning {
  color: var(--amber);
  background: var(--amber-soft);
}

.pager {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.course-grid:empty + .pager {
  display: none;
}

.page-button {
  width: 38px;
  height: 38px;
  min-height: 38px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  padding: 0;
}

.page-button.active {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

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

.chip-button {
  min-height: 38px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
  padding: 0 14px;
}

.chip-button.active {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-soft);
}

.detail-container,
.player-container {
  padding: 26px 84px 56px;
}

.breadcrumb-row {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 34px;
  color: var(--ink-soft);
  margin-bottom: 10px;
  font-weight: 700;
}

.breadcrumb-row button {
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 800;
  padding: 0;
}

.course-hero {
  display: grid;
  grid-template-columns: minmax(360px, 520px) 1fr;
  gap: 42px;
  align-items: center;
  max-width: 1410px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.course-hero > img {
  width: 100%;
  aspect-ratio: 16 / 9.7;
  border-radius: 8px;
  object-fit: cover;
}

.course-hero-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.9rem, 2.7vw, 3rem);
  line-height: 1.12;
}

.course-meta-line {
  color: var(--ink-soft);
  font-size: 1.05rem;
  font-weight: 700;
}

.course-hero-copy p {
  max-width: 860px;
  color: #3f527e;
  line-height: 1.6;
}

.summary-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.summary-bar > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 12px 18px;
  border-right: 1px solid var(--line);
}

.summary-bar > div:last-child {
  border-right: 0;
}

.summary-bar small {
  display: block;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.summary-bar strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
}

.metric-icon,
.mini-symbol {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
}

.metric-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.mini-symbol {
  width: 18px;
  height: 18px;
}

.user-symbol::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.user-symbol::after {
  content: "";
  position: absolute;
  top: 25px;
  width: 18px;
  height: 10px;
  border: 2px solid var(--blue);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.mini-symbol.user-symbol::after {
  top: 12px;
  width: 12px;
  height: 6px;
}

.mini-symbol.user-symbol::before {
  width: 5px;
  height: 5px;
}

.level-symbol::before {
  content: "";
  position: absolute;
  bottom: 12px;
  left: 13px;
  width: 5px;
  height: 9px;
  background: var(--blue);
  border-radius: 99px;
  box-shadow: 9px -5px 0 var(--blue), 18px -13px 0 var(--blue);
}

.clock-symbol::before {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.clock-symbol::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-left: 3px solid var(--blue);
  border-bottom: 3px solid var(--blue);
  transform: translate(2px, -2px) rotate(-45deg);
}

.progress-symbol::before {
  content: "";
  width: 26px;
  height: 26px;
  border: 4px solid #cddbf3;
  border-top-color: var(--blue);
  border-right-color: var(--blue);
  border-radius: 50%;
  transform: rotate(35deg);
}

.book-symbol::before {
  content: "";
  width: 18px;
  height: 15px;
  border: 2px solid var(--blue);
  border-radius: 3px;
  border-right-width: 1px;
}

.book-symbol::after {
  content: "";
  position: absolute;
  left: 8px;
  width: 2px;
  height: 16px;
  background: var(--blue);
}

.lesson-panel {
  max-width: 1640px;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

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

.lesson-list.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 34px;
}

.lesson-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 78px 110px 34px;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.92);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(5, 103, 255, 0.16);
}

.lesson-row.active {
  border-color: var(--blue);
  background: linear-gradient(90deg, rgba(232, 243, 255, 0.95), rgba(255, 255, 255, 0.95));
  box-shadow: 0 0 0 1px rgba(5, 103, 255, 0.1);
}

.lesson-row.locked {
  background: rgba(248, 250, 253, 0.92);
}

.lesson-code {
  color: var(--blue);
  font-weight: 900;
  font-size: 0.83rem;
}

.lesson-title {
  min-width: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
}

.lesson-duration {
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.lesson-play {
  position: relative;
  width: 26px;
  height: 26px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: #fff;
}

.lesson-play::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 7px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid var(--blue);
}

.lesson-row.active .lesson-play {
  background: var(--blue);
}

.lesson-row.active .lesson-play::before {
  border-left-color: #fff;
}

.lesson-play.locked {
  border-color: #d39b2e;
  background: #fff8e8;
}

.lesson-play.locked::before {
  left: 8px;
  top: 10px;
  width: 10px;
  height: 8px;
  border: 0;
  border-radius: 2px;
  background: #b97900;
}

.lesson-play.locked::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 5px;
  width: 8px;
  height: 8px;
  border: 2px solid #b97900;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.player-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 14px 0 20px;
}

.player-head h1 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1.15;
}

.player-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  color: var(--ink);
  font-weight: 700;
}

.player-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 490px;
  gap: 40px;
  align-items: start;
}

.video-column {
  min-width: 0;
}

.video-frame {
  position: relative;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 8px;
  background: #06112e;
  box-shadow: var(--shadow);
}

.video-frame img,
.lesson-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.lesson-video {
  background: #06112e;
}

.video-play-button {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(5, 103, 255, 0.88);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.25);
  transform: translate(-50%, -50%);
}

.video-play-button::before {
  content: "";
  margin-left: 5px;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 24px solid #fff;
}

.video-play-button.login-required {
  width: auto;
  min-width: 168px;
  height: 56px;
  padding: 0 22px;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  letter-spacing: 0;
}

.video-play-button.login-required::before {
  display: none;
}

.video-frame.playing .video-play-button::before {
  width: 20px;
  height: 28px;
  border: 0;
  border-left: 7px solid #fff;
  border-right: 7px solid #fff;
}

.video-frame.video-ready.playing .video-play-button {
  opacity: 0;
  pointer-events: none;
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: grid;
  grid-template-columns: 22px 22px 22px auto 1fr auto 22px 22px;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding: 0 24px;
  color: #fff;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.86));
  font-weight: 700;
  pointer-events: none;
}

.video-frame.video-ready .video-controls {
  display: none;
}

.control-play,
.control-next,
.control-volume,
.control-gear,
.control-fullscreen {
  position: relative;
  width: 22px;
  height: 22px;
}

.control-play::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 6px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #fff;
}

.control-next::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 2px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid #fff;
  box-shadow: 7px 0 0 -3px #fff;
}

.control-volume::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 2px;
  width: 8px;
  height: 10px;
  background: #fff;
  clip-path: polygon(0 28%, 42% 28%, 100% 0, 100% 100%, 42% 72%, 0 72%);
}

.control-volume::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 12px;
  width: 7px;
  height: 12px;
  border-right: 2px solid #fff;
  border-radius: 50%;
}

.video-track {
  display: block;
  height: 6px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.34);
}

.video-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--blue);
}

.control-pill {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 22px;
  border: 2px solid #fff;
  border-radius: 4px;
  font-size: 0.72rem;
}

.control-gear::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 3px dotted #fff;
  border-radius: 50%;
}

.control-fullscreen::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #fff;
  border-top-color: transparent;
  border-left-color: transparent;
}

.control-fullscreen::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 2px solid #fff;
  border-bottom-color: transparent;
  border-right-color: transparent;
}

.lesson-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 22px;
  margin-top: 26px;
  padding: 18px 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.chapter-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.chapter-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.chapter-heading span {
  color: var(--ink-soft);
  font-weight: 800;
}

.chapter-list {
  display: grid;
}

.chapter-row {
  display: grid;
  grid-template-columns: 28px 72px minmax(0, 1fr) 60px 26px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(5, 103, 255, 0.16);
}

.chapter-row:last-child {
  border-bottom: 0;
}

.chapter-row.active {
  padding: 9px 10px;
  border: 1px solid var(--blue);
  border-radius: 7px;
  background: var(--blue-soft);
}

.chapter-row.locked {
  color: #6d7890;
}

.chapter-number {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.chapter-title {
  min-width: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.chapter-time {
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 800;
}

.chapter-status {
  position: relative;
  width: 22px;
  height: 22px;
  border: 1px solid #94a6c8;
  border-radius: 50%;
}

.chapter-status.play::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 8px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid #6c7b9c;
}

.chapter-status.done {
  border-color: #27bc64;
}

.chapter-status.done::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 3px;
  width: 7px;
  height: 12px;
  border-right: 2px solid #27bc64;
  border-bottom: 2px solid #27bc64;
  transform: rotate(42deg);
}

.chapter-status.lock::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 9px;
  height: 8px;
  background: #7181a2;
  border-radius: 2px;
}

.chapter-status.lock::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 3px;
  width: 7px;
  height: 8px;
  border: 2px solid #7181a2;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.learning-dashboard,
.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.metric-card {
  min-height: 126px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.metric-card small {
  display: block;
  color: var(--ink-soft);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 2.1rem;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.resource-list,
.announcement-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 18px;
}

.resource-item,
.announcement-item {
  min-height: 155px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.resource-item h3,
.announcement-item h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.resource-item p,
.announcement-item p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.55;
}

.resource-meta,
.announcement-date {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 800;
}

.admin-section {
  padding-top: 38px;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  gap: 22px;
  margin-bottom: 22px;
}

.import-panel {
  margin-bottom: 22px;
}

.excel-drop-zone {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px dashed #9fbdf0;
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff, #f4f9ff);
}

.excel-drop-zone.dragging {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 4px rgba(5, 103, 255, 0.08);
}

.excel-drop-zone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.excel-drop-zone strong {
  display: block;
  color: var(--ink);
  font-size: 1.1rem;
}

.excel-drop-zone p {
  margin: 8px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.excel-drop-zone button {
  position: relative;
  z-index: 1;
}

.import-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.admin-panel {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.full-width-panel {
  margin-top: 22px;
}

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

.admin-form {
  display: grid;
  gap: 16px;
}

.compact-form {
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
}

.admin-form label,
.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.admin-form label span,
.auth-form label span {
  font-size: 0.88rem;
}

.admin-form input,
.admin-form textarea,
.admin-form select,
.auth-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  padding: 10px 12px;
  outline: none;
}

.admin-form textarea {
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.auth-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(5, 103, 255, 0.12);
}

.file-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.compact-table,
.admin-form + .table-wrap {
  margin-top: 16px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--ink-soft);
  background: #f7fbff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.table-progress {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 46px;
  align-items: center;
  gap: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(3, 14, 53, 0.45);
  backdrop-filter: blur(6px);
}

.auth-card {
  position: relative;
  width: min(520px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 70px rgba(3, 14, 53, 0.28);
}

.close-button {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  background: var(--ink);
}

.close-button::before {
  transform: rotate(45deg);
}

.close-button::after {
  transform: rotate(-45deg);
}

.auth-heading {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
  padding-right: 28px;
}

.auth-heading img {
  width: 150px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
}

.auth-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.45rem;
}

.auth-heading p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 24px 0 18px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f9ff;
}

.auth-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 6px;
  color: var(--ink-soft);
  background: transparent;
  font-weight: 900;
}

.auth-tabs button.active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 6px 14px rgba(38, 85, 150, 0.1);
}

.auth-form {
  display: grid;
  gap: 14px;
}

.helper-line {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.form-error {
  min-height: 20px;
  margin: 0;
  color: var(--red);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  max-width: 360px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

@media (max-width: 1360px) {
  .topbar {
    padding: 0 28px;
    gap: 20px;
  }

  .brand {
    min-width: 220px;
  }

  .brand-logo {
    width: 210px;
  }

  .main-nav {
    gap: 18px;
  }

  .category-strip,
  .course-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .course-grid.wide {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }

  .player-layout {
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 24px;
  }

  .lesson-list.two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .topbar {
    height: auto;
    flex-wrap: wrap;
    padding: 14px 24px;
  }

  .brand {
    min-width: 0;
  }

  .main-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-link {
    height: 44px;
    padding-top: 0;
  }

  .user-tools {
    min-width: 0;
  }

  .view {
    min-height: calc(100vh - 130px);
  }

  .hero-section,
  .content-section,
  .detail-container,
  .player-container {
    padding-left: 28px;
    padding-right: 28px;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .category-strip {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    padding-left: 28px;
    padding-right: 28px;
  }

  .course-hero,
  .player-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .chapter-panel {
    order: 0;
  }

  .summary-bar,
  .learning-dashboard,
  .admin-metrics,
  .resource-list,
  .announcement-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-form,
  .file-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .topbar {
    align-items: flex-start;
    gap: 10px 12px;
    padding: 10px 16px;
  }

  .brand {
    flex: 0 0 150px;
  }

  .brand-logo {
    width: 150px;
    height: 46px;
  }

  .main-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    gap: 18px;
    padding-bottom: 2px;
  }

  .user-tools {
    flex: 1 1 auto;
    gap: 8px;
    justify-content: flex-end;
    max-width: calc(100% - 164px);
  }

  .divider {
    display: none;
  }

  .profile-button {
    min-width: 86px;
    max-width: 116px;
    justify-content: flex-start;
    overflow: hidden;
  }

  .hero-section {
    min-height: 260px;
    padding-left: 18px;
    padding-right: 18px;
    padding-top: 38px;
  }

  .hero-copy h1 {
    font-size: 2rem;
  }

  .dashboard-title-row,
  .progress-gauge-card {
    grid-template-columns: 1fr;
  }

  .dashboard-title-row {
    display: grid;
  }

  .dashboard-kpis,
  .dashboard-visuals {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    padding: 18px;
  }

  .hero-stats,
  .hero-panel-actions {
    grid-template-columns: 1fr;
  }

  .category-strip,
  .course-grid,
  .course-grid.wide,
  .summary-bar,
  .learning-dashboard,
  .admin-metrics,
  .resource-list,
  .announcement-list {
    grid-template-columns: 1fr;
  }

  .category-card {
    grid-template-columns: 64px 1fr 18px;
    min-height: 104px;
    padding: 14px;
  }

  .category-icon {
    width: 64px;
    height: 64px;
  }

  .section-heading,
  .panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .course-hero {
    padding: 14px;
    gap: 22px;
  }

  .summary-bar > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-bar > div:last-child {
    border-bottom: 0;
  }

  .lesson-row {
    grid-template-columns: 78px minmax(0, 1fr) 34px;
    min-height: 58px;
  }

  .lesson-row .lesson-duration,
  .lesson-row .status-pill {
    display: none;
  }

  .player-meta {
    gap: 12px;
  }

  .video-controls {
    grid-template-columns: 22px auto 1fr auto;
  }

  .video-frame.video-ready .video-play-button:not(.login-required) {
    opacity: 0;
    pointer-events: none;
  }

  .control-next,
  .control-volume,
  .control-gear,
  .control-fullscreen {
    display: none;
  }

  .lesson-actions {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .chapter-row {
    grid-template-columns: 28px 64px minmax(0, 1fr) 26px;
  }

  .chapter-time {
    display: none;
  }

  .auth-heading {
    grid-template-columns: 1fr;
  }
}
