



body {
  margin: 0;
  min-height: 100vh;
  background-image: radial-gradient(circle at 15% 50%, rgba(26, 115, 232, 0.03), transparent 25%),
                    radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.03), transparent 25%);
  overflow-x: hidden;
}

button, input, select { font: inherit; }
button { cursor: pointer; touch-action: manipulation; }



.ambient-a {
  display: none;
}

.ambient-b {
  display: none;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.auth-layout {
  display: grid;
  align-items: stretch;
}

.mobile-confirm {
  width: min(520px, 100%);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 34px;
  text-align: center;
}

.mobile-confirm h1 {
  margin: 8px 0 0;
  font-size: 36px;
}

.mobile-confirm p {
  margin: 0;
  line-height: 1.7;
}

.auth-story,
.auth-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.auth-story {
  align-content: space-between;
}





.auth-card {
  display: grid;
  align-content: start;
  gap: 16px;
}

.auth-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.auth-head h2 {
  margin: 6px 0 0;
}

.status-pill,
.role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}





.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.auth-tabs button {
  min-height: 42px;
  border: 0;
}



.auth-form {
  display: grid;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form input,
.auth-form select {
  width: 100%;
  outline: 0;
}

.auth-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.agreement-check {
  display: grid !important;
  grid-template-columns: auto 1fr;
  gap: 10px !important;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(156, 184, 220, .42);
  border-radius: 16px;
  background: rgba(255,255,255,.66);
}

.auth-form .agreement-check {
  margin: 0 0 4px !important;
  cursor: pointer;
}

.agreement-check input {
  width: 18px !important;
  min-height: 18px !important;
  height: 18px !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  cursor: pointer;
}

.agreement-check span {
  font-size: 12px;
  line-height: 1.55;
  cursor: pointer;
}

.app-shell {
  margin: 0 auto;
  display: grid;
}

.sidebar {
  position: sticky;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(156, 184, 220, .35);
}

.brand-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 17px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--green));
  box-shadow: 0 16px 32px rgba(37, 99, 235, .24);
}

.brand strong, .brand span { display: block; }
.brand strong { font-size: 17px; }
.brand span { color: var(--muted); font-size: 12px; margin-top: 2px; }

.nav {
  display: grid;
}

.nav-item {
  width: 100%;
  display: grid;
  text-align: left;
}






.nav-item small { margin-top: 2px; }

.mini-card {
  margin-top: auto;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(238,247,255,.82));
  border: 1px solid var(--line);
}

.quote-card strong {
  display: block;
  margin-top: 8px;
}

.quote-meter {
  height: 6px;
  margin-top: 14px;
  border-radius: 99px;
  overflow: hidden;
}

.quote-meter span {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
}

.main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}

.topbar-title {
  min-width: 0;
}

.topbar h1 {
  margin: 4px 0 0;
  line-height: 1.05;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

.mobile-menu-tools {
  display: none;
}

.search-box {
  width: min(320px, 30vw);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.search-box span {
  font-size: 12px;
  font-weight: 800;
}

.search-box input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
}

.global-search-panel {
  display: grid;
  gap: 12px;
  padding: 16px;
}

.settings-page {
  display: grid;
  gap: 18px;
}

.settings-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.settings-card {
  display: grid;
  gap: 14px;
  align-content: start;
}

.settings-list {
  display: grid;
  gap: 8px;
}

.settings-row {
  min-height: 42px;
  display: grid;
  grid-template-columns: minmax(92px, .42fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(156, 184, 220, .36);
  border-radius: 14px;
  background: rgba(255, 255, 255, .62);
}

.settings-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.settings-row strong {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.settings-class-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-class-list span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid rgba(156, 184, 220, .36);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}



.settings-join-class {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.settings-join-class input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(156, 184, 220, .46);
  padding: 0 13px;
}

.settings-join-class button {
  min-height: 44px;
  white-space: nowrap;
}

.settings-note {
  padding: 12px 14px;
  border: 1px solid rgba(26, 115, 232, .18);
  border-radius: 16px;
  background: rgba(229, 240, 255, .52);
  line-height: 1.5;
}

.setting-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid rgba(156, 184, 220, .36);
  border-radius: 14px;
  background: rgba(255, 255, 255, .62);
  font-weight: 800;
}

@media (max-width: 560px) {
  .settings-join-class {
    grid-template-columns: minmax(0, 1fr);
  }
}

.danger-action {
  background: #e11d48 !important;
  color: #fff !important;
}

/* R7-fix：旧「大字」规则（body 17px）删除——新实现是 refine.css 的整体 zoom，避免双重放大 */

html.cv-reduce-motion *,
html.cv-reduce-motion *::before,
html.cv-reduce-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
}

.search-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}



.search-results {
  display: grid;
  gap: 8px;
}

.search-result {
  display: grid;
  grid-template-columns: auto minmax(72px, max-content) minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
}

.search-result span {
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-result strong,
.search-result small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.search-result em {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.pill-button, .icon-button, .secondary-action, .primary-action {
  border: 0;
  border-radius: 99px;
  min-height: 48px;
  padding: 0 18px;
  font-weight: 800;
  transition: all .2s ease;
}

.wechat-action {
  min-height: 48px;
  border: 1px solid color-mix(in srgb, var(--green) 38%, transparent);
  border-radius: 18px;
  background: var(--green-soft);
  color: var(--green-ink);
  font-weight: 900;
}

.wechat-bind-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
  background: var(--green-soft);
}

.wechat-bind-panel h3,
.wechat-bind-panel p {
  margin: 0;
}

.wechat-bind-panel label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
}

.wechat-bind-panel input {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(156, 184, 220, .48);
  padding: 0 14px;
  outline: 0;
}

.wechat-qr-panel {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
  background: var(--green-soft);
  text-align: center;
}

.wechat-qr-panel h3,
.wechat-qr-panel p {
  margin: 0;
}

.qr-box {
  width: 190px;
  height: 190px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(156, 184, 220, .38);
}

.qr-box img {
  width: 170px;
  height: 170px;
  border-radius: 14px;
}





.primary-action:hover, .secondary-action:hover, .pill-button:hover, .icon-button:hover {
  transform: translateY(-2px);
}

.primary-action:disabled,
.secondary-action:disabled,
.pill-button:disabled,
.icon-button:disabled {
  cursor: not-allowed;
  opacity: .48;
  transform: none;
  box-shadow: none;
}

.menu-toggle { display: none; width: 48px; padding: 0; }

.hero-grid {
  display: grid;
}



.hero-panel, .progress-panel, .surface-card, .metric-card, .word-card, .question-card {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  position: relative;
}

.hero-panel::after {
  inset: auto -60px -120px auto;
  border-radius: 50%;
}



.hero-copy h2 {
  max-width: 760px;
  line-height: 1.04;
}

.hero-copy p {
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.learning-visual {
  position: relative;
  min-height: 240px;
}

.orbit {
  position: absolute;
  inset: 20px;
  border: 1px dashed rgba(37, 99, 235, .22);
  border-radius: 42% 58% 52% 48%;
  animation: spinSlow 18s linear infinite;
}

.orbit-two {
  inset: 48px 18px 26px 54px;
  border-color: rgba(35, 178, 109, .24);
  animation-duration: 22s;
  animation-direction: reverse;
}

.letter-tile, .student-avatar {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 26px;
  font-weight: 950;
  box-shadow: 0 18px 42px rgba(45, 79, 136, .16);
}

.letter-tile {
  width: 78px;
  height: 78px;
  color: #fff;
  font-size: 42px;
}

.tile-a { left: 26px; top: 44px; background: var(--blue); animation: bob 3.8s ease-in-out infinite; }
.tile-b { right: 38px; top: 22px; background: var(--green); animation: bob 4.3s ease-in-out infinite .2s; }
.tile-c { right: 78px; bottom: 30px; background: var(--yellow); animation: bob 4s ease-in-out infinite .4s; }

.student-avatar {
  left: 50%;
  top: 52%;
  width: 124px;
  height: 124px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .9);
  color: var(--blue);
  font-size: 34px;
  border: 1px solid rgba(156, 184, 220, .42);
}

