/* TUMiQ - Think Beyond. Learn Without Limits.
   Bảng màu theo logo Trường Tiểu học Nhân Chính: xanh navy #1A3783 làm màu chính,
   viền vàng #D09513 và lá xanh #007A35 làm màu nhấn phụ, nền trắng ngà cho dễ đọc.
   Nút to, chữ to, dùng tốt trên máy tính phòng học và điện thoại. */

:root {
  --blue: #1a3783;
  --violet: #2b4fa8;
  --navy: #1a3783;
  --navy-soft: #41589a;
  --yellow: #d09513;
  --yellow-soft: #faf0d9;
  --green: #007a35;
  --green-soft: #e4f5eb;
  --red: #c02626;
  --red-soft: #fdeaea;
  --bg: #fbfcfe;
  --surface: #ffffff;
  --line: #dbe2f1;
  --gradient: linear-gradient(135deg, #1a3783 0%, #2b4fa8 100%);
  /* Pastel pha từ đúng 4 màu gốc: navy, vàng, lá, nền */
  --tint-navy: #edf1fa;
  --tint-yellow: #fcf4e2;
  --tint-green: #e9f5ee;
  --radius: 24px;
  --radius-sm: 14px;
  --radius-lg: 28px;
  --shadow: 0 14px 32px rgba(26, 55, 131, 0.10);
  --shadow-sm: 0 6px 16px rgba(26, 55, 131, 0.08);
  --shadow-clay: 0 16px 32px rgba(26, 55, 131, 0.10), 0 2px 0 rgba(26, 55, 131, 0.04),
    inset 0 2px 0 rgba(255, 255, 255, 0.9);
  --font: "Be Vietnam Pro", "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Nunito", "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--blue);
}

h1, h2, h3, h4 {
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
h2 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}
h3 { font-size: 1.16rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 0.75rem; }

:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
  border-radius: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--navy);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  border-radius: 0 0 12px 0;
  box-shadow: inset 0 -4px 0 var(--yellow);
}

.skip-link:focus {
  left: 0;
}

/* ---------- Bố cục chung ---------- */

main {
  flex: 1 0 auto;
}

.shell {
  width: min(1180px, 100% - 2rem);
  margin-inline: auto;
}

.section {
  padding: 2.5rem 0;
}

.section--alt {
  background: linear-gradient(180deg, #e9eef8 0%, #fbfcfe 100%);
}

.section__title {
  margin-bottom: 0.5rem;
}

.section__lead {
  color: var(--navy-soft);
  max-width: 70ch;
  margin-bottom: 1.5rem;
}

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet);
}

.muted {
  color: var(--navy-soft);
}

.small {
  font-size: 0.9rem;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-clay);
  margin-bottom: 1.25rem;
}

.panel > h2,
.panel > h3 {
  margin-top: 0;
}

.check-list,
.plain-list,
.suggest-list,
.ordered {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.check-list li,
.plain-list li,
.suggest-list li {
  margin-bottom: 0.5rem;
}

.check-list {
  list-style: none;
  padding-left: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.85rem;
}

.check-list li::before {
  content: "\2714";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.35rem;
  height: 1.35rem;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 900;
  color: #ffffff;
  background: var(--green);
  border-radius: 50%;
}

.check-list--two {
  columns: 2;
  column-gap: 2rem;
}

.check-list--two li {
  break-inside: avoid;
}

.plain-list {
  list-style: none;
  padding-left: 0;
}

.plain-list li {
  padding: 0.55rem 0;
  margin-bottom: 0;
  line-height: 1.5;
  border-bottom: 1px dashed #dfe6f4;
}

.plain-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.plain-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 800;
}

.plain-list small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  color: var(--navy-soft);
}

.suggest-list {
  list-style: none;
  padding-left: 0;
}

.suggest-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0;
  border-bottom: 1px dashed var(--line);
}

.suggest-list--compact li {
  padding: 0.35rem 0;
}

.suggest-list .inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  margin-top: 0.25rem;
}

.suggest-list .inline-form input[type="text"] {
  flex: 1 1 11rem;
  min-width: 0;
  min-height: 48px;
}

.suggest-list .inline-form .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.ordered li {
  margin-bottom: 0.4rem;
}

.safety {
  background: var(--yellow-soft);
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
}

.test-tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffffff;
  background: var(--red);
  border-radius: 999px;
  vertical-align: middle;
}

.notice {
  background: var(--yellow-soft);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  color: var(--navy);
}

/* ---------- Nút bấm ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  min-height: 48px;
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  color: #ffffff;
  background: var(--gradient);
}

.btn--ghost {
  color: var(--navy);
  background: #ffffff;
  border-color: var(--line);
}

.btn--ghost:hover {
  border-color: var(--violet);
  color: var(--violet);
}

.btn--sm {
  padding: 0.6rem 1.15rem;
  min-height: 48px;
  font-size: 0.95rem;
}

.btn--lg {
  padding: 1rem 2rem;
  min-height: 58px;
  font-size: 1.15rem;
}

.inline-form {
  display: inline-flex;
  margin: 0;
}

/* ---------- Biểu mẫu ---------- */

.form {
  display: grid;
  gap: 1rem;
  max-width: 100%;
}

.form--inline {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
}

.form--inline .btn {
  justify-self: start;
  width: auto;
}

.panel .form > .btn {
  justify-self: start;
  width: auto;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--navy);
}

.form--inline label {
  align-content: end;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="month"],
input[type="number"],
select,
textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--violet);
  outline: none;
  box-shadow: 0 0 0 4px rgba(43, 79, 168, 0.14);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.25rem 0;
  font-weight: 600;
  cursor: pointer;
}

