/* 学生端“课堂”协调层。cs- 命名空间避免影响既有学生页面。 */

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

.classroom-cards-page:has(.classroom-student) {
  padding: 0;
  background:
    radial-gradient(circle at 76% -8%, rgba(108, 92, 231, 0.14), transparent 33rem),
    radial-gradient(circle at 18% 70%, rgba(116, 185, 255, 0.05), transparent 38rem),
    var(--bg, #0f0f1a);
}

.classroom-student {
  --cs-bg: var(--bg, #0f0f1a);
  --cs-surface: var(--surface, #1a1a2e);
  --cs-card: rgba(28, 29, 51, 0.82);
  --cs-card-strong: rgba(32, 33, 58, 0.94);
  --cs-line: rgba(136, 136, 170, 0.24);
  --cs-line-strong: rgba(162, 155, 254, 0.48);
  --cs-text: var(--text, #e8e8f0);
  --cs-muted: var(--muted, #8888aa);
  --cs-purple: var(--accent-light, #a29bfe);
  --cs-purple-strong: var(--accent, #6c5ce7);
  --cs-green: var(--green, #00b894);
  --cs-yellow: var(--gold, #fdcb6e);
  --cs-red: var(--red, #ff6b6b);
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--cs-text);
  background: transparent;
  font-family: inherit;
}

.classroom-student button,
.classroom-student input,
.classroom-student select {
  font: inherit;
}

.classroom-student button {
  -webkit-tap-highlight-color: transparent;
}

.classroom-student [hidden] {
  display: none !important;
}

.cs-sidebar {
  display: none;
}

.cs-main {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
}

.cs-home,
.cs-dictation-page,
.cs-vocab-cards-page,
.cs-focus-page,
.cs-result-page,
.cs-history-page,
.cs-wrong-notebook-page,
.cs-cards-page {
  width: min(100%, 680px);
  margin: 0 auto;
  padding:
    calc(22px + env(safe-area-inset-top, 0px))
    18px
    calc(112px + env(safe-area-inset-bottom, 0px));
}

.test-env .cs-home,
.test-env .cs-dictation-page,
.test-env .cs-vocab-cards-page,
.test-env .cs-focus-page,
.test-env .cs-result-page,
.test-env .cs-history-page,
.test-env .cs-wrong-notebook-page,
.test-env .cs-cards-page {
  padding-top: calc(58px + env(safe-area-inset-top, 0px));
}

.cs-focus .cs-focus-page,
.cs-focus .cs-result-page,
.cs-focus .cs-vocab-cards-page,
.cs-focus .cs-cards-page {
  padding-bottom: calc(36px + env(safe-area-inset-bottom, 0px));
}

.cs-home-title {
  margin: 6px 0 26px;
  color: #fff;
  font-size: clamp(28px, 8vw, 36px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-align: center;
}

.cs-home-intro {
  display: grid;
  gap: 7px;
  margin: 0 2px 22px;
}

.cs-home-intro strong {
  color: #f4f3ff;
  font-size: clamp(18px, 5vw, 22px);
  font-weight: 850;
  line-height: 1.4;
}

.cs-home-intro span {
  color: #9998b5;
  font-size: 14px;
  line-height: 1.65;
}

.cs-mobile-account {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: var(--cs-muted);
  font-size: 12px;
}

.cs-mobile-account span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-mobile-account button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--cs-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--cs-muted);
  cursor: pointer;
}

.cs-lesson-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  margin-bottom: 26px;
  padding: 16px 20px;
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  background:
    linear-gradient(100deg, rgba(162, 155, 254, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(26, 26, 46, 0.62);
  color: #aaa9c9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  font-size: clamp(15px, 4vw, 18px);
  font-weight: 650;
  line-height: 1.45;
}

.cs-guidance {
  margin: 0 6px 24px;
  color: var(--cs-yellow);
  font-size: clamp(16px, 4vw, 19px);
  font-weight: 750;
  line-height: 1.5;
}

.cs-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.cs-entry-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 190px;
  padding: 21px 20px 20px;
  border: 1px solid var(--cs-line);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(162, 155, 254, 0.045), rgba(255, 255, 255, 0)),
    var(--cs-card);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.cs-entry-cards {
  border-color: rgba(116, 185, 255, 0.26);
  background:
    linear-gradient(145deg, rgba(116, 185, 255, 0.1), rgba(116, 185, 255, 0.015) 58%),
    var(--cs-card);
}

.cs-entry-dictation {
  border-color: rgba(162, 155, 254, 0.32);
  background:
    linear-gradient(145deg, rgba(108, 92, 231, 0.12), rgba(108, 92, 231, 0.018) 58%),
    var(--cs-card);
}

.cs-entry-status {
  align-self: flex-start;
  min-height: 26px;
  margin-bottom: 16px;
  padding: 4px 10px;
  border: 1px solid rgba(162, 155, 254, 0.28);
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.09);
  color: #aaa0ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.cs-entry-card h2 {
  margin: 0 0 10px;
  color: #f3f2ff;
  font-size: clamp(22px, 6vw, 27px);
  font-weight: 900;
  line-height: 1.25;
}

.cs-entry-card p {
  margin: 0 0 20px;
  color: #aaa9c4;
  font-size: 14px;
  line-height: 1.65;
}

.cs-entry-action {
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid rgba(126, 102, 255, 0.78);
  border-radius: 11px;
  background: rgba(108, 92, 231, 0.05);
  color: #9b8cff;
  font-weight: 850;
  line-height: 1.35;
  cursor: pointer;
}

.cs-entry-actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.cs-entry-actions .cs-entry-action {
  margin-top: 0;
}

.cs-entry-action.is-primary {
  border-color: transparent;
  background: linear-gradient(110deg, #6551f0, #765cff);
  color: #fff;
  box-shadow: 0 12px 28px rgba(86, 63, 230, 0.2);
}

.cs-entry-action.is-locked {
  border-color: rgba(253, 203, 110, 0.32);
  background: rgba(253, 203, 110, 0.06);
  color: #dbc47f;
}

.cs-entry-access {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 31px;
  margin: -7px 0 16px;
  color: #9695b2;
  font-size: 12px;
  line-height: 1.4;
}

.cs-entry-access strong {
  color: inherit;
  font-variant-numeric: tabular-nums;
}

.cs-entry-access small {
  margin-left: auto;
  color: #777691;
}

.cs-entry-access.is-open {
  color: #73d7bd;
}

.cs-entry-access.is-locked {
  color: #c8b26e;
}

.cs-entry-note {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin-top: auto;
  padding: 10px 14px;
  border: 1px solid rgba(136, 136, 170, 0.18);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.018);
  color: #777691;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.cs-entry-card.is-disabled,
.cs-entry-coming {
  border-color: rgba(136, 136, 170, 0.16);
  background: rgba(24, 25, 43, 0.58);
  box-shadow: none;
}

.cs-entry-card.is-locked {
  border-color: rgba(253, 203, 110, 0.2);
  background:
    linear-gradient(145deg, rgba(253, 203, 110, 0.045), rgba(255, 255, 255, 0)),
    var(--cs-card);
}

.cs-entry-card.is-locked .cs-entry-status {
  border-color: rgba(253, 203, 110, 0.26);
  background: rgba(253, 203, 110, 0.07);
  color: #c8b26e;
}

.cs-entry-wrong-ready {
  border-color: rgba(253, 203, 110, 0.32);
  background:
    linear-gradient(145deg, rgba(253, 203, 110, 0.08), rgba(255, 255, 255, 0)),
    var(--cs-card);
}

.cs-entry-wrong-ready .cs-entry-status {
  border-color: rgba(253, 203, 110, 0.3);
  background: rgba(253, 203, 110, 0.13);
  color: #e9c963;
}

.cs-entry-coming .cs-entry-status {
  border-color: rgba(253, 203, 110, 0.22);
  background: rgba(253, 203, 110, 0.06);
  color: #b9a56f;
}

.cs-entry-coming h2,
.cs-entry-card.is-disabled h2 {
  color: #aaa9be;
}

.cs-entry-coming p,
.cs-entry-card.is-disabled p {
  color: #85849d;
}

.cs-dictation-layout {
  width: min(100%, 760px);
  margin: 0 auto;
}

.cs-access-notice {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 0 0 20px;
  padding: 14px 15px;
  border: 1px solid rgba(0, 184, 148, 0.28);
  border-radius: 12px;
  background: rgba(0, 184, 148, 0.07);
}

.cs-access-notice.is-locked {
  border-color: rgba(253, 203, 110, 0.3);
  background: rgba(253, 203, 110, 0.07);
}

.cs-access-symbol {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(0, 184, 148, 0.4);
  border-radius: 50%;
  color: #73d7bd;
  font-size: 15px;
  font-weight: 900;
}

.cs-access-notice.is-locked .cs-access-symbol {
  border-color: rgba(253, 203, 110, 0.38);
  color: #dbc47f;
}

.cs-access-notice div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.cs-access-notice strong {
  color: #e9e8f5;
  font-size: 14px;
  line-height: 1.4;
}

.cs-access-notice p {
  margin: 0;
  color: #9e9db8;
  font-size: 12px;
  line-height: 1.55;
}

.cs-access-notice [data-cs-access-countdown] {
  color: #73d7bd;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.cs-start-card.is-locked {
  border-color: rgba(253, 203, 110, 0.22);
  box-shadow: none;
}

.cs-card {
  min-width: 0;
  padding: 24px 20px;
  border: 1px solid var(--cs-line);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(162, 155, 254, 0.035), rgba(255, 255, 255, 0)),
    var(--cs-card);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.13);
}

.cs-card h2 {
  margin: 0 0 14px;
  color: #8878ff;
  font-size: clamp(23px, 6vw, 29px);
  font-weight: 900;
  line-height: 1.25;
}

.cs-card > p {
  margin: 0 0 22px;
  color: #aaa9c4;
  font-size: 16px;
  line-height: 1.55;
}

.cs-card > small {
  display: block;
  margin: 12px 4px 0;
  color: var(--cs-muted);
  font-size: 12px;
  line-height: 1.55;
}

.cs-progress-box {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--cs-line);
  border-radius: 12px;
  background: rgba(12, 13, 27, 0.28);
}

.cs-card-guide {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--cs-line);
  border-radius: 12px;
  background: rgba(12, 13, 27, 0.28);
  color: #b7b6cc;
  font-size: 14px;
  line-height: 1.5;
}

.cs-progress-row {
  padding: 15px 16px 14px;
}

.cs-progress-row + .cs-progress-row {
  border-top: 1px solid var(--cs-line);
}

.cs-progress-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
  color: #b7b6cc;
  font-size: 15px;
}

.cs-progress-row strong {
  color: #9998b5;
  font-weight: 650;
}

.cs-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(136, 136, 170, 0.18);
}

.cs-progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6150eb, #927fff);
  transition: width 0.3s ease;
}

.cs-primary,
.cs-outline,
.cs-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}

