@font-face {
  font-family: system;
  src: local("Inter"), local("Segoe UI");
}
:root {
  font-family: system, Inter, ui-sans-serif, system-ui, sans-serif;
  color: #263b38;
  background: #f5f7f6;
  font-synthesis: none;
  --bg: #f5f7f6;
  --panel: #fff;
  --ink: #263b38;
  --muted: #74847f;
  --line: #e3e9e5;
  --green: #194d40;
  --lime: #d6ed91;
  --soft: #edf3ef;
  --danger: #b43d37;
  --shadow: 0 18px 60px #133b3020;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
[contenteditable] {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable]:focus-visible {
  outline: 3px solid #73a867;
  outline-offset: 3px;
}
button {
  border: 0;
  background: none;
  color: inherit;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  stroke-width: 1.7;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(25px, 3vw, 35px);
  font-weight: 650;
  letter-spacing: -1.1px;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 16px;
  font-weight: 650;
}
p {
  line-height: 1.65;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.tiny {
  font-size: 11px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.between {
  justify-content: space-between;
}
.wrap {
  flex-wrap: wrap;
}
.stack {
  display: grid;
  gap: 20px;
}
.gap-sm {
  gap: 8px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  position: fixed;
  inset: 0 auto 0 0;
  background: var(--panel);
  border-right: 1px solid var(--line);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -1px;
}
.brand-mark {
  width: 39px;
  height: 39px;
  background: var(--green);
  color: var(--lime);
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -4px;
  padding-right: 4px;
}
.brand small {
  font-size: 10px;
  letter-spacing: 2.5px;
  display: block;
  color: var(--muted);
  margin-top: -2px;
}
.workspace {
  margin: 35px 0 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: var(--bg);
}
.workspace-icon {
  background: var(--panel);
  padding: 7px;
  border-radius: 7px;
  display: flex;
}
.nav-label {
  padding: 10px 14px;
}
.nav {
  display: grid;
  gap: 5px;
}
.nav a {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 9px;
  font-size: 13px;
  color: #6b7b76;
}
.nav a:hover {
  background: var(--bg);
  text-decoration: none;
}
.nav a.active {
  background: var(--green);
  color: white;
}
.nav a.active svg {
  color: var(--lime);
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.help-card {
  background: var(--soft);
  padding: 18px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.help-card p {
  font-size: 12px;
  margin: 10px 0 4px;
}
.user-bar {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e8edda;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}
.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 18px;
}
.main {
  margin-left: 238px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 42px;
  background: var(--panel);
}
.topbar-left {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.topbar-left strong {
  font-weight: 500;
  color: var(--ink);
}
.topbar .date {
  font-size: 12px;
  color: var(--muted);
}
.language {
  border: 1px solid var(--line);
  padding: 7px 9px;
  background: var(--panel);
  color: var(--ink);
  border-radius: 8px;
  font-size: 12px;
}
.content {
  padding: 37px 42px 50px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 27px;
}
.page-head p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 9px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 8px;
  background: var(--panel);
  white-space: nowrap;
  min-height: 39px;
}
.btn:hover {
  background: var(--soft);
  text-decoration: none;
}
.btn.primary {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.btn.primary:hover {
  background: #246451;
}
.btn.lime {
  background: var(--lime);
  border-color: var(--lime);
  color: #1c4033;
}
.btn.danger {
  color: var(--danger);
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 7px;
}
.icon-btn:hover {
  background: var(--soft);
}
.hero {
  background: var(--green);
  color: white;
  min-height: 204px;
  border-radius: 15px;
  padding: 31px 34px;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 490px;
}
.hero .eyebrow {
  color: #c4d9cf;
}
.hero h2 {
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.8px;
  max-width: 410px;
  margin: 14px 0 9px;
}
.hero p {
  font-size: 12px;
  color: #b9d0c5;
  max-width: 400px;
}
.hero .btn {
  margin-top: 18px;
}
.hero-art {
  width: 240px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.orbit {
  border: 1px solid #8aac7460;
  border-radius: 50%;
  width: 200px;
  height: 200px;
  position: absolute;
  transform: rotate(-30deg) scaleY(0.67);
}
.orbit.two {
  transform: rotate(35deg) scaleY(0.67);
  width: 265px;
  height: 265px;
}
.art-book {
  width: 108px;
  height: 128px;
  border-radius: 7px 15px 15px 7px;
  background: var(--lime);
  transform: rotate(15deg);
  box-shadow: -12px 7px 0 #8bab62, 10px 16px 30px #122f3270;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}
.art-book svg {
  width: 52px;
  height: 52px;
  stroke-width: 1;
}
.art-dot {
  position: absolute;
  top: 24px;
  right: 10px;
  background: var(--lime);
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 23px 0 31px;
}
.stat {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 11px;
  padding: 20px;
}
.stat .value {
  font-size: 29px;
  font-weight: 650;
  letter-spacing: -1px;
  margin-top: 12px;
}
.stat .label {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.stat-icon {
  background: var(--soft);
  color: var(--green);
  border-radius: 8px;
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
}
.stat .hint {
  color: var(--muted);
  font-size: 10px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 27px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.section-head a {
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.course-grid.compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.course-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}
.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px #133b300d;
}
.course-cover {
  height: 126px;
  position: relative;
  overflow: hidden;
  padding: 17px;
  background: #e7efdd;
  display: flex;
  align-items: center;
  justify-content: center;
}
.course-cover.tint-1 {
  background: #e5ebf2;
}
.course-cover.tint-2 {
  background: #f4e9db;
}
.cover-symbol {
  color: #668763;
  font-size: 49px;
  font-weight: 300;
  letter-spacing: -4px;
  font-family: ui-monospace, monospace;
  transform: rotate(-9deg);
}
.tint-1 .cover-symbol {
  color: #778dab;
}
.tint-2 .cover-symbol {
  color: #b99269;
}
.cover-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff60 1px, transparent 1px),
    linear-gradient(90deg, #ffffff60 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(110deg, transparent, #000);
}
.course-cover .tag {
  position: absolute;
  left: 14px;
  top: 13px;
  z-index: 1;
  background: #ffffffd9;
}
.course-body {
  padding: 19px;
}
.course-body h3 {
  font-size: 15px;
  line-height: 1.4;
  min-height: 42px;
}
.course-body .teacher {
  font-size: 11px;
  color: var(--muted);
  margin: 11px 0 17px;
}
.course-meta {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 17px;
}
.course-meta svg {
  width: 14px;
  height: 14px;
}
.progress-head {
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  margin: 17px 0 7px;
}
.progress {
  width: 100%;
  height: 5px;
  border: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--soft);
  accent-color: #648e56;
}
.progress::-webkit-progress-bar {
  background: var(--soft);
}
.progress::-webkit-progress-value {
  background: #648e56;
  border-radius: 8px;
}
.course-bottom {
  padding-top: 15px;
  margin-top: 15px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.course-bottom a {
  font-weight: 650;
  color: var(--green);
  display: flex;
  gap: 7px;
}
.course-bottom svg {
  width: 14px;
  height: 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1;
  font-weight: 600;
  background: var(--soft);
  color: var(--green);
  white-space: nowrap;
}
.tag.amber {
  background: #fcf2dc;
  color: #987325;
}
.tag.blue {
  background: #e9eff8;
  color: #5b769e;
}
.tag.gray {
  background: var(--soft);
  color: var(--muted);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 22px;
}
.panel.flush {
  padding: 0;
  overflow: hidden;
}
.upcoming-item {
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 13px;
}
.upcoming-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.date-tile {
  background: var(--soft);
  width: 43px;
  height: 49px;
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.date-tile span {
  font-size: 9px;
  text-transform: uppercase;
}
.date-tile strong {
  font-size: 18px;
  font-weight: 650;
}
.upcoming-item h3 {
  font-size: 12px;
  line-height: 1.5;
}
.upcoming-item p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.tip {
  padding: 22px;
  border-radius: 12px;
  background: #edf0e4;
  margin-top: 20px;
}
.tip svg {
  color: #63774b;
}
.tip h3 {
  margin: 13px 0 7px;
  font-size: 14px;
}
.tip p {
  font-size: 12px;
  color: #738069;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
th {
  text-align: left;
  background: var(--bg);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  padding: 13px 18px;
  white-space: nowrap;
}
td {
  padding: 16px 18px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
td p {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
tbody tr:hover {
  background: color-mix(in srgb, var(--soft), transparent 55%);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 0;
  font-size: 12px;
  color: var(--muted);
}
.filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.search {
  position: relative;
  min-width: 240px;
  max-width: 380px;
  flex: 1;
}
.search svg {
  position: absolute;
  left: 13px;
  top: 11px;
  color: var(--muted);
  width: 17px;
}
.search input {
  padding-left: 39px;
  width: 100%;
}
.tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  background: #e9eeeb;
  border-radius: 9px;
  font-size: 12px;
}
.tabs a {
  padding: 8px 15px;
  border-radius: 6px;
  color: var(--muted);
}
.tabs a.active {
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 1px 4px #18362910;
}
.tabs a:hover {
  text-decoration: none;
}
.field {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 550;
}
.field small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.6;
}
.input,
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  border: 1px solid #dbe4dd;
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 11px 12px;
  min-width: 0;
}
textarea {
  min-height: 110px;
  resize: vertical;
  width: 100%;
  line-height: 1.6;
}
input[type="file"] {
  font-size: 12px;
  width: 100%;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.span-2 {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  margin-top: 22px;
}
.empty {
  text-align: center;
  padding: 45px 25px;
  color: var(--muted);
}
.empty svg {
  width: 32px;
  height: 32px;
  margin-bottom: 13px;
  color: #92a48e;
}
.empty h3 {
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  max-width: 390px;
  margin: auto;
}
.empty .btn {
  margin-top: 17px;
}
.loading {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  width: 19px;
  height: 19px;
  border: 2px solid var(--line);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.error-box {
  background: #fbefed;
  color: var(--danger);
  padding: 13px 16px;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 14px;
}
.error-box:empty {
  display: none;
}
.notice {
  padding: 13px 16px;
  border-radius: 9px;
  background: var(--soft);
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 19px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb svg {
  width: 13px;
  height: 13px;
}
.course-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}
.rich {
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.rich p {
  margin: 0.8em 0;
}
.rich h1,
.rich h2,
.rich h3 {
  margin: 1.2em 0 0.5em;
}
.rich ul,
.rich ol {
  padding-left: 24px;
}
.rich a {
  color: #397251;
  text-decoration: underline;
}
.rich img {
  max-width: 100%;
  height: auto;
}
.rich pre {
  overflow: auto;
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
}
.rich table {
  overflow: auto;
}
.chapter {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
}
.chapter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 21px;
  cursor: pointer;
  list-style: none;
}
.chapter summary::-webkit-details-marker {
  display: none;
}
.chapter-number {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  background: var(--soft);
  border-radius: 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--green);
}
.chapter-content {
  padding: 0 22px 22px;
}
.lesson {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.lesson-title {
  font-size: 13px;
  font-weight: 550;
}
.lesson-icon {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.lesson-icon svg {
  width: 17px;
}
.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 7px 0;
  font-size: 12px;
}
.file > a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.result-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 22px;
  margin-bottom: 17px;
}
.answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  padding: 18px;
  background: var(--bg);
  border-radius: 8px;
  margin: 17px 0;
}
.feedback {
  border-left: 3px solid #aec576;
  padding: 12px 16px;
  background: var(--soft);
  font-size: 13px;
  line-height: 1.7;
  margin-top: 15px;
}
.score {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -1px;
}
.score small {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}
.grade-form {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
  margin-top: 18px;
}
.grade-form .field:first-child {
  width: 90px;
}
.grade-form .field:nth-child(2) {
  flex: 1;
  min-width: 200px;
}
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr);
  gap: 24px;
}
.content-editor {
  min-height: 180px;
  max-height: 420px;
  overflow: auto;
  padding: 14px;
  font-size: 14px;
  line-height: 1.7;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  font-weight: 400;
}
.editor-toolbar {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.editor-toolbar button {
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
}
.editor-toolbar button:hover {
  background: var(--panel);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  max-width: 650px;
  width: calc(100% - 32px);
  max-height: 90vh;
  padding: 26px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #15332b70;
  backdrop-filter: blur(3px);
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.dialog-head h2 {
  font-size: 21px;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: min(440px, calc(100% - 48px));
  padding: 14px 19px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 100;
  font-size: 13px;
}
.toast.error {
  background: #963b37;
}
.hidden,
[hidden] {
  display: none !important;
}
.mobile-menu {
  display: none;
}
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-story {
  background: var(--green);
  color: white;
  display: flex;
  flex-direction: column;
  padding: 50px 62px;
  position: relative;
  overflow: hidden;
}
.auth-story .brand {
  color: #fff;
}
.auth-story .brand small {
  color: #bacfc4;
}
.auth-story .brand-mark {
  background: var(--lime);
  color: var(--green);
}
.auth-story-copy {
  margin: auto 0;
  max-width: 480px;
  position: relative;
  z-index: 1;
  padding: 70px 0;
}
.auth-story h1 {
  font-size: clamp(34px, 4.2vw, 59px);
  line-height: 1.13;
  letter-spacing: -2px;
}
.auth-story h1 em {
  font-style: normal;
  color: var(--lime);
}
.auth-story p {
  font-size: 14px;
  color: #b8d0c2;
  max-width: 380px;
  margin-top: 24px;
  line-height: 1.9;
}
.auth-art {
  width: 230px;
  height: 170px;
  position: relative;
  margin-top: 45px;
}
.auth-art .art-book {
  position: absolute;
  top: 10px;
  left: 50px;
}
.auth-art .orbit {
  top: -10px;
  left: 0;
  width: 270px;
}
.auth-footer {
  font-size: 11px;
  color: #b9d0c5;
  display: flex;
  gap: 25px;
}
.auth-main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 35px;
  background: var(--panel);
  position: relative;
}
.auth-language {
  position: absolute;
  top: 32px;
  right: 35px;
}
.auth-form {
  width: 100%;
  max-width: 360px;
}
.auth-form h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin-bottom: 10px;
}
.auth-form > p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 31px;
}
.auth-form form {
  display: grid;
  gap: 18px;
}
.auth-form .btn {
  width: 100%;
  padding: 13px;
  margin-top: 5px;
}
.auth-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: var(--green);
  margin-top: 21px;
}
.auth-note {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 35px;
  text-align: center;
}
.directory-results {
  display: grid;
  max-height: 155px;
  overflow: auto;
  border-radius: 8px;
}
.directory-results button {
  font-size: 11px;
  text-align: left;
  padding: 9px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.directory-selected {
  font-size: 11px;
  color: var(--green);
}
.selection-card {
  background: var(--soft);
  padding: 13px;
  border-radius: 8px;
  font-size: 12px;
}
.print-only {
  display: none;
}
@media (min-width: 1600px) {
  .content {
    padding-top: 45px;
  }
  .hero {
    min-height: 230px;
  }
  .course-cover {
    height: 155px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 210px;
    padding: 28px 17px;
  }
  .main {
    margin-left: 210px;
  }
  .content {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 20px;
  }
  .hero-art {
    width: 190px;
  }
  .course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat {
    padding: 16px;
  }
}
@media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .tip {
    margin-top: 0;
  }
  .hero-art {
    width: 150px;
  }
  .stats {
    gap: 10px;
  }
  .stat .hint {
    display: none;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 40px;
  }
  .topbar .date {
    display: none;
  }
}
@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    width: 238px;
    box-shadow: var(--shadow);
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main {
    margin-left: 0;
  }
  .mobile-menu {
    display: inline-flex;
  }
  .topbar {
    height: 66px;
    padding: 0 20px;
  }
  .content {
    padding: 25px 20px;
  }
  .topbar-left .muted {
    display: none;
  }
  .page-head {
    align-items: flex-start;
  }
  .page-head h1 {
    font-size: 25px;
  }
  .page-head .btn {
    padding: 9px 11px;
  }
  .hero {
    padding: 24px;
    min-height: 210px;
  }
  .hero h2 {
    font-size: 24px;
  }
  .hero-art {
    width: 90px;
    opacity: 0.4;
    margin-right: -35px;
  }
  .hero-copy {
    max-width: 80%;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    margin: 17px 0 27px;
  }
  .stat .value {
    font-size: 26px;
  }
  .course-grid,
  .course-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .course-body {
    padding: 15px;
  }
  .course-meta {
    gap: 8px;
    flex-wrap: wrap;
  }
  .course-body h3 {
    font-size: 13px;
  }
  .course-cover {
    height: 108px;
  }
  .dashboard-side {
    grid-template-columns: 1fr;
  }
  .tip {
    display: none;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: auto;
  }
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-main {
    min-height: 100vh;
    padding: 90px 28px 45px;
  }
  .course-intro {
    flex-direction: column;
    align-items: flex-start;
  }
  .chapter summary {
    padding: 16px;
  }
  .chapter-content {
    padding: 0 16px 16px;
  }
  .filters .search {
    max-width: none;
    flex-basis: 100%;
    order: 2;
  }
  .lesson {
    align-items: flex-start;
  }
  .lesson > .row:last-child {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .panel {
    padding: 18px;
  }
  .grade-form {
    display: grid;
    grid-template-columns: 90px 1fr;
  }
  .grade-form .field:nth-child(2) {
    min-width: 0;
  }
  .grade-form .btn {
    width: 100%;
  }
}
@media (max-width: 430px) {
  .course-grid,
  .course-grid.compact {
    grid-template-columns: 1fr;
  }
  .course-cover {
    height: 130px;
  }
  .course-body h3 {
    min-height: 0;
  }
  .hero-art {
    display: none;
  }
  .hero-copy {
    max-width: 100%;
  }
  .page-head {
    flex-wrap: wrap;
  }
  .topbar-left {
    font-size: 11px;
  }
  .row.actions {
    gap: 5px;
  }
  .chapter summary .tag {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .btn,
  .filters {
    display: none;
  }
  .main {
    margin: 0;
  }
  .content {
    padding: 0;
  }
  .panel,
  .result-card {
    break-inside: avoid;
  }
  .print-only {
    display: block;
  }
}

.filters .search input[type="search"] {
  padding-left: 39px;
}
.mobile-close {
  display: none;
}
@media (max-width: 760px) {
  .mobile-close {
    display: inline-flex;
  }
  .sidebar {
    overflow-y: auto;
  }
}