.checkbox input {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  accent-color: var(--violet);
}

/* ---------- Thanh trên và chân trang ---------- */

.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 60;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.65rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 48px;
  text-decoration: none;
}

.brand__logos {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand__logo {
  height: 46px;
  width: auto;
  object-fit: contain;
}

.logo-slot {
  display: inline-grid;
  place-items: center;
  height: 46px;
  min-width: 62px;
  padding: 0 0.5rem;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  color: var(--navy-soft);
  background: #f3f6fc;
  border: 2px dashed var(--line);
  border-radius: 10px;
}

.logo-slot--tumiq {
  border-color: #c2cee6;
  color: var(--violet);
}

.brand__text {
  display: grid;
  line-height: 1.15;
}

.brand__text strong {
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.brand__text small {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy-soft);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--navy);
  text-decoration: none;
  padding: 0.35rem 0.15rem;
  border-bottom: 3px solid transparent;
}

.site-nav a:hover {
  color: var(--violet);
  border-bottom-color: var(--yellow);
}

.site-nav a[aria-current="page"] {
  color: var(--violet);
  border-bottom-color: var(--yellow);
}

.site-nav__user {
  color: var(--navy-soft);
  font-size: 0.88rem;
  font-weight: 600;
}

.flash-stack {
  padding-top: 1rem;
}

.flash {
  margin: 0 0 0.6rem;
  padding: 0.85rem 1.1rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  border-left: 6px solid var(--blue);
  background: #eaeff9;
  color: var(--navy);
}

.flash--success {
  background: var(--green-soft);
  border-left-color: var(--green);
}

.flash--error {
  background: var(--red-soft);
  border-left-color: var(--red);
}

.flash--info {
  background: var(--yellow-soft);
  border-left-color: var(--yellow);
}

.site-footer {
  margin-top: 3rem;
  padding: 2.25rem 0 2rem;
  background: #1a3783;
  color: #ffffff;
  border-top: 6px solid #d09513;
  font-size: 0.95rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.25fr 1.15fr;
  gap: 1.5rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.site-footer__product {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #ffffff;
}

.site-footer__product::after {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-top: 0.5rem;
  background: #007a35;
  border-radius: 2px;
}

.site-footer__tagline {
  margin: 0.35rem 0 0;
  color: #dbe4f6;
}

.site-footer__label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2d99c;
}

.site-footer__author {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1.2;
  color: #ffffff;
}

.site-footer__author-full,
.site-footer__unit,
.site-footer__unit-line {
  margin: 0.2rem 0 0;
  color: #ffffff;
}

.site-footer__contact {
  display: flex;
  align-items: center;
  width: fit-content;
  min-height: 44px;
  padding-right: 0.5rem;
  font-weight: 700;
  color: #f2d99c;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.site-footer__contact:hover,
.site-footer__contact:focus-visible {
  color: #ffffff;
}

.site-footer__base {
  display: grid;
  gap: 0.35rem;
  padding-top: 1.1rem;
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
}

.site-footer__safety {
  margin: 0;
  font-size: 0.86rem;
  color: #c9d6ee;
}

@media (max-width: 900px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 1.75rem 0 1.5rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .site-footer__product {
    font-size: 1.45rem;
  }

  .site-footer__author {
    font-size: 1.3rem;
  }
}

/* ---------- Trang chủ ---------- */

.hero {
  background:
    radial-gradient(circle at 88% 12%, rgba(208, 149, 19, 0.35) 0, transparent 42%),
    linear-gradient(150deg, #eaeff9 0%, #eef1f9 60%, #fbf4e3 100%);
  padding: 3rem 0 3.5rem;
  border-bottom: 1px solid var(--line);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero__lead {
  font-size: 1.12rem;
  color: var(--navy-soft);
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.hero__note {
  font-size: 0.88rem;
  color: var(--navy-soft);
  margin: 0;
}

.hero__card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-clay);
  border-top: 6px solid var(--yellow);
}

.hero__card-label {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
}

.hero__card h2 {
  margin: 0.35rem 0 0.5rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.step-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem 1.35rem;
  box-shadow: var(--shadow-clay);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.step-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.step-card__number {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
  font-weight: 900;
  color: #ffffff;
  background: var(--gradient);
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(43, 79, 168, 0.28);
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
}

.grade-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  border-top: 6px solid var(--blue);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.grade-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.grade-card--skeleton {
  border-top-color: #ccd7e8;
  background: #fcfdfe;
}

.grade-card h3 {
  margin-bottom: 0.35rem;
}

.grade-card__classes {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--violet);
}

.badge-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.badge-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--yellow);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow-clay);
}

.badge-card__mark {
  display: inline-grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  color: var(--navy);
  background: var(--tint-yellow);
  border: 2px solid var(--yellow);
  border-radius: 50%;
}

.badge-card p {
  margin: 0;
  color: var(--navy-soft);
  font-size: 0.94rem;
}

/* ---------- Trang chủ: bầu trời, bản đồ hành trình, thẻ lớp ---------- */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__cloud {
  position: absolute;
  width: 120px;
  height: 42px;
  background: #ffffff;
  border-radius: 999px;
  opacity: 0.75;
  box-shadow: 0 8px 18px rgba(26, 55, 131, 0.06);
}

.hero__cloud::before,
.hero__cloud::after {
  content: "";
  position: absolute;
  background: inherit;
  border-radius: 50%;
}

.hero__cloud::before {
  width: 54px;
  height: 54px;
  left: 18px;
  top: -22px;
}

.hero__cloud::after {
  width: 38px;
  height: 38px;
  right: 20px;
  top: -14px;
}