.cs-primary {
  border: 1px solid transparent;
  background: linear-gradient(110deg, #6551f0, #765cff 58%, #5f4bea);
  color: #fff;
  box-shadow: 0 12px 26px rgba(76, 56, 214, 0.22);
}

.cs-outline,
.cs-secondary {
  border: 1px solid #7d69ff;
  background: rgba(10, 11, 25, 0.18);
  color: #8f7fff;
}

.cs-secondary {
  width: auto;
  min-width: 180px;
}

.cs-primary:hover,
.cs-primary:focus-visible {
  filter: brightness(1.08);
}

.cs-outline:hover,
.cs-outline:focus-visible,
.cs-secondary:hover,
.cs-secondary:focus-visible {
  background: rgba(108, 92, 231, 0.1);
}

.cs-primary:disabled,
.cs-outline:disabled,
.cs-secondary:disabled {
  cursor: wait;
  filter: grayscale(0.25);
  opacity: 0.65;
}

.cs-field-label,
.cs-fieldset legend {
  display: block;
  margin: 0 0 10px;
  color: #aaa9c4;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.cs-fieldset {
  min-width: 0;
  margin: 19px 0 0;
  padding: 0;
  border: 0;
}

.cs-fieldset:disabled {
  opacity: 0.56;
}

.cs-scope-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.cs-scope-grid label {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.cs-scope-grid label > span {
  color: #aaa9c4;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.cs-scope-grid select {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--cs-line);
  border-radius: 11px;
  outline: 0;
  background-color: rgba(12, 13, 27, 0.72);
  color: #f4f3ff;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.cs-scope-grid select:focus-visible {
  border-color: #806dff;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.cs-scope-grid select:disabled {
  cursor: not-allowed;
  color: #777691;
  opacity: 0.68;
}

.cs-scope-grid option {
  background: #17182a;
  color: #f4f3ff;
}

.cs-range-readonly {
  display: grid;
  gap: 7px;
  min-height: 72px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(116, 185, 255, 0.28);
  border-radius: 10px;
  background: rgba(116, 185, 255, 0.08);
}

.cs-range-readonly > span {
  color: #aaa9c4;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
}

.cs-range-readonly > strong {
  color: #f4f3ff;
  font-size: 19px;
  line-height: 1.35;
}

.cs-range-readonly.is-disabled {
  opacity: 0.6;
}

.cs-scope-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(116, 185, 255, 0.22);
  border-radius: 10px;
  background: rgba(116, 185, 255, 0.07);
  color: #a9c9e8;
  font-size: 13px;
  line-height: 1.45;
}

.cs-scope-state.is-error {
  flex-wrap: wrap;
  border-color: rgba(255, 107, 107, 0.28);
  background: rgba(255, 107, 107, 0.07);
  color: #ff9f9f;
}

.cs-scope-state button {
  flex: 0 0 auto;
  min-height: 44px;
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid rgba(255, 107, 107, 0.4);
  border-radius: 9px;
  background: rgba(255, 107, 107, 0.08);
  color: #ffaaaa;
  font-weight: 800;
  cursor: pointer;
}

.cs-text-input,
.cs-custom-count input,
.cs-number-grid input {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--cs-line);
  border-radius: 11px;
  outline: 0;
  background: rgba(12, 13, 27, 0.42);
  color: #f4f3ff;
  caret-color: var(--cs-purple);
}

.cs-text-input {
  padding: 11px 14px;
  font-size: 16px;
}

