:root {
  color-scheme: dark;
  --surface: #1f1f29;
  --button-ink: #10251d;
  --bg: #13131a;
  --white: #fff;
  --ink: #ececf2;
  --muted: #acacbc;
  --line: #353541;
  --green: #7cd7b6;
  --pale: #243a34;
  --orange: #e0aa72;
  --radius: 16px;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
a,
button {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin-bottom: 12px;
  font-weight: 650;
}
h2 {
  font-size: 28px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
h3 {
  font-size: 20px;
  font-weight: 650;
  margin-bottom: 8px;
}
p {
  line-height: 1.7;
  color: var(--muted);
}
small {
  font-size: 12px;
  color: var(--muted);
}
strong {
  font-weight: 600;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #d4a05c;
  outline-offset: 4px;
}
input:focus,
textarea:focus,
select:focus {
  outline: 2px solid #80b7a8;
  outline-offset: 1px;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid #454553;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  min-width: 0;
}
textarea {
  resize: vertical;
  line-height: 1.6;
}
label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  font-weight: 550;
  margin: 20px 0;
}
label small {
  font-weight: 400;
  line-height: 1.6;
}
input[type="file"] {
  font-size: 12px;
  padding: 10px;
  background: transparent;
  border: 0;
}
input[type="file"]::file-selector-button {
  background: var(--surface);
  border: 1px solid #454553;
  border-radius: 5px;
  padding: 8px;
  margin-right: 10px;
  color: var(--green);
  cursor: pointer;
}
input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--green);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  background: var(--green);
  color: var(--button-ink);
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 12px 19px;
  font-weight: 550;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.15s;
}
.button:hover {
  background: #9be5ca;
  transform: translateY(-1px);
}
.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.secondary:hover {
  background: #2b2b38;
}
.compact {
  padding: 8px 15px;
}
.full {
  width: 100%;
}
.text-link {
  color: var(--green);
  font-weight: 550;
  font-size: 13px;
}
.brand {
  display: flex;
  align-items: center;
  font-weight: 750;
  font-size: 26px;
  letter-spacing: -1.6px;
  gap: 10px;
}
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--button-ink);
  border-radius: 10px;
  width: 35px;
  height: 38px;
  font:
    italic bold 34px Georgia,
    serif;
  letter-spacing: -4px;
  padding-right: 5px;
}
.brand-dot {
  color: var(--green);
  margin-left: -10px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 247px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  padding: 32px 20px 20px;
  z-index: 5;
}
.sidebar > .brand {
  margin: 0 14px 43px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #acacbc;
  font-weight: 650;
  display: block;
  margin: 0 13px 14px;
}
.sidebar nav {
  overflow-y: auto;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 4px 0;
  color: #c0c0cf;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
}
.nav-item > span {
  font-size: 21px;
  line-height: 1;
}
.nav-item small {
  margin-left: auto;
}
.nav-item.active {
  background: var(--pale);
  color: var(--green);
  font-weight: 600;
}
.nav-item:hover {
  background: #2b2b38;
}
.section-label {
  margin-top: 35px;
}
.sidebar-bottom {
  margin-top: 25px;
}
.switch {
  font-size: 12px;
  color: var(--green);
  display: block;
  margin: 10px 12px 22px;
}
.profile {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.profile > div {
  flex: 1;
  min-width: 0;
}
.profile strong {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.avatar {
  display: flex;
  width: 35px;
  height: 35px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  background: #40352b;
  color: #e6bc89;
  border-radius: 50%;
  font-weight: 600;
}
.logout {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #7cd7b6;
  color: var(--bg);
  font-size: 16px;
  padding: 5px;
}
.workspace {
  margin-left: 247px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 42px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: #1f1f29;
  font-size: 12px;
  color: var(--muted);
}
.topbar strong {
  color: #dedee9;
  font-weight: 500;
}
.crumb {
  margin: 0 17px;
  color: #818197;
}
.top-status {
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-status i {
  width: 6px;
  height: 6px;
  background: #5a9b80;
  border-radius: 50%;
}
.content {
  padding: 38px 42px 20px;
  max-width: 1550px;
  margin: 0 auto;
}
.eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.65px;
  color: var(--green);
  margin-bottom: 14px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 29px;
}
.page-heading p {
  margin: 0;
  font-size: 13px;
}
.wave {
  font-size: 27px;
  color: var(--orange);
  margin-left: 13px;
}
.subtle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  background: #1e302c;
  border: 1px solid #344c44;
  border-radius: var(--radius);
  padding: 37px 40px;
  position: relative;
  overflow: hidden;
  margin-bottom: 37px;
}
.hero:before {
  content: "";
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 45px solid #45645638;
  position: absolute;
  right: 15%;
  top: -55px;
  pointer-events: none;
}
.hero > div {
  position: relative;
}
.hero h2 {
  font-size: 32px;
  line-height: 1.25;
  letter-spacing: -1px;
  color: #d6eee3;
  margin-bottom: 14px;
}
.hero p {
  font-size: 12px;
  color: #acc8bc;
  margin: 0;
  max-width: 355px;
}
.hero .eyebrow {
  font-size: 9px;
  color: #9fd4bd;
}
.progress-card {
  background: #1f1f29;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 22px 24px;
  min-width: 205px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.progress-number {
  font-size: 43px;
  color: var(--green);
  letter-spacing: -2px;
  line-height: 1;
}
.progress-number small {
  font-size: 22px;
  color: var(--green);
  margin-left: 3px;
}
.progress-card strong {
  font-size: 12px;
  color: #c7ded3;
}
.progress-card > small {
  font-size: 10px;
}
progress {
  width: 100%;
  height: 6px;
  border: 0;
  appearance: none;
  background: #3a4943;
  border-radius: 10px;
  margin: 4px 0;
}
progress::-webkit-progress-bar {
  background: #3a4943;
  border-radius: 10px;
}
progress::-webkit-progress-value {
  background: var(--green);
  border-radius: 10px;
}
progress::-moz-progress-bar {
  background: var(--green);
  border-radius: 10px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 23px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading p {
  margin: 6px 0 0;
}
.course-section {
  margin-bottom: 32px;
}
.course-section-title {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-bottom: 19px;
}
.section-number {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #40594e;
  background: #243a34;
  border-radius: 9px;
  font-size: 13px;
  color: #9bdbbf;
}
.course-section-title h3 {
  margin-bottom: 3px;
  font-size: 15px;
}
.course-section-title p {
  font-size: 12px;
  margin: 0;
}
.course-section-title > .badge {
  margin-left: auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  padding: 6px 9px;
  background: var(--pale);
  color: var(--green);
  border-radius: 6px;
  font-weight: 550;
  white-space: nowrap;
}
.lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.lesson-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px #00000040;
}
.thumbnail {
  aspect-ratio: 1.8;
  position: relative;
  background: #283b34;
  overflow: hidden;
}
.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.thumbnail-pattern {
  height: 100%;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(135deg, transparent 0 30px, #ffffff20 30px 31px),
    linear-gradient(130deg, #2b4940, #514636);
}
.thumbnail-pattern > span {
  font:
    italic 100px Georgia,
    serif;
  color: #ffffff6b;
  transform: rotate(-10deg);
}
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1f1f2aee;
  display: grid;
  place-items: center;
  font-size: 26px;
  padding-left: 3px;
  color: #9bdfc3;
  box-shadow: 0 3px 12px #00000012;
}
.lesson-state {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: #1f1f2aee;
  border-radius: 5px;
  padding: 5px 8px;
  font-size: 10px;
  color: #9bdfc3;
}
.lesson-card-body {
  padding: 20px;
}
.lesson-card .eyebrow {
  font-size: 8px;
  margin-bottom: 9px;
  letter-spacing: 1.2px;
}
.lesson-card h3 {
  line-height: 1.5;
  min-height: 24px;
}
.card-footer {
  border-top: 1px solid var(--line);
  padding-top: 13px;
  margin-top: 17px;
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 9px;
  color: var(--muted);
}
.card-footer strong {
  color: var(--green);
}
.panel {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 23px;
  min-width: 0;
}
.panel > h2 {
  margin-bottom: 23px;
}
.panel form > label:first-of-type {
  margin-top: 0;
}
.empty {
  text-align: center;
  padding: 46px 20px;
}
.empty-icon {
  font-size: 36px;
  display: block;
  color: #9ac2ad;
  margin-bottom: 12px;
}
.empty h3 {
  font-size: 17px;
}
.empty p {
  font-size: 13px;
  max-width: 390px;
  margin: 0 auto;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 26px;
}
.stat {
  position: relative;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.stat > span {
  color: var(--muted);
  font-size: 11px;
  display: block;
  margin-bottom: 18px;
}
.stat strong {
  font-size: 31px;
  font-weight: 600;
}
.stat i {
  position: absolute;
  right: 22px;
  bottom: 26px;
  font-size: 22px;
  color: #9ac2ad;
  font-style: normal;
}
.admin-banner {
  padding: 30px 34px;
  border-radius: 13px;
  background: #1e302c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.admin-banner h2 {
  font-size: 24px;
  color: #d6eee3;
  margin-bottom: 8px;
}
.admin-banner p {
  font-size: 12px;
  margin: 0;
  color: #acc8bc;
}
.admin-banner .eyebrow {
  font-size: 9px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th {
  color: #b1b1c2;
  font-size: 10px;
  letter-spacing: 0.3px;
  font-weight: 500;
  background: #191921;
  padding: 13px 14px;
}
td {
  padding: 17px 14px;
  border-bottom: 1px solid #353541;
}
td strong {
  font-size: 12px;
}
td small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.nowrap {
  white-space: nowrap;
  color: #acacbc;
  font-size: 11px;
}
.split {
  display: grid;
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.list-row:last-child {
  border-bottom: 0;
}
.list-row > div {
  flex: 1;
  min-width: 0;
}
.list-row strong {
  display: block;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.list-row small {
  display: block;
  margin-top: 6px;
  font-size: 10px;
}
.list-row > span:last-child:not(.avatar) {
  font-size: 11px;
  color: var(--green);
}
.form-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.editor {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
  align-items: start;
}
.editor .form-grid label {
  margin-top: 0;
}
.upload-zone {
  border: 1px dashed #4a655a;
  background: #191921;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  gap: 12px;
}
.check {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.check input {
  flex-shrink: 0;
}
.back {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 25px;
}
.video {
  aspect-ratio: 16/9;
  background: #18261f;
  border-radius: 13px;
  overflow: hidden;
  margin-bottom: 25px;
}
.video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.video-empty {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #b8d0c3;
  font-size: 38px;
}
.video-empty p {
  font-size: 13px;
  color: #b8d0c3;
}
.prose {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 16px;
  color: #c0c0cf;
  font-weight: bold;
}
.lesson-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 15px 0;
}
.lesson-actions {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}
.download {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.download > span {
  font-size: 24px;
  color: var(--green);
}
.download strong {
  font-size: 12px;
  overflow-wrap: anywhere;
  display: block;
}
.download small {
  font-size: 10px;
  display: block;
  margin-top: 6px;
}
.sibling {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  line-height: 1.6;
  padding: 12px;
  border-radius: 7px;
  margin: 4px -10px;
}
.sibling.selected {
  background: var(--pale);
  color: var(--green);
}
.sibling span {
  color: var(--green);
}
.filters {
  display: flex;
  gap: 13px;
  align-items: end;
  flex-wrap: wrap;
}
.filters label {
  margin: 0 !important;
  flex: 1;
  min-width: 130px;
  font-size: 11px;
}
.filters input,
.filters select {
  font-size: 12px;
  padding: 11px 10px;
}
.report-note {
  font-size: 11px;
  line-height: 1.6;
  background: #191921;
  padding: 12px 15px;
  border-radius: 6px;
  margin: 23px 0;
}
.pagination {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
  margin-top: 20px;
  font-size: 12px;
  color: var(--green);
}
.pagination span {
  margin-right: auto;
  color: var(--muted);
}
.alert {
  background: #233b31;
  border: 1px solid #3e6552;
  color: #ace1c4;
  padding: 14px 18px;
  border-radius: 9px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.6;
}
.alert a {
  text-decoration: underline;
}
.alert.error {
  background: #40292b;
  border-color: #78494d;
  color: #ffb8af;
}
footer {
  display: flex;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 35px;
  color: #acacbc;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.5px;
}
footer span {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}
.auth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: var(--bg);
}
.auth-story {
  background: #1f1f29;
  padding: 45px 65px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 65px;
  overflow: hidden;
}
.auth-story > div {
  max-width: 490px;
  margin: 0 auto;
  width: 100%;
}
.auth-story h1 {
  font-size: 48px;
  line-height: 1.16;
  letter-spacing: -2px;
  color: #d6eee3;
}
.auth-story h1 > span {
  color: #c49965;
}
.auth-story p {
  font-size: 14px;
  max-width: 390px;
  color: #b0c7bd;
}
.auth-story > small {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #9dbbac;
}
.auth-art {
  height: 255px;
  position: relative;
  margin-top: 30px;
}
.art-card {
  width: 200px;
  height: 220px;
  background: #2a624c;
  border-radius: 13px;
  transform: rotate(-9deg);
  padding: 25px 28px;
  box-shadow: 15px 22px 0 #2e3d34;
  position: absolute;
  left: 55px;
  top: 8px;
  color: #ebefd8;
}
.art-card > span {
  font-size: 42px;
  position: absolute;
  right: 25px;
  top: 16px;
  color: #b4c999;
}
.art-card strong {
  display: block;
  font-size: 28px;
  line-height: 1.3;
  margin-top: 42px;
  letter-spacing: -1px;
}
.art-orbit {
  width: 250px;
  height: 200px;
  border: 1px solid #566e5a;
  border-radius: 50%;
  transform: rotate(-35deg);
  position: absolute;
  left: 130px;
  top: 20px;
}
.art-note {
  position: absolute;
  bottom: 23px;
  left: 205px;
  background: #41392d;
  border: 1px solid #6b5942;
  padding: 15px 23px;
  border-radius: 8px;
  color: #ecd0a6;
  transform: rotate(6deg);
  font-size: 12px;
  white-space: nowrap;
}
.auth-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.auth-box {
  max-width: 355px;
  width: 100%;
}
.auth-box h2 {
  font-size: 30px;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
.auth-box > p {
  font-size: 13px;
}
.auth-box form {
  margin-top: 33px;
}
.auth-box .button {
  margin-top: 18px;
  justify-content: space-between;
}
.auth-help {
  border-top: 1px solid var(--line);
  padding-top: 23px;
  margin-top: 30px;
  font-size: 11px !important;
  color: #acacbc;
  line-height: 1.8;
}
.lesson-audio {
  margin: 22px 0;
  padding: 20px;
  background: var(--pale);
  border-radius: 10px;
}
.lesson-audio h3 {
  margin-bottom: 14px;
}
.lesson-audio audio,
.audio-preview {
  display: block;
  width: 100%;
  max-width: 100%;
}
@media (min-width: 1500px) {
  .content {
    padding-top: 45px;
  }
  .hero {
    padding: 45px;
  }
  .lesson-card-body {
    padding: 24px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 218px;
    padding-left: 15px;
    padding-right: 15px;
  }
  .workspace {
    margin-left: 218px;
  }
  .content {
    padding: 30px 27px;
  }
  .topbar {
    padding: 0 27px;
  }
  .lesson-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: 300px minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .lesson-layout {
    grid-template-columns: minmax(0, 1fr) 245px;
  }
  .editor {
    grid-template-columns: 1.3fr 1fr;
  }
  .hero {
    padding: 30px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story h1 {
    font-size: 39px;
  }
  .auth-art {
    transform: scale(0.85);
    transform-origin: left top;
  }
}
@media (max-width: 850px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar > .brand {
    margin: 0 0 16px;
    font-size: 27px;
  }
  .sidebar > .nav-label {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 6px;
    overflow-x: auto;
  }
  .nav-item {
    white-space: nowrap;
    margin: 0;
    font-size: 12px;
    flex-shrink: 0;
  }
  .nav-item span {
    font-size: 18px;
  }
  .section-label {
    display: none;
  }
  .sidebar-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
  }
  .switch {
    margin: 0;
    font-size: 11px;
  }
  .profile {
    border: 0;
    padding: 0;
    margin-left: auto;
  }
  .profile .avatar {
    width: 28px;
    height: 28px;
  }
  .profile small {
    display: none;
  }
  .profile > div {
    max-width: 140px;
  }
  .shell {
    display: block;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
    height: 53px;
  }
  .content {
    padding: 27px 22px;
  }
  .split,
  .editor {
    grid-template-columns: 1fr;
  }
  .lesson-layout {
    grid-template-columns: 1fr;
  }
  .lesson-layout > aside {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .auth-story {
    padding: 35px;
  }
  .auth-story h1 {
    font-size: 34px;
  }
  .auth-form {
    padding: 30px;
  }
  .auth-art {
    transform: scale(0.7);
    height: 205px;
  }
  .auth-story {
    gap: 35px;
  }
  .auth-story .eyebrow {
    font-size: 8px;
  }
}
@media (max-width: 560px) {
  h1 {
    font-size: 26px;
  }
  .top-status {
    display: none;
  }
  .hero {
    padding: 26px;
    flex-direction: column;
    align-items: stretch;
    gap: 5px;
  }
  .hero h2 {
    font-size: 29px;
  }
  .progress-card {
    padding: 20px;
    display: grid;
    grid-template-columns: 70px 1fr;
    align-items: center;
    gap: 8px 16px;
  }
  .progress-number {
    grid-row: span 3;
  }
  .progress-card progress {
    margin: 0;
  }
  .hero:before {
    right: -100px;
  }
  .eyebrow {
    font-size: 9px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 13px;
  }
  .page-heading > .subtle {
    display: none;
  }
  .page-heading > .button {
    padding: 9px 11px;
    font-size: 11px;
  }
  .section-heading {
    align-items: flex-start;
  }
  .section-heading > .subtle {
    font-size: 10px;
    max-width: 90px;
    text-align: right;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .lesson-grid {
    grid-template-columns: 1fr;
  }
  .course-section-title > .badge {
    font-size: 9px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px;
  }
  .stat > span {
    font-size: 10px;
  }
  .stat i {
    right: 17px;
    bottom: 22px;
  }
  .admin-banner {
    padding: 24px;
    flex-direction: column;
    align-items: flex-start;
  }
  .panel {
    padding: 20px 4px;
  }
  .list-row {
    gap: 10px;
  }
  .list-row .text-link {
    font-size: 10px;
  }
  .list-row .button {
    padding: 6px 9px;
    font-size: 11px;
  }
  .lesson-layout > aside {
    display: block;
  }
  .auth {
    display: block;
  }
  .auth-story {
    padding: 27px;
    gap: 25px;
  }
  .auth-story > div {
    margin: 0;
  }
  .auth-story h1 {
    font-size: 31px;
    margin-bottom: 0;
  }
  .auth-story p,
  .auth-story > small,
  .auth-art {
    display: none;
  }
  .auth-story .eyebrow {
    margin-bottom: 9px;
  }
  .auth-form {
    padding: 35px 27px;
  }
  .auth-box {
    max-width: none;
  }
  .auth-box h2 {
    font-size: 27px;
  }
  .content {
    padding: 25px 10px;
  }
  .form-grid {
    gap: 12px;
  }
  .sidebar {
    padding: 15px 17px;
  }
  .profile strong {
    font-size: 11px;
  }
  .filters label {
    min-width: 42%;
  }
  .filters .button {
    width: 100%;
  }
  .table-wrap {
    margin: 0 -8px;
  }
  .section-heading .text-link {
    font-size: 10px;
    text-align: right;
  }
  .lesson-description .button {
    white-space: normal;
  }
  footer {
    margin-top: 24px;
  }
}

.preview-bar {
  padding: 18px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  margin-bottom: 24px;
}
.preview-bar form {
  display: flex;
  align-items: end;
  gap: 15px;
}
.preview-bar label {
  margin: 0;
  flex: 1;
  max-width: 440px;
}
.preview-bar p {
  margin: 12px 0 0;
}
.private-label {
  color: var(--green);
  font-size: 12px;
}
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}
.private-row > .row-actions {
  flex: 0 1 auto;
}
.student-row,
.private-row {
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .private-row > .row-actions {
    flex-basis: 100%;
    justify-content: flex-start;
    margin-top: 8px;
  }
  .preview-bar form {
    align-items: stretch;
    flex-direction: column;
  }
  .student-row > .text-link {
    font-size: 11px;
  }
}
.audio-editor {
  margin: 26px 0;
}
.audio-editor-row {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 16px 0;
  background: var(--bg);
}
.audio-editor-row > label:first-child {
  margin-top: 0;
}
.audio-editor-row > small {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 10px;
}
.remove-audio-row {
  background: none;
  border: 0;
  padding: 4px 0;
}
.audio-editor-row .check {
  margin-bottom: 0;
}
/* Dark controls inherit the same palette, including the native audio player. */
.mobile-progress-title,
.mobile-sections-back {
  display: none;
}
@media (max-width: 850px) {
  .desktop-progress-title,
  .course-section-menu > .lesson-grid {
    display: none;
  }
  .mobile-progress-title {
    display: inline;
  }
  .mobile-sections-back {
    display: inline-flex;
    white-space: normal;
    margin-bottom: 24px;
  }
  .student-sidebar nav > .nav-item:not(:first-child) {
    display: none;
  }
  .course-section-menu {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    margin-bottom: 20px;
  }
  .course-section-menu > .course-section-title {
    min-height: 44px;
    margin-bottom: 0;
  }
  .course-section-title > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
input,
select,
textarea {
  background: var(--bg);
}
input[type="file"]::file-selector-button:hover {
  background: #2b2b38;
}
.nav-item.active:hover {
  background: var(--pale);
}
audio {
  color-scheme: dark;
}
::selection {
  background: #3d6656;
  color: #fff;
}

.lesson-image {
  display: block;
}
.lesson-observation {
  margin: 82px 0 12px;
  padding: 20px 20px 0;
  font-size: 20px !important;
}
.lesson-observation .prose {
  margin-bottom: 0;
}

.yellow {
  color: yellow;
}