.progress-panel {
  min-height: 150px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-content: center;
  justify-items: start;
  align-items: center;
  text-align: left;
  gap: 18px;
}

.ring {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--green) 0deg, rgba(37, 99, 235, .12) 0deg);
}

.ring span {
  width: 86px;
  height: 86px;
  border-radius: inherit;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.progress-panel strong {
  display: block;
  font-size: 22px;
}

.progress-panel p {
  line-height: 1.6;
  margin: 8px 0 0;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-grid.compact {
  margin-bottom: 18px;
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  right: -54px;
  bottom: -72px;
  border-radius: 50%;
  opacity: .18;
  background: currentColor;
}

.metric-card span, .metric-card small { display: block; color: var(--muted); font-weight: 750; }
.metric-card strong { display: block; margin: 10px 0 2px; line-height: 1; }
.metric-card.blue { color: var(--blue); }
.metric-card.green { color: var(--green); }
.metric-card.peach { color: var(--coral); }
.metric-card.purple { color: var(--purple); }

.view {
  min-width: 0;
  display: none;
}
.view.active { display: block; }

.view-grid {
  display: grid;
}

.today-focus-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  align-items: start;
}

.today-plan-card {
  width: 100%;
}



.surface-card h2, .surface-card h3 {
  margin: 0 0 12px;
}

.field-stack { display: grid; gap: 12px; }

.field {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 760;
}

.option-field {
  margin: 14px 0 0;
  padding: 0;
  border: 0;
}

.option-field legend {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

select, input[type="number"], input[type="search"] {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  outline: 0;
}

.segmented-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 17px;
  background: var(--accent-soft);
  border: 1px solid rgba(156, 184, 220, .42);
}

.segmented-control label {
  display: block;
}

.segmented-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 13px;
  font-weight: 900;
}



.unit-tools {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.text-button {
  border: 1px solid rgba(156, 184, 220, .48);
  border-radius: 999px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.unit-pills {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 3px;
}

.unit-pill {
  min-height: 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(156, 184, 220, .48);
  border-radius: 14px;
  padding: 8px 10px;
  font-weight: 850;
}

.unit-pill input { width: 16px; height: 16px; }

.unit-pill small { font-size: 11px; }
.multi-unit-pills { max-height: 300px; }

.home-level-picker {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  padding: 14px;
  border: 1px solid rgba(156, 184, 220, .38);
}

.home-level-picker span {
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.home-level-picker strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  line-height: 1;
}

.home-level-picker p {
  margin: 8px 0 0;
  line-height: 1.5;
}

.home-level-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.home-level-option {
  min-height: 92px;
  display: grid;
  gap: 4px;
  align-content: center;
  text-align: left;
  border: 1px solid rgba(156, 184, 220, .5);
  padding: 12px;
  cursor: pointer;
}



.home-level-option strong {
  margin: 0;
  font-size: 30px;
}

.home-level-option small {
  font-weight: 800;
}

.level-lock {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(37, 99, 235, .14);
}

.level-lock span,
.level-lock small {
  font-size: .82rem;
  font-weight: 750;
}

.level-lock strong {
  font-size: 1.2rem;
  line-height: 1.1;
}

.task-list { display: grid; }

.task-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.task-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-weight: 950;
}

.task-row strong, .task-row span { display: block; }
.task-row span, .muted { color: var(--muted); }
.task-row strong,
.task-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.daily-plan-summary,
.daily-plan-overview {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 10px;
  align-items: stretch;
  padding: 12px;
}











.daily-plan-summary div,
.daily-plan-stat {
  min-width: 0;
}

.daily-plan-stat {
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, .12);
}

.daily-plan-stat.homework-stat {
  border-color: rgba(124, 58, 237, .18);
}

.daily-plan-stat.learning-stat {
  border-color: rgba(22, 163, 74, .18);
}

.daily-plan-summary span,
.daily-plan-summary small,
.daily-plan-stat span,
.daily-plan-stat small {
  display: block;
  color: var(--muted);
  font-size: .82rem;
}

.daily-plan-summary strong,
.daily-plan-stat strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
  margin: 3px 0;
}

.daily-section {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 12px;
}

.daily-section + .daily-section {
  margin-top: 6px;
}





.daily-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 2px 0;
}

.daily-section-head div {
  min-width: 0;
}

.daily-section-head strong {
  font-size: .95rem;
}

.daily-section-head small {
  display: block;
  margin-top: 2px;
  font-size: .78rem;
  line-height: 1.35;
}

.daily-section-head span {
  font-size: .86rem;
  font-weight: 850;
  white-space: nowrap;
}

.daily-target-editor {
  padding: 14px;
}

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

.daily-target-block {
  min-width: 0;
}

.daily-target-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.daily-target-head span {
  color: var(--muted);
  font-size: .86rem;
}

.daily-target-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto)) minmax(110px, 1fr);
  gap: 8px;
  align-items: end;
}



.daily-target-controls.linked-quiz-controls {
  grid-template-columns: 1fr;
}

.daily-linked-quiz {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(37, 99, 235, .16);
  border-radius: 14px;
  background: rgba(37, 99, 235, .06);
}

.daily-linked-quiz span,
.daily-linked-quiz small {
  color: var(--muted);
  font-size: .84rem;
}

.daily-linked-quiz strong {
  color: var(--blue);
  font-size: 1.12rem;
  white-space: nowrap;
}

.daily-target-input {
  margin: 0;
}

.daily-target-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.daily-task-row {
  align-items: center;
  grid-template-columns: 46px minmax(0, 1fr) minmax(116px, auto);
}

.daily-task-main {
  min-width: 0;
}



.daily-task-title-line strong {
  flex: 1 1 auto;
}











.daily-mini-progress {
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 8px;
  width: min(100%, 220px);
  min-width: 0;
}

.daily-mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.daily-task-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.assignment-archive {
  display: grid;
  gap: 16px;
}

.assignment-archive-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.assignment-archive-hero .secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.assignment-archive-hero .ic {
  width: 16px;
  height: 16px;
}

.assignment-archive-list-card {
  display: grid;
  gap: 14px;
}

.assignment-section-subtitle {
  margin: -4px 0 0;
  font-size: .9rem;
  line-height: 1.45;
}

.assignment-timeline {
  display: grid;
  gap: 10px;
}

.assignment-history-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(156, 184, 220, .34);
  border-radius: 16px;
  background: rgba(255,255,255,.74);
}

.assignment-history-row.expired,
.assignment-history-row.archived {
  opacity: .84;
}

.assignment-history-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--blue);
  font-weight: 950;
}

