/* Academy additions extend the preserved Qihangzhe course UI. */
.qhz-academy-muted { color: var(--muted, #64748b); }
.qhz-academy-empty { display: grid; gap: 6px; }

.qhz-academy-state {
  max-width: 720px;
  margin: clamp(32px, 7vw, 88px) auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(15, 54, 122, .14);
  border-radius: 22px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 54px rgba(15, 54, 122, .08);
}
.qhz-academy-state h1,
.qhz-academy-state h2 { margin: 0 0 12px; color: #0f367a; }
.qhz-academy-state p { margin: 0 0 22px; color: #5d6b82; }
.qhz-academy-state--error { border-color: rgba(209, 23, 40, .2); }
.qhz-academy-state-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.qhz-academy-state-actions .course-access-wecom,
.qhz-academy-access-help .course-access-wecom { border-color: #d11728; color: #fff; background: #d11728; }
.qhz-academy-state-actions .course-access-wecom:hover,
.qhz-academy-access-help .course-access-wecom:hover { background: #b80f20; }
.qhz-academy-access-help { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(15, 54, 122, .12); text-align: center; }
.qhz-academy-access-help p { margin: 0 0 12px; color: #5d6b82; }
.qhz-course-trial-note { margin: 12px 0 0; color: #50617a; font-size: 14px; line-height: 1.7; }
.qhz-trial-notice { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 18px; padding: 16px 18px; border: 1px solid #c9dcf5; border-radius: 10px; background: #f1f7ff; color: #163c72; }
.qhz-trial-notice > div { flex: 1 1 240px; min-width: 0; }
.qhz-trial-notice strong { font-size: 15px; }
.qhz-trial-notice p { margin: 5px 0 0; color: #50617a; font-size: 13px; line-height: 1.7; }
.qhz-trial-notice .course-access-wecom { flex-shrink: 0; max-width: 100%; }
.qhz-player-card > .qhz-trial-notice { margin: 0; border: 0; border-bottom: 1px solid #c9dcf5; border-radius: 0; }

.qhz-academy-account-page { min-height: 70vh; background: #f5f7fb; }
.qhz-academy-account-shell { padding: clamp(30px, 6vw, 72px) 0; }
.qhz-academy-account-card,
.qhz-academy-dashboard-card {
  margin-top: 24px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(15, 54, 122, .12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15, 54, 122, .08);
}
.qhz-academy-account-card > header,
.qhz-academy-dashboard-card > header { margin-bottom: 28px; }
.qhz-academy-account-card > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.qhz-academy-account-actions { flex: 0 0 auto; }
.qhz-academy-account-card > header p,
.qhz-academy-dashboard-card > header p { margin: 0 0 8px; color: #d11728; font-weight: 700; }
.qhz-academy-account-card > header h1,
.qhz-academy-dashboard-card > header h1 { margin: 0; color: #0f367a; }
.qhz-academy-account-page :where(input:not([type="checkbox"]):not([type="radio"]), button, .button, select) { min-height: 44px; }
.qhz-academy-center-tabs { display: flex; gap: 8px; margin-top: 22px; padding: 6px; border: 1px solid rgba(15,54,122,.12); border-radius: 14px; background: #fff; width: fit-content; }
.qhz-academy-center-tabs a { display: inline-flex; min-height: 42px; padding: 0 20px; align-items: center; border-radius: 10px; color: #50617a; font-weight: 750; text-decoration: none; }
.qhz-academy-center-tabs a.is-active { background: #0f367a; color: #fff; }

/* Compact account workspace: preserve the account contracts without the legacy oversized card treatment. */
.qhz-academy-account-page .qhz-academy-account-shell { padding: clamp(24px, 4vw, 46px) 0; }
.qhz-academy-account-page .qhz-academy-account-shell > .container { max-width: 960px; }
.qhz-academy-account-page .breadcrumb { font-size: 13px; }
.qhz-academy-account-page .qhz-academy-center-tabs { margin-top: 16px; padding: 4px; border-radius: 10px; }
.qhz-academy-account-page .qhz-academy-center-tabs a { min-height: 38px; padding: 0 15px; border-radius: 7px; font-size: 14px; }
.qhz-academy-account-page .qhz-academy-account-card {
  margin-top: 14px; padding: 28px 30px; border-color: rgba(15,54,122,.13); border-radius: 14px;
  box-shadow: 0 8px 28px rgba(15,54,122,.05);
}
.qhz-academy-account-page .qhz-academy-account-card > header {
  margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid rgba(15,54,122,.1);
}
.qhz-academy-account-page .qhz-academy-account-card > header h1 { font-size: 22px; line-height: 1.25; }
.qhz-academy-account-page .qhz-academy-account-actions .qhz-redeem-trigger { min-height: 40px; padding: 0 13px; border-radius: 7px; font-size: 13px; }
.qhz-academy-account-page .qhz-phone-account__profile-form { padding-bottom: 20px; border-bottom: 1px solid rgba(15,54,122,.1); }
.qhz-academy-account-page .qhz-phone-account__profile-form input { min-height: 40px; border-color: #d6dde7; }
.qhz-academy-account-page .qhz-phone-account__profile-form button { min-height: 40px; background: #0f54c7; }
.qhz-academy-account-page .qhz-phone-account > .qhz-phone-binding {
  margin-top: 20px; padding: 18px 0 2px; border: 0; border-top: 1px solid rgba(15,54,122,.1); border-radius: 0; background: transparent;
}
.qhz-academy-account-page .qhz-phone-binding__heading { gap: 12px; }
.qhz-academy-account-page .qhz-phone-binding__heading h3 { font-size: 16px; line-height: 1.35; }
.qhz-academy-account-page .qhz-phone-binding__heading strong { font-size: 14px; }
.qhz-academy-account-page .qhz-phone-binding > p { max-width: 720px; margin: 8px 0 0; color: #66758b; font-size: 13px; line-height: 1.7; }
.qhz-academy-account-page .qhz-phone-account > .qhz-academy-success {
  margin: 0 0 14px; padding: 9px 11px; border: 1px solid #c7dfcd; border-radius: 7px; background: #f3faf5; color: #21633c; font-size: 13px;
}
.qhz-academy-account-page .qhz-phone-account__meta { margin-top: 18px; }
.qhz-academy-account-page .qhz-phone-account__logout { margin-top: 8px; }
.qhz-academy-account-page .qhz-phone-account__logout a:hover,
.qhz-academy-account-page .qhz-phone-account__logout a:focus-visible { color: #8f1520; text-decoration: underline; }

/* Keep the learning dashboard light while preserving the shared account and redeem-dialog contracts. */
body.page-template-page-my-courses .qhz-academy-account-shell { padding: clamp(24px, 4vw, 48px) 0; }
body.page-template-page-my-courses .qhz-academy-account-shell > .container { max-width: 1120px; }
body.page-template-page-my-courses .qhz-academy-center-tabs {
  margin-top: 18px;
  padding: 4px;
  border-radius: 10px;
}
body.page-template-page-my-courses .qhz-academy-center-tabs a {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  font-size: 14px;
}
body.page-template-page-my-courses .qhz-academy-dashboard-card {
  margin-top: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 54, 122, .05);
}
body.page-template-page-my-courses .qhz-academy-dashboard-card > header { margin-bottom: 20px; }
body.page-template-page-my-courses .qhz-academy-dashboard-card > header > p {
  margin-bottom: 4px;
  font-size: 12px;
}
.qhz-academy-dashboard-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
body.page-template-page-my-courses .qhz-academy-dashboard-card > header h1 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.2;
}
.qhz-academy-dashboard-actions { flex: 0 0 auto; }
body.page-template-page-my-courses .qhz-academy-dashboard-actions .qhz-redeem-trigger {
  min-height: 44px;
  padding: 0 14px;
}
body.page-template-page-my-courses .qhz-academy-empty--courses {
  margin: 0;
  padding: 18px 0 4px;
  border-top: 1px solid rgba(15, 54, 122, .1);
  color: #66758b;
  font-size: 14px;
}
.qhz-academy-course-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.qhz-academy-course-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid rgba(15,54,122,.13); border-radius: 10px; background: #fff;
  box-shadow: 0 1px 2px rgba(15,54,122,.03);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.qhz-academy-course-card:hover {
  transform: translateY(-2px); border-color: rgba(15,54,122,.28); box-shadow: 0 8px 22px rgba(15,54,122,.08);
}
.qhz-academy-course-status {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 9px;
  border: 1px solid rgba(255,255,255,.74); border-radius: 999px;
  color: #1b6b3b; background: rgba(238,250,242,.96); font-size: 11px; font-weight: 700; line-height: 1; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(15,54,122,.09);
}
.qhz-academy-course-cover {
  position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16/9;
  overflow: hidden; color: #64748b; background: #e9eef8; text-decoration: none;
}
.qhz-academy-course-cover img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .34s ease;
}
.qhz-academy-course-card:hover .qhz-academy-course-cover img { transform: scale(1.025); }
.qhz-academy-course-cover-placeholder { font-size: 13px; }
.qhz-academy-course-card-body {
  display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 14px 15px 15px;
}
.qhz-academy-course-card h2 {
  display: -webkit-box; min-height: 42px; margin: 0 0 7px; overflow: hidden;
  color: #0f367a; font-size: 16px; line-height: 21px; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.qhz-academy-course-card h2 a { color: inherit; text-decoration: none; }
.qhz-academy-course-excerpt {
  display: -webkit-box; min-height: 36px; margin: 0 0 12px; overflow: hidden;
  color: #65748a; font-size: 12px; line-height: 18px; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
}
.qhz-academy-course-progress {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 0 0 8px; color: #65748a; font-size: 12px; line-height: 18px;
}
.qhz-academy-course-progress strong { flex: 0 0 auto; color: #0f367a; font-size: 13px; }
.qhz-academy-course-dates { display: grid; gap: 4px; margin: 0 0 12px; color: #7a8799; font-size: 12px; line-height: 18px; }
.qhz-academy-course-dates > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.qhz-academy-course-dates dt,
.qhz-academy-course-dates dd { margin: 0; }
.qhz-academy-course-dates dd { color: #4f5f76; font-variant-numeric: tabular-nums; white-space: nowrap; }
.qhz-academy-course-action {
  display: inline-flex; align-items: center; justify-content: center; align-self: flex-end;
  min-height: 30px; margin-top: auto; padding: 0 10px; border: 1px solid rgba(4,75,199,.22); border-radius: 5px;
  color: #044bc7; background: #f7faff; font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.qhz-academy-course-action:hover,
.qhz-academy-course-action:focus-visible { color: #fff; border-color: #044bc7; background: #044bc7; }
.qhz-academy-course-action:focus-visible { outline: 3px solid rgba(4,75,199,.24); outline-offset: 2px; }

.qhz-course-section {
  overflow: clip;
  margin-top: 14px;
  border: 1px solid rgba(15, 54, 122, .12);
  border-radius: 14px;
  background: #fff;
}
.qhz-course-section > summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 10px 16px;
  cursor: pointer;
  color: #0f367a;
  list-style: none;
}
.qhz-course-section > summary::-webkit-details-marker { display: none; }
.qhz-course-section > summary small { color: #728097; font-weight: 500; }
.qhz-course-section .course-profile-outline-list { margin: 0; padding: 0; }
.qhz-course-section .course-profile-outline-list li { margin: 0; }
.qhz-course-section .course-profile-outline-list li + li { border-top: 1px solid rgba(15, 54, 122, .08); }
.qhz-course-section .course-profile-outline-list li > a { display: inline-flex; align-items: center; min-height: 44px; }
.qhz-lesson-lock { color: #8994a7; font-size: 13px; font-weight: 700; }
.course-profile-primary-action.is-disabled { opacity: .58; pointer-events: none; }
.qhz-course-editor-content :where(img, video, iframe) { max-width: 100%; height: auto; }

.qhz-lesson-page { min-height: 76vh; padding: 28px 0 72px; background: #f2f5f9; }
.qhz-lesson-page > .container { max-width: 1480px; }
.qhz-lesson-breadcrumb { margin-bottom: 22px; }
.qhz-lesson-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
.qhz-lesson-heading p { margin: 0 0 6px; color: #d11728; font-weight: 700; }
.qhz-lesson-heading h1 { margin: 0; color: #0a2540; font-size: clamp(26px, 3vw, 42px); }
.qhz-lesson-heading--mobile { display: none; }
.qhz-learning-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.72fr) minmax(340px, .72fr);
  grid-template-rows: auto auto auto;
  gap: 16px 20px;
  align-items: start;
}
.qhz-learning-primary { display: contents; }
.qhz-learning-titlebar {
  display: flex;
  grid-column: 1;
  grid-row: 1;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 4px 2px 10px;
}
.qhz-learning-titlebar p { margin: 0 0 5px; color: #d11728; font-size: 13px; font-weight: 750; }
.qhz-learning-titlebar > div:first-child { min-width: 0; }
.qhz-learning-titlebar h1 { display: flex; align-items: baseline; gap: 12px; margin: 0; color: #0a2540; font-size: clamp(23px, 2.2vw, 32px); line-height: 1.25; overflow-wrap: anywhere; }
.qhz-learning-titlebar h1 > span { color: #0b5fff; font-size: 15px; font-variant-numeric: tabular-nums; }
.qhz-learning-title-progress { display: grid; flex: 0 0 auto; justify-items: end; }
.qhz-learning-title-progress strong { color: #0b5fff; font-size: 24px; font-variant-numeric: tabular-nums; }
.qhz-learning-title-progress span { color: #687a90; font-size: 12px; }
.qhz-lesson-main,
.qhz-lesson-outline,
.qhz-learning-details { border: 1px solid rgba(10, 37, 64, .12); border-radius: 16px; background: #fff; box-shadow: 0 14px 42px rgba(10, 37, 64, .07); }
.qhz-player-card { grid-column: 1; grid-row: 2; overflow: hidden; }
.qhz-player-frame { position: relative; isolation: isolate; background: #07162e; }
.qhz-player-stage { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 9; min-height: 0; overflow: hidden; color: #fff; }
.qhz-player-stage .qhz-tvod-player-stage { position: relative; isolation: isolate; width: 100%; height: 100%; }
.qhz-player-stage :where(.qhz-tvod-player-watermark, [data-qhz-player-watermark]) { pointer-events: none; }
.qhz-player-stage :where(video, iframe, object, embed),
.qhz-player-stage :where(.tcplayer, .tcp-video, .vjs-tech, .video-js) { display: block; width: 100% !important; height: 100% !important; border: 0; object-fit: contain; }
/* Restyle the SDK's own play button; its visibility and click behavior stay native. */
.qhz-player-stage .video-js .vjs-big-play-button { top: 50%; left: 50%; width: 56px; height: 56px; min-width: 0; min-height: 0; margin: 0; padding: 0; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(15,20,28,.64) !important; box-shadow: none; line-height: 1; }
.qhz-player-stage .video-js .vjs-big-play-button:hover,
.qhz-player-stage .video-js .vjs-big-play-button:focus-visible { background: rgba(15,20,28,.82) !important; }
.qhz-player-stage .video-js .vjs-big-play-button:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.qhz-player-stage .video-js .vjs-big-play-button .vjs-button-icon,
.qhz-player-stage .video-js .vjs-big-play-button .vjs-icon-placeholder { display: none !important; }
.qhz-player-stage .video-js .vjs-big-play-button::before { content: none !important; background: none; }
.qhz-player-stage .video-js .vjs-big-play-button::after { content: ""; position: absolute; top: 50%; left: 53%; width: 0; height: 0; transform: translate(-50%,-50%); border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid #fff; background: none; }
.qhz-lesson-content { padding: clamp(22px, 3vw, 34px); }
.qhz-lesson-content :where(img, video, iframe) { max-width: 100%; height: auto; }
.qhz-learning-details { grid-column: 1 / -1; grid-row: 3; overflow: hidden; }
.qhz-learning-details > header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: calc(clamp(22px, 3vw, 34px) * -1) calc(clamp(22px, 3vw, 34px) * -1) 26px; padding: 20px clamp(22px, 3vw, 34px); border-bottom: 1px solid rgba(10,37,64,.1); }
.qhz-learning-details > header p { margin: 0 0 4px; color: #0b5fff; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.qhz-learning-details > header h2 { margin: 0; color: #0a2540; font-size: 22px; }
.qhz-learning-details > header > span { padding: 6px 10px; border-radius: 999px; background: #edf4ff; color: #0b5fff; font-size: 12px; font-weight: 750; }
.qhz-learning-detail-body { max-width: 920px; color: #34495f; font-size: 16px; line-height: 1.85; }
.qhz-next-lesson { display: inline-flex; margin-top: 26px; }
.qhz-player-revoked { margin: 22px; padding: 22px; border: 1px solid rgba(209,23,40,.24); border-radius: 14px; background: #fff5f5; color: #78131d; }
.qhz-lesson-outline { position: sticky; top: 88px; grid-column: 2; grid-row: 1 / span 2; max-height: calc(100vh - 110px); overflow: auto; padding: 18px; scrollbar-width: thin; }
.qhz-lesson-outline-heading { display: grid; grid-template-columns: minmax(0,1fr) 44px; align-items: center; gap: 4px 12px; padding-bottom: 16px; }
.qhz-lesson-outline-heading > div:first-child { min-width: 0; }
.qhz-lesson-outline-heading p { margin: 0 0 5px; color: #6d7f94; font-size: 12px; font-weight: 500; }
.qhz-lesson-outline-heading h2 { margin: 0 0 6px; color: #0f367a; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.qhz-lesson-outline-heading span { display: block; color: #6d7f94; font-size: 12px; line-height: 1.6; }
.qhz-lesson-outline-heading .qhz-outline-summary { display: flex; grid-column: 1 / -1; flex-wrap: wrap; gap: 2px 12px; }
.qhz-outline-summary > span { white-space: nowrap; }
.qhz-outline-ring { --qhz-progress: 0; position: relative; display: grid; flex: 0 0 44px; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: conic-gradient(#044bc7 calc(var(--qhz-progress) * 1%), #e8eef6 0); }
.qhz-outline-ring:before { position: absolute; width: 36px; height: 36px; border-radius: 50%; background: #fff; content: ""; }
.qhz-outline-ring strong { position: relative; color: #0a2540; font-size: 12px; font-variant-numeric: tabular-nums; }
.qhz-lesson-outline .qhz-course-section { margin-top: 0; border: 0; border-top: 1px solid rgba(10,37,64,.1); border-radius: 0; box-shadow: none; }
.qhz-lesson-outline .qhz-course-section > summary { position: relative; grid-template-columns: minmax(24px,max-content) minmax(0,1fr); gap: 2px 8px; min-height: 48px; padding: 10px 25px 10px 8px; }
.qhz-lesson-outline .qhz-course-section > summary::after { position: absolute; right: 9px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); content: ""; }
.qhz-lesson-outline .qhz-course-section[open] > summary::after { transform: rotate(225deg); }
.qhz-lesson-outline .qhz-course-section > summary:focus-visible { outline: 2px solid #044bc7; outline-offset: -3px; }
.qhz-outline-group-number { display: grid; grid-row: 1 / span 2; min-width: 24px; height: 26px; padding: 0 2px; place-items: center; border-radius: 5px; background: #edf4ff; color: #044bc7; font-size: 11px; font-weight: 700; }
.qhz-course-section > summary span > strong { display: block; font-size: 13px; line-height: 1.35; }
.qhz-lesson-outline .qhz-course-section > summary span > strong { line-height: 1.5; overflow-wrap: anywhere; }
.qhz-lesson-outline .qhz-course-section > summary small { grid-column: 2; }
/* Each branch is indented once by its real parent, including direct lessons. */
.qhz-lesson-outline .qhz-course-section { overflow: visible; }
.qhz-lesson-outline .qhz-learning-branch { position: relative; margin: 0 0 6px 12px; padding-left: 8px; border-left: 1px solid #dbe4f0; }
.qhz-lesson-outline .qhz-learning-branch > .qhz-outline-children { margin: 0; padding: 0; }
.qhz-lesson-outline .qhz-outline-children > .qhz-course-section { margin: 0 !important; border: 0 !important; }
.qhz-lesson-outline .qhz-learning-lessons > li { position: relative; }
.qhz-lesson-outline .qhz-learning-lessons > li::before,
.qhz-lesson-outline .qhz-outline-children > .qhz-course-section > summary::before { position: absolute; top: 21px; left: -9px; width: 9px; border-top: 1px solid #dbe4f0; content: ""; }
.qhz-lesson-outline .qhz-outline-children > .qhz-course-section > summary::before { top: 26px; }
.qhz-course-section--level-2,.qhz-course-section--level-3,.qhz-course-section--level-4 { margin: 6px 8px 6px 16px !important; border-left: 2px solid #bcd0ef !important; }
.qhz-course-section--level-3 { margin-left: 20px !important; }
.qhz-course-section--level-4 { margin-left: 24px !important; }
.qhz-lesson-outline ol { margin: 0; padding: 0; list-style: none; }
.qhz-lesson-outline li + li { border-top: 0; }
.qhz-lesson-outline li > a,
.qhz-locked-lesson { display: grid; grid-template-columns: 24px minmax(0,1fr); align-items: start; gap: 8px; min-height: 54px; padding: 10px 8px; border-radius: 5px; color: #233656; text-decoration: none; }
.qhz-lesson-outline li > a:hover { background: #f6f9fe; }
.qhz-lesson-outline li > a:focus-visible { outline: 2px solid #044bc7; outline-offset: -2px; }
.qhz-lesson-outline li.is-current > a { background: #edf4ff; color: #0a2540; }
.qhz-lesson-outline li.is-current > a:before { position: absolute; top: 12px; bottom: 12px; left: 0; width: 2px; border-radius: 0 2px 2px 0; background: #044bc7; content: ""; }
.qhz-lesson-outline li > a { position: relative; }
.qhz-lesson-outline small { color: #6d7f94; font-size: 11px; font-variant-numeric: tabular-nums; line-height: 1.5; text-align: left; }
.qhz-locked-lesson { color: #9099aa; }
.qhz-lesson-index { display: grid; align-self: center; place-items: center; color: #044bc7; }
.qhz-lesson-index svg { display: block; }
.qhz-locked-lesson .qhz-lesson-index { color: #8994a7; }
.qhz-lesson-label { display: grid; min-width: 0; gap: 3px; }
.qhz-lesson-label > strong { font-size: 13px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.qhz-lesson-progress-track { width: 100%; height: 3px; overflow: hidden; border-radius: 999px; background: #e4ebf4; }
.qhz-lesson-progress-track i { display: block; height: 100%; border-radius: inherit; background: #0b5fff; transition: width 180ms ease; }

/* A single-lesson leaf occupies its chapter row and keeps the original link. */
.qhz-outline-single > .qhz-outline-single-row { position: relative; display: grid; grid-template-columns: minmax(24px,max-content) minmax(0,1fr) 16px; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border-radius: inherit; color: #233656; text-decoration: none; }
.qhz-outline-single .qhz-outline-group-number { grid-row: auto; align-self: center; }
.qhz-outline-single .qhz-lesson-label > small { color: #6d7f94; font-size: 11px; line-height: 1.5; }
.qhz-outline-single-subtitle { font-weight: 400; }
.qhz-outline-single > a:hover { background: #f6f9fe; }
.qhz-outline-single > a:focus-visible { outline: 2px solid #044bc7; outline-offset: -2px; }
.qhz-outline-single.is-current > .qhz-outline-single-row { background: #edf4ff; }
.qhz-outline-single.is-current > .qhz-outline-single-row::after { position: absolute; top: 12px; bottom: 12px; left: 0; width: 2px; border-radius: 0 2px 2px 0; background: #044bc7; content: ""; }
.qhz-outline-single.is-completed .qhz-lesson-index { color: #218252; }
.qhz-outline-single.is-locked > .qhz-outline-single-row,
.qhz-outline-single.is-locked .qhz-lesson-index,
.qhz-outline-single.is-unavailable > .qhz-outline-single-row { color: #8994a7; }
.qhz-lesson-outline .qhz-outline-single > .qhz-outline-single-row { padding: 10px 8px; }
.qhz-lesson-outline .qhz-outline-children > .qhz-outline-single > .qhz-outline-single-row::before { position: absolute; top: 26px; left: -9px; width: 9px; border-top: 1px solid #dbe4f0; content: ""; }

@media (max-width: 900px) {
	.qhz-academy-course-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .qhz-lesson-heading--mobile { display: flex; }
  .qhz-learning-workspace { display: grid; grid-template-columns: 1fr; gap: 24px; }
  .qhz-learning-primary { display: block; }
  .qhz-learning-titlebar { display: flex; min-height: 0; padding: 4px 0 16px; }
  .qhz-learning-title-progress { display: none; }
  .qhz-player-card { overflow: hidden; }
  .qhz-learning-details { margin-top: 0; border-radius: 0 0 20px 20px; border-top: 0; box-shadow: 0 16px 50px rgba(15,54,122,.07); }
  .qhz-lesson-outline { position: static; grid-column: auto; grid-row: auto; max-height: none; }
}

@media (max-width: 767px) {
	.qhz-academy-center-tabs { width: 100%; box-sizing: border-box; }
	.qhz-academy-center-tabs a { flex: 1; justify-content: center; }
	body.page-template-page-my-courses .qhz-academy-account-shell { padding: 20px 0 36px; }
	body.page-template-page-my-courses .qhz-academy-center-tabs a { min-width: 0; padding: 0 10px; font-size: 13px; }
	body.page-template-page-my-courses .qhz-academy-dashboard-card { padding: 18px 16px; border-radius: 14px; }
	body.page-template-page-my-courses .qhz-academy-dashboard-card > header { margin-bottom: 16px; }
	.qhz-academy-course-grid { grid-template-columns: 1fr; }
  .qhz-academy-course-card,
  .qhz-academy-course-card:hover {
    transform: none; border-color: rgba(15,54,122,.18); box-shadow: 0 6px 18px rgba(15,54,122,.07);
  }
  .qhz-academy-course-card:hover .qhz-academy-course-cover img { transform: none; }
  .qhz-academy-course-action,
  .qhz-academy-course-action:hover,
  .qhz-academy-course-action:focus-visible { color: #fff; border-color: #044bc7; background: #044bc7; }
  .qhz-lesson-page { padding-top: 18px; }
  .qhz-lesson-page > .container { width: 100%; }
  .qhz-lesson-breadcrumb,
  .qhz-lesson-heading,
  .qhz-learning-titlebar,
  .qhz-lesson-outline { margin-left: 16px; margin-right: 16px; }
  .qhz-lesson-main { border-left: 0; border-right: 0; border-radius: 0; }
	.qhz-learning-details { border-left: 0; border-right: 0; border-radius: 0; }
  .qhz-player-stage { min-height: 0; }
  .qhz-player-stage .video-js .vjs-big-play-button { width: 48px; height: 48px; }
  .qhz-lesson-outline { padding: 16px; }
	.qhz-course-section--level-2,.qhz-course-section--level-3,.qhz-course-section--level-4 { margin-left: 10px !important; }
  .qhz-academy-account-card,
  .qhz-academy-dashboard-card { padding: 20px; border-radius: 18px; }
	.qhz-academy-account-card > header { align-items: flex-start; }
	.qhz-academy-account-page .qhz-academy-account-shell { padding: 20px 0 36px; }
	.qhz-academy-account-page .qhz-academy-center-tabs { overflow-x: auto; }
	.qhz-academy-account-page .qhz-academy-center-tabs a { min-width: max-content; min-height: 44px; padding: 0 12px; font-size: 13px; }
	.qhz-academy-account-page .qhz-academy-account-card { padding: 18px 16px; border-radius: 12px; }
	.qhz-academy-account-page .qhz-academy-account-card > header { align-items: center; margin-bottom: 18px; padding-bottom: 14px; }
	.qhz-academy-account-page .qhz-academy-account-card > header h1 { font-size: 20px; }
	.qhz-academy-account-page .qhz-academy-account-actions .qhz-redeem-trigger { min-height: 44px; }
	.qhz-academy-account-page .qhz-phone-account__profile-form { gap: 8px; padding-bottom: 18px; }
	.qhz-academy-account-page .qhz-phone-account__profile-form input,
	.qhz-academy-account-page .qhz-phone-account__profile-form button { min-height: 44px; }
	.qhz-academy-account-page .qhz-phone-account > .qhz-phone-binding { margin-top: 18px; padding-top: 16px; }
	.qhz-academy-account-page .qhz-phone-binding__heading { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .qhz-academy-course-card,
  .qhz-academy-course-cover img,
  .qhz-academy-course-action { transition: none; }
}