.hero__cloud--a {
  top: 2.2rem;
  right: 6%;
}

.hero__cloud--b {
  top: 6.5rem;
  left: 44%;
  transform: scale(0.72);
  opacity: 0.6;
}

.hero__star {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.55;
}

.hero__star--a { top: 3.5rem; left: 52%; }
.hero__star--b { top: 8.5rem; right: 12%; width: 7px; height: 7px; }
.hero__star--c { bottom: 2.5rem; left: 30%; width: 6px; height: 6px; background: var(--green); }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.hero__stats li {
  display: grid;
  gap: 0.1rem;
  min-width: 96px;
  padding: 0.6rem 0.95rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.hero__stats strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--navy);
}

.hero__stats span {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-soft);
}

.journey {
  position: relative;
  padding-top: 2.6rem;
}

.journey__deco {
  position: absolute;
  inset: 0 0 auto;
  height: 2.4rem;
  pointer-events: none;
}

.journey__deco::before {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  top: 52%;
  border-top: 3px dashed #cfd9ec;
}

.journey__cloud {
  position: absolute;
  left: 1%;
  top: 0;
  width: 58px;
  height: 22px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.journey__cloud::before {
  content: "";
  position: absolute;
  left: 10px;
  top: -10px;
  width: 26px;
  height: 26px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.journey__tree {
  position: absolute;
  left: 34%;
  top: 4px;
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-bottom: 22px solid var(--green);
  opacity: 0.55;
}

.journey__tree--small {
  left: 68%;
  top: 9px;
  border-left-width: 10px;
  border-right-width: 10px;
  border-bottom-width: 16px;
  opacity: 0.35;
}

.journey__star {
  position: absolute;
  right: 3%;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border-radius: 50%;
  opacity: 0.7;
}

.steps {
  position: relative;
  z-index: 1;
}

.grade-card--g1 { border-top-color: var(--green); background: var(--tint-green); }
.grade-card--g2 { border-top-color: var(--yellow); background: var(--tint-yellow); }
.grade-card--g3 { border-top-color: var(--navy); background: var(--tint-navy); }
.grade-card--g4 { border-top-color: var(--violet); background: #eef2fb; }
.grade-card--g5 { border-top-color: var(--green); background: var(--tint-green); }

.grade-card--skeleton {
  background: #fcfdfe;
}

.grade-card__count {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--navy);
}

/* ---------- Đăng nhập ---------- */

.login-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: start;
}

.login-intro {
  padding: 1.6rem 1.5rem;
  background: linear-gradient(160deg, var(--tint-navy) 0%, #ffffff 72%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
}

.login-panels {
  display: grid;
  gap: 1.25rem;
}

/* ---------- Trang lỗi ---------- */

.error-panel {
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(160deg, var(--tint-navy) 0%, #ffffff 70%);
}

.error-panel__code {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 6rem);
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
}

/* ---------- Nhãn trạng thái ---------- */

.pill {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.4;
  border-radius: 999px;
  background: #eef2f8;
  color: var(--navy-soft);
  white-space: nowrap;
}

.pill--good {
  background: var(--green-soft);
  color: var(--green);
}

.pill--warn {
  background: var(--yellow-soft);
  color: #7a5606;
}

.pill--muted {
  background: #eef2f8;
  color: var(--navy-soft);
}

.pill--score {
  background: #e9eef8;
  color: var(--violet);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.badge-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.45rem 0.85rem;
  background: var(--yellow-soft);
  border: 2px solid var(--yellow);
  border-radius: 999px;
}

.badge-chip__name {
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--navy);
}

.badge-chip__note {
  font-size: 0.76rem;
  color: var(--navy-soft);
}

.word-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.word-chip {
  padding: 0.3rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--violet);
  background: #edf1f9;
  border-radius: 999px;
}

/* ---------- Hình minh hoạ số (macro visual) ---------- */

.dots-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.dots {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  max-width: 260px;
}

.dot {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.12);
}

.dots-alt .dot {
  background: var(--violet);
}

.dots-empty {
  width: 3rem;
  height: 1.5rem;
  border: 2px dashed var(--line);
  border-radius: 999px;
  background: transparent;
}

.dots-count {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
}

.dots-wrap.xl .dot {
  width: 2.2rem;
  height: 2.2rem;
}

.dots-wrap.xl .dots {
  max-width: 100%;
  gap: 0.5rem;
}

.dots-wrap.xl .dots-count {
  font-size: 2.2rem;
}

.compare {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.compare-sign {
  font-size: 1.8rem;
  color: var(--violet);
}

.count-visual {
  display: inline-flex;
  gap: 0.3rem;
}

.count-cell {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--navy);
  background: var(--yellow-soft);
  border: 2px solid var(--yellow);
  border-radius: 8px;
}

.count-target {
  display: flex;
  justify-content: center;
  padding: 1.25rem;
  margin-bottom: 1rem;
  background: #f2f5fb;
  border-radius: var(--radius);
}

/* Khung dự phòng: mã visual chưa vẽ vẫn có nhãn + chữ, không để trống */
.vsl-fallback {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-width: 22rem;
  padding: 0.7rem 0.9rem;
  text-align: left;
  background: #f8fafd;
  border: 2px dashed var(--line);
  border-radius: var(--radius);
}

.vsl-fallback__tag {
  align-self: flex-start;
  padding: 0.1rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #fff;
  background: var(--violet);
  border-radius: 999px;
}

.vsl-fallback__body {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
}

.vsl-fallback__code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.72rem;
  color: #66758f;
  word-break: break-all;
}

/* Hình minh hoạ vẽ bằng CSS/SVG */
.vsl {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  max-width: 26rem;
}