.assignment-history-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.assignment-history-title strong,
.assignment-history-main p,
.assignment-history-main small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.assignment-history-main p,
.assignment-history-main small {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.assignment-history-meta b {
  color: var(--ink);
  font-weight: 800;
}

.assignment-history-words {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: normal;
  opacity: .85;
}

.assignment-review-line {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(94, 120, 255, .08);
  color: var(--ink);
  font-size: .86rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.assignment-status,
.assignment-archive-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.assignment-status.completed {
  color: var(--green-ink);
  background: var(--green-soft);
}

.assignment-status.in_progress {
  color: var(--accent-ink);
  background: var(--accent-soft);
}

.assignment-status.not_started {
  color: var(--muted);
  background: var(--surface-2);
}

.assignment-status.expired,
.assignment-status.closed,
.assignment-status.archived,
.assignment-archive-label {
  color: var(--amber-ink);
  background: var(--amber-soft);
}

.assignment-history-actions {
  display: flex;
  justify-content: flex-end;
  min-width: 86px;
}

.all-assignment-card {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.all-assignment-card.active {
  border-color: rgba(22, 163, 74, .22);
}

.all-assignment-card.expired,
.all-assignment-card.closed {
  border-color: rgba(245, 158, 11, .24);
}

.daily-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 800;
  white-space: nowrap;
}

.training-grid {
  align-items: start;
}

.training-workspace {
  display: grid;
  gap: 16px;
}

.training-mode-grid {
  display: grid;
}

.training-action-card {
  min-height: 150px;
  display: grid;
  gap: 14px;
  align-content: space-between;
  padding: 18px;
}

.training-action-card span {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
}

.training-action-card strong {
  display: block;
  font-size: 17px;
  font-weight: 950;
}

.training-action-card p {
  margin: 6px 0 0;
  line-height: 1.5;
}

.inline-ai-coach {
  display: grid;
  gap: 12px;
}



.wrong-ai-coach {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
}

.writing-prompt-generator {
  display: grid;
}



.writing-prompt-head strong {
  display: block;
}

.writing-prompt-head span {
  display: block;
  margin-top: 3px;
}







.writing-prompt-suggestion {
  display: grid;
}



.writing-prompt-suggestion p,
.writing-prompt-suggestion small {
  margin: 0;
  line-height: 1.5;
}

.word-card {
  display: grid;
  gap: 18px;
  align-content: center;
  text-align: center;
  padding: 30px;
}

.word-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  font-weight: 850;
}

.word-title {
  margin: 0;
  font-size: clamp(46px, 7vw, 82px);
  line-height: .98;
}

.word-meaning {
  max-width: 720px;
  margin: 0 auto;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.45;
}

.word-meaning small {
  display: block;
  margin-top: 8px;
  font-size: .9rem;
  line-height: 1.5;
}

.word-meaning span {
  display: block;
  animation: meaningFade .18s ease both;
}

.word-meaning.meaning-revealed {
  cursor: pointer;
  border-radius: 14px;
  padding: 8px 12px;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}

.word-meaning.meaning-revealed:hover {
  background: rgba(37, 99, 235, .07);
  transform: translateY(-1px);
}

.meaning-switch {
  min-width: 72px;
}

@keyframes meaningFade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.word-example {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.65;
}

.study-tools {
  width: min(820px, 100%);
  margin: 4px auto 0;
  display: grid;
  gap: 12px;
}

.tool-cluster {
  display: grid;
  grid-template-columns: minmax(150px, 210px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  text-align: left;
}

.tool-cluster span,
.tool-cluster strong {
  display: block;
}

.tool-cluster span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.tool-cluster strong {
  margin-top: 4px;
  font-size: 14px;
}

.tool-button-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tool-button-grid .primary-action,
.tool-button-grid .secondary-action {
  min-height: 44px;
  padding: 0 12px;
  border-radius: 15px;
}

.audio-feedback {
  min-height: 24px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
}



.study-flow-actions {
  padding-top: 4px;
}

.card-actions, .inline-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.card-actions button,
.inline-actions button {
  -webkit-tap-highlight-color: transparent;
}

.question-card {
  padding: 26px;
}

.question-prompt {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  margin: 0 0 18px;
}

.options {
  display: grid;
  gap: 10px;
}

.option {
  min-height: 58px;
  padding: 13px 16px;
  text-align: left;
  font-weight: 760;
}




.option:disabled {
  cursor: default;
}

.feedback {
  margin-top: 14px;
  padding: 14px 16px;
  line-height: 1.55;
}




.writing-grid {
  align-items: start;
}

.upload-drop {
  min-height: 190px;
  display: grid;
  place-items: center;
  gap: 6px;
  margin: 16px 0;
  padding: 22px;
  text-align: center;
  cursor: pointer;
}

.upload-drop input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.upload-drop span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.upload-drop strong {
  font-size: 22px;
}

.upload-drop small {
  max-width: 280px;
  line-height: 1.55;
}

.writing-workspace {
  display: grid;
  gap: 16px;
}

.writing-preview {
  min-height: 300px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(156, 184, 220, .38);
}

.writing-preview img {
  width: 100%;
  max-height: 460px;
  object-fit: contain;
  display: block;
}

.empty-preview {
  font-weight: 850;
}

.writing-textarea-label {
  display: grid;
  gap: 8px;
}

.writing-textarea-label span {
  font-weight: 900;
}

.writing-textarea-label textarea {
  min-height: 260px;
  width: 100%;
  resize: vertical;
  border: 1px solid rgba(156, 184, 220, .48);
  padding: 16px;
  font: inherit;
  line-height: 1.65;
}

.writing-next-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
}



.mini-field {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 900;
}

.mini-field input,
.mini-field select {
  min-height: 44px;
  border: 1px solid rgba(156, 184, 220, .48);
  padding: 0 13px;
  font: inherit;
}

.writing-review-panel {
  display: grid;
  gap: 14px;
  padding-top: 4px;
}

.writing-review-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, .16);
}

.writing-review-head h3 {
  margin: 4px 0 0;
}

.writing-review-head > strong {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  font-size: 42px;
  line-height: 1;
}

.writing-review-head small {
  font-size: 14px;
}

.writing-score-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.writing-score-grid.native-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.writing-score-grid.cambridge-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.writing-score-grid article {
  min-height: 84px;
  display: grid;
  gap: 6px;
  align-content: center;
  padding: 14px;
  border: 1px solid rgba(156, 184, 220, .35);
}

.writing-score-grid span {
  font-size: 12px;
  font-weight: 850;
}

.writing-score-grid strong {
  font-size: 25px;
}

.writing-score-grid small {
  font-size: 12px;
  font-weight: 800;
}

.sentence-feedback-list {
  display: grid;
  gap: 10px;
}

.native-tip-list {
  display: grid;
  gap: 10px;
}

.native-tip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 12px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, .18);
}

.native-tip strong,
.native-tip span {
  min-height: 32px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 12px;
  line-height: 1.35;
}



.native-tip span {
  font-weight: 900;
}

.native-tip p {
  grid-column: 1 / -1;
  margin: 0;
  line-height: 1.55;
}

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

.sentence-feedback {
  padding: 14px 16px;
  border: 1px solid rgba(156, 184, 220, .36);
}

.sentence-feedback strong {
  display: block;
  line-height: 1.5;
}

.sentence-feedback p {
  margin: 8px 0 5px;
}

.sentence-feedback small {
  line-height: 1.5;
}

.assignment-select-card {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(47,140,104,.16);
}

.assignment-select-card strong,
.assignment-brief h3 {
  color: #203452;
}

.assignment-select-card span,
.assignment-brief p {
  color: var(--muted);
  line-height: 1.55;
}

.assignment-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(32,47,76,.08);
}

.assignment-brief h3,
.assignment-brief p {
  margin: 4px 0 0;
}

.assignment-brief > span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.practice-review {
  margin-top: 16px;
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(156, 184, 220, .38);
}





.practice-review span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.practice-review strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.review-detail {
  display: grid;
  gap: 10px;
  margin: 0;
}

.review-detail div {
  padding: 12px;
  border: 1px solid rgba(156, 184, 220, .28);
}