.cs-text-input::placeholder,
.cs-custom-count input::placeholder,
.cs-number-grid input::placeholder {
  color: #666680;
}

.cs-text-input:focus,
.cs-custom-count input:focus,
.cs-number-grid input:focus {
  border-color: #806dff;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

.cs-segments {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 11px;
  background: rgba(12, 13, 27, 0.32);
}

.cs-segments.cs-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cs-segments.cs-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cs-segments.cs-five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cs-segments.cs-five .cs-segment span {
  min-width: 0;
  padding-right: 4px;
  padding-left: 4px;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.cs-segment {
  position: relative;
  min-width: 0;
  cursor: pointer;
}

.cs-segment + .cs-segment {
  border-left: 1px solid var(--cs-line);
}

.cs-segment input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.cs-segment span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 9px 8px;
  color: #aaa9c7;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  transition: 0.16s ease;
}

.cs-segment.is-selected span,
.cs-segment:has(input:checked) span {
  background: linear-gradient(110deg, #6551f0, #765cff);
  color: #fff;
}

.cs-segment:focus-within {
  z-index: 1;
  outline: 3px solid rgba(162, 155, 254, 0.48);
  outline-offset: -3px;
}

.cs-custom-count {
  display: grid;
  grid-template-columns: auto minmax(120px, 1fr);
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.07);
}

.cs-custom-count label {
  color: var(--cs-muted);
  font-size: 13px;
  font-weight: 700;
}

.cs-custom-count input {
  min-height: 44px;
  padding: 7px 11px;
  text-align: center;
}

.cs-bidirectional-prep {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(116, 185, 255, 0.24);
  border-radius: 12px;
  background: rgba(116, 185, 255, 0.065);
}

.cs-bidirectional-prep > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cs-bidirectional-prep > div > span {
  color: #8fc2e8;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.cs-bidirectional-prep strong {
  color: #f1f6ff;
  font-size: 18px;
  line-height: 1.35;
}

.cs-bidirectional-prep p {
  margin: 0;
  color: #aaa9c4;
  font-size: 13px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.cs-bidirectional-prep .cs-outline {
  min-width: 0;
  min-height: 48px;
}

.cs-bidirectional-prep > small {
  color: #8fd8c6;
  font-size: 12px;
  line-height: 1.5;
}

.cs-bidirectional-prep.is-complete {
  border-color: rgba(0, 184, 148, 0.3);
  background: rgba(0, 184, 148, 0.07);
}

.cs-wrong-review-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(132px, 0.42fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(253, 203, 110, 0.28);
  border-radius: 12px;
  background: rgba(253, 203, 110, 0.07);
}

.cs-wrong-review-callout div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cs-wrong-review-callout span {
  color: #d6be76;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.cs-wrong-review-callout strong {
  color: #fff2c4;
  font-size: 17px;
  line-height: 1.35;
}

.cs-wrong-review-callout p {
  margin: 0;
  color: #aaa08b;
  font-size: 13px;
  line-height: 1.5;
}

.cs-wrong-review-callout .cs-outline {
  min-width: 0;
  min-height: 48px;
  border-color: rgba(253, 203, 110, 0.42);
  color: #f1cd65;
}

.cs-start-actions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.cs-help {
  margin: 13px auto 0;
  color: var(--cs-muted);
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.cs-card.is-disabled {
  opacity: 0.78;
}

.cs-active-banner,
.cs-edit-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 15px 16px;
  border: 1px solid rgba(0, 184, 148, 0.28);
  border-radius: 13px;
  background: rgba(0, 184, 148, 0.08);
}

.cs-active-banner div,
.cs-edit-callout div {
  display: grid;
  gap: 3px;
}

.cs-active-banner span,
.cs-edit-callout span {
  color: #8fcfc0;
  font-size: 12px;
}

.cs-active-banner strong,
.cs-edit-callout strong {
  font-size: 14px;
  line-height: 1.4;
}

.cs-active-banner button,
.cs-edit-callout button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid rgba(0, 184, 148, 0.42);
  border-radius: 9px;
  background: rgba(0, 184, 148, 0.1);
  color: #70e0c4;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cs-edit-callout {
  margin: 16px 0 0;
  border-color: rgba(253, 203, 110, 0.26);
  background: rgba(253, 203, 110, 0.07);
}

.cs-edit-callout span {
  color: #b8a979;
}

.cs-edit-callout button {
  border-color: rgba(253, 203, 110, 0.38);
  background: rgba(253, 203, 110, 0.09);
  color: var(--cs-yellow);
}

.cs-history-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 72px;
  margin-top: 18px;
  padding: 14px 18px;
  border: 1px solid var(--cs-line);
  border-radius: 13px;
  background: rgba(28, 29, 51, 0.68);
  color: #aaa9c4;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}

.cs-history-link strong {
  color: #f1cd65;
  font-size: 14px;
  line-height: 1.35;
}

.cs-wrong-notebook-link {
  justify-content: space-between;
  border-color: rgba(253, 203, 110, 0.3);
  background: rgba(253, 203, 110, 0.07);
  color: #ddd1a4;
}

.cs-page-header {
  display: grid;
  grid-template-columns: minmax(64px, 0.8fr) minmax(0, 1.4fr) minmax(64px, 0.8fr);
  align-items: center;
  gap: 10px;
  margin-bottom: 46px;
}

.cs-page-header h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 6vw, 30px);
  font-weight: 900;
  line-height: 1.3;
  text-align: center;
  overflow-wrap: anywhere;
}

.cs-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid rgba(153, 152, 184, 0.34);
  border-radius: 8px;
  background: rgba(28, 29, 51, 0.72);
  color: #d6d4ec;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.cs-back:hover,
.cs-back:focus-visible {
  border-color: rgba(128, 109, 255, 0.72);
  background: rgba(108, 92, 231, 0.14);
  color: #fff;
}

.cs-back > span[aria-hidden="true"] {
  font-size: 19px;
  line-height: 1;
}

.cs-status-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  min-height: 42px;
  margin: 0 auto 22px;
  padding: 8px 18px;
  border: 1px solid rgba(0, 184, 148, 0.3);
  border-radius: 999px;
  background: rgba(0, 184, 148, 0.1);
  color: #1fd2a6;
  font-size: 16px;
  font-weight: 750;
}

.cs-status-pill.is-running span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #04c996;
  box-shadow: 0 0 0 5px rgba(0, 184, 148, 0.1);
}

.cs-status-pill.is-paused {
  border-color: rgba(255, 107, 107, 0.33);
  background: rgba(255, 107, 107, 0.08);
  color: #ff7979;
}

.cs-status-pill.is-paused span {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  background: #ff6b6b;
}

.cs-timer {
  color: #fff;
  font-size: clamp(66px, 19vw, 110px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1;
  text-align: center;
}

.cs-timer-label {
  margin-top: 10px;
  color: #9d9cbb;
  font-size: 14px;
  text-align: center;
}

.cs-live-metrics {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 18px;
  color: var(--cs-muted);
  font-size: 13px;
}

.cs-live-metrics strong {
  margin-left: 4px;
  color: #b7b6cd;
  font-variant-numeric: tabular-nums;
}

.cs-session-meta {
  margin: 22px auto 0;
  color: #9998b5;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.5;
  text-align: center;
}

.cs-paper-guide {
  margin: 60px auto 0;
}

.cs-paper-guide h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 6vw, 34px);
  font-weight: 900;
  line-height: 1.42;
  text-align: center;
}