.vsl-bars {
  gap: 0.45rem;
}

.vsl-bars__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  min-width: 12rem;
}

.vsl-bars__bar {
  display: block;
  height: 1.15rem;
  min-width: 0.4rem;
  background: linear-gradient(90deg, var(--blue), #7f9bd4);
  border-radius: 6px;
}

.vsl-bars__bar--alt {
  background: linear-gradient(90deg, var(--violet), #a9badd);
}

.vsl-bars__val {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy);
}

.vsl-cols__plot {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 7.5rem;
  padding: 0.4rem 0.6rem 0;
  border-bottom: 2px solid var(--line);
}

.vsl-cols__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 0.2rem;
}

.vsl-cols__bar {
  width: 1.6rem;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #7f9bd4, var(--blue));
}

.vsl-cols__val {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--navy);
}

.vsl-frac-visual,
.vsl-fracs,
.vsl-mixed {
  flex-direction: row;
  align-items: center;
  gap: 0.9rem;
}

.vsl-frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12rem;
  font-weight: 900;
  color: var(--navy);
}

.vsl-frac__n,
.vsl-frac__d {
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 0.35rem;
}

.vsl-frac__bar {
  width: 100%;
  min-width: 2rem;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
}

.vsl-mixed__whole {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--navy);
}

.vsl-parts {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  max-width: 16rem;
}

.vsl-part {
  width: 1.6rem;
  height: 1.2rem;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 4px;
}

.vsl-part--on {
  background: var(--blue);
}

.vsl-percent__track {
  width: 12rem;
  height: 1.3rem;
  overflow: hidden;
  background: #e8eef9;
  border-radius: 999px;
}

.vsl-percent__fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7f9bd4, var(--blue));
}

.vsl-percent__val {
  font-size: 1rem;
  font-weight: 900;
  color: var(--navy);
}

.vsl-calc {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-calc__row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.vsl-calc__num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy);
}

.vsl-calc__op {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--violet);
}

.vsl-calc__grid {
  display: grid;
  grid-template-columns: repeat(6, 0.55rem);
  gap: 0.22rem;
}

.vsl-calc__cell {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: #ccd8ee;
}

.vsl-board {
  display: inline-flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0.6rem 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  min-width: 8rem;
}

.vsl-board__row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.vsl-board__tick {
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--violet);
  line-height: 1;
}

.vsl-board__line {
  flex: 1;
  height: 0.5rem;
  border-radius: 999px;
  background: #ccd8ee;
}

.vsl-clock {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.5rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-clock__label {
  font-size: 0.85rem;
  font-weight: 900;
  color: var(--navy);
}

.vsl-cal {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-cal__head {
  height: 0.5rem;
  border-radius: 999px;
  background: var(--blue);
}

.vsl-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 0.7rem);
  gap: 0.28rem;
}

.vsl-cal__day {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 3px;
  background: #ccd8ee;
}

.vsl-tl {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-tl__dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--blue);
}

.vsl-tl__bar {
  width: 2.2rem;
  height: 3px;
  background: var(--navy);
}

.vsl-pie {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
}