.review-detail dt {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.review-detail dd {
  margin: 0;
  line-height: 1.55;
}

.review-audio-actions {
  justify-content: flex-start;
}

.quiz-review-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--joy-edge);
  background: var(--joy-soft);
}

.quiz-review-panel.good {
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
  background: var(--green-soft);
}

.quiz-review-panel.good strong,
.quiz-review-head strong {
  color: var(--ink);
  font-size: 16px;
}

.quiz-review-panel.good small,
.quiz-review-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quiz-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quiz-review-list {
  display: grid;
  gap: 10px;
}

.quiz-review-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(156, 184, 220, .28);
  background: rgba(255,255,255,.78);
}

.quiz-review-card strong {
  color: var(--ink);
  font-size: 18px;
}

.quiz-review-card p {
  margin: 0;
  color: #263a5d;
  line-height: 1.55;
}

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

.speaking-list-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  margin: 22px 0 12px;
}

.speaking-list-head h3 {
  margin-bottom: 0;
}

.speaking-list-head span {
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.ai-challenge-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ai-challenge-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.ai-challenge-head h3 {
  margin: 0 0 6px;
  font-size: 30px;
}

.ai-challenge-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-challenge-tools span {
  min-width: 46px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.icon-action {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(156, 184, 220, .48);
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.icon-action:disabled {
  opacity: .42;
  cursor: not-allowed;
}

.ai-challenge-head p,
.ai-task p,
.ai-result-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ai-task {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(156, 184, 220, .32);
}

.ai-task span,
.ai-answer-field span {
  color: #2452a3;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.ai-task strong {
  font-size: 17px;
}

.ai-answer-field {
  display: grid;
  gap: 8px;
  opacity: .86;
}

.ai-answer-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 72px;
  border: 1px solid rgba(156, 184, 220, .48);
  padding: 14px;
  font: inherit;
  line-height: 1.5;
  outline: 0;
}



.ai-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.ai-actions .muted-action {
  opacity: .78;
}

.ai-result {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(35,178,109,.32);
}



.ai-result-copy {
  display: grid;
  gap: 6px;
}



.ai-pronunciation-result {
  display: grid;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(35, 178, 109, .24);
}

.ai-score-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.compact-word {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

.compact-word strong { font-size: 18px; }
.compact-word p { margin: 4px 0 0; line-height: 1.5; }
.compact-word small {
  display: block;
  margin-top: 8px;
  line-height: 1.5;
}

.compact-word-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.word-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(156, 184, 220, .42);
  background: rgba(255,255,255,.76);
  color: #5c6b83;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.word-status.learned {
  color: #2457a6;
  background: rgba(37, 99, 235, .08);
  border-color: rgba(37, 99, 235, .18);
}

.word-status.mastered {
  color: var(--green-ink);
  background: var(--green-soft);
  border-color: color-mix(in srgb, var(--green) 30%, transparent);
}

.word-status.review {
  color: var(--joy-ink);
  background: var(--joy-soft);
  border-color: var(--joy-edge);
}

.wrong-word-card {
  align-items: start;
}

.wrong-word-card .word-meta {
  justify-content: flex-start;
  margin-bottom: 8px;
}

.compact-metrics {
  grid-template-columns: 1fr;
  margin-top: 14px;
}

.check-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(156, 184, 220, .42);
}

.check-row input {
  width: 18px;
  height: 18px;
}

.check-row span {
  font-weight: 900;
}

.check-row small {
  font-size: 12px;
  font-weight: 800;
}

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

.reading-audio-source {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 12px;
  align-items: end;
  margin: 14px 0;
}

.reading-audio-source .option-field {
  margin: 0;
}

.reading-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 8px;
}

.reading-mode-tabs button {
  min-height: 74px;
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: start;
  padding: 14px 16px;
  border: 1px solid rgba(156, 184, 220, .42);
  text-align: left;
  cursor: pointer;
}



.reading-mode-tabs strong {
  font-size: 16px;
  font-weight: 950;
}

.reading-mode-tabs span {
  font-size: 12px;
  font-weight: 850;
}

.reading-workspace {
  display: grid;
  grid-template-columns: minmax(250px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.reading-task-list {
  display: grid;
  gap: 10px;
  align-content: start;
}

.reading-task-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(156, 184, 220, .38);
  text-align: left;
  cursor: pointer;
}



.reading-task-card strong {
  font-size: 16px;
  line-height: 1.35;
}

.reading-task-card small,
.reading-task-card em {
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.45;
}

.reading-task-status {
  width: fit-content;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}





.reading-detail {
  min-width: 0;
}

.reading-empty-state {
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
}

.reading-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.reading-overview article {
  min-height: 104px;
  display: grid;
  align-content: center;
  padding: 16px;
  border: 1px solid rgba(156, 184, 220, .36);
}

.reading-overview strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.reading-overview span {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 850;
}

.reading-card {
  padding: 18px;
  border: 1px solid rgba(156, 184, 220, .38);
  display: grid;
  gap: 16px;
}

.reading-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reading-card-head h3 {
  margin: 10px 0 6px;
  font-size: 24px;
}

.reading-card-head small {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 800;
}

.reading-progress {
  height: 8px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
}

.reading-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
}

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

.sentence-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(156, 184, 220, .34);
}

.sentence-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 950;
}



.sentence-row p {
  margin: 0;
  line-height: 1.6;
}

.sentence-actions {
  display: flex;
  gap: 8px;
}

.sentence-actions .primary-action,
.sentence-actions .secondary-action {
  min-height: 42px;
  padding: 0 13px;
  border-radius: 14px;
}



.reading-paragraph-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.reading-paragraph-copy small {
  font-weight: 800;
  line-height: 1.5;
}

.reading-audio-status {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
}

.reading-ai-guidance {
  display: grid;
  gap: 4px;
  max-width: 100%;
}

.reading-ai-guidance small {
  font-weight: 750;
}

.reading-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 340px;
}

.token-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.token-list span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}



.token-list.compact {
  gap: 4px;
}

.token-list.compact span {
  min-height: 22px;
  padding: 0 7px;
  font-size: 11px;
}

.section-title {
  margin: 20px 0 12px;
  font-size: 20px;
}

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

.admin-row {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid rgba(156, 184, 220, .36);
}

.admin-row strong,
.admin-row p {
  display: block;
}

.admin-row p,
.admin-row small {
  margin: 4px 0 0;
  line-height: 1.5;
}

.class-card-actions {
  margin-top: 10px;
  justify-content: flex-start;
}

.mini-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mini-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 850;
}

.mini-form input,
.mini-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(156, 184, 220, .48);
  border-radius: 15px;
  background: rgba(255, 255, 255, .86);
  color: var(--ink);
  padding: 0 12px;
  outline: 0;
}

.divider {
  height: 1px;
  margin: 16px 0;
}

.class-qr {
  width: 154px;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.class-qr img {
  width: 118px;
  height: 118px;
  border-radius: 14px;
  border: 1px solid rgba(156, 184, 220, .36);
}

.class-qr small {
  max-width: 154px;
  overflow-wrap: anywhere;
  text-align: center;
  font-size: 11px;
}

.nowrap {
  white-space: nowrap;
}

.class-qr .class-qr-code {
  overflow-wrap: normal;
  white-space: nowrap;
  font-weight: 800;
}

.class-qr-copy {
  font-size: 12px;
  padding: 4px 10px;
  min-height: 0;
}

.student-result-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.student-candidate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(156, 184, 220, .36);
}

.student-candidate strong {
  display: block;
}

.student-candidate p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}