.cs-paper-guide > p {
  margin: 13px 0 30px;
  color: #9190ac;
  font-size: 15px;
  line-height: 1.65;
  text-align: center;
}

.cs-paper-guide ol {
  display: grid;
  gap: 28px;
  width: min(100%, 470px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.cs-paper-guide li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 17px;
}

.cs-paper-guide li > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 2px solid #806dff;
  border-radius: 50%;
  color: #8d7dff;
  font-size: 25px;
  font-weight: 750;
}

.cs-paper-guide li div {
  display: grid;
  gap: 4px;
}

.cs-paper-guide li strong {
  color: #f3f2ff;
  font-size: 20px;
  line-height: 1.35;
}

.cs-paper-guide li small {
  color: #8584a0;
  font-size: 14px;
  line-height: 1.45;
}

.cs-focus-actions {
  display: grid;
  gap: 12px;
  margin: 58px auto 0;
}

.cs-danger-text,
.cs-text-button {
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: var(--cs-red);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.cs-text-button {
  color: #8978ff;
}

.cs-lock-note {
  margin: 14px auto 0;
  color: #7d7c98;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.cs-result-time {
  display: grid;
  justify-items: center;
  gap: 9px;
}

.cs-result-time strong {
  color: #fff;
  font-size: clamp(64px, 18vw, 104px);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.cs-result-time span {
  color: #9695b1;
  font-size: 17px;
  font-weight: 650;
}

.cs-result-time-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 410px);
  margin: 28px auto 0;
}

.cs-result-time-grid > div {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px 20px;
}

.cs-result-time-grid > div + div {
  border-left: 0;
}

.cs-result-time-grid > div:nth-child(even) {
  border-left: 1px solid var(--cs-line);
}

.cs-result-time-grid > div:nth-child(n + 3) {
  border-top: 1px solid var(--cs-line);
}

.cs-result-time-grid span {
  color: #9998b5;
  font-size: 14px;
}

.cs-result-time-grid strong {
  color: var(--cs-yellow);
  font-size: 28px;
  font-variant-numeric: tabular-nums;
}

.cs-result-time-grid > div + div strong {
  color: var(--cs-red);
}

.cs-interrupted-note {
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 107, 0.28);
  border-radius: 11px;
  background: rgba(255, 107, 107, 0.07);
  color: #e1a1a7;
  font-size: 13px;
  line-height: 1.6;
}

.cs-result-card {
  margin-top: 28px;
  padding: 22px 20px;
  border: 1px solid rgba(162, 155, 254, 0.3);
  border-radius: 15px;
  background:
    linear-gradient(145deg, rgba(162, 155, 254, 0.05), rgba(255, 255, 255, 0)),
    var(--cs-card-strong);
}

.cs-content-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--cs-line);
}

.cs-content-row span {
  color: #9a99b7;
  font-size: 14px;
}

.cs-content-row strong {
  max-width: 65%;
  color: #f0effb;
  font-size: 16px;
  line-height: 1.45;
  text-align: right;
}

.cs-checking-fieldset {
  min-width: 0;
  margin: 20px 0 0;
  padding: 0;
  border: 0;
}

.cs-checking-fieldset legend {
  margin-bottom: 10px;
  color: #9998b5;
  font-size: 14px;
  font-weight: 750;
}

.cs-number-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.cs-number-grid label {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.cs-number-grid label + label {
  position: relative;
}

.cs-number-grid label + label::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -12px;
  width: 1px;
  background: var(--cs-line);
  content: "";
}

.cs-number-grid label > span {
  color: #9998b5;
  font-size: 14px;
  font-weight: 700;
}

.cs-number-grid input {
  min-height: 92px;
  padding: 10px;
  border-color: #6253b2;
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  text-align: center;
}

.cs-number-grid small {
  min-height: 38px;
  color: #8584a0;
  font-size: 12px;
  line-height: 1.5;
}

.cs-wrong-field.is-disabled {
  opacity: 0.52;
}

.cs-wrong-word-panel {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 16px;
  border: 1px solid rgba(255, 107, 107, 0.26);
  border-radius: 12px;
  background: rgba(255, 107, 107, 0.055);
}

.cs-wrong-word-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cs-wrong-word-head strong {
  color: #f4dada;
  font-size: 15px;
  line-height: 1.35;
}

.cs-wrong-word-head span {
  flex: 0 0 auto;
  color: #ff9f9f;
  font-size: 13px;
  font-weight: 800;
}

.cs-wrong-word-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 10px;
}

.cs-wrong-word-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(136, 136, 170, 0.2);
  border-radius: 10px;
  background: rgba(12, 13, 27, 0.28);
  cursor: pointer;
}

.cs-wrong-word-item input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #ff7675;
}

.cs-wrong-word-item span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cs-wrong-word-item strong {
  color: #f6f4ff;
  font-size: 15px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cs-wrong-word-item small {
  color: #9998b5;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.cs-wrong-word-item.is-wrong {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.09);
}

.cs-wrong-word-panel > small {
  color: #a89ca8;
  font-size: 12px;
  line-height: 1.5;
}

.cs-correct-line {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--cs-line);
  color: #f1f0fb;
}

.cs-correct-line strong {
  font-size: 16px;
  line-height: 1.45;
}

.cs-form-error {
  min-height: 20px;
  margin-top: 10px;
  color: #ff8585;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.cs-result-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.cs-history-intro {
  margin: -24px 0 22px;
  color: #8f8eaa;
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.cs-efficiency-panel {
  margin-bottom: 20px;
  padding: 20px;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-card);
}

.cs-history-toolbar,
.cs-history-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 16px 0;
}

.cs-history-modes {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--cs-line);
  border-radius: 10px;
  background: var(--cs-card);
}

.cs-history-modes button {
  padding: 9px 18px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #b9b8cf;
  font: inherit;
  cursor: pointer;
}

.cs-history-modes button[aria-pressed="true"] {
  background: #385e82;
  color: #fff;
}

.cs-history-note,
.cs-history-pager > span,
.cs-efficiency-detail p {
  color: #aaa9c0;
  font-size: 13px;
  line-height: 1.7;
}

.cs-lesson-list {
  display: flex;
  overflow-x: auto;
  padding-bottom: 5px;
  scroll-snap-type: x proximity;
  gap: 10px;
}

.cs-lesson-choice {
  display: grid;
  flex: 0 0 220px;
  scroll-snap-align: start;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-card);
  color: #f4f3ff;
  text-align: left;
  font: inherit;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.cs-lesson-choice[aria-pressed="true"] {
  border-color: #74b9ff;
  background: rgba(56, 94, 130, .3);
}

.cs-lesson-choice span,
.cs-lesson-choice small {
  color: #aaa9c0;
  font-size: 12px;
  line-height: 1.5;
}