.vsl-tally {
  display: inline-flex;
  gap: 1rem;
  padding: 0.7rem 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-tally__group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.vsl-tally__stroke {
  width: 3px;
  height: 1.5rem;
  border-radius: 2px;
  background: var(--navy);
}

.vsl-tally__slash {
  width: 3px;
  height: 1.9rem;
  border-radius: 2px;
  background: var(--violet);
  transform: rotate(35deg);
  margin-left: -0.15rem;
}

.vsl-picto {
  display: inline-flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.7rem 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-picto__row {
  display: flex;
  gap: 0.35rem;
}

.vsl-picto__sym {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--blue);
}

.vsl-pv {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.6rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-pv__col {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.vsl-pv__head {
  width: 1.7rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--blue);
}

.vsl-pv__cell {
  width: 1.7rem;
  height: 1.15rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.vsl-likely {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.7rem 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-likely__track {
  width: 7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #e4eaf5;
  overflow: hidden;
}

.vsl-likely__fill {
  display: block;
  height: 100%;
  background: var(--blue);
}

.vsl-likely__label {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--navy);
}

.vsl-cells {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.7rem 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-cells__cell {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 4px;
  background: #ccd8ee;
}

.vsl-cells__cell--gap {
  background: transparent;
  border: 2px dashed var(--violet);
}

.vsl-table-visual {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.5rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-table-visual__row {
  display: flex;
  gap: 2px;
}

.vsl-table-visual__cell {
  width: 2.4rem;
  height: 1.05rem;
  border-radius: 3px;
  background: #e7edf8;
}

.vsl-table-visual__row--head .vsl-table-visual__cell {
  background: var(--blue);
}

.vsl-nline {
  display: inline-flex;
  align-items: flex-start;
  gap: 0;
  padding: 0.7rem 0.8rem 0.5rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-nline__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 2rem;
}

.vsl-nline__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #ccd8ee;
}

.vsl-nline__dot--on {
  background: var(--violet);
}

.vsl-nline__tick {
  width: 2px;
  height: 0.9rem;
  background: var(--navy);
}

.vsl-nline__num {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--navy);
}

.vsl-ten {
  display: grid;
  grid-template-columns: repeat(5, 1.1rem);
  gap: 3px;
  padding: 0.6rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-ten__cell {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.vsl-ten__cell--on {
  background: var(--blue);
  border-color: var(--blue);
}

.vsl-bond {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-bond__top,
.vsl-bond__part {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  padding: 0 0.35rem;
  border-radius: 50%;
  background: #e7edf8;
  border: 2px solid var(--blue);
  font-size: 0.95rem;
  font-weight: 900;
  color: var(--navy);
}

.vsl-bond__split {
  display: flex;
  gap: 2.2rem;
}

.vsl-blocks {
  display: inline-flex;
  align-items: flex-end;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-blocks__rod {
  width: 0.6rem;
  height: 3rem;
  border: 2px solid var(--blue);
  border-radius: 3px;
  background: repeating-linear-gradient(
    to bottom,
    #ccd8ee 0,
    #ccd8ee calc(10% - 1px),
    #fff calc(10% - 1px),
    #fff 10%
  );
}

.vsl-blocks__units {
  display: grid;
  grid-template-columns: repeat(3, 0.6rem);
  gap: 3px;
}

.vsl-blocks__unit {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 2px;
  background: var(--blue);
}

.vsl-digits {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.6rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-digits__card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 2.2rem;
  border-radius: 5px;
  background: #e7edf8;
  border: 2px solid var(--blue);
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--navy);
}

.vsl-digits__card--empty {
  background: transparent;
  border-style: dashed;
  border-color: var(--violet);
}

.vsl-dec {
  display: inline-flex;
  padding: 0.6rem;
  background: #f8fafd;
  border: 2px solid var(--line);
  border-radius: var(--radius);
}

.vsl-dec__grid {
  display: grid;
  grid-template-columns: repeat(10, 0.55rem);
  gap: 2px;
}

.vsl-dec__cell {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 2px;
  background: #fff;
  border: 1px solid var(--line);
}

.vsl-dec__cell--on {
  background: var(--blue);
  border-color: var(--blue);
}

.vsl-mcard {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.vsl-mcard__label {
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--navy);
  white-space: nowrap;
}

.vsl-rulerbar {
  position: relative;
  width: 11rem;
  height: 1.5rem;
  border: 2px solid var(--line);
  border-radius: 4px;
  background:
    repeating-linear-gradient(to right, #b8cae4 0, #b8cae4 1px, #fff 1px, #fff 0.55rem);
}

.vsl-rulerbar__fill {
  display: block;
  height: 100%;
  border-radius: 2px;
  background: rgba(26, 55, 131, 0.22);
}

.vsl-thermo {
  display: inline-flex;
  align-items: flex-end;
}

.vsl-thermo__tube {
  display: flex;
  align-items: flex-end;
  width: 1.15rem;
  height: 5rem;
  padding: 2px;
  border: 2px solid var(--line);
  border-radius: 999px;
  background: #fff;
}

.vsl-thermo__fill {
  width: 100%;
  border-radius: 999px;
  background: linear-gradient(to top, #f87171, #d09513);
}

.vsl-gauge {
  position: relative;
  width: 4.6rem;
  height: 4.6rem;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: #fff;
}

.vsl-gauge__needle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 1.5rem;
  margin-left: -1px;
  background: var(--violet);
  transform-origin: bottom center;
}

.vsl-gauge__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.55rem;
  height: 0.55rem;
  margin: -0.275rem 0 0 -0.275rem;
  border-radius: 50%;
  background: var(--navy);
}

.vsl-money {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.vsl-money__note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  height: 2.3rem;
  padding: 0 0.55rem;
  border: 2px solid #93aed6;
  border-radius: 6px;
  background: #eff4fb;
  font-size: 0.8rem;
  font-weight: 900;
  color: var(--navy);
}

.vsl-pos {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.vsl-pos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1.5rem);
  gap: 3px;
}

.vsl-pos__cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #f8fafd;
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
}

.vsl-pos__obj {
  background: var(--blue);
  border-color: var(--blue);
}

.vsl-pos__arrow {
  color: var(--violet);
  background: #fff;
}

.vsl-pos__label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
}

.vsl-figure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.vsl-svg {
  display: block;
  width: 100%;
  max-width: 200px;
  height: auto;
}

.vsl-s-fill {
  fill: #e7edf8;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.vsl-s-face {
  fill: #ccd8ee;
  stroke: var(--blue);
  stroke-width: 2.5;
  stroke-linejoin: round;
}

.vsl-s-line {
  stroke: var(--navy);
  stroke-width: 3;
  stroke-linecap: round;
}

.vsl-s-thin {
  stroke: var(--violet);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.vsl-s-dot {
  fill: var(--navy);
}

.vsl-s-text {
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  fill: var(--navy);
}

/* ---------- Nút nghe ---------- */

.btn-audio {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  min-height: 48px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--violet);
  background: #eef1f9;
  border: 2px solid #d3dbeb;
  border-radius: 999px;
  cursor: pointer;
}

.btn-audio:hover {
  background: #e6ecf7;
}

.btn-audio::after {
  content: "";
  width: 16px;
  height: 14px;
  margin-left: 0.15rem;
  background:
    linear-gradient(currentColor, currentColor) 0 50% / 3px 55% no-repeat,
    linear-gradient(currentColor, currentColor) 6.5px 50% / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 13px 50% / 3px 40% no-repeat;
  opacity: 0.55;
}

.btn-audio__icon {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  font-size: 0.7rem;
  color: #ffffff;
  background: var(--violet);
  border-radius: 50%;
}

.btn-audio.is-playing {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-soft);
}

.btn-audio.is-playing .btn-audio__icon {
  background: var(--green);
}

.btn-audio.is-unavailable {
  border-style: dashed;
}

/* ---------- Học sinh ---------- */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  display: grid;
  gap: 0.15rem;
  padding: 1.1rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-clay);
}

.stat-grid .stat-card:nth-child(1) {
  background: var(--tint-navy);
  border-top-color: var(--navy);
}

