@import "https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Noto+Serif+SC:wght@500;700;900&display=swap";
/* [next]/internal/font/google/geist_a71539c9.module.css [app-client] (css) */
@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/fef07dbb0973bf53-s.3p2_lha1f2xer.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/8a480f0b521d4e75-s.1qq4vpdcun5oj.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/53b9e256198e5412-s.390ncx5urfkfu.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7178b3e590c64307-s.21jp631_3pja2.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/caa3a2e1cccd8315-s.p.0wgildi0cnwt9.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Fallback;
  src: local(Arial);
  ascent-override: 95.94%;
  descent-override: 28.16%;
  line-gap-override: 0.0%;
  size-adjust: 104.76%;
}

.geist_a71539c9-module__T19VSG__className {
  font-family: Geist, Geist Fallback;
  font-style: normal;
}

.geist_a71539c9-module__T19VSG__variable {
  --font-geist-sans: "Geist", "Geist Fallback";
}

/* [next]/internal/font/google/geist_mono_8d43a2aa.module.css [app-client] (css) */
@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/5ce348bf30bf5439-s.31988l_ccedte.woff2") format("woff2");
  unicode-range: U+460-52F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/4fa387ec64143e14-s.2tuy5pz7dlieh.woff2") format("woff2");
  unicode-range: U+301, U+400-45F, U+490-491, U+4B0-4B1, U+2116;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/6306c77e7c8268e4-s.2dbetqa9o8jxf.woff2") format("woff2");
  unicode-range: U+2000-2001, U+2004-2008, U+200A, U+23B8-23BD, U+2500-259F;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/7d817b4c03b0c5f1-s.1uyisp29ctx0d.woff2") format("woff2");
  unicode-range: U+102-103, U+110-111, U+128-129, U+168-169, U+1A0-1A1, U+1AF-1B0, U+300-301, U+303-304, U+308-309, U+323, U+329, U+1EA0-1EF9, U+20AB;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/bbc41e54d2fcbd21-s.1rgnod-3esatf.woff2") format("woff2");
  unicode-range: U+100-2BA, U+2BD-2C5, U+2C7-2CC, U+2CE-2D7, U+2DD-2FF, U+304, U+308, U+329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: Geist Mono;
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../media/797e433ab948586e-s.p.0r6juujl39pe6.woff2") format("woff2");
  unicode-range: U+??, U+131, U+152-153, U+2BB-2BC, U+2C6, U+2DA, U+2DC, U+304, U+308, U+329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Geist Mono Fallback;
  src: local(Arial);
  ascent-override: 74.67%;
  descent-override: 21.92%;
  line-gap-override: 0.0%;
  size-adjust: 134.59%;
}

.geist_mono_8d43a2aa-module__8Li5zG__className {
  font-family: Geist Mono, Geist Mono Fallback;
  font-style: normal;
}

.geist_mono_8d43a2aa-module__8Li5zG__variable {
  --font-geist-mono: "Geist Mono", "Geist Mono Fallback";
}

/* [project]/app/globals.css [app-client] (css) */
@layer properties {
  @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
    *, :before, :after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-shadow: 0 0 #0000;
      --tw-shadow-color: initial;
      --tw-shadow-alpha: 100%;
      --tw-inset-shadow: 0 0 #0000;
      --tw-inset-shadow-color: initial;
      --tw-inset-shadow-alpha: 100%;
      --tw-ring-color: initial;
      --tw-ring-shadow: 0 0 #0000;
      --tw-inset-ring-color: initial;
      --tw-inset-ring-shadow: 0 0 #0000;
      --tw-ring-inset: initial;
      --tw-ring-offset-width: 0px;
      --tw-ring-offset-color: #fff;
      --tw-ring-offset-shadow: 0 0 #0000;
      --tw-outline-style: solid;
      --tw-blur: initial;
      --tw-brightness: initial;
      --tw-contrast: initial;
      --tw-grayscale: initial;
      --tw-hue-rotate: initial;
      --tw-invert: initial;
      --tw-opacity: initial;
      --tw-saturate: initial;
      --tw-sepia: initial;
      --tw-drop-shadow: initial;
      --tw-drop-shadow-color: initial;
      --tw-drop-shadow-alpha: 100%;
      --tw-drop-shadow-size: initial;
    }
  }
}

@layer theme {
  :root, :host {
    --font-sans: var(--font-geist-sans);
    --default-font-family: var(--font-geist-sans);
    --default-mono-font-family: var(--font-geist-mono);
  }
}