.cs-lesson-detail { margin-top: 26px; }
.cs-lesson-detail h2 { color: #f4f3ff; font-size: 18px; }
.cs-history-pager .cs-soft-action { flex-shrink: 0; }
.cs-history-pager > span { text-align: center; font-size: 12px; }
.cs-history-modes button:focus-visible,
.cs-lesson-choice:focus-visible { outline: 2px solid #74b9ff; outline-offset: 3px; }

.cs-efficiency-panel.is-saved-review {
  margin: 18px 0 22px;
  border-color: rgba(111, 213, 189, 0.38);
  background: rgba(22, 44, 48, 0.46);
}

.cs-efficiency-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.cs-efficiency-head h2 {
  margin: 0;
  color: #f4f3ff;
  font-size: 19px;
  line-height: 1.35;
}

.cs-efficiency-head p {
  margin: 5px 0 0;
  color: #9291ad;
  font-size: 13px;
  line-height: 1.5;
}

.cs-efficiency-head > span {
  flex: 0 0 auto;
  color: #9e9db8;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.cs-efficiency-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 18px 0 12px;
  padding: 14px 0;
  border-top: 1px solid rgba(136, 136, 170, 0.18);
  border-bottom: 1px solid rgba(136, 136, 170, 0.18);
}

.cs-efficiency-stats > div {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
  padding: 0 10px;
  text-align: center;
}

.cs-efficiency-stats > div + div {
  border-left: 1px solid rgba(136, 136, 170, 0.18);
}

.cs-efficiency-stats b {
  color: #f2f1fb;
  font-size: 21px;
  line-height: 1.25;
  white-space: nowrap;
}

.cs-efficiency-stats b.is-faster {
  color: #6fd5bd;
}

.cs-efficiency-stats b.is-slower {
  color: #ff9f9f;
}

.cs-efficiency-stats small {
  margin-left: 3px;
  color: #aaa9c1;
  font-size: 11px;
}

.cs-efficiency-stats span {
  overflow-wrap: anywhere;
  color: #85849f;
  font-size: 11px;
  line-height: 1.4;
}

.cs-efficiency-chart {
  position: relative;
  width: 100%;
  height: 224px;
}

.cs-efficiency-panel.is-saved-review .cs-efficiency-chart {
  height: 194px;
}

.cs-efficiency-chart canvas {
  display: block;
  max-width: 100%;
  outline: none;
}

.cs-efficiency-chart canvas:focus-visible {
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(116, 185, 255, 0.55);
}

.cs-efficiency-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 8px;
  color: #8d8ca7;
  font-size: 11px;
  line-height: 1.4;
}

.cs-efficiency-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cs-efficiency-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff8f8f;
}

.cs-efficiency-legend i.is-perfect {
  background: #6fd5bd;
}

.cs-efficiency-legend i.is-steady {
  background: #f0c96b;
}

.cs-efficiency-detail {
  display: grid;
  gap: 7px;
  min-height: 62px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(136, 136, 170, 0.18);
}

.cs-efficiency-detail > strong {
  overflow-wrap: anywhere;
  color: #e9e8f5;
  font-size: 13px;
  line-height: 1.45;
}

.cs-efficiency-detail > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
}

.cs-efficiency-detail b {
  flex: 0 0 auto;
  color: #86c7ff;
  font-size: 14px;
}

.cs-efficiency-detail span {
  color: #85849f;
  font-size: 11px;
  line-height: 1.5;
  text-align: right;
}

.cs-efficiency-empty {
  margin: 20px 0 0;
  padding: 18px 0 2px;
  border-top: 1px solid rgba(136, 136, 170, 0.18);
  color: #8f8eaa;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.cs-efficiency-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.cs-soft-action {
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid rgba(162, 155, 254, 0.32);
  border-radius: 8px;
  background: rgba(162, 155, 254, 0.08);
  color: #d8d4ff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.cs-soft-action.is-primary {
  border-color: rgba(111, 213, 189, 0.45);
  background: rgba(0, 184, 148, 0.16);
  color: #9df0db;
}

.cs-history-list {
  display: grid;
  gap: 12px;
}

.cs-history-item {
  position: relative;
  padding: 18px;
  border: 1px solid var(--cs-line);
  border-radius: 13px;
  background: var(--cs-card);
}

.cs-history-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.cs-history-item-top > div {
  display: grid;
  gap: 5px;
}

.cs-history-item-top strong {
  color: #f0effb;
  font-size: 16px;
  line-height: 1.4;
}

.cs-history-item-top div span {
  color: #7e7d98;
  font-size: 12px;
}

.cs-history-status {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 184, 148, 0.09);
  color: #6fd5bd;
  font-size: 12px;
  font-weight: 750;
}

.cs-history-status.is-pending {
  background: rgba(253, 203, 110, 0.09);
  color: #ddc06a;
}

.cs-history-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 14px;
  color: #9998b4;
  font-size: 13px;
}

.cs-edited-mark {
  display: inline-block;
  margin-top: 12px;
  color: #7f7e99;
  font-size: 11px;
}

.cs-inline-edit {
  float: right;
  min-height: 44px;
  margin-top: 9px;
  padding: 6px 11px;
  border: 1px solid rgba(162, 155, 254, 0.38);
  border-radius: 8px;
  background: rgba(108, 92, 231, 0.08);
  color: var(--cs-purple);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.cs-empty-history {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 48px 20px;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  background: var(--cs-card);
}

.cs-empty-history strong {
  font-size: 18px;
}

.cs-empty-history span {
  color: var(--cs-muted);
  font-size: 13px;
}

.cs-wrong-notebook-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  background: var(--cs-line);
}

.cs-wrong-notebook-summary > div {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 15px 10px;
  background: rgba(28, 29, 51, 0.9);
  text-align: center;
}

.cs-wrong-notebook-summary span {
  color: #9998b5;
  font-size: 12px;
  line-height: 1.35;
}

.cs-wrong-notebook-summary strong {
  color: #fff2c4;
  font-size: 24px;
  line-height: 1.15;
}

.cs-wrong-notebook-review {
  margin-bottom: 16px;
}

.cs-wrong-notebook-note {
  margin: 0 0 14px;
  color: #aaa08b;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.cs-wrong-notebook-list {
  display: grid;
  gap: 12px;
}

.cs-wrong-notebook-item {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 17px;
  border: 1px solid var(--cs-line);
  border-left-width: 5px;
  border-radius: 13px;
  background: var(--cs-card);
}

.cs-wrong-notebook-item.is-due {
  border-left-color: #f1cd65;
  background:
    linear-gradient(110deg, rgba(253, 203, 110, 0.08), rgba(253, 203, 110, 0.015)),
    var(--cs-card);
}

.cs-wrong-notebook-item.is-learning {
  border-left-color: #ff8f8f;
}

.cs-wrong-notebook-item.is-scheduled {
  border-left-color: #6fd5bd;
}

