@font-face {
  font-family: Inter;
  src: url(fonts/Inter.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3,
h4 {
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}
p {
  overflow-wrap: break-word;
}
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.auth-story {
  padding: 38px 50px;
  background: #edf3ff;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.auth-story:before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  border: 1px solid #d7e4ff;
  border-radius: 50%;
  left: -190px;
  bottom: -260px;
}
.auth-story:after {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  border: 1px solid #d7e4ff;
  border-radius: 50%;
  left: 170px;
  bottom: -210px;
}
.auth-story .brand {
  padding: 0;
}
.brand-logo {
  display: block;
  width: 164px;
  height: auto;
  max-width: 100%;
  flex-shrink: 0;
}
.auth-story .brand-logo {
  width: 210px;
}
.story-content {
  margin: auto 0;
  max-width: 480px;
  z-index: 1;
  padding: 55px 0;
}
.eyebrow {
  display: block;
  color: var(--accent, #3563e9);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.7px;
  margin-bottom: 18px;
}
.story-content h1 {
  font-size: 45px;
  line-height: 1.2;
  letter-spacing: -1.9px;
  margin: 0 0 23px;
  font-weight: 700;
}
.story-content > p {
  font-size: 15px;
  color: #7082a3;
  max-width: 370px;
  line-height: 1.8;
}
.story-preview {
  display: flex;
  gap: 14px;
  align-items: center;
  background: #ffffffdf;
  border: 1px solid #dfe8fb;
  padding: 20px;
  border-radius: 11px;
  margin-top: 42px;
  max-width: 390px;
}
.story-preview strong {
  display: block;
  font-size: 12px;
}
.story-preview small {
  display: block;
  font-size: 10px;
  color: #7c8ca7;
  margin-top: 4px;
}
.story-preview > span {
  margin-left: auto;
  color: var(--accent);
}
.mini-check {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #339d79;
  background: #eaf8ef;
  display: grid;
  place-items: center;
  font-size: 19px;
}
.auth-foot {
  font-size: 11px;
  color: #8798b8;
  z-index: 1;
}
.auth-form-area {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.auth-card {
  width: 390px;
  max-width: 100%;
}
.auth-card h2 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 0 0 10px;
}
.auth-card > .muted {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.auth-card .field {
  margin-bottom: 21px;
}
.auth-card .field input {
  padding: 12px;
  min-height: 45px;
}
.auth-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  margin: 0 0 26px;
  gap: 10px;
}
.auth-options label {
  display: flex;
  gap: 6px;
  align-items: center;
}
.auth-options input {
  accent-color: var(--accent);
}
.auth-card .btn.full {
  min-height: 45px;
  justify-content: space-between;
  padding: 12px 18px;
}
.auth-switch {
  font-size: 11px;
  margin-top: 24px;
  text-align: center;
  color: #8994a6;
  line-height: 2;
}
.auth-switch .text-btn {
  font-size: 11px;
}
.auth-screen {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 30px;
}
.auth-screen .auth-card {
  background: white;
  padding: 35px;
  border: 1px solid #e5eaf2;
  border-radius: 12px;
  width: 500px;
}
.auth-screen h1 {
  font-size: 25px;
  letter-spacing: -0.7px;
}
/* Course authoring workspace */
.editor-page {
  padding: 23px 24px 30px;
  max-width: none;
}
.editor-page .page-head {
  margin-bottom: 6px;
}
.editor-page .page-head h1 {
  font-size: 25px;
}
.editor-page .tabs {
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 25px;
  background: transparent;
  margin-bottom: 18px;
}
.editor-grid {
  display: grid;
  grid-template-columns: 230px minmax(350px, 1fr) 285px;
  gap: 14px;
  align-items: start;
}
.outline {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  position: sticky;
  top: 18px;
}
.outline-title {
  padding: 17px;
  font-weight: 650;
  font-size: 12px;
  border-bottom: 1px solid var(--line);
}
.outline-section {
  border-bottom: 1px solid var(--line);
  padding: 13px 8px;
}
.outline-section-head {
  display: flex;
  align-items: center;
  padding: 0 6px 9px;
  gap: 5px;
}
.outline-section-head input {
  width: 100%;
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 11px;
  padding: 4px 0;
  color: var(--ink);
  min-width: 0;
}
.outline-section-head .icon-btn {
  width: 23px;
  height: 23px;
}
.outline-section-head .icon {
  width: 13px;
  height: 13px;
}
.outline-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 9px;
  border: 0;
  background: transparent;
  border-radius: 5px;
  color: #5a6a82;
  text-align: left;
  font-size: 11px;
  min-height: 41px;
}
.outline-item .icon {
  width: 16px;
  height: 16px;
}
.outline-item .grip {
  margin-left: auto;
  opacity: 0.35;
  width: 13px;
}
.outline-item.active {
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 550;
}
.outline-item:hover {
  background: #f6f8ff;
}
.outline-item small {
  display: block;
  font-size: 9px;
  font-weight: 400;
  opacity: 0.75;
}
.outline-bottom {
  padding: 13px;
}
.outline-add {
  padding: 7px 12px;
  font-size: 10px;
  display: flex;
  gap: 5px;
  color: var(--accent);
  border: 0;
  background: transparent;
}
.editor-main {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 20px;
}
.editor-main h2 {
  font-size: 17px;
  letter-spacing: -0.3px;
  margin: 0;
}
.editor-main > .flex {
  margin-bottom: 20px;
}
.title-input {
  border: 0;
  background: transparent;
  width: 100%;
  font-size: 17px;
  font-weight: 650;
  color: var(--ink);
  padding: 3px 0;
  border-radius: 3px;
}
.question-count {
  color: var(--muted);
  font-size: 11px;
  margin-top: 3px;
}
.question-tools {
  display: flex;
  gap: 6px;
  align-items: center;
}
.question-tools select {
  max-width: 200px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 7px;
  font-size: 11px;
  background: white;
}
.question-editor {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.question-editor:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.question-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  gap: 10px;
}
.question-header strong {
  font-size: 13px;
}
.option-row {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 9px 0;
}
.option-row input[type="checkbox"],
.option-row input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: #2ea979;
  flex-shrink: 0;
}
.option-row .input {
  flex: 1;
  font-size: 11px;
}
.option-row .score-input {
  width: 65px;
  flex: none;
  text-align: center;
}
.option-row .icon-btn {
  width: 23px;
  height: 28px;
  opacity: 0.6;
}
.option-row .icon {
  width: 14px;
}
.score-label {
  font-size: 10px;
  color: var(--muted);
  text-align: right;
  padding-right: 36px;
}
.editor-props {
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  position: sticky;
  top: 18px;
}
.editor-props h3 {
  font-size: 16px;
  margin: 0 0 20px;
  letter-spacing: -0.3px;
}
.editor-props .field {
  font-size: 11px;
  margin-top: 17px;
}
.editor-props .field small {
  font-size: 10px;
}
.editor-props .switch-row {
  font-size: 11px;
  margin: 8px 0;
}
.input-unit {
  display: flex;
}
.input-unit input {
  border-radius: 6px 0 0 6px !important;
}
.input-unit span {
  border: 1px solid #dce3ee;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  background: #f7f9fc;
  padding: 10px;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.personal-card {
  background: #f0f5ff;
  padding: 16px;
  border-radius: 7px;
  margin-top: 20px;
}
.personal-card h4 {
  margin: 0 0 8px;
  font-size: 12px;
}
.personal-card p {
  font-size: 10px;
  color: #7185a7;
  line-height: 1.7;
  margin: 0 0 12px;
}
.save-state {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  color: var(--green);
  font-size: 10px;
  margin-top: 5px;
}
.save-state .icon {
  width: 13px;
  height: 13px;
}
.question-tabs {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 0 0 16px;
}
.question-tab {
  min-width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  font-size: 10px;
  color: #8794a7;
}
.question-tab.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}
.rich-toolbar {
  display: flex;
  gap: 5px;
  border: 1px solid #dce3ee;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  padding: 7px;
  background: #fafbfe;
}
.rich-toolbar button {
  font-size: 12px;
  border: 0;
  background: white;
  border-radius: 3px;
  padding: 5px 9px;
}
.rich-editor {
  border: 1px solid #dce3ee;
  border-radius: 0 0 6px 6px;
  padding: 18px;
  min-height: 320px;
  outline: none;
  line-height: 1.85;
  font-size: 13px;
}
.rich-editor h2 {
  font-size: 21px;
  margin: 15px 0;
}
.rich-editor p {
  margin: 12px 0;
}
.rich-editor blockquote {
  border-left: 3px solid #8fadff;
  margin: 15px 0;
  padding: 10px 17px;
  background: #f5f8ff;
}
.course-settings {
  max-width: 870px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}
.preview-label {
  background: #fff6e7;
  border: 1px solid #f1dfba;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 11px;
  color: #98712e;
  margin-bottom: 16px;
}
/* Learner reading and examination */
.learn-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 23px;
}
.learn-outline {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
  position: sticky;
  top: 20px;
}
.learn-outline h3 {
  font-size: 14px;
  margin: 0 0 14px;
}
.learn-section-title {
  font-size: 10px;
  font-weight: 650;
  color: #94a0b1;
  margin: 21px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.learn-item {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: 10px 8px;
  border-radius: 6px;
  font-size: 11px;
  color: #56667e;
  margin-bottom: 3px;
}
.learn-item .icon {
  width: 17px;
  height: 17px;
  color: #8d9bb1;
}
.learn-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.learn-item.complete .icon {
  color: #2e9f73;
}
.learn-item.locked {
  color: #9ba4b3;
}
.lesson-card {
  padding: 34px 40px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  min-height: 520px;
}
.lesson-card h1 {
  font-size: 28px;
  letter-spacing: -0.7px;
  line-height: 1.35;
  margin: 8px 0 27px;
}
.lesson-content {
  max-width: 800px;
  line-height: 1.9;
  font-size: 14px;
  color: #52647e;
}
.lesson-content h2 {
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.5px;
  margin: 28px 0 15px;
}
.lesson-content h2:first-child {
  margin-top: 0;
}
.lesson-content h3 {
  font-size: 16px;
  color: var(--ink);
  margin-top: 25px;
}
.lesson-content p {
  margin: 14px 0;
}
.lesson-content blockquote {
  margin: 22px 0;
  background: #f1f5ff;
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 6px 6px 0;
  color: #52709f;
}
.lesson-content table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.lesson-content th,
.lesson-content td {
  padding: 12px;
  border: 1px solid var(--line);
  text-align: left;
}
.lesson-content th {
  background: #f6f9ff;
}
.lesson-content img {
  border-radius: 8px;
}
.lesson-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  margin-top: 35px;
  flex-wrap: wrap;
}
.lesson-media {
  margin: 22px 0;
}
.lesson-media video,
.lesson-media audio {
  width: 100%;
}
.lesson-media iframe {
  width: 100%;
  height: 580px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.quiz-intro {
  padding: 10px 0;
}
.quiz-rules {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 22px 0;
}
.quiz-rule {
  background: #f8faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
}
.quiz-rule .icon {
  width: 23px;
  height: 23px;
  color: var(--accent);
  margin-bottom: 10px;
}
.quiz-rule strong {
  display: block;
  font-size: 17px;
}
.quiz-rule small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.attempt-page {
  max-width: 1100px;
}
.attempt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 18px;
}
.attempt-top h1 {
  font-size: 24px;
  margin: 0;
  letter-spacing: -0.6px;
}
.timer {
  display: flex;
  gap: 9px;
  align-items: center;
  border: 1px solid #d5e0fa;
  background: #f0f5ff;
  color: var(--accent);
  font-size: 17px;
  letter-spacing: 0.8px;
  font-variant-numeric: tabular-nums;
  padding: 9px 13px;
  border-radius: 8px;
  font-weight: 600;
}
.timer.urgent {
  color: #bb484a;
  background: #fff4f4;
  border-color: #f4d2d6;
}
.question-nav {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.q-nav {
  width: 33px;
  height: 33px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  font-size: 11px;
  color: var(--muted);
}
.q-nav.done {
  background: #eef7f2;
  border-color: #d9ebe1;
  color: #49916c;
}
.q-nav.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.attempt-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 30px;
  min-height: 390px;
}
.attempt-card h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.5;
  margin: 12px 0 24px;
  letter-spacing: -0.4px;
}
.answer-choice {
  display: flex;
  gap: 13px;
  align-items: center;
  border: 1px solid #e1e7f0;
  background: white;
  border-radius: 8px;
  padding: 15px 16px;
  margin: 10px 0;
  font-size: 13px;
  cursor: pointer;
}
.answer-choice input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.answer-choice:has(input:checked) {
  border-color: #91abf8;
  background: #f4f7ff;
}
.answer-choice img {
  max-height: 130px;
  border-radius: 5px;
}
.attempt-footer {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.autosave {
  font-size: 10px;
  color: var(--green);
  display: flex;
  gap: 6px;
  align-items: center;
}
.autosave .icon {
  width: 14px;
  height: 14px;
}
.result-card {
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 43px 30px;
}
.result-emblem {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #eaf8f0;
  color: #2ba06a;
  display: grid;
  place-items: center;
  margin: auto;
}
.result-emblem .icon {
  width: 38px;
  height: 38px;
  stroke-width: 1.3;
}
.result-emblem.fail {
  background: #fff2e8;
  color: #c18746;
}
.result-card h1 {
  font-size: 29px;
  margin: 22px 0 9px;
  letter-spacing: -1px;
}
.result-card p {
  max-width: 460px;
  margin: 0 auto 25px;
  font-size: 13px;
  color: var(--muted);
}
.result-score {
  font-size: 46px;
  font-weight: 720;
  color: var(--accent);
  letter-spacing: -2px;
}
.result-details {
  display: flex;
  justify-content: center;
  gap: 35px;
  margin: 18px 0 28px;
}
.result-details strong {
  font-size: 16px;
  display: block;
}
.result-details small {
  font-size: 10px;
  color: var(--muted);
}
.answer-feedback {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  margin-top: 12px;
  background: white;
}
.answer-feedback h3 {
  font-size: 13px;
  margin: 0 0 9px;
}
.answer-feedback p {
  font-size: 12px;
  color: var(--muted);
  margin: 7px 0;
}
.pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: center;
  margin: 13px 0;
  font-size: 12px;
}
.sort-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 8px 0;
  font-size: 12px;
}
.sort-item > span {
  flex: 1;
}
.sort-item .icon-btn {
  width: 28px;
  height: 28px;
}
.hotspot-box {
  position: relative;
  display: inline-block;
  max-width: 100%;
  cursor: crosshair;
}
.hotspot-box img {
  display: block;
  max-height: 420px;
}
.hotspot-marker {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 2px var(--accent);
  pointer-events: none;
}
.rating {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.rating label {
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 8px;
  display: flex;
  gap: 7px;
}
.rating label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.saved-work {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 17px;
  background: #fafcfe;
  margin: 16px 0;
}
.saved-work p {
  font-size: 12px;
  white-space: pre-wrap;
}
.review-question {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.review-question h3 {
  margin: 0 0 10px;
}
.review-question .answer-text {
  white-space: pre-wrap;
  background: #f6f8fc;
  border-radius: 7px;
  padding: 16px;
  font-size: 12px;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
}
.calendar-cell {
  background: white;
  min-height: 105px;
  padding: 10px;
  font-size: 12px;
}
.calendar-cell.today {
  background: #f1f5ff;
}
.calendar-cell.empty-day {
  background: #fafbfd;
}
.calendar-label {
  background: #f7f9fd;
  text-align: center;
  font-size: 10px;
  padding: 10px;
  color: var(--muted);
}
.calendar-event {
  font-size: 9px;
  line-height: 1.45;
  background: #eef3ff;
  color: var(--accent);
  padding: 5px;
  border-radius: 4px;
  display: block;
  margin-top: 7px;
}
.calendar-event.over {
  background: #fff3df;
  color: #a4782c;
}
.audit-data {
  font-family: monospace;
  font-size: 10px;
  white-space: pre-wrap;
  max-height: 140px;
  overflow: auto;
  background: #f7f9fc;
  padding: 12px;
  border-radius: 5px;
}
@media (min-width: 1700px) {
  .editor-grid {
    grid-template-columns: 265px minmax(430px, 1fr) 315px;
    gap: 18px;
  }
  .editor-main {
    padding: 25px;
  }
  .editor-props {
    padding: 23px;
  }
  .outline-item {
    padding: 13px 11px;
    font-size: 12px;
  }
  .outline-section-head input {
    font-size: 12px;
  }
  .editor-page {
    padding: 29px 29px;
  }
  .editor-page .tabs {
    margin-left: -29px;
    margin-right: -29px;
    padding-left: 29px;
  }
  .option-row .input {
    font-size: 12px;
    min-height: 43px;
  }
}
@media (max-width: 1350px) {
  .editor-grid {
    grid-template-columns: 210px minmax(320px, 1fr);
  }
  .editor-props {
    grid-column: 2;
    position: static;
  }
  .editor-main {
    grid-column: 2;
  }
  .outline {
    grid-column: 1;
    grid-row: 1/3;
  }
  .editor-props .props-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
  }
  .editor-props .personal-card {
    margin-top: 10px;
  }
  .learn-layout {
    grid-template-columns: 230px minmax(0, 1fr);
  }
  .lesson-card {
    padding: 27px;
  }
  .editor-page .page-head h1 {
    font-size: 21px;
  }
}
@media (max-width: 950px) {
  .auth-story {
    padding: 30px;
  }
  .story-content h1 {
    font-size: 34px;
  }
  .auth-form-area {
    padding: 35px;
  }
  .auth-layout {
    grid-template-columns: 0.9fr 1.1fr;
  }
  .story-preview {
    padding: 15px;
  }
  .learn-layout {
    grid-template-columns: 1fr;
  }
  .learn-outline {
    position: static;
  }
  .learn-outline .learn-sections {
    display: none;
  }
  .learn-outline.expanded .learn-sections {
    display: block;
  }
  .learn-outline h3 {
    margin: 0;
  }
  .learn-outline .progress-wrap {
    margin-top: 12px;
  }
  .learn-outline {
    padding: 16px;
  }
  .lesson-card {
    padding: 25px;
  }
}
@media (max-width: 650px) {
  .auth-layout {
    display: block;
  }
  .auth-story {
    padding: 25px;
    background: white;
  }
  .auth-story .brand {
    font-size: 26px;
  }
  .auth-story .brand-logo {
    width: 176px;
  }
  .story-content,
  .auth-foot,
  .auth-story:before,
  .auth-story:after {
    display: none;
  }
  .auth-form-area {
    padding: 25px;
    min-height: 75vh;
    align-items: flex-start;
  }
  .auth-card h2 {
    font-size: 26px;
  }
  .auth-card .eyebrow {
    margin-top: 20px;
  }
  .editor-page {
    padding: 18px 12px;
  }
  .editor-page .tabs {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
  }
  .editor-grid {
    display: flex;
    flex-direction: column;
  }
  .outline,
  .editor-main,
  .editor-props {
    width: 100%;
    position: static;
  }
  .outline-sections {
    max-height: 260px;
    overflow: auto;
  }
  .editor-main {
    padding: 16px;
  }
  .question-header {
    flex-wrap: wrap;
  }
  .question-tools select {
    max-width: none;
    flex: 1;
  }
  .question-tools {
    width: 100%;
  }
  .option-row {
    gap: 6px;
  }
  .option-row .score-input {
    width: 55px;
  }
  .editor-props .props-fields {
    display: block;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .lesson-card {
    padding: 22px 18px;
  }
  .lesson-card h1 {
    font-size: 24px;
  }
  .lesson-content {
    font-size: 13px;
  }
  .quiz-rules {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .quiz-rule {
    display: flex;
    gap: 15px;
    align-items: center;
    padding: 15px;
  }
  .quiz-rule .icon {
    margin: 0;
  }
  .quiz-rule strong {
    font-size: 15px;
  }
  .attempt-card {
    padding: 22px 17px;
  }
  .attempt-top h1 {
    font-size: 20px;
  }
  .timer {
    font-size: 14px;
    padding: 8px;
  }
  .attempt-card h2 {
    font-size: 18px;
  }
  .attempt-footer {
    flex-wrap: wrap;
  }
  .attempt-footer .autosave {
    width: 100%;
    order: 3;
  }
  .pair-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .calendar-cell {
    min-height: 80px;
    padding: 5px;
  }
  .calendar-event {
    font-size: 8px;
    padding: 3px;
  }
  .question-nav {
    gap: 5px;
  }
  .q-nav {
    width: 30px;
    height: 30px;
  }
  .result-details {
    gap: 20px;
  }
  .editor-page .page-head {
    margin-bottom: 12px;
  }
  .learn-layout {
    gap: 13px;
  }
  .result-card {
    padding: 32px 18px;
  }
}
/* Reports and review details */
.report-bars {
  display: grid;
  gap: 18px;
  padding: 10px 0;
}
.report-bar {
  display: grid;
  grid-template-columns: 200px minmax(100px, 1fr) 70px;
  gap: 22px;
  align-items: center;
  font-size: 12px;
}
.report-bar > small {
  text-align: right;
  color: var(--muted);
}
.report-bar .progress-wrap {
  width: 100%;
  max-width: none;
}
.review-answer {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.review-answer:last-child {
  border-bottom: 0;
}
.review-answer p {
  line-height: 1.8;
}
.review-answer .field {
  margin-top: 17px;
}
.review-answer .field input {
  max-width: 160px;
}
.certificate-top {
  background: linear-gradient(145deg, #eef3ff, #f8faff);
  min-height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
}
.certificate-top .icon {
  width: 52px;
  height: 52px;
  stroke-width: 1.25;
}
.certificate-top span {
  font-size: 15px;
  letter-spacing: 3px;
}
.certificate-top small {
  color: #8b9dbd;
  font-size: 10px;
}
.usage-row {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.code-details {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12px;
  background: #f6f8fb;
  padding: 18px;
  border-radius: 8px;
}
.grow {
  flex: 1;
  min-width: 0;
}
.right {
  text-align: right;
}
.pair-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
  margin: 15px 0;
  font-size: 12px;
}
.inbox-item.read {
  opacity: 0.7;
}
.check-row[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  .report-bar {
    grid-template-columns: 90px minmax(70px, 1fr) 50px;
    gap: 12px;
  }
  .pair-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .certificate-top {
    min-height: 150px;
  }
}
.kpi-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 22px;
}
.kpi-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 11px;
  margin-bottom: 15px;
}
.kpi-label .icon {
  color: var(--accent);
}
.kpi-card > strong {
  font-size: 29px;
  line-height: 1.3;
  display: block;
  letter-spacing: -0.7px;
}
.kpi-card > small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
@media (max-width: 540px) {
  .list-toolbar input {
    flex: 1 1 100%;
    min-width: 100%;
  }
  .list-toolbar select {
    flex: 1;
    width: auto !important;
  }
  .kpi-card {
    padding: 15px;
  }
  .kpi-card > strong {
    font-size: 25px;
  }
  .kpi-label {
    font-size: 10px;
  }
}