.data-table-wrap {
  width: 100%;
  overflow: auto;
  border: 1px solid rgba(156, 184, 220, .36);
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(156, 184, 220, .28);
  vertical-align: top;
}



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

.teacher-dashboard {
  display: grid;
  gap: 16px;
}

.teacher-workspace {
  display: grid;
  gap: 14px;
}

.teacher-class-switcher {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px) auto;
  gap: 16px;
  align-items: end;
  position: sticky;
  top: 14px;
  z-index: 5;
}

.teacher-class-switcher h2,
.teacher-class-switcher p {
  margin: 4px 0 0;
}

.teacher-class-picker {
  display: grid;
  gap: 7px;
}

.teacher-class-picker span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.teacher-class-picker select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(36, 87, 166, .28);
  padding: 0 12px;
  font-weight: 850;
  outline: 0;
}

.teacher-top-actions {
  display: flex;
  justify-content: flex-end;
}

.teacher-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
}

.teacher-tabs button {
  min-height: 40px;
  border: 0;
  padding: 0 14px;
  font-weight: 900;
  cursor: pointer;
}



.teacher-panel.hidden {
  display: none !important;
}

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

.dashboard-hero,
.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.dashboard-hero h2,
.section-head h3 {
  margin: 4px 0 0;
}

.section-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.dashboard-metrics {
  display: grid !important;
}

.analytics-grid,
.teacher-writing-grid,
.teacher-reading-grid,
.teacher-vocab-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* W2.7 词汇布置页：宽屏下左栏（表单+选词）加宽，选词网格随宽度自动 3–4 列，
   摆脱「904 词一屏只见 14 个」；右栏已布置列表保持紧凑 */
@media (min-width: 1100px) {
  .teacher-vocab-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  }

  .teacher-vocab-grid .vocab-word-picker {
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    max-height: 520px;
  }
}

.assignment-study-panel {
  display: grid;
  gap: 10px;
}

.assignment-study-panel h2 {
  margin: 4px 0 0;
}

.assignment-progress-row,
.reading-full-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.assignment-progress-row strong {
  font-size: 24px;
  color: #203452;
}

.assignment-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.assignment-step {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(156, 184, 220, .38);
  border-radius: 12px;
  background: #fff;
}

.assignment-step span,
.assignment-step small,
.assignment-tricky-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.assignment-step strong {
  color: var(--ink);
  font-size: 18px;
}

.assignment-step.done {
  border-color: color-mix(in srgb, var(--green) 34%, transparent);
  background: var(--green-soft);
}

.assignment-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.assignment-quiz-aside {
  display: grid;
  gap: 12px;
}

.assignment-tricky-field input {
  margin-top: 6px;
}

.quiz-scope-field {
  display: grid;
  gap: 8px;
}

.question-detail {
  margin: -4px 0 18px;
  color: var(--muted);
  line-height: 1.55;
}

.vocab-quick-actions {
  flex-wrap: wrap;
}

.vocab-picker-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(156, 184, 220, .42);
  border-radius: 16px;
  background: rgba(247, 250, 252, .82);
}

.vocab-picker-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
  gap: 12px;
  align-items: end;
}

.vocab-picker-head strong,
.vocab-picker-head span {
  display: block;
}

.vocab-picker-head strong {
  color: var(--ink);
  font-size: 15px;
}

.vocab-picker-head span,
.vocab-picker-hint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.vocab-picker-head label {
  margin: 0;
}

.vocab-word-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 420px;
  overflow: auto;
  padding: 2px;
}

.vocab-word-option {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 42px minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 1px solid rgba(156, 184, 220, .44);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  padding: 10px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.vocab-word-option:hover {
  transform: translateY(-1px);
  border-color: rgba(36, 87, 166, .38);
  box-shadow: 0 10px 20px rgba(36, 87, 166, .08);
}

.vocab-word-option.selected {
  background: var(--accent-soft);
  border-color: rgba(36, 87, 166, .62);
  box-shadow: inset 0 0 0 1px rgba(36, 87, 166, .14);
}

.vocab-word-number {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #eef3f8;
  color: #536477;
  font-size: 12px;
  font-weight: 900;
}

.vocab-word-option.selected .vocab-word-number {
  background: #2457a6;
  color: #fff;
}

.vocab-word-main,
.vocab-word-main small {
  min-width: 0;
}

.vocab-word-main strong,
.vocab-word-main small,
.vocab-word-meaning {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vocab-word-main strong {
  font-size: 15px;
  color: var(--ink);
}

.vocab-word-main small,
.vocab-word-meaning {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.vocab-word-meaning {
  line-height: 1.35;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.vocab-picker-empty {
  grid-column: 1 / -1;
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.vocab-assignment-card small {
  display: block;
  margin-top: 4px;
}

.assignment-report {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding-top: 6px;
}

.assignment-report summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(156, 184, 220, .38);
  border-radius: 12px;
  background: #f7fafc;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.assignment-report summary span,
.assignment-report summary strong {
  font-size: 13px;
}

.assignment-report[open] summary {
  border-color: rgba(36, 87, 166, .34);
  background: var(--accent-soft);
}

.assignment-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.assignment-report-metrics article,
.assignment-heat {
  padding: 10px;
  border: 1px solid rgba(156, 184, 220, .34);
  border-radius: 12px;
  background: #fff;
}

.assignment-report-metrics span,
.assignment-report-metrics small,
.assignment-heat strong {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.assignment-report-metrics strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 22px;
}

.assignment-heat {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.assignment-common-issues {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid rgba(156, 184, 220, .34);
  border-radius: 14px;
  background: rgba(245, 249, 255, .78);
}

.assignment-common-head,
.assignment-common-issues > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.assignment-common-issues strong,
.assignment-common-issues span,
.assignment-common-issues small {
  display: block;
}

.assignment-common-issues strong {
  color: var(--ink);
  font-weight: 950;
}

.assignment-common-issues span,
.assignment-common-issues small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.assignment-common-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 10px;
}

.assignment-common-grid article {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(156, 184, 220, .28);
  border-radius: 12px;
  background: rgba(255,255,255,.78);
}

.assignment-common-grid article:only-child {
  grid-column: 1 / -1;
}

.assignment-common-sentences {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.assignment-common-sentences div {
  display: grid;
  gap: 4px;
  padding-top: 8px;
  border-top: 1px solid rgba(156, 184, 220, .22);
}

.assignment-common-sentences div:first-child {
  padding-top: 0;
  border-top: 0;
}

.assignment-common-sentences p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 760;
}

.assignment-report-table {
  margin-top: 10px;
}

.reading-full-card {
  margin: 16px 0;
  padding: 14px;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px solid rgba(156, 184, 220, .38);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.reading-full-card > div {
  display: grid;
  gap: 4px;
}

.reading-full-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.reading-full-text {
  grid-column: 1 / -1;
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border: 1px solid var(--hairline);
}

.reading-full-text p {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  margin: 0 0 10px;
  color: #253655;
  line-height: 1.75;
}

.reading-full-text p:last-child {
  margin-bottom: 0;
}

.reading-full-text p span {
  color: #2457a6;
  font-size: 12px;
  font-weight: 950;
}

.reading-full-issues {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

.reading-practice-summary,
.reading-practice-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: rgba(229, 240, 255, .58);
  border: 1px solid rgba(37, 99, 235, .16);
}

.reading-practice-summary strong,
.reading-practice-result strong {
  display: block;
  color: var(--ink);
}

.reading-practice-summary small,
.reading-practice-result p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.reading-practice-modal {
  width: min(780px, 100%);
}

.reading-practice-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.reading-practice-card {
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(156, 184, 220, .34);
  background: rgba(255,255,255,.74);
}

.reading-practice-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.reading-practice-card-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.reading-practice-card-head strong {
  font-size: 14px;
  font-weight: 950;
}

.reading-practice-card p {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  font-weight: 760;
}

.reading-practice-card > small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 820;
  line-height: 1.45;
}



.reading-practice-audio {
  width: 100%;
}

.reading-history-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(156, 184, 220, .28);
}

.section-head.compact {
  margin-bottom: 0;
}

.reading-history-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.reading-history-metrics article {
  padding: 10px;
  border: 1px solid rgba(156, 184, 220, .34);
  border-radius: 12px;
  background: rgba(255,255,255,.74);
}

.reading-history-metrics span,
.reading-history-metrics small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.reading-history-metrics strong {
  display: block;
  margin: 4px 0;
  color: var(--ink);
  font-size: 22px;
}

.reading-history-list {
  display: grid;
  gap: 8px;
}

.reading-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

.reading-history-card strong,
.reading-history-card small {
  display: block;
}

.reading-history-card small,
.reading-history-card p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  margin: 3px 0 0;
}

.reading-history-score-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.reading-history-score-row span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(36,87,166,.08);
  color: #2457a6;
  font-size: 11px;
  font-weight: 950;
}

.reading-history-empty {
  margin: 0;
}

.reading-teacher-status {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(36,87,166,.08);
  color: #2457a6;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.reading-teacher-status.done {
  color: #1f7655;
  background: rgba(47,140,104,.1);
}

.reading-teacher-status.warn {
  color: #9a4b1f;
  background: rgba(245,158,11,.14);
}

.reading-teacher-status.todo {
  color: #667085;
  background: rgba(102,112,133,.1);
}

.teacher-reading-history {
  min-width: 180px;
}

.teacher-reading-history summary {
  cursor: pointer;
  color: #2457a6;
  font-size: 12px;
  font-weight: 950;
}

.teacher-reading-history-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.teacher-reading-history-list article {
  display: grid;
  gap: 5px;
  padding: 8px;
  border-radius: 10px;
  background: #f7fafc;
  border: 1px solid rgba(156,184,220,.3);
}

.teacher-reading-history-list strong,
.teacher-reading-history-list small {
  display: block;
}

.teacher-reading-history-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.chart-card {
  display: grid;
  gap: 18px;
}

.bar-chart {
  min-height: 190px;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.bar-item {
  min-width: 0;
  display: grid;
  gap: 7px;
  justify-items: center;
}

.bar-track {
  width: 100%;
  height: 118px;
  display: flex;
  align-items: end;
}

.bar-track span {
  width: 100%;
  display: block;
}

.bar-item strong {
  font-size: 16px;
}

.bar-item small {
  font-size: 11px;
  font-weight: 800;
}

/* W2.2 小屏柱状图：7 列等分收缩，日期标签永不折行（原 11px 在 ≤360px 会参差折行） */
@media (max-width: 640px) {
  .bar-chart {
    gap: 6px;
  }

  .bar-item small {
    font-size: 10px;
    white-space: nowrap;
  }
}

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

.distribution-list article {
  display: grid;
  gap: 8px;
}

.distribution-list article > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.distribution-list span {
  font-weight: 850;
}

.distribution-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
}

.distribution-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
}




.assignment-form textarea,
.mini-form textarea {
  width: 100%;
  min-height: 96px;
  resize: vertical;
  border: 1px solid rgba(156, 184, 220, .48);
  border-radius: 15px;
  background: rgba(255,255,255,.86);
  color: var(--ink);
  padding: 12px;
  outline: 0;
  font: inherit;
  line-height: 1.55;
}

.mini-form input[type="datetime-local"] {
  min-height: 46px;
}

.assignment-list,
.submission-list {
  display: grid;
  gap: 10px;
}

.reading-admin-form .inline-actions {
  justify-content: flex-start;
}

.reading-voice-field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.45;
}