.cs-wrong-notebook-word {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.cs-wrong-notebook-word > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.cs-wrong-notebook-word strong {
  overflow-wrap: anywhere;
  color: #f5f3ff;
  font-size: 21px;
  line-height: 1.25;
}

.cs-wrong-notebook-word span {
  color: #9998b5;
  font-size: 13px;
  line-height: 1.35;
}

.cs-wrong-notebook-word button {
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid rgba(162, 155, 254, 0.3);
  border-radius: 10px;
  background: rgba(108, 92, 231, 0.08);
  color: #d9d4ff;
  cursor: pointer;
}

.cs-wrong-notebook-item p {
  margin: 0;
  overflow-wrap: anywhere;
  color: #d9d8e8;
  font-size: 15px;
  line-height: 1.55;
}

.cs-wrong-notebook-item > small {
  color: #8988a3;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cs-wrong-notebook-source {
  color: #c8c3e8 !important;
}

.cs-wrong-notebook-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(136, 136, 170, 0.18);
}

.cs-wrong-notebook-meta span {
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(253, 203, 110, 0.1);
  color: #f1cd65;
  font-size: 12px;
  font-weight: 800;
}

.cs-wrong-notebook-item.is-learning .cs-wrong-notebook-meta span {
  background: rgba(255, 107, 107, 0.09);
  color: #ff9f9f;
}

.cs-wrong-notebook-item.is-scheduled .cs-wrong-notebook-meta span {
  background: rgba(0, 184, 148, 0.09);
  color: #6fd5bd;
}

.cs-wrong-notebook-meta b {
  color: #9d9cb8;
  font-size: 12px;
  line-height: 1.45;
}

.cs-state-panel {
  display: grid;
  justify-items: center;
  gap: 13px;
  width: min(calc(100% - 36px), 520px);
  margin: 0 auto;
  padding: max(18vh, 120px) 20px 48px;
  text-align: center;
}

.cs-state-panel h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 900;
}

.cs-state-panel p {
  max-width: 400px;
  margin: 0 0 10px;
  color: var(--cs-muted);
  font-size: 14px;
  line-height: 1.65;
}

.cs-state-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 2px solid var(--cs-line-strong);
  border-radius: 50%;
  color: var(--cs-purple);
  font-size: 30px;
  font-weight: 700;
}

.cs-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(162, 155, 254, 0.15);
  border-top-color: var(--cs-purple);
  border-radius: 50%;
  animation: cs-spin 0.85s linear infinite;
}

@keyframes cs-spin {
  to { transform: rotate(360deg); }
}