@layer base {
  *, :after, :before, ::backdrop {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  ::file-selector-button {
    box-sizing: border-box;
    border: 0 solid;
    margin: 0;
    padding: 0;
  }

  html, :host {
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    line-height: 1.5;
    font-family: var(--default-font-family, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");
    font-feature-settings: var(--default-font-feature-settings, normal);
    font-variation-settings: var(--default-font-variation-settings, normal);
    -webkit-tap-highlight-color: transparent;
  }

  hr {
    height: 0;
    color: inherit;
    border-top-width: 1px;
  }

  abbr:where([title]) {
    -webkit-text-decoration: underline dotted;
    text-decoration: underline dotted;
  }

  h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
    font-weight: inherit;
  }

  a {
    color: inherit;
    -webkit-text-decoration: inherit;
    -webkit-text-decoration: inherit;
    text-decoration: inherit;
  }

  b, strong {
    font-weight: bolder;
  }

  code, kbd, samp, pre {
    font-family: var(--default-mono-font-family, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
    font-feature-settings: var(--default-mono-font-feature-settings, normal);
    font-variation-settings: var(--default-mono-font-variation-settings, normal);
    font-size: 1em;
  }

  small {
    font-size: 80%;
  }

  sub, sup {
    vertical-align: baseline;
    font-size: 75%;
    line-height: 0;
    position: relative;
  }

  sub {
    bottom: -.25em;
  }

  sup {
    top: -.5em;
  }

  table {
    text-indent: 0;
    border-color: inherit;
    border-collapse: collapse;
  }

  :-moz-focusring:where(:not(iframe)) {
    outline: auto;
  }

  progress {
    vertical-align: baseline;
  }

  summary {
    display: list-item;
  }

  ol, ul, menu {
    list-style: none;
  }

  img, svg, video, canvas, audio, iframe, embed, object {
    vertical-align: middle;
    display: block;
  }

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

  button, input, select, optgroup, textarea {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  ::file-selector-button {
    font: inherit;
    font-feature-settings: inherit;
    font-variation-settings: inherit;
    letter-spacing: inherit;
    color: inherit;
    opacity: 1;
    background-color: #0000;
    border-radius: 0;
  }

  :where(select:is([multiple], [size])) optgroup {
    font-weight: bolder;
  }

  :where(select:is([multiple], [size])) optgroup option {
    padding-inline-start: 20px;
  }

  ::file-selector-button {
    margin-inline-end: 4px;
  }

  ::placeholder {
    opacity: 1;
  }

  @supports (not ((-webkit-appearance: -apple-pay-button))) or (contain-intrinsic-size: 1px) {
    ::placeholder {
      color: currentColor;
    }

    @supports (color: color-mix(in lab, red, red)) {
      ::placeholder {
        color: color-mix(in oklab, currentcolor 50%, transparent);
      }
    }
  }

  textarea {
    resize: vertical;
  }

  ::-webkit-search-decoration {
    -webkit-appearance: none;
  }

  ::-webkit-date-and-time-value {
    min-height: 1lh;
    text-align: inherit;
  }

  ::-webkit-datetime-edit {
    display: inline-flex;
  }

  ::-webkit-datetime-edit-fields-wrapper {
    padding: 0;
  }

  ::-webkit-datetime-edit {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-year-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-month-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-day-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-hour-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-minute-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-second-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-millisecond-field {
    padding-block: 0;
  }

  ::-webkit-datetime-edit-meridiem-field {
    padding-block: 0;
  }

  ::-webkit-calendar-picker-indicator {
    line-height: 1;
  }

  :-moz-ui-invalid {
    box-shadow: none;
  }

  button, input:where([type="button"], [type="reset"], [type="submit"]) {
    appearance: button;
  }

  ::file-selector-button {
    appearance: button;
  }

  ::-webkit-inner-spin-button {
    height: auto;
  }

  ::-webkit-outer-spin-button {
    height: auto;
  }

  [hidden]:where(:not([hidden="until-found"])) {
    display: none !important;
  }
}

@layer components;

@layer utilities {
  .visible {
    visibility: visible;
  }

  .absolute {
    position: absolute;
  }

  .fixed {
    position: fixed;
  }

  .relative {
    position: relative;
  }

  .static {
    position: static;
  }

  .container {
    width: 100%;
  }

  @media (min-width: 40rem) {
    .container {
      max-width: 40rem;
    }
  }

  @media (min-width: 48rem) {
    .container {
      max-width: 48rem;
    }
  }

  @media (min-width: 64rem) {
    .container {
      max-width: 64rem;
    }
  }

  @media (min-width: 80rem) {
    .container {
      max-width: 80rem;
    }
  }

  @media (min-width: 96rem) {
    .container {
      max-width: 96rem;
    }
  }

  .block {
    display: block;
  }

  .flex {
    display: flex;
  }

  .grid {
    display: grid;
  }

  .hidden {
    display: none;
  }

  .inline {
    display: inline;
  }

  .inline-block {
    display: inline-block;
  }

  .inline-flex {
    display: inline-flex;
  }

  .table {
    display: table;
  }

  .h-full {
    height: 100%;
  }

  .min-h-full {
    min-height: 100%;
  }

  .transform {
    transform: var(--tw-rotate-x, ) var(--tw-rotate-y, ) var(--tw-rotate-z, ) var(--tw-skew-x, ) var(--tw-skew-y, );
  }

  .resize {
    resize: both;
  }

  .flex-col {
    flex-direction: column;
  }

  .border {
    border-style: var(--tw-border-style);
    border-width: 1px;
  }

  .lowercase {
    text-transform: lowercase;
  }

  .uppercase {
    text-transform: uppercase;
  }

  .antialiased {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  .shadow {
    --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, #0000001a), 0 1px 2px -1px var(--tw-shadow-color, #0000001a);
    box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
  }

  .outline {
    outline-style: var(--tw-outline-style);
    outline-width: 1px;
  }

  .filter {
    filter: var(--tw-blur, ) var(--tw-brightness, ) var(--tw-contrast, ) var(--tw-grayscale, ) var(--tw-hue-rotate, ) var(--tw-invert, ) var(--tw-saturate, ) var(--tw-sepia, ) var(--tw-drop-shadow, );
  }
}

:root {
  --background: #f8fafc;
  --foreground: #0f172a;
}

.teacher-editor-footer {
  justify-content: center;
  margin-top: 14px;
  display: flex;
}

.teacher-editor-footer > .tng-btn {
  justify-content: center;
  min-width: 140px;
}

.teacher-student-page, .teacher-student-form-page {
  gap: 16px;
  display: grid;
}

.teacher-student-search {
  max-width: 360px;
  display: block;
  position: relative;
}

.teacher-student-search > svg {
  z-index: 1;
  color: #8c8371;
  position: absolute;
  top: 12px;
  left: 11px;
}

.teacher-student-search > input {
  padding-left: 34px;
}

.teacher-student-table-shell {
  background: #fffdf7;
  border: 1px solid #ded4bc;
  border-radius: 10px;
  overflow: auto;
}

.teacher-student-table {
  border-collapse: collapse;
  width: 100%;
}

.teacher-student-table th, .teacher-student-table td {
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e5dcc7;
  padding: 13px 15px;
}

.teacher-student-table td:first-child {
  gap: 3px;
  display: grid;
}

.teacher-student-table td:first-child small {
  color: #6b6257;
}

.teacher-student-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  display: flex;
}

.teacher-student-actions > a {
  color: #a9382a;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.teacher-student-mobile-list {
  display: none;
}

.teacher-student-form-page > .tng-form-section {
  max-width: 900px;
}

.teacher-student-access-list {
  gap: 8px;
  max-height: 340px;
  display: grid;
  overflow: auto;
}

.teacher-student-access-list > label {
  cursor: pointer;
  border: 1px solid #e5dcc7;
  border-radius: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  display: grid;
}

.teacher-student-access-list > label:has(input:checked) {
  background: #fff8f5;
  border-color: #b93629;
}

.teacher-student-access-list input {
  accent-color: #b93629;
  width: 17px;
  height: 17px;
}

.teacher-student-access-list label > span:nth-child(2) {
  gap: 2px;
  display: grid;
}

.teacher-student-access-list small {
  color: #6b6257;
}

.teacher-student-access-list > p {
  color: #6b6257;
  margin: 0;
}

.teacher-access-modes {
  border: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  display: grid;
}

.teacher-access-modes > legend {
  margin-bottom: 8px;
  font-weight: 700;
}

.teacher-access-modes > label {
  background: #fffdf7;
  border: 1px solid #ded4bc;
  border-radius: 9px;
  align-items: flex-start;
  gap: 9px;
  padding: 13px;
  display: flex;
}

.teacher-access-modes > label > span {
  gap: 4px;
  display: grid;
}

.teacher-access-modes small {
  color: #6b6257;
  line-height: 1.45;
}

.teacher-lesson-badges {
  flex-wrap: wrap;
  gap: 5px;
  display: flex;
}

.student-free-badge {
  color: #41775a;
  background: #e7f2eb;
  border-radius: 999px;
  margin-left: 8px;
  padding: 3px 7px;
  font-family: Be Vietnam Pro, sans-serif;
  font-size: 10px;
  font-style: normal;
  display: inline-flex;
}

.teacher-access-default {
  background: #fffdf7;
  border: 1px solid #ded4bc;
  border-radius: 9px;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  display: flex;
}

.teacher-access-default > span {
  gap: 4px;
  display: grid;
}

.teacher-access-default small {
  color: #6b6257;
}

.teacher-access-options {
  border: 1px solid #ded4bc;
  border-radius: 9px;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  display: grid;
}

.teacher-access-options legend {
  padding: 0 5px;
  font-weight: 700;
}

.teacher-access-options label {
  align-items: center;
  gap: 8px;
  display: flex;
}

.teacher-access-schedule {
  gap: 12px;
  display: grid;
}

.student-lesson-row.is-locked {
  cursor: not-allowed;
  opacity: .68;
}

.student-lesson-row.is-locked .student-learn-now {
  color: var(--student-color-muted);
}

.student-lesson-locked {
  text-align: center;
  justify-items: center;
  gap: 10px;
  padding: 36px;
  display: grid;
}

.student-lesson-locked > svg {
  color: var(--student-color-primary);
}

.student-lesson-locked h1, .student-lesson-locked p {
  margin: 0;
}

.student-lesson-locked p {
  max-width: 520px;
  color: var(--student-color-muted);
}

.teacher-exam-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.teacher-exam-type-grid > a {
  color: #201b18;
  background: #fffdf7;
  border: 1px solid #ded4bc;
  border-radius: 12px;
  flex-direction: column;
  align-items: flex-start;
  min-height: 230px;
  padding: 24px;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
}

.teacher-exam-type-grid > a:hover {
  border-color: #c9958e;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px #3c2a1e14;
}

.teacher-exam-type-grid > a > span {
  color: #a9382a;
  background: #f8e9e8;
  border-radius: 50%;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  display: grid;
}

.teacher-exam-type-grid small {
  color: #a9382a;
  font-weight: 800;
}

.teacher-exam-type-grid h2 {
  margin: 7px 0;
}

.teacher-exam-type-grid p {
  color: #6b6257;
  flex: 1;
  margin: 0;
  line-height: 1.65;
}

.teacher-exam-type-grid strong {
  color: #a9382a;
  align-items: center;
  gap: 7px;
  margin-top: 18px;
  display: flex;
}

.student-exam-type-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  display: grid;
}

.student-exam-type-grid > a {
  border: 1px solid var(--student-color-border);
  border-radius: var(--student-radius-card);
  background: var(--student-color-surface);
  min-height: 245px;
  color: var(--student-color-text);
  flex-direction: column;
  align-items: flex-start;
  padding: 25px;
  text-decoration: none;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
}

.student-exam-type-grid > a:hover {
  box-shadow: var(--student-shadow-card);
  border-color: #d2b4b3;
  transform: translateY(-2px);
}

.student-exam-type-icon {
  width: 52px;
  height: 52px;
  color: var(--student-color-primary);
  background: #f8e9e8;
  border-radius: 50%;
  place-items: center;
  margin-bottom: 18px;
  display: grid;
}

.student-exam-type-grid h2 {
  margin: 7px 0;
  font-size: 22px;
}

.student-exam-type-grid p {
  color: var(--student-color-muted);
  flex: 1;
  margin: 0;
  line-height: 1.65;
}

.student-exam-type-grid strong {
  color: var(--student-color-primary);
  align-items: center;
  gap: 7px;
  margin-top: 20px;
  display: flex;
}

@media (max-width: 768px) {
  .teacher-editor-footer > .tng-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .teacher-exam-type-grid {
    grid-template-columns: 1fr;
  }

  .teacher-exam-type-grid > a {
    min-height: 210px;
    padding: 20px;
  }

  .student-exam-type-grid {
    grid-template-columns: 1fr;
  }

  .student-exam-type-grid > a {
    min-height: 220px;
    padding: 20px;
  }

  .teacher-access-modes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .teacher-student-table-shell {
    display: none;
  }

  .teacher-student-mobile-list {
    gap: 10px;
    display: grid;
  }

  .teacher-student-mobile-list > article {
    background: #fffdf7;
    border: 1px solid #ded4bc;
    border-radius: 10px;
    gap: 10px;
    padding: 15px;
    display: grid;
  }

  .teacher-student-mobile-list header {
    justify-content: space-between;
    gap: 10px;
    display: flex;
  }

  .teacher-student-mobile-list header > span {
    gap: 3px;
    display: grid;
  }

  .teacher-student-mobile-list header small, .teacher-student-mobile-list p {
    color: #6b6257;
    margin: 0;
  }

  .teacher-student-search {
    max-width: none;
  }

  .teacher-student-actions .tng-btn, .teacher-student-actions > a {
    min-height: 42px;
  }
}

body {
  background: var(--background);
  min-height: 100vh;
  color: var(--foreground);
  font-family: var(--font-sans), Arial, Helvetica, sans-serif;
  margin: 0;
}

* {
  box-sizing: border-box;
}

button, input, select, textarea {
  font: inherit;
}

.tng-scope {
  -webkit-font-smoothing: antialiased;
}

.tng-btn {
  transition: transform .15s, box-shadow .15s, background-color .15s;
}

.tng-btn:active {
  transform: translateY(1px)scale(.98);
}

.tng-row:hover {
  background: #e9dfc6;
}

.tng-fade-in {
  animation: .35s both tng-fade;
}

@keyframes tng-fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tng-shell-main, .tng-shell-content, .tng-responsive-grid {
  min-width: 0;
}

.tng-sidebar {
  flex: 0 0 216px;
  width: 216px;
}

.tng-sidebar-logo-mark {
  background: #fff;
  border-radius: 50%;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: block;
  position: relative;
  overflow: hidden;
}

.tng-sidebar-logo-mark img {
  width: 138px;
  max-width: none;
  height: 138px;
  position: absolute;
  top: -35px;
  left: -47px;
}

.tng-dashboard-stats {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)) !important;
}

@media (max-width: 900px) {
  .tng-shell-layout {
    display: block !important;
  }

  .tng-sidebar {
    width: 100% !important;
    min-height: auto !important;
    padding: 14px 16px !important;
  }

  .tng-sidebar-brand {
    min-height: 64px;
    flex-basis: 64px !important;
    height: 64px !important;
    margin-bottom: 12px !important;
    padding-bottom: 12px !important;
  }

  .tng-sidebar-logo-mark {
    flex-basis: 40px;
    width: 40px;
    height: 40px;
  }

  .tng-sidebar-logo-mark img {
    width: 115px;
    height: 115px;
    top: -29px;
    left: -39px;
  }

  .tng-sidebar-brand-copy {
    display: none;
  }

  .tng-sidebar-nav {
    gap: 6px;
    padding-bottom: 2px;
    display: flex;
    overflow-x: auto;
  }

  .tng-sidebar-link {
    flex: none;
  }

  .tng-sidebar-item {
    white-space: nowrap;
    margin-bottom: 0 !important;
  }

  .tng-sidebar-footer {
    display: none;
  }

  .tng-shell-main {
    min-height: auto !important;
    overflow: visible !important;
  }

  .tng-shell-header {
    flex-wrap: wrap;
    padding: 14px 20px !important;
  }

  .tng-role-switcher {
    max-width: 100%;
    overflow-x: auto;
  }

  .tng-shell-content {
    padding: 22px 20px 32px !important;
  }

  .tng-two-column, .tng-sidebar-content-grid, .tng-grading-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .tng-table-scroll {
    overflow-x: auto !important;
  }

  .tng-table-grid-4 {
    min-width: 620px;
  }

  .tng-table-grid-5 {
    min-width: 720px;
  }
}

@media (max-width: 600px) {
  .tng-shell-header {
    padding: 12px 16px !important;
  }

  .tng-role-switcher {
    width: 100%;
  }

  .tng-header-badge {
    display: none !important;
  }

  .tng-shell-content {
    padding: 18px 16px 28px !important;
  }

  .tng-responsive-grid, .tng-dashboard-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .tng-mobile-full-width {
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tng-fade-in, .tng-btn {
    transition: none !important;
    animation: none !important;
  }
}

.student-scope {
  --s-red: #a8232d;
  --s-red-dark: #7f1720;
  --s-ink: #201a18;
  --s-muted: #746b66;
  --s-line: #e8e1dc;
  --s-ivory: #fbf9f6;
  background: var(--s-ivory);
  min-height: 100vh;
  color: var(--s-ink);
  font-family: Be Vietnam Pro, Segoe UI, sans-serif;
  display: flex;
}

.student-sidebar {
  z-index: 40;
  border-right: 1px solid var(--s-line);
  background: #fff;
  flex-direction: column;
  width: 256px;
  padding: 22px 16px 18px;
  display: flex;
  position: fixed;
  inset: 0 auto 0 0;
}

.student-brand {
  border-bottom: 1px solid var(--s-line);
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 8px 16px;
  display: flex;
}

.student-brand-mark {
  background: #fff;
  border-radius: 50%;
  flex: none;
  width: 48px;
  height: 48px;
  display: block;
  position: relative;
  overflow: hidden;
}

.student-brand-mark img {
  width: 138px !important;
  max-width: none !important;
  height: 138px !important;
  position: absolute !important;
  top: -35px !important;
  left: -47px !important;
}

.student-brand > span, .student-profile-copy {
  flex-direction: column;
  min-width: 0;
  display: flex;
}

.student-brand strong {
  letter-spacing: .04em;
  font-family: Noto Serif SC, serif;
  font-size: 19px;
}

.student-brand small {
  color: var(--s-muted);
  letter-spacing: .08em;
  margin-top: 2px;
  font-size: 10px;
}

.student-sidebar-close, .student-menu-button {
  display: none;
}

.student-nav {
  flex-direction: column;
  flex: 1;
  gap: 5px;
  padding: 22px 0;
  display: flex;
  overflow-y: auto;
}

.student-nav-link {
  color: #59514d;
  border-radius: 9px;
  align-items: center;
  gap: 12px;
  min-height: 45px;
  padding: 0 13px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
}

.student-nav-link:hover {
  color: var(--s-red);
  background: #faf5f3;
}

.student-nav-link.is-active {
  color: var(--s-red);
  background: #f8e9e8;
}

.student-nav-divider {
  background: var(--s-line);
  height: 1px;
  margin: 10px 8px;
}

.student-sidebar-support {
  color: var(--s-red);
  background: #faf6f1;
  border-radius: 10px;
  gap: 10px;
  margin: 0 4px 14px;
  padding: 12px;
  display: flex;
}

.student-sidebar-support span {
  color: var(--s-ink);
  flex-direction: column;
  font-size: 11px;
  font-weight: 700;
  display: flex;
}

.student-sidebar-support small {
  color: var(--s-muted);
  margin-top: 3px;
  font-size: 9px;
  font-weight: 500;
}

.student-profile-menu {
  position: relative;
}

.student-profile-trigger {
  border: 1px solid var(--s-line);
  width: 100%;
  color: var(--s-ink);
  cursor: pointer;
  text-align: left;
  background: #fff;
  border-radius: 10px;
  align-items: center;
  gap: 10px;
  padding: 10px;
  display: flex;
}

.student-profile-trigger > svg {
  margin-left: auto;
}

.student-avatar {
  background: var(--s-red);
  color: #fff;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 34px;
  height: 34px;
  font-size: 11px;
  font-weight: 800;
  display: grid;
}

.student-profile-copy strong {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11.5px;
  overflow: hidden;
}

.student-profile-copy small {
  color: var(--s-muted);
  margin-top: 3px;
  font-size: 9.5px;
}

.student-profile-popover {
  z-index: 60;
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 10px;
  width: 170px;
  padding: 6px;
  position: absolute;
  bottom: calc(100% + 7px);
  right: 0;
  box-shadow: 0 12px 30px #2719141a;
}

.student-header .student-profile-popover {
  top: calc(100% + 7px);
  bottom: auto;
}

.student-profile-popover button {
  width: 100%;
  color: var(--s-ink);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 7px;
  align-items: center;
  gap: 9px;
  padding: 9px;
  font-size: 11px;
  display: flex;
}

.student-profile-popover button:hover {
  background: #faf5f3;
}

.student-main {
  width: calc(100% - 256px);
  min-width: 0;
  margin-left: 256px;
}

.student-header {
  z-index: 30;
  border-bottom: 1px solid var(--s-line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: #fffffff0;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 34px;
  display: flex;
  position: sticky;
  top: 0;
}

.student-header-actions {
  align-items: center;
  gap: 10px;
  display: flex;
}

.student-demo-badge {
  border: 1px solid var(--s-line);
  color: var(--s-muted);
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
}

.student-icon-button {
  border: 1px solid var(--s-line);
  width: 38px;
  height: 38px;
  color: var(--s-ink);
  background: #fff;
  border-radius: 9px;
  place-items: center;
  display: grid;
  position: relative;
}

.student-icon-button i {
  background: var(--s-red);
  border-radius: 50%;
  width: 6px;
  height: 6px;
  position: absolute;
  top: 8px;
  right: 8px;
}

.student-profile-trigger.is-compact {
  border: 0;
  width: 38px;
  height: 38px;
  padding: 2px;
}

.student-content {
  max-width: 1540px;
  margin: 0 auto;
  padding: 34px 38px 60px;
}

.student-page {
  width: 100%;
  min-width: 0;
}

.student-page h1, .student-page h2, .student-page h3, .student-page p {
  margin-top: 0;
}

.student-eyebrow {
  color: var(--s-red);
  letter-spacing: .12em;
  margin-bottom: 9px;
  font-size: 10px;
  font-weight: 800;
  display: block;
}

.student-page-heading {
  margin-bottom: 26px;
}

.student-page-heading h1, .student-welcome h1, .student-course-hero h1, .student-lesson-header h1 {
  margin-bottom: 10px;
  font-family: Noto Serif SC, Be Vietnam Pro, serif;
  font-size: 30px;
  line-height: 1.25;
}

.student-page-heading p, .student-welcome p, .student-course-hero p, .student-lesson-header p {
  max-width: 700px;
  color: var(--s-muted);
  margin-bottom: 0;
  font-size: 13px;
  line-height: 1.75;
}

.student-welcome {
  border: 1px solid var(--s-line);
  border-left: 4px solid var(--s-red);
  background: #fff;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 36px;
  padding: 24px 28px;
  display: flex;
}

.student-streak {
  color: #d26732;
  background: #fff6ee;
  border-radius: 10px;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1px 9px;
  min-width: 170px;
  padding: 14px 16px;
  display: grid;
}

.student-streak svg {
  grid-row: 1 / 3;
}

.student-streak strong {
  color: var(--s-ink);
  font-size: 15px;
}

.student-streak span {
  color: var(--s-muted);
  font-size: 9.5px;
}

.student-section-heading {
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 16px;
  display: flex;
}

.student-section-heading h2 {
  margin: 0;
  font-size: 20px;
}

.student-section-heading > a {
  color: var(--s-red);
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.student-hsk-grid {
  grid-template-columns: repeat(7, minmax(145px, 1fr));
  gap: 12px;
  display: grid;
}

.student-hsk-card {
  border: 1px solid var(--s-line);
  min-height: 210px;
  color: var(--s-ink);
  background: #fff;
  border-radius: 11px;
  flex-direction: column;
  padding: 18px;
  text-decoration: none;
  transition: border-color .2s, transform .2s;
  display: flex;
  position: relative;
  overflow: hidden;
}

.student-hsk-card:hover {
  border-color: #d2b4b3;
  transform: translateY(-2px);
}

.student-hsk-card.is-featured {
  background: var(--s-red);
  color: #fff;
  border-color: var(--s-red);
}

.student-hsk-number {
  color: #a8232d0f;
  font-family: Noto Serif SC, serif;
  font-size: 58px;
  font-weight: 900;
  position: absolute;
  top: 2px;
  right: 10px;
}

.is-featured .student-hsk-number {
  color: #ffffff1a;
}

.student-card-kicker {
  letter-spacing: .1em;
  opacity: .7;
  font-size: 8px;
  position: relative;
}

.student-hsk-card h3 {
  margin: 24px 0 5px;
  font-size: 20px;
  position: relative;
}

.student-hsk-card p {
  color: inherit;
  opacity: .7;
  flex: 1;
  margin: 0;
  font-size: 10.5px;
}

.is-featured .student-progress-track {
  background: #ffffff38;
}

.is-featured .student-progress-track i {
  background: #fff;
}

.student-hsk-card footer, .student-course-card footer {
  opacity: .82;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  font-size: 9px;
  display: flex;
}

.student-card-arrow {
  opacity: 0;
  transition: opacity .2s;
  position: absolute;
  bottom: 48px;
  right: 15px;
}

.student-hsk-card:hover .student-card-arrow {
  opacity: 1;
}

.student-dashboard-lower {
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 14px;
  margin-top: 30px;
  display: grid;
}

.student-panel {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 11px;
  padding: 20px;
}

.student-panel-title {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 17px;
  display: flex;
}

.student-panel-title > span {
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
}

.student-panel-title svg {
  color: var(--s-red);
}

.student-panel-title small {
  color: var(--s-muted);
  font-size: 9.5px;
}

.student-learning-card h3 {
  margin: 24px 0 8px;
  font-size: 16px;
}

.student-learning-card p {
  color: var(--s-muted);
  font-size: 11px;
  line-height: 1.6;
}

.student-learning-card .student-progress-track {
  margin: 17px 0;
}

.student-primary-button {
  background: var(--s-red);
  color: #fff;
  border: 0;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: max-content;
  margin-top: 16px;
  padding: 10px 15px;
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.student-primary-button:hover {
  background: var(--s-red-dark);
}

.student-activity-list, .student-schedule-list {
  gap: 15px;
  display: grid;
}

.student-activity-list > div, .student-schedule-list > div {
  gap: 10px;
  display: flex;
}

.student-activity-list svg {
  color: #4f8a69;
  flex: none;
  margin-top: 2px;
}

.student-activity-list span, .student-schedule-list span, .student-schedule-list time {
  flex-direction: column;
  display: flex;
}

.student-activity-list strong, .student-schedule-list strong {
  font-size: 10.5px;
  line-height: 1.45;
}

.student-activity-list small, .student-schedule-list small {
  color: var(--s-muted);
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 9px;
  display: flex;
}

.student-schedule-list time {
  border-right: 1px solid var(--s-line);
  min-width: 48px;
  color: var(--s-red);
  padding-right: 10px;
}

.student-course-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}

.student-course-card {
  border: 1px solid var(--s-line);
  color: var(--s-ink);
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  overflow: hidden;
}

.student-course-cover {
  height: 118px;
  color: var(--s-red);
  background: #f4e7e4;
  justify-content: space-between;
  align-items: flex-end;
  padding: 20px;
  display: flex;
}

.student-course-cover span {
  font-family: Noto Serif SC, serif;
  font-size: 22px;
  font-weight: 800;
}

.student-course-body {
  padding: 20px;
}

.student-course-body > small {
  color: var(--s-red);
  font-size: 9px;
  font-weight: 700;
}

.student-course-body h2 {
  margin: 8px 0;
  font-size: 17px;
}

.student-course-body p {
  min-height: 56px;
  color: var(--s-muted);
  font-size: 10.5px;
  line-height: 1.7;
}

.student-course-meta, .student-hero-meta, .student-lesson-header > div > div {
  color: var(--s-muted);
  flex-wrap: wrap;
  gap: 14px;
  margin: 15px 0;
  font-size: 10px;
  display: flex;
}

.student-course-meta span, .student-hero-meta span, .student-lesson-header > div > div span {
  align-items: center;
  gap: 5px;
  display: flex;
}

.student-course-card .student-progress-track {
  margin-top: 17px;
}

.student-breadcrumb {
  color: var(--s-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-bottom: 20px;
  font-size: 10px;
  display: flex;
}

.student-breadcrumb a {
  color: var(--s-muted);
  text-decoration: none;
}

.student-breadcrumb span {
  color: var(--s-ink);
}

.student-course-hero {
  color: #fff;
  background: #2f2927;
  border-radius: 14px;
  grid-template-columns: 1fr 240px;
  align-items: center;
  gap: 40px;
  padding: 32px 36px;
  display: grid;
}

.student-course-hero p {
  color: #cfc5c0;
}

.student-back-link {
  width: max-content;
  color: inherit;
  opacity: .7;
  align-items: center;
  gap: 6px;
  margin-bottom: 24px;
  font-size: 10px;
  text-decoration: none;
  display: flex;
}

.student-course-level {
  color: #e8b8ae;
  letter-spacing: .1em;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 700;
  display: block;
}

.student-course-emblem {
  aspect-ratio: 1;
  outline-offset: 9px;
  border: 1px solid #ffffff38;
  border-radius: 50%;
  outline: 1px solid #ffffff14;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.student-course-emblem strong {
  font-family: Noto Serif SC, serif;
  font-size: 40px;
}

.student-course-emblem span {
  opacity: .65;
  margin-top: 7px;
  font-size: 9px;
}

.student-tabs {
  border-bottom: 1px solid var(--s-line);
  gap: 26px;
  margin: 26px 0 22px;
  display: flex;
  overflow-x: auto;
}

.student-tabs button {
  color: var(--s-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  flex: none;
  padding: 0 2px 12px;
  font-size: 11px;
  font-weight: 700;
}

.student-tabs button.is-active {
  border-bottom-color: var(--s-red);
  color: var(--s-red);
}

.student-course-layout {
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 20px;
  display: grid;
}

.student-lesson-list {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 11px;
  padding: 20px;
  overflow: hidden;
}

.student-lesson-row {
  border-top: 1px solid var(--s-line);
  color: var(--s-ink);
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 5px;
  text-decoration: none;
  display: grid;
}

.student-lesson-state {
  width: 30px;
  height: 30px;
  color: var(--s-muted);
  background: #f4efec;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.student-lesson-state.is-completed {
  color: #41775a;
  background: #e7f2eb;
}

.student-lesson-state.is-learning {
  color: var(--s-red);
  background: #f8e9e8;
}

.student-lesson-row > div {
  gap: 3px;
  display: grid;
}

.student-lesson-row small {
  color: var(--s-red);
  font-size: 8.5px;
  font-weight: 700;
}

.student-lesson-row strong {
  font-size: 11px;
}

.student-lesson-row span:not(.student-lesson-state) {
  color: var(--s-muted);
  align-items: center;
  gap: 4px;
  font-size: 9px;
  display: flex;
}

.student-course-aside {
  align-content: start;
  gap: 14px;
  display: grid;
}

.student-course-aside .student-panel {
  text-align: center;
}

.student-ring {
  --student-progress: 0%;
  background: conic-gradient(var(--s-red) var(--student-progress),#eee8e4 0);
  border-radius: 50%;
  place-items: center;
  width: 94px;
  height: 94px;
  margin: 0 auto 13px;
  display: grid;
  position: relative;
}

.student-ring:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  position: absolute;
  inset: 8px;
}

.student-ring strong {
  z-index: 1;
  position: relative;
}

.student-course-aside h3 {
  margin-bottom: 5px;
  font-size: 13px;
}

.student-course-aside p {
  color: var(--s-muted);
  font-size: 9.5px;
}

.student-outcomes {
  text-align: left !important;
}

.student-outcomes p {
  gap: 7px;
  line-height: 1.5;
  display: flex;
}

.student-outcomes svg {
  color: #4f8a69;
  flex: none;
}

.student-tab-placeholder, .student-empty {
  text-align: center;
  place-items: center;
  min-height: 240px;
  display: grid;
}

.student-tab-placeholder svg, .student-empty svg {
  color: var(--s-red);
}

.student-lesson-header {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 12px;
  justify-content: space-between;
  gap: 30px;
  padding: 26px 30px;
  display: flex;
}

.student-lesson-progress {
  border-left: 1px solid var(--s-line);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 100px;
  display: flex;
}

.student-lesson-progress strong {
  color: var(--s-red);
  font-size: 24px;
}

.student-lesson-progress span {
  color: var(--s-muted);
  font-size: 9px;
}

.student-video-layout {
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 18px;
  display: grid;
}

.student-video-copy {
  margin-top: 16px;
}

.student-video-copy h2 {
  font-size: 18px;
}

.student-video-copy > p {
  color: var(--s-muted);
  font-size: 11px;
  line-height: 1.75;
}

.student-objectives {
  gap: 8px;
  margin-top: 20px;
  display: grid;
}

.student-objectives h3 {
  margin-bottom: 3px;
  font-size: 12px;
}

.student-objectives span {
  color: var(--s-muted);
  gap: 7px;
  font-size: 10px;
  display: flex;
}

.student-objectives svg {
  color: #4f8a69;
}

.student-chapters button {
  border: 0;
  border-top: 1px solid var(--s-line);
  width: 100%;
  color: var(--s-ink);
  cursor: pointer;
  text-align: left;
  background: none;
  grid-template-columns: 29px 1fr;
  gap: 9px;
  padding: 12px 4px;
  display: grid;
}

.student-chapters button > span {
  width: 27px;
  height: 27px;
  color: var(--s-muted);
  background: #f4efec;
  border-radius: 50%;
  place-items: center;
  font-size: 9px;
  display: grid;
}

.student-chapters button.is-active > span {
  background: var(--s-red);
  color: #fff;
}

.student-chapters button div {
  gap: 4px;
  display: grid;
}

.student-chapters strong {
  font-size: 9.5px;
  line-height: 1.4;
}

.student-chapters small {
  color: var(--s-muted);
  font-size: 8.5px;
}

.student-vocabulary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.student-vocab-card {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 11px;
  grid-template-columns: 1fr auto;
  padding: 20px;
  display: grid;
}

.student-vocab-card > div:first-child {
  align-items: baseline;
  gap: 12px;
  display: flex;
}

.student-vocab-card > div strong {
  font-family: Noto Serif SC, serif;
  font-size: 30px;
}

.student-vocab-card > div span {
  color: var(--s-red);
  font-size: 12px;
}

.student-vocab-card h3, .student-vocab-card p, .student-vocab-card small {
  grid-column: 1 / -1;
}

.student-vocab-card h3 {
  margin: 14px 0 6px;
  font-size: 12px;
}

.student-vocab-card p {
  margin-bottom: 4px;
  font-family: Noto Serif SC, serif;
}

.student-vocab-card small {
  color: var(--s-muted);
  font-size: 9px;
}

.student-grammar-list {
  gap: 14px;
  display: grid;
}

.student-grammar-list article {
  grid-template-columns: 48px 1fr;
  gap: 18px;
  display: grid;
}

.student-grammar-index {
  color: #d8c8c3;
  font-size: 22px;
  font-weight: 800;
}

.student-grammar-list h2 {
  font-size: 17px;
}

.student-grammar-list p {
  color: var(--s-muted);
  font-size: 11px;
}

.student-grammar-list code {
  width: max-content;
  max-width: 100%;
  color: var(--s-red);
  background: #f8e9e8;
  border-radius: 7px;
  margin: 12px 0;
  padding: 8px 11px;
  display: block;
}

.student-grammar-list blockquote {
  border-left: 2px solid var(--s-red);
  background: #fcfaf8;
  gap: 3px;
  margin: 8px 0;
  padding: 10px 12px;
  display: grid;
}

.student-grammar-list blockquote span, .student-grammar-list blockquote small {
  color: var(--s-muted);
  font-size: 9.5px;
}

.student-exercises {
  max-width: 900px;
}

.student-resources {
  margin-top: 28px;
}

.student-resources > div:last-child {
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  display: grid;
}

.student-resources a {
  border: 1px solid var(--s-line);
  color: var(--s-ink);
  background: #fff;
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  padding: 13px;
  text-decoration: none;
  display: flex;
}

.student-resources a > span {
  flex: 1;
  gap: 3px;
  display: grid;
}

.student-resources a strong {
  font-size: 10px;
}

.student-resources a small {
  color: var(--s-muted);
  font-size: 8px;
}

.student-resources a > svg {
  color: var(--s-red);
}

.student-lesson-footer {
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
  display: grid;
}

.student-lesson-footer > a {
  border: 1px solid var(--s-line);
  color: var(--s-ink);
  background: #fff;
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  padding: 14px;
  text-decoration: none;
  display: flex;
}

.student-lesson-footer > a:last-child {
  text-align: right;
  justify-content: flex-end;
}

.student-lesson-footer span {
  gap: 3px;
  display: grid;
}

.student-lesson-footer small {
  color: var(--s-muted);
  font-size: 8px;
}

.student-lesson-footer strong {
  font-size: 9.5px;
}

.student-study-heading {
  margin-bottom: 18px;
}

.student-study-tabs {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 9px;
  gap: 4px;
  width: max-content;
  margin-bottom: 18px;
  padding: 4px;
  display: flex;
}

.student-study-tabs button {
  color: var(--s-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 6px;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
}

.student-study-tabs button.is-active {
  background: var(--s-red);
  color: #fff;
}

.student-flashcard-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  display: grid;
}

.student-study-progress {
  color: var(--s-muted);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 9.5px;
  display: grid;
}

.student-flashcard {
  cursor: pointer;
  perspective: 1200px;
  background: none;
  border: 0;
  width: 100%;
  height: 390px;
  padding: 0;
}

.student-flashcard-inner {
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform .5s;
  display: block;
  position: relative;
}

.student-flashcard.is-flipped .student-flashcard-inner {
  transform: rotateY(180deg);
}

.student-flashcard-face {
  border: 1px solid #d7c8c3;
  border-top: 4px solid var(--s-red);
  backface-visibility: hidden;
  background: #fff;
  border-radius: 13px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 28px;
  display: flex;
  position: absolute;
  inset: 0;
}

.student-flashcard-face > small {
  color: var(--s-muted);
  letter-spacing: .15em;
  font-size: 9px;
}

.student-flashcard-face > strong {
  margin: 18px 0 4px;
  font-family: Noto Serif SC, serif;
  font-size: 76px;
  line-height: 1.1;
}

.student-flashcard-face > em {
  color: var(--s-red);
  font-size: 17px;
  font-style: normal;
}

.student-flashcard-face > span:last-child {
  color: var(--s-muted);
  margin-top: 35px;
  font-size: 9px;
}

.student-flashcard-face.is-back {
  color: #fff;
  background: #322b28;
  border-color: #322b28;
  transform: rotateY(180deg);
}

.student-flashcard-face.is-back > strong {
  font-family: inherit;
  font-size: 28px;
}

.student-flashcard-face.is-back p {
  margin: 20px 0 7px;
  font-family: Noto Serif SC, serif;
  font-size: 21px;
}

.student-flashcard-face.is-back > span:last-child {
  color: #d7cec9;
  margin-top: 8px;
}

.student-pronunciation-panel {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 10px;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 14px;
  display: flex;
}

.student-pronunciation-panel > div {
  align-items: center;
  gap: 10px;
  display: flex;
}

.student-pronunciation-panel > div > span:not(.student-audio-mark) {
  gap: 3px;
  display: grid;
}

.student-pronunciation-panel strong {
  font-size: 10px;
}

.student-pronunciation-panel small {
  color: var(--s-muted);
  font-size: 8.5px;
}

.student-audio-mark {
  width: 36px;
  height: 36px;
  color: var(--s-red);
  background: #f8e9e8;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.student-flashcard-actions {
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  display: grid;
}

.student-flashcard-actions button, .student-study-footer button, .student-word-tools > button {
  border: 1px solid var(--s-line);
  color: var(--s-ink);
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
}

.student-flashcard-actions button.is-primary, .student-study-footer button {
  background: var(--s-red);
  border-color: var(--s-red);
  color: #fff;
}

.student-vocab-sidebar {
  padding: 14px;
}

.student-vocab-sidebar button {
  border: 0;
  border-top: 1px solid var(--s-line);
  width: 100%;
  color: var(--s-ink);
  cursor: pointer;
  text-align: left;
  background: none;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 10px 7px;
  display: grid;
}

.student-vocab-sidebar button.is-active {
  color: var(--s-red);
  background: #f8e9e8;
  border-radius: 7px;
}

.student-vocab-sidebar button > span {
  background: #f2eeeb;
  border-radius: 50%;
  place-items: center;
  width: 23px;
  height: 23px;
  font-size: 8px;
  display: grid;
}

.student-vocab-sidebar button div {
  gap: 3px;
  display: grid;
}

.student-vocab-sidebar strong {
  font-family: Noto Serif SC, serif;
  font-size: 16px;
}

.student-vocab-sidebar small {
  color: var(--s-muted);
  font-size: 8.5px;
}

.student-study-footer {
  border-top: 1px solid var(--s-line);
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding-top: 17px;
  font-size: 9.5px;
  display: flex;
}

.student-study-footer a {
  color: var(--s-muted);
  align-items: center;
  gap: 6px;
  text-decoration: none;
  display: flex;
}

.student-word-list {
  gap: 10px;
  display: grid;
}

.student-word-row {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 10px;
  grid-template-columns: 30px 130px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px;
  display: grid;
}

.student-favorite {
  color: #c9bfba;
  cursor: pointer;
  background: none;
  border: 0;
}

.student-favorite.is-active {
  color: var(--s-red);
  fill: var(--s-red);
}

.student-word-main {
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 7px;
  display: grid;
}

.student-word-main strong {
  font-family: Noto Serif SC, serif;
  font-size: 26px;
}

.student-word-main span {
  color: var(--s-red);
  font-size: 11px;
}

.student-word-main em {
  color: var(--s-muted);
  grid-column: 1 / -1;
  font-size: 8px;
  font-style: normal;
}

.student-word-meaning strong {
  font-size: 11px;
}

.student-word-meaning p {
  margin: 5px 0 2px;
  font-family: Noto Serif SC, serif;
  font-size: 12px;
}

.student-word-meaning small {
  color: var(--s-muted);
  font-size: 8px;
}

.student-word-tools {
  align-items: flex-start;
  gap: 7px;
  display: flex;
}

.student-word-tools > button.is-known {
  color: #41775a;
  border-color: #9ac4a9;
}

.student-deck-card .student-course-body p {
  min-height: auto;
}

.student-sidebar-backdrop {
  display: none;
}

@media (max-width: 1200px) {
  .student-hsk-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .student-dashboard-lower {
    grid-template-columns: 1fr 1fr;
  }

  .student-learning-card {
    grid-column: 1 / -1;
  }

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

@media (max-width: 900px) {
  .student-sidebar {
    transition: transform .25s;
    transform: translateX(-100%);
    box-shadow: 12px 0 30px #2c1c161f;
  }

  .student-sidebar.is-open {
    transform: translateX(0);
  }

  .student-sidebar-backdrop.is-open {
    z-index: 35;
    background: #201a1859;
    border: 0;
    display: block;
    position: fixed;
    inset: 0;
  }

  .student-sidebar-close, .student-menu-button {
    color: var(--s-ink);
    cursor: pointer;
    background: none;
    border: 0;
    place-items: center;
    display: grid;
  }

  .student-sidebar-close {
    margin-left: auto;
  }

  .student-main {
    width: 100%;
    margin-left: 0;
  }

  .student-header {
    padding: 0 20px;
  }

  .student-header > .tng-role-switcher {
    margin-right: auto;
  }

  .student-content {
    padding: 26px 22px 45px;
  }

  .student-course-layout, .student-video-layout, .student-flashcard-layout {
    grid-template-columns: 1fr;
  }

  .student-course-aside {
    grid-template-columns: 1fr 1fr;
  }

  .student-vocab-sidebar {
    order: -1;
    max-height: 270px;
    overflow: auto;
  }

  .student-word-row {
    grid-template-columns: 30px 110px 1fr;
  }

  .student-word-tools {
    grid-column: 2 / -1;
  }
}

@media (max-width: 640px) {
  .student-header {
    flex-wrap: wrap;
    gap: 8px;
    height: auto;
    min-height: 64px;
    padding: 10px 14px;
  }

  .student-header > .tng-role-switcher {
    order: 3;
    width: 100%;
  }

  .student-header-actions {
    margin-left: auto;
  }

  .student-demo-badge {
    display: none;
  }

  .student-content {
    padding: 22px 14px 38px;
  }

  .student-welcome {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .student-streak {
    width: 100%;
  }

  .student-page-heading h1, .student-welcome h1, .student-course-hero h1, .student-lesson-header h1 {
    font-size: 24px;
  }

  .student-hsk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-dashboard-lower, .student-course-grid, .student-course-aside, .student-vocabulary-grid, .student-resources > div:last-child {
    grid-template-columns: 1fr;
  }

  .student-learning-card {
    grid-column: auto;
  }

  .student-course-hero {
    grid-template-columns: 1fr;
    padding: 24px 20px;
  }

  .student-course-emblem {
    display: none;
  }

  .student-lesson-header {
    flex-direction: column;
    padding: 20px;
  }

  .student-lesson-progress {
    border-top: 1px solid var(--s-line);
    border-left: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    padding-top: 14px;
  }

  .student-flashcard {
    height: 330px;
  }

  .student-flashcard-face > strong {
    font-size: 60px;
  }

  .student-pronunciation-panel {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-pronunciation-panel > div:last-child {
    flex-wrap: wrap;
  }

  .student-flashcard-actions {
    grid-template-columns: 1fr 1fr;
  }

  .student-word-row {
    grid-template-columns: 26px 1fr;
  }

  .student-word-meaning, .student-word-tools {
    grid-column: 2;
  }

  .student-word-tools {
    flex-direction: column;
  }

  .student-study-footer {
    flex-wrap: wrap;
  }

  .student-study-footer > span {
    text-align: center;
    order: 3;
    width: 100%;
  }

  .student-lesson-footer {
    grid-template-columns: 1fr;
  }

  .student-hsk-card {
    min-height: 190px;
    padding: 15px;
  }
}

.student-hsk-intro {
  min-height: 155px;
  padding: 8px 260px 20px 0;
  position: relative;
  overflow: hidden;
}

.student-hsk-title {
  align-items: center;
  gap: 17px;
  margin-bottom: 18px;
  display: flex;
}

.student-hsk-title h1 {
  margin: 0 0 5px;
  font-family: Be Vietnam Pro, Segoe UI, sans-serif;
  font-size: 28px;
}

.student-hsk-title p {
  color: var(--s-ink);
  margin: 0;
  font-size: 11px;
}

.student-hsk-badge {
  background: var(--s-red);
  color: #fff;
  border-radius: 50%;
  flex-direction: column;
  flex: none;
  justify-content: center;
  align-items: center;
  width: 62px;
  height: 62px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.05;
  display: flex;
}

.student-hsk-badge strong {
  font-size: 16px;
}

.student-hsk-intro > p {
  max-width: 720px;
  color: var(--s-ink);
  margin: 0;
  font-size: 11.5px;
  line-height: 1.8;
}

.student-hsk-art {
  color: #b52b2d;
  background: radial-gradient(at bottom, #f8e4d3 0, #f8e4d300 67%);
  border-radius: 50% 50% 10px 10px;
  justify-content: center;
  align-items: flex-end;
  width: 205px;
  height: 130px;
  display: flex;
  position: absolute;
  bottom: 0;
  right: 25px;
}

.student-hsk-art:before, .student-hsk-art:after {
  content: "";
  transform-origin: bottom;
  background: #ead9c8;
  width: 4px;
  height: 110px;
  position: absolute;
  bottom: 23px;
  right: 22px;
  transform: rotate(16deg);
}

.student-hsk-art:after {
  height: 88px;
  right: 48px;
  transform: rotate(-12deg);
}

.student-hsk-art span {
  color: #ead9c8;
  opacity: .7;
  font-family: Noto Serif SC, serif;
  font-size: 42px;
  position: absolute;
  top: 1px;
  right: 12px;
}

.student-hsk-art svg {
  z-index: 1;
  filter: drop-shadow(0 8px 8px #74301f1f);
  position: relative;
}

.student-course-facts {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 20px;
  padding: 17px 12px;
  display: grid;
}

.student-course-facts > div {
  border-right: 1px solid var(--s-line);
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  display: flex;
}

.student-course-facts > div:last-child {
  border-right: 0;
}

.student-course-facts > div > span {
  color: #eb3a34;
  background: #fff8f6;
  border: 1px solid #f4d6d2;
  border-radius: 9px;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}

.student-course-facts p {
  color: var(--s-muted);
  flex-direction: column;
  gap: 4px;
  margin: 0;
  font-size: 9.5px;
  display: flex;
}

.student-course-facts strong {
  color: var(--s-ink);
  font-size: 13px;
}

.student-hsk-detail > .student-tabs {
  margin-top: 0;
}

.student-hsk-detail .student-course-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.student-hsk-detail .student-lesson-list {
  padding: 12px 14px 14px;
}

.student-hsk-detail .student-section-heading {
  margin: 0;
  padding: 4px 5px 12px;
}

.student-hsk-detail .student-section-heading h2 {
  font-size: 15px;
}

.student-hsk-detail .student-lesson-row {
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 13px;
  min-height: 70px;
  padding: 11px 0;
}

.student-lesson-number {
  background: #fff7f5;
  border: 1px solid #f4d9d5;
  border-radius: 9px;
  place-items: center;
  width: 44px;
  height: 44px;
  font-weight: 800;
  color: var(--s-red) !important;
  font-size: 15px !important;
  display: grid !important;
}

.student-lesson-copy {
  display: grid;
  gap: 7px !important;
}

.student-lesson-copy > strong {
  font-size: 11.5px !important;
}

.student-lesson-meta {
  flex-wrap: wrap;
  color: var(--s-muted) !important;
  gap: 14px !important;
  display: flex !important;
}

.student-lesson-meta > span {
  align-items: center;
  gap: 5px;
  color: var(--s-muted) !important;
  font-size: 8.8px !important;
  display: inline-flex !important;
}

.student-lesson-meta svg {
  color: #e4302b;
}

.student-learn-now {
  border: 1px solid #ee645e;
  border-radius: 7px;
  place-items: center;
  min-width: 76px;
  height: 34px;
  padding: 0 12px;
  font-weight: 700;
  color: #d92621 !important;
  font-size: 9.5px !important;
  display: grid !important;
}

.student-more-lessons {
  color: var(--s-red);
  cursor: pointer;
  background: #fff;
  border: 1px solid #efa39f;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  margin: 13px auto 0;
  padding: 9px 18px;
  font-size: 9px;
  font-weight: 700;
  display: flex;
}

.student-progress-panel {
  text-align: left !important;
}

.student-progress-panel h3, .student-outcomes h3 {
  font-size: 14px;
}

.student-progress-panel .student-ring {
  margin: 12px auto;
}

.student-progress-panel > p {
  text-align: center;
}

.student-progress-panel .student-progress-track {
  margin: 12px 0;
}

.student-progress-panel .student-primary-button {
  width: 100%;
  margin: 2px 0 9px;
}

.student-favorite-course {
  width: 100%;
  color: var(--s-red);
  cursor: pointer;
  background: #fff;
  border: 1px solid #e75d57;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 9px;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
}

.student-hsk-detail .student-outcomes p {
  color: var(--s-ink);
}

.student-hsk-detail .student-outcomes svg {
  color: #e4302b;
}

@media (max-width: 900px) {
  .student-hsk-detail .student-course-layout {
    grid-template-columns: 1fr;
  }

  .student-course-facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 18px;
  }

  .student-course-facts > div:nth-child(2) {
    border-right: 0;
  }

  .student-hsk-detail .student-course-aside {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .student-hsk-intro {
    padding-right: 0;
  }

  .student-hsk-art {
    display: none;
  }

  .student-course-facts {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 4px 14px;
  }

  .student-course-facts > div {
    border-right: 0;
    border-bottom: 1px solid var(--s-line);
    padding: 12px 0;
  }

  .student-course-facts > div:last-child {
    border-bottom: 0;
  }

  .student-hsk-detail .student-course-aside {
    grid-template-columns: 1fr;
  }

  .student-hsk-detail .student-lesson-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .student-learn-now {
    grid-column: 2;
    width: max-content;
  }

  .student-lesson-meta {
    gap: 8px !important;
  }
}

.student-hsk-catalog-header {
  margin-bottom: 28px;
}

.student-hsk-catalog-header h1 {
  margin-bottom: 9px;
  font-family: Noto Serif SC, Be Vietnam Pro, serif;
  font-size: 30px;
}

.student-hsk-catalog-header p {
  color: var(--s-muted);
  margin: 0;
  font-size: 13px;
}

.student-hsk-catalog-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  display: grid;
}

.student-hsk-course-card {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 12px;
  flex-direction: column;
  min-height: 360px;
  padding: 22px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  display: flex;
  position: relative;
}

.student-hsk-course-card:hover {
  border-color: #d8b9b5;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px #40251c0f;
}

.student-hsk-card-link {
  z-index: 1;
  border-radius: inherit;
  position: absolute;
  inset: 0;
}

.student-hsk-course-top {
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  display: flex;
}

.student-hsk-course-badge {
  background: var(--s-red);
  color: #fff;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 58px;
  height: 58px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  display: flex;
}

.student-hsk-course-badge strong {
  margin-top: 3px;
  font-size: 18px;
}

.student-hsk-level {
  color: var(--s-muted);
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
}

.student-hsk-level svg {
  color: var(--s-red);
}

.student-hsk-course-card h2 {
  margin: 21px 0 9px;
  font-size: 18px;
}

.student-hsk-course-card > p {
  color: var(--s-muted);
  flex: 1;
  margin: 0;
  font-size: 11px;
  line-height: 1.75;
}

.student-hsk-course-meta {
  color: var(--s-muted);
  flex-wrap: wrap;
  gap: 15px;
  margin: 18px 0;
  font-size: 10px;
  display: flex;
}

.student-hsk-course-meta span {
  align-items: center;
  gap: 6px;
  display: flex;
}

.student-hsk-course-meta svg {
  color: var(--s-red);
}

.student-hsk-course-progress {
  gap: 8px;
  margin-bottom: 17px;
  display: grid;
}

.student-hsk-course-progress > div:first-child {
  color: var(--s-muted);
  justify-content: space-between;
  font-size: 9.5px;
  display: flex;
}

.student-hsk-course-progress strong {
  color: var(--s-red);
}

.student-hsk-course-cta {
  z-index: 2;
  border: 1px solid var(--s-red);
  color: var(--s-red);
  background: #fff;
  border-radius: 8px;
  justify-content: space-between;
  align-items: center;
  padding: 11px 13px;
  font-size: 10.5px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  position: relative;
}

.student-hsk-course-cta:hover {
  background: var(--s-red);
  color: #fff;
}

@media (max-width: 1100px) {
  .student-hsk-catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .student-hsk-catalog-header h1 {
    font-size: 25px;
  }

  .student-hsk-catalog-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-hsk-course-card {
    min-height: 340px;
  }

  .student-hsk-catalog {
    overflow-x: clip;
  }
}

.student-hsk-home {
  margin-top: -7px;
}

.student-hsk-greeting {
  min-height: 105px;
  padding: 0 245px 18px 0;
  position: relative;
  overflow: hidden;
}

.student-hsk-greeting h1 {
  letter-spacing: -.025em;
  margin: 0 0 7px;
  font-family: Be Vietnam Pro, Segoe UI, sans-serif;
  font-size: 25px;
  line-height: 1.35;
}

.student-hsk-greeting h1 span {
  font-size: 22px;
}

.student-hsk-greeting p {
  color: #191514;
  margin: 0;
  font-size: 14px;
}

.student-hsk-decoration {
  color: #a8241e;
  background: radial-gradient(at 72% 84%, #f3d5bd 0, #f3d5bd73 25%, #0000 66%);
  width: 230px;
  height: 139px;
  position: absolute;
  top: -34px;
  right: 3px;
}

.student-hsk-decoration:before, .student-hsk-decoration:after {
  content: "";
  background: #e9ded2;
  border-radius: 100%;
  width: 7px;
  height: 125px;
  position: absolute;
  top: -7px;
  right: 67px;
  transform: rotate(13deg);
}

.student-hsk-decoration:after {
  height: 108px;
  right: 98px;
  transform: rotate(-11deg);
}

.student-hsk-decoration > span {
  color: #e6dbd0;
  opacity: .8;
  font-family: Noto Serif SC, serif;
  font-size: 55px;
  position: absolute;
  top: 7px;
  right: 112px;
}

.student-hsk-decoration svg {
  filter: drop-shadow(0 7px 6px #732f1d2b);
  position: absolute;
  bottom: 4px;
  right: 16px;
  transform: rotate(-4deg);
}

.student-hsk-courses-section {
  margin-bottom: 25px;
}

.student-hsk-section-title {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  display: flex;
}

.student-hsk-section-title h2 {
  align-items: center;
  gap: 11px;
  margin: 0;
  font-size: 19px;
  display: flex;
}

.student-hsk-section-title h2 > span {
  color: #d72720;
  background: #fff0ec;
  border-radius: 7px;
  place-items: center;
  width: 31px;
  height: 31px;
  display: grid;
}

.student-hsk-section-title > a, .student-hsk-summary-card > a {
  color: #d2251e;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
}

.student-hsk-level-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  display: grid;
}

.student-hsk-level-card {
  min-width: 0;
  min-height: 257px;
  color: var(--s-ink);
  background: #ffffffd1;
  border: 1px solid #e8e1dc;
  border-radius: 9px;
  padding: 21px 17px 16px;
  text-decoration: none;
  transition: transform .18s, box-shadow .18s, border-color .18s;
  position: relative;
}

.student-hsk-level-card:hover {
  border-color: #e1bbb7;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px #4322190f;
}

.student-hsk-level-badge {
  color: #fff;
  background: linear-gradient(145deg, #c4251d, #a90f0a);
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 52px;
  height: 52px;
  line-height: 1;
  display: flex;
}

.student-hsk-level-badge span {
  font-size: 13px;
  font-weight: 700;
}

.student-hsk-level-badge strong {
  margin-top: 2px;
  font-size: 15px;
}

.student-hsk-level-card h3 {
  margin: 17px 0 8px;
  font-size: 15px;
}

.student-hsk-level-card > p {
  color: #27211f;
  height: 45px;
  margin: 0 0 11px;
  font-size: 10.5px;
  line-height: 1.8;
}

.student-progress-track {
  background: #eee9e6;
  border-radius: 999px;
  height: 5px;
  overflow: hidden;
}

.student-progress-track i {
  border-radius: inherit;
  background: linear-gradient(90deg, #c5231c, #df3028);
  height: 100%;
  display: block;
}

.student-hsk-level-progress {
  justify-content: space-between;
  margin-top: 11px;
  font-size: 9.5px;
  display: flex;
}

.student-hsk-level-progress strong {
  font-weight: 500;
}

.student-hsk-level-arrow {
  color: #e12821;
  border: 1px solid #ef433a;
  border-radius: 50%;
  place-items: center;
  width: 24px;
  height: 24px;
  display: grid;
  position: absolute;
  bottom: 14px;
  right: 16px;
}

.student-hsk-summary-grid {
  grid-template-columns: 1.03fr 1.03fr 1.06fr;
  gap: 15px;
  display: grid;
}

.student-hsk-summary-card {
  background: #ffffffd4;
  border: 1px solid #e8e1dc;
  border-radius: 9px;
  flex-direction: column;
  min-height: 330px;
  padding: 21px 19px 17px;
  display: flex;
}

.student-hsk-summary-card h2 {
  margin: 0 0 16px;
  font-size: 17px;
}

.student-hsk-summary-card > a:not(.student-hsk-start-button) {
  margin-top: auto;
}

.student-hsk-learning-list {
  gap: 15px;
  display: grid;
}

.student-hsk-learning-list > div > p {
  grid-template-columns: 1fr auto auto;
  gap: 18px;
  margin: 0 0 9px;
  font-size: 10.5px;
  display: grid;
}

.student-hsk-learning-list strong {
  font-size: 11px;
}

.student-hsk-learning-list em {
  font-style: normal;
}

.student-hsk-activity-list {
  margin-top: -3px;
}

.student-hsk-activity-list > div {
  border-bottom: 1px solid #eee8e4;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 55px;
  display: grid;
}

.student-hsk-activity-list > div > span, .student-hsk-schedule-row > span {
  color: #d92320;
  background: #fff8f5;
  border: 1px solid #f0e8e2;
  border-radius: 8px;
  place-items: center;
  width: 35px;
  height: 35px;
  display: grid;
}

.student-hsk-activity-list .is-listening, .student-hsk-schedule-row .is-listening {
  color: #dc940e;
}

.student-hsk-activity-list .is-ai, .student-hsk-schedule-row .is-ai {
  color: #d92320;
}

.student-hsk-activity-list .is-vocabulary {
  color: #278866;
}

.student-hsk-activity-list p, .student-hsk-schedule-row p {
  flex-direction: column;
  gap: 4px;
  margin: 0;
  display: flex;
}

.student-hsk-activity-list strong, .student-hsk-schedule-row strong {
  font-size: 10.5px;
}

.student-hsk-activity-list small, .student-hsk-schedule-row small {
  color: #6f6762;
  font-size: 9.5px;
}

.student-hsk-activity-list em {
  font-size: 9.5px;
  font-style: normal;
}

.student-hsk-schedule > div {
  gap: 8px;
  display: grid;
}

.student-hsk-schedule-row {
  background: #fbf7f2;
  border-radius: 8px;
  grid-template-columns: 53px 35px 1fr;
  align-items: center;
  gap: 10px;
  min-height: 63px;
  padding: 8px 12px;
  display: grid;
}

.student-hsk-schedule-row time {
  font-size: 11px;
  font-weight: 700;
}

.student-hsk-start-button {
  background: linear-gradient(90deg, #bd211a, #d3261e);
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-top: auto;
  font-weight: 700;
  text-decoration: none;
  display: flex;
  color: #fff !important;
  font-size: 11px !important;
}

@media (min-width: 851px) {
  .student-hsk-level-grid {
    gap: 10px;
  }

  .student-hsk-level-card {
    min-height: 228px;
    padding: 16px 14px 13px;
  }

  .student-hsk-level-badge {
    width: 46px;
    height: 46px;
  }

  .student-hsk-level-badge span {
    font-size: 11.5px;
  }

  .student-hsk-level-badge strong {
    font-size: 14px;
  }

  .student-hsk-level-card h3 {
    margin: 13px 0 6px;
    font-size: 14px;
  }

  .student-hsk-level-card > p {
    height: 40px;
    margin-bottom: 9px;
    font-size: 9.5px;
    line-height: 1.65;
  }

  .student-hsk-level-progress {
    margin-top: 9px;
    font-size: 9px;
  }

  .student-hsk-level-arrow {
    width: 22px;
    height: 22px;
    bottom: 11px;
    right: 13px;
  }

  .student-hsk-courses-section {
    margin-bottom: 21px;
  }
}

@media (max-width: 1350px) {
  .student-hsk-level-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .student-hsk-level-card {
    min-height: 245px;
  }

  .student-hsk-summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .student-hsk-schedule {
    grid-column: 1 / -1;
  }
}

@media (max-width: 850px) {
  .student-hsk-greeting {
    padding-right: 0;
  }

  .student-hsk-decoration {
    display: none;
  }

  .student-hsk-level-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-hsk-summary-grid {
    grid-template-columns: 1fr;
  }

  .student-hsk-schedule {
    grid-column: auto;
  }
}

@media (max-width: 480px) {
  .student-hsk-level-grid {
    grid-template-columns: 1fr;
  }

  .student-hsk-level-card {
    min-height: 230px;
  }

  .student-hsk-summary-card {
    padding: 18px 15px;
  }

  .student-hsk-learning-list > div > p {
    gap: 8px;
  }

  .student-hsk-greeting h1 {
    font-size: 22px;
  }
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

img, svg, video, canvas {
  max-width: 100%;
}

.tng-scope, .student-scope {
  overflow-x: clip;
}

.tng-card, .tng-section-title-copy {
  min-width: 0;
}

.tng-card input, .tng-card textarea, .tng-card select {
  max-width: 100%;
}

@media (max-width: 900px) {
  .tng-shell-layout {
    min-height: 100vh !important;
  }

  .tng-sidebar {
    z-index: 20;
    overflow: hidden;
    position: relative !important;
  }

  .tng-sidebar-brand {
    width: 100%;
  }

  .tng-sidebar-nav {
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .tng-sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  .tng-shell-main {
    width: 100% !important;
  }

  .tng-shell-header {
    z-index: 15;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    background: #f8fafcf5 !important;
  }

  .tng-table-scroll {
    -webkit-overflow-scrolling: touch;
    overflow-x: auto !important;
  }

  .tng-card {
    min-width: 0;
  }

  .tng-section-title {
    align-items: flex-start !important;
  }

  .tng-section-title-copy {
    flex: 320px;
  }

  .tng-section-title > :last-child:not(.tng-section-title-copy) {
    max-width: 100%;
  }

  .student-content {
    width: 100%;
    max-width: none;
  }

  .student-section-heading {
    align-items: center;
  }

  .student-tabs, .student-study-tabs {
    scrollbar-width: none;
    max-width: 100%;
    overflow-x: auto;
  }

  .student-study-tabs button {
    flex: none;
  }

  .student-hsk-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-dashboard-lower {
    grid-template-columns: 1fr 1fr;
  }

  .student-learning-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .tng-shell-content {
    padding: 18px 14px 30px !important;
  }

  .tng-shell-header {
    gap: 8px !important;
    padding: 10px 14px !important;
  }

  .tng-shell-header .tng-role-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px !important;
    padding: 4px !important;
    display: grid !important;
  }

  .tng-shell-header .tng-role-switcher button {
    white-space: nowrap;
    min-width: 0;
    padding: 7px 6px !important;
    font-size: 11px !important;
  }

  .tng-section-title {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px !important;
    margin-bottom: 18px !important;
    display: grid !important;
  }

  .tng-section-title h2 {
    overflow-wrap: anywhere;
    font-size: 22px !important;
  }

  .tng-section-title p {
    font-size: 12.5px !important;
  }

  .tng-section-title > :last-child:not(.tng-section-title-copy) {
    width: 100%;
  }

  .tng-section-title .tng-btn {
    justify-content: center;
    width: 100%;
  }

  .tng-card {
    border-radius: 9px !important;
    padding: 14px !important;
  }

  .tng-table-scroll {
    padding: 0 !important;
  }

  .tng-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .tng-mobile-stack {
    flex-wrap: wrap !important;
    align-items: flex-start !important;
  }

  .tng-mobile-stack > div:nth-child(2) {
    min-width: 0;
    flex: calc(100% - 64px) !important;
  }

  .tng-mobile-stack > .tng-btn, .tng-mobile-stack > span:last-child {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .tng-responsive-grid {
    gap: 12px !important;
  }

  .tng-grading-grid > div:first-child {
    gap: 8px;
    padding-bottom: 3px;
    display: flex;
    overflow-x: auto;
  }

  .tng-grading-grid > div:first-child > div {
    min-width: 190px;
    margin-bottom: 0 !important;
  }

  .tng-btn {
    min-height: 40px;
  }

  .tng-card input, .tng-card textarea, .tng-card select {
    font-size: 16px !important;
  }

  .student-header > .tng-role-switcher {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px !important;
    display: grid !important;
  }

  .student-header > .tng-role-switcher button {
    white-space: nowrap;
    min-width: 0;
    padding: 7px 5px !important;
    font-size: 10.5px !important;
  }

  .student-header .student-profile-trigger {
    border: 0;
    width: 38px;
    height: 38px;
    padding: 2px;
  }

  .student-header .student-profile-copy, .student-header .student-profile-trigger > svg {
    display: none;
  }

  .student-page-heading, .student-hsk-catalog-header {
    margin-bottom: 20px;
  }

  .student-section-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
  }

  .student-section-heading > a {
    align-items: center;
    min-height: 36px;
  }

  .student-hsk-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-dashboard-lower {
    grid-template-columns: 1fr;
  }

  .student-learning-card {
    grid-column: auto;
  }

  .student-panel {
    padding: 16px;
  }

  .student-course-layout, .student-video-layout, .student-flashcard-layout {
    gap: 14px;
  }

  .student-lesson-list {
    padding: 14px;
  }

  .student-course-aside {
    grid-template-columns: 1fr;
  }

  .student-lesson-row {
    grid-template-columns: 32px minmax(0, 1fr);
    align-items: start;
  }

  .student-lesson-row > span:last-child {
    grid-column: 2;
  }

  .student-study-tabs {
    width: 100%;
  }

  .student-word-row {
    padding: 12px;
  }

  .student-hsk-section-title {
    align-items: center;
  }

  .student-hsk-level-card > p {
    height: auto;
    min-height: 45px;
  }

  .student-hsk-schedule-row {
    grid-template-columns: 45px 34px minmax(0, 1fr);
    padding: 8px;
  }

  .student-hsk-activity-list > div {
    grid-template-columns: 34px minmax(0, 1fr) auto;
  }

  .student-hsk-learning-list > div > p {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .student-hsk-learning-list > div > p span {
    grid-row: 2;
  }

  .student-hsk-learning-list > div > p em {
    grid-area: 1 / 2;
  }

  .student-course-facts {
    width: 100%;
  }
}

.teacher-ai-practice-page {
  gap: 16px;
  display: grid;
}

.teacher-ai-practice-layout {
  grid-template-columns: minmax(0, 7fr) minmax(280px, 3fr);
  align-items: start;
  gap: 14px;
  display: grid;
}

.teacher-ai-practice-layout > main, .teacher-ai-practice-layout > aside {
  gap: 13px;
  display: grid;
}

.teacher-ai-practice-layout > aside {
  position: sticky;
  top: 88px;
}

.teacher-ai-config-stack {
  gap: 13px;
  display: grid;
}

.teacher-ai-exercise-types {
  gap: 7px;
  display: grid;
}

.teacher-ai-exercise-types > strong {
  font-size: 12.5px;
}

.teacher-ai-exercise-types label {
  border: 1px solid var(--s-line);
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  padding: 7px 9px;
  display: flex;
}

.teacher-ai-exercise-types input {
  accent-color: var(--s-red);
}

.teacher-ai-safety-card, .teacher-ai-summary {
  align-items: flex-start;
  gap: 11px;
  display: flex;
}

.teacher-ai-safety-card > svg, .teacher-ai-summary > svg {
  color: var(--s-red);
  flex: none;
}

.teacher-ai-safety-card p, .teacher-ai-summary p {
  color: var(--s-muted);
  margin: 4px 0 0;
  line-height: 1.55;
}

.teacher-ai-summary {
  align-items: center;
}

.teacher-ai-summary > .tng-pill {
  margin-left: auto;
}

@media (max-width: 900px) {
  .teacher-ai-practice-layout {
    grid-template-columns: 1fr;
  }

  .teacher-ai-practice-layout > aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .teacher-ai-practice-page .tng-page-header-actions, .teacher-ai-practice-page .tng-page-header-actions .tng-btn {
    width: 100%;
  }

  .teacher-ai-practice-page .tng-page-header-actions .tng-btn {
    justify-content: center;
  }

  .teacher-ai-summary {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .teacher-ai-summary > .tng-pill {
    margin-left: 30px;
  }
}

@media (max-width: 420px) {
  .tng-dashboard-stats {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .tng-shell-header .tng-role-switcher button, .student-header > .tng-role-switcher button {
    font-size: 9.5px !important;
  }

  .student-content {
    padding: 18px 11px 30px;
  }

  .student-hsk-grid, .student-hsk-level-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-hsk-level-card {
    min-height: 220px;
  }

  .student-flashcard-actions {
    grid-template-columns: 1fr;
  }

  .student-pronunciation-panel > div:last-child {
    width: 100%;
  }

  .student-pronunciation-panel button {
    flex: 1;
  }

  .student-hsk-section-title h2 {
    font-size: 17px;
  }

  .student-hsk-section-title > a {
    font-size: 10px;
  }

  .student-hsk-summary-card {
    min-height: 0;
  }

  .student-hsk-start-button {
    margin-top: 18px;
  }
}

@media (min-width: 851px) {
  .student-hsk-level-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .student-hsk-level-card {
    min-height: 182px;
    padding: 12px 11px 10px;
  }

  .student-hsk-level-badge {
    width: 40px;
    height: 40px;
  }

  .student-hsk-level-badge span {
    font-size: 12.5px;
  }

  .student-hsk-level-badge strong {
    font-size: 15px;
  }

  .student-hsk-level-card h3 {
    margin: 9px 0 4px;
    font-size: 16px;
  }

  .student-hsk-level-card > p {
    height: 38px;
    min-height: 0;
    margin-bottom: 6px;
    font-size: 12.5px;
    line-height: 1.45;
    overflow: hidden;
  }

  .student-hsk-level-progress {
    margin-top: 6px;
    padding-right: 22px;
    font-size: 12.5px;
  }

  .student-hsk-level-arrow {
    width: 20px;
    height: 20px;
    bottom: 8px;
    right: 9px;
  }

  .student-hsk-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
  }

  .student-hsk-schedule {
    grid-column: auto;
  }

  .student-hsk-summary-card {
    min-height: 264px;
    padding: 15px 15px 12px;
  }

  .student-hsk-summary-card h2 {
    margin-bottom: 10px;
    font-size: 16px;
  }

  .student-hsk-learning-list {
    gap: 9px;
  }

  .student-hsk-learning-list > div > p {
    margin-bottom: 6px;
  }

  .student-hsk-activity-list > div {
    min-height: 44px;
  }

  .student-hsk-activity-list > div > span, .student-hsk-schedule-row > span {
    width: 31px;
    height: 31px;
  }

  .student-hsk-schedule > div {
    gap: 6px;
  }

  .student-hsk-schedule-row {
    grid-template-columns: 48px 31px minmax(0, 1fr);
    min-height: 48px;
    padding: 5px 9px;
  }

  .student-hsk-start-button {
    min-height: 36px;
  }
}

body :where(:not(h1):not(h2):not(h3):not(h4):not(h5):not(h6):not(h1 *):not(h2 *):not(h3 *):not(h4 *):not(h5 *):not(h6 *)) {
  font-size: 12.5px !important;
}

.student-vocabulary-study {
  min-width: 0;
}

.student-vocabulary-mode-tabs {
  border-bottom: 1px solid var(--s-line);
  gap: 24px;
  margin-bottom: 12px;
  display: flex;
}

.student-vocabulary-mode-tabs button {
  color: var(--s-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  padding: 0 14px 11px;
  font-weight: 700;
}

.student-vocabulary-mode-tabs button.is-active {
  color: #dc2621;
  border-color: #dc2621;
}

.student-vocabulary-workspace {
  grid-template-columns: minmax(0, 1.05fr) minmax(350px, .95fr);
  gap: 20px;
  display: grid;
}

.student-vocabulary-focus-card, .student-vocabulary-list-panel {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 10px;
  position: relative;
}

.student-vocabulary-count {
  color: var(--s-muted);
}

.student-vocabulary-count strong {
  color: #df2924;
}

.student-vocabulary-sound {
  color: #dc2722;
  cursor: pointer;
  background: #fde9e8;
  border: 0;
  border-radius: 50%;
  place-items: center;
  width: 43px;
  height: 43px;
  display: grid;
  position: absolute;
  top: 17px;
  right: 19px;
}

.student-vocabulary-word {
  flex-direction: column;
  align-items: center;
  padding: 22px 15px 12px;
  display: flex;
}

.student-vocabulary-word > strong {
  font-family: Noto Serif SC, serif;
  line-height: 1.15;
  font-size: 48px !important;
}

.student-vocabulary-word > span {
  color: #d82420;
  margin-top: 4px;
  font-weight: 700;
  font-size: 19px !important;
}

.student-vocabulary-word > p {
  color: var(--s-muted);
  margin: 4px 0 0;
  font-size: 16px !important;
}

.student-vocabulary-example {
  background: #fff8f2;
  border-radius: 9px;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  padding: 13px 15px;
  display: grid;
}

.student-vocabulary-example > span {
  font-weight: 700;
}

.student-vocabulary-example > div {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.student-vocabulary-example strong {
  font-family: Noto Serif SC, serif;
  font-size: 15px !important;
}

.student-vocabulary-example em {
  color: #d82420;
  font-style: normal;
}

.student-vocabulary-example small {
  color: var(--s-muted);
}

.student-vocabulary-recorder {
  border: 1px solid var(--s-line);
  border-radius: 9px;
  margin-top: 13px;
  padding: 12px;
}

.student-vocabulary-recorder-title {
  gap: 6px;
  display: flex;
}

.student-vocabulary-recorder-title span {
  color: var(--s-muted);
}

.student-vocabulary-wave {
  align-items: center;
  gap: 4px;
  height: 46px;
  display: flex;
}

.student-vocabulary-wave > span {
  color: #dc2722;
  background: #fde9e8;
  border-radius: 50%;
  place-items: center;
  width: 38px;
  height: 38px;
  display: grid;
}

.student-vocabulary-wave > i {
  background: #d8d8d8;
  border-radius: 2px;
  width: 2px;
  height: 12px;
}

.student-vocabulary-wave > i:nth-of-type(2n) {
  height: 23px;
}

.student-vocabulary-wave > i:nth-of-type(3n) {
  height: 17px;
}

.student-vocabulary-wave > button {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 50%;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-left: auto;
  display: grid;
}

.student-vocabulary-wave > small {
  color: var(--s-muted);
}

.student-vocabulary-native-recorder {
  display: none;
}

.student-vocabulary-actions {
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-top: 13px;
  display: grid;
}

.student-vocabulary-actions button {
  color: #d62924;
  cursor: pointer;
  background: #fff;
  border: 1px solid #e34a45;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 39px;
  font-weight: 600;
  display: flex;
}

.student-vocabulary-actions button.is-primary {
  color: #fff;
  background: #cc201c;
}

.student-vocabulary-list-panel h3 {
  margin: 0 0 12px;
  font-size: 15px;
}

.student-vocabulary-list {
  gap: 7px;
  display: grid;
}

.student-vocabulary-list > button {
  min-height: 49px;
  color: var(--s-ink);
  cursor: pointer;
  text-align: left;
  background: #fff;
  border: 1px solid #eee7e3;
  border-radius: 8px;
  grid-template-columns: 29px minmax(55px, .7fr) minmax(80px, 1fr) minmax(80px, 1fr) 34px 22px;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  display: grid;
}

.student-vocabulary-list > button.is-active {
  background: snow;
  border-color: #efc4c1;
}

.student-vocabulary-list b {
  color: #dc2722;
}

.student-vocabulary-list strong {
  font-family: Noto Serif SC, serif;
  font-size: 16px !important;
}

.student-vocabulary-list span {
  color: #dc2722;
}

.student-vocabulary-list small {
  color: var(--s-muted);
}

.student-vocabulary-list i {
  color: #dc2722;
  background: #fff2f1;
  border: 1px solid #f4c9c6;
  border-radius: 50%;
  place-items: center;
  width: 31px;
  height: 31px;
  font-style: normal;
  display: grid;
}

.student-vocabulary-list em {
  color: #8b8b8b;
  font-style: normal;
}

.student-vocabulary-list-panel > p {
  color: var(--s-muted);
  align-items: center;
  gap: 6px;
  margin: 11px 0 0;
  display: flex;
}

.student-vocabulary-table-list {
  gap: 9px;
  display: grid;
}

.student-vocabulary-table-list article {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 9px;
  grid-template-columns: 35px 90px 130px 1fr 1.5fr 38px;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  display: grid;
}

.student-vocabulary-table-list b {
  color: #dc2722;
}

.student-vocabulary-table-list strong {
  font-family: Noto Serif SC, serif;
  font-size: 20px !important;
}

.student-vocabulary-table-list span {
  color: #dc2722;
}

.student-vocabulary-table-list p, .student-vocabulary-table-list small {
  margin: 0;
}

.student-vocabulary-table-list small {
  color: var(--s-muted);
}

.student-vocabulary-table-list button {
  color: #dc2722;
  background: #fff2f1;
  border: 1px solid #f2cac7;
  border-radius: 50%;
  place-items: center;
  width: 34px;
  height: 34px;
  display: grid;
}

.student-vocabulary-empty {
  border: 1px solid var(--s-line);
  min-height: 220px;
  color: var(--s-muted);
  background: #fff;
  border-radius: 10px;
  place-items: center;
  display: grid;
}

@media (max-width: 1050px) {
  .student-vocabulary-workspace {
    grid-template-columns: 1fr;
  }

  .student-vocabulary-list-panel {
    order: 2;
  }
}

@media (max-width: 640px) {
  .student-vocabulary-focus-card, .student-vocabulary-list-panel {
    padding: 12px;
  }

  .student-vocabulary-actions {
    grid-template-columns: 1fr 1fr;
  }

  .student-vocabulary-list > button {
    grid-template-columns: 25px 55px minmax(0, 1fr) 31px 20px;
  }

  .student-vocabulary-list > button small {
    display: none;
  }

  .student-vocabulary-table-list article {
    grid-template-columns: 27px 62px 1fr 34px;
  }

  .student-vocabulary-table-list article p {
    grid-column: 3;
  }

  .student-vocabulary-table-list article small {
    grid-column: 2 / 4;
  }

  .student-vocabulary-word {
    padding-top: 18px;
  }

  .student-vocabulary-word > strong {
    font-size: 42px !important;
  }
}

@media (max-width: 390px) {
  .student-vocabulary-actions {
    grid-template-columns: 1fr;
  }

  .student-vocabulary-list > button {
    grid-template-columns: 24px 48px minmax(0, 1fr) 28px;
  }

  .student-vocabulary-list > button em {
    display: none;
  }
}

.student-vocabulary-analysis {
  background: #fffdfb;
  border: 1px solid #f0ded8;
  border-radius: 8px;
  grid-template-columns: 135px minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 11px;
  padding: 11px 14px;
  display: grid;
}

.student-vocabulary-analysis > strong {
  color: #d32a25;
}

.student-vocabulary-analysis > p {
  color: var(--s-muted);
  margin: 0;
  line-height: 1.55;
}

.student-vocabulary-list > button > small {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.student-vocabulary-list > button > small > i {
  width: auto;
  height: auto;
  color: var(--s-muted);
  background: none;
  border: 0;
  border-radius: 0;
  font-style: normal;
  display: block;
}

.student-vocabulary-list > button > small > u {
  color: #988f8a;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  overflow: hidden;
}

.student-vocabulary-list > button > i {
  color: #dc2722;
  background: #fff2f1;
  border: 1px solid #f4c9c6;
  border-radius: 50%;
  place-items: center;
  width: 31px;
  height: 31px;
  font-style: normal;
  display: grid;
}

@media (max-width: 640px) {
  .student-vocabulary-analysis {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .student-vocabulary-list > button > small {
    display: none;
  }
}

.communication-page {
  --c-red: #cf191f;
  --c-pale: #fff3ef;
  gap: 18px;
  display: grid;
}

.comm-breadcrumb {
  color: var(--s-muted);
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  display: flex;
}

.comm-breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.comm-home-hero, .comm-course-hero {
  background: linear-gradient(100deg, #0000, #fff9f4);
  border-radius: 14px;
  min-height: 145px;
  padding: 18px 290px 24px 6px;
  position: relative;
  overflow: hidden;
}

.comm-home-hero h1, .comm-course-hero h1, .comm-page-title h1, .comm-lesson-hero h1 {
  margin: 0 0 8px;
  font-size: 30px;
}

.comm-home-hero p, .comm-course-hero p, .comm-page-title p, .comm-lesson-hero p {
  max-width: 650px;
  color: var(--s-muted);
  margin: 0;
  line-height: 1.7;
}

.comm-home-hero > div:last-child, .comm-course-hero > div {
  width: 220px;
  height: 120px;
  color: var(--c-red);
  background: radial-gradient(circle, #f9d8c7, #0000 68%);
  border-radius: 50%;
  place-items: center;
  font-family: Noto Serif SC, serif;
  display: grid;
  position: absolute;
  top: 15px;
  right: 35px;
  font-size: 38px !important;
}

.comm-home-hero > div:last-child span {
  color: #d9c7b9;
  position: absolute;
  bottom: 5px;
  right: 5px;
}

.comm-continue {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 12px;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  display: grid;
}

.comm-continue > span {
  width: 48px;
  height: 48px;
  color: var(--c-red);
  background: #fde7e5;
  border-radius: 12px;
  place-items: center;
  display: grid;
}

.comm-continue h2 {
  margin: 4px 0;
}

.comm-continue p {
  color: var(--s-muted);
  margin: 0 0 9px;
}

.comm-continue em {
  color: var(--s-muted);
  font-style: normal;
}

.comm-continue > a, .comm-lesson-list a, .comm-side a, .comm-speaking-cta a {
  background: var(--c-red);
  color: #fff;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 17px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.comm-progress {
  background: #eee8e5;
  border-radius: 99px;
  height: 6px;
  overflow: hidden;
}

.comm-progress i {
  border-radius: inherit;
  background: var(--c-red);
  height: 100%;
  display: block;
}

.comm-section > div:first-child h2 {
  margin: 0 0 5px;
}

.comm-section > div:first-child p {
  color: var(--s-muted);
  margin: 0 0 15px;
}

.comm-topic-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.comm-topic-card {
  border: 1px solid var(--s-line);
  min-width: 0;
  min-height: 145px;
  color: var(--s-ink);
  background: #fff;
  border-radius: 11px;
  grid-template-columns: 42px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 16px;
  text-decoration: none;
  display: grid;
}

.comm-topic-card:hover {
  border-color: #e6aaa7;
  box-shadow: 0 8px 22px #5023190f;
}

.comm-topic-card.is-disabled {
  opacity: .72;
}

.comm-topic-icon {
  background: #fff1ee;
  border-radius: 10px;
  place-items: center;
  width: 40px;
  height: 40px;
  display: grid;
}

.comm-topic-card h3 {
  margin: 0 0 3px;
  font-size: 14px;
}

.comm-topic-card b {
  color: var(--c-red);
}

.comm-topic-card p {
  color: var(--s-muted);
  margin: 7px 0;
  line-height: 1.5;
}

.comm-topic-card small {
  color: var(--s-muted);
}

.comm-course-hero > strong, .comm-lesson-hero > div > strong {
  color: var(--c-red);
  margin-bottom: 8px;
  font-family: Noto Serif SC, serif;
  display: block;
  font-size: 22px !important;
}

.comm-stats {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  display: grid;
}

.comm-stats article {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 10px;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  display: flex;
}

.comm-stats article > span {
  width: 39px;
  height: 39px;
  color: var(--c-red);
  background: #fdebea;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.comm-stats p {
  color: var(--s-muted);
  flex-direction: column;
  gap: 5px;
  margin: 0;
  display: flex;
}

.comm-stats strong {
  color: var(--s-ink);
}

.comm-tabs {
  border-bottom: 1px solid var(--s-line);
  gap: 24px;
  display: flex;
  overflow-x: auto;
}

.comm-tabs > * {
  color: var(--s-muted);
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  flex: none;
  margin: 0;
  padding: 11px 12px;
}

.comm-tabs > b, .comm-tabs > .is-active {
  border-color: var(--c-red);
  color: var(--c-red);
}

.comm-course-grid, .comm-lesson-grid, .comm-speaking-grid {
  grid-template-columns: minmax(0, 1fr) 350px;
  align-items: start;
  gap: 18px;
  display: grid;
}

.comm-lesson-list, .comm-side section, .comm-lesson-grid > main, .comm-lesson-progress, .comm-speaking-grid > main, .comm-speaking-grid > aside > section, .comm-vocab-card, .comm-vocab-list {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 11px;
}

.comm-lesson-list {
  padding: 16px;
}

.comm-lesson-list h2 {
  margin: 0 0 8px;
}

.comm-lesson-list > div {
  border-top: 1px dashed var(--s-line);
  grid-template-columns: 34px minmax(150px, 1fr) auto 105px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  display: grid;
}

.comm-lesson-list > div > b {
  color: var(--c-red);
}

.comm-lesson-list p {
  gap: 10px;
  margin: 0;
  display: flex;
}

.comm-lesson-list p span {
  color: var(--s-muted);
}

.comm-lesson-list small {
  gap: 7px;
  display: flex;
}

.comm-lesson-list small i {
  color: #795c92;
  background: #f7f2fb;
  border-radius: 6px;
  padding: 4px 8px;
  font-style: normal;
}

.comm-side {
  gap: 12px;
  display: grid;
}

.comm-side section {
  padding: 17px;
}

.comm-side h2 {
  margin: 0 0 13px;
}

.comm-ring {
  --progress: 0%;
  background: conic-gradient(var(--c-red) var(--progress),#f7dede 0);
  border-radius: 50%;
  place-items: center;
  width: 105px;
  height: 105px;
  margin: 10px auto;
  display: grid;
  position: relative;
}

.comm-ring:after {
  content: "";
  background: #fff;
  border-radius: 50%;
  position: absolute;
  inset: 8px;
}

.comm-ring strong {
  z-index: 1;
  color: var(--c-red);
  position: relative;
  font-size: 22px !important;
}

.comm-side h3 {
  text-align: center;
}

.comm-side a {
  margin-top: 14px;
}

.comm-side section:last-child p {
  gap: 8px;
  display: flex;
}

.comm-side svg {
  color: var(--c-red);
  flex: none;
}

.comm-lesson-hero {
  justify-content: space-between;
  align-items: center;
  padding: 8px 4px;
  display: flex;
}

.comm-lesson-hero button {
  border: 1px solid var(--s-line);
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 17px;
  display: flex;
}

.comm-lesson-grid > main {
  overflow: hidden;
}

.comm-dialogue, .comm-patterns, .comm-vocab-preview, .comm-speaking-cta {
  padding: 16px;
}

.comm-dialogue h2, .comm-patterns h2, .comm-vocab-preview h2 {
  margin-top: 0;
}

.comm-dialogue-line {
  border-top: 1px solid var(--s-line);
  grid-template-columns: 38px minmax(180px, 1fr) minmax(150px, 1fr) 38px;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  display: grid;
}

.comm-dialogue-line > b {
  width: 34px;
  height: 34px;
  color: var(--c-red);
  background: #fee5e4;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.comm-dialogue-line.is-b > b {
  color: #1975b9;
  background: #e8f3fd;
}

.comm-dialogue-line > div {
  gap: 3px;
  display: grid;
}

.comm-dialogue-line > div strong {
  font-family: Noto Serif SC, serif;
  font-size: 17px !important;
}

.comm-dialogue-line > div span {
  color: var(--s-muted);
}

.comm-dialogue-line p {
  margin: 0;
}

.comm-dialogue-line button {
  border: 1px solid var(--s-line);
  width: 34px;
  height: 34px;
  color: var(--c-red);
  background: #fff;
  border-radius: 8px;
}

.comm-patterns article {
  background: #fff7f2;
  border-radius: 7px;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 8px;
  padding: 11px;
  display: grid;
}

.comm-patterns article strong {
  font-family: Noto Serif SC, serif;
  font-size: 16px !important;
}

.comm-patterns span {
  color: var(--s-muted);
}

.comm-patterns p {
  margin: 0;
}

.comm-vocab-preview {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  display: grid;
}

.comm-vocab-preview h2, .comm-vocab-preview > a {
  grid-column: 1 / -1;
}

.comm-vocab-preview article {
  border: 1px solid var(--s-line);
  border-radius: 8px;
  padding: 13px;
}

.comm-vocab-preview article strong {
  font-family: Noto Serif SC, serif;
  display: block;
  font-size: 20px !important;
}

.comm-vocab-preview article span {
  color: var(--c-red);
}

.comm-vocab-preview article p {
  margin-bottom: 0;
}

.comm-vocab-preview > a {
  justify-self: start;
}

.comm-speaking-cta {
  text-align: center;
}

.comm-speaking-cta svg {
  color: var(--c-red);
}

.comm-speaking-cta a {
  width: max-content;
  margin: auto;
}

.comm-lesson-progress {
  padding: 18px;
}

.comm-lesson-progress > button {
  border: 1px solid var(--c-red);
  background: var(--c-red);
  color: #fff;
  border-radius: 7px;
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
}

.comm-lesson-progress > button.secondary {
  color: var(--c-red);
  background: #fff;
}

.comm-bottom-nav {
  justify-content: space-between;
  display: flex;
}

.comm-bottom-nav > a, .comm-bottom-nav > button {
  border: 1px solid var(--s-line);
  min-width: 150px;
  min-height: 44px;
  color: var(--s-ink);
  background: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  display: flex;
}

.comm-bottom-nav > :last-child {
  background: var(--c-red);
  color: #fff;
}

.comm-page-title {
  justify-content: space-between;
  display: flex;
}

.comm-vocab-grid {
  grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
  gap: 18px;
  display: grid;
}

.comm-vocab-card, .comm-vocab-list {
  padding: 17px;
}

.comm-vocab-card > div:first-of-type {
  text-align: center;
  padding: 15px;
}

.comm-vocab-card > div:first-of-type strong {
  font-family: Noto Serif SC, serif;
  display: block;
  font-size: 52px !important;
}

.comm-vocab-card > div:first-of-type span {
  color: var(--c-red);
  font-size: 18px !important;
}

.comm-vocab-card > div:first-of-type p {
  font-size: 15px !important;
}

.comm-vocab-card > article {
  background: #fff7f2;
  border-radius: 8px;
  padding: 13px;
}

.comm-vocab-card article p, .comm-vocab-card article em, .comm-vocab-card article small {
  margin: 5px 0;
  display: block;
}

.comm-vocab-card article em {
  color: var(--c-red);
  font-style: normal;
}

.comm-record {
  border: 1px solid var(--s-line);
  border-radius: 8px;
  margin-top: 12px;
  padding: 13px;
}

.comm-vocab-list h2 {
  margin-top: 0;
}

.comm-vocab-list > button {
  border: 1px solid var(--s-line);
  text-align: left;
  background: #fff;
  border-radius: 8px;
  grid-template-columns: 28px 65px 1fr 1fr 32px 20px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 53px;
  margin-top: 7px;
  display: grid;
}

.comm-vocab-list > button.is-active {
  background: #fff9f8;
  border-color: #edb8b5;
}

.comm-vocab-list > button > b, .comm-vocab-list > button span {
  color: var(--c-red);
}

.comm-vocab-list > button > strong {
  font-family: Noto Serif SC, serif;
  font-size: 16px !important;
}

.comm-vocab-list > button i {
  width: 30px;
  height: 30px;
  color: var(--c-red);
  background: #fde9e7;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.comm-speaking-grid > main, .comm-speaking-grid > aside > section {
  padding: 16px;
}

.comm-speaking-grid aside {
  gap: 12px;
  display: grid;
}

.comm-speaking-sample h2, .comm-user-practice h2, .comm-speaking-progress h2, .comm-tips h2 {
  margin-top: 0;
}

.comm-user-practice {
  border-top: 1px solid var(--s-line);
  margin-top: 15px;
  padding-top: 15px;
}

.comm-user-practice > p {
  flex-direction: column;
  gap: 5px;
  display: flex;
}

.comm-user-practice > p strong {
  font-family: Noto Serif SC, serif;
  font-size: 18px !important;
}

.comm-user-practice > p span {
  color: var(--s-muted);
}

.comm-user-practice > button {
  background: var(--c-red);
  color: #fff;
  border: 0;
  border-radius: 7px;
  min-height: 42px;
  padding: 0 20px;
}

.comm-speaking-progress p, .comm-tips p {
  gap: 9px;
  display: flex;
}

.comm-speaking-progress svg {
  width: 17px;
  color: var(--c-red);
}

.comm-tips p > b {
  width: 36px;
  height: 36px;
  color: var(--c-red);
  background: #fee8e7;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.comm-tips p > span {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

@media (max-width: 1200px) {
  .comm-topic-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .comm-course-grid, .comm-lesson-grid, .comm-speaking-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }

  .comm-vocab-grid {
    grid-template-columns: 1fr 390px;
  }
}

@media (max-width: 1024px) {
  .comm-topic-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .comm-course-grid, .comm-lesson-grid, .comm-speaking-grid, .comm-vocab-grid {
    grid-template-columns: 1fr;
  }

  .comm-side, .comm-speaking-grid > aside {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .comm-home-hero, .comm-course-hero {
    padding-right: 20px;
  }

  .comm-home-hero > div:last-child, .comm-course-hero > div {
    display: none;
  }

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

  .comm-stats {
    grid-template-columns: 1fr 1fr;
  }

  .comm-lesson-list > div {
    grid-template-columns: 30px 1fr 95px;
  }

  .comm-lesson-list small {
    flex-wrap: wrap;
    grid-column: 2;
  }

  .comm-dialogue-line {
    grid-template-columns: 36px 1fr 34px;
  }

  .comm-dialogue-line > p {
    grid-column: 2;
  }

  .comm-side, .comm-speaking-grid > aside {
    grid-template-columns: 1fr;
  }

  .comm-vocab-preview {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .communication-page {
    gap: 13px;
  }

  .comm-home-hero h1, .comm-course-hero h1, .comm-page-title h1, .comm-lesson-hero h1 {
    font-size: 24px;
  }

  .comm-continue {
    grid-template-columns: 42px 1fr;
    padding: 14px;
  }

  .comm-continue > a {
    grid-column: 1 / -1;
  }

  .comm-topic-grid, .comm-stats, .comm-vocab-preview {
    grid-template-columns: 1fr;
  }

  .comm-topic-card {
    min-height: 120px;
  }

  .comm-lesson-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .comm-lesson-list > div {
    grid-template-columns: 25px 1fr;
  }

  .comm-lesson-list > div > a {
    grid-column: 2;
  }

  .comm-dialogue-line {
    grid-template-columns: 34px minmax(0, 1fr) 32px;
  }

  .comm-patterns article {
    grid-template-columns: 1fr;
  }

  .comm-vocab-list > button {
    grid-template-columns: 25px 55px 1fr 30px;
  }

  .comm-vocab-list > button small, .comm-vocab-list > button > svg {
    display: none;
  }

  .comm-bottom-nav > a, .comm-bottom-nav > button {
    min-width: 0;
    padding: 0 12px;
  }

  .comm-tabs {
    gap: 4px;
  }

  .comm-tabs > * {
    padding: 10px 9px;
  }

  .comm-record .tng-btn, .comm-user-practice .tng-btn {
    min-height: 44px;
  }

  .comm-speaking-grid > main, .comm-speaking-grid > aside > section, .comm-vocab-card, .comm-vocab-list {
    padding: 13px;
  }
}

.comm-hsk-home {
  display: block;
}

.comm-hsk-greeting {
  min-height: 112px;
  padding: 3px 250px 24px 0;
  position: relative;
  overflow: hidden;
}

.comm-hsk-greeting h1 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.3;
}

.comm-hsk-greeting p {
  color: var(--s-muted);
  margin: 0;
  line-height: 1.7;
}

.comm-hsk-greeting > div {
  width: 210px;
  height: 100px;
  color: var(--c-red);
  background: radial-gradient(circle, #f8ded1 0, #f8ded159 45%, #0000 72%);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  gap: 15px;
  display: flex;
  position: absolute;
  top: 0;
  right: 20px;
}

.comm-hsk-greeting > div span {
  opacity: .75;
  font-family: Noto Serif SC, serif;
  font-weight: 800;
  font-size: 34px !important;
}

.comm-hsk-greeting > div svg {
  color: #d8b49e;
  stroke-width: 1.35px;
}

.comm-hsk-topics {
  margin-bottom: 24px;
}

.comm-hsk-section-title {
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 13px;
  display: flex;
}

.comm-hsk-section-title h2 {
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  display: flex;
}

.comm-hsk-section-title h2 span {
  width: 32px;
  height: 32px;
  color: var(--c-red);
  background: #fff1ee;
  border-radius: 8px;
  place-items: center;
  display: grid;
}

.comm-hsk-section-title > a, .comm-text-link {
  color: var(--c-red);
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.comm-hsk-topics .comm-topic-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px;
}

.comm-hsk-topics .comm-topic-card {
  flex-direction: column;
  gap: 9px;
  min-height: 188px;
  padding: 15px 15px 13px;
  display: flex;
  position: relative;
}

.comm-hsk-topics .comm-topic-card > div:not(.comm-topic-icon) {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.comm-hsk-topics .comm-topic-icon {
  border-radius: 50%;
  flex: none;
  width: 43px;
  height: 43px;
  font-size: 20px !important;
}

.comm-hsk-topics .comm-topic-card h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.comm-hsk-topics .comm-topic-card b {
  margin-bottom: 3px;
}

.comm-hsk-topics .comm-topic-card p {
  flex: 1;
  margin: 5px 0 8px;
  line-height: 1.55;
}

.comm-hsk-topics .comm-topic-card small {
  border-top: 1px solid #f0e9e5;
  padding-top: 9px;
}

.comm-hsk-topics .comm-topic-card > svg {
  width: 24px;
  height: 24px;
  color: var(--c-red);
  border: 1px solid #e9625e;
  border-radius: 50%;
  padding: 5px;
  position: absolute;
  bottom: 12px;
  right: 13px;
}

@media (max-width: 1200px) {
  .comm-hsk-topics .comm-topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .comm-hsk-greeting {
    padding-right: 0;
  }

  .comm-hsk-greeting > div {
    display: none;
  }

  .comm-hsk-topics .comm-topic-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .comm-hsk-topics .comm-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .comm-hsk-greeting {
    min-height: 0;
    padding-bottom: 20px;
  }

  .comm-hsk-greeting h1 {
    font-size: 22px;
  }

  .comm-hsk-section-title {
    align-items: flex-start;
  }

  .comm-hsk-section-title > a {
    white-space: nowrap;
    padding-top: 7px;
  }

  .comm-hsk-topics .comm-topic-grid {
    grid-template-columns: 1fr;
  }

  .comm-hsk-topics .comm-topic-card {
    min-height: 165px;
  }
}

.comm-vocab-preview article {
  min-height: 124px;
  padding: 17px 52px 15px 17px;
  position: relative;
}

.comm-vocab-preview article > button {
  width: 34px;
  height: 34px;
  color: var(--c-red);
  cursor: pointer;
  background: #fff;
  border: 1px solid #f2cac7;
  border-radius: 8px;
  place-items: center;
  display: grid;
  position: absolute;
  top: 13px;
  right: 13px;
}

.comm-vocab-preview article strong {
  font-size: 22px !important;
}

.comm-vocab-preview article span {
  margin-top: 5px;
  display: block;
}

.comm-vocab-preview article p {
  color: var(--s-ink);
  margin: 5px 0 0;
}

.comm-vocab-preview > a {
  color: var(--s-ink);
  align-items: center;
  gap: 8px;
  text-decoration: none;
  display: flex;
}

.student-vocabulary-workspace {
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  align-items: stretch;
  gap: 14px;
}

.student-vocabulary-focus-card, .student-vocabulary-list-panel {
  border-color: #ded7d2;
  border-radius: 8px;
}

.student-vocabulary-focus-card {
  padding: 12px;
}

.student-vocabulary-count {
  line-height: 28px;
}

.student-vocabulary-sound {
  width: 34px;
  height: 34px;
  top: 12px;
  right: 14px;
}

.student-vocabulary-word {
  justify-content: center;
  min-height: 114px;
  padding: 10px 12px 12px;
}

.student-vocabulary-word > strong {
  font-size: 40px !important;
}

.student-vocabulary-word > span {
  font-size: 14px !important;
}

.student-vocabulary-word > p {
  font-size: 12.5px !important;
}

.student-vocabulary-analysis {
  border-radius: 7px;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 9px;
  padding: 9px 11px;
}

.student-vocabulary-example {
  border-radius: 7px;
  grid-template-columns: 46px 1fr;
  gap: 7px;
  padding: 10px 11px;
}

.student-vocabulary-example > div {
  gap: 2px;
}

.student-vocabulary-example strong {
  font-size: 13px !important;
}

.student-vocabulary-recorder {
  border-radius: 7px;
  margin-top: 9px;
  padding: 9px 10px;
}

.student-vocabulary-wave {
  height: 39px;
}

.student-vocabulary-wave > span {
  width: 31px;
  height: 31px;
}

.student-vocabulary-wave > button {
  width: 29px;
  height: 29px;
}

.student-vocabulary-actions {
  gap: 7px;
  margin-top: 9px;
}

.student-vocabulary-actions button {
  border-radius: 6px;
  min-height: 35px;
  padding: 5px 8px;
}

.student-vocabulary-list-panel {
  padding: 12px;
}

.student-vocabulary-list-panel h3 {
  margin-bottom: 9px;
  font-size: 13px;
}

.student-vocabulary-list {
  gap: 5px;
}

.student-vocabulary-list > button {
  border-radius: 7px;
  grid-template-columns: 25px minmax(48px, .55fr) minmax(70px, .85fr) minmax(125px, 1.5fr) 30px 18px;
  gap: 6px;
  min-height: 44px;
  padding: 5px 7px;
}

.student-vocabulary-list strong {
  font-size: 14px !important;
}

.student-vocabulary-list > button > i {
  width: 28px;
  height: 28px;
}

.student-vocabulary-list-panel > p {
  margin: 8px 0 0;
}

.comm-lesson-grid.is-vocabulary {
  grid-template-columns: minmax(0, 1fr);
}

.comm-lesson-grid.is-vocabulary > .comm-lesson-progress {
  display: none;
}

.comm-shared-vocabulary {
  padding: 12px;
}

@media (max-width: 1050px) {
  .student-vocabulary-workspace {
    grid-template-columns: 1fr;
  }

  .student-vocabulary-list-panel {
    order: 2;
  }
}

@media (max-width: 640px) {
  .student-vocabulary-word {
    min-height: 105px;
  }

  .student-vocabulary-word > strong {
    font-size: 36px !important;
  }

  .student-vocabulary-analysis {
    grid-template-columns: 1fr;
  }

  .student-vocabulary-list > button {
    grid-template-columns: 24px 52px minmax(0, 1fr) 28px 18px;
  }

  .student-vocabulary-list > button > small {
    display: none;
  }

  .comm-shared-vocabulary {
    padding: 10px;
  }
}

.comm-lesson-grid.comm-lesson-grid-full {
  grid-template-columns: minmax(0, 1fr);
}

.comm-video-dialogue-layout {
  grid-template-columns: minmax(500px, 1.25fr) minmax(320px, .75fr);
  align-items: start;
  gap: 14px;
  padding: 16px;
  display: grid;
}

.comm-video-lesson > div {
  max-height: 430px;
  border-radius: 10px !important;
}

.comm-video-dialogue-layout > .comm-dialogue {
  padding: 0;
}

.comm-video-dialogue-layout > .comm-dialogue h2 {
  margin: 0;
  padding: 0 0 10px;
}

.comm-video-dialogue-layout .comm-dialogue-line {
  grid-template-columns: 34px minmax(135px, 1fr) minmax(105px, .8fr) 34px;
  gap: 9px;
  min-height: 58px;
}

.student-breadcrumb-item {
  align-items: center;
  gap: 7px;
  display: inline-flex;
}

.student-scope {
  --student-color-primary: var(--s-red);
  --student-color-primary-dark: var(--s-red-dark);
  --student-color-text: var(--s-ink);
  --student-color-muted: var(--s-muted);
  --student-color-border: var(--s-line);
  --student-color-background: var(--s-ivory);
  --student-color-surface: #fff;
  --student-sidebar-width: 256px;
  --student-header-height: 72px;
  --student-content-width: 1540px;
  --student-radius-card: 11px;
  --student-radius-control: 8px;
  --student-shadow-card: 0 8px 22px #5023190f;
  --student-space-section: 24px;
}

@media (max-width: 1050px) {
  .comm-video-dialogue-layout {
    grid-template-columns: 1fr;
  }

  .comm-video-lesson {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
  }

  .comm-video-dialogue-layout > .comm-dialogue {
    padding-top: 4px;
  }
}

@media (max-width: 640px) {
  .comm-video-dialogue-layout {
    padding: 10px;
  }

  .comm-video-dialogue-layout .comm-dialogue-line {
    grid-template-columns: 34px minmax(0, 1fr) 32px;
  }

  .comm-video-dialogue-layout .comm-dialogue-line > p {
    grid-column: 2;
  }
}

.student-exam-page {
  gap: 27px;
  display: grid;
}

.student-exam-hero {
  border: 1px solid var(--student-color-border);
  border-left: 4px solid var(--student-color-primary);
  background: var(--student-color-surface);
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
  padding: 25px 28px;
  display: flex;
}

.student-exam-hero h1 {
  margin: 0 0 8px;
  font-family: Noto Serif SC, Be Vietnam Pro, serif;
  font-size: 28px;
}

.student-exam-hero p {
  max-width: 690px;
  color: var(--student-color-muted);
  margin: 0;
  line-height: 1.7;
}

.student-exam-hero-stats {
  gap: 10px;
  display: flex;
}

.student-exam-hero-stats > span {
  background: #fff6f1;
  border-radius: 9px;
  grid-template-columns: 30px 1fr;
  align-items: center;
  min-width: 125px;
  padding: 12px;
  display: grid;
}

.student-exam-hero-stats svg {
  color: var(--student-color-primary);
  grid-row: 1 / 3;
}

.student-exam-hero-stats strong {
  font-size: 14px;
}

.student-exam-hero-stats small {
  color: var(--student-color-muted);
}

.student-exam-section-note {
  color: var(--student-color-primary);
  align-items: center;
  gap: 6px;
  font-weight: 700;
  display: flex;
}

.student-exam-course-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.student-exam-course-card {
  border: 1px solid var(--student-color-border);
  border-radius: var(--student-radius-card);
  background: var(--student-color-surface);
  flex-direction: column;
  min-height: 260px;
  padding: 17px;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  display: flex;
}

.student-exam-course-card:hover {
  box-shadow: var(--student-shadow-card);
  border-color: #d2b4b3;
  transform: translateY(-2px);
}

.student-exam-course-card.is-locked {
  opacity: .68;
}

.student-exam-level {
  color: var(--student-color-primary);
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  display: flex;
}

.student-exam-level > span {
  background: #f8e9e8;
  border-radius: 50%;
  place-items: center;
  width: 52px;
  height: 52px;
  font-weight: 800;
  display: grid;
}

.student-exam-course-card > small {
  color: var(--student-color-muted);
}

.student-exam-course-card h3 {
  margin: 10px 0 6px;
  font-size: 16px;
}

.student-exam-course-card > p {
  color: var(--student-color-muted);
  flex: 1;
  margin: 0;
  line-height: 1.55;
}

.student-exam-meta {
  flex-wrap: wrap;
  gap: 11px;
  margin: 12px 0;
  display: flex;
}

.student-exam-meta span {
  color: var(--student-color-muted);
  align-items: center;
  gap: 4px;
  display: flex;
}

.student-exam-course-card footer {
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  display: flex;
}

.student-exam-course-card footer > strong {
  color: var(--student-color-primary);
}

.student-exam-course-card footer > button {
  color: var(--student-color-primary);
  cursor: pointer;
  background: none;
  border: 0;
  align-items: center;
  gap: 5px;
  padding: 7px 0;
  font-weight: 700;
  display: flex;
}

.student-exam-course-card footer > button:disabled {
  color: var(--student-color-muted);
  cursor: not-allowed;
}

.student-secondary-button {
  border: 1px solid var(--student-color-primary);
  border-radius: var(--student-radius-control);
  min-height: 38px;
  color: var(--student-color-primary);
  cursor: pointer;
  background: #fff;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  font-weight: 700;
  display: flex;
}

@media (max-width: 1200px) {
  .student-exam-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .student-exam-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-exam-hero-stats {
    width: 100%;
  }

  .student-exam-hero-stats > span {
    flex: 1;
  }
}

@media (max-width: 640px) {
  .student-exam-page {
    gap: 20px;
  }

  .student-exam-hero {
    padding: 20px;
  }

  .student-exam-hero h1 {
    font-size: 23px;
  }

  .student-exam-hero-stats {
    flex-direction: column;
  }

  .student-exam-course-grid {
    grid-template-columns: 1fr;
  }

  .student-exam-course-card {
    min-height: 240px;
  }
}

@media (min-width: 1201px) {
  .student-exam-course-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.student-exam-course-card footer > a, .student-exam-course-card footer > span {
  color: var(--student-color-primary);
  align-items: center;
  gap: 5px;
  padding: 7px 0;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.student-exam-course-card footer > span {
  color: var(--student-color-muted);
}

.student-exam-detail {
  gap: 18px;
  display: grid;
}

.student-exam-detail-hero {
  border: 1px solid var(--student-color-border);
  background: var(--student-color-surface);
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 25px 28px;
  display: flex;
}

.student-exam-detail-hero h1 {
  margin: 0 0 8px;
  font-family: Noto Serif SC, Be Vietnam Pro, serif;
  font-size: 28px;
}

.student-exam-detail-hero p {
  max-width: 720px;
  color: var(--student-color-muted);
  margin: 0;
  line-height: 1.65;
}

.student-exam-detail-hero > div:first-child > div {
  color: var(--student-color-muted);
  gap: 14px;
  margin-top: 14px;
  display: flex;
}

.student-exam-detail-hero > div:first-child > div span {
  align-items: center;
  gap: 5px;
  display: flex;
}

.student-exam-detail-hero > div:last-child {
  border-left: 1px solid var(--student-color-border);
  flex-direction: column;
  align-items: center;
  min-width: 120px;
  padding-left: 22px;
  display: flex;
}

.student-exam-detail-hero > div:last-child strong {
  color: var(--student-color-primary);
  font-size: 25px;
}

.student-exam-detail-hero > div:last-child span {
  color: var(--student-color-muted);
}

.student-exam-detail-stats {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  display: grid;
}

.student-exam-detail-stats article {
  border: 1px solid var(--student-color-border);
  background: #fff;
  border-radius: 9px;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  display: flex;
}

.student-exam-detail-stats svg {
  color: var(--student-color-primary);
}

.student-exam-detail-stats span {
  flex-direction: column;
  gap: 3px;
  display: flex;
}

.student-exam-detail-stats small {
  color: var(--student-color-muted);
}

.student-exam-detail-grid {
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 14px;
  display: grid;
}

.student-exam-test-list {
  padding: 17px;
}

.student-exam-test-list > a {
  border-top: 1px solid var(--student-color-border);
  min-height: 70px;
  color: var(--student-color-text);
  grid-template-columns: 34px minmax(0, 1fr) 34px 18px;
  align-items: center;
  gap: 10px;
  padding: 9px 4px;
  text-decoration: none;
  display: grid;
}

.student-exam-test-list > a > b {
  color: var(--student-color-primary);
}

.student-exam-test-list > a > span {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.student-exam-test-list > a > span > small {
  color: var(--student-color-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.student-exam-test-list > a > span > em {
  color: var(--student-color-muted);
  align-items: center;
  gap: 5px;
  font-style: normal;
  display: flex;
}

.student-exam-test-list > a > i {
  width: 30px;
  height: 30px;
  color: var(--student-color-muted);
  background: #f4efec;
  border-radius: 50%;
  place-items: center;
  font-style: normal;
  display: grid;
}

.student-exam-test-list > a > i.is-completed {
  color: #41775a;
  background: #e7f2eb;
}

.student-exam-test-list > a > i.is-learning {
  color: var(--student-color-primary);
  background: #f8e9e8;
}

.student-exam-course-progress {
  text-align: center;
}

.student-exam-course-progress h2 {
  margin-top: 0;
}

.student-exam-course-progress p {
  color: var(--student-color-muted);
  line-height: 1.5;
}

.student-exam-course-progress .student-primary-button {
  width: 100%;
  margin-top: 15px;
}

.student-exam-test-detail {
  gap: 18px;
  display: grid;
}

@media (max-width: 900px) {
  .student-exam-detail-grid {
    grid-template-columns: 1fr;
  }

  .student-exam-course-progress {
    text-align: left;
    grid-template-columns: 110px 1fr;
    align-items: center;
    display: grid;
  }

  .student-exam-course-progress h2 {
    grid-column: 1 / -1;
  }

  .student-exam-course-progress .student-ring {
    grid-row: 2 / 5;
  }

  .student-exam-course-progress .student-primary-button {
    width: max-content;
  }
}

@media (max-width: 640px) {
  .student-exam-detail-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .student-exam-detail-hero h1 {
    font-size: 23px;
  }

  .student-exam-detail-hero > div:last-child {
    border-top: 1px solid var(--student-color-border);
    border-left: 0;
    align-items: flex-start;
    padding: 12px 0 0;
  }

  .student-exam-detail-stats {
    grid-template-columns: 1fr;
  }

  .student-exam-test-list > a {
    grid-template-columns: 28px minmax(0, 1fr) 30px;
  }

  .student-exam-test-list > a > svg {
    display: none;
  }

  .student-exam-course-progress {
    text-align: center;
    display: block;
  }

  .student-exam-course-progress .student-primary-button {
    width: 100%;
  }
}

.student-overview-dashboard {
  gap: 27px;
  display: grid;
}

.student-overview-welcome {
  border: 1px solid var(--student-color-border);
  border-left: 4px solid var(--student-color-primary);
  background: #fff;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  display: flex;
}

.student-overview-welcome h1 {
  margin: 0 0 8px;
  font-family: Noto Serif SC, Be Vietnam Pro, serif;
  font-size: 27px;
}

.student-overview-welcome p {
  color: var(--student-color-muted);
  margin: 0;
}

.student-overview-welcome > div:last-child {
  min-width: 170px;
  color: var(--student-color-primary);
  background: #fff6f1;
  border-radius: 9px;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  display: flex;
}

.student-overview-welcome > div:last-child > span {
  flex-direction: column;
  display: flex;
}

.student-overview-welcome > div:last-child strong {
  color: var(--student-color-text);
  font-size: 14px;
}

.student-overview-welcome > div:last-child small {
  color: var(--student-color-muted);
}

.student-overview-period, .student-overview-earned {
  color: var(--student-color-muted);
  align-items: center;
  gap: 6px;
  font-weight: 700;
  display: flex;
}

.student-overview-earned {
  color: var(--student-color-primary);
}

.student-overview-results > div:last-child {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.student-overview-results article {
  border: 1px solid var(--student-color-border);
  border-radius: var(--student-radius-card);
  background: #fff;
  gap: 13px;
  min-height: 138px;
  padding: 17px;
  display: flex;
}

.student-overview-results article > span {
  width: 40px;
  height: 40px;
  color: var(--student-color-primary);
  background: #f8e9e8;
  border-radius: 9px;
  flex: none;
  place-items: center;
  display: grid;
}

.student-overview-results article > div {
  flex-direction: column;
  display: flex;
}

.student-overview-results article small {
  color: var(--student-color-muted);
}

.student-overview-results article strong {
  margin: 4px 0;
  font-size: 23px;
}

.student-overview-results article p {
  color: var(--student-color-muted);
  margin: 0;
}

.student-overview-results article em {
  color: #41775a;
  margin-top: auto;
  padding-top: 7px;
  font-style: normal;
  font-weight: 700;
}

.student-overview-main-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  align-items: start;
  gap: 14px;
  display: grid;
}

.student-overview-course-list {
  display: grid;
}

.student-overview-course-list > a {
  border-top: 1px solid var(--student-color-border);
  min-height: 82px;
  color: var(--student-color-text);
  grid-template-columns: 45px minmax(0, 1fr) 65px;
  align-items: center;
  gap: 12px;
  padding: 10px 3px;
  text-decoration: none;
  display: grid;
}

.student-overview-course-icon {
  width: 43px;
  height: 43px;
  color: var(--student-color-primary);
  background: #f8e9e8;
  border-radius: 50%;
  place-items: center;
  font-weight: 800;
  display: grid;
  font-size: 10px !important;
}

.student-overview-course-list > a > div {
  gap: 3px;
  display: grid;
}

.student-overview-course-list > a > div > small {
  color: var(--student-color-primary);
  font-weight: 700;
}

.student-overview-course-list > a > div > p {
  color: var(--student-color-muted);
  margin: 0;
}

.student-overview-course-list .student-progress-track {
  margin-top: 5px;
}

.student-overview-course-list aside {
  color: var(--student-color-muted);
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  display: flex;
}

.student-overview-course-list aside > strong {
  color: var(--student-color-primary);
}

.student-overview-course-list aside > svg {
  margin-top: 4px;
}

.student-overview-activity-panel .student-primary-button {
  width: 100%;
  margin-top: 20px;
}

.student-overview-achievements > div:last-child {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.student-overview-achievements article {
  border: 1px solid var(--student-color-border);
  border-radius: var(--student-radius-card);
  background: #fff;
  gap: 12px;
  min-height: 150px;
  padding: 17px;
  display: flex;
}

.student-overview-achievements article > span {
  color: #b57921;
  background: #fff3df;
  border-radius: 50%;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  display: grid;
}

.student-overview-achievements article > div {
  flex-direction: column;
  display: flex;
}

.student-overview-achievements article small {
  color: #b57921;
  letter-spacing: .06em;
  font-weight: 800;
}

.student-overview-achievements h3 {
  margin: 8px 0 5px;
  font-size: 14px;
}

.student-overview-achievements p {
  color: var(--student-color-muted);
  margin: 0;
  line-height: 1.5;
}

.student-overview-achievements em {
  color: var(--student-color-muted);
  margin-top: auto;
  padding-top: 8px;
  font-style: normal;
}

.student-overview-achievements article.is-locked {
  opacity: .58;
  background: #faf8f6;
}

.student-overview-achievements article.is-locked > span {
  color: var(--student-color-muted);
  background: #eeeae7;
}

.student-overview-achievements article.is-locked small {
  color: var(--student-color-muted);
}

@media (max-width: 1100px) {
  .student-overview-results > div:last-child, .student-overview-achievements > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-overview-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .student-overview-dashboard {
    gap: 20px;
  }

  .student-overview-welcome {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .student-overview-welcome h1 {
    font-size: 23px;
  }

  .student-overview-welcome > div:last-child {
    width: 100%;
  }

  .student-overview-results > div:last-child, .student-overview-achievements > div:last-child {
    grid-template-columns: 1fr;
  }

  .student-overview-course-list > a {
    grid-template-columns: 40px minmax(0, 1fr) 55px;
  }

  .student-overview-results article {
    min-height: 125px;
  }
}

.student-overview-vocabulary-list {
  display: grid;
}

.student-overview-vocabulary-list > a {
  border-top: 1px solid var(--student-color-border);
  color: var(--student-color-text);
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 12px;
  padding: 11px 0;
  text-decoration: none;
  display: grid;
}

.student-overview-vocabulary-list > a > div {
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  display: flex;
}

.student-overview-vocabulary-list > a > div small {
  color: var(--student-color-muted);
}

.student-overview-vocabulary-list > a > div em {
  color: var(--student-color-primary);
  font-style: normal;
  font-weight: 700;
}

.student-overview-vocabulary-list > a > span {
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  display: flex;
}

.student-overview-vocabulary-list > a > span > b {
  color: var(--student-color-primary);
}

.student-overview-vocabulary-list > a > span > small {
  color: var(--student-color-muted);
}

.student-overview-vocabulary-list .student-progress-track {
  grid-column: 1 / -1;
}

.student-overview-vocabulary-panel > .student-primary-button {
  width: 100%;
  margin-top: 16px;
}

.student-quick-practice {
  gap: 20px;
  width: 100%;
  padding: 24px;
  display: grid;
  overflow: hidden;
}

.student-quick-practice-header {
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  display: flex;
}

.student-quick-practice-header h2 {
  margin: 5px 0 7px;
  font-family: Noto Serif SC, Be Vietnam Pro, serif;
  font-size: 24px;
}

.student-quick-practice-header p {
  max-width: 720px;
  color: var(--student-color-muted);
  margin: 0;
  line-height: 1.6;
}

.student-secondary-button {
  border: 1px solid var(--student-color-primary);
  min-height: 40px;
  color: var(--student-color-primary);
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  font: 700 12.5px Be Vietnam Pro, Segoe UI, sans-serif;
  display: inline-flex;
}

.student-secondary-button:disabled, .student-primary-button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.student-quick-question-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.student-quick-question {
  border: 1px solid var(--student-color-border);
  border-radius: var(--student-radius-card);
  background: #fff;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
  padding: 18px;
  display: grid;
}

.student-quick-question:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.student-quick-question.is-correct {
  background: #fbfffc;
  border-color: #a9cbb8;
}

.student-quick-question.is-wrong {
  background: snow;
  border-color: #e7b6b1;
}

.student-quick-question-index {
  width: 38px;
  height: 38px;
  color: var(--student-color-primary);
  background: #f8e9e8;
  border-radius: 50%;
  place-items: center;
  font-weight: 800;
  display: grid;
}

.student-quick-question-content {
  min-width: 0;
}

.student-quick-question-meta {
  color: var(--student-color-muted);
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  display: flex;
}

.student-quick-question-meta > span {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  overflow: hidden;
}

.student-quick-question-meta > em {
  color: var(--student-color-primary);
  background: #f8e9e8;
  border-radius: 999px;
  flex: none;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  font-style: normal;
  font-weight: 700;
  display: inline-flex;
}

.student-quick-question h3 {
  margin: 12px 0 14px;
  font-size: 14px;
  line-height: 1.65;
}

.student-quick-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  display: grid;
}

.student-quick-options label {
  border: 1px solid var(--student-color-border);
  cursor: pointer;
  background: #fff;
  border-radius: 8px;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 10px 11px;
  display: flex;
}

.student-quick-options label.is-selected {
  border-color: var(--student-color-primary);
  background: #fff7f6;
}

.student-quick-options input {
  accent-color: var(--student-color-primary);
}

.student-quick-options span {
  overflow-wrap: anywhere;
  min-width: 0;
}

.student-quick-answer-input {
  border: 1px solid var(--student-color-border);
  width: 100%;
  min-height: 42px;
  color: var(--student-color-text);
  background: #fff;
  border-radius: 8px;
  outline: none;
  padding: 10px 12px;
  font: 500 13px Be Vietnam Pro, Segoe UI, sans-serif;
}

.student-quick-answer-input:focus {
  border-color: var(--student-color-primary);
  box-shadow: 0 0 0 3px #c41c2314;
}

.student-quick-review {
  color: var(--student-color-muted);
  background: #f6f3f0;
  border-radius: 8px;
  gap: 9px;
  margin-top: 13px;
  padding: 11px;
  display: flex;
}

.student-quick-review > svg {
  color: var(--student-color-primary);
  flex: none;
}

.student-quick-question.is-correct .student-quick-review > svg {
  color: #41775a;
}

.student-quick-review strong {
  color: var(--student-color-text);
  display: block;
}

.student-quick-review p {
  margin: 4px 0;
  line-height: 1.5;
}

.student-quick-review small {
  color: var(--student-color-primary);
  display: block;
}

.student-quick-result {
  border-radius: var(--student-radius-card);
  background: #fff7f6;
  border: 1px solid #e7b6b1;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding: 18px;
  display: grid;
}

.student-quick-score {
  border-right: 1px solid #e7b6b1;
  flex-direction: column;
  align-items: center;
  padding-right: 20px;
  display: flex;
}

.student-quick-score strong {
  color: var(--student-color-primary);
  font-size: 30px;
}

.student-quick-score span {
  color: var(--student-color-muted);
}

.student-quick-result h3 {
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  display: flex;
}

.student-quick-result h3 svg {
  color: var(--student-color-primary);
}

.student-quick-result p {
  color: var(--student-color-muted);
  margin: 0;
  line-height: 1.6;
}

.student-quick-actions {
  justify-content: flex-end;
  gap: 10px;
  padding-top: 4px;
  display: flex;
}

.student-quick-actions .student-primary-button, .student-quick-actions .student-secondary-button {
  min-width: 130px;
}

.student-quick-practice-empty {
  text-align: center;
  justify-items: center;
  padding: 38px 20px;
  display: grid;
}

.student-quick-practice-empty > span {
  width: 50px;
  height: 50px;
  color: var(--student-color-primary);
  background: #f8e9e8;
  border-radius: 50%;
  place-items: center;
  display: grid;
}

.student-quick-practice-empty h3 {
  margin: 12px 0 5px;
}

.student-quick-practice-empty p {
  color: var(--student-color-muted);
  margin: 0;
}

.student-quick-error {
  color: var(--student-color-primary);
  background: #fff7f6;
  border: 1px solid #e7b6b1;
  border-radius: 8px;
  padding: 11px 13px;
}

.student-quick-skeleton {
  gap: 10px;
  display: grid;
}

.student-quick-skeleton i {
  background: linear-gradient(90deg, #f3efec 25%, #faf8f6 50%, #f3efec 75%) 0 0 / 200% 100%;
  border-radius: 10px;
  height: 100px;
  animation: 1.2s infinite student-quick-shimmer;
}

.is-spinning {
  animation: .8s linear infinite student-quick-spin;
}

@keyframes student-quick-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes student-quick-shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 1024px) {
  .student-quick-question-list {
    grid-template-columns: 1fr;
  }

  .student-quick-question:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

@media (max-width: 768px) {
  .student-quick-practice {
    padding: 20px;
  }

  .student-quick-practice-header {
    flex-direction: column;
  }

  .student-quick-practice-header .student-secondary-button {
    width: 100%;
  }

  .student-quick-options, .student-quick-result {
    grid-template-columns: 1fr;
  }

  .student-quick-score {
    border-bottom: 1px solid #e7b6b1;
    border-right: 0;
    padding: 0 0 14px;
  }
}

@media (max-width: 430px) {
  .student-quick-practice {
    padding: 16px;
  }

  .student-quick-question {
    grid-template-columns: 1fr;
    padding: 15px;
  }

  .student-quick-question-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .student-quick-actions {
    flex-direction: column-reverse;
  }

  .student-quick-actions .student-primary-button, .student-quick-actions .student-secondary-button {
    width: 100%;
  }
}

.tng-page-header {
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 22px;
  display: flex;
}

.tng-page-header h1 {
  color: #211d18;
  margin: 7px 0 5px;
  font-family: Noto Serif SC, Be Vietnam Pro, serif;
  font-size: 27px;
}

.tng-page-header p {
  color: #5b5449;
  max-width: 650px;
  margin: 0;
  line-height: 1.6;
}

.tng-page-header-actions {
  flex-wrap: wrap;
  gap: 9px;
  display: flex;
}

.tng-link-button, .tng-preview-link {
  color: #fffdf7;
  background: #a9382a;
  border: 1px solid #a9382a;
  border-radius: 7px;
  justify-content: center;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 9px 15px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.tng-preview-link {
  color: #a9382a;
  background: none;
  width: 100%;
}

.tng-empty-state {
  text-align: center;
}

.tng-empty-state h2 {
  margin: 0 0 7px;
}

.tng-empty-state p {
  color: #5b5449;
  margin: 0 0 16px;
}

.tng-form-field {
  color: #211d18;
  gap: 7px;
  min-width: 0;
  font-weight: 700;
  display: grid;
}

.tng-form-field > span em {
  color: #a9382a;
  margin-left: 3px;
  font-style: normal;
}

.tng-form-field > small {
  color: #8c8371;
  font-weight: 500;
}

.tng-form-field > small.is-error {
  color: #a9382a;
}

.tng-form-control {
  color: #211d18;
  background: #fffdf7;
  border: 1px solid #dad0b4;
  border-radius: 7px;
  outline: none;
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  font: 500 13px Be Vietnam Pro, Segoe UI, sans-serif;
}

.tng-form-control:focus {
  border-color: #a9382a;
  box-shadow: 0 0 0 3px #a9382a1a;
}

.tng-form-textarea {
  resize: vertical;
  min-height: 112px;
}

.tng-form-select {
  cursor: pointer;
}

.tng-form-section {
  gap: 18px;
  display: grid;
}

.tng-form-section > header h2 {
  margin: 0;
  font-size: 17px;
}

.tng-form-section > header p {
  color: #5b5449;
  margin: 5px 0 0;
}

.tng-form-section-body {
  min-width: 0;
}

.tng-form-grid {
  gap: 17px;
  display: grid;
}

.tng-form-grid.is-two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tng-form-actions {
  z-index: 3;
  background: #f3ecdb;
  border-top: 1px solid #dad0b4;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
  padding: 14px 0;
  display: flex;
  position: sticky;
  bottom: 0;
}

.tng-file-input > label {
  color: #a9382a;
  cursor: pointer;
  background: #fffdf7;
  border: 1px dashed #dad0b4;
  border-radius: 9px;
  align-content: center;
  place-items: center;
  gap: 8px;
  min-height: 130px;
  display: grid;
}

.tng-file-input > label input {
  opacity: 0;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.tng-file-preview {
  gap: 10px;
  display: grid;
}

.tng-file-preview img {
  object-fit: cover;
  border: 1px solid #dad0b4;
  border-radius: 9px;
  width: 100%;
  max-height: 220px;
}

.teacher-course-page, .teacher-course-form-page {
  min-width: 0;
}

.teacher-course-list-shell {
  background: #fbf7ec;
  border: 1px solid #dad0b4;
  border-radius: 10px;
  overflow: hidden;
}

.teacher-course-table {
  border-collapse: collapse;
  width: 100%;
}

.teacher-course-table th, .teacher-course-table td {
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #dad0b4;
  padding: 13px 12px;
}

.teacher-course-table th {
  color: #5b5449;
  white-space: nowrap;
  background: #f7f1e3;
  font-size: 11.5px;
}

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

.teacher-course-identity {
  align-items: center;
  gap: 10px;
  min-width: 190px;
  display: flex;
}

.teacher-course-identity > span, .teacher-course-identity > img {
  color: #832b20;
  object-fit: cover;
  background: #f1dcd5;
  border-radius: 8px;
  flex: none;
  place-items: center;
  width: 48px;
  height: 48px;
  font-size: 10px;
  font-weight: 800;
  display: grid;
}

.teacher-course-identity > div {
  gap: 3px;
  display: grid;
}

.teacher-course-identity small {
  color: #8c8371;
}

.teacher-course-actions {
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 220px;
  display: flex;
}

.teacher-course-actions > a {
  color: #832b20;
  align-items: center;
  gap: 4px;
  padding: 5px;
  font-size: 11.5px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.teacher-course-notice {
  color: #7a5c25;
  background: #fff8e9;
  border: 1px solid #efe1c5;
  border-radius: 8px;
  margin-bottom: 15px;
  padding: 11px 13px;
}

.teacher-course-mobile-list {
  display: none;
}

.teacher-course-form-layout {
  grid-template-columns: minmax(0, 7fr) minmax(260px, 3fr);
  align-items: start;
  gap: 16px;
  display: grid;
}

.teacher-course-form-layout > main {
  gap: 14px;
  display: grid;
}

.teacher-course-form-layout > aside {
  gap: 12px;
  display: grid;
  position: sticky;
  top: 90px;
}

.teacher-course-status {
  gap: 14px;
  display: grid;
}

.teacher-course-status > p {
  color: #5b5449;
  margin: 0;
  line-height: 1.55;
}

.teacher-outcome-list {
  gap: 12px;
  display: grid;
}

.teacher-outcome-list > div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  display: grid;
}

.teacher-breadcrumb {
  color: #8c8371;
  align-items: center;
  gap: 8px;
  margin-bottom: 17px;
  display: flex;
}

.teacher-breadcrumb a {
  color: #832b20;
  text-decoration: none;
}

.teacher-breadcrumb strong {
  color: #5b5449;
}

.teacher-course-title-link {
  color: #211d18;
  cursor: pointer;
  font-weight: 800;
  text-decoration: none;
}

.teacher-course-title-link:hover {
  color: #a9382a;
  text-underline-offset: 3px;
  text-decoration: underline;
}

.teacher-course-title-link:focus-visible {
  outline-offset: 3px;
  border-radius: 3px;
  outline: 2px solid #a9382a;
}

.teacher-course-actions {
  flex-wrap: nowrap;
  min-width: max-content;
}

.teacher-course-actions > a, .teacher-course-actions .tng-btn {
  white-space: nowrap;
}

.teacher-course-table {
  table-layout: fixed;
}

.teacher-course-table col.is-course {
  width: 29%;
}

.teacher-course-table col.is-type {
  width: 12%;
}

.teacher-course-table col.is-lessons {
  width: 11%;
}

.teacher-course-table col.is-status {
  width: 12%;
}

.teacher-course-table col.is-actions {
  width: 36%;
}

.teacher-course-table tbody tr {
  height: 88px;
}

.teacher-course-table th:nth-child(3), .teacher-course-table td:nth-child(3), .teacher-course-table th:nth-child(4), .teacher-course-table td:nth-child(4) {
  text-align: center;
}

.teacher-course-type-badge, .teacher-course-status-badge {
  white-space: nowrap;
  align-items: center;
  display: inline-flex;
}

.teacher-course-table td:nth-child(4) .teacher-course-status-badge {
  justify-content: center;
}

.teacher-course-table .teacher-course-identity {
  min-width: 0;
}

.teacher-course-table .teacher-course-identity > span, .teacher-course-table .teacher-course-identity > img {
  width: 42px;
  height: 42px;
}

.teacher-course-table .teacher-course-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 7px;
  min-width: 0;
}

.teacher-course-table .teacher-course-actions > a {
  white-space: nowrap;
  padding: 5px 4px;
}

.teacher-course-table .teacher-course-actions .tng-btn {
  white-space: nowrap;
  padding-inline: 10px;
}

@media (max-width: 1100px) {
  .teacher-course-table {
    display: none;
  }

  .teacher-course-mobile-list {
    gap: 10px;
    padding: 12px;
    display: grid;
  }

  .teacher-course-mobile-card {
    background: #fffdf7;
    border: 1px solid #dad0b4;
    border-radius: 9px;
    gap: 14px;
    padding: 15px;
    display: grid;
  }

  .teacher-course-mobile-card > header {
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    display: flex;
  }

  .teacher-course-mobile-card > div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    display: grid;
  }

  .teacher-course-mobile-card > .teacher-course-actions {
    flex-wrap: wrap;
    align-items: center;
    display: flex;
  }

  .teacher-course-mobile-card > div > span {
    gap: 3px;
    display: grid;
  }

  .teacher-course-mobile-card small {
    color: #8c8371;
  }

  .teacher-course-form-layout {
    grid-template-columns: 1fr;
  }

  .teacher-course-form-layout > aside {
    position: static;
  }
}

@media (max-width: 640px) {
  .tng-page-header {
    flex-direction: column;
    align-items: stretch;
  }

  .tng-page-header-actions, .tng-page-header-actions .tng-link-button {
    width: 100%;
  }

  .tng-form-grid.is-two-columns {
    grid-template-columns: 1fr;
  }

  .tng-form-actions {
    flex-direction: column-reverse;
  }

  .tng-form-actions .tng-btn {
    justify-content: center;
    width: 100%;
    min-height: 44px;
  }

  .teacher-course-mobile-card > div {
    grid-template-columns: 1fr;
  }

  .teacher-course-actions {
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    display: grid;
  }

  .teacher-course-actions > a, .teacher-course-actions .tng-btn {
    justify-content: center;
    min-height: 44px;
  }

  .teacher-course-identity {
    min-width: 0;
  }

  .teacher-course-identity strong {
    overflow-wrap: anywhere;
  }
}

.student-flashcard-catalog {
  gap: 28px;
  display: grid;
}

.student-flashcard-catalog-hero {
  border: 1px solid var(--student-color-border);
  border-left: 4px solid var(--student-color-primary);
  background: #fff;
  border-radius: 12px;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  display: flex;
}

.student-flashcard-catalog-hero h1 {
  margin: 0 0 8px;
  font-family: Noto Serif SC, Be Vietnam Pro, serif;
  font-size: 28px;
}

.student-flashcard-catalog-hero p {
  max-width: 730px;
  color: var(--student-color-muted);
  margin: 0;
  line-height: 1.65;
}

.student-flashcard-catalog-hero > svg {
  color: var(--student-color-primary);
}

.student-flashcard-group > .student-section-heading h2 {
  align-items: center;
  gap: 8px;
  display: flex;
}

.student-flashcard-group > .student-section-heading h2 svg {
  color: var(--student-color-primary);
}

.student-flashcard-group > .student-section-heading > span {
  color: var(--student-color-muted);
  font-weight: 700;
}

.student-flashcard-deck-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  display: grid;
}

.student-flashcard-deck-card {
  border: 1px solid var(--student-color-border);
  border-radius: var(--student-radius-card);
  background: #fff;
  flex-direction: column;
  min-height: 220px;
  padding: 16px;
  display: flex;
}

.student-flashcard-deck-card.is-disabled {
  opacity: .62;
}

.student-flashcard-deck-icon {
  width: 50px;
  height: 50px;
  color: var(--student-color-primary);
  background: #f8e9e8;
  border-radius: 50%;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  display: flex;
}

.student-flashcard-deck-icon strong {
  font-size: 16px;
}

.student-flashcard-deck-icon small {
  font-weight: 800;
  font-size: 8px !important;
}

.student-flashcard-deck-card > div {
  flex-direction: column;
  flex: 1;
  display: flex;
}

.student-flashcard-deck-card > div > small {
  color: var(--student-color-primary);
  margin-top: 11px;
}

.student-flashcard-deck-card h3 {
  margin: 7px 0 5px;
  font-size: 15px;
}

.student-flashcard-deck-card p {
  color: var(--student-color-muted);
  margin: 0;
  line-height: 1.5;
}

.student-flashcard-deck-card > a, .student-flashcard-coming {
  width: max-content;
  color: var(--student-color-primary);
  align-items: center;
  gap: 6px;
  margin-top: 13px;
  font-weight: 700;
  text-decoration: none;
  display: flex;
}

.student-flashcard-coming {
  color: var(--student-color-muted);
}

.student-flashcard-topic-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.student-flashcard-topic-card {
  border: 1px solid var(--student-color-border);
  background: #fff;
  border-radius: 10px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  min-height: 132px;
  padding: 14px;
  display: grid;
  position: relative;
}

.student-flashcard-topic-card.is-disabled {
  opacity: .62;
}

.student-flashcard-topic-card > span {
  background: #fff1ee;
  border-radius: 50%;
  place-items: center;
  width: 36px;
  height: 36px;
  display: grid;
  font-size: 18px !important;
}

.student-flashcard-topic-card > div {
  min-width: 0;
}

.student-flashcard-topic-card small {
  color: var(--student-color-primary);
}

.student-flashcard-topic-card h3 {
  margin: 5px 0;
  font-size: 14px;
}

.student-flashcard-topic-card p {
  color: var(--student-color-muted);
  margin: 0;
  line-height: 1.45;
}

.student-flashcard-topic-card > a {
  width: 26px;
  height: 26px;
  color: var(--student-color-primary);
  border: 1px solid #e9625e;
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: absolute;
  bottom: 11px;
  right: 12px;
}

@media (max-width: 1200px) {
  .student-flashcard-deck-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-flashcard-topic-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .student-flashcard-deck-grid, .student-flashcard-topic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .student-flashcard-catalog {
    gap: 21px;
  }

  .student-flashcard-catalog-hero {
    padding: 20px;
  }

  .student-flashcard-catalog-hero h1 {
    font-size: 23px;
  }

  .student-flashcard-catalog-hero > svg {
    display: none;
  }

  .student-flashcard-deck-grid, .student-flashcard-topic-grid {
    grid-template-columns: 1fr;
  }

  .student-flashcard-deck-card {
    min-height: 200px;
  }
}

.student-course-progress-summary {
  margin-top: auto;
}

.student-course-progress-summary .student-hsk-level-progress {
  padding-right: 0;
}

.comm-hsk-home > .student-quick-practice {
  margin-top: 24px;
}

.teacher-dashboard {
  gap: 18px;
  display: grid;
}

.teacher-dashboard-actions {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.teacher-dashboard-actions > a {
  color: #fff;
  background: #a9382a;
  border-radius: 7px;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.teacher-dashboard-stats {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  display: grid;
}

.teacher-dashboard-stats > a {
  color: #211d18;
  background: #fffdf7;
  border: 1px solid #dad0b4;
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 15px;
  text-decoration: none;
  display: flex;
}

.teacher-dashboard-stats small {
  color: #8c8371;
}

.teacher-dashboard-stats strong {
  margin-top: 5px;
  font-family: Noto Serif SC, serif;
  font-size: 25px;
}

.teacher-dashboard-section-title {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.teacher-dashboard-section-title h2 {
  margin: 0;
}

.teacher-recent-content {
  margin-top: 12px;
  display: grid;
}

.teacher-recent-content > a {
  color: #211d18;
  border-top: 1px solid #e7dfcc;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  text-decoration: none;
  display: flex;
}

.teacher-recent-content span {
  gap: 3px;
  display: grid;
}

.teacher-recent-content small {
  color: #8c8371;
}

.teacher-lesson-page > .tng-page-header {
  margin-bottom: 34px;
}

.teacher-lesson-list {
  background: #fffdf7;
  border: 1px solid #dad0b4;
  border-radius: 10px;
  font-size: 13px;
  display: grid;
  overflow: hidden;
}

.teacher-lesson-list-header, .teacher-lesson-list > article {
  grid-template-columns: minmax(320px, 42fr) minmax(100px, 13fr) minmax(82px, 11fr) minmax(88px, 10fr) minmax(180px, 24fr);
  align-items: center;
  display: grid;
}

.teacher-lesson-list-header {
  color: #5b5449;
  background: #f7f1e3;
  border-bottom: 1px solid #dad0b4;
  min-height: 50px;
  padding: 0 18px;
  font-size: 12.5px;
  font-weight: 800;
}

.teacher-lesson-list-header > span:nth-child(2), .teacher-lesson-list-header > span:nth-child(3), .teacher-lesson-list-header > span:nth-child(4) {
  text-align: center;
}

.teacher-lesson-list > article {
  border-bottom: 1px solid #e7dfcc;
  min-height: 108px;
  padding: 24px 18px;
}

.teacher-lesson-list > article:last-child {
  border-bottom: 0;
}

.teacher-lesson-identity {
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 4px;
  min-width: 0;
  padding-right: 16px;
  display: grid;
}

.teacher-lesson-identity > b {
  color: #a9382a;
  flex: none;
  width: 44px;
  font-size: 13.5px;
}

.teacher-lesson-identity > div {
  gap: 4px;
  min-width: 0;
  display: grid;
}

.teacher-lesson-identity strong {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.teacher-lesson-identity span {
  overflow-wrap: anywhere;
}

.teacher-lesson-list small, .teacher-lesson-list span {
  color: #8c8371;
}

.teacher-lesson-course-status, .teacher-lesson-access-type {
  white-space: nowrap;
  justify-content: center;
  align-items: center;
  display: flex;
}

.teacher-lesson-course-status > small, .teacher-lesson-access-type > small {
  display: none;
}

.teacher-lesson-order, .teacher-lesson-actions {
  align-items: center;
  display: flex;
}

.teacher-lesson-order {
  justify-content: center;
  gap: 14px;
}

.teacher-lesson-order .tng-btn {
  min-width: 32px;
  min-height: 32px;
  padding: 5px;
}

.teacher-lesson-actions {
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 22px;
  min-width: 0;
}

.teacher-lesson-actions > a {
  color: #832b20;
  align-items: center;
  gap: 4px;
  padding: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.tng-authoring-tabs {
  border-bottom: 1px solid #dad0b4;
  gap: 4px;
  margin-bottom: 14px;
  display: flex;
  overflow-x: auto;
}

.tng-authoring-tabs button {
  color: #5b5449;
  cursor: pointer;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  flex: none;
  min-height: 42px;
  padding: 0 14px;
  font-weight: 700;
}

.tng-authoring-tabs button.is-active {
  color: #a9382a;
  border-color: #a9382a;
}

.teacher-lesson-editor-content {
  min-height: 360px;
}

.teacher-editor-toolbar {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
  display: flex;
}

.teacher-editor-collection {
  gap: 12px;
  display: grid;
}

.teacher-editor-collection > article {
  background: #fffdf7;
  border: 1px solid #e1d7bd;
  border-radius: 9px;
  padding: 14px;
}

.teacher-editor-collection > article > header {
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
  display: flex;
}

.teacher-editor-collection > article > header > div {
  gap: 3px;
  display: flex;
}

.teacher-nested-editor {
  gap: 14px;
  display: grid;
}

.teacher-nested-editor > .tng-form-section {
  background: #f8f2e5;
}

.teacher-lesson-preview {
  gap: 18px;
  display: grid;
}

.teacher-lesson-preview h2 {
  margin: 10px 0 4px;
}

.teacher-lesson-preview header > strong {
  color: #a9382a;
  font-family: Noto Serif SC, serif;
}

.teacher-lesson-preview header > p {
  color: #5b5449;
}

.teacher-lesson-preview > div {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.teacher-lesson-preview > div > span {
  background: #f3ecdb;
  border-radius: 7px;
  padding: 7px 10px;
}

.tng-audio-input {
  gap: 8px;
  display: grid;
}

.tng-audio-input audio {
  width: 100%;
  height: 38px;
}

.tng-audio-input small {
  color: #8c8371;
  align-items: center;
  gap: 6px;
  display: flex;
}

.tng-confirm-backdrop {
  z-index: 100;
  background: #1812107a;
  place-items: center;
  padding: 20px;
  display: grid;
  position: fixed;
  inset: 0;
}

.tng-confirm-dialog {
  background: #fffdf7;
  border-radius: 11px;
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  padding: 20px;
  overflow: auto;
  box-shadow: 0 18px 55px #18121033;
}

.tng-confirm-dialog.is-wide {
  width: min(920px, 100%);
}

.tng-confirm-dialog h2 {
  margin: 0 0 8px;
}

.tng-confirm-dialog p {
  color: #5b5449;
  line-height: 1.6;
}

.tng-confirm-actions {
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  display: flex;
}

.teacher-vocabulary-import-preview {
  gap: 14px;
  min-width: 0;
  display: grid;
}

.teacher-vocabulary-import-summary {
  flex-wrap: wrap;
  gap: 8px;
  display: flex;
}

.teacher-vocabulary-import-summary > span {
  background: #f3ecdb;
  border-radius: 7px;
  padding: 8px 10px;
}

.teacher-vocabulary-import-preview table {
  border-collapse: collapse;
  width: 100%;
}

.teacher-vocabulary-import-preview th, .teacher-vocabulary-import-preview td {
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e1d7bd;
  padding: 9px;
}

.teacher-vocabulary-import-preview td:last-child {
  gap: 5px;
  display: grid;
}

.teacher-vocabulary-import-preview td small {
  color: #a9382a;
}

.tng-cancel-link {
  color: #5b5449;
  align-items: center;
  padding: 0 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
}

.teacher-lesson-actions > a, .teacher-lesson-actions .tng-btn {
  white-space: nowrap;
}

@media (max-width: 1199px) and (min-width: 768px) {
  .teacher-dashboard-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .teacher-lesson-list-header, .teacher-lesson-list > article {
    grid-template-columns: minmax(180px, 40fr) minmax(72px, 14fr) minmax(66px, 12fr) minmax(72px, 12fr) minmax(132px, 22fr);
  }

  .teacher-lesson-list-header {
    padding-inline: 14px;
  }

  .teacher-lesson-list > article {
    padding: 22px 14px;
  }

  .teacher-lesson-identity {
    grid-template-columns: 40px minmax(0, 1fr);
    padding-right: 10px;
  }

  .teacher-lesson-identity > b {
    width: 40px;
  }

  .teacher-lesson-actions {
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .teacher-dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .teacher-lesson-page > .tng-page-header {
    margin-bottom: 28px;
  }

  .teacher-lesson-list {
    background: none;
    border: 0;
    gap: 10px;
    overflow: visible;
  }

  .teacher-lesson-list-header {
    display: none;
  }

  .teacher-lesson-list > article {
    background: #fffdf7;
    border: 1px solid #dad0b4;
    border-radius: 9px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
    padding: 18px 15px;
  }

  .teacher-lesson-identity {
    grid-column: 1 / -1;
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 0;
  }

  .teacher-lesson-identity > b {
    width: 40px;
  }

  .teacher-lesson-course-status, .teacher-lesson-access-type {
    justify-content: start;
    justify-items: start;
    gap: 5px;
    display: grid;
  }

  .teacher-lesson-course-status > small, .teacher-lesson-access-type > small {
    display: block;
  }

  .teacher-lesson-order, .teacher-lesson-actions {
    flex-wrap: wrap;
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .teacher-lesson-actions > a, .teacher-lesson-actions .tng-btn {
    min-height: 44px;
  }

  .teacher-editor-collection > article {
    padding: 12px;
  }

  .tng-authoring-tabs button {
    min-height: 44px;
  }

  .tng-confirm-actions {
    flex-direction: column-reverse;
  }

  .tng-confirm-dialog .tng-btn {
    min-height: 44px;
  }

  .teacher-editor-toolbar > .tng-btn {
    flex: 150px;
    justify-content: center;
  }
}

@media (max-width: 430px) {
  .teacher-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .teacher-dashboard-actions, .teacher-dashboard-actions > a {
    width: 100%;
  }

  .teacher-dashboard-actions > a {
    justify-content: center;
  }

  .teacher-lesson-list > article {
    grid-template-columns: 1fr;
  }

  .teacher-lesson-identity, .teacher-lesson-order, .teacher-lesson-actions {
    grid-column: 1;
  }

  .teacher-lesson-actions {
    grid-template-columns: 1fr 1fr;
    display: grid;
  }

  .teacher-editor-collection .tng-form-grid.is-two-columns {
    grid-template-columns: 1fr;
  }

  .tng-form-actions .tng-cancel-link {
    justify-content: center;
    min-height: 44px;
  }
}

.student-scope .tng-sidebar {
  flex: 0 0 256px;
  width: 256px;
  min-height: 100vh;
  padding: 22px 16px 18px;
}

.student-scope .tng-sidebar-link {
  color: inherit;
  text-decoration: none;
}

.student-scope .tng-sidebar-item {
  cursor: pointer;
  border: 0;
  width: 100%;
  margin: 0;
}

.student-scope .tng-sidebar-item > span {
  flex: 1;
}

.student-scope .tng-sidebar-item > small {
  color: var(--s-muted);
}

.student-scope .tng-shell-header {
  background: #fffffff0;
  padding: 0 34px;
}

.student-scope .tng-shell-content {
  padding: 34px 38px 60px;
}

.student-scope > .tng-shell-layout {
  flex: auto;
  width: 100%;
  min-width: 0;
}

.teacher-exercise-list {
  gap: 10px;
  display: grid;
}

.teacher-exercise-row {
  grid-template-columns: 40px minmax(0, 1fr) minmax(140px, auto);
  align-items: center;
  gap: 14px;
  display: grid;
}

.teacher-exercise-row > .tng-pill {
  text-align: center;
  justify-self: end;
  max-width: 220px;
}

.teacher-course-form-page .tng-page-header {
  align-items: flex-start;
}

.teacher-course-form-page .tng-page-header h1 {
  margin-top: 0;
  font-family: Be Vietnam Pro, Segoe UI, sans-serif;
  font-size: 26px;
}

.teacher-course-form-page .tng-page-header-actions {
  justify-content: flex-end;
}

.teacher-course-form-page .tng-page-header-actions .tng-preview-link.is-compact {
  width: auto;
  min-height: 38px;
  padding: 8px 13px;
}

.teacher-course-form-page .tng-form-section {
  border-color: var(--s-line);
  background: #fff;
  gap: 13px;
  padding: 16px !important;
}

.teacher-course-form-page .tng-form-section > header h2 {
  font-size: 15px;
}

.teacher-course-form-page .tng-form-section > header p {
  font-size: 12px;
}

.teacher-course-form-page .tng-form-section-body, .teacher-course-form-page .tng-form-grid {
  gap: 12px;
}

.teacher-course-form-page .tng-form-field {
  gap: 5px;
  font-size: 12.5px;
}

.teacher-course-form-page .tng-form-control {
  border-color: var(--s-line);
  background: #fff;
  border-radius: 8px;
  min-height: 40px;
  padding: 8px 10px;
}

.teacher-course-form-page .tng-form-textarea {
  min-height: 92px;
}

.teacher-course-form-page .teacher-course-form-layout {
  gap: 14px;
}

.teacher-course-form-page .teacher-course-form-layout > main, .teacher-course-form-page .teacher-course-form-layout > aside {
  gap: 12px;
}

.teacher-course-form-page .teacher-course-status {
  gap: 10px;
}

.teacher-course-form-page .teacher-outcome-list {
  gap: 9px;
}

@media (max-width: 900px) {
  .student-scope .tng-sidebar {
    width: 256px !important;
    min-height: 100vh !important;
    padding: 22px 16px 18px !important;
    position: fixed !important;
  }

  .student-scope .tng-sidebar-nav {
    flex-direction: column;
    gap: 5px;
    padding: 22px 0;
    display: flex;
    overflow-y: auto;
  }

  .student-scope .tng-sidebar-link {
    width: 100%;
  }

  .student-scope .tng-sidebar-item {
    white-space: normal;
  }

  .student-scope .tng-shell-header {
    padding: 0 20px !important;
  }

  .student-scope .tng-shell-content {
    padding: 26px 22px 45px !important;
  }

  .teacher-exercise-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
  }
}

@media (max-width: 640px) {
  .student-scope .tng-shell-header {
    padding: 10px 14px !important;
  }

  .student-scope .tng-shell-content {
    padding: 22px 14px 38px !important;
  }

  .teacher-course-form-page .tng-page-header-actions {
    grid-template-columns: 1fr 1fr;
    width: 100%;
    display: grid;
  }

  .teacher-course-form-page .tng-page-header-actions .tng-btn, .teacher-course-form-page .tng-page-header-actions .tng-preview-link {
    justify-content: center;
    width: 100%;
  }

  .teacher-exercise-row {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .teacher-exercise-row > .tng-pill {
    grid-column: 2;
    justify-self: start;
    max-width: 100%;
  }
}

@property --tw-rotate-x {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-y {
  syntax: "*";
  inherits: false
}

@property --tw-rotate-z {
  syntax: "*";
  inherits: false
}

@property --tw-skew-x {
  syntax: "*";
  inherits: false
}

@property --tw-skew-y {
  syntax: "*";
  inherits: false
}

@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-inset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-inset-ring-color {
  syntax: "*";
  inherits: false
}

@property --tw-inset-ring-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-ring-inset {
  syntax: "*";
  inherits: false
}

@property --tw-ring-offset-width {
  syntax: "<length>";
  inherits: false;
  initial-value: 0;
}

@property --tw-ring-offset-color {
  syntax: "*";
  inherits: false;
  initial-value: #fff;
}

@property --tw-ring-offset-shadow {
  syntax: "*";
  inherits: false;
  initial-value: 0 0 #0000;
}

@property --tw-outline-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}

@property --tw-blur {
  syntax: "*";
  inherits: false
}

@property --tw-brightness {
  syntax: "*";
  inherits: false
}

@property --tw-contrast {
  syntax: "*";
  inherits: false
}

@property --tw-grayscale {
  syntax: "*";
  inherits: false
}

@property --tw-hue-rotate {
  syntax: "*";
  inherits: false
}

@property --tw-invert {
  syntax: "*";
  inherits: false
}

@property --tw-opacity {
  syntax: "*";
  inherits: false
}

@property --tw-saturate {
  syntax: "*";
  inherits: false
}

@property --tw-sepia {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-color {
  syntax: "*";
  inherits: false
}

@property --tw-drop-shadow-alpha {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --tw-drop-shadow-size {
  syntax: "*";
  inherits: false
}

/*# sourceMappingURL=%5Broot-of-the-server%5D__0cbk-n2._.css.map*/