:root {
  --bg: #f7f8fa;
  --surface: #fff;
  --ink: #22263b;
  --muted: #687084;
  --line: #e7e9f0;
  --accent: #6849df;
  --accent-deep: #5435c9;
  --violet: #eee9fe;
  --mint: #e4f4eb;
  --peach: #fff0e4;
  --blue: #e8f0ff;
  --radius: 18px;
  --shadow: 0 8px 32px #24244406;
  --font: Arial,'Noto Sans Armenian',sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.6 var(--font);
  letter-spacing: .005em;
}
button,input,select,textarea {
  font: inherit;
}
button,a,input,textarea,select {
  -webkit-tap-highlight-color: transparent;
}
button,a {
  touch-action: manipulation;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: none;
  color: var(--accent-deep);
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: .55;
}
button {
  color: inherit;
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline: 3px solid #9576f5;
  outline-offset: 3px;
}
h1,h2,h3,h4,p {
  margin: 0;
}
h1 {
  font-size: 31px;
  line-height: 1.45;
  letter-spacing: -.045em;
  font-weight: 750;
}
h2 {
  font-size: 22px;
  line-height: 1.5;
  letter-spacing: -.025em;
}
h3 {
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -.02em;
}
h4 {
  font-size: 16px;
}
p {
  color: var(--muted);
}
small {
  font-size: 12px;
}
strong {
  font-weight: 700;
}
svg {
  flex-shrink: 0;
}
.icon {
  width: 21px;
  height: 21px;
  vertical-align: middle;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -70px;
  z-index: 1000;
  background: #fff;
  padding: 14px;
  border-radius: 10px;
}
.skip-link:focus {
  top: 12px;
}
.initial-loader {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 20px;
  min-height: 100vh;
}
.loader {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.shell {
  min-height: 100vh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 20px 18px;
  display: flex;
  flex-direction: column;
  z-index: 50;
  overflow: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  margin: 0 7px 42px;
}
.brand-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  border-radius: 13px;
  width: 42px;
  height: 42px;
}
.brand-mark .icon {
  width: 25px;
  height: 25px;
}
.brand strong {
  font-size: 18px;
  letter-spacing: -.04em;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 2.3px;
  color: var(--muted);
  text-transform: uppercase;
  margin-top: 1px;
}
.nav-label {
  font-size: 10px;
  letter-spacing: 1.6px;
  color: #9298a7;
  margin: 22px 14px 10px;
  font-weight: 700;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #60677a;
  border-radius: 10px;
  padding: 11px 13px;
  margin: 4px 0;
  font-size: 13px;
  font-weight: 550;
  min-height: 44px;
}
.nav-item:hover {
  background: #f6f4fd;
  color: var(--accent);
}
.nav-item.active {
  background: #eee9fc;
  color: var(--accent);
  font-weight: 700;
}
.nav-item .icon {
  width: 19px;
  height: 19px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.sidebar-note {
  background: #f5f2ff;
  padding: 20px 16px;
  border-radius: 15px;
  margin-bottom: 18px;
}
.sidebar-note p {
  font-size: 12px;
  line-height: 1.8;
  color: #675c8a;
  margin: 12px 0;
}
.sidebar-note a {
  font-size: 11px;
  font-weight: 700;
}
.sidebar-footer {
  font-size: 10px;
  color: #9296a5;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.main-shell {
  margin-left: 250px;
}
.topbar {
  height: 83px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px);
}
.topbar-title {
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 22px;
}
.search-trigger {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f9fafc;
  color: #8a90a1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 12px;
  min-width: 240px;
  font-size: 12px;
}
.search-trigger .icon {
  width: 17px;
}
.search-trigger kbd {
  font-size: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  margin-left: auto;
}
.user-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 12px;
}
.avatar {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--violet);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.avatar.small {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.user-link small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}
.content {
  max-width: 1440px;
  margin: auto;
  padding: 35px 40px 60px;
}
.footer {
  display: flex;
  justify-content: space-between;
  color: #9297a5;
  font-size: 11px;
  border-top: 1px solid var(--line);
  padding: 20px 0;
  margin-top: 44px;
  gap: 20px;
}
.footer a {
  color: #76738c;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 28px;
}
.page-head p {
  margin-top: 7px;
  font-size: 13px;
}
.head-actions,.actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
  min-height: 43px;
  transition: background .15s,transform .15s;
  white-space: nowrap;
  background: transparent;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn .icon {
  width: 17px;
  height: 17px;
}
.btn.primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn.primary:hover {
  background: var(--accent-deep);
}
.btn.secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border-color: var(--line);
}
.btn.danger {
  background: #fff0f0;
  color: #b02e43;
  border-color: #f9d6dc;
}
.btn.small {
  font-size: 12px;
  padding: 7px 12px;
  min-height: 35px;
}
.btn.wide {
  width: 100%;
}
.btn.text {
  padding: 4px 0;
  color: var(--accent);
  min-height: 30px;
}
.icon-btn {
  border: 0;
  background: transparent;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  color: var(--muted);
}
.icon-btn:hover {
  background: var(--violet);
  color: var(--accent);
}
.mobile-toggle,.sidebar-close {
  display: none;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.panel+.panel {
  margin-top: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.panel-head h2 {
  font-size: 18px;
}
.panel p.sub {
  font-size: 13px;
  margin-top: 6px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 31px 0 18px;
}
.section-head h2 {
  font-size: 20px;
}
.section-head a {
  font-size: 12px;
  font-weight: 600;
}
.section-head .icon {
  width: 16px;
}
.hero-row {
  display: grid;
  grid-template-columns: minmax(0,1fr) 285px;
  gap: 22px;
}
.hero {
  border: 1px solid #e2dcf9;
  background: #eee9fc;
  border-radius: 20px;
  min-height: 275px;
  padding: 32px;
  position: relative;
  display: flex;
  overflow: hidden;
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 62%;
}
.hero h2 {
  font-size: 36px;
  line-height: 1.48;
  letter-spacing: -.055em;
  margin: 12px 0;
}
.hero p {
  font-size: 13px;
  max-width: 330px;
  color: #6c6386;
  line-height: 1.9;
}
.hero .btn {
  margin-top: 22px;
}
.hero-art {
  position: absolute;
  width: 230px;
  height: 230px;
  right: 0;
  bottom: 15px;
  transform: rotate(-8deg);
  pointer-events: none;
}
.orbit {
  border: 1px solid #d7cdf6;
  border-radius: 50%;
  width: 220px;
  height: 220px;
  position: absolute;
  right: -20px;
  bottom: -10px;
}
.orbit.two {
  width: 270px;
  height: 270px;
  right: -45px;
  bottom: -35px;
}
.code-window {
  position: absolute;
  right: 22px;
  top: 33px;
  width: 174px;
  height: 148px;
  background: #fff;
  border: 1px solid #cfc1f4;
  border-radius: 14px;
  box-shadow: 0 18px 30px #6c50b71a;
  transform: rotate(7deg);
  padding: 14px;
}
.code-dots {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 11px;
}
.code-dots i {
  width: 5px;
  height: 5px;
  background: #cbb9f1;
  border-radius: 50%;
}
.code-symbol {
  font: 700 42px monospace;
  color: #7458ca;
  margin: 10px 0 1px;
}
.code-text {
  font: 11px monospace;
  color: #9f8cc2;
}
.floating-spark {
  position: absolute;
  right: 19px;
  top: 4px;
  font-size: 46px;
  color: #aa8cef;
}
.floating-badge {
  position: absolute;
  bottom: 9px;
  left: 16px;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  background: #e5edaa;
  color: #717d22;
  border: 4px solid #f6f8e5;
  border-radius: 17px;
  transform: rotate(-12deg);
}
.continue-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.continue-card .mini-icon {
  width: 43px;
  height: 43px;
  border-radius: 12px;
  background: var(--mint);
  color: #407459;
  display: grid;
  place-items: center;
  margin: 16px 0;
}
.continue-card h3 {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 5px;
}
.continue-card p {
  font-size: 11px;
}
.continue-card .btn {
  margin-top: 15px;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  margin: 15px 0 5px;
}
progress {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: #ececf4;
  border-radius: 5px;
  width: 100%;
  height: 6px;
  display: block;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #ececf4;
  border-radius: 5px;
}
progress::-webkit-progress-value {
  background: var(--accent);
  border-radius: 5px;
}
progress::-moz-progress-bar {
  background: var(--accent);
  border-radius: 5px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
  margin: 24px 0;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 19px 18px;
  display: flex;
  gap: 13px;
  align-items: center;
}
.stat-card strong {
  display: block;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.stat-card span:not(.stat-icon) {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.stat-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 11px;
  flex-shrink: 0;
}
.t-violet {
  background: var(--violet);
  color: #7458ca;
}
.t-mint {
  background: var(--mint);
  color: #398061;
}
.t-peach {
  background: var(--peach);
  color: #bc7745;
}
.t-blue {
  background: var(--blue);
  color: #547bbb;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 22px;
}
.course-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 17px;
  overflow: hidden;
  transition: box-shadow .2s,transform .2s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px #2b264f0b;
}
.course-art {
  height: 143px;
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.course-art:after {
  content: '';
  position: absolute;
  right: -15px;
  bottom: -35px;
  width: 160px;
  height: 160px;
  border: 1px solid currentColor;
  border-radius: 45px;
  opacity: .1;
  transform: rotate(20deg);
}
.course-art .art-icon {
  position: absolute;
  right: 30px;
  bottom: 25px;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  background: #ffffffa6;
  border-radius: 19px;
  transform: rotate(-9deg);
  box-shadow: 0 5px 15px #28245508;
}
.course-art .art-icon .icon {
  width: 34px;
  height: 34px;
  transform: rotate(9deg);
}
.course-art .index {
  font: 11px monospace;
  align-self: flex-end;
  letter-spacing: 1.5px;
}
.course-art .badge {
  align-self: flex-start;
  background: #ffffffb3;
  font-size: 10px;
}
.course-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.course-body .eyebrow {
  font-size: 9px;
  letter-spacing: 1px;
  color: #8a899a;
  margin-bottom: 9px;
}
.course-body h3 {
  font-size: 18px;
  line-height: 1.65;
  margin-bottom: 10px;
}
.course-body h3 a {
  color: var(--ink);
}
.course-body p {
  font-size: 12px;
  line-height: 1.85;
  flex: 1;
}
.course-meta {
  display: flex;
  gap: 15px;
  color: #828697;
  font-size: 11px;
  margin-top: 19px;
  padding-top: 16px;
  border-top: 1px solid #f0f1f5;
}
.course-meta .icon {
  width: 14px;
  height: 14px;
  margin-right: 4px;
}
.course-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  font-size: 11px;
}
.teacher-name {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}
.teacher-name .avatar {
  width: 23px;
  height: 23px;
  font-size: 9px;
}
.course-bottom .icon-btn {
  width: 30px;
  height: 30px;
  background: #f6f4fc;
  color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 650;
  line-height: 1.4;
  background: var(--violet);
  color: var(--accent);
  white-space: nowrap;
}
.badge.success,.badge.published {
  background: #e5f4eb;
  color: #397252;
}
.badge.warning,.badge.draft {
  background: #fff3d9;
  color: #866311;
}
.badge.neutral,.badge.archived {
  background: #f0f1f5;
  color: #6d7485;
}
.badge.error {
  background: #ffe9ed;
  color: #af4055;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
}
.step-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.step-num {
  font: 14px monospace;
  color: #b7a8df;
}
.step-card h3 {
  font-size: 13px;
  margin-bottom: 7px;
}
.step-card p {
  font-size: 11px;
  line-height: 1.85;
}
.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-field .icon {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 18px;
  color: #9b9daa;
}
.search-field input {
  padding-left: 41px!important;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field>span {
  font-size: 12px;
  font-weight: 650;
}
.field small {
  font-size: 11px;
  color: var(--muted);
}
input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea {
  border: 1px solid #dfe2ec;
  background: #fff;
  color: var(--ink);
  border-radius: 9px;
  padding: 11px 13px;
  width: 100%;
  line-height: 1.55;
  font-size: 13px;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 120px;
}
input::placeholder,textarea::placeholder {
  color: #9a9eac;
}
input[type=checkbox],input[type=radio] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}
select {
  padding-right: 28px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 20px;
}
.form-error:empty {
  display: none;
}
.alert {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid #e4def6;
  background: #f7f4fe;
  border-radius: 11px;
  color: #6a5d8e;
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.alert .icon {
  width: 19px;
  height: 19px;
  margin-top: 2px;
}
.alert.error {
  background: #fff2f3;
  border-color: #f7dadd;
  color: #a2394b;
}
.alert.success {
  background: #edf8f2;
  color: #2e7652;
  border-color: #d7eddf;
}
.empty-state {
  padding: 52px 24px;
  text-align: center;
  background: #fff;
  border: 1px dashed #d9dbe7;
  border-radius: 17px;
}
.empty-icon {
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
  width: 54px;
  height: 54px;
  background: var(--violet);
  color: var(--accent);
  border-radius: 16px;
}
.empty-state h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.empty-state p {
  max-width: 480px;
  margin: 0 auto 20px;
  font-size: 13px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0,1fr) 310px;
  gap: 24px;
  align-items: start;
}
.two-equal {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.muted {
  color: var(--muted);
}
.tiny {
  font-size: 11px;
}
.spacer {
  margin-top: 22px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 11px;
  margin-bottom: 22px;
  color: var(--muted);
}
.breadcrumb .icon {
  width: 13px;
}
.course-banner {
  padding: 32px;
  border-radius: 18px;
  margin-bottom: 26px;
}
.course-banner h1 {
  margin: 10px 0;
  font-size: 32px;
  max-width: 700px;
}
.course-banner p {
  color: inherit;
  opacity: .8;
  max-width: 740px;
  font-size: 14px;
}
.module {
  margin-bottom: 24px;
}
.module-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  margin-bottom: 10px;
}
.module-number {
  font: 11px monospace;
  color: var(--accent);
  background: var(--violet);
  padding: 5px 8px;
  border-radius: 6px;
}
.lesson-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 17px 18px;
  border-radius: 12px;
  margin-top: 9px;
  color: var(--ink);
  min-width: 0;
}
.lesson-row:hover {
  border-color: #c7b8ee;
  background: #fdfcff;
}
.lesson-row .lesson-number {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #f6f5fa;
  color: #8b80a7;
  font-size: 11px;
  flex-shrink: 0;
}
.lesson-row .lesson-number.completed {
  background: var(--mint);
  color: #3b7c57;
}
.lesson-row .lesson-name {
  flex: 1;
  min-width: 0;
}
.lesson-row strong {
  font-size: 13px;
  display: block;
}
.lesson-row small {
  font-size: 10px;
  color: var(--muted);
}
.lesson-row>.icon {
  color: #a39aaf;
  width: 16px;
}
.sticky-panel {
  position: sticky;
  top: 107px;
}
.sidebar-lessons .lesson-row {
  padding: 12px 10px;
  gap: 9px;
  border: 0;
  background: transparent;
}
.sidebar-lessons .lesson-row.current {
  background: var(--violet);
}
.sidebar-lessons .lesson-row strong {
  font-size: 11px;
}
.sidebar-lessons .lesson-row .lesson-number {
  width: 25px;
  height: 25px;
}
.lesson-video {
  width: 100%;
  aspect-ratio: 16/9;
  border: 0;
  border-radius: 14px;
  background: #11162b;
  display: block;
}
.external-video {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,#ede7ff,#edf3fd);
  border: 1px solid #e3dcf5;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  gap: 12px;
}
.external-video p {
  font-size: 12px;
  max-width: 400px;
}
.external-video h3 {
  font-size: 19px;
}
.video-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffffb8;
  display: grid;
  place-items: center;
  color: var(--accent);
  box-shadow: 0 5px 15px #6850a90a;
}
.video-circle .icon {
  width: 24px;
  height: 24px;
}
.video-empty {
  display: flex;
  align-items: center;
  gap: 18px;
  background: #f2effc;
  padding: 22px;
  border-radius: 13px;
  margin-bottom: 24px;
}
.video-empty .video-circle {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.video-empty strong {
  font-size: 13px;
}
.video-empty p {
  font-size: 11px;
  margin-top: 4px;
}
.video-empty .badge {
  margin-left: auto;
}
.tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 23px;
  margin: 25px 0 0;
  overflow: auto;
}
.tab {
  border: 0;
  background: transparent;
  padding: 12px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-content {
  padding-top: 28px;
}
.prose {
  font-size: 16px;
  line-height: 1.95;
  overflow-wrap: anywhere;
  max-width: 760px;
  color: #454b60;
}
.prose h2 {
  font-size: 23px;
  margin: 30px 0 14px;
  color: var(--ink);
}
.prose h3 {
  font-size: 19px;
  margin: 28px 0 12px;
  color: var(--ink);
}
.prose h4 {
  font-size: 17px;
  margin: 24px 0 10px;
  color: var(--ink);
}
.prose h2:first-child,.prose h3:first-child {
  margin-top: 0;
}
.prose p {
  color: #50576b;
  margin: 0 0 19px;
}
.prose ul,.prose ol {
  margin: 0 0 22px;
  padding-left: 25px;
}
.prose li {
  margin: 9px 0;
  padding-left: 4px;
}
.prose blockquote {
  background: #f6f2ff;
  border-left: 3px solid #aa91e5;
  border-radius: 0 10px 10px 0;
  margin: 25px 0;
  padding: 19px 22px;
  color: #74628d;
  font-size: 14px;
  line-height: 1.9;
}
.prose code {
  font: 13px/1.7 monospace;
  background: #f1eff7;
  padding: 3px 6px;
  border-radius: 4px;
}
.prose pre {
  background: #242539;
  color: #e9e5fb;
  border-radius: 12px;
  padding: 20px;
  overflow: auto;
}
.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.prose img {
  display: block;
  max-width: 100%;
  border-radius: 12px;
  margin: 18px auto;
  max-height: 600px;
  object-fit: contain;
}
.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lesson-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
  margin-top: 30px;
}
.question-card {
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  padding: 22px;
  margin: 0 0 18px;
  min-width: 0;
}
.question-card legend {
  padding: 0 6px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 1px;
}
.question-card h3 {
  font-size: 15px;
  margin-bottom: 17px;
}
.answer-option {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line);
  background: #fcfcfe;
  border-radius: 9px;
  padding: 13px 14px;
  margin-top: 9px;
  font-size: 13px;
  cursor: pointer;
}
.answer-option:has(input:checked) {
  background: #f3edff;
  border-color: #b6a1e9;
}
.answer-option.correct {
  background: #ecf8f0;
  border-color: #a6d4b7;
  color: #32734f;
}
.answer-option.wrong {
  background: #fff0f2;
  border-color: #edb4be;
  color: #9f3c51;
}
.answer-option .icon {
  margin-left: auto;
  width: 17px;
}
.explanation {
  font-size: 12px;
  padding: 13px 0 0;
  color: var(--muted);
  line-height: 1.8;
}
.test-timer {
  font: 600 16px monospace;
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--accent);
  padding: 10px 13px;
  background: var(--violet);
  border-radius: 9px;
}
.test-timer.expiring {
  background: #ffe9ed;
  color: #ac354c;
}
.quiz-toolbar {
  position: sticky;
  top: 83px;
  background: #f7f8faef;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  z-index: 20;
  margin-bottom: 25px;
}
.score-hero {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #fff;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 18px;
  margin-bottom: 28px;
}
.score-number {
  font-size: 48px;
  font-weight: 750;
  color: var(--accent);
  background: var(--violet);
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  letter-spacing: -.06em;
}
.score-hero h2 {
  margin-bottom: 8px;
}
.score-hero p {
  font-size: 13px;
}
.table-wrap {
  overflow-x: auto;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  background: #fafaff;
  color: #888b9b;
  font-size: 10px;
  font-weight: 650;
  padding: 13px 16px;
  white-space: nowrap;
}
td {
  padding: 15px 16px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td strong {
  font-size: 12px;
}
td small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.table-wrap select {
  font-size: 11px;
  min-width: 115px;
  padding: 7px;
}
.table-wrap .btn {
  padding: 7px 10px;
  font-size: 11px;
}
.table-wrap .actions {
  flex-wrap: nowrap;
}
.table-wrap tbody tr:hover {
  background: #fdfcff;
}
.stack {
  display: grid;
  gap: 15px;
}
.list-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.list-card .list-main {
  flex: 1;
  min-width: 0;
}
.list-card h3 {
  font-size: 15px;
  margin-bottom: 5px;
}
.list-card p {
  font-size: 12px;
}
.class-icon {
  display: grid;
  place-items: center;
  background: var(--blue);
  color: #5c7ebb;
  border-radius: 12px;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 920px;
  margin: 20px auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
}
.auth-copy {
  background: #eee9fc;
  padding: 48px 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 500px;
}
.auth-copy h2 {
  font-size: 30px;
  line-height: 1.6;
  margin: 20px 0;
}
.auth-copy p {
  font-size: 13px;
  line-height: 1.9;
}
.auth-copy .code-symbol {
  font-size: 68px;
}
.auth-form {
  padding: 40px 35px;
}
.auth-form h1 {
  font-size: 25px;
  margin-bottom: 9px;
}
.auth-form>p {
  font-size: 12px;
  margin-bottom: 25px;
}
.auth-form .form-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  margin: 15px 0;
  gap: 10px;
}
.auth-form .form-foot {
  text-align: center;
  font-size: 12px;
  margin-top: 22px;
}
.narrow {
  max-width: 550px;
  margin: 25px auto;
}
.readable {
  max-width: 850px;
}
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.editor-toolbar {
  position: sticky;
  top: 83px;
  z-index: 25;
  background: #f7f8faf5;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 22px;
}
.save-state {
  font-size: 11px;
  color: #6f8876;
  display: flex;
  align-items: center;
  gap: 7px;
}
.save-state.failed {
  color: #b4475b;
}
.editor-grid {
  display: grid;
  grid-template-columns: minmax(0,1fr) 275px;
  gap: 22px;
  align-items: start;
}
.editor-main {
  min-width: 0;
}
.editor-main .panel {
  padding: 22px;
}
.format-toolbar {
  display: flex;
  gap: 5px;
  background: #f9f9fc;
  border: 1px solid #dfe2ec;
  border-bottom: 0;
  padding: 8px;
  border-radius: 9px 9px 0 0;
  flex-wrap: wrap;
}
.format-toolbar button {
  background: transparent;
  border: 0;
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 650;
  min-width: 31px;
  min-height: 31px;
}
.format-toolbar button:hover {
  background: var(--violet);
}
.markdown-editor {
  min-height: 370px;
  border-radius: 0 0 9px 9px!important;
  font: 14px/1.9 var(--font)!important;
}
.question-editor {
  padding: 20px;
  background: #fafaff;
  border: 1px solid var(--line);
  border-radius: 12px;
  margin: 15px 0;
}
.question-editor .field {
  margin-bottom: 12px;
}
.question-editor textarea {
  min-height: 72px;
}
.question-editor .question-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.question-editor .option-editor {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 8px 0;
}
.question-editor .option-editor input[type=text] {
  flex: 1;
}
.upload-zone {
  border: 1px dashed #c9b9ed;
  background: #faf8ff;
  padding: 20px 14px;
  border-radius: 12px;
  text-align: center;
  color: var(--accent);
  margin-top: 15px;
}
.upload-zone .icon {
  width: 27px;
  height: 27px;
  margin-bottom: 8px;
}
.upload-zone p {
  font-size: 11px;
  margin: 5px 0 13px;
}
.upload-zone input {
  max-width: 100%;
  font-size: 10px;
}
.upload-zone label {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.media-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 10px;
  padding: 10px;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.media-item .actions {
  gap: 5px;
  margin-top: 7px;
}
.media-item .btn {
  font-size: 10px;
  padding: 5px 8px;
  min-height: 28px;
}
.editor-aside h3 {
  font-size: 14px;
}
.editor-aside p {
  font-size: 11px;
}
.editor-aside .panel {
  padding: 20px;
}
.editor-aside .field span {
  font-size: 11px;
}
.version-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  font-size: 10px;
  align-items: center;
}
.preview-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.draft-warning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px;
  border: 1px solid #eadbac;
  background: #fff9e9;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 12px;
  color: #89702c;
}
.invite-result {
  margin-top: 20px;
  padding: 19px;
  background: #f5f1ff;
  border: 1px solid #ddd1f6;
  border-radius: 12px;
}
.invite-code {
  font: 700 22px monospace;
  letter-spacing: 3px;
  color: var(--accent);
  padding: 15px 0;
}
.invite-result input {
  font-size: 11px!important;
}
.admin-tabs {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.admin-tabs a {
  font-size: 12px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--muted);
}
.admin-tabs a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.message-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  margin: 14px 0;
}
.message-card>p {
  white-space: pre-wrap;
  margin: 17px 0;
  color: var(--ink);
  font-size: 13px;
}
.message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
}
.assignment-grade {
  font-size: 33px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.3;
}
.submission {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin: 18px 0;
  background: #fff;
}
.submission .prose {
  font-size: 14px;
  margin: 20px 0;
}
.toast-region {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  display: grid;
  gap: 10px;
  max-width: 440px;
  width: calc(100% - 48px);
}
.toast {
  background: #fff;
  box-shadow: 0 8px 35px #24244424;
  border: 1px solid #d8e7dd;
  border-radius: 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
  font-size: 12px;
  animation: toastIn .2s ease;
}
.toast>.icon {
  color: #488463;
  width: 19px;
}
.toast.error {
  border-color: #edccd4;
}
.toast.error>.icon {
  color: #b34b62;
}
.toast>span {
  flex: 1;
}
.toast button {
  background: transparent;
  border: 0;
  padding: 0;
  color: #9293a3;
}
.toast button .icon {
  width: 16px;
}
.toast-region:empty {
  display: none;
}
@keyframes toastIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
dialog {
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 16px;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 100px #18152833;
  color: var(--ink);
}
dialog::backdrop {
  background: #25203955;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 20px;
}
dialog p {
  font-size: 13px;
  margin: 15px 0 24px;
}
dialog .actions {
  justify-content: flex-end;
}
.loading-page {
  display: grid;
  place-items: center;
  padding: 100px;
  gap: 15px;
  font-size: 12px;
}
.notes-textarea {
  min-height: 160px;
}
.search-empty {
  font-size: 13px;
  padding: 15px;
  color: var(--muted);
}
.course-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 24px 0 18px;
}
.manage-module {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 20px;
}
.manage-module .lesson-row {
  padding: 13px;
}
.manage-module .lesson-row .actions {
  margin-left: auto;
}
.form-details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
  margin-bottom: 20px;
}
.form-details summary {
  font-weight: 650;
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.form-details[open] summary {
  margin-bottom: 20px;
}
.form-details summary:after {
  content: '+';
  margin-left: auto;
  font-size: 20px;
  color: var(--accent);
}
.form-details[open] summary:after {
  content: '−';
}
.help-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 19px;
  background: #fff;
  margin: 12px 0;
}
.help-list summary {
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.help-list details p {
  font-size: 13px;
  line-height: 1.9;
  margin-top: 13px;
}
.network-indicator {
  display: none;
  background: #fff4da;
  color: #8b6f23;
  font-size: 12px;
  padding: 9px 20px;
  text-align: center;
}
.network-indicator.visible {
  display: block;
}
.hidden,[hidden] {
  display: none!important;
}
.desktop-only {
  display: initial;
}
.line {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.loading-inline {
  font-size: 11px;
  color: var(--muted);
}
@media(min-width:1600px) {
  .content {
    padding-left: 55px;
    padding-right: 55px;
  }
  .hero-row {
    grid-template-columns: minmax(0,1fr) 320px;
  }
  .hero-art {
    right: 30px;
    transform: rotate(-8deg) scale(1.1);
  }
  .hero-copy {
    max-width: 65%;
  }
  .hero {
    min-height: 290px;
  }
}
@media(max-width:1200px) {
  .sidebar {
    width: 220px;
    padding: 25px 15px;
  }
  .main-shell {
    margin-left: 220px;
  }
  .content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .hero-row {
    grid-template-columns: minmax(0,1fr) 255px;
  }
  .hero {
    padding: 26px;
  }
  .hero h2 {
    font-size: 30px;
  }
  .hero-art {
    right: -40px;
    opacity: .8;
    transform: scale(.8) rotate(-8deg);
  }
  .hero-copy {
    max-width: 72%;
  }
  .cards-grid {
    gap: 15px;
  }
  .course-body {
    padding: 18px;
  }
  .course-body h3 {
    font-size: 16px;
  }
  .course-art {
    height: 130px;
  }
  .two-col {
    grid-template-columns: minmax(0,1fr) 270px;
  }
  .editor-grid {
    grid-template-columns: minmax(0,1fr) 250px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    padding: 16px 13px;
    gap: 10px;
  }
  .stat-card strong {
    font-size: 21px;
  }
  .search-trigger {
    min-width: 190px;
  }
  .brand strong {
    font-size: 16px;
  }
}
@media(max-width:1020px) {
  .hero-row {
    grid-template-columns: 1fr;
  }
  .continue-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 20px;
  }
  .continue-card .eyebrow {
    grid-column: 1/-1;
  }
  .continue-card .mini-icon {
    margin: 0;
  }
  .continue-card .continue-progress {
    min-width: 150px;
  }
  .continue-card h3 {
    font-size: 15px;
  }
  .hero {
    min-height: 270px;
  }
  .hero-art {
    right: 30px;
    opacity: 1;
    transform: rotate(-8deg);
  }
  .hero h2 {
    font-size: 35px;
  }
  .hero-copy {
    max-width: 65%;
  }
  .cards-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .stats-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .search-trigger {
    min-width: 0;
  }
  .search-trigger span,.search-trigger kbd {
    display: none;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .sticky-panel {
    position: static;
  }
  .sidebar-lessons {
    order: -1;
  }
  .sidebar-lessons .panel {
    max-height: 250px;
    overflow: auto;
  }
  .editor-grid {
    grid-template-columns: 1fr;
  }
  .editor-aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .editor-aside .panel+.panel {
    margin: 0;
  }
  .two-equal {
    grid-template-columns: 1fr;
  }
  .auth-layout {
    grid-template-columns: 1fr;
  }
  .auth-copy {
    display: none;
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .topbar-actions {
    gap: 12px;
  }
  .content {
    padding: 26px;
  }
  .steps-grid {
    gap: 15px;
  }
  .step-card {
    gap: 10px;
  }
  .hero-art {
    width: 200px;
  }
}
@media(max-width:780px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform .2s;
    width: 265px;
    padding-top: 25px;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 10px 0 80px #15142a33;
  }
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 45;
    background: #23203966;
    backdrop-filter: blur(2px);
  }
  .sidebar-close {
    display: grid;
    position: absolute;
    right: 10px;
    top: 7px;
  }
  .brand {
    margin-top: 15px;
    margin-bottom: 30px;
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-toggle {
    display: grid;
  }
  .topbar {
    height: 68px;
    padding: 0 19px;
    gap: 10px;
  }
  .topbar-title {
    margin-right: auto;
    font-size: 12px;
  }
  .topbar-actions {
    gap: 9px;
  }
  .user-link .user-info {
    display: none;
  }
  .content {
    padding: 25px 20px 40px;
  }
  .page-head {
    margin-bottom: 23px;
    gap: 13px;
    flex-wrap: wrap;
  }
  h1 {
    font-size: 26px;
  }
  .page-head p {
    font-size: 12px;
  }
  .hero {
    padding: 27px;
    min-height: 260px;
  }
  .hero h2 {
    font-size: 33px;
  }
  .hero-copy {
    max-width: 65%;
  }
  .hero-art {
    right: 0;
    transform: scale(.9) rotate(-8deg);
  }
  .cards-grid {
    gap: 17px;
  }
  .course-art {
    height: 142px;
  }
  .course-body h3 {
    font-size: 17px;
  }
  .editor-toolbar {
    top: 68px;
  }
  .quiz-toolbar {
    top: 68px;
  }
  .footer {
    font-size: 10px;
  }
  .desktop-only {
    display: none;
  }
  .page-head .head-actions {
    width: 100%;
  }
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .step-card p {
    font-size: 12px;
  }
  .step-card h3 {
    font-size: 14px;
  }
  .panel {
    padding: 22px;
  }
  .course-banner {
    padding: 25px;
  }
  .course-banner h1 {
    font-size: 27px;
  }
  .auth-form {
    padding: 30px;
  }
  .auth-layout {
    margin-top: 5px;
  }
  .editor-aside {
    grid-template-columns: 1fr;
  }
  .sticky-panel {
    top: 90px;
  }
  .table-wrap table {
    min-width: 650px;
  }
  .topbar .btn {
    font-size: 11px;
    padding: 8px 11px;
    min-height: 37px;
  }
  .topbar .icon-btn {
    width: 32px;
  }
  .lesson-video {
    border-radius: 10px;
  }
  .prose {
    font-size: 15px;
  }
  .prose h2 {
    font-size: 21px;
  }
  .course-toolbar {
    flex-wrap: wrap;
  }
  .manage-module .panel-head {
    align-items: flex-start;
  }
  .manage-module .lesson-row {
    flex-wrap: wrap;
  }
  .manage-module .lesson-row .actions {
    width: 100%;
    margin-left: 48px;
  }
  .editor-toolbar .actions {
    gap: 6px;
  }
  .editor-toolbar .btn {
    font-size: 11px;
    padding: 9px 12px;
  }
  .editor-toolbar .btn .icon {
    width: 15px;
  }
  .editor-toolbar .save-state {
    max-width: 140px;
    line-height: 1.5;
  }
  .score-hero {
    padding: 25px;
    gap: 20px;
  }
  .score-number {
    width: 100px;
    height: 100px;
    font-size: 37px;
  }
}
@media(max-width:520px) {
  .content {
    padding: 23px 16px 35px;
  }
  .page-head h1 {
    font-size: 24px;
  }
  .hero {
    padding: 24px;
    min-height: 285px;
  }
  .hero h2 {
    font-size: 32px;
  }
  .hero-copy {
    max-width: 88%;
  }
  .hero p {
    max-width: 230px;
    font-size: 12px;
  }
  .hero-art {
    transform: scale(.55) rotate(-8deg);
    right: -70px;
    bottom: -45px;
    opacity: .65;
  }
  .hero-copy .btn {
    margin-top: 20px;
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .continue-card {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }
  .continue-progress {
    grid-column: 1/-1;
  }
  .continue-progress .progress-label {
    margin-top: 2px;
  }
  .continue-card .btn {
    width: 100%;
    margin-top: 12px;
  }
  .stats-grid {
    gap: 10px;
    margin: 19px 0;
  }
  .stat-card {
    padding: 15px 12px;
    gap: 10px;
  }
  .stat-card strong {
    font-size: 21px;
  }
  .stat-card span:not(.stat-icon) {
    font-size: 9px;
  }
  .stat-icon {
    width: 36px;
    height: 36px;
  }
  .stat-icon .icon {
    width: 18px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .course-art {
    height: 150px;
  }
  .course-body {
    padding: 22px;
  }
  .course-body h3 {
    font-size: 19px;
  }
  .course-body p {
    font-size: 13px;
  }
  .course-bottom {
    font-size: 12px;
  }
  .course-meta {
    font-size: 12px;
  }
  .course-meta .icon {
    width: 15px;
  }
  .section-head h2 {
    font-size: 18px;
  }
  .section-head a {
    font-size: 10px;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .list-card {
    flex-wrap: wrap;
    padding: 18px;
  }
  .list-card>.actions {
    width: 100%;
    padding-left: 65px;
  }
  .lesson-row {
    padding: 15px 12px;
    gap: 10px;
  }
  .lesson-row .badge {
    display: none;
  }
  .lesson-row strong {
    font-size: 12px;
  }
  .video-empty {
    padding: 16px;
    gap: 12px;
  }
  .video-empty .badge {
    display: none;
  }
  .video-empty .video-circle {
    width: 36px;
    height: 36px;
  }
  .video-empty p {
    font-size: 10px;
  }
  .lesson-actions {
    flex-wrap: wrap;
  }
  .lesson-actions .btn {
    flex: 1;
  }
  .panel {
    padding: 19px;
  }
  .lesson-main.panel {
    padding: 18px;
  }
  .external-video {
    aspect-ratio: auto;
    min-height: 230px;
  }
  .external-video h3 {
    font-size: 17px;
  }
  .question-card {
    padding: 17px;
  }
  .answer-option {
    font-size: 12px;
    padding: 12px;
  }
  .auth-form {
    padding: 27px 22px;
  }
  .auth-form h1 {
    font-size: 25px;
  }
  .editor-toolbar {
    align-items: flex-start;
  }
  .editor-toolbar .actions {
    justify-content: flex-end;
  }
  .editor-toolbar .btn {
    padding: 8px;
  }
  .editor-toolbar .btn .icon {
    display: none;
  }
  .score-hero {
    flex-direction: column;
    text-align: center;
  }
  .footer {
    flex-direction: column;
    gap: 9px;
  }
  .search-trigger {
    padding: 6px;
    border: 0;
    background: transparent;
  }
  .topbar-actions {
    gap: 5px;
  }
  .toast-region {
    bottom: 15px;
    right: 15px;
    width: calc(100% - 30px);
  }
  .btn {
    white-space: normal;
  }
  .tabs {
    gap: 17px;
  }
  .tab {
    font-size: 11px;
  }
  .filters .btn {
    flex: 1;
  }
  .prose blockquote {
    padding: 16px;
    font-size: 13px;
  }
  .draft-warning {
    align-items: flex-start;
    flex-direction: column;
  }
  .course-banner h1 {
    font-size: 25px;
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    animation: none!important;
    transition: none!important;
    scroll-behavior: auto!important;
  }
}
@media print {
  .sidebar,.topbar,.footer,.toast-region,.btn,.tabs,.lesson-actions,.sidebar-lessons,.video-empty,.lesson-video {
    display: none!important;
  }
  .main-shell {
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .two-col {
    display: block;
  }
  .panel {
    border: 0;
    box-shadow: none;
  }
  .prose {
    font-size: 12pt;
    color: #000;
  }
  .prose p {
    color: #000;
  }
  body {
    background: #fff;
  }
}
/* Programmatic route focus keeps screen-reader context without a heading outline. */
h1[tabindex="-1"]:focus {
  outline: none;
}