.stat-grid .stat-card:nth-child(2) {
  background: var(--tint-yellow);
  border-top-color: var(--yellow);
}

.stat-grid .stat-card:nth-child(3) {
  background: var(--tint-green);
  border-top-color: var(--green);
}

.stat-grid .stat-card:nth-child(4) {
  border-top-color: var(--blue);
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1.1;
  color: var(--violet);
}

.stat-card__label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-soft);
}

.next-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.75rem;
  background: linear-gradient(135deg, var(--tint-navy) 0%, #ffffff 100%);
  border: 1px solid #dbe4f6;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
}

.next-card h2 {
  margin: 0 0 0.25rem;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.lesson-card {
  display: grid;
  gap: 0.4rem;
  align-content: start;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--grade-accent, var(--navy));
  border-radius: var(--radius);
  box-shadow: var(--shadow-clay);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

/* Màu viền theo khối lớp, đồng bộ với thẻ lớp ở trang chủ */
.lesson-card--g1 {
  --grade-accent: var(--green);
}

.lesson-card--g2 {
  --grade-accent: var(--yellow);
}

.lesson-card--g3 {
  --grade-accent: var(--navy);
}

.lesson-card--g4 {
  --grade-accent: var(--violet);
}

.lesson-card--g5 {
  --grade-accent: var(--green);
}

.lesson-card__grade {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 28px;
  padding: 0 0.6rem;
  margin: 0;
  background: var(--tint-navy);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}

.lesson-card__steps {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.15rem;
}

.lesson-card__step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dbe2f1;
}

.lesson-card__step-dot.is-on {
  background: var(--grade-accent, var(--navy));
}

.lesson-card__steps-text {
  margin-left: 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy-soft);
}

.lesson-card h3 {
  margin: 0;
}

.lesson-card__topic {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--violet);
}

.lesson-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.35rem 0;
}

.lesson-card__actions {
  margin-top: 0.35rem;
}

.step-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.lesson-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.lesson-progress {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.lesson-progress__bar {
  flex: 1 1 auto;
  height: 14px;
  background: #e6ebf5;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(26, 55, 131, 0.12);
}

.lesson-progress__bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0%, var(--navy) 100%);
  transition: width 0.3s ease;
}

.lesson-progress.is-step-1 .lesson-progress__bar span { width: 33.33%; }
.lesson-progress.is-step-2 .lesson-progress__bar span { width: 66.66%; }
.lesson-progress.is-step-3 .lesson-progress__bar span { width: 100%; }

.lesson-progress__text {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--navy-soft);
  white-space: nowrap;
}

.step-nav__item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--navy-soft);
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 999px;
}

.step-nav__item b {
  display: inline-grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.85rem;
  color: var(--navy);
  background: #dfe6f4;
  border-radius: 50%;
}

.step-nav__item.is-done {
  color: var(--green);
  border-color: #b9e3c9;
  background: var(--green-soft);
}

.step-nav__item.is-done b {
  color: #ffffff;
  background: var(--green);
}

.step-nav__item.is-active {
  color: #ffffff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(43, 79, 168, 0.25);
}

.step-nav__item.is-active b {
  color: var(--violet);
  background: #ffffff;
}

.lesson-block {
  padding: 1.75rem;
  margin-bottom: 1.75rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
}

.lesson-block > h2 {
  margin-top: 0;
}

.slide-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.slide-card {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1.15rem;
  background: var(--tint-navy);
  border: 1px solid #dde5f4;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.slide-card p {
  margin: 0;
  font-weight: 700;
}

.slide-card p.small {
  font-weight: 500;
  color: var(--navy-soft);
}

.script-list {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding-left: 1.4rem;
}

.script-list li {
  padding: 0.7rem 0.95rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--yellow);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.script-list li > span {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.exercise-form {
  display: grid;
  gap: 1.25rem;
}

.exercise-card {
  padding: 1.4rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 8px solid var(--blue);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.exercise-card h3 {
  margin-top: 0;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.option-grid--text {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}

.option-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 1rem;
  min-height: 120px;
  text-align: center;
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.option-card:hover {
  border-color: #b8c5e0;
  transform: translateY(-2px);
}

.option-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option-card:has(input:checked) {
  border-color: var(--violet);
  background: #f5f7fb;
  box-shadow: 0 0 0 4px rgba(43, 79, 168, 0.16);
}

.option-card:has(input:focus-visible) {
  outline: 3px solid var(--violet);
  outline-offset: 3px;
}

.option-card--text {
  min-height: 76px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
}

.option-card__label {
  font-weight: 800;
  font-size: 0.98rem;
}

.drag-area {
  display: grid;
  gap: 1.25rem;
}

.tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.9rem;
  background: #e9eef8;
  border: 2px dashed #b8c5e0;
  border-radius: var(--radius-sm);
}

.tile {
  min-width: 64px;
  min-height: 64px;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--navy);
  background: #ffffff;
  border: 3px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: grab;
  touch-action: manipulation;
}

.tile:hover {
  border-color: var(--violet);
}

.tile.is-selected {
  color: #ffffff;
  background: var(--gradient);
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(43, 79, 168, 0.28);
}

.tile.is-used {
  opacity: 0.35;
}

.groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.drop-zone {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 1rem;
  min-height: 130px;
  background: #fcfdfe;
  border: 3px dashed #b8c5e0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.drop-zone:hover,
.drop-zone:focus-visible {
  border-color: var(--violet);
}

.drop-zone.is-active {
  border-color: var(--yellow);
  background: var(--yellow-soft);
}

.drop-zone.is-filled {
  border-style: solid;
  border-color: var(--green);
  background: var(--green-soft);
}

.drop-zone__value {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--navy-soft);
}

.drop-zone.is-filled .drop-zone__value {
  color: var(--green);
}

.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.vocab-card {
  display: grid;
  gap: 0.35rem;
  align-content: start;
  padding: 1.1rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-top: 6px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow-clay);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.vocab-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.vocab-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--violet);
}