.assignment-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(32,47,76,.09);
}

.assignment-card strong,
.assignment-card p,
.assignment-card small {
  display: block;
}

.reading-assignment-card small,
.tts-job-card small {
  overflow-wrap: anywhere;
}

.tts-job-card .status-pill {
  align-self: center;
}

.student-detail-panel {
  margin-top: 16px;
}

.student-detail-card {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(156, 184, 220, .34);
}

.student-detail-card h3,
.student-detail-card h4,
.student-detail-card p {
  margin: 0;
}

.student-detail-metrics {
  display: grid !important;
}

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

.student-detail-grid h4 {
  margin-bottom: 10px;
  font-size: 15px;
}

.student-activity-list {
  display: grid;
  gap: 8px;
}

.student-activity-list article {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(32,47,76,.08);
}

.student-activity-list strong {
  line-height: 1.45;
}

.student-activity-list span,
.student-activity-list small {
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.assignment-card p,
.assignment-card small {
  margin: 4px 0 0;
  line-height: 1.5;
}

.submission-split {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.submission-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  text-align: left;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(32,47,76,.09);
  color: #203452;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}



.submission-card span {
  font-size: 12px;
  font-weight: 850;
}

.submission-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}



.submission-detail-card {
  display: grid;
  gap: 14px;
}

.submission-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.submission-meta div {
  padding: 12px;
  border: 1px solid rgba(32,47,76,.06);
}

.submission-meta dt {
  font-size: 12px;
  font-weight: 850;
}

.submission-meta dd {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}

.submission-image {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
  border-radius: 18px;
  border: 1px solid rgba(32,47,76,.08);
}

.speech-target {
  margin: 10px 0 18px;
  padding: 18px;
  line-height: 1.7;
}

.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 18px;
}

.speech-modal {
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  position: relative;
  padding: 26px;
}









.speech-target {
  max-height: min(300px, 34vh);
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.75;
}

.modal-close {
  position: absolute;
  right: 18px;
  top: 18px;
  width: 44px;
  min-height: 44px;
  padding: 0;
  font-size: 24px;
}

.recorder-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(156, 184, 220, .4);
}

.level-bar {
  height: 10px;
  margin: 12px 0 8px;
  border-radius: 99px;
  overflow: hidden;
}

.level-bar span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
}