.cs-mobile-nav {
  position: fixed;
  z-index: 120;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
  min-height: 74px;
  padding: 7px 4px calc(7px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(136, 136, 170, 0.2);
  background: rgba(22, 23, 42, 0.96);
  box-shadow: 0 -14px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.cs-focus .cs-mobile-nav {
  display: none;
}

.cs-nav-item {
  display: flex;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #8d8ca6;
  cursor: pointer;
}

.cs-nav-icon {
  flex: 0 0 auto;
  line-height: 1;
}

.cs-mobile-nav .cs-nav-item {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 6px 2px;
  font-weight: 750;
}

.cs-mobile-nav .cs-nav-icon {
  font-size: 22px;
}

.cs-mobile-nav .cs-nav-label {
  font-size: 11px;
  line-height: 1.2;
}

.cs-nav-item.is-active {
  color: #907fff;
}

.cs-mobile-nav .cs-nav-item.is-active .cs-nav-label {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(108, 92, 231, 0.18);
}

.cs-nav-item:focus-visible,
.classroom-student button:focus-visible {
  outline: 3px solid rgba(162, 155, 254, 0.52);
  outline-offset: 2px;
}

.cs-live {
  position: fixed;
  z-index: -1;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.cs-cards-page {
  width: 100%;
  max-width: none;
  padding: 0;
}

.cs-cards-study-root {
  min-height: 100vh;
  min-height: 100dvh;
}

.cs-vocab-cards-page {
  overflow-x: clip;
}

.cs-vocab-cards-page .cs-page-header,
.cs-cut-cards-page .cs-page-header {
  grid-template-columns: auto minmax(0, 1fr);
  margin-bottom: 12px;
}

.cs-vocab-cards-page .cs-page-header > span:last-child,
.cs-cut-cards-page .cs-page-header > span:last-child {
  display: none;
}

.cs-vocab-cards-page .cs-page-header h1,
.cs-cut-cards-page .cs-page-header h1 {
  font-size: clamp(18px, 5vw, 26px);
  text-align: right;
}

.cs-preparation-timer {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 8px;
  margin: 0 0 10px;
}

.cs-preparation-timer span {
  color: #9cccf1;
  font-size: 12px;
  font-weight: 800;
}

.cs-preparation-timer strong {
  color: #f1f6ff;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.cs-preparation-timer small {
  color: #aaa9c4;
  font-size: 11px;
  text-align: center;
  line-height: 1.45;
}

.cs-vocab-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

.cs-vocab-card-meta .cs-status-pill {
  min-height: 26px;
  margin: 0;
  padding: 4px 8px;
  font-size: 12px;
  white-space: nowrap;
}

.cs-vocab-card-meta > strong {
  color: #d8d5f5;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}

.cs-vocab-card-source {
  margin: 0 0 10px;
  color: #aaa9c4;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

.cs-vocab-card-timing {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  width: 100%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(162, 155, 254, 0.26);
  border-radius: 12px;
  background: #202139;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.test-env .cs-vocab-card-timing {
  top: calc(36px + env(safe-area-inset-top, 0px));
}

.cs-vocab-card-clock {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.cs-vocab-card-clock span {
  color: #aaa9c4;
  font-size: 12px;
  font-weight: 800;
}

.cs-vocab-card-clock strong {
  color: #f1f6ff;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.cs-vocab-card-timing small {
  grid-column: 1 / -1;
  color: #aaa9c4;
  font-size: 12px;
  line-height: 1.45;
}

.cs-vocab-card-timing.is-warning {
  border-color: rgba(253, 203, 110, 0.58);
  background: #34302e;
}

.cs-vocab-card-timing.is-warning span,
.cs-vocab-card-timing.is-warning strong,
.cs-vocab-card-timing.is-warning small {
  color: #f5d27f;
}

.cs-vocab-card-instruction {
  margin: 0 0 12px;
  color: #aaa9c4;
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.cs-vocab-card-instruction strong {
  display: block;
  color: var(--cs-text);
  font-weight: 600;
}

.cs-bidirectional-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-width: 0;
  min-height: 230px;
  overflow: hidden;
  padding: 20px 18px;
  border: 1px solid rgba(162, 155, 254, 0.3);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 12%, rgba(108, 92, 231, 0.14), transparent 52%),
    rgba(25, 26, 47, 0.88);
  text-align: center;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.17);
}

.cs-bidirectional-card > span,
.cs-bidirectional-answer > span {
  color: #8f8da9;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.cs-bidirectional-card > h2 {
  max-width: 100%;
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 10vw, 52px);
  font-weight: 900;
  line-height: 1.16;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs-bidirectional-card > .cs-primary {
  width: min(100%, 360px);
}

.cs-bidirectional-card.is-revealed {
  border-color: rgba(0, 184, 148, 0.34);
}

.cs-vocab-word-line,
.cs-vocab-answer-word {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 100%;
}

.cs-vocab-word-line strong,
.cs-vocab-answer-word strong {
  max-width: 100%;
  color: #fff;
  font-size: clamp(34px, 10vw, 58px);
  font-weight: 900;
  line-height: 1.08;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs-speak-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(116, 185, 255, 0.42);
  border-radius: 50%;
  background: rgba(116, 185, 255, 0.1);
  color: #a9d8ff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.cs-speak-word:hover,
.cs-speak-word:focus-visible {
  background: rgba(116, 185, 255, 0.16);
}

.cs-vocab-word-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 100%;
  margin-top: -8px;
}

.cs-vocab-ipa,
.cs-vocab-pos {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(136, 136, 170, 0.13);
  color: #b8c2d6;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cs-vocab-pos {
  background: rgba(253, 203, 110, 0.11);
  color: #dfc46d;
}

.cs-bidirectional-answer {
  display: grid;
  justify-items: center;
  gap: 8px;
  width: min(100%, 480px);
  min-width: 0;
  padding: 18px 16px;
  border: 1px solid rgba(0, 184, 148, 0.24);
  border-radius: 14px;
  background: rgba(0, 184, 148, 0.07);
}

.cs-bidirectional-answer strong {
  max-width: 100%;
  color: #dffff7;
  font-size: clamp(24px, 8vw, 40px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.cs-bidirectional-answer small {
  max-width: 100%;
  color: #aaa9c4;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.cs-typing-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cs-typing-result b {
  color: #f8f7ff;
}

.cs-typing-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.cs-typing-result.is-correct .cs-typing-mark {
  border: 1px solid rgba(22, 163, 74, 0.36);
  background: rgba(22, 163, 74, 0.14);
  color: #55d486;
}

.cs-typing-result.is-wrong .cs-typing-mark {
  border: 1px solid rgba(220, 38, 38, 0.42);
  background: rgba(220, 38, 38, 0.14);
  color: #ff8a8a;
}

.cs-typing-message {
  display: block;
  width: 100%;
  margin-top: -2px;
  font-weight: 800;
}

.cs-typing-message.is-correct {
  color: #55d486;
}

.cs-typing-message.is-wrong {
  color: #ff8a8a;
}

.cs-typing-panel {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: min(100%, 420px);
}

.cs-typing-panel label {
  color: #aaa9c4;
  font-size: 13px;
  font-weight: 800;
}

.cs-typing-panel input {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 1px solid rgba(162, 155, 254, 0.36);
  border-radius: 11px;
  outline: 0;
  background: rgba(12, 13, 27, 0.48);
  color: #f8f7ff;
  font-size: 20px;
  font-weight: 750;
  text-align: center;
}

.cs-typing-panel input:focus {
  border-color: #8c7aff;
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.16);
}

.cs-vocab-mnemonic {
  display: grid;
  gap: 10px;
  width: min(100%, 560px);
  padding: 16px;
  border: 1px solid rgba(253, 203, 110, 0.3);
  border-radius: 12px;
  background: rgba(253, 203, 110, 0.08);
  text-align: left;
}

.cs-vocab-mnemonic.is-typing-fallback {
  border-color: rgba(220, 38, 38, 0.3);
  background: rgba(220, 38, 38, 0.08);
}

.cs-vocab-mnemonic > span {
  color: #d7bf75;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.35;
}

.cs-vocab-mnemonic div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.cs-vocab-mnemonic strong {
  color: #fff0be;
  font-size: 13px;
  line-height: 1.35;
}

.cs-vocab-mnemonic p {
  margin: 0;
  color: #dad0b1;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.cs-vocab-ratings {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  width: min(100%, 520px);
}

.cs-vocab-cut {
  display: grid;
  gap: 8px;
  width: min(100%, 520px);
  margin-top: 8px;
  text-align: center;
}

.cs-cut-cards-page {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: 22px 18px 112px;
}

.cs-vocab-cut .cs-outline {
  border-color: #e5c76a;
  color: #f5d980;
  min-height: 44px;
}

.cs-vocab-cut small {
  color: #b9b5cf;
  font-size: 12px;
}

.cs-cut-undo, .cs-cut-row, .cs-cut-pages {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.cs-cut-undo {
  padding: 10px 14px;
  width: min(calc(100% - 28px), 644px);
  margin: 12px auto;
  border: 1px solid #685d36;
  border-radius: 12px;
  background: #302b1e;
}

.cs-cut-row {
  padding: 16px 0;
  border-bottom: 1px solid #3a3650;
}

.cs-cut-row > div {
  display: grid;
  gap: 5px;
  flex: 1;
  min-width: 0;
  text-align: left;
  overflow-wrap: anywhere;
}

.cs-cut-row small { color: #b9b5cf; }
.cs-cut-row .cs-outline {
  flex: 0 0 auto;
  width: auto;
  min-width: 88px;
  min-height: 44px;
  padding: 10px 12px;
}
.cs-cut-pages { margin-top: 16px; }

.cs-vocab-ratings button {
  min-width: 0;
  min-height: 46px;
  padding: 8px 8px;
  border: 1px solid rgba(136, 136, 170, 0.24);
  border-radius: 10px;
  background: rgba(12, 13, 27, 0.34);
  color: #d9d7ed;
  font-weight: 850;
  cursor: pointer;
}

.cs-vocab-ratings button:nth-child(1) {
  border-color: rgba(255, 107, 107, 0.35);
  color: #ff9f9f;
}

.cs-vocab-ratings button:nth-child(2) {
  border-color: rgba(253, 203, 110, 0.35);
  color: #e5c76a;
}

.cs-vocab-ratings button:nth-child(3),
.cs-vocab-ratings button:nth-child(4) {
  border-color: rgba(0, 184, 148, 0.35);
  color: #72d7bf;
}

.cs-vocab-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 600px);
  margin: 18px auto 0;
}

.cs-vocab-card-actions > button {
  min-width: 0;
  min-height: 54px;
  white-space: normal;
}

.cs-switch-direction {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 44px;
  margin: 10px auto 0;
  padding: 8px 12px;
  text-align: center;
}

@media (max-width: 560px) {
  .cs-efficiency-panel {
    padding: 17px 14px;
  }

  .cs-efficiency-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-efficiency-stats > div:nth-child(3) {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(136, 136, 170, 0.18);
    border-left: 0;
  }

  .cs-efficiency-chart {
    height: 204px;
  }

  .cs-efficiency-panel.is-saved-review .cs-efficiency-chart {
    height: 188px;
  }

  .cs-efficiency-actions {
    display: grid;
  }

  .cs-efficiency-detail > div {
    display: grid;
    gap: 5px;
  }

  .cs-efficiency-detail span {
    text-align: left;
  }
}

@media (min-width: 700px) {
  .cs-home,
  .cs-dictation-page,
  .cs-vocab-cards-page,
  .cs-focus-page,
  .cs-result-page,
  .cs-history-page,
  .cs-wrong-notebook-page {
    padding-right: 28px;
    padding-left: 28px;
  }

  .cs-card {
    padding: 27px 26px;
  }

  .cs-entry-card {
    padding: 24px;
  }

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

  .cs-bidirectional-prep {
    grid-template-columns: minmax(0, 1fr) minmax(210px, 260px);
    align-items: center;
  }

  .cs-bidirectional-prep > small {
    grid-column: 1 / -1;
  }

  .cs-bidirectional-card {
    min-height: 260px;
    padding: 24px 28px;
  }
}

@media (min-width: 900px) {
  .classroom-student {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
  }

  .cs-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 42px 22px 28px;
    border-right: 1px solid rgba(136, 136, 170, 0.18);
    background: rgba(15, 15, 29, 0.72);
  }

  .test-env .cs-sidebar {
    padding-top: 64px;
  }

  .cs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 34px;
  }

  .cs-brand > div:last-child {
    display: grid;
    gap: 4px;
  }

  .cs-brand strong {
    color: #f5f4ff;
    font-size: 17px;
    white-space: nowrap;
  }

  .cs-brand span {
    color: #777691;
    font-size: 12px;
  }

  .cs-side-nav {
    display: grid;
    gap: 8px;
  }

  .cs-side-nav .cs-nav-item {
    align-items: center;
    gap: 16px;
    min-height: 54px;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
  }

  .cs-side-nav .cs-nav-icon {
    width: 24px;
    font-size: 20px;
    text-align: center;
  }

  .cs-side-nav .cs-nav-item:hover {
    background: rgba(255, 255, 255, 0.025);
    color: #bab9ce;
  }

  .cs-side-nav .cs-nav-item.is-active {
    background: linear-gradient(100deg, rgba(108, 92, 231, 0.23), rgba(162, 155, 254, 0.11));
    color: #937fff;
  }

  .cs-account {
    display: grid;
    gap: 6px;
    margin-top: auto;
    padding: 25px 20px 0;
    border-top: 1px solid rgba(136, 136, 170, 0.18);
  }

  .cs-account > span {
    color: #777691;
    font-size: 12px;
  }

  .cs-account strong {
    overflow-wrap: anywhere;
    color: #aaa9c0;
    font-size: 14px;
    line-height: 1.5;
  }

  .cs-account button {
    justify-self: start;
    min-height: 44px;
    margin-top: 12px;
    padding: 7px 0;
    border: 0;
    background: transparent;
    color: #85849e;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
  }

  .cs-mobile-nav,
  .cs-mobile-account {
    display: none;
  }

  .cs-main {
    min-width: 0;
  }

  .cs-home,
  .cs-dictation-page,
  .cs-vocab-cards-page,
  .cs-focus-page,
  .cs-result-page,
  .cs-history-page,
  .cs-wrong-notebook-page {
    width: min(100%, 1180px);
    padding: 44px 42px 64px;
  }

  .test-env .cs-home,
  .test-env .cs-dictation-page,
  .test-env .cs-vocab-cards-page,
  .test-env .cs-focus-page,
  .test-env .cs-result-page,
  .test-env .cs-history-page,
  .test-env .cs-wrong-notebook-page {
    padding-top: 70px;
  }

  .cs-home-title {
    margin: 0 0 28px;
    font-size: 32px;
    text-align: left;
  }

  .cs-home-intro {
    margin-bottom: 26px;
  }

  .cs-home-intro strong {
    font-size: 21px;
  }

  .cs-home-intro span {
    font-size: 15px;
  }

  .cs-lesson-pill {
    min-height: 62px;
    margin-bottom: 24px;
    padding: 13px 22px;
    font-size: 16px;
  }

  .cs-guidance {
    margin-bottom: 24px;
    font-size: 18px;
  }

  .cs-home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 18px;
  }

  .cs-entry-card {
    min-height: 270px;
    padding: 26px 24px 24px;
  }

  .cs-entry-card h2 {
    font-size: 25px;
  }

  .cs-entry-card p {
    font-size: 15px;
  }

  .cs-card {
    display: flex;
    flex-direction: column;
    min-height: 460px;
    padding: 32px;
  }

  .cs-card h2 {
    font-size: 27px;
  }

  .cs-card > p {
    font-size: 16px;
  }

  .cs-vocab-card .cs-outline {
    margin-top: auto;
  }

  .cs-start-actions {
    margin-top: auto;
  }

  .cs-active-banner,
  .cs-edit-callout {
    padding-right: 20px;
    padding-left: 20px;
  }

  .cs-history-link {
    min-height: 78px;
    margin-top: 22px;
    padding-right: 28px;
    padding-left: 28px;
  }

  .cs-page-header {
    margin-bottom: 54px;
  }

  .cs-focus-page,
  .cs-result-page,
  .cs-dictation-page,
  .cs-vocab-cards-page {
    width: min(100%, 860px);
  }

  .cs-paper-guide {
    margin-top: 68px;
  }

  .cs-focus-actions,
  .cs-result-actions {
    width: min(100%, 650px);
  }

  .cs-result-card {
    padding: 28px 32px;
  }

  .cs-history-page,
  .cs-wrong-notebook-page {
    width: min(100%, 920px);
  }
}

@media (max-width: 390px) {
  .cs-home,
  .cs-dictation-page,
  .cs-vocab-cards-page,
  .cs-focus-page,
  .cs-result-page,
  .cs-history-page,
  .cs-wrong-notebook-page {
    padding-right: 14px;
    padding-left: 14px;
  }

  .cs-card,
  .cs-result-card {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cs-entry-card {
    min-height: 178px;
    padding: 18px 16px 16px;
  }

  .cs-entry-status {
    margin-bottom: 12px;
  }

  .cs-entry-card h2 {
    margin-bottom: 7px;
    font-size: 22px;
  }

  .cs-entry-card p {
    margin-bottom: 15px;
    font-size: 13px;
    line-height: 1.55;
  }

  .cs-entry-action,
  .cs-entry-note {
    min-height: 46px;
  }

  .cs-lesson-pill {
    padding-right: 16px;
    padding-left: 16px;
  }

  .cs-segment span {
    padding-right: 4px;
    padding-left: 4px;
    font-size: 14px;
  }

  .cs-segments.cs-five .cs-segment span {
    padding-right: 2px;
    padding-left: 2px;
    font-size: 12px;
  }

  .cs-scope-grid select {
    padding-right: 34px;
    padding-left: 11px;
    font-size: 14px;
  }

  .cs-range-readonly > strong {
    font-size: 17px;
  }

  .cs-bidirectional-prep {
    padding: 14px;
  }

  .cs-bidirectional-card {
    min-height: 220px;
    padding: 18px 14px;
  }

  .cs-vocab-card-actions {
    gap: 8px;
  }

  .cs-vocab-card-actions > button {
    padding-right: 8px;
    padding-left: 8px;
    font-size: 13px;
  }

  .cs-number-grid {
    gap: 16px;
  }

  .cs-number-grid label + label::before {
    left: -9px;
  }

  .cs-number-grid input {
    min-height: 84px;
    font-size: 38px;
  }

  .cs-mobile-nav .cs-nav-item {
    gap: 1px;
  }

  .cs-mobile-nav .cs-nav-label {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .classroom-student *,
  .classroom-student *::before,
  .classroom-student *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
/* 重练只创建新进度；在原范围旁明确展示范围和历史保留说明。 */
.cs-restart-panel {
  margin-top: 12px;
  padding: 16px;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  background: var(--cs-card-strong);
}
.cs-restart-panel label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.cs-restart-panel select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--cs-line);
  border-radius: 8px;
  background: var(--cs-surface);
  color: var(--cs-text);
  font: inherit;
}
.cs-restart-panel p { line-height: 1.6; overflow-wrap: anywhere; }
