:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #101430;
  background: #f4f5fd;
  font-synthesis: none;
  /* infoLogia brand indigo, sampled from the official logo */
  --brand: #33409e;
  --blue: #33409e;
  --muted: #7c899f;
  --line: #e7e9f7;
  --shadow: 0 8px 30px #28338906;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #959ee0;
  outline-offset: 4px;
}
button svg,
a svg {
  flex-shrink: 0;
}
svg {
  width: 22px;
  height: 22px;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.logo-mark {
  width: 36px;
  height: 36px;
  stroke: none;
  fill: currentColor;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 27px;
  font-weight: 750;
  letter-spacing: -1.2px;
  white-space: nowrap;
}
.brand .logo-mark {
  color: var(--blue);
}
.brand {
  color: var(--brand);
}
.brand-wordmark {
  display: block;
  height: 1.3em;
  aspect-ratio: 720 / 179;
  background: currentColor;
  -webkit-mask: url("/assets/infologia-wordmark.png") center / contain
    no-repeat;
  mask: url("/assets/infologia-wordmark.png") center / contain no-repeat;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 246px;
  background: linear-gradient(145deg, #fff 15%, #f4f5ff);
  border-right: 1px solid var(--line);
  padding: 32px 20px 24px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.sidebar .brand {
  padding: 0 15px;
  margin-bottom: 42px;
}
.nav {
  display: grid;
  gap: 9px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 14px 17px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 550;
  color: #44486a;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: #edefff;
}
.nav-link.active {
  background: linear-gradient(110deg, #4c5bcb, #4958ca);
  box-shadow: 0 5px 12px #3c4cc620;
  color: #fff;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar-caption {
  padding: 16px 17px 0;
  font-size: 11px;
  color: #94a0b3;
}
.app-body {
  margin-left: 246px;
  min-height: 100vh;
}
.topbar {
  height: 88px;
  padding: 0 42px;
  border-bottom: 1px solid #edeef8;
  background: #ffffffb5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.topbar-caption {
  color: #8895a9;
  font-size: 13px;
}
.topbar-caption span {
  color: #b9bcd3;
  margin: 0 10px;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.icon-button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: relative;
}
.icon-button:hover {
  background: #edefff;
}
.notification-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  top: 8px;
  right: 10px;
  border-radius: 50%;
  background: var(--blue);
  border: 1px solid white;
}
.avatar {
  width: 38px;
  height: 38px;
  background: #e8ebfe;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1b235e;
  border: 0;
}
.user-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
}
.user-chip strong {
  font-weight: 600;
}
.user-chip small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 1px;
}
.mobile-brand,
.bottom-nav {
  display: none;
}
.main {
  max-width: 1280px;
  margin: auto;
  padding: 36px 42px 45px;
}
.page-heading {
  margin-bottom: 27px;
}
.page-heading h1 {
  font-size: 27px;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
  font-weight: 700;
}
.page-heading p {
  font-size: 14px;
  color: #7a889e;
  margin: 0;
}
.wave {
  display: inline-block;
  font-size: 24px;
  margin-left: 4px;
}
.hero {
  height: 239px;
  background: linear-gradient(110deg, #626fd2, #4a59ca 65%, #7681d7);
  border: 1px solid #6c78d4;
  border-radius: 19px;
  color: white;
  padding: 35px 36px;
  overflow: hidden;
  position: relative;
}
.hero-copy {
  position: relative;
  z-index: 2;
}
.hero-kicker {
  font-size: 11px;
  letter-spacing: 1.7px;
  font-weight: 600;
  opacity: 0.8;
}
.hero h2 {
  font-size: 42px;
  letter-spacing: -1.2px;
  margin: 9px 0 7px;
  font-weight: 700;
}
.hero p {
  font-size: 17px;
  line-height: 1.55;
  margin: 0;
  color: #ffffffed;
  max-width: 300px;
}
.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 19px;
}
.hero-link svg {
  width: 16px;
}
.mountain-art {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 56%;
  height: 100%;
  stroke: none;
}
.hero-shine {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: #fff;
  filter: blur(60px);
  opacity: 0.09;
  right: 100px;
  top: -130px;
}
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 29px 0 16px;
}
.section-title h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0;
}
.text-link {
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
.text-link svg {
  width: 15px;
  height: 15px;
}
.subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.subject-card {
  border-radius: 15px;
  padding: 20px;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  border: 1px solid #d9ddff;
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px #313ea712;
}
.subject-card .subject-icon {
  width: 31px;
  height: 31px;
  margin-bottom: 16px;
}
.subject-card strong {
  font-size: 14px;
  font-weight: 650;
}
.subject-card small {
  font-size: 11px;
  margin-top: 4px;
  color: #565e9a;
}
.subject-card > .arrow {
  position: absolute;
  bottom: 18px;
  right: 18px;
  width: 18px;
  height: 18px;
  color: #222751;
}
.blue {
  background: linear-gradient(130deg, #e1e5ff, #d9ddff);
  color: #3646bb;
}
.green {
  background: linear-gradient(130deg, #e6fbee, #dcf7e6);
  color: #0ba758;
  border-color: #d9f1e3;
}
.yellow {
  background: linear-gradient(130deg, #fff6dd, #fff0cd);
  color: #efa600;
  border-color: #fff0cb;
}
.subject-card strong,
.course-card strong {
  color: #161933;
}
.subject-card.green small {
  color: #5e8d74;
}
.subject-card.yellow small {
  color: #a38a51;
}
.dashboard-bottom {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 24px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.continue-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 130px;
}
.mini-video {
  width: 124px;
  aspect-ratio: 1.4;
  background: linear-gradient(130deg, #1d2563, #2a3691);
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.mini-video:before {
  content: "";
  position: absolute;
  inset: 0;
  background: #505ecc;
  clip-path: polygon(0 100%, 100% 0, 67% 100%);
  opacity: 0.2;
}
.mini-video svg {
  position: relative;
  color: white;
  width: 27px;
}
.continue-info {
  flex: 1;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #8794a8;
  font-size: 10px;
  letter-spacing: 0.3px;
}
.continue-info h3 {
  font-size: 14px;
  margin: 7px 0 8px;
}
.continue-info p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.continue-card > .icon-button {
  background: #eaecff;
  color: var(--blue);
  width: 34px;
  height: 34px;
}
.progress-track {
  height: 5px;
  border-radius: 4px;
  background: #e8eaf9;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 4px;
}
.daily-plan {
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.plan-symbol {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #e7eaff;
  color: var(--blue);
  flex-shrink: 0;
}
.daily-plan strong {
  font-size: 14px;
}
.daily-plan p {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 12px;
}
.daily-plan > div:last-child {
  flex: 1;
}
.page-footnote {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  color: #9ba8ba;
  margin: 34px 0 0;
}
.page-footnote svg {
  width: 14px;
  height: 14px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 11px 21px;
  border-radius: 10px;
  border: 1px solid #3646bb;
  background: linear-gradient(110deg, #4252c8, #3849c3);
  color: white;
  font-size: 13px;
  font-weight: 600;
  transition: filter 0.15s;
}
.button:hover {
  filter: brightness(0.97);
}
.button svg {
  width: 18px;
  height: 18px;
}
.button.secondary {
  background: #edefff;
  border-color: #d5daff;
  color: #3645b9;
}
.button.ghost {
  color: #728198;
  background: white;
  border-color: var(--line);
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #7b899f;
  margin-bottom: 22px;
}
.breadcrumb svg {
  width: 16px;
  height: 16px;
}
.breadcrumb strong {
  color: #171b3a;
  font-weight: 600;
}
.breadcrumb .back {
  color: #20254e;
  margin-right: 5px;
}
.lesson-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 24px;
}
.video-player {
  aspect-ratio: 16/8.9;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  color: white;
  background:
    radial-gradient(ellipse at 60% -25%, #404fc4, transparent 75%),
    linear-gradient(140deg, #171e51, #181f53 55%, #0f1333);
}
.video-player:before,
.video-player:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #2c3999, #6c78d4);
  clip-path: polygon(0 72%, 19% 48%, 8% 88%);
  opacity: 0.7;
}
.video-player:after {
  clip-path: polygon(67% 0, 100% 0, 61% 27%);
  opacity: 0.55;
}
.video-brand {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding-bottom: 16px;
}
.video-brand .brand {
  font-size: 35px;
  color: #fff;
}
.video-brand .logo-mark {
  width: 48px;
  height: 48px;
  color: #7681d7;
}
.video-brand > small {
  color: #a8afe6;
  font-size: 11px;
  letter-spacing: 1.5px;
}
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid #ffffff30;
  border-radius: 50%;
  width: 62px;
  height: 62px;
  background: #1419449e;
  color: white;
  display: none;
  align-items: center;
  justify-content: center;
}
.video-player:hover .play-button {
  display: flex;
}
.video-player:hover .video-brand {
  opacity: 0.35;
}
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 14px 16px 10px;
  background: linear-gradient(transparent, #0a0d23d9);
  z-index: 2;
}
.video-progress {
  height: 3px;
  border-radius: 3px;
  background: #ffffff5a;
  margin-bottom: 9px;
}
.video-progress span {
  display: block;
  width: 6%;
  height: 100%;
  background: white;
  border-radius: 3px;
}
.control-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
}
.control-row button {
  border: 0;
  background: none;
  color: #fff;
  padding: 0;
  display: grid;
  place-items: center;
}
.control-row svg {
  width: 15px;
  height: 15px;
}
.control-row .spacer {
  flex: 1;
}
.lesson-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-top: 5px;
}
.lesson-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  background: none;
  color: #6f7c92;
  padding: 20px 8px 15px;
  border-bottom: 2px solid transparent;
  font-size: 12px;
}
.lesson-tab svg {
  width: 17px;
  height: 17px;
}
.lesson-tab.active {
  border-color: var(--blue);
  color: var(--blue);
  font-weight: 600;
}
.lesson-test-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 21px;
  background: linear-gradient(110deg, #f2f4ff, #e9ecff);
  border: 1px solid #dfe3ff;
  border-radius: 13px;
  margin-top: 21px;
}
.lesson-test-card .tile-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #dbdfff;
  color: var(--blue);
}
.lesson-test-card h3 {
  font-size: 14px;
  margin: 0 0 5px;
}
.lesson-test-card p {
  font-size: 12px;
  color: #71849c;
  margin: 0;
}
.lesson-test-card .button {
  margin-left: auto;
}
.lesson-outline {
  padding: 0;
  overflow: hidden;
  align-self: start;
}
.outline-heading {
  padding: 21px;
  border-bottom: 1px solid var(--line);
}
.outline-heading h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.outline-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
}
.lesson-row {
  width: 100%;
  text-align: left;
  display: flex;
  gap: 11px;
  align-items: center;
  padding: 17px 18px;
  border: 0;
  border-bottom: 1px solid #edeef9;
  background: white;
}
.lesson-row:last-child {
  border-bottom: 0;
}
.lesson-row.active {
  background: #f0f2ff;
}
.lesson-row:hover {
  background: #f6f7ff;
}
.lesson-number {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #e3e5f6;
  color: #8e9bae;
  font-size: 11px;
  flex-shrink: 0;
}
.lesson-row.active .lesson-number {
  background: #dfe3ff;
  color: var(--blue);
  border-color: #dfe3ff;
}
.lesson-row strong {
  font-size: 12px;
  font-weight: 550;
  display: block;
}
.lesson-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.lesson-row > svg {
  margin-left: auto;
  color: #989cbc;
  width: 15px;
}
.lesson-meta {
  font-size: 11px;
  color: #95a2b4;
  margin: 14px 0 0;
  display: flex;
  align-items: center;
  gap: 6px;
}
.lesson-meta svg {
  width: 14px;
}
.prose {
  line-height: 1.85;
  font-size: 14px;
}
.prose h3 {
  font-size: 17px;
}
.prose code {
  background: #eaecff;
  padding: 3px 7px;
  border-radius: 5px;
  color: #313ea7;
}
.prose p {
  color: #6c7a92;
}
.materials-row {
  display: flex;
  gap: 13px;
  align-items: center;
}
.materials-row .button {
  margin-left: auto;
}
.course-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.course-cover {
  height: 135px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 28px;
  overflow: hidden;
}
.course-cover > svg {
  width: 73px;
  height: 73px;
  opacity: 0.75;
  stroke-width: 1.3;
  transform: rotate(-7deg);
}
.course-cover span {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 1.1px;
}
.course-card {
  padding: 13px;
}
.course-content {
  padding: 19px 9px 9px;
}
.course-content h2 {
  font-size: 18px;
  margin: 0 0 8px;
}
.course-content p {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 22px;
}
.course-bottom {
  display: flex;
  align-items: center;
  gap: 20px;
}
.course-bottom .button {
  margin-left: auto;
}
.course-progress {
  font-size: 11px;
  color: #8c9aaf;
  flex: 1;
}
.course-progress .progress-track {
  margin-top: 9px;
}
.camp-hero {
  margin-bottom: 25px;
}
.camp-hero .hero h2 {
  font-size: 36px;
}
.lesson-list {
  display: grid;
  gap: 13px;
}
.lesson-list-item {
  display: flex;
  gap: 17px;
  align-items: center;
  padding: 21px;
}
.lesson-list-item .lesson-number {
  width: 42px;
  height: 42px;
  background: #e7eaff;
  color: var(--blue);
  border: 0;
}
.lesson-list-item h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.lesson-list-item p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.lesson-list-item > .button {
  margin-left: auto;
}
.quiz-shell {
  max-width: 740px;
  margin: 0 auto;
}
.quiz-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.quiz-top h1 {
  font-size: 20px;
  margin: 0;
}
.quiz-top span {
  font-size: 12px;
  color: var(--muted);
}
.quiz-panel {
  padding: 32px;
}
.quiz-progress {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 32px;
}
.quiz-progress .progress-track {
  flex: 1;
  height: 6px;
}
.quiz-progress > span {
  font-size: 12px;
  white-space: nowrap;
}
.question-label {
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #94a2b6;
}
.quiz-panel h2 {
  font-size: 20px;
  font-weight: 650;
  line-height: 1.55;
  margin: 13px 0 24px;
}
.answers {
  display: grid;
  gap: 12px;
}
.answer {
  display: flex;
  align-items: center;
  gap: 13px;
  text-align: left;
  padding: 15px 17px;
  border: 1px solid #e0e2f5;
  border-radius: 10px;
  background: white;
  font-size: 14px;
  min-height: 51px;
}
.answer:hover {
  background: #f6f7ff;
  border-color: #adb7ff;
}
.answer.selected {
  background: #e7eaff;
  border-color: #858fdc;
}
.radio {
  width: 18px;
  height: 18px;
  border: 1.5px solid #acb0ce;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.selected .radio {
  border-color: #3949c4;
}
.selected .radio:after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.quiz-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 34px;
  gap: 15px;
}
.quiz-actions .button {
  min-width: 110px;
}
.quiz-hint {
  text-align: center;
  font-size: 11px;
  color: #9ba8ba;
  margin-top: 20px;
}
.result {
  text-align: center;
  padding: 35px;
}
.result-symbol {
  width: 82px;
  height: 82px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3f8ed;
  color: #15ab68;
  margin: 0 auto 20px;
}
.result-symbol svg {
  width: 39px;
  height: 39px;
}
.result h2 {
  font-size: 25px;
  margin: 0 0 12px;
}
.result > p {
  color: var(--muted);
  font-size: 14px;
}
.result-score {
  font-size: 52px;
  font-weight: 700;
  color: var(--blue);
  margin: 22px 0;
}
.result-score small {
  font-size: 22px;
  color: #a5a9c8;
}
.result-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}
.review-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}
.review-item {
  padding: 17px;
  text-align: left;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.review-item p {
  margin: 5px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.review-item strong {
  color: #198654;
}
.review-item.incorrect strong {
  color: #db6c54;
}
.empty-state {
  text-align: center;
  padding: 52px 24px;
}
.empty-state .tile-icon {
  margin: 0 auto 18px;
  width: 68px;
  height: 68px;
  background: #edefff;
  color: var(--blue);
  border-radius: 20px;
  display: grid;
  place-items: center;
}
.empty-state h2 {
  font-size: 20px;
}
.empty-state p {
  color: var(--muted);
  font-size: 14px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.achievement {
  text-align: center;
  padding: 30px 20px;
}
.achievement-icon {
  height: 66px;
  width: 66px;
  margin: 0 auto 17px;
  background: #f1f2fa;
  color: #a6aac9;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.achievement-icon svg {
  width: 30px;
  height: 30px;
}
.achievement.earned .achievement-icon {
  background: #fff4d3;
  color: #eab12e;
}
.achievement h2 {
  font-size: 15px;
}
.achievement p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.badge {
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 30px;
  background: #f0f1f9;
  color: #8998ad;
  display: inline-block;
}
.earned .badge {
  background: #e7f9ef;
  color: #19a362;
}
.profile-layout {
  max-width: 720px;
}
.profile-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e2e5ff;
  color: var(--blue);
  font-size: 26px;
  font-weight: 700;
}
.profile-banner h2 {
  margin: 0 0 6px;
  font-size: 21px;
}
.profile-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.profile-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
}
.profile-form input {
  width: 100%;
  border: 1px solid #dcdff4;
  border-radius: 9px;
  padding: 12px 14px;
  background: #fbfdff;
  color: #24294c;
  margin-bottom: 20px;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.stat {
  text-align: center;
  padding: 20px 12px;
}
.stat strong {
  font-size: 25px;
  display: block;
  color: var(--blue);
}
.stat span {
  font-size: 11px;
  color: var(--muted);
}
.welcome {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 25px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #fff, #f7f8ff);
}
.welcome:before {
  content: "";
  position: absolute;
  bottom: -18%;
  left: -25%;
  width: 150%;
  height: 45%;
  background: #e5e8ff;
  border-radius: 45% 60% 0 0;
  transform: rotate(-12deg);
}
.welcome .brand {
  flex-direction: column;
  font-size: 45px;
  letter-spacing: -2px;
  position: relative;
}
.welcome .logo-mark {
  width: 80px;
  height: 80px;
}
.welcome p {
  max-width: 280px;
  font-size: 17px;
  line-height: 1.65;
  position: relative;
  margin: 22px 0 55px;
}
.welcome .button {
  position: relative;
  min-width: 260px;
}
.welcome small {
  color: #9a9ebe;
  position: relative;
  font-size: 11px;
  margin-top: 20px;
}
.mobile-camp {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  width: min(440px, calc(100% - 32px));
  box-shadow: 0 20px 100px #1b235d25;
  color: #171b3a;
}
dialog::backdrop {
  background: #151b4840;
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.dialog-heading h2 {
  font-size: 19px;
  margin: 0;
}
.dialog-heading button {
  font-size: 27px;
}
.notice-item {
  display: flex;
  gap: 12px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  line-height: 1.6;
}
.notice-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}
.notice-item strong {
  font-size: 14px;
}
.notice-item p {
  font-size: 13px;
  color: #7c899f;
  margin: 6px 0;
}
.notice-item small {
  font-size: 11px;
  color: #a2aec0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: #171e4f;
  color: #fff;
  padding: 13px 22px;
  border-radius: 12px;
  box-shadow: 0 5px 30px #1a215824;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 100;
  max-width: calc(100% - 32px);
  width: max-content;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: white;
  padding: 12px;
  border-radius: 8px;
}
.skip-link:focus {
  top: 10px;
}
@media (min-width: 1500px) {
  .main {
    padding-top: 42px;
  }
  .hero {
    height: 265px;
  }
  .hero h2 {
    font-size: 48px;
  }
  .hero p {
    font-size: 19px;
  }
  .subject-card {
    min-height: 170px;
  }
  .subject-card .subject-icon {
    margin-bottom: 22px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 212px;
    padding-inline: 13px;
  }
  .sidebar .brand {
    font-size: 25px;
    padding-inline: 13px;
  }
  .nav-link {
    gap: 12px;
    padding-inline: 15px;
  }
  .app-body {
    margin-left: 212px;
  }
  .topbar {
    padding-inline: 28px;
  }
  .main {
    padding: 30px 28px;
  }
  .lesson-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .lesson-outline {
    display: none;
  }
  .subject-card {
    padding: 17px;
  }
  .dashboard-bottom {
    gap: 17px;
    grid-template-columns: 1.4fr 1fr;
  }
  .continue-card {
    padding: 17px;
    gap: 12px;
  }
  .mini-video {
    width: 90px;
  }
  .daily-plan {
    padding: 17px;
    gap: 12px;
  }
  .subject-card strong {
    font-size: 13px;
  }
}
@media (max-width: 850px) and (min-width: 701px) {
  .sidebar {
    width: 185px;
  }
  .sidebar .brand {
    font-size: 22px;
    padding-inline: 7px;
  }
  .brand .logo-mark {
    width: 29px;
  }
  .app-body {
    margin-left: 185px;
  }
  .nav-link {
    font-size: 12px;
    gap: 10px;
  }
  .main {
    padding: 25px 23px;
  }
  .subject-grid {
    gap: 10px;
  }
  .subject-card {
    padding: 14px;
    min-height: 142px;
  }
  .subject-card strong {
    font-size: 11px;
  }
  .subject-card small {
    font-size: 10px;
  }
  .hero {
    padding: 30px 25px;
  }
  .hero h2 {
    font-size: 38px;
  }
  .hero p {
    font-size: 15px;
  }
  .dashboard-bottom {
    grid-template-columns: 1fr;
  }
  .topbar-caption {
    font-size: 11px;
  }
  .achievement-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  :root {
    background: #f9fbff;
  }
  .sidebar {
    display: none;
  }
  .app-body {
    margin-left: 0;
  }
  .topbar {
    height: 75px;
    padding: 0 21px;
    background: #f9fbff;
    border-bottom: 0;
  }
  .topbar-caption,
  .user-chip {
    display: none;
  }
  .mobile-brand {
    display: inline-flex;
    font-size: 24px;
  }
  .mobile-brand .logo-mark {
    width: 29px;
    height: 29px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .main {
    padding: 18px 21px 105px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  .page-heading h1 {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: -0.65px;
  }
  .page-heading p {
    font-size: 12px;
    line-height: 1.6;
    max-width: 300px;
  }
  .wave {
    font-size: 21px;
  }
  .hero {
    height: 182px;
    border-radius: 15px;
    padding: 22px;
  }
  .hero h2 {
    font-size: 32px;
    margin: 5px 0 8px;
  }
  .hero-kicker {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .hero p {
    font-size: 12px;
    max-width: 190px;
  }
  .hero-link {
    font-size: 10px;
    margin-top: 11px;
  }
  .mountain-art {
    width: 60%;
    opacity: 0.75;
  }
  .hero-shine {
    right: -80px;
  }
  .mobile-camp {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #dce0ff;
    border-radius: 13px;
    background: linear-gradient(110deg, #e5e8ff, #dce0ff);
    padding: 17px;
    margin: 20px 0 0;
  }
  .mobile-camp .plan-symbol {
    background: #d0d5ff;
    width: 42px;
    height: 42px;
    border-radius: 10px;
  }
  .mobile-camp strong {
    font-size: 14px;
  }
  .mobile-camp p {
    font-size: 11px;
    line-height: 1.5;
    margin: 3px 0 0;
    color: #545b8e;
  }
  .mobile-camp > svg {
    margin-left: auto;
    width: 17px;
  }
  .section-title {
    margin: 25px 0 13px;
  }
  .section-title h2 {
    font-size: 19px;
  }
  .text-link {
    font-size: 11px;
  }
  .subject-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .subject-card {
    min-height: 58px;
    flex-direction: row;
    align-items: center;
    border: 1px solid var(--line);
    background: #fff;
    padding: 10px 13px;
    border-radius: 11px;
    gap: 12px;
  }
  .subject-card .subject-icon {
    width: 31px;
    height: 31px;
    padding: 5px;
    border-radius: 7px;
    background: #e3e6ff;
    margin: 0;
  }
  .subject-card.green .subject-icon {
    background: #e3f9ec;
  }
  .subject-card.yellow .subject-icon {
    background: #fff2d8;
  }
  .subject-card strong {
    font-size: 13px;
  }
  .subject-card small {
    display: none;
  }
  .subject-card > .arrow {
    position: static;
    margin-left: auto;
    width: 16px;
    transform: rotate(-45deg);
    color: #718197;
  }
  .dashboard-bottom {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .continue-card {
    padding: 16px;
    gap: 14px;
    min-height: 109px;
  }
  .mini-video {
    width: 85px;
  }
  .continue-info h3 {
    font-size: 13px;
  }
  .continue-info p {
    font-size: 10px;
  }
  .daily-plan {
    min-height: 100px;
  }
  .dashboard-bottom > div:last-child .section-title {
    margin-top: 23px;
  }
  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 73px;
    padding: 8px 15px calc(8px + env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 5px;
    background: #fffffff5;
    border-top: 1px solid #e9ebf8;
    z-index: 30;
    backdrop-filter: blur(12px);
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: #77849b;
    font-size: 10px;
    padding: 5px 8px;
  }
  .bottom-nav a svg {
    width: 22px;
    height: 22px;
  }
  .bottom-nav a.active {
    color: var(--blue);
    font-weight: 650;
  }
  .page-footnote {
    font-size: 10px;
    margin-top: 25px;
  }
  .page-footnote svg {
    width: 12px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 8px;
    margin-bottom: 21px;
  }
  .breadcrumb strong {
    font-size: 12px;
  }
  .lesson-main {
    padding-top: 12px;
  }
  .video-player {
    aspect-ratio: 16/10;
    border-radius: 12px;
  }
  .video-brand .brand {
    font-size: 27px;
  }
  .video-brand .logo-mark {
    width: 35px;
    height: 35px;
  }
  .video-brand > small {
    font-size: 8px;
  }
  .play-button {
    display: flex;
    width: 50px;
    height: 50px;
    top: 48%;
  }
  .video-brand {
    padding-bottom: 50px;
    justify-content: flex-start;
    padding-top: 32px;
  }
  .video-brand > small {
    display: none;
  }
  .video-player:hover .video-brand {
    opacity: 1;
  }
  .control-row {
    gap: 10px;
    font-size: 9px;
  }
  .video-controls {
    padding: 12px;
  }
  .lesson-tabs {
    margin-top: 6px;
  }
  .lesson-tab {
    font-size: 11px;
    gap: 6px;
    padding: 18px 3px 13px;
  }
  .lesson-tab svg {
    width: 15px;
    height: 15px;
  }
  .lesson-test-card {
    flex-wrap: wrap;
    padding: 18px;
    gap: 12px;
    margin-top: 20px;
    background: white;
  }
  .lesson-test-card .tile-icon {
    display: none;
  }
  .lesson-test-card h3 {
    font-size: 14px;
  }
  .lesson-test-card p {
    font-size: 12px;
  }
  .lesson-test-card .button {
    width: 100%;
    margin-top: 8px;
  }
  .lesson-meta {
    font-size: 10px;
    line-height: 1.6;
  }
  .course-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .course-cover {
    height: 115px;
  }
  .course-content h2 {
    font-size: 17px;
  }
  .camp-hero .hero h2 {
    font-size: 29px;
  }
  .lesson-list-item {
    padding: 16px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .lesson-list-item h3 {
    font-size: 13px;
  }
  .lesson-list-item > .button {
    font-size: 11px;
    padding: 8px 13px;
    min-height: 35px;
  }
  .lesson-list-item .lesson-number {
    width: 34px;
    height: 34px;
  }
  .lesson-list-item p {
    font-size: 10px;
  }
  .quiz-main {
    padding-top: 8px;
  }
  .quiz-top {
    margin-bottom: 22px;
  }
  .quiz-top h1 {
    font-size: 17px;
  }
  .quiz-top span {
    font-size: 11px;
  }
  .quiz-panel {
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .quiz-progress {
    margin-bottom: 36px;
  }
  .quiz-panel h2 {
    font-size: 17px;
    margin: 12px 0 22px;
  }
  .answer {
    font-size: 14px;
    padding: 13px;
    min-height: 48px;
    background: #ffffff60;
  }
  .quiz-actions {
    margin-top: 35px;
  }
  .quiz-actions .button {
    min-width: 75px;
  }
  .quiz-actions .button:last-child {
    flex: 1;
  }
  .quiz-hint {
    font-size: 10px;
  }
  .question-label {
    font-size: 10px;
  }
  .result {
    padding: 24px 10px;
  }
  .result h2 {
    font-size: 22px;
  }
  .result > p {
    font-size: 12px;
  }
  .result-actions {
    flex-direction: column;
  }
  .achievement-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .achievement {
    padding: 25px;
  }
  .profile-stats {
    gap: 9px;
  }
  .stat {
    padding: 18px 6px;
  }
  .stat strong {
    font-size: 23px;
  }
  .stat span {
    font-size: 9px;
  }
  .profile-layout .panel {
    padding: 20px;
  }
  .profile-banner {
    gap: 16px;
  }
  .profile-banner h2 {
    font-size: 19px;
  }
  .profile-avatar {
    width: 62px;
    height: 62px;
  }
  #toast {
    bottom: 91px;
    font-size: 12px;
  }
  .materials-row {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .materials-row .button {
    margin-left: 0;
    width: 100%;
  }
  .welcome .brand {
    font-size: 38px;
  }
  .welcome .logo-mark {
    width: 70px;
    height: 70px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 700px) {
  .home-page > .hero {
    display: none;
  }
  .home-page .mobile-camp {
    margin-top: 0;
  }
  .subject-card > .arrow {
    transform: none;
  }
  .home-page .page-heading {
    margin-bottom: 22px;
  }
}
.video-player:fullscreen {
  border-radius: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}
.video-player:fullscreen .video-brand {
  padding: 0;
  justify-content: center;
}
/* Authenticated camp prototype */
.logout-link {
  width: 100%;
  border: 0;
  background: none;
  text-align: left;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.3px;
  color: var(--blue);
}
.login-page {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}
.login-art {
  background: linear-gradient(155deg, #e1e5ff, #f3f4ff);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px;
  overflow: hidden;
}
.login-art .hero {
  height: 300px;
  width: 100%;
  padding: 38px;
}
.login-art .hero h2 {
  font-size: 49px;
}
.login-art .mountain-art {
  width: 80%;
  opacity: 0.7;
}
.login-art-copy {
  padding: 28px 6px 0;
}
.login-art-copy h2 {
  font-size: 24px;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
.login-art-copy p {
  font-size: 15px;
  color: #787da5;
  line-height: 1.8;
  max-width: 370px;
  margin: 0;
}
.login-column {
  max-width: 540px;
  width: 100%;
  margin: auto;
  padding: 45px 60px;
}
.login-column > .brand {
  margin-bottom: 65px;
}
.login-form h1 {
  font-size: 32px;
  letter-spacing: -1px;
  margin: 12px 0;
}
.login-form > p:not(.form-error) {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 30px;
}
.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 18px 0 9px;
}
.login-form input,
.filter-bar input,
.filter-bar select {
  border: 1px solid #dde0f4;
  border-radius: 9px;
  background: #fbfdff;
  padding: 13px 14px;
  color: #242a59;
  width: 100%;
  min-height: 46px;
}
.login-form input::placeholder {
  color: #a2a6c1;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 78px;
}
.password-field button {
  position: absolute;
  right: 13px;
  top: 0;
  height: 100%;
  font-size: 11px;
  color: #7c81ab;
  border: 0;
  background: none;
}
.login-form > .button {
  width: 100%;
  margin-top: 8px;
}
.login-form > small {
  display: block;
  text-align: center;
  line-height: 1.7;
  font-size: 11px;
  color: #9a9ebc;
  margin-top: 18px;
}
.login-footer {
  font-size: 11px;
  color: #a3b0c1;
  margin-top: 60px;
}
.form-error {
  font-size: 12px;
  color: #bd4d41;
  line-height: 1.6;
  min-height: 8px;
  margin: 12px 0;
}
.initial-loading {
  min-height: 100vh;
  display: grid;
  place-items: center;
  color: #7078b2;
  font-size: 18px;
  font-weight: 600;
}
.loading-view {
  padding: 100px 20px;
  text-align: center;
  color: #8b90b8;
}
.assigned-subjects {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.enrollment-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 25px;
  margin: 20px 0;
  padding: 14px 18px;
  border: 1px solid #e1e4f9;
  border-radius: 11px;
  background: #ffffffa0;
}
.enrollment-strip > span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #6d829b;
}
.enrollment-strip svg {
  width: 15px;
  height: 15px;
  color: #6a77d4;
}
.enrollment-strip strong {
  color: #454c84;
  font-weight: 600;
}
.enrollment-strip small {
  font-size: 9px;
  color: #9ba0c2;
}
.is-locked {
  background: #f8f8fc;
  box-shadow: none;
}
.is-locked .lesson-number {
  background: #edeef7;
  color: #a2aec0;
}
.is-locked > .badge {
  margin-left: auto;
}
.lock-note,
.passed-note {
  display: inline-block;
  font-size: 11px;
  color: #d88a47;
  margin-top: 7px;
}
.passed-note {
  color: #24a577;
}
.real-video {
  position: relative;
  aspect-ratio: 16/9;
  background: #151b48;
}
.real-video:before,
.real-video:after {
  display: none;
}
.real-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
}
.no-video .video-brand {
  opacity: 1 !important;
}
.no-video .video-brand > small {
  font-size: 9px;
  letter-spacing: 0.9px;
}
.test-quota {
  margin-top: 6px !important;
  font-size: 10px !important;
  color: #9094b6 !important;
}
.lesson-tabs + div > .panel {
  margin-top: 20px;
}
.lesson-outline .lesson-row {
  line-height: 1.6;
}
.question-code {
  padding: 18px 20px;
  background: #f3f4fd;
  border: 1px solid #e3e5f8;
  border-radius: 10px;
  margin: 0 0 24px;
  overflow-x: auto;
  max-width: 100%;
  font-family: Consolas, monospace;
  font-size: 13px;
  line-height: 1.85;
  tab-size: 4;
}
.question-code code {
  font: inherit;
  color: #29316e;
}
.option-label {
  font-size: 11px;
  color: #8c91b9;
  flex-shrink: 0;
}
.option-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
}
.question-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 26px 0 15px;
}
.question-nav button {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #fff;
  border: 1px solid #e0e3f6;
  color: #8b90b3;
  font-size: 10px;
}
.question-nav button.answered {
  background: #e8ebff;
  border-color: #c7ceff;
  color: #394ac6;
}
.question-nav button.current {
  background: #3d4dc7;
  border-color: #3d4dc7;
  color: white;
}
.not-passed {
  background: #fff4e9;
  color: #e8a053;
}
.result-review {
  text-align: left;
  margin-top: 25px;
  font-size: 13px;
}
.result-review summary {
  cursor: pointer;
  color: #3746bc;
  padding: 12px 0;
}
.review-prompt {
  white-space: pre-wrap;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 25px 0 30px;
}
.student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.student-card-heading {
  display: flex;
  align-items: center;
  gap: 11px;
}
.student-card-heading > div {
  flex: 1;
  min-width: 0;
}
.student-card-heading h3 {
  font-size: 14px;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.student-card-heading p {
  font-size: 11px;
  color: #8287b1;
  margin: 0;
}
.student-card-heading > .badge {
  font-size: 9px;
  max-width: 125px;
  text-align: center;
  line-height: 1.6;
}
.active-badge {
  background: #eaf8f1;
  color: #2f9a71;
}
.student-results {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 4px;
}
.student-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid #eeeff9;
}
.student-result-row strong {
  font-size: 11px;
  font-weight: 600;
  display: block;
}
.student-result-row small {
  display: block;
  font-size: 10px;
  color: #98a8ba;
  margin-top: 5px;
}
.student-result-row > span {
  white-space: nowrap;
  font-size: 10px;
}
.filter-bar {
  display: grid;
  grid-template-columns: auto minmax(160px, 1fr) auto minmax(160px, 1fr);
  gap: 13px;
  align-items: center;
  margin: 18px 0 25px;
}
.filter-bar label {
  font-size: 11px;
  color: #6c829c;
}
.filter-bar input,
.filter-bar select {
  font-size: 12px;
}
.admin-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.admin-link {
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-link > div {
  flex: 1;
}
.admin-link h2 {
  font-size: 15px;
  margin: 0 0 7px;
}
.admin-link p {
  font-size: 11px;
  margin: 0;
  color: var(--muted);
}
.admin-link > svg {
  width: 17px;
  color: var(--blue);
}
.group-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}
.group-row h3 {
  font-size: 15px;
  margin: 0 0 6px;
}
.group-row p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.student-actions {
  margin: 0 0 24px;
}
.student-create-form {
  max-width: 780px;
}
.student-create-form h2 {
  margin-top: 0;
}
.student-create-form > p {
  line-height: 1.7;
}
.student-create-form label,
.student-subjects legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 9px;
}
.student-create-form input:not([type="checkbox"]),
.student-create-form select {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: inherit;
}
.student-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}
.student-subjects {
  border: 0;
  padding: 0;
  margin: 26px 0;
}
.student-create-form .subject-choice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 12px 8px 0;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.subject-choice input {
  width: 18px;
  height: 18px;
  accent-color: #3949c3;
}
.student-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.student-create-form .initial-password {
  font-family: monospace;
}
.student-create-form input[readonly] {
  margin-bottom: 20px;
  background: #f5f6ff;
}
.profile-layout .enrollment-strip {
  display: grid;
  gap: 14px;
}
.push-connection {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  margin-bottom: 24px;
  border: 1px solid #d7dbfd;
  border-radius: 14px;
  background: #eef0ff;
  color: #343d80;
  font-size: 13px;
}
.push-connection svg {
  flex-shrink: 0;
  color: var(--blue);
}
.push-connection strong {
  display: block;
  font-size: 14px;
}
.push-connection p {
  margin: 7px 0 0;
  line-height: 1.6;
}
.push-connection.connected {
  background: #eaf8f1;
  color: #2f9a71;
  border-color: #cdebdc;
}
.push-history {
  display: grid;
  gap: 20px;
}
.push-history-card h2 {
  font-size: 18px;
  margin: 10px 0;
}
.push-card-title,
.push-card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: space-between;
}
.push-card-title {
  align-items: flex-start;
}
.push-card-footer {
  justify-content: flex-start;
  flex-wrap: wrap;
  margin-top: 20px;
}
.push-card-footer > span {
  flex: 1;
  min-width: 200px;
}
.push-message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.7;
  font-size: 14px;
}
.push-link-text {
  color: #6f75a3;
  font-size: 12px;
  overflow-wrap: anywhere;
  line-height: 1.6;
}
.push-counts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 16px;
}
.push-compose-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 1fr);
  gap: 28px;
  align-items: start;
}
.push-form {
  min-width: 0;
}
.push-form h2 {
  font-size: 20px;
  margin: 0 0 18px;
}
.push-form > label,
.push-form form > label:not(.push-approve),
.push-form legend {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 9px;
}
.push-form input:not([type="checkbox"]),
.push-form select,
.push-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  font: inherit;
  font-size: 13px;
  color: inherit;
  margin-bottom: 22px;
}
.push-form textarea {
  resize: vertical;
  line-height: 1.7;
}
.push-form select:focus-visible,
.push-form textarea:focus-visible {
  outline: 3px solid #959ee0;
  outline-offset: 3px;
}
.push-group-filters {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.push-group-filters label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
}
.push-group-filters select {
  margin-bottom: 12px;
}
.push-groups {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0 0;
  margin: 28px 0;
  min-width: 0;
}
.push-groups legend {
  padding-top: 24px;
}
.push-selection-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 5px 0 18px;
}
.push-text-button {
  padding: 0;
  border: 0;
  background: none;
  color: #3443b3;
  font-size: 12px;
  line-height: 1.6;
  text-align: left;
}
.push-form > .push-text-button {
  margin: -6px 0 24px;
}
.push-group-list {
  display: grid;
  gap: 10px;
  max-height: 300px;
  overflow: auto;
}
.push-group-choice {
  display: flex;
  gap: 12px;
  padding: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.push-group-choice[hidden] {
  display: none;
}
.push-group-choice input,
.push-approve input {
  width: 18px;
  height: 18px;
  accent-color: var(--blue);
  flex-shrink: 0;
}
.push-group-choice strong {
  display: block;
  font-size: 13px;
}
.push-group-choice small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
  color: var(--muted);
}
.push-audience:not(:empty) {
  background: #f3f4fe;
  border-radius: 10px;
  padding: 16px;
  margin: 18px 0;
  font-size: 13px;
  line-height: 1.6;
}
.push-audience p {
  margin: 7px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.push-preview {
  position: sticky;
  top: 24px;
  text-align: center;
  padding-top: 18px;
}
.push-phone {
  max-width: 300px;
  min-height: 380px;
  margin: 18px auto;
  border: 7px solid #dcdff5;
  border-radius: 34px;
  background: linear-gradient(165deg, #dce0fd, #eff1ff 70%);
  padding: 36px 12px;
  box-shadow: 0 14px 34px #2833890b;
}
.push-phone-clock {
  font-size: 46px;
  font-weight: 300;
  color: #5c65a5;
  letter-spacing: -2px;
  margin: 12px 0 26px;
}
.push-phone-notification {
  padding: 16px;
  border: 1px solid #ffffffb0;
  background: #ffffffda;
  border-radius: 18px;
  text-align: left;
  overflow-wrap: anywhere;
}
.push-app-label {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  margin-bottom: 12px;
  color: #7078b1;
}
.push-app-label svg {
  width: 15px;
  height: 15px;
}
.push-app-label span {
  margin-left: auto;
}
.push-phone-notification > strong {
  font-size: 13px;
  line-height: 1.6;
}
.push-phone-notification > p {
  font-size: 12px;
  line-height: 1.6;
  margin: 7px 0 0;
  white-space: pre-wrap;
}
.push-review-groups {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 25px;
}
.push-approve {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.7;
  cursor: pointer;
  margin: 18px 0;
}
.push-test-section {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 18px;
}
.push-test-section h3 {
  font-size: 15px;
}
.push-back {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 24px;
  font-size: 12px;
  color: #7179b5;
}
.push-consent {
  margin-top: 20px;
}
.push-consent h2 {
  font-size: 18px;
}
@media (max-width: 1100px) {
  .push-compose-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .push-preview {
    position: static;
    max-width: 380px;
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  .push-form {
    padding: 20px;
  }
  .push-connection {
    padding: 16px;
  }
  .push-group-filters {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .push-card-footer > span {
    min-width: 100%;
  }
  .push-card-title h2 {
    font-size: 16px;
  }
  .push-history-card {
    padding: 20px;
  }
  .bottom-nav a span {
    overflow-wrap: anywhere;
    font-size: 8px;
  }
}
@media (max-width: 1150px) {
  .login-art {
    padding: 35px;
  }
  .login-column {
    padding: 40px;
  }
  .student-grid {
    grid-template-columns: 1fr;
  }
  .admin-links {
    gap: 15px;
  }
  .filter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .filter-bar label {
    grid-column: span 2;
  }
  .metric-grid {
    gap: 14px;
  }
  .no-video .video-brand > small {
    font-size: 8px;
  }
}
@media (max-width: 700px) {
  .student-form-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .student-create-form {
    padding: 20px;
  }
  .login-page {
    display: block;
    background: linear-gradient(160deg, #fff, #f3f4ff);
  }
  .login-art {
    display: none;
  }
  .login-column {
    padding: 45px 25px;
    max-width: 440px;
  }
  .login-column > .brand {
    margin-bottom: 65px;
  }
  .login-form h1 {
    font-size: 29px;
  }
  .login-form > p:not(.form-error) {
    font-size: 13px;
  }
  .login-footer {
    margin-top: 50px;
  }
  .assigned-subjects {
    grid-template-columns: 1fr;
  }
  .enrollment-strip {
    padding: 13px 14px;
    display: grid;
    gap: 10px;
    margin: 18px 0;
    font-size: 10px;
  }
  .home-page > .enrollment-strip {
    display: none;
  }
  .enrollment-strip > span {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .real-video {
    aspect-ratio: 16/10;
  }
  .question-code {
    font-size: 11px;
    padding: 13px;
    line-height: 1.85;
  }
  .quiz-panel h2 {
    font-size: 15px;
    line-height: 1.65;
  }
  .answer {
    gap: 10px;
  }
  .option-text {
    font-size: 12px;
  }
  .metric-grid {
    gap: 9px;
  }
  .metric-grid .stat {
    padding: 18px 9px;
  }
  .metric-grid .stat span {
    font-size: 9px;
  }
  .student-card {
    padding: 18px;
  }
  .student-card-heading > .badge {
    max-width: 92px;
    font-size: 8px;
    padding: 4px 7px;
  }
  .student-card-heading h3 {
    font-size: 13px;
  }
  .student-result-row strong {
    font-size: 11px;
  }
  .student-result-row small {
    font-size: 9px;
  }
  .filter-bar {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .filter-bar label {
    grid-column: auto;
    margin-top: 9px;
  }
  .admin-links {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .admin-link {
    padding: 18px;
  }
  .group-row {
    padding: 17px;
  }
  .group-row p {
    font-size: 10px;
  }
  .quiz-top > span {
    font-size: 10px;
  }
  .question-nav button {
    width: 29px;
    height: 29px;
  }
  .no-video .video-brand {
    justify-content: center;
    padding: 0;
  }
  .no-video .video-brand > small {
    display: block;
    font-size: 7px;
  }
  .test-quota {
    font-size: 10px !important;
  }
}
/* Student home */
.student-shell .main:focus {
  outline: none;
}

/* Test catalog, editor and reporting */
.test-admin {
  --test-ink: #171d4e;
  --test-muted: #525882;
  --test-blue: #2a358f;
  --test-line: #dcdff3;
  --test-tint: #edeffd;
  color: var(--test-ink);
}
.test-header,
.test-section-header,
.test-report-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.test-header {
  margin-bottom: 24px;
}
.test-header h1 {
  margin: 4px 0 7px;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: -.035em;
  line-height: 1.12;
  overflow-wrap: anywhere;
}
.test-header p,
.test-section-header p,
.test-report-note p {
  margin: 4px 0 0;
  color: var(--test-muted);
  font-size: 14px;
  line-height: 1.5;
}
.test-header .test-eyebrow,
.test-eyebrow {
  margin: 0;
  color: var(--test-blue);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .11em;
}
.test-admin .button {
  min-height: 42px;
  padding-inline: 14px;
  white-space: nowrap;
}
.test-admin .test-primary {
  border-color: #29358e;
  background: #29358e;
}
.test-admin .test-secondary {
  border-color: #d1d5f5;
  background: #f8fbff;
  color: #28338a;
}
.test-admin .test-delete-button {
  border-color: #a62b22;
  background: #a62b22;
}
.test-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, .48fr) minmax(140px, .48fr);
  gap: 10px;
  margin-bottom: 15px;
}
.test-admin :is(input:not([type="checkbox"], [type="radio"]), select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  padding: 10px 12px;
  border: 1px solid #cdd0ea;
  border-radius: 9px;
  background: #fff;
  color: var(--test-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
}
.test-admin textarea {
  resize: vertical;
  line-height: 1.45;
}
.test-admin :is(input[type="checkbox"], input[type="radio"]) {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: #29358e;
  vertical-align: middle;
}
.test-admin :is(input, textarea, select, summary, button, a):focus-visible {
  outline: 2px solid #2d3a9c;
  outline-offset: 3px;
}
.test-search {
  position: relative;
}
.test-search svg {
  position: absolute;
  left: 13px;
  top: 13px;
  width: 17px;
  height: 17px;
  color: var(--test-blue);
  pointer-events: none;
}
.test-search input[type="search"] {
  padding-left: 37px;
}
.test-table-card,
.test-panel,
.test-question {
  border: 1px solid var(--test-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 22px #222b7408;
}
.test-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
}
.test-table th {
  padding: 14px 12px;
  background: #eaecfb;
  color: #383f78;
  text-align: left;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.test-table th:first-child { border-top-left-radius: 14px; }
.test-table th:last-child { border-top-right-radius: 14px; }
.test-table td {
  padding: 16px 12px;
  border-top: 1px solid var(--test-line);
  overflow-wrap: anywhere;
}
.test-table :is(th, td):first-child { padding-left: 18px; }
.test-table :is(th, td):last-child { padding-right: 18px; }
.test-catalog-table th:nth-child(1) { width: 30%; }
.test-catalog-table th:nth-child(2) { width: 25%; }
.test-table td small,
.test-muted {
  color: var(--test-muted);
  font-size: 12px;
}
.test-table td small {
  display: block;
  margin-top: 3px;
}
.test-list-name {
  display: flex;
  align-items: center;
  gap: 11px;
}
.test-list-name a {
  font-weight: 720;
}
.test-list-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: #eaecff;
  color: var(--test-blue);
}
.test-list-icon svg { width: 19px; height: 19px; }
.test-usage {
  display: grid;
  gap: 4px;
}
.test-usage > span,
.test-usage > a {
  min-width: 0;
  font-size: 12px;
}
.test-usage > span { color: var(--test-muted); }
.test-usage > a { font-weight: 650; }
.test-usage svg,
.test-count-link svg,
.test-back svg {
  width: 15px;
  height: 15px;
}
.test-list-name a:hover,
.test-usage a:hover,
.test-count-link:hover,
.test-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.test-count-link,
.test-back {
  color: #28348b;
  font-weight: 700;
}
.test-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  color: #444a74;
  background: #edeef8;
  font-size: 11px;
  font-weight: 700;
}
.test-status::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: currentColor;
}
.test-status--published { background: #e8f5ed; color: #216343; }
.test-status--draft { background: #fff2dd; color: #80541e; }
.test-menu { position: relative; width: max-content; margin-left: auto; }
.test-menu > summary,
.test-icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--test-line);
  border-radius: 9px;
  background: #f8fbff;
  color: var(--test-blue);
  font-weight: 700;
  font-size: 18px;
  cursor: pointer;
}
.test-menu > summary,
.test-question > summary {
  list-style: none;
}
.test-menu > summary::-webkit-details-marker,
.test-question > summary::-webkit-details-marker { display: none; }
.test-menu[open] > summary,
.test-icon-button:hover { background: #e4e7ff; }
.test-menu-items {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  right: 0;
  display: grid;
  gap: 2px;
  width: 183px;
  padding: 5px;
  border: 1px solid var(--test-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 30px #1b225c29;
}
.test-menu-items > :is(a, button) {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  border-radius: 7px;
  background: none;
  text-align: left;
  font-size: 13px;
}
.test-menu-items > :is(a, button):hover { background: #edeffd; }
.test-menu-items svg,
.test-icon-button svg,
.test-text-button svg { width: 17px; height: 17px; }
.test-admin .test-danger { color: #a42d26; }
.test-empty-cell { padding: 23px; color: var(--test-muted); text-align: center; }
.test-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  margin-bottom: 13px;
  font-size: 13px;
}
.test-heading-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 13px;
  margin-top: 10px;
  color: var(--test-muted);
  font-size: 13px;
}
.test-heading-meta .test-usage { display: flex; flex-wrap: wrap; gap: 5px 8px; }
.test-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 19px;
  border-bottom: 1px solid var(--test-line);
}
.test-tabs a {
  padding: 10px 3px;
  border-bottom: 2px solid transparent;
  color: var(--test-muted);
  font-size: 14px;
  font-weight: 650;
}
.test-tabs a[aria-current="page"] {
  border-bottom-color: #2c3896;
  color: #283388;
}
.test-editor-fields {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.test-panel { padding: 20px; }
.test-admin :is(.test-panel, .test-section-header, .test-dialog) h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.test-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(120px, .62fr));
  gap: 12px;
  margin-top: 15px;
}
.test-admin :is(.test-config-grid, .test-question-controls, .test-dialog, .test-question-body) label:not(.test-option-key) {
  display: grid;
  align-content: start;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
}
.test-config-grid label > span {
  min-height: 24px;
  color: var(--test-muted);
  font-size: 12px;
  font-weight: 550;
}
.test-config-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 15px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--test-line);
  color: var(--test-muted);
  font-size: 13px;
}
.test-config-note label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--test-ink);
  font-weight: 650;
}
.test-questions-section { margin-top: 23px; }
.test-section-header { margin-bottom: 11px; }
.test-admin #test-outcome-filter { width: auto; max-width: 100%; }
.test-section-header h2 span {
  display: inline-flex;
  margin-left: 4px;
  padding: 3px 7px;
  border-radius: 7px;
  background: #e5e8fd;
  color: #29348c;
  font-size: 12px;
  vertical-align: middle;
}
.test-actions,
.test-question-actions,
.test-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
#test-questions { display: grid; gap: 9px; }
.test-question { min-width: 0; }
.test-question > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px 15px;
  min-height: 54px;
  border-radius: 14px;
  font-size: 14px;
  cursor: pointer;
}
.test-question[open] > summary {
  border-bottom: 1px solid var(--test-line);
  border-radius: 14px 14px 0 0;
  background: #f7f8ff;
}
.test-question > summary > svg { width: 16px; height: 16px; color: var(--test-blue); }
.test-question[open] > summary > svg { transform: rotate(90deg); }
.test-q-index {
  display: grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  border-radius: 8px;
  background: #e8eafd;
  color: #29348c;
  font-size: 13px;
  font-weight: 750;
}
.test-q-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 680; }
.test-q-points { color: var(--test-muted); font-size: 12px; }
.test-question-body { display: grid; gap: 11px; padding: 16px; }
.test-question-controls {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(60px, 85px) 1fr;
  gap: 10px;
  align-items: end;
}
.test-question-actions { justify-content: flex-end; }
.test-option-heading { margin: 3px 0 -3px; font-size: 13px; font-weight: 700; }
.test-option-heading span { display: block; margin-top: 3px; color: var(--test-muted); font-size: 12px; font-weight: 500; }
.test-options { display: grid; gap: 7px; }
.test-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--test-line);
  border-radius: 10px;
  padding: 5px 7px;
  background: #f8fbff;
}
.test-option:has(.test-correct:checked) { border-color: #98ccb3; background: #eff9f2; }
.test-option-key { display: grid; place-items: center; width: 34px; height: 39px; cursor: pointer; }
.test-admin .test-option-text {
  min-height: 38px;
  padding: 7px 9px;
  border-color: transparent;
  background: transparent;
}
.test-option .test-icon-button { width: 34px; height: 34px; background: #fff; }
.test-text-button {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  gap: 5px;
  min-height: 37px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: #edeffd;
  color: #28338a;
  font-size: 13px;
  font-weight: 700;
}
.test-save-bar {
  position: sticky;
  z-index: 3;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 10px 13px;
  border: 1px solid var(--test-line);
  border-radius: 13px;
  background: #fbfdff;
  box-shadow: 0 6px 22px #222b7420;
  color: var(--test-muted);
  font-size: 13px;
}
.test-save-bar .form-error,
.test-dialog .form-error { min-height: 0; margin: 0 0 3px; }
.test-save-bar .form-error:empty,
.test-dialog .form-error:empty { display: none; }
.test-dialog { width: min(580px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.test-dialog > form { display: grid; gap: 12px; }
.test-dialog p { margin: 0; color: var(--test-muted); font-size: 14px; line-height: 1.5; }
.test-dialog-actions { justify-content: flex-end; margin-top: 5px; }
.test-preview-options { display: grid; gap: 7px; padding: 0; list-style-position: inside; }
.test-preview-options li { padding: 10px; border: 1px solid var(--test-line); border-radius: 9px; white-space: pre-wrap; overflow-wrap: anywhere; }
.test-attempt-prompt { white-space: pre-wrap; overflow-wrap: anywhere; }
.test-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.test-metric strong { display: block; margin: 7px 0 2px; font-size: 31px; font-variant-numeric: tabular-nums; }
.test-admin .test-metric h2 { color: var(--test-muted); font-size: 13px; font-weight: 650; }
.test-report-note { margin-top: 14px; }
.test-attempt-questions { display: grid; gap: 9px; }
.test-attempt-questions p { overflow-wrap: anywhere; }
.test-pagination { display: flex; align-items: center; justify-content: end; gap: 13px; margin-top: 15px; font-size: 13px; }
.test-pagination a { padding: 8px; border: 1px solid var(--test-line); border-radius: 8px; background: white; color: var(--test-blue); }
.test-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.quiz-choice-hint { text-align: left; }
.answer-multiple .radio,
.answer-multiple.selected .radio::after { border-radius: 4px; }

@media (max-width: 980px) {
  .test-table-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .test-table, .test-table tbody { display: grid; gap: 9px; }
  .test-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .test-table tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    align-items: center;
    gap: 9px;
    padding: 13px;
    border: 1px solid var(--test-line);
    border-radius: 13px;
    background: #fff;
  }
  .test-table tr > td:nth-child(n) { padding: 0; border: 0; }
  .test-table td:nth-child(1) { grid-column: 1 / 4; }
  .test-table td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .test-table td:nth-child(6) { grid-column: 4; grid-row: 1; }
  .test-table tr > td[colspan] { grid-column: 1 / -1; padding: 6px; }
  .test-results-table td:nth-child(5) { grid-column: 3 / -1; }
  .test-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .test-admin { padding-inline: 15px; }
  .test-header, .test-report-note, .test-questions-section .test-section-header { align-items: start; flex-direction: column; }
  .test-header { margin-bottom: 16px; }
  .test-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .test-search { grid-column: 1 / -1; }
  .test-config-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-config-grid > label:first-child { grid-column: 1 / -1; }
  .test-admin :is(input:not([type="checkbox"], [type="radio"]), select, textarea) { font-size: 16px; }
  .test-panel, .test-question-body { padding: 13px; }
  .test-question-controls { grid-template-columns: minmax(0, 1fr) 75px; }
  .test-question-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .test-question > summary { padding-inline: 10px; }
  .test-save-bar { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .test-save-bar:has(button[type="submit"]):not(.test-save-active) { position: static; }
  .test-results-table td:nth-child(5) { font-size: 12px; }
}


/* Student courses */
.course-entry p {
  margin: 8px 0 0;
  color: #52577d;
  font-size: 13px;
  line-height: 1.45;
}
.learning-kicker {
  margin: 0 0 7px;
  color: #283388;
  font-size: 12px;
  font-weight: 650;
}
.course-entry h3,
.course-program h2 {
  margin: 0;
  font-size: 17px;
  overflow-wrap: anywhere;
}
.course-entry {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px;
  transition: background 0.15s, border-color 0.15s;
}
.course-entry:hover {
  background: #f8fbff;
  border-color: #b9c0f6;
}
.course-entry > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.course-entry p {
  margin-top: 3px;
}
.course-entry .progress-track {
  margin-top: 9px;
}
.course-entry-arrow {
  color: #2a3691;
  flex-shrink: 0;
}
.course-program {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.course-program .badge {
  margin-top: 8px;
}
.program-picker {
  display: grid;
  gap: 6px;
  min-width: 0;
  width: min(100%, 310px);
  color: #52577d;
  font-size: 13px;
}
.program-picker select {
  min-height: 42px;
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #c9cdeb;
  border-radius: 9px;
  background: #fff;
  color: #14183a;
  font: inherit;
}
.course-status {
  padding: 12px 16px;
  border-radius: 10px;
  background: #eaecff;
  color: #363e7a;
}
@media (min-width: 701px) {
  .student-shell .sidebar {
    width: 192px;
    padding: 23px 12px 18px;
    overflow-y: auto;
  }
  .student-shell .app-body {
    margin-left: 192px;
  }
  .student-shell .sidebar .brand {
    margin-bottom: 27px;
    padding-inline: 9px;
    font-size: 22px;
  }
  .student-shell .sidebar .logo-mark {
    width: 28px;
    height: 28px;
  }
  .student-shell .nav {
    gap: 4px;
  }
  .student-shell .nav-link {
    gap: 10px;
    min-height: 41px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 13px;
  }
  .student-shell .nav-link svg {
    width: 18px;
    height: 18px;
  }
  .student-shell .nav-link.active {
    background: #e3e6ff;
    color: #242f7e;
    box-shadow: none;
  }
  .student-shell .topbar {
    height: 64px;
  }
}
@media (max-width: 700px) {
  .course-program {
    align-items: stretch;
    flex-direction: column;
  }
  .program-picker {
    width: 100%;
  }
}

/* Curator review */
.review-lesson-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 24px; }
.review-lesson-card { display: block; color: inherit; text-decoration: none; padding: 18px; }
.review-lesson-card h3 { margin: 4px 0 6px; font-size: 16px; }
.review-lesson-card:hover, .review-feed-item:hover { border-color: var(--blue); }
.review-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--line); margin: 12px 0; }
.review-bar-passed { background: #24a577; }
.review-bar-failed { background: #e05d5d; }
.review-bar-awaiting, .review-bar-in_progress { background: #f0b35a; }
.review-bar-not_started { background: #cfd2e6; }
.review-counts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; }
.review-counts div { text-align: center; }
.review-counts dt { font-size: 11px; color: var(--muted); }
.review-counts dd { margin: 2px 0 0; font-weight: 700; font-size: 16px; }
.review-summary { padding: 18px; margin-bottom: 18px; }
.review-table-wrap { overflow-x: auto; }
.review-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 14px; overflow: hidden; font-size: 14px; }
.review-table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.review-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.review-table td small { display: block; color: var(--muted); font-size: 12px; }
.review-table .button { padding: 7px 12px; font-size: 13px; }
.review-feed { display: grid; gap: 10px; }
.review-feed-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; color: inherit; text-decoration: none; }
.review-score { min-width: 64px; text-align: center; font-weight: 800; font-size: 20px; padding: 8px; border-radius: 12px; }
.review-score small { font-size: 12px; font-weight: 600; color: var(--muted); }
.review-score.is-passed { background: #e7f7f0; color: #1b8a62; }
.review-score.is-failed { background: #fdecec; color: #c44545; }
.review-feed-main { flex: 1; min-width: 0; }
.review-feed-main strong, .review-feed-main small { display: block; }
.review-feed-main small, .review-feed-meta small { color: var(--muted); font-size: 12px; }
.review-feed-meta { text-align: right; }
.review-feed-meta small { display: block; }
.review-pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin-top: 18px; }
.review-answers { display: grid; gap: 12px; }
.review-answer { padding: 16px 18px; border-left: 4px solid #24a577; }
.review-answer.is-wrong { border-left-color: #e05d5d; }
.review-answer h2 { font-size: 15px; margin: 0 0 8px; }
.review-prompt { white-space: pre-wrap; }
@media (max-width: 700px) {
  .review-feed-item { flex-wrap: wrap; }
  .review-counts dd { font-size: 14px; }
}

/* Profile hub: Профиль → Баптаулар → Хабарламалар / Жеке мәліметтер */
.profile-layout > .page-heading { margin-bottom: 18px; }
.profile-card {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.profile-card .profile-avatar { width: 56px; height: 56px; font-size: 22px; flex-shrink: 0; }
.profile-card-text { flex: 1; min-width: 0; }
.profile-card-text strong { display: block; font-size: 17px; overflow-wrap: anywhere; }
.profile-card-text small { display: block; color: var(--muted); font-size: 12px; }
.profile-card-link { display: block; margin-top: 4px; color: var(--blue); font-size: 12px; font-weight: 600; }
.profile-layout .profile-stats { margin: 0 0 16px; gap: 10px; }
.profile-layout .profile-stats .stat { padding: 16px 8px; }
.profile-stats .stat span { font-size: 11px; }
.profile-layout .profile-menu { padding: 4px 0; margin-bottom: 16px; }
.profile-row {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 10px 18px;
  background: none;
  border: 0;
  text-align: left;
}
.profile-row + .profile-row { border-top: 1px solid var(--line); }
.profile-row:hover { background: #f8f9ff; }
.profile-row-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eef0ff;
  flex-shrink: 0;
}
.profile-row-icon svg { width: 19px; height: 19px; color: var(--blue); }
.profile-row-text { flex: 1; min-width: 0; }
.profile-row-text strong { display: block; font-size: 14px; font-weight: 600; }
.profile-row-text small { color: var(--muted); font-size: 12px; }
.profile-row-chevron { width: 16px; height: 16px; }
.profile-logout, .profile-logout svg { color: #d0384b; }
.profile-logout .profile-row-icon { background: #fdecee; }
.profile-layout .profile-fields { margin: 0 0 12px; padding: 4px 20px; }
.profile-fields div { padding: 12px 0; }
.profile-fields div + div { border-top: 1px solid var(--line); }
.profile-fields dt { font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.profile-fields dd { margin: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.profile-note { margin: 0 4px 16px; line-height: 1.6; }
.profile-layout .push-consent { margin: 0 0 12px; }
.push-consent .form-error:empty { display: none; }
.setting-switch {
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
}
.setting-switch > span { flex: 1; }
.setting-switch strong { display: block; font-size: 14px; }
.setting-switch small { color: var(--muted); font-size: 12px; }
.setting-switch input {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 50px;
  height: 30px;
  margin: 0;
  border-radius: 15px;
  background: #d6d9e8;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.setting-switch input::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px #0003;
  transition: transform 0.2s;
}
.setting-switch input:checked { background: var(--blue); }
.setting-switch input:checked::after { transform: translateX(20px); }
@media (prefers-reduced-motion: reduce) {
  .setting-switch input, .setting-switch input::after { transition: none; }
}
@media (max-width: 700px) {
  .profile-row { padding: 10px 14px; }
}

/* Lesson notes rendered as page images, question drawings, hidden-lesson marks */
.lesson-notes { display: grid; gap: 14px; }
.lesson-notes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lesson-notes-head h3 { margin: 0; }
.lesson-notes-page { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.question-image { display: block; max-width: min(100%, 460px); max-height: 340px; margin: 14px 0 4px; border: 1px solid var(--line); border-radius: 12px; background: #fff; object-fit: contain; }
.lesson-hidden-note { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 14px; border-radius: 12px; background: #fff4dc; color: #6f4a08; font-size: 14px; }
.lesson-hidden-note svg { width: 18px; height: 18px; }
.test-hidden-pill { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 2px 8px; border-radius: 99px; background: #fff4dc; color: #6f4a08; font-size: 12px; font-weight: 600; }
.test-hidden-pill svg { width: 13px; height: 13px; }
.test-question-images { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 12px; }
.test-question-images img { max-width: min(100%, 320px); max-height: 220px; border: 1px solid var(--line); border-radius: 10px; background: #fff; object-fit: contain; }
.push-all-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 4px; padding: 12px 14px; border-radius: 12px; background: #eef0fd; color: #2a358f; font-size: 14px; line-height: 1.45; }
.push-all-note svg { flex-shrink: 0; width: 18px; height: 18px; }