.speech-result {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.speech-target-review p {
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  line-height: 1.75;
}

.speech-target-review mark {
  padding: 1px 4px;
  border-radius: 6px;
  background: #fff1b8;
  color: #8a4b0f;
  font-weight: 900;
}

.problem-word-list span {
  display: grid;
  gap: 2px;
  align-items: start;
}

.problem-word-list span strong {
  font-size: 13px;
}

.problem-word-list span small {
  font-size: 11px;
  font-weight: 800;
  color: #9b3f32;
}

.speech-diagnostic {
  display: grid;
  gap: 8px;
}

.speech-diagnostic p {
  margin: 0;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.speech-diagnostic span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.speech-diagnostic code {
  white-space: normal;
  overflow-wrap: anywhere;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.score-card {
  padding: 14px;
  border: 1px solid rgba(156, 184, 220, .38);
}

.score-card span { font-size: 12px; font-weight: 800; }
.score-card strong { display: block; margin-top: 6px; font-size: 30px; }

.hidden { display: none !important; }

@keyframes enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes spinSlow {
  to { transform: rotate(360deg); }
}

@keyframes floatBlob {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(22px, 18px, 0) scale(1.04); }
}

@media (max-width: 1120px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-story { min-height: 460px; }
  .app-shell { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed;
    inset: 14px auto 14px 14px;
    width: 292px;
    height: auto;
    z-index: 30;
    transform: translateX(-116%);
    transition: transform .22s ease;
  }
  body.nav-open .sidebar { transform: translateX(0); }
  .menu-toggle { display: inline-grid; place-items: center; }
  .hero-grid, .hero-panel, .view-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
  .learning-visual { min-height: 230px; }
}

@media (max-width: 760px) {
  .auth-screen { padding: 12px; align-items: start; }
  .auth-story, .auth-card { border-radius: 24px; padding: 20px; }
  .auth-story { min-height: auto; gap: 34px; }
  .auth-story h1 { margin-top: 42px; font-size: 44px; }
  .app-shell { padding: 12px; gap: 14px; }
  .topbar {
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .topbar-title .eyebrow {
    display: none;
  }
  .topbar h1 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-actions {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }
  .top-actions > :not(.search-box) {
    display: none !important;
  }
  .search-box { width: 100%; }
  .hero-panel, .progress-panel, .surface-card, .question-card { border-radius: 24px; }
  .hero-panel { padding: 20px; min-height: auto; }
  .hero-copy h2 { font-size: 38px; }
  .learning-visual { min-height: 180px; }
  .letter-tile { width: 62px; height: 62px; font-size: 34px; border-radius: 20px; }
  .student-avatar { width: 100px; height: 100px; font-size: 28px; border-radius: 22px; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit-pills, .reading-overview, .reading-mode-tabs, .training-mode-grid, .score-grid { grid-template-columns: 1fr; }
  .word-card { min-height: 360px; padding: 22px; }
  .tool-cluster { grid-template-columns: 1fr; }
  .sentence-row { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .sentence-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compact-word { grid-template-columns: 1fr; }
  .analytics-grid, .teacher-writing-grid, .teacher-reading-grid, .teacher-vocab-grid, .teacher-class-tools, .teacher-class-switcher, .student-detail-grid, .submission-split, .assignment-brief, .reading-workspace, .reading-audio-source { grid-template-columns: 1fr; }
  .assignment-progress-row, .reading-full-card { display: grid; align-items: stretch; }
  .assignment-step-grid { grid-template-columns: 1fr; }
  .assignment-result-grid { grid-template-columns: 1fr; }
  .assignment-report-metrics,
  .assignment-common-grid {
    grid-template-columns: 1fr;
  }
  .assignment-report summary { display: grid; }
  .dashboard-hero, .section-head { display: grid; }
  .submission-meta { grid-template-columns: 1fr; }
  .admin-row, .student-candidate, .assignment-archive-hero, .assignment-history-row { grid-template-columns: 1fr; }
  .assignment-history-icon { width: 40px; height: 40px; }
  .assignment-history-title { align-items: flex-start; }
  .assignment-history-actions { justify-content: stretch; min-width: 0; }
  .recorder-card { grid-template-columns: 1fr; }
  .reading-actions { max-width: none; justify-content: stretch; }
  .teacher-class-switcher { position: static; }
  .teacher-top-actions { justify-content: stretch; }
}

@media (max-width: 460px) {
  .card-actions, .inline-actions { display: grid; grid-template-columns: 1fr; }
  .tool-button-grid { grid-template-columns: 1fr; }
  .primary-action, .secondary-action, .pill-button { width: 100%; }
}





.ambient {
  opacity: .22;
  filter: blur(14px);
}

.ambient-a {
  background: radial-gradient(circle, rgba(36, 87, 166, .28), transparent 68%);
}

.ambient-b {
  background: radial-gradient(circle, rgba(47, 140, 104, .18), transparent 70%);
}





.auth-story,
.auth-card,
.mobile-confirm,
.sidebar,
.topbar,
.hero-panel,
.progress-panel,
.surface-card,
.metric-card,
.word-card,
.question-card,
.speech-modal {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}





.auth-story {
  align-content: start;
}

.agreement-check,
.wechat-bind-panel,
.wechat-qr-panel,
.feedback,
.practice-review,
.review-detail div,
.reading-card,
.reading-overview article,
.task-row,
.compact-word,
.check-row,
.admin-row,
.student-candidate,
.data-table-wrap,
.recorder-card,
.score-card,
.tool-cluster,
.unit-pill,
.option,
.sentence-row,
.speech-target {
  border-radius: var(--radius-sm);
  border: 1px solid rgba(32,47,76,.1);
  background: rgba(255,255,255,.82);
  box-shadow: 0 1px 0 rgba(255,255,255,.9) inset;
}

.brand {
  border-bottom-color: rgba(32,47,76,.1);
}

.brand-mark {
  border-radius: 11px;
  background: linear-gradient(145deg, #1d4f96, #2f8c68);
  box-shadow: 0 14px 32px rgba(36,87,166,.22);
}













.mini-card {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(245,248,252,.82));
}



.topbar {
  grid-template-columns: auto minmax(0, 1fr) auto;
}





.top-actions {
  gap: 8px;
  min-width: 0;
}

.role-chip,
.status-pill,
.badge {
  border-color: rgba(36,87,166,.14);
  border-radius: 999px;
  color: #2457a6;
  background: rgba(36,87,166,.07);
}

.search-box {
  width: min(360px, 33vw);
  border-color: rgba(32,47,76,.12);
}

.search-box span {
  white-space: nowrap;
}

.global-search-panel {
  position: relative;
  z-index: 20;
  border-color: rgba(32,47,76,.12);
}

.search-result {
  grid-template-columns: auto minmax(72px, max-content) minmax(0, 1fr) auto;
}

@media (max-width: 380px) {
  .search-result em {
    font-size: 0;
  }

  .search-result em::after {
    content: "›";
    font-size: 16px;
  }
}

/* W1.2 搜索作用域：全局搜索只覆盖词库，与词库无关的视图隐藏搜索框（教师/管理员视图除外，其搜索域为学生/班级） */
body[data-view="reading"] .top-actions .search-box,
body[data-view="writing"] .top-actions .search-box,
body[data-view="listen"] .top-actions .search-box,
body[data-view="growth"] .top-actions .search-box,
body[data-view="referral"] .top-actions .search-box,
body[data-view="speaking"] .top-actions .search-box,
body[data-view="assignments"] .top-actions .search-box {
  display: none;
}





.pill-button,
.icon-button,
.secondary-action,
.primary-action,
.wechat-action,
.text-button {
  border-radius: 999px;
  min-height: 44px;
  font-weight: 820;
}



.secondary-action,
.pill-button,
.icon-button,
.text-button {
  color: #263852;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(32,47,76,.12);
}

.wechat-action {
  color: #1f7655;
  background: rgba(47,140,104,.08);
  border-color: rgba(47,140,104,.18);
}

.primary-action:hover,
.secondary-action:hover,
.pill-button:hover,
.icon-button:hover,
.wechat-action:hover,
.text-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(24,39,75,.1);
}







.hero-panel::after {
  inset: auto -90px -130px auto;
  border-radius: 50%;
}

.hero-copy h2 {
  max-width: 600px;
}



.learning-visual {
  min-height: 330px;
  display: grid;
  place-items: center;
}

.orbit,
.letter-tile,
.student-avatar {
  display: none;
}

.console-window {
  width: min(430px, 100%);
  border: 1px solid rgba(32,47,76,.12);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.92);
  box-shadow: 0 28px 70px rgba(24,39,75,.14);
  animation: consoleFloat 5.5s ease-in-out infinite;
}

.console-head {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(32,47,76,.08);
  background: #f7f9fc;
}

.console-head span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cfd7e6;
}

.console-head b {
  margin-left: auto;
  color: #6f7787;
  font-size: 12px;
}

.console-body {
  display: grid;
  grid-template-columns: 48px 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
  padding: 14px;
}

.console-rail {
  grid-row: 1 / 3;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  background: #f3f6fa;
}

.console-rail i {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid rgba(32,47,76,.08);
}

.console-rail i:nth-child(2) {
  background: #2457a6;
}

.console-card {
  border: 1px solid rgba(32,47,76,.1);
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.console-card small {
  color: #6f7787;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.console-card strong {
  display: block;
  margin: 10px 0;
  color: #172033;
  font-size: 38px;
  line-height: 1;
}

.console-card p {
  margin: 0;
  color: #697486;
  line-height: 1.55;
}

.console-card div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.console-card span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  background: rgba(36,87,166,.08);
  color: #2457a6;
  font-size: 12px;
  font-weight: 820;
}

.score-preview {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}

.score-preview strong {
  grid-column: 2;
  grid-row: 1 / 3;
  color: #2f8c68;
  font-size: 46px;
}

.progress-panel {
  min-height: 128px;
}

.ring {
  background: conic-gradient(#2f8c68 0deg, rgba(36,87,166,.1) 0deg);
}





.metric-card::after {
  opacity: .08;
}



.view-grid > *,
.surface-card,
.question-card,
.word-card {
  min-width: 0;
}

.surface-card,
.question-card,
.word-card {
  border-radius: 12px;
}



.surface-card h2,
.surface-card h3,
.question-prompt,
.word-title {
  font-weight: 780;
}



.segmented-control,
.auth-tabs {
  border-radius: 999px;
}

.segmented-control span,
.auth-tabs button {
  border-radius: 999px;
}

.segmented-control input:checked + span,
.auth-tabs button.active {
  background: #2457a6;
  color: #fff;
  box-shadow: none;
}



.unit-pill:hover,
.check-row:hover {
  transform: translateY(-1px);
  border-color: rgba(36,87,166,.24);
}

.unit-pill:has(input:checked),
.check-row:has(input:checked) {
  border-color: rgba(36,87,166,.42);
  background: rgba(36,87,166,.06);
}















.task-row,
.compact-word,
.reading-card,
.admin-row,
.student-candidate,
.option {
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.task-row:hover,
.compact-word:hover,
.reading-card:hover,
.admin-row:hover,
.student-candidate:hover,
.option:hover {
  transform: translateY(-1px);
  border-color: rgba(36,87,166,.22);
  box-shadow: 0 12px 28px rgba(24,39,75,.07);
}

.task-icon,
.sentence-index {
  border-radius: 10px;
  background: rgba(36,87,166,.08);
  color: #2457a6;
}



.option.correct,
.practice-review.good,
.feedback.good {
  color: #1f7655;
  background: rgba(47,140,104,.08);
  border-color: rgba(47,140,104,.2);
}

.option.wrong,
.practice-review.bad,
.feedback.bad,
.text-button.danger {
  color: #b84d3c;
  background: rgba(217,106,85,.08);
  border-color: rgba(217,106,85,.2);
}

.reading-progress,
.level-bar {
  background: rgba(36,87,166,.1);
}

.reading-progress span,
.level-bar span,
.quote-meter span {
  background: linear-gradient(90deg, #2f8c68, #2457a6);
}





.data-table td,
.data-table th {
  border-bottom-color: rgba(32,47,76,.08);
}







@keyframes consoleFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  
}

@media (max-width: 1120px) {
  .app-shell {
    padding: 12px;
  }

  .sidebar {
    border-radius: 12px;
  }

  .hero-panel,
  .view-grid {
    grid-template-columns: 1fr;
  }

  .learning-visual {
    min-height: 300px;
  }
}

@media (max-width: 760px) {
  .auth-story,
  .auth-card,
  .hero-panel,
  .progress-panel,
  .surface-card,
  .question-card,
  .word-card {
    border-radius: 12px;
  }

  .topbar {
    grid-template-columns: auto 1fr;
  }

  .topbar-title .eyebrow {
    display: none;
  }

  .topbar h1 {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .top-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-actions > :not(.search-box) {
    display: none !important;
  }

  .search-box {
    grid-column: 1 / -1;
    width: 100%;
  }

  .mobile-menu-tools {
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(156, 184, 220, .34);
    border-radius: 14px;
    background: rgba(247, 250, 252, .86);
  }

  .mobile-menu-tools .role-chip,
  .mobile-menu-tools .pill-button {
    width: 100%;
    justify-content: center;
  }

  .hero-panel {
    padding: 20px;
  }

  .hero-copy h2 {
    font-size: 42px;
  }

  .console-window {
    width: 100%;
  }

  .console-body {
    grid-template-columns: 1fr;
  }

  .console-rail {
    display: none;
  }

  .score-preview {
    grid-template-columns: 1fr;
  }

  .daily-plan-summary,
  .daily-plan-overview,
  .daily-target-controls {
    grid-template-columns: 1fr;
  }

  .reading-practice-summary,
  .reading-practice-result {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .daily-plan-actions {
    justify-content: flex-start;
  }

  .daily-plan-actions .secondary-action {
    min-height: 40px;
    padding: 0 14px;
  }

  .daily-target-grid {
    grid-template-columns: 1fr;
  }

  .vocab-picker-head,
  .vocab-word-picker {
    grid-template-columns: 1fr;
  }

  .vocab-word-option {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .vocab-word-meaning {
    grid-column: 2;
  }

  .daily-target-head {
    display: grid;
  }

  .daily-task-actions {
    justify-content: flex-start;
  }

  .daily-task-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .daily-task-row .daily-task-actions {
    grid-column: 2;
  }

  .daily-mini-progress {
    min-width: 0;
  }

  .writing-prompt-head {
    display: grid;
  }

  .writing-prompt-controls {
    grid-template-columns: 1fr;
  }

  .score-preview strong {
    grid-column: auto;
    grid-row: auto;
  }

  .metric-grid,
  .reading-overview,
  .home-level-options,
  .score-grid,
  .ai-score-grid,
  .writing-score-grid.native-grid,
  .essay-version-grid,
  .native-tip,
  .unit-pills {
    grid-template-columns: 1fr;
  }

  .speaking-list-head,
  .ai-challenge-head,
  .ai-actions {
    display: grid;
    align-items: stretch;
  }

  .ai-challenge-card {
    border-radius: 12px;
    padding: 14px;
  }

  .ai-challenge-tools {
    justify-content: flex-start;
  }

  .ai-challenge-head h3 {
    font-size: 26px;
  }

  .sentence-row {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .sentence-actions {
    grid-column: 1 / -1;
  }

  .reading-history-metrics,
  .reading-history-card {
    grid-template-columns: 1fr;
  }

  .reading-history-score-row {
    justify-content: flex-start;
  }

  .teacher-reading-history {
    min-width: 0;
  }
}

@media (max-width: 460px) {
  .top-actions .primary-action,
  .top-actions .secondary-action,
  .top-actions .pill-button,
  .top-actions .wechat-action {
    width: 100%;
  }

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

/* W3.4 记录流类型筛选 chips + 未出分折叠（成长页口语流、教师端学生详情共用） */
.growth-stream-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 2px 0 10px;
}

.growth-filter-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.growth-filter-chip:hover { border-color: var(--accent-edge); color: var(--accent-ink); }

.growth-filter-chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.growth-unscored-toggle {
  display: inline-block;
  margin-top: 8px;
  border: none;
  background: transparent;
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  padding: 4px 0;
}

.growth-unscored-toggle:hover { text-decoration: underline; }

.tl-unscored { color: var(--muted); font-size: 11px; white-space: nowrap; }

.growth-timeline--unscored .tl-row { opacity: .78; }

.teacher-activity-filters { margin: 6px 0 10px; }