.vocab-card__visual {
  display: grid;
  place-items: center;
  min-height: 4.2rem;
  margin-bottom: 0.35rem;
  padding: 0.5rem;
  background: var(--tint-yellow);
  border-radius: var(--radius-sm);
}

.vocab-card__vi {
  margin: 0;
  font-weight: 800;
}

.vocab-card p {
  margin: 0;
}

/* ---------- Kết quả bài tập ---------- */

.score-card {
  display: grid;
  place-items: center;
  gap: 0.35rem;
  padding: 2rem 1.5rem;
  margin-bottom: 1.75rem;
  text-align: center;
  background: linear-gradient(160deg, var(--tint-navy) 0%, #ffffff 70%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
}

.score-card__number {
  font-size: clamp(2.5rem, 9vw, 4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--navy);
}

.result-list {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.result-item {
  padding: 1.1rem 1.35rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 8px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.result-item.is-correct {
  background: var(--tint-green);
  border-color: #d6ecdf;
  border-left-color: var(--green);
}

.result-item.is-wrong {
  background: var(--red-soft);
  border-color: #f6dada;
  border-left-color: var(--red);
}

.result-item__title {
  margin: 0 0 0.35rem;
  font-weight: 900;
}

.result-item p {
  margin: 0 0 0.25rem;
}

/* ---------- Bảng dữ liệu ---------- */

.table-wrap {
  overflow-x: auto;
  margin-bottom: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.data-table thead th {
  background: var(--tint-navy);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--navy);
  white-space: nowrap;
}

.data-table tbody tr:nth-child(even) {
  background: #fafbfe;
}

.data-table td small {
  display: block;
  margin-top: 0.2rem;
  color: var(--navy-soft);
}

.data-table td a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #f1f5fc;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

/* ---------- Tin nhắn phụ huynh / giáo viên ---------- */

.message-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.message-card {
  padding: 1.2rem 1.35rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 6px solid var(--blue);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
}

.message-card.is-unanswered {
  border-left-color: var(--yellow);
  background: #fffdf6;
}

.message-card__body {
  margin: 0.5rem 0;
  white-space: pre-line;
}

.message-card__reply {
  margin-top: 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--tint-navy);
  border-radius: var(--radius-sm);
}

.message-card__reply p {
  margin: 0;
}

/* ---------- Góc phụ huynh ---------- */

.child-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.5rem 1.7rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--tint-navy) 0%, #ffffff 100%);
  border: 1px solid #dbe4f6;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-clay);
}

.child-card h2 {
  margin: 0.15rem 0 0.25rem;
}

.child-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.child-card__stats > div {
  display: grid;
  gap: 0.1rem;
}

.child-card__stats span {
  display: grid;
  gap: 0.1rem;
  padding: 0.55rem 0.95rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #dbe4f6;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy-soft);
}

.child-card__stats strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--violet);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

/* ---------- Nhân vật AI ---------- */

.mascot {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

/* Khung chat trợ lý AI: mở ngay cạnh con khỉ. */
.mascot__chat {
  display: flex;
  flex-direction: column;
  width: min(340px, calc(100vw - 2.5rem));
  max-height: min(60vh, 520px);
  background: #ffffff;
  border: 2px solid var(--yellow);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  pointer-events: auto;
}

.mascot__chat[hidden] {
  display: none;
}

.mascot__chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.6rem 0.6rem 0.6rem 1rem;
  background: var(--navy);
  color: #ffffff;
}

.mascot__chat-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  color: #ffffff;
}

.mascot__chat-close {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
  color: #ffffff;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
}

.mascot__chat-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.mascot__chat-log {
  flex: 1 1 auto;
  min-height: 96px;
  padding: 0.85rem;
  overflow-y: auto;
  background: var(--bg);
}

.mascot__msg {
  margin: 0 0 0.5rem;
  padding: 0.6rem 0.8rem;
  font-size: 0.92rem;
  line-height: 1.45;
  border-radius: var(--radius-sm);
  word-break: break-word;
}

.mascot__msg--bot {
  color: var(--navy);
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
}

.mascot__msg--user {
  color: #ffffff;
  background: var(--violet);
  border-left: 4px solid var(--yellow);
  margin-left: 2rem;
}

.mascot__chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.6rem;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.mascot__chat-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0.5rem 0.75rem;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--navy);
  background: var(--bg);
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
}

.mascot__chat-input:focus-visible {
  border-color: var(--violet);
}

.mascot__chat-send {
  flex: 0 0 auto;
  min-width: 72px;
  min-height: 48px;
  padding: 0 1rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  background: var(--green);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.mascot__chat-send:hover {
  background: #006b2e;
}

.mascot__chat-send:disabled {
  cursor: progress;
  opacity: 0.65;
}

.mascot__button {
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  filter: drop-shadow(0 10px 20px rgba(26, 55, 131, 0.22));
}

.mascot__img {
  display: block;
  width: 104px;
  height: auto;
  transform-origin: 50% 92%;
  animation: mascot-wave 3.2s ease-in-out infinite;
}

.mascot__placeholder {
  display: grid;
  place-items: center;
  gap: 0.25rem;
  width: 104px;
  min-height: 104px;
  padding: 0.5rem;
  text-align: center;
  background: linear-gradient(160deg, #e9eef8, #eaedf8);
  border: 3px dashed #c2cee6;
  border-radius: 50%;
  animation: mascot-wave 3.2s ease-in-out infinite;
}

.mascot__placeholder-face {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  font-size: 1.1rem;
  font-weight: 900;
  color: #ffffff;
  background: var(--violet);
  border-radius: 50%;
}

.mascot__placeholder-text {
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-soft);
}

.mascot__placeholder-text small {
  font-size: 0.55rem;
}

.mascot.is-big {
  right: 1.5rem;
  bottom: 1.5rem;
}

.mascot.is-big .mascot__img {
  width: clamp(180px, 26vw, 300px);
}

.mascot.is-big .mascot__placeholder {
  width: clamp(180px, 26vw, 300px);
  min-height: clamp(180px, 26vw, 300px);
}

.mascot.is-big .mascot__placeholder-face {
  width: 3.5rem;
  height: 3.5rem;
  font-size: 1.8rem;
}

.mascot.is-big .mascot__placeholder-text {
  font-size: 0.75rem;
}

@keyframes mascot-wave {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(4deg) translateY(-4px); }
}

@media (prefers-reduced-motion: reduce) {
  .mascot__img,
  .mascot__placeholder {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Điện thoại ---------- */

@media (max-width: 900px) {
  .hero__grid,
  .login-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 2rem 0 2.5rem;
  }

  .hero__sky {
    display: none;
  }

  .check-list--two {
    columns: 1;
  }

  .section {
    padding: 1.75rem 0;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 1rem;
  }

  .shell {
    width: min(1180px, 100% - 1.25rem);
  }

  .site-header__inner {
    padding: 0.5rem 0;
  }

  .brand__logo {
    height: 38px;
  }

  .logo-slot {
    height: 38px;
    min-width: 52px;
    font-size: 0.6rem;
  }

  .brand__text strong {
    font-size: 1.05rem;
  }

  .brand__text small {
    font-size: 0.62rem;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.88rem;
    gap: 0.25rem 0.85rem;
  }

  .site-nav__user {
    width: 100%;
  }

  .hero__actions .btn,
  .form .btn,
  .exercise-form > .btn {
    width: 100%;
  }

  .panel .form > .btn {
    justify-self: stretch;
    width: 100%;
  }

  .inline-form {
    display: block;
  }

  .suggest-list .inline-form input[type="text"] {
    flex: 1 1 100%;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .stat-card {
    padding: 0.9rem 1rem;
  }

  .stat-card__number {
    font-size: 1.6rem;
  }

  .stat-card__label {
    font-size: 0.78rem;
  }

  /* Bảng dài chuyển thành thẻ dọc cho dễ đọc trên điện thoại */
  .data-table--stack {
    min-width: 0;
  }

  .data-table--stack thead {
    display: none;
  }

  .data-table--stack tbody tr {
    display: grid;
    gap: 0.3rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
  }

  .data-table--stack td {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.1rem 0;
    border: 0;
    text-align: right;
  }

  .data-table--stack td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: 0.76rem;
    font-weight: 800;
    text-align: left;
    color: var(--navy-soft);
  }

  .data-table--stack td:first-child { display: block; padding-bottom: 0.3rem; text-align: left; }
  .data-table--stack td:first-child::before { content: none; }

  .data-table--stack td.table-cell--block {
    display: block;
    text-align: left;
  }

  .data-table--stack td.table-cell--block::before {
    display: block;
    margin-bottom: 0.3rem;
  }

  .data-table--stack td.table-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    text-align: left;
  }

  .data-table--stack td.table-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .lesson-grid,
  .vocab-grid,
  .steps,
  .grade-grid,
  .badge-catalog {
    grid-template-columns: 1fr;
  }

  .mascot,
  .mascot.is-big {
    right: 0.6rem;
    bottom: 0.6rem;
    max-width: calc(100vw - 1.2rem);
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
  }

  .mascot__chat {
    width: min(320px, calc(100vw - 1.2rem));
    max-height: 52vh;
  }

  .mascot__chat-log {
    min-height: 80px;
  }

  .mascot.is-big .mascot__img,
  .mascot.is-big .mascot__placeholder {
    width: 130px;
  }

  .mascot.is-big .mascot__placeholder {
    min-height: 130px;
  }

  .mascot__img,
  .mascot__placeholder {
    width: 84px;
    min-height: 84px;
  }

  .mascot__placeholder-text {
    font-size: 0.52rem;
  }

  .dot {
    width: 1.25rem;
    height: 1.25rem;
  }

  .dots-wrap.xl .dot {
    width: 1.7rem;
    height: 1.7rem;
  }

  .option-grid {
    grid-template-columns: 1fr;
  }

  .option-grid--text {
    grid-template-columns: repeat(2, 1fr);
  }

  .tile {
    min-width: 56px;
    min-height: 56px;
    font-size: 1.3rem;
  }

  .next-card,
  .child-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .child-card {
    padding: 1.2rem 1.25rem;
  }

  .child-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    width: 100%;
  }

  .child-card__stats span {
    padding: 0.5rem 0.45rem;
    font-size: 0.72rem;
    text-align: center;
  }

  .child-card__stats strong {
    font-size: 1.25rem;
  }

  .score-card {
    padding: 1.5rem 1rem;
  }

  .step-nav__item {
    flex: 1 1 100%;
    justify-content: center;
  }

  .hero__cloud--b,
  .hero__star--c,
  .journey__deco {
    display: none;
  }

  .hero__stats li {
    flex: 1 1 88px;
    min-width: 0;
    padding: 0.55rem 0.75rem;
  }

  .hero__stats strong {
    font-size: 1.2rem;
  }
}
