:root {
  --ink: #43185f;
  --ink-soft: #594664;
  --paper: #f8f5fa;
  --white: #ffffff;
  --line: #dfd6e5;
  --line-soft: #eee8f1;
  --jade: #168a6b;
  --jade-soft: #e7f4ef;
  --coral: #e46155;
  --coral-soft: #fbecea;
  --amber: #c18b36;
  --amber-soft: #fbf2df;
  --blue: #6b63b5;
  --blue-soft: #efecf8;
  --muted: #786b80;
  --brand: #43185f;
  --brand-strong: #321047;
  --brand-action: #65368a;
  --brand-soft: #9b78b4;
  --brand-pale: #f1eaf6;
  --brand-wash: #faf7fc;
  --shadow: 0 28px 70px rgba(67, 24, 95, 0.14);
  --display: "Songti SC", "STSong", "Noto Serif SC", serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --utility: "SFMono-Regular", "Cascadia Mono", "Roboto Mono", monospace;
}

/* Question-bank generation workspace: selection is a deliberate second step after review. */
.bank-question-card {
  position: relative;
}

.bank-question-select {
  justify-self: start;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid #c8d4df;
  border-radius: 8px;
  background: #f7fafc;
  color: var(--ink);
  font-size: 12px;
}

.bank-question-select:hover,
.bank-question-select.is-selected {
  border-color: #167160;
  background: var(--jade-soft);
  color: #0e684f;
}

.bank-builder-dialog {
  width: min(1240px, calc(100vw - 36px));
  height: min(850px, calc(100vh - 36px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(12, 29, 49, 0.34);
}

.bank-builder-dialog::backdrop {
  background: rgba(13, 29, 49, 0.68);
  backdrop-filter: blur(7px);
}

.bank-builder-shell,
.bank-builder-body {
  height: 100%;
}

.bank-builder-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.bank-builder-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.bank-builder-header h2 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.bank-builder-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.bank-builder-body {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  min-height: 0;
}

.bank-builder-controls {
  display: grid;
  align-content: start;
  gap: 15px;
  padding: 22px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #f0f4f7;
}

.builder-type-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.builder-type-tabs button {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 10px 8px;
  border: 1px solid #cad5df;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.builder-type-tabs button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.builder-type-tabs strong {
  font-family: var(--display);
  font-size: 15px;
}

.builder-type-tabs small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.builder-type-tabs button.is-active small {
  color: rgba(255, 255, 255, 0.68);
}

.bank-builder-controls > label,
.builder-field-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.bank-builder-controls input,
.bank-builder-controls select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #c9d4df;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 14px;
}

.builder-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px;
  gap: 10px;
}

.builder-difficulty-field {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin: 0;
  padding: 0;
  border: 0;
}

.builder-difficulty-field legend {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
}

.builder-difficulty-field label {
  display: grid;
  gap: 7px;
  min-height: 64px;
  padding: 9px;
  border: 1px solid #c9d4df;
  border-radius: 9px;
  background: var(--white);
  cursor: pointer;
}

.builder-difficulty-field label:has(input:checked) {
  border-color: #167160;
  background: var(--jade-soft);
}

.builder-difficulty-field input {
  width: 15px;
  height: 15px;
}

.builder-difficulty-field span {
  display: grid;
  gap: 2px;
}

.builder-difficulty-field b {
  font-size: 12px;
}

.builder-difficulty-field small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
}

.builder-selection-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 3px;
  border-top: 1px solid #d3dde5;
}

.builder-selection-heading strong {
  font-family: var(--display);
  font-size: 17px;
}

.builder-selection-heading span,
.builder-preview-toolbar em {
  color: #167160;
  font-size: 12px;
  font-style: normal;
}

.builder-selected-list {
  display: grid;
  align-content: start;
  gap: 7px;
}

.builder-selected-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
  padding: 9px;
  border: 1px solid #d1dbe4;
  border-radius: 9px;
  background: var(--white);
}

.builder-selected-item > span {
  color: #8a99a8;
  font-family: var(--utility);
  font-size: 11px;
}

.builder-selected-item > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.builder-selected-item strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-selected-item small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-selected-item button {
  padding: 2px 0;
  border: 0;
  background: transparent;
  color: #9a5b47;
  font-size: 11px;
}

.builder-empty-selection,
.bank-print-empty {
  padding: 24px 16px;
  border: 1px dashed #c5d1dc;
  border-radius: 11px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.builder-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.bank-builder-preview-area {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-width: 0;
  padding: 20px 24px 24px;
  overflow: auto;
  background: #e9eef2;
}

.builder-preview-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
}

.builder-preview-toolbar > span {
  font-family: var(--display);
  font-size: 17px;
}

.builder-preview-toolbar em {
  margin-right: auto;
}

.bank-print-paper {
  align-self: start;
  min-height: 670px;
  margin: 8px auto 0;
  width: min(100%, 700px);
  padding: 42px 46px;
  background: var(--white);
  box-shadow: 0 15px 35px rgba(21, 42, 70, 0.12);
  color: #1d2732;
}

.bank-print-empty {
  display: grid;
  place-items: center;
  min-height: 580px;
  border-color: #c3cfd9;
}

.bank-print-empty > span {
  display: grid;
  width: 38px;
  height: 38px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  place-items: center;
}

.bank-print-empty svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.bank-print-empty strong {
  font-family: var(--display);
  font-size: 18px;
}

.bank-print-empty p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.bank-print-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.bank-print-heading span {
  color: #167160;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bank-print-heading h3 {
  margin: 5px 0;
  font-family: var(--display);
  font-size: 25px;
  letter-spacing: -0.03em;
}

.bank-print-heading small,
.bank-print-source {
  color: #71808e;
  font-size: 10px;
}

.bank-print-name {
  align-self: start;
  min-width: 130px;
  color: #71808e;
  font-size: 11px;
  white-space: nowrap;
}

.bank-print-rule {
  margin: 22px 0 25px;
  border-top: 2px solid #1d2732;
}

.bank-print-question {
  padding: 0 0 19px;
}

.bank-print-question-title {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.7;
}

.bank-print-question-title em {
  padding: 2px 6px;
  border-radius: 5px;
  background: #edf4f2;
  color: #167160;
  font-family: var(--utility);
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
}

.bank-print-answer-lines {
  display: grid;
  gap: 11px;
  margin: 12px 0 8px 33px;
}

.bank-print-answer-lines i {
  display: block;
  border-bottom: 1px solid #c9d2da;
}

.bank-print-explanation {
  margin: 10px 0 8px 33px;
  padding: 10px 12px;
  border-radius: 7px;
  background: #f2f7f5;
  color: #344b4a;
  font-size: 12px;
  line-height: 1.6;
}

.bank-print-explanation span {
  display: block;
  margin-bottom: 3px;
  color: #167160;
  font-size: 10px;
  font-weight: 700;
}

.bank-print-source {
  display: block;
  margin-left: 33px;
}

.bank-print-footer {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid #d3dce3;
  color: #8b98a3;
  font-size: 10px;
  text-align: center;
}

@media (max-width: 760px) {
  .bank-builder-dialog {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .bank-builder-header {
    align-items: flex-start;
    padding: 18px;
  }

  .bank-builder-header h2 {
    font-size: 22px;
  }

  .bank-builder-body {
    display: block;
    overflow: auto;
  }

  .bank-builder-controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .bank-builder-preview-area {
    min-height: 700px;
  }

  .bank-print-paper {
    padding: 28px 22px;
  }
}

@media print {
  body.is-printing-bank-builder > * {
    display: none !important;
  }

  body.is-printing-bank-builder #bank-builder-dialog {
    display: block !important;
    position: static;
    width: 100%;
    height: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  body.is-printing-bank-builder .bank-builder-header,
  body.is-printing-bank-builder .bank-builder-controls,
  body.is-printing-bank-builder .builder-preview-toolbar {
    display: none;
  }

  body.is-printing-bank-builder .bank-builder-body,
  body.is-printing-bank-builder .bank-builder-preview-area {
    display: block;
    padding: 0;
    overflow: visible;
    background: white;
  }

  body.is-printing-bank-builder .bank-print-paper {
    width: 100%;
    min-height: auto;
    margin: 0;
    padding: 18mm 16mm;
    box-shadow: none;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(21, 42, 70, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 42, 70, 0.026) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(85, 119, 170, 0.36);
  outline-offset: 3px;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.prototype-chrome {
  min-height: 100vh;
}

.prototype-header {
  position: sticky;
  z-index: 50;
  top: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 78px;
  padding: 0 36px;
  border-bottom: 1px solid rgba(21, 42, 70, 0.1);
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.brand-lockup > span:last-child {
  display: grid;
  gap: 1px;
}

.brand-lockup strong {
  font-size: 17px;
  letter-spacing: 0.08em;
}

.brand-lockup small {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin-right: 11px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  place-items: center;
}

.brand-mark svg {
  width: 31px;
  stroke-width: 2;
}

.brand-mark.small {
  width: 34px;
  height: 34px;
  margin-right: 9px;
  background: var(--white);
  color: var(--ink);
}

.brand-mark.small svg {
  width: 25px;
}

.role-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.role-button {
  min-width: 108px;
  padding: 9px 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.role-button.is-active {
  background: var(--ink);
  color: var(--white);
}

.role-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

body.auth-locked {
  overflow: hidden;
}

.prototype-note {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.live-dot {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
}

.live-dot::after {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(22, 138, 107, 0.32);
  border-radius: inherit;
  content: "";
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  50% {
    opacity: 0;
    transform: scale(1.6);
  }
}

.student-stage {
  display: grid;
  grid-template-columns: minmax(330px, 520px) minmax(420px, 570px);
  justify-content: center;
  min-height: calc(100vh - 78px);
  padding: 58px 52px 70px;
  overflow: hidden;
}

.stage-copy {
  align-self: center;
  max-width: 470px;
  padding-bottom: 60px;
}

.eyebrow,
.panel-kicker,
.mini-kicker {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.stage-copy h1 {
  max-width: 450px;
  margin: 19px 0 24px;
  font-family: var(--display);
  font-size: clamp(48px, 5.7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.stage-copy > p {
  max-width: 430px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.9;
}

.stage-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 35px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.stage-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.dot-error {
  background: var(--coral);
}

.dot-working {
  background: var(--amber);
}

.dot-mastered {
  background: var(--jade);
}

.phone-wrap {
  position: relative;
  display: grid;
  align-items: start;
  justify-items: center;
  min-height: 860px;
}

.phone-wrap::before {
  position: absolute;
  top: 72px;
  width: 510px;
  height: 610px;
  border: 1px solid rgba(21, 42, 70, 0.1);
  border-radius: 50%;
  content: "";
}

.prototype-note.is-offline .live-dot {
  background: var(--amber);
}

.prototype-note.is-offline .live-dot::after {
  border-color: rgba(193, 139, 54, 0.32);
}

.header-session {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 14px;
}

.session-chip {
  display: grid;
  grid-template-columns: 28px auto 13px;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 5px 9px 5px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
}

.session-chip[hidden] {
  display: none;
}

.session-chip > span:first-child {
  display: grid;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--display);
  font-size: 10px;
  place-items: center;
}

.session-chip > span:nth-child(2) {
  display: grid;
  gap: 1px;
}

.session-chip strong {
  font-size: 9px;
}

.session-chip small {
  color: var(--muted);
  font-size: 7px;
}

.session-chip svg {
  width: 13px;
  color: var(--muted);
}

.session-menu {
  position: absolute;
  z-index: 80;
  top: 50px;
  right: 0;
  display: grid;
  width: 210px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(21, 42, 70, 0.16);
}

.session-menu[hidden] {
  display: none;
}

.session-menu > span {
  color: var(--muted);
  font-size: 7px;
  letter-spacing: 0.08em;
}

.session-menu > strong {
  margin-top: 5px;
  font-family: var(--display);
  font-size: 14px;
}

.session-menu > small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.session-menu button {
  min-height: 34px;
  margin-top: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 8px;
}

.auth-gate {
  position: fixed;
  z-index: 180;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(430px, 0.92fr) minmax(520px, 1.08fr);
  background: var(--paper);
}

.auth-gate.is-hidden {
  display: none;
}

.auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 39px 52px 45px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 44px,
    var(--ink);
  color: var(--white);
}

.auth-story::before,
.auth-story::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.auth-story::before {
  right: -210px;
  bottom: -140px;
  width: 530px;
  height: 530px;
}

.auth-story::after {
  right: -110px;
  bottom: -40px;
  width: 330px;
  height: 330px;
}

.auth-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  width: max-content;
  color: inherit;
  text-decoration: none;
}

.auth-brand .brand-mark {
  background: var(--white);
  color: var(--ink);
}

.auth-brand > span:last-child {
  display: grid;
  gap: 2px;
}

.auth-brand strong {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.1em;
}

.auth-brand small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.auth-thesis {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: auto 0;
}

.auth-thesis .eyebrow {
  color: #7fd3b4;
}

.auth-thesis h1 {
  margin: 18px 0 20px;
  font-family: var(--display);
  font-size: clamp(38px, 4.2vw, 68px);
  font-weight: 750;
  line-height: 1.17;
  letter-spacing: -0.045em;
}

.auth-thesis p {
  max-width: 450px;
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.9;
}

.auth-route {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  max-width: 470px;
}

.auth-route > span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.auth-route i {
  display: grid;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 9px;
  font-style: normal;
  place-items: center;
}

.auth-route strong {
  font-size: 8px;
  font-weight: 600;
}

.auth-route b {
  height: 1px;
  margin: 0 13px;
  background: rgba(255, 255, 255, 0.14);
}

.auth-panel {
  align-self: center;
  width: min(550px, calc(100% - 80px));
  margin: 0 auto;
}

.auth-panel-copy h2 {
  margin: 9px 0 7px;
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.035em;
}

.auth-panel-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.auth-role-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.auth-role-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 17px;
  align-items: center;
  gap: 13px;
  min-height: 82px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  transition: border-color 150ms, box-shadow 150ms, transform 150ms;
}

.auth-role-card:hover {
  border-color: #9eb0c3;
  box-shadow: 0 12px 35px rgba(21, 42, 70, 0.09);
  transform: translateY(-1px);
}

.auth-role-card:focus-visible {
  outline: 3px solid rgba(60, 100, 151, 0.16);
  outline-offset: 2px;
}

.auth-role-card.is-loading {
  cursor: wait;
  opacity: 0.62;
}

.auth-role-mark {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  font-family: var(--display);
  font-size: 16px;
  place-items: center;
}

.teacher-mark {
  background: var(--ink);
  color: var(--white);
}

.student-mark {
  background: var(--jade-soft);
  color: var(--jade);
}

.auth-role-card > span:nth-child(2) {
  display: grid;
  gap: 5px;
}

.auth-role-card strong {
  font-size: 12px;
}

.auth-role-card small {
  color: var(--muted);
  font-size: 9px;
}

.auth-role-card em {
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.auth-role-card:disabled {
  cursor: wait;
  opacity: 0.58;
}

.auth-role-card.is-loading {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.auth-role-card svg {
  width: 16px;
  color: var(--muted);
}

.wechat-boundary {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-top: 18px;
  padding: 13px 14px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}

.wechat-boundary > span {
  flex: 0 0 auto;
  padding: 4px 6px;
  border-radius: 5px;
  background: rgba(193, 139, 54, 0.14);
  color: #805c22;
  font-size: 7px;
  font-weight: 800;
}

.wechat-boundary p {
  margin: 1px 0 0;
  color: #725f3a;
  font-size: 8px;
  line-height: 1.65;
}

.auth-error {
  min-height: 20px;
  margin-top: 9px;
  color: var(--coral);
  font-size: 9px;
}

.phone-wrap::after {
  position: absolute;
  z-index: -1;
  top: 110px;
  width: 420px;
  height: 420px;
  border: 78px solid rgba(85, 119, 170, 0.06);
  border-radius: 50%;
  content: "";
}

.phone-frame {
  position: relative;
  z-index: 2;
  width: 390px;
  height: 844px;
  padding: 9px;
  border: 2px solid #24364e;
  border-radius: 47px;
  background: #0f1d2e;
  box-shadow: var(--shadow);
}

.phone-frame::before {
  position: absolute;
  z-index: 5;
  top: 16px;
  left: 50%;
  width: 96px;
  height: 27px;
  border-radius: 18px;
  background: #0f1d2e;
  content: "";
  transform: translateX(-50%);
}

.phone-status {
  position: absolute;
  z-index: 6;
  top: 17px;
  right: 25px;
  left: 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 24px;
  color: var(--ink);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.status-icons svg {
  width: 13px;
  height: 10px;
  fill: currentColor;
  stroke-width: 1.3;
}

.battery {
  display: inline-flex;
  width: 18px;
  height: 9px;
  padding: 1px;
  border: 1px solid currentColor;
  border-radius: 3px;
}

.battery::after {
  width: 1px;
  height: 4px;
  margin: 1px -3px 0 auto;
  border-radius: 0 1px 1px 0;
  background: currentColor;
  content: "";
}

.battery i {
  display: block;
  width: 12px;
  border-radius: 1px;
  background: currentColor;
}

.mini-app {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 37px;
  background: var(--paper);
}

.mini-header {
  display: flex;
  align-items: center;
  height: 83px;
  padding: 27px 18px 8px;
  background: var(--white);
}

.avatar-button {
  display: grid;
  width: 38px;
  height: 38px;
  margin-right: 10px;
  border: 0;
  border-radius: 13px;
  background: var(--ink);
  color: var(--white);
  font-family: var(--display);
  font-size: 16px;
  place-items: center;
}

.mini-header > div {
  display: grid;
  flex: 1;
  gap: 1px;
}

.mini-header strong {
  font-family: var(--display);
  font-size: 16px;
}

.icon-button,
.bookmark-button,
.back-button,
.share-button {
  position: relative;
  display: grid;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  place-items: center;
}

.icon-button svg,
.bookmark-button svg,
.back-button svg,
.share-button svg {
  width: 18px;
}

.icon-button i {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 5px;
  height: 5px;
  border: 1px solid var(--white);
  border-radius: 50%;
  background: var(--coral);
}

.mini-content {
  height: calc(100% - 83px);
  padding-bottom: 71px;
  overflow-y: auto;
  scrollbar-width: none;
}

.mini-content::-webkit-scrollbar {
  display: none;
}

.mini-view {
  display: none;
  min-height: 100%;
  padding: 15px 15px 24px;
}

.mini-view.is-visible {
  display: block;
  animation: view-enter 260ms ease-out both;
}

@keyframes view-enter {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
}

.focus-panel {
  padding: 18px;
  border-radius: 22px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 13px 28px rgba(21, 42, 70, 0.18);
}

.focus-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.focus-heading .panel-kicker {
  color: rgba(255, 255, 255, 0.58);
}

.focus-heading h2 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 24px;
}

.focus-status {
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #f4dba8;
  font-size: 10px;
}

.mastery-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin: 25px 0 23px;
}

.route-line {
  position: absolute;
  top: 12px;
  right: 11%;
  left: 11%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.route-progress {
  display: block;
  width: 65%;
  height: 100%;
  background: #7fd2b4;
}

.route-node {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.route-node > span {
  display: grid;
  width: 24px;
  height: 24px;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: var(--ink);
  font-family: var(--utility);
  font-size: 9px;
  place-items: center;
}

.route-node strong {
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.route-node small {
  margin-top: 3px;
  font-size: 8px;
}

.route-node.is-done,
.route-node.is-current {
  color: var(--white);
}

.route-node.is-done > span {
  border-color: var(--jade);
  background: var(--jade);
}

.route-node.is-current > span {
  border-color: #f1cd84;
  box-shadow: 0 0 0 4px rgba(241, 205, 132, 0.12);
  color: #f1cd84;
}

.primary-action,
.secondary-action,
.outline-action,
.dark-action,
.approve-action,
.full-outline-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  font-weight: 700;
}

.primary-action {
  width: 100%;
  min-height: 44px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
}

.primary-action svg,
.full-outline-action svg {
  width: 17px;
  margin-left: 8px;
}

.primary-action.is-disabled {
  opacity: 0.4;
}

.section-block {
  margin-top: 22px;
}

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

.section-heading h3 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 16px;
}

.text-button {
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--blue);
  font-size: 10px;
}

.weakness-list {
  display: grid;
  gap: 9px;
}

.weakness-card {
  display: grid;
  grid-template-columns: 37px minmax(0, 1fr) 58px 15px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  background: var(--white);
  text-align: left;
}

.weakness-card > svg {
  width: 14px;
  color: var(--muted);
}

.subject-tab {
  display: grid;
  width: 37px;
  height: 37px;
  border-radius: 11px;
  font-family: var(--display);
  font-weight: 800;
  place-items: center;
}

.math-tab {
  background: var(--amber-soft);
  color: #956822;
}

.chinese-tab {
  background: var(--blue-soft);
  color: var(--blue);
}

.weakness-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.weakness-copy strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weakness-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-progress {
  height: 4px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line-soft);
}

.mini-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--amber);
}

.month-glance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 17px;
  padding: 14px 15px;
  border: 1px dashed #cbd4df;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.46);
}

.month-glance > div:first-child {
  display: grid;
  gap: 3px;
}

.month-glance strong {
  font-family: var(--display);
  font-size: 12px;
}

.month-glance em {
  color: var(--jade);
  font-family: var(--utility);
  font-size: 20px;
  font-style: normal;
}

.seal {
  display: grid;
  width: 66px;
  height: 66px;
  border: 1px solid var(--jade);
  border-radius: 50%;
  color: var(--jade);
  place-items: center;
  transform: rotate(-5deg);
}

.seal::before {
  position: absolute;
  width: 56px;
  height: 56px;
  border: 1px dashed rgba(22, 138, 107, 0.55);
  border-radius: inherit;
  content: "";
}

.seal span,
.seal strong {
  position: relative;
  z-index: 2;
}

.seal span {
  align-self: end;
  font-size: 8px;
}

.seal strong {
  align-self: start;
  font-family: var(--utility);
  font-size: 14px;
}

.mini-nav {
  position: absolute;
  z-index: 8;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 70px;
  padding: 6px 10px 7px;
  border-top: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.mini-nav-item {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 3px;
  border: 0;
  background: none;
  color: #9aa5b2;
  font-size: 8px;
}

.mini-nav-item svg {
  width: 19px;
}

.mini-nav-item.is-active {
  color: var(--ink);
}

.practice-view {
  padding-top: 11px;
}

.practice-topline {
  display: grid;
  grid-template-columns: 35px 1fr 35px;
  align-items: center;
  gap: 9px;
}

.practice-topline > div {
  display: grid;
  justify-items: center;
}

.practice-topline span {
  color: var(--muted);
  font-size: 9px;
}

.practice-topline strong {
  margin-top: 2px;
  font-size: 12px;
}

.step-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin: 15px 0;
}

.step-track i {
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}

.step-track i.is-complete {
  background: var(--jade);
}

.step-track i.is-active {
  background: var(--amber);
}

.question-card {
  padding: 19px 17px 17px;
  border: 1px solid var(--line-soft);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(21, 42, 70, 0.06);
}

.question-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 8px;
}

.question-meta span:first-child {
  color: var(--blue);
}

.question-card h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.7;
}

.question-tip {
  margin: 15px 0 13px;
  padding: 10px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
  color: #775c30;
  font-size: 9px;
  line-height: 1.5;
}

.question-tip span {
  margin-right: 5px;
  font-weight: 800;
}

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

.answer-option {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-size: 11px;
  text-align: left;
  transition: border-color 150ms, background 150ms;
}

.answer-option span {
  display: grid;
  width: 24px;
  height: 24px;
  margin-right: 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--utility);
  font-size: 9px;
  place-items: center;
}

.answer-option.is-correct {
  border-color: var(--jade);
  background: var(--jade-soft);
  color: #0f684f;
}

.answer-option.is-correct span {
  background: var(--jade);
  color: var(--white);
}

.answer-option.is-wrong {
  border-color: var(--coral);
  background: var(--coral-soft);
  color: #a43f36;
}

.answer-option.is-wrong span {
  background: var(--coral);
  color: var(--white);
}

.answer-feedback {
  display: none;
  align-items: start;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 13px;
  background: var(--jade-soft);
}

.answer-feedback.is-visible {
  display: flex;
  animation: view-enter 200ms ease-out both;
}

.answer-feedback.is-error {
  background: var(--coral-soft);
}

.feedback-icon {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--jade);
  color: var(--white);
  place-items: center;
}

.is-error .feedback-icon {
  background: var(--coral);
}

.feedback-icon svg {
  width: 16px;
}

.answer-feedback strong {
  font-size: 10px;
}

.answer-feedback p {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.55;
}

.practice-actions {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 9px;
  margin-top: 12px;
}

.secondary-action {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 10px;
}

.practice-actions .primary-action {
  background: var(--ink);
  color: var(--white);
  font-size: 10px;
}

.report-view {
  padding-top: 14px;
}

.report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.report-heading h2 {
  margin: 3px 0 0;
  font-family: var(--display);
  font-size: 21px;
}

.report-summary {
  padding: 18px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--white);
}

.report-summary .panel-kicker {
  color: rgba(255, 255, 255, 0.55);
}

.report-summary h3 {
  margin: 9px 0 18px;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.55;
}

.summary-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.summary-data div {
  display: grid;
  gap: 3px;
}

.summary-data strong {
  font-family: var(--utility);
  font-size: 17px;
}

.summary-data span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 8px;
}

.report-section {
  margin-top: 13px;
  padding: 15px;
  border: 1px solid var(--line-soft);
  border-radius: 17px;
  background: var(--white);
}

.mastery-rows {
  display: grid;
  gap: 10px;
}

.mastery-row {
  display: grid;
  grid-template-columns: 31px 1fr auto;
  align-items: center;
  gap: 9px;
}

.mastery-state {
  display: grid;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  place-items: center;
}

.state-good {
  background: var(--jade-soft);
  color: var(--jade);
}

.state-progress {
  background: var(--amber-soft);
  color: #966a22;
}

.state-risk {
  background: var(--coral-soft);
  color: var(--coral);
}

.mastery-row > div {
  display: grid;
  gap: 2px;
}

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

.mastery-row small {
  color: var(--muted);
  font-size: 8px;
}

.row-change {
  color: var(--amber);
  font-size: 9px;
}

.row-change.is-up {
  color: var(--jade);
}

.row-change.is-risk {
  color: var(--coral);
}

.error-bars {
  display: grid;
  gap: 9px;
}

.error-bars > div {
  display: grid;
  grid-template-columns: 65px 1fr 28px;
  align-items: center;
  gap: 7px;
  font-size: 9px;
}

.error-bars i {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--line-soft);
}

.error-bars b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.error-bars strong {
  font-family: var(--utility);
  font-size: 8px;
  text-align: right;
}

.teacher-note {
  display: flex;
  gap: 10px;
  margin-top: 13px;
  padding: 15px;
  border: 1px dashed #bdc8d5;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.5);
}

.note-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--display);
  place-items: center;
}

.teacher-note p {
  margin: 5px 0 0;
  color: var(--ink-soft);
  font-size: 9px;
  line-height: 1.7;
}

.teacher-stage {
  display: none;
  min-height: calc(100vh - 78px);
  background: #edf1f5;
}

.teacher-stage.is-visible {
  display: grid;
  grid-template-columns: 230px minmax(850px, 1fr);
}

.teacher-sidebar {
  position: sticky;
  top: 78px;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 78px);
  padding: 25px 17px 18px;
  background: var(--ink);
  color: var(--white);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  padding: 0 7px 28px;
}

.sidebar-brand strong {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: 0.08em;
}

.teacher-nav {
  display: grid;
  gap: 5px;
}

.teacher-nav-item {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  text-align: left;
}

.teacher-nav-item svg {
  width: 18px;
  margin-right: 11px;
}

.teacher-nav-item.is-active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--white);
}

.nav-badge {
  display: grid;
  width: 22px;
  height: 19px;
  margin-left: auto;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--utility);
  font-size: 8px;
  place-items: center;
}

.sidebar-foot {
  display: grid;
  grid-template-columns: 35px 1fr 30px;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 14px 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.teacher-avatar {
  display: grid;
  width: 35px;
  height: 35px;
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-family: var(--display);
  place-items: center;
}

.sidebar-foot > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.sidebar-foot strong {
  font-size: 11px;
}

.sidebar-foot small {
  color: rgba(255, 255, 255, 0.45);
  font-size: 8px;
}

.sidebar-foot button {
  display: grid;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  place-items: center;
}

.sidebar-foot svg {
  width: 17px;
}

.teacher-main {
  max-width: 1450px;
  width: 100%;
  margin: 0 auto;
  padding: 35px 40px 60px;
}

.teacher-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 27px;
}

.teacher-header h1 {
  margin: 7px 0 4px;
  font-family: var(--display);
  font-size: 31px;
  letter-spacing: -0.035em;
}

.teacher-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.teacher-header-actions {
  display: flex;
  gap: 9px;
}

.teacher-header-actions .mobile-only-action { display: none; }

.outline-action,
.dark-action {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #cbd4df;
  background: var(--white);
  font-size: 11px;
}

.outline-action svg,
.dark-action svg {
  width: 16px;
  margin-right: 7px;
}

.dark-action {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.workflow-strip {
  display: grid;
  grid-template-columns: 1fr 38px 1fr 38px 1fr 38px 1fr;
  align-items: center;
  padding: 17px 20px;
  border: 1px solid #d8e0e8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.workflow-strip > i {
  height: 1px;
  background: #cad4df;
}

.workflow-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.workflow-item > span {
  display: grid;
  flex: 0 0 29px;
  width: 29px;
  height: 29px;
  border: 1px solid #c8d2dd;
  border-radius: 50%;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 9px;
  place-items: center;
}

.workflow-item > span svg {
  width: 17px;
}

.workflow-item > div {
  display: grid;
  gap: 2px;
}

.workflow-item strong {
  font-size: 10px;
}

.workflow-item small {
  color: var(--muted);
  font-size: 8px;
}

.workflow-item.is-complete > span {
  border-color: var(--jade);
  background: var(--jade);
  color: var(--white);
}

.workflow-item.is-current > span {
  border-color: var(--amber);
  background: var(--amber-soft);
  color: #986b22;
  box-shadow: 0 0 0 4px rgba(193, 139, 54, 0.1);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.9fr) minmax(260px, 0.75fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-card {
  border: 1px solid #d8e0e8;
  border-radius: 17px;
  background: var(--white);
}

.attention-card,
.bank-card {
  padding: 20px;
}

.card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.card-heading h2,
.table-toolbar h2 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 18px;
}

.count-chip {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: var(--coral-soft);
  color: var(--coral);
  font-family: var(--utility);
  font-size: 12px;
  place-items: center;
}

.count-chip.is-complete {
  background: var(--jade-soft);
  color: var(--jade);
}

.review-question {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--line-soft);
}

.question-index {
  display: grid;
  align-content: center;
  width: 42px;
  height: 50px;
  border-radius: 11px;
  background: var(--amber-soft);
  color: #8b6424;
  font-family: var(--utility);
  font-size: 8px;
  text-align: center;
}

.question-index strong {
  font-size: 13px;
}

.question-index.chinese-index {
  background: var(--blue-soft);
  color: var(--blue);
}

.review-copy {
  min-width: 0;
}

.review-tags {
  display: flex;
  gap: 6px;
}

.review-tags span {
  padding: 3px 6px;
  border-radius: 5px;
  background: var(--paper);
  color: var(--muted);
  font-size: 8px;
}

.review-copy p {
  max-width: 580px;
  margin: 7px 0 4px;
  overflow: hidden;
  font-family: var(--display);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-copy small {
  color: var(--muted);
  font-size: 8px;
}

.review-actions {
  display: flex;
  gap: 7px;
}

.outline-action.compact,
.approve-action {
  min-height: 34px;
  padding: 0 10px;
  font-size: 9px;
}

.approve-action {
  border: 1px solid var(--jade);
  background: var(--jade-soft);
  color: #0e684f;
}

.approve-action:disabled {
  cursor: default;
  opacity: 0.7;
}

.approve-action svg {
  width: 14px;
  margin-left: 5px;
}

.bank-percent {
  color: var(--jade);
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 800;
}

.bank-progress {
  height: 6px;
  margin: 17px 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line-soft);
}

.bank-progress i {
  display: block;
  width: 16%;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
}

.bank-card > p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 10px;
  line-height: 1.7;
}

.bank-breakdown {
  display: grid;
  gap: 8px;
  margin: 17px 0;
}

.bank-breakdown div {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.bank-breakdown span {
  color: var(--muted);
}

.bank-breakdown strong {
  font-family: var(--utility);
}

.full-outline-action {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 9px;
}

.student-table-card {
  margin-top: 16px;
  padding: 20px;
}

.table-toolbar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 15px;
  margin-bottom: 14px;
}

.subject-filter {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.subject-filter button {
  min-width: 48px;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
}

.subject-filter button.is-active {
  background: var(--ink);
  color: var(--white);
}

.student-table {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.student-row {
  display: grid;
  grid-template-columns: 1.1fr 1.35fr 1.3fr 0.9fr 1.1fr 27px;
  align-items: center;
  min-height: 54px;
  padding: 0 13px;
  border-top: 1px solid var(--line-soft);
  font-size: 9px;
}

.student-row.is-hidden {
  display: none;
}

.student-row.table-head {
  min-height: 36px;
  border-top: 0;
  background: var(--paper);
  color: var(--muted);
  font-family: var(--utility);
  font-size: 8px;
}

.student-name {
  display: flex;
  align-items: center;
  gap: 9px;
}

.student-name i {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--display);
  font-style: normal;
  place-items: center;
}

.student-row > span > b {
  font-family: var(--utility);
}

.inline-bar {
  display: inline-block;
  width: 54px;
  height: 4px;
  margin-right: 7px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line-soft);
  vertical-align: middle;
}

.inline-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
}

.status-pill {
  display: inline-block;
  padding: 5px 7px;
  border-radius: 999px;
  font-size: 8px;
  font-style: normal;
}

.status-training {
  background: var(--amber-soft);
  color: #8d6423;
}

.status-review {
  background: var(--blue-soft);
  color: var(--blue);
}

.status-good {
  background: var(--jade-soft);
  color: var(--jade);
}

.status-risk {
  background: var(--coral-soft);
  color: var(--coral);
}

.row-action {
  display: grid;
  width: 27px;
  height: 27px;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  color: var(--muted);
  place-items: center;
}

.row-action svg {
  width: 13px;
}

.workflow-dialog {
  width: min(1180px, calc(100vw - 44px));
  max-width: none;
  height: min(780px, calc(100vh - 44px));
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(10, 29, 51, 0.32);
}

.workflow-dialog::backdrop {
  background: rgba(12, 29, 49, 0.64);
  backdrop-filter: blur(6px);
}

.workflow-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  height: 100%;
}

.workflow-rail {
  display: flex;
  flex-direction: column;
  padding: 25px 19px 21px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px) 0 0 / 100% 37px,
    var(--ink);
  color: var(--white);
}

.workflow-rail-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 5px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.workflow-rail-brand > span:last-child {
  display: grid;
  gap: 3px;
}

.workflow-rail-brand strong {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.08em;
}

.workflow-rail-brand small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 8px;
}

.workflow-step-nav {
  position: relative;
  display: grid;
  gap: 4px;
  margin-top: 24px;
}

.workflow-step-nav::before {
  position: absolute;
  top: 25px;
  bottom: 25px;
  left: 22px;
  width: 1px;
  background: rgba(255, 255, 255, 0.11);
  content: "";
}

.workflow-step-button {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  min-height: 63px;
  padding: 8px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.46);
  text-align: left;
}

.workflow-step-button > span {
  z-index: 1;
  grid-row: 1 / span 2;
  display: grid;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: var(--ink);
  font-family: var(--utility);
  font-size: 8px;
  place-items: center;
}

.workflow-step-button strong {
  align-self: end;
  font-size: 10px;
}

.workflow-step-button small {
  align-self: start;
  margin-top: 2px;
  font-size: 8px;
  opacity: 0.67;
}

.workflow-step-button.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.workflow-step-button.is-active > span {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--ink);
  box-shadow: 0 0 0 4px rgba(193, 139, 54, 0.12);
}

.workflow-step-button.is-complete {
  color: rgba(255, 255, 255, 0.72);
}

.workflow-step-button.is-complete > span {
  border-color: var(--jade);
  background: var(--jade);
  color: var(--white);
}

.workflow-save-state {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 13px 7px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.workflow-save-state > i {
  width: 8px;
  height: 8px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #7fd3b4;
  border-radius: 50%;
}

.workflow-save-state.is-saved > i {
  border: 0;
  background: #7fd3b4;
  box-shadow: 0 0 0 4px rgba(127, 211, 180, 0.09);
}

.workflow-save-state > span {
  display: grid;
  gap: 2px;
}

.workflow-save-state strong {
  font-size: 9px;
}

.workflow-save-state small {
  color: rgba(255, 255, 255, 0.38);
  font-size: 7px;
}

.workflow-workspace {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(rgba(21, 42, 70, 0.025) 1px, transparent 1px) 0 0 / 100% 38px,
    var(--paper);
}

.workflow-dialog-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  min-height: 116px;
  padding: 25px 30px 19px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, 0.93);
}

.workflow-dialog-header h2 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.025em;
}

.workflow-dialog-header p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.dialog-close {
  display: grid;
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
  place-items: center;
}

.dialog-close svg {
  width: 17px;
}

.workflow-pages {
  min-height: 0;
  overflow: auto;
}

.workflow-page {
  display: none;
  padding: 25px 30px 30px;
}

.workflow-page.is-visible {
  display: block;
  animation: view-enter 180ms ease-out both;
}

.exam-form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-wide {
  grid-column: span 2;
}

.field > span {
  color: var(--ink-soft);
  font-size: 9px;
  font-weight: 750;
}

.field input,
.field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 10px;
}

.field input:focus,
.field select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60, 100, 151, 0.1);
}

.paper-intake {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  margin-top: 20px;
  padding: 19px;
  border: 1px dashed #aebdcb;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.paper-intake.is-loaded {
  border-style: solid;
  border-color: rgba(22, 138, 107, 0.5);
  background: var(--jade-soft);
}

.paper-intake.needs-attention {
  border-color: var(--coral);
  background: var(--coral-soft);
  animation: view-enter 180ms ease-out both;
}

.paper-intake-icon {
  display: grid;
  width: 52px;
  height: 58px;
  border-radius: 10px;
  background: var(--blue-soft);
  color: var(--blue);
  place-items: center;
  transform: rotate(-2deg);
}

.paper-intake.is-loaded .paper-intake-icon {
  background: var(--jade);
  color: var(--white);
}

.paper-intake-icon svg {
  width: 27px;
}

.paper-intake strong {
  font-size: 11px;
}

.paper-intake p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.5;
}

.paper-demo-action {
  min-height: 40px;
  padding: 0 13px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-size: 9px;
}

.honesty-note {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-top: 16px;
  padding: 13px 15px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}

.honesty-note > span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 5px;
  background: rgba(193, 139, 54, 0.16);
  color: #855d1d;
  font-size: 8px;
  font-weight: 800;
}

.honesty-note p {
  margin: 1px 0 0;
  color: #6f5b38;
  font-size: 9px;
  line-height: 1.7;
}

.entry-toolbar,
.diagnosis-intro,
.publish-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 18px;
}

.entry-toolbar h3,
.diagnosis-intro h3,
.publish-heading h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 18px;
}

.entry-legend {
  display: flex;
  gap: 13px;
  color: var(--muted);
  font-size: 8px;
}

.entry-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.entry-legend i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.score-full {
  background: var(--jade-soft);
  box-shadow: inset 0 0 0 1px rgba(22, 138, 107, 0.35);
}

.score-lost {
  background: var(--coral-soft);
  box-shadow: inset 0 0 0 1px rgba(222, 104, 92, 0.35);
}

.score-sheet {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.score-row {
  display: grid;
  grid-template-columns: 1.25fr repeat(5, minmax(70px, 0.75fr)) 0.7fr;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-top: 1px solid var(--line-soft);
}

.score-row:first-child {
  border-top: 0;
}

.score-head {
  min-height: 40px;
  background: #f1f4f7;
  color: var(--muted);
  font-size: 8px;
}

.score-head span:not(:first-child) {
  text-align: center;
}

.score-head small {
  display: block;
  margin-top: 2px;
  font-size: 7px;
}

.score-student {
  display: flex;
  align-items: center;
  gap: 9px;
}

.score-student i,
.student-seal {
  display: grid;
  width: 29px;
  height: 29px;
  border-radius: 9px;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--display);
  font-style: normal;
  place-items: center;
}

.score-student strong {
  font-size: 9px;
}

.score-input-wrap {
  display: grid;
  place-items: center;
}

.score-input {
  width: 48px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--white);
  color: var(--ink);
  font-family: var(--utility);
  font-size: 9px;
  text-align: center;
}

.score-input.is-full {
  border-color: rgba(22, 138, 107, 0.28);
  background: var(--jade-soft);
  color: #0e684f;
}

.score-input.is-lost {
  border-color: rgba(222, 104, 92, 0.28);
  background: var(--coral-soft);
  color: #a43f36;
}

.score-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(60, 100, 151, 0.1);
}

.score-total {
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.entry-summary {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  color: var(--muted);
  font-size: 9px;
}

.entry-summary strong {
  color: var(--ink);
}

.diagnosis-count {
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--coral-soft);
  color: var(--coral);
  font-family: var(--utility);
  font-size: 9px;
  font-weight: 800;
}

.diagnosis-card {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 21px;
  margin-top: 13px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.diagnosis-question {
  display: flex;
  align-items: start;
  gap: 13px;
}

.question-ticket {
  display: grid;
  flex: 0 0 43px;
  width: 43px;
  height: 54px;
  border-radius: 10px;
  background: var(--amber-soft);
  color: #8b6424;
  font-family: var(--utility);
  font-size: 7px;
  line-height: 1.15;
  text-align: center;
  place-content: center;
}

.question-ticket strong {
  font-size: 13px;
}

.chinese-ticket {
  background: var(--blue-soft);
  color: var(--blue);
}

.risk-label {
  color: var(--coral);
  font-size: 8px;
}

.diagnosis-question h4 {
  margin: 6px 0 5px;
  font-family: var(--display);
  font-size: 12px;
}

.diagnosis-question p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.55;
}

.diagnosis-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.diagnosis-fields .field input,
.diagnosis-fields .field select {
  height: 36px;
  font-size: 9px;
}

.affected-students {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2px;
}

.affected-students > span {
  color: var(--muted);
  font-size: 8px;
}

.affected-students > div {
  display: flex;
  padding-right: 7px;
}

.affected-students i {
  display: grid;
  width: 24px;
  height: 24px;
  margin-right: -6px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--display);
  font-size: 8px;
  font-style: normal;
  place-items: center;
}

.publish-heading {
  align-items: center;
}

.publish-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.ready-seal {
  display: grid;
  width: 72px;
  height: 72px;
  border: 1px dashed var(--jade);
  border-radius: 50%;
  color: var(--jade);
  font-size: 8px;
  text-align: center;
  place-content: center;
  transform: rotate(4deg);
}

.ready-seal strong {
  font-family: var(--utility);
  font-size: 22px;
  line-height: 1;
}

.prescription-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.prescription-list article {
  display: grid;
  grid-template-columns: 34px 150px minmax(310px, 1fr) 58px;
  align-items: center;
  gap: 11px;
  min-height: 66px;
  padding: 0 15px;
  border-top: 1px solid var(--line-soft);
}

.prescription-list article:first-child {
  border-top: 0;
}

.prescription-list article > div:nth-child(2) {
  display: grid;
  gap: 3px;
}

.prescription-list strong {
  font-size: 9px;
}

.prescription-list small {
  color: var(--muted);
  font-size: 8px;
}

.prescription-route {
  display: flex;
  align-items: center;
  color: var(--ink-soft);
  font-size: 8px;
}

.prescription-route span {
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--paper);
  white-space: nowrap;
}

.prescription-route i {
  width: 18px;
  height: 1px;
  background: var(--line);
}

.prescription-list em {
  justify-self: end;
  padding: 5px 7px;
  border-radius: 6px;
  background: var(--jade-soft);
  color: var(--jade);
  font-size: 8px;
  font-style: normal;
}

.bank-gap-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 13px;
  padding: 14px 15px;
  border-left: 3px solid var(--amber);
  background: var(--amber-soft);
}

.bank-gap-note strong {
  font-size: 10px;
}

.bank-gap-note p {
  margin: 4px 0 0;
  color: #75623d;
  font-size: 8px;
}

.workflow-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 13px 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.workflow-footer > div {
  display: flex;
  gap: 8px;
}

.workflow-reset {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 8px;
}

.workflow-footer .outline-action,
.workflow-footer .dark-action {
  min-width: 118px;
  justify-content: center;
}

.workflow-footer .is-disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.publication-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 0 10px;
  padding: 9px 10px;
  border: 1px solid rgba(22, 138, 107, 0.2);
  border-radius: 11px;
  background: var(--jade-soft);
}

.publication-note > i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 4px rgba(22, 138, 107, 0.09);
}

.publication-note > span {
  display: grid;
  gap: 2px;
}

.publication-note strong {
  color: #0e684f;
  font-size: 8px;
}

.publication-note small {
  color: #4f786d;
  font-size: 7px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 15px 40px rgba(21, 42, 70, 0.25);
  color: var(--white);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms, transform 180ms;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.toast svg {
  width: 16px;
  color: #75d0ae;
}

/* Readability pass: keep hierarchy, remove sub-10px working text. */
.session-chip strong {
  font-size: 12px;
}

.session-chip small,
.session-menu > span {
  font-size: 10px;
}

.session-menu > small,
.session-menu button {
  font-size: 11px;
}

.auth-panel-copy p {
  font-size: 14px;
  line-height: 1.7;
}

.auth-role-card strong {
  font-size: 15px;
}

.auth-role-card small {
  font-size: 12px;
}

.auth-role-card em,
.wechat-boundary > span {
  font-size: 10px;
}

.wechat-boundary p,
.auth-error {
  font-size: 11px;
}

.mini-kicker,
.panel-kicker,
.eyebrow {
  font-size: 11px;
}

.route-node strong {
  font-size: 12px;
}

.route-node small,
.weakness-copy small,
.mini-nav-item {
  font-size: 10px;
}

.weakness-copy strong,
.primary-action,
.text-button {
  font-size: 13px;
}

.teacher-nav-item {
  min-height: 47px;
  font-size: 14px;
}

.nav-badge,
.sidebar-foot small {
  font-size: 10px;
}

.sidebar-foot strong {
  font-size: 13px;
}

.teacher-header p {
  font-size: 14px;
}

.outline-action,
.dark-action {
  min-height: 44px;
  font-size: 13px;
}

.workflow-item strong {
  font-size: 12px;
}

.workflow-item small {
  font-size: 10px;
}

.review-tags span,
.question-index {
  font-size: 10px;
}

.review-copy p {
  font-size: 14px;
}

.review-copy small,
.bank-card > p {
  font-size: 12px;
}

.outline-action.compact,
.approve-action,
.full-outline-action {
  font-size: 12px;
}

.bank-breakdown div {
  font-size: 13px;
}

.subject-filter button {
  font-size: 12px;
}

.student-row {
  min-height: 60px;
  font-size: 12px;
}

.student-row.table-head,
.status-pill {
  font-size: 10px;
}

.publication-note strong {
  font-size: 11px;
}

.publication-note small {
  font-size: 10px;
}

.bank-workspace-dialog {
  width: min(1480px, calc(100vw - 36px));
  height: min(900px, calc(100vh - 36px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 35px 100px rgba(12, 29, 49, 0.34);
}

.bank-workspace-dialog::backdrop {
  background: rgba(13, 29, 49, 0.62);
  backdrop-filter: blur(7px);
}

.bank-workspace-shell {
  display: grid;
  grid-template-rows: auto auto auto auto minmax(0, 1fr);
  height: 100%;
}

.bank-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.bank-workspace-header h2 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.bank-workspace-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-close {
  display: grid;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  color: var(--muted);
  place-items: center;
}

.dialog-close svg {
  width: 20px;
}

.bank-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.bank-summary-strip article {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 14px 24px;
  border-right: 1px solid var(--line-soft);
}

.bank-summary-strip article:last-child {
  border-right: 0;
}

.bank-summary-strip span {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
}

.bank-summary-strip strong {
  grid-row: span 2;
  align-self: center;
  color: var(--ink);
  font-family: var(--utility);
  font-size: 26px;
}

.bank-summary-strip small {
  color: #96a1ae;
  font-size: 10px;
}

.bank-summary-strip .lineage-summary {
  background: var(--ink);
}

.bank-summary-strip .lineage-summary span,
.bank-summary-strip .lineage-summary small {
  color: rgba(255, 255, 255, 0.58);
}

.bank-summary-strip .lineage-summary strong {
  color: #7fd3b4;
}

.bank-toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--line);
}

.bank-toolbar > div {
  display: grid;
  gap: 5px;
}

.bank-toolbar label {
  color: var(--muted);
  font-size: 10px;
}

.bank-toolbar select,
.bank-toolbar input {
  min-width: 128px;
  height: 39px;
  padding: 0 32px 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: 12px;
}

.bank-boundary-note {
  display: inline-flex;
  align-items: center;
  align-self: center;
  gap: 7px;
  margin-left: 5px;
  color: #82601e;
  font-size: 11px;
}

.bank-boundary-note i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
}

.bank-toolbar .dark-action {
  margin-left: auto;
}

.source-form-panel {
  grid-template-columns: minmax(210px, 1.4fr) repeat(3, minmax(120px, 0.75fr)) minmax(210px, 1fr);
  align-items: end;
  gap: 12px;
  padding: 17px 22px 19px;
  border-bottom: 1px solid #d7c38f;
  background: var(--amber-soft);
}

.source-form-panel:not([hidden]) {
  display: grid;
}

.source-form-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.source-form-heading > div {
  display: grid;
  gap: 3px;
}

.source-form-heading strong {
  font-family: var(--display);
  font-size: 16px;
}

.source-form-heading small {
  color: #725f3a;
  font-size: 11px;
}

.source-form-heading button {
  border: 0;
  background: transparent;
  color: #725f3a;
  font-size: 12px;
}

.source-form-panel > label {
  display: grid;
  gap: 5px;
  color: #725f3a;
  font-size: 10px;
}

.score-import-dialog {
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #f7f8f5;
  color: var(--ink, #1b2824);
  box-shadow: 0 28px 90px rgb(13 34 27 / 22%);
}

.score-import-dialog::backdrop {
  background: rgb(14 29 24 / 58%);
  backdrop-filter: blur(6px);
}

.score-import-shell {
  padding: 30px;
}

.score-import-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.score-import-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.score-import-form label {
  display: grid;
  gap: 7px;
  color: #60726b;
  font-size: 12px;
  font-weight: 700;
}

.score-import-form input,
.score-import-form select,
.score-import-form textarea {
  width: 100%;
  border: 1px solid #d9e3dd;
  border-radius: 12px;
  background: #fff;
  color: #1b2824;
  padding: 11px 12px;
  font: inherit;
}

.score-import-form textarea {
  resize: vertical;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.score-import-help,
.score-import-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dce8e1;
  border-radius: 16px;
  background: #eef5ef;
  color: #60726b;
  font-size: 12px;
}

.score-import-help code {
  display: block;
  margin-top: 6px;
  color: #244d3d;
  font-size: 11px;
}

.score-import-result {
  min-height: 22px;
  color: #176246;
  font-size: 13px;
  font-weight: 700;
}

.score-import-result.is-error {
  color: #a03931;
}

.bank-csv-form {
  background: #f0f8f1;
}

.student-task-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.student-task-card {
  padding: 11px 13px;
  border: 1px solid #dbe7df;
  border-radius: 14px;
  background: #f4f8f4;
  color: #4f655b;
}

.student-task-card > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.student-task-card strong {
  color: #1c4f3d;
  font-size: 13px;
}

.student-task-card span,
.student-task-card small {
  font-size: 11px;
}

.student-task-card ul {
  display: grid;
  gap: 4px;
  margin: 8px 0 0;
  padding-left: 16px;
  color: #6a7c73;
  font-size: 11px;
  line-height: 1.5;
}

.student-task-empty {
  display: block;
  margin-top: 7px;
  color: #9a6b37;
}

@media (max-width: 760px) {
  .score-import-shell {
    padding: 22px;
  }

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

  .score-import-help,
  .score-import-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* 2026-08-10 · 首页任务化与四身份边界 */
.prototype-header .role-switch {
  gap: 3px;
}

.prototype-header .role-button {
  min-width: 76px;
  padding-inline: 13px;
  white-space: nowrap;
}

.auth-route {
  grid-template-columns: auto 1fr auto 1fr auto 1fr auto;
  max-width: 680px;
}

.auth-role-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.parent-mark {
  color: #765079;
  background: #f3eaf4;
}

.owner-mark {
  color: #fff;
  background: #643582;
}

.teacher-action-home {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid #d9cce0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(159, 116, 187, 0.16), transparent 25%),
    #fff;
  box-shadow: 0 22px 55px rgba(66, 28, 88, 0.09);
}

.teacher-action-home::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(#755090, #bca5cb 68%, #dcd0e4);
  content: "";
}

.action-home-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.action-home-heading h2 {
  margin: 6px 0 5px;
  color: #3d214c;
  font-family: var(--display);
  font-size: clamp(28px, 2.2vw, 38px);
  line-height: 1.16;
}

.action-home-heading p {
  margin: 0;
  color: #66576d;
  font-size: 15px;
  line-height: 1.7;
}

.action-home-grid {
  display: grid;
  gap: 12px;
}

.action-lane {
  display: grid;
  grid-template-columns: 146px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 132px;
  padding: 20px 20px 20px 18px;
  border: 1px solid #e2d9e7;
  border-radius: 16px;
  background: #fcfafc;
}

.action-lane-urgent {
  border-color: #c8afd5;
  background: linear-gradient(90deg, #f7f1fa 0%, #fff 58%);
}

.action-lane-complete {
  background: #fafbf9;
}

.action-lane-order {
  display: flex;
  min-height: 86px;
  padding-right: 20px;
  border-right: 1px solid #ded4e4;
  flex-direction: column;
  justify-content: center;
}

.action-lane-order span {
  color: #7e5a93;
  font-family: var(--utility);
  font-size: 28px;
  font-weight: 800;
}

.action-lane-order small {
  margin-top: 6px;
  color: #4c3a55;
  font-size: 14px;
  font-weight: 750;
}

.action-lane-copy h3 {
  margin: 8px 0 5px;
  color: #3e244b;
  font-size: 20px;
  line-height: 1.35;
}

.action-lane-copy > p {
  margin: 0;
  color: #695b70;
  font-size: 14px;
  line-height: 1.65;
}

.action-lane-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-lane-tags span,
.action-lane-tags em {
  padding: 4px 8px;
  border-radius: 999px;
  color: #684c76;
  background: #eee5f2;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.action-lane-tags em {
  color: #a1423c;
  background: #fbe8e5;
}

.scope-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(108px, 1fr));
  gap: 8px;
  margin: 15px 0 0;
}

.scope-metrics div {
  padding: 10px 12px;
  border: 1px solid #e5dce9;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.scope-metrics dt {
  color: #75677b;
  font-size: 12px;
}

.scope-metrics dd {
  margin: 4px 0 0;
  color: #4b295d;
  font-size: 15px;
  font-weight: 800;
}

.action-lane-deadline {
  display: block;
  margin-top: 10px;
  color: #71547d;
  font-size: 13px;
  font-weight: 700;
}

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

.focus-student-list > span {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid #e5dce9;
  border-radius: 12px;
  background: #fff;
}

.focus-student-list i {
  display: grid;
  width: 36px;
  height: 36px;
  grid-row: 1 / 3;
  border-radius: 12px;
  color: #68447b;
  background: #eee6f2;
  font-style: normal;
  font-weight: 800;
  place-items: center;
}

.focus-student-list b {
  color: #432653;
  font-size: 14px;
}

.focus-student-list small {
  color: #75677b;
  font-size: 12px;
}

.teacher-schedule-home {
  margin-top: 18px;
  padding: 23px 26px 25px;
  border: 1px solid #dcd4e6;
  border-radius: 20px;
  background:
    linear-gradient(90deg, rgba(104, 70, 142, 0.055) 1px, transparent 1px) 0 0 / 44px 100%,
    #fff;
  box-shadow: 0 16px 42px rgba(63, 41, 86, 0.07);
}

.teacher-schedule-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.teacher-schedule-heading h2 {
  margin: 5px 0 4px;
  color: #3d214c;
  font-family: var(--display);
  font-size: clamp(25px, 2vw, 32px);
}

.teacher-schedule-heading p {
  margin: 0;
  color: #73657a;
  font-size: 13px;
}

.teacher-schedule-week,
.schedule-editor-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 7px;
  margin-top: 19px;
}

.teacher-schedule-week button,
.schedule-editor-week button {
  display: grid;
  min-height: 48px;
  padding: 6px;
  border: 1px solid #e0d9e8;
  border-radius: 11px;
  color: #76667c;
  background: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 800;
  place-items: center;
}

.teacher-schedule-week button small,
.schedule-editor-week button small {
  color: #9a8da1;
  font-size: 10px;
}

.teacher-schedule-week button.is-active,
.schedule-editor-week button.is-active {
  border-color: #7852a2;
  color: #fff;
  background: #5c3878;
  box-shadow: 0 8px 18px rgba(72, 42, 98, 0.18);
}

.teacher-schedule-week button.is-active small,
.schedule-editor-week button.is-active small {
  color: rgba(255, 255, 255, 0.76);
}

.teacher-schedule-week button.has-lessons:not(.is-active)::after,
.schedule-editor-week button.has-lessons:not(.is-active)::after {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #179276;
  content: "";
}

.teacher-schedule-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #e4dce9;
}

.teacher-schedule-day-note {
  display: grid;
  align-content: start;
  min-height: 150px;
  padding: 18px;
  border-radius: 15px;
  color: #fff;
  background: #3f294f;
}

.teacher-schedule-day-note span {
  color: #d9c9e2;
  font-size: 12px;
  font-weight: 800;
}

.teacher-schedule-day-note strong {
  margin-top: 8px;
  font-family: var(--utility);
  font-size: 24px;
}

.teacher-schedule-day-note small {
  margin-top: 20px;
  color: #d8cfe0;
  font-size: 12px;
  line-height: 1.6;
}

.teacher-schedule-timeline {
  position: relative;
  display: grid;
  gap: 8px;
}

.teacher-schedule-timeline::before {
  position: absolute;
  top: 13px;
  bottom: 13px;
  left: 99px;
  width: 1px;
  background: #ded5e4;
  content: "";
}

.teacher-schedule-entry {
  position: relative;
  display: grid;
  grid-template-columns: 82px 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 68px;
  padding: 9px 12px 9px 0;
  border: 1px solid transparent;
  border-radius: 13px;
}

.teacher-schedule-entry:hover {
  border-color: #e4dbe9;
  background: #fcfafd;
}

.teacher-schedule-entry time {
  color: #46314f;
  font-family: var(--utility);
  font-size: 14px;
  font-weight: 850;
  text-align: right;
}

.teacher-schedule-entry > i {
  position: relative;
  z-index: 1;
  width: 10px;
  height: 10px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #80619a;
  box-shadow: 0 0 0 1px #c8b6d4;
}

.teacher-schedule-entry.math > i { background: #7657b1; }
.teacher-schedule-entry.chinese > i { background: #c27f57; }
.teacher-schedule-entry.english > i { background: #26977f; }
.teacher-schedule-entry.physics > i { background: #487ab5; }
.teacher-schedule-entry.chemistry > i { background: #ad5a78; }

.teacher-schedule-entry > div {
  min-width: 0;
}

.teacher-schedule-entry strong,
.teacher-schedule-entry small {
  display: block;
}

.teacher-schedule-entry strong {
  color: #3c2945;
  font-size: 14px;
}

.teacher-schedule-entry small {
  margin-top: 4px;
  color: #82758a;
  font-size: 11px;
}

.teacher-schedule-entry > span {
  padding: 5px 8px;
  border-radius: 8px;
  color: #64437b;
  background: #f1ebf5;
  font-size: 11px;
  font-weight: 800;
}

.teacher-schedule-entry.is-next {
  border-color: #b6dfd3;
  background: #f0faf7;
}

.teacher-schedule-entry.is-next > span {
  color: #08785e;
  background: #dff4ed;
}

.teacher-schedule-empty {
  display: grid;
  min-height: 150px;
  align-content: center;
  justify-items: start;
  padding: 20px;
  border: 1px dashed #d9cfe0;
  border-radius: 14px;
  color: #76677c;
  background: rgba(250, 248, 252, 0.82);
}

.teacher-schedule-empty strong {
  color: #4e335c;
}

.teacher-schedule-empty small {
  margin-top: 5px;
  font-size: 12px;
}

.schedule-editor-dialog {
  width: min(1040px, calc(100vw - 34px));
  max-width: none;
  height: min(720px, calc(100dvh - 34px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 21px;
  color: #34243e;
  background: #faf8fc;
  box-shadow: 0 32px 100px rgba(38, 21, 48, 0.38);
  overflow: hidden;
}

.schedule-editor-dialog::backdrop {
  background: rgba(38, 24, 48, 0.68);
  backdrop-filter: blur(7px);
}

.schedule-editor-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
}

.schedule-editor-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 27px 19px;
  border-bottom: 1px solid #ded5e5;
  background: #fff;
}

.schedule-editor-header h2 {
  margin: 5px 0 4px;
  color: #3d214c;
  font-family: var(--display);
  font-size: 29px;
}

.schedule-editor-header p {
  margin: 0;
  color: #76697c;
  font-size: 13px;
}

.schedule-editor-body {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  min-height: 0;
}

.schedule-editor-list-pane,
.schedule-entry-pane {
  min-width: 0;
  min-height: 0;
  padding: 23px 25px;
  overflow: auto;
}

.schedule-editor-list-pane {
  border-right: 1px solid #ded6e4;
  background: #f5f1f8;
}

.schedule-editor-pane-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.schedule-editor-pane-heading strong {
  display: block;
  margin-top: 3px;
  color: #432850;
  font-size: 20px;
}

.schedule-editor-week {
  gap: 5px;
  margin-top: 16px;
}

.schedule-editor-week button {
  min-height: 42px;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
}

.bank-toolbar input {
  min-width: 180px;
  padding-right: 11px;
}

.bank-filter-result,
.variation-seed-counter {
  align-self: center;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f4f0f8;
  color: #6e5a7d;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.variation-seed-counter {
  background: #e7f5f1;
  color: #176c5c;
}

.variation-seed-counter strong {
  margin-left: 4px;
  font-family: var(--utility);
  font-size: 15px;
}

.schedule-editor-list {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.schedule-editor-list-empty {
  padding: 36px 20px;
  border: 1px dashed #d5c9dd;
  border-radius: 13px;
  color: #81738a;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  text-align: center;
}

.schedule-editor-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 72px;
  padding: 11px 12px;
  border: 1px solid #ded5e5;
  border-radius: 12px;
  background: #fff;
}

.schedule-editor-item.is-active {
  border-color: #7853a4;
  box-shadow: 0 0 0 2px rgba(120, 83, 164, 0.1);
}

.schedule-editor-item time {
  color: #694680;
  font-family: var(--utility);
  font-size: 13px;
  font-weight: 850;
}

.schedule-editor-item strong,
.schedule-editor-item small {
  display: block;
}

.schedule-editor-item strong {
  color: #3d2946;
  font-size: 13px;
}

.schedule-editor-item small {
  margin-top: 3px;
  color: #897b90;
  font-size: 11px;
}

.schedule-editor-item button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid #ded4e5;
  border-radius: 8px;
  color: #674477;
  background: #faf7fc;
  font-size: 11px;
  font-weight: 800;
}

.schedule-entry-pane {
  background: #fff;
}

.schedule-entry-pane form {
  display: grid;
  align-content: start;
  min-height: 100%;
}

.schedule-entry-form-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 20px;
}

.schedule-form-mark {
  display: grid;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: #5c3878;
  font-family: var(--display);
  font-weight: 900;
  place-items: center;
}

.schedule-entry-form-heading h3 {
  margin: 3px 0 0;
  color: #432750;
  font-size: 19px;
}

.schedule-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.schedule-entry-grid label {
  display: grid;
  gap: 7px;
  color: #6f6177;
  font-size: 12px;
  font-weight: 800;
}

.schedule-entry-grid .full-field {
  grid-column: 1 / -1;
}

.schedule-entry-grid input,
.schedule-entry-grid select {
  width: 100%;
  min-height: 42px;
  padding: 0 11px;
  border: 1px solid #dcd4e4;
  border-radius: 10px;
  color: #392941;
  background: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.schedule-entry-grid input:focus,
.schedule-entry-grid select:focus {
  outline: 3px solid rgba(115, 77, 154, 0.14);
  border-color: #7c55a4;
}

.schedule-entry-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #e6dfe9;
}

.schedule-entry-form-actions > div {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.training-workspace-dialog,
.exam-entry-dialog {
  width: min(1460px, calc(100vw - 48px));
  max-width: none;
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #f8f5fa;
  box-shadow: 0 32px 90px rgba(41, 21, 52, 0.34);
}

.exam-entry-dialog {
  width: min(920px, calc(100vw - 48px));
}

.training-workspace-dialog::backdrop,
.exam-entry-dialog::backdrop {
  background: rgba(35, 19, 44, 0.64);
  backdrop-filter: blur(7px);
}

.training-workspace-shell {
  height: min(900px, calc(100vh - 48px));
  overflow: hidden;
}

.training-workspace-header,
.exam-entry-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid #ded4e4;
  background: #fff;
}

.training-workspace-header h2,
.exam-entry-header h2 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 28px;
}

.training-workspace-header p,
.exam-entry-header p {
  margin: 0;
  color: #66596e;
  font-size: 14px;
}

.training-workspace-content {
  display: grid;
  gap: 18px;
  height: calc(100% - 125px);
  padding: 22px 28px 36px;
  overflow: auto;
}

.training-workspace-content .subject-context-bar,
.training-workspace-content .workflow-strip,
.training-workspace-content .subject-focus-panel,
.training-workspace-content .dashboard-grid,
.training-workspace-content .student-table-card,
.training-workspace-content .classroom-summary-card {
  margin: 0;
}

.exam-entry-shell {
  overflow: hidden;
}

.exam-entry-options {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.exam-entry-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: 100%;
  padding: 20px;
  border: 1px solid #ded4e4;
  border-radius: 15px;
  text-align: left;
  background: #fff;
}

.exam-entry-card:hover {
  border-color: #9d7aaf;
  box-shadow: 0 12px 28px rgba(67, 31, 87, 0.1);
  transform: translateY(-1px);
}

.exam-entry-icon {
  display: grid;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #68417d;
  background: #eee5f3;
  font-size: 20px;
  font-weight: 850;
  place-items: center;
}

.exam-entry-new .exam-entry-icon {
  color: #fff;
  background: #6c4382;
}

.exam-entry-published .exam-entry-icon {
  color: #166e59;
  background: #e4f3ed;
}

.exam-entry-card > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.exam-entry-card small {
  color: #806a8a;
  font-size: 12px;
  font-weight: 750;
}

.exam-entry-card strong {
  margin: 4px 0;
  color: #40234e;
  font-size: 19px;
}

.exam-entry-card em,
.exam-entry-card i {
  color: #66596d;
  font-size: 13px;
  font-style: normal;
  line-height: 1.55;
}

.exam-entry-card i {
  color: #84778a;
  font-size: 12px;
}

.exam-entry-card > b {
  color: #633b79;
  font-size: 14px;
  white-space: nowrap;
}

.workflow-dialog.is-published-preview .workflow-pages input,
.workflow-dialog.is-published-preview .workflow-pages select,
.workflow-dialog.is-published-preview .workflow-pages textarea,
.workflow-dialog.is-published-preview .workflow-pages button:not(.dialog-close) {
  pointer-events: none;
  opacity: 0.72;
}

body[data-active-role="parent"] #start-practice,
body[data-active-role="parent"] [data-target-view="practice"],
body[data-active-role="parent"] .answer-list,
body[data-active-role="parent"] .practice-view {
  display: none !important;
}

body[data-active-role="parent"] .student-stage::before {
  position: fixed;
  z-index: 4;
  top: 76px;
  left: 50%;
  padding: 8px 14px;
  border: 1px solid #d5c7dc;
  border-radius: 999px;
  color: #59366c;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(52, 29, 64, 0.12);
  content: "家长端 · 仅查看报告与学习表现，不能代替学生完成训练";
  font-size: 13px;
  font-weight: 750;
  transform: translateX(-50%);
}

@media (max-width: 1100px) {
  .prototype-header .role-button {
    min-width: auto;
    padding-inline: 10px;
  }

  .action-lane {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .action-lane > button {
    grid-column: 2;
    justify-self: start;
  }

  .scope-metrics,
  .focus-student-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .schedule-editor-body {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  }
}

@media (max-width: 760px) {
  .auth-role-list {
    grid-template-columns: 1fr;
  }

  .teacher-action-home {
    padding: 20px 16px;
  }

  .action-home-heading,
  .action-lane {
    display: flex;
    align-items: stretch;
    flex-direction: column;
  }

  .action-lane-order {
    min-height: 0;
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid #ded4e4;
  }

  .scope-metrics,
  .focus-student-list {
    grid-template-columns: 1fr;
  }

  .teacher-schedule-home {
    padding: 20px 16px;
  }

  .teacher-schedule-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .teacher-schedule-heading button {
    align-self: flex-start;
  }

  .teacher-schedule-week,
  .schedule-editor-week {
    grid-template-columns: repeat(7, 64px);
    padding-bottom: 5px;
    overflow-x: auto;
  }

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

  .teacher-schedule-day-note {
    min-height: 0;
  }

  .teacher-schedule-day-note small {
    margin-top: 9px;
  }

  .teacher-schedule-entry {
    grid-template-columns: 64px 12px minmax(0, 1fr);
  }

  .teacher-schedule-entry > span {
    grid-column: 3;
    justify-self: start;
  }

  .teacher-schedule-timeline::before {
    left: 81px;
  }

  .schedule-editor-dialog {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border-radius: 0;
  }

  .schedule-editor-body {
    display: block;
    overflow: auto;
  }

  .schedule-editor-list-pane,
  .schedule-entry-pane {
    padding: 20px 17px;
    overflow: visible;
  }

  .schedule-editor-list-pane {
    border-right: 0;
    border-bottom: 1px solid #ded6e4;
  }

  .schedule-editor-header {
    padding: 20px 18px 17px;
  }

  .schedule-entry-grid {
    grid-template-columns: 1fr;
  }

  .schedule-entry-grid .full-field {
    grid-column: 1;
  }

  .schedule-entry-form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .exam-entry-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .exam-entry-card > b {
    grid-column: 2;
  }
}

/* Subject workbenches + classroom directory */
.subject-context-bar {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  gap: 22px;
  align-items: center;
  margin: 0 0 22px;
  padding: 18px 20px;
  border: 1px solid rgba(21, 42, 70, 0.12);
  border-radius: 18px;
  background: linear-gradient(115deg, #fefefe, #f2f6fa);
  box-shadow: 0 14px 32px rgba(21, 42, 70, 0.06);
}

.subject-context-identity,
.subject-switcher,
.subject-context-actions,
.classroom-summary-actions {
  display: flex;
  align-items: center;
}

.subject-context-identity {
  gap: 13px;
}

.subject-context-identity > div {
  display: grid;
  gap: 3px;
}

.subject-context-identity strong {
  font-family: var(--display);
  font-size: 23px;
}

.subject-context-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.subject-context-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--display);
  font-size: 24px;
  box-shadow: 0 8px 16px rgba(21, 42, 70, 0.18);
}

.subject-switcher {
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.subject-switcher button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.subject-switcher button i {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--blue-soft);
  font-style: normal;
  font-size: 12px;
}

.subject-switcher button.is-active {
  color: var(--white);
  background: var(--ink);
}

.subject-switcher button.is-active i {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
}

.subject-context-actions {
  gap: 8px;
  justify-content: flex-end;
}

.subject-context-actions .dark-action {
  display: none;
}

body[data-teacher-subject="english"] .subject-context-actions .dark-action {
  display: inline-flex;
}

body[data-teacher-subject="math"] .subject-context-actions #open-math-placement {
  display: inline-flex;
}

.subject-focus-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr);
  gap: 24px;
  margin-bottom: 22px;
  padding: 24px 26px;
  border: 1px solid rgba(21, 42, 70, 0.1);
  border-radius: 20px;
  background: #fffdf7;
  box-shadow: 0 16px 35px rgba(21, 42, 70, 0.06);
  overflow: hidden;
  position: relative;
}

.subject-focus-panel::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -110px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: rgba(193, 139, 54, 0.09);
  pointer-events: none;
}

.subject-focus-panel[data-teacher-subject="chinese"] {
  background: #fffaf2;
}

.subject-focus-panel[data-teacher-subject="english"] {
  background: #f3f8fb;
}

.subject-focus-panel[data-teacher-subject="english"]::after {
  background: rgba(85, 119, 170, 0.12);
}

.subject-focus-copy,
.subject-focus-metrics {
  position: relative;
  z-index: 1;
}

.subject-signal {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 680px;
  margin: 18px 0 2px;
  padding: 13px 15px;
  border: 1px solid color-mix(in srgb, var(--subject-accent, var(--brand-action)) 20%, white);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.subject-signal > div {
  display: grid;
  gap: 3px;
  min-width: max-content;
}

.subject-signal span {
  color: #66586e;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.subject-signal strong {
  color: var(--subject-accent, var(--brand-action));
  font-family: var(--utility);
  font-size: 19px;
  letter-spacing: 0.025em;
}

.subject-signal ol {
  display: flex;
  align-items: center;
  flex: 1;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.subject-signal li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #51405a;
  font-size: 13px;
  font-weight: 700;
}

.subject-signal li:not(:last-child)::after {
  content: "→";
  color: var(--subject-accent, var(--brand-action));
}

.subject-focus-copy h2 {
  margin: 7px 0 9px;
  font-family: var(--display);
  font-size: clamp(24px, 3vw, 34px);
}

.subject-focus-copy p {
  max-width: 620px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
}

.subject-focus-actions {
  display: flex;
  gap: 9px;
  margin-top: 18px;
}

.subject-focus-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-self: end;
}

.subject-focus-metrics > div {
  display: grid;
  align-content: center;
  min-height: 122px;
  padding: 15px;
  border: 1px solid rgba(21, 42, 70, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
}

.subject-focus-metrics span,
.subject-focus-metrics small {
  color: var(--muted);
  font-size: 13px;
}

.subject-focus-metrics strong {
  margin: 8px 0 3px;
  color: var(--ink);
  font-family: var(--utility);
  font-size: 28px;
}

.classroom-summary-card {
  margin-top: 22px;
}

.classroom-summary-actions {
  gap: 8px;
}

.classroom-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}

.classroom-mini-card {
  display: grid;
  gap: 9px;
  min-height: 160px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fbfcfe;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
  cursor: pointer;
}

.classroom-mini-card:hover {
  transform: translateY(-2px);
  border-color: rgba(85, 119, 170, 0.55);
  box-shadow: 0 10px 22px rgba(21, 42, 70, 0.08);
}

.classroom-mini-english {
  background: #f3f8fb;
}

.classroom-mini-chinese {
  background: #fffaf2;
}

.classroom-mini-physics {
  background: #f1f7fa;
}

.classroom-mini-chemistry {
  background: #f1f8f5;
}

.classroom-mini-head,
.classroom-summary-foot,
.classroom-pane-heading,
.english-cloze-publish,
.english-preview-meta,
.english-preview-answer,
.student-detail-identity,
.student-detail-focus,
.classroom-student-row > span:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.classroom-mini-head {
  color: var(--muted);
  font-size: 13px;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 99px;
  color: var(--ink);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
}

.subject-pill.math {
  background: var(--jade-soft);
  color: var(--jade);
}

.subject-pill.chinese {
  background: var(--amber-soft);
  color: #996c20;
}

.subject-pill.english {
  background: #e8f0f7;
  color: #4a6e97;
}

.subject-pill.physics {
  background: #e3f0f5;
  color: #356f88;
}

.subject-pill.chemistry {
  background: #e4f2ec;
  color: #34735f;
}

.classroom-mini-card h3 {
  margin: 0;
  font-size: 17px;
}

.classroom-mini-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: max-content;
  gap: 12px;
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-size: 14px;
  font-weight: 700;
}

.classroom-summary-foot {
  gap: 15px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

.classroom-summary-foot .full-outline-action {
  margin-left: auto;
}

.classroom-workspace-dialog,
.english-cloze-dialog {
  width: min(1260px, calc(100vw - 34px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(21, 42, 70, 0.28);
  color: var(--ink);
}

.classroom-workspace-dialog {
  height: min(760px, calc(100dvh - 42px));
  overflow: hidden;
}

.classroom-workspace-dialog::backdrop,
.english-cloze-dialog::backdrop {
  background: rgba(21, 42, 70, 0.68);
  backdrop-filter: blur(7px);
}

.classroom-workspace-shell,
.english-cloze-shell {
  display: grid;
  min-height: min(760px, calc(100vh - 42px));
}

.classroom-workspace-shell {
  grid-template-rows: auto auto 1fr;
  height: 100%;
  min-height: 0;
}

.classroom-dialog-header,
.english-cloze-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 26px 30px 21px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.classroom-dialog-header h2,
.english-cloze-header h2 {
  margin: 7px 0 7px;
  font-family: var(--display);
  font-size: 30px;
}

.classroom-dialog-header p,
.english-cloze-header p {
  max-width: 790px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.classroom-workspace-toolbar {
  display: flex;
  align-items: end;
  gap: 14px;
  padding: 17px 30px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.classroom-workspace-toolbar label,
.english-cloze-options label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.classroom-workspace-toolbar select,
.classroom-workspace-toolbar input,
.english-cloze-options select,
.english-cloze-options input {
  min-width: 170px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  font-size: 15px;
}

.classroom-search {
  flex: 1;
}

.classroom-search input {
  width: 100%;
}

.classroom-workspace-toolbar > div {
  display: flex;
  gap: 8px;
}

.classroom-workspace-body {
  display: grid;
  grid-template-columns: 280px minmax(390px, 1fr) 280px;
  min-height: 0;
}

.classroom-list-pane,
.classroom-student-pane,
.classroom-detail-pane {
  min-width: 0;
  padding: 20px;
  overflow: auto;
}

.classroom-list-pane {
  border-right: 1px solid var(--line);
  background: #f2f5f8;
}

.classroom-detail-pane {
  border-left: 1px solid var(--line);
  background: #fffdf8;
}

.classroom-pane-heading {
  gap: 9px;
  min-height: 41px;
  margin-bottom: 13px;
}

.classroom-pane-heading strong {
  display: block;
  font-size: 17px;
}

.classroom-pane-heading small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.classroom-class-list {
  display: grid;
  gap: 9px;
}

.classroom-class-card {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.classroom-class-card > div {
  display: grid;
  gap: 7px;
}

.classroom-class-card strong {
  font-size: 14px;
}

.classroom-class-card small,
.classroom-class-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.classroom-class-card em {
  color: var(--jade);
}

.classroom-class-card.is-active {
  border-color: var(--ink);
  box-shadow: 0 7px 16px rgba(21, 42, 70, 0.11);
  background: #fbfdff;
}

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

.classroom-exam-strip {
  margin: 0 0 14px;
  padding: 13px;
  border: 1px solid #ded5ec;
  border-radius: 14px;
  background: #faf7fd;
}

.classroom-exam-strip[hidden] {
  display: none;
}

.classroom-exam-strip-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.classroom-exam-strip-title strong {
  color: #3d1d58;
  font-size: 15px;
}

.classroom-exam-strip-title small {
  color: #746681;
  font-size: 12px;
}

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

.classroom-exam-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e5dff0;
  border-radius: 11px;
  background: #fff;
}

.classroom-exam-card span,
.classroom-exam-card small {
  color: #746681;
  font-size: 12px;
}

.classroom-exam-card strong {
  color: #3d1d58;
  font-size: 18px;
}

.classroom-exam-card.math { border-top: 3px solid #8b6ac2; }
.classroom-exam-card.chinese { border-top: 3px solid #c78c66; }
.classroom-exam-card.english { border-top: 3px solid #5b9f9a; }

.classroom-student-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.9fr) minmax(150px, 1fr) minmax(100px, 0.75fr) 80px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.classroom-student-row:hover,
.classroom-student-row.is-active {
  border-color: rgba(85, 119, 170, 0.55);
  background: #f4f8fc;
}

.classroom-student-row .student-name {
  gap: 8px;
}

.classroom-student-row .student-name i {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.classroom-student-row > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.classroom-student-row > span:nth-child(2) b {
  font-size: 13px;
}

.classroom-student-row > span:nth-child(2) small {
  color: var(--muted);
  font-size: 12px;
}

.classroom-progress {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 12px;
}

.classroom-progress i {
  width: 50px;
  height: 6px;
  border-radius: 99px;
  background: #e4ebf1;
  overflow: hidden;
}

.classroom-progress i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--jade);
}

.classroom-student-row > span:last-child {
  justify-content: flex-end;
  color: var(--blue);
  font-size: 12px;
}

.student-detail-identity {
  justify-content: flex-start;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line-soft);
}

.student-detail-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: var(--ink);
  font-family: var(--display);
  font-size: 22px;
}

.student-detail-identity h3 {
  margin: 4px 0 3px;
  font-size: 21px;
}

.student-detail-identity p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.student-detail-focus {
  display: grid;
  gap: 6px;
  justify-items: start;
  margin: 18px 0;
  padding: 14px;
  border-radius: 12px;
  background: #f8f1df;
}

.student-detail-focus span,
.student-detail-focus small {
  color: #956d27;
  font-size: 12px;
}

.student-detail-focus strong {
  font-size: 16px;
}

.student-detail-exams {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.student-exam-record {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}

.student-exam-record.has-paper {
  border-color: #e5c5c1;
  background: linear-gradient(145deg, #fff 0 72%, #fff3f0 100%);
}

.student-exam-record > div {
  display: grid;
  gap: 4px;
}

.student-exam-record > div > span,
.student-exam-record p,
.student-exam-record strong small,
.paper-missing-note {
  color: var(--muted);
  font-size: 12px;
}

.student-exam-record strong {
  color: var(--ink);
  font-family: var(--utility);
  font-size: 21px;
}

.student-exam-record p {
  margin: 0;
  line-height: 1.5;
}

.paper-view-action {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 9px;
  align-items: center;
  width: 100%;
  padding: 9px;
  border: 1px solid #e4c2bd;
  border-radius: 10px;
  color: #71322f;
  background: #fff6f3;
  text-align: left;
}

.paper-view-action:hover,
.paper-view-action:focus-visible {
  border-color: #b6534b;
  background: #ffefeb;
}

.paper-view-action > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #c45f57;
  border-radius: 50%;
  color: #a43f39;
  font-family: var(--display);
  font-size: 17px;
  font-style: normal;
  transform: rotate(-7deg);
}

.paper-view-action > span {
  display: grid;
  gap: 2px;
  font-size: 13px;
  font-weight: 800;
}

.paper-view-action small {
  color: #95645f;
  font-size: 11px;
  font-weight: 600;
}

.paper-view-action > b {
  font-size: 17px;
}

.student-detail-subjects {
  display: grid;
  gap: 9px;
  padding: 17px 0;
}

.student-detail-subjects summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.student-detail-subjects > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13px;
}

.student-detail-subjects > div strong {
  color: var(--ink);
  font-family: var(--utility);
}

.classroom-detail-pane .dark-action.full {
  width: 100%;
  justify-content: center;
}

.classroom-detail-empty,
.classroom-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.classroom-workspace-shell {
  position: relative;
  overflow: hidden;
}

.class-settings-overlay[hidden] {
  display: none;
}

.class-settings-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  justify-items: end;
  min-height: 0;
  overflow: hidden;
}

.class-settings-scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(28, 24, 55, 0.42);
  backdrop-filter: blur(2px);
  cursor: default;
}

.class-settings-drawer {
  position: relative;
  z-index: 1;
  width: min(610px, 100%);
  height: 100%;
  min-height: 0;
  background: #fbfaff;
  box-shadow: -24px 0 64px rgba(42, 31, 82, 0.22);
  overflow: hidden;
  animation: class-settings-enter 180ms ease-out;
}

@keyframes class-settings-enter {
  from { transform: translateX(32px); opacity: 0.75; }
  to { transform: translateX(0); opacity: 1; }
}

.class-settings-drawer form {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  height: 100%;
  min-height: 0;
}

.class-settings-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 25px 28px 20px;
  border-bottom: 1px solid #e5e0f0;
  background: linear-gradient(140deg, #f4f0ff 0%, #fff 78%);
}

.class-settings-header h2 {
  margin: 4px 0 0;
  color: #2d185c;
  font-family: var(--display);
  font-size: 28px;
}

.class-settings-header p {
  max-width: 470px;
  margin: 8px 0 0;
  color: #6e6680;
  font-size: 13px;
  line-height: 1.6;
}

.class-settings-title-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.class-status-stamp {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border: 1px solid rgba(19, 145, 115, 0.28);
  border-radius: 999px;
  color: #08785e;
  background: #eaf8f3;
  font-size: 12px;
  font-weight: 800;
}

.class-status-stamp.is-completed {
  border-color: rgba(116, 92, 168, 0.25);
  color: #67499c;
  background: #f0ebfa;
}

.compact-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
}

.class-settings-scroll {
  padding: 8px 28px 32px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.class-settings-section {
  padding: 23px 0 25px;
  border-bottom: 1px solid #e8e3f0;
}

.class-settings-section:last-child {
  border-bottom: 0;
}

.class-settings-section-heading {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 17px;
}

.class-settings-section-heading > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #d9cff0;
  border-radius: 10px;
  color: #67449e;
  background: #f3effb;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
}

.class-settings-section-heading strong,
.class-settings-section-heading small {
  display: block;
}

.class-settings-section-heading strong {
  color: #2d185c;
  font-size: 16px;
}

.class-settings-section-heading small {
  margin-top: 2px;
  color: #81788f;
  font-size: 12px;
}

.class-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.class-settings-grid label,
.class-settings-add-student label,
.class-settings-score-field,
.class-settings-teachers > span {
  display: grid;
  gap: 7px;
  color: #655a76;
  font-size: 12px;
  font-weight: 800;
}

.class-settings-grid .full-field {
  grid-column: 1 / -1;
}

.class-settings-grid input,
.class-settings-grid select,
.class-settings-add-student input,
.class-settings-score-field input,
.class-settings-teachers input {
  width: 100%;
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #dcd5e8;
  border-radius: 10px;
  color: #2e2340;
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
}

.class-settings-grid input:focus,
.class-settings-grid select:focus,
.class-settings-add-student input:focus,
.class-settings-score-field input:focus,
.class-settings-teachers input:focus {
  outline: 3px solid rgba(116, 78, 174, 0.13);
  border-color: #8059b5;
}

.class-settings-subjects,
.class-settings-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
}

.class-settings-subjects legend,
.class-settings-choice-grid legend {
  width: 100%;
  margin-bottom: 7px;
  color: #655a76;
  font-size: 12px;
  font-weight: 800;
}

.class-settings-subjects label {
  position: relative;
  cursor: pointer;
}

.class-settings-subjects input {
  position: absolute;
  opacity: 0;
}

.class-settings-subjects span {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #dcd5e8;
  border-radius: 999px;
  color: #635574;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.class-settings-subjects input:checked + span {
  border-color: #7550aa;
  color: #4c287f;
  background: #eee7fa;
  box-shadow: inset 0 0 0 1px rgba(117, 80, 170, 0.1);
}

.class-settings-subjects input:focus-visible + span {
  outline: 3px solid rgba(116, 78, 174, 0.18);
}

.class-settings-teachers {
  margin-top: 16px;
}

#class-settings-teacher-assignments {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 9px;
}

#class-settings-teacher-assignments label {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 8px;
  color: #6d5d7b;
  font-size: 13px;
  font-weight: 800;
}

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

.class-settings-add-student button {
  min-height: 43px;
}

.class-settings-roster-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.class-settings-roster-actions .danger-text {
  margin-left: auto;
}

.danger-text {
  color: #a3424b;
}

#delete-schedule-entry[hidden] {
  display: none;
}

.class-settings-student-list {
  display: grid;
  max-height: 224px;
  border: 1px solid #e1dbea;
  border-radius: 12px;
  background: #fff;
  overflow: auto;
}

.class-settings-student-list > p {
  margin: 0;
  padding: 22px;
  color: #81788f;
  font-size: 13px;
  text-align: center;
}

.class-settings-student-row {
  display: grid;
  grid-template-columns: auto 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 7px 11px;
  border-bottom: 1px solid #eee9f3;
  cursor: pointer;
}

.class-settings-student-row:last-child {
  border-bottom: 0;
}

.class-settings-student-row:hover {
  background: #faf7ff;
}

.class-settings-student-row input {
  accent-color: #7147a3;
}

.class-settings-student-row i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: #68439a;
  background: #f0ebfa;
  font-style: normal;
  font-weight: 900;
}

.class-settings-student-row strong {
  min-width: 0;
  color: #342443;
  font-size: 13px;
}

.class-settings-student-row small {
  color: #8b8196;
  font-size: 11px;
}

.class-settings-score-field {
  width: min(220px, 100%);
}

.class-settings-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.class-settings-choice-grid label {
  position: relative;
  cursor: pointer;
}

.class-settings-choice-grid input {
  position: absolute;
  opacity: 0;
}

.class-settings-choice-grid label > span {
  display: grid;
  min-height: 78px;
  align-content: center;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid #ded7e9;
  border-radius: 12px;
  background: #fff;
}

.class-settings-choice-grid label strong,
.class-settings-choice-grid label small {
  display: block;
}

.class-settings-choice-grid label strong {
  color: #39264b;
  font-size: 13px;
}

.class-settings-choice-grid label small {
  color: #81778d;
  font-size: 11px;
  line-height: 1.45;
}

.class-settings-choice-grid input:checked + span {
  border-color: #7851ad;
  background: #f3eefb;
  box-shadow: inset 0 0 0 1px rgba(120, 81, 173, 0.12);
}

.class-settings-choice-grid input:focus-visible + span {
  outline: 3px solid rgba(116, 78, 174, 0.18);
}

.class-settings-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #f0d5d8;
  border-radius: 12px;
  background: #fff8f8;
}

.class-settings-danger-zone strong,
.class-settings-danger-zone small {
  display: block;
}

.class-settings-danger-zone strong {
  color: #8d343e;
  font-size: 13px;
}

.class-settings-danger-zone small {
  margin-top: 3px;
  color: #8b6b70;
  font-size: 11px;
  line-height: 1.45;
}

.danger-outline {
  flex: 0 0 auto;
  border-color: #dcaeb3;
  color: #9c3540;
  background: #fff;
}

.class-settings-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 28px;
  border-top: 1px solid #e2dceb;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -10px 24px rgba(60, 39, 88, 0.06);
}

.class-settings-footer > span {
  color: #82778e;
  font-size: 12px;
}

.class-settings-footer > div {
  display: flex;
  gap: 9px;
}

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

.exam-paper-dialog {
  width: min(1320px, calc(100vw - 28px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #f8f2ea;
  background: #2a222a;
  box-shadow: 0 32px 110px rgba(16, 11, 17, 0.55);
  overflow: hidden;
}

.exam-paper-dialog::backdrop {
  background: rgba(23, 15, 26, 0.82);
  backdrop-filter: blur(9px);
}

.exam-paper-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: min(900px, calc(100vh - 28px));
}

.exam-paper-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 28px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: #241c24;
}

.exam-paper-header .eyebrow,
.exam-paper-header p {
  color: #d6c6d2;
}

.exam-paper-header h2 {
  margin: 5px 0 4px;
  color: #fffaf4;
  font-family: var(--display);
  font-size: 28px;
}

.exam-paper-header p {
  margin: 0;
  font-size: 13px;
}

.exam-paper-header .dialog-close {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
}

.exam-paper-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 13px 28px;
  color: #3c2d37;
  background:
    linear-gradient(rgba(110, 68, 80, 0.035) 1px, transparent 1px),
    #f5efe5;
  background-size: 100% 24px;
}

.exam-paper-score-stamp {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  min-width: 132px;
  padding: 7px 13px;
  border: 2px solid #b34d46;
  border-radius: 8px;
  color: #9e3f39;
  background: rgba(255, 255, 255, 0.5);
  transform: rotate(-1.5deg);
}

.exam-paper-score-stamp span {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.exam-paper-score-stamp strong {
  font-family: var(--utility);
  font-size: 28px;
}

.exam-paper-score-stamp small {
  font-family: var(--utility);
  font-size: 12px;
}

.exam-paper-status {
  display: grid;
  gap: 3px;
}

.exam-paper-status span {
  color: #9e3f39;
  font-size: 12px;
  font-weight: 800;
}

.exam-paper-status strong {
  font-size: 16px;
}

.exam-paper-status small {
  color: #74636d;
  font-size: 12px;
}

.exam-paper-navigation {
  display: flex;
  align-items: center;
  gap: 9px;
}

.exam-paper-navigation span {
  min-width: 52px;
  color: #584650;
  font-family: var(--utility);
  font-size: 12px;
  text-align: center;
}

.exam-paper-body {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  min-height: 0;
  background:
    radial-gradient(circle at 60% 0%, rgba(174, 124, 143, 0.12), transparent 38%),
    #2a222a;
}

.exam-paper-filmstrip {
  display: grid;
  align-content: start;
  gap: 11px;
  padding: 17px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  overflow-y: auto;
}

.exam-paper-filmstrip > p {
  color: #c9bac5;
  font-size: 12px;
}

.exam-paper-filmstrip button {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #dfd2dc;
  background: rgba(255, 255, 255, 0.055);
}

.exam-paper-filmstrip button.is-active {
  border-color: #e07a70;
  box-shadow: 0 0 0 2px rgba(224, 122, 112, 0.16);
  background: rgba(224, 122, 112, 0.12);
}

.exam-paper-filmstrip button > span {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 2px 5px;
  border-radius: 4px;
  color: #fff;
  background: rgba(34, 24, 34, 0.76);
  font-family: var(--utility);
  font-size: 10px;
}

.exam-paper-filmstrip img {
  width: 100%;
  aspect-ratio: 0.72;
  object-fit: cover;
  object-position: top;
  border-radius: 5px;
  background: #efe8dc;
}

.exam-paper-filmstrip small {
  font-size: 10px;
}

.exam-paper-canvas {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  padding: 20px 24px;
  overflow: auto;
}

.exam-paper-canvas figure {
  display: grid;
  gap: 8px;
  margin: 0;
}

.exam-paper-canvas figure > img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 245px);
  border-radius: 3px;
  box-shadow: 0 24px 55px rgba(8, 5, 9, 0.42);
  background: #f5efe5;
  object-fit: contain;
}

.exam-paper-canvas figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #d8cbd4;
  font-size: 12px;
}

.exam-paper-canvas figcaption small {
  color: #aa99a5;
}

.exam-paper-loading {
  display: grid;
  gap: 8px;
  place-items: center;
  min-height: 240px;
  color: #d8cbd4;
  font-size: 14px;
  text-align: center;
}

.exam-paper-loading.is-error strong {
  color: #ffb1a9;
}

.exam-paper-loading p {
  margin: 0;
  color: #bbaab6;
}

.english-cloze-shell {
  grid-template-rows: auto 1fr;
}

.english-cloze-body {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(420px, 1.1fr);
  gap: 20px;
  padding: 24px 30px 30px;
  overflow: auto;
}

.english-cloze-input,
.english-cloze-preview {
  display: grid;
  align-content: start;
  gap: 13px;
}

.cloze-section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
}

.cloze-section-title strong {
  font-family: var(--display);
  font-size: 20px;
}

.cloze-section-title small {
  color: var(--muted);
  font-size: 12px;
}

.english-cloze-input textarea {
  width: 100%;
  min-height: 230px;
  padding: 14px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 16px;
  line-height: 1.7;
}

.english-cloze-options {
  display: flex;
  align-items: end;
  gap: 10px;
}

.english-cloze-options label:first-child {
  flex: 1;
}

.english-cloze-options input {
  width: 80px;
  min-width: 80px;
}

.english-preview-paper {
  min-height: 370px;
  padding: 19px;
  border: 1px solid #d7e0e8;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(21, 42, 70, 0.06);
}

.english-preview-empty {
  display: grid;
  place-items: center;
  min-height: 270px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.english-preview-meta {
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line-soft);
}

.english-preview-meta span {
  padding: 4px 8px;
  border-radius: 7px;
  color: #4b7098;
  background: #eaf1f7;
  font-size: 12px;
}

.english-preview-paper ol {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px 16px;
  margin: 15px 0;
  padding-left: 25px;
}

.english-preview-paper li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 3px 7px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f8fafc;
  font-size: 14px;
}

.english-preview-paper li span {
  grid-row: span 2;
  color: var(--muted);
  font-family: var(--utility);
  font-size: 12px;
}

.english-preview-paper li b {
  font-family: var(--utility);
  letter-spacing: 0.08em;
}

.english-preview-paper li em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.english-preview-answer {
  align-items: start;
  gap: 8px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.english-preview-answer b {
  color: var(--ink-soft);
  font-family: var(--utility);
  font-weight: 500;
}

.english-cloze-publish {
  gap: 12px;
  padding-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.english-cloze-publish strong {
  color: var(--ink);
  font-family: var(--utility);
}

/* 六年级数学入门测：先看覆盖，再生成草稿。 */
.math-placement-dialog {
  width: min(1260px, calc(100vw - 34px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 90px rgba(67, 24, 95, 0.3);
}

.math-placement-dialog::backdrop {
  background: rgba(38, 18, 55, 0.68);
  backdrop-filter: blur(7px);
}

.math-placement-shell {
  display: grid;
  min-height: min(820px, calc(100vh - 40px));
  grid-template-rows: auto auto 1fr auto;
}

.math-placement-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 27px 31px 22px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, #fff, #f8f3fb);
}

.math-placement-header h2 {
  margin: 7px 0 8px;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 34px);
}

.math-placement-header p {
  max-width: 780px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.math-placement-steps {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: center;
  gap: 12px;
  padding: 17px 31px;
  border-bottom: 1px solid var(--line-soft);
  background: #fff;
}

.math-placement-steps > div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
}

.math-placement-steps > div.is-active {
  color: var(--ink);
}

.math-placement-steps i {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand-soft);
  font-family: var(--utility);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.math-placement-steps .is-active i {
  background: var(--brand-action);
  box-shadow: 0 0 0 5px var(--brand-pale);
}

.math-placement-steps span {
  display: grid;
  gap: 2px;
}

.math-placement-steps strong {
  font-size: 14px;
}

.math-placement-steps small {
  color: var(--muted);
  font-size: 12px;
}

.math-placement-steps > b {
  height: 1px;
  background: var(--line);
}

.math-placement-body {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  gap: 20px;
  min-height: 0;
  padding: 23px 31px;
  overflow: auto;
}

.math-placement-config,
.math-placement-preview {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: #fff;
}

.math-placement-preview {
  display: grid;
  align-content: start;
  gap: 15px;
  background: linear-gradient(145deg, #fff, #fbf8fd);
}

.placement-section-heading,
.placement-preview-heading,
.placement-module-top,
.placement-preview-foot,
.math-placement-footer,
.placement-score-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.placement-section-heading h3,
.placement-preview-heading h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 21px;
}

.placement-draft-status,
.placement-total-label {
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--muted);
  background: var(--brand-pale);
  font-size: 12px;
  font-weight: 800;
}

.placement-draft-status.is-ready {
  color: var(--jade);
  background: var(--jade-soft);
}

.math-placement-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
  margin-top: 19px;
}

.math-placement-form label {
  display: grid;
  gap: 6px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.math-placement-form select {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
}

.math-placement-form input[type="date"] {
  width: 100%;
  min-height: 43px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 13px;
}

.math-placement-form .span-2 {
  grid-column: 1 / -1;
}

.placement-source-card {
  display: grid;
  gap: 6px;
  margin: 18px 0 21px;
  padding: 13px 14px;
  border: 1px solid #ddd0e9;
  border-radius: 12px;
  background: #fbf8fd;
}

.placement-source-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.placement-source-card span {
  color: var(--brand-action);
  font-size: 12px;
  font-weight: 800;
}

.placement-source-card strong {
  font-size: 13px;
}

.placement-source-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.compact-heading {
  margin-bottom: 13px;
}

.math-placement-coverage {
  display: grid;
  gap: 9px;
}

.placement-module-card {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
}

.placement-module-top > div {
  display: grid;
  flex: 1;
  gap: 3px;
}

.placement-module-top strong {
  font-size: 13px;
}

.placement-module-top small,
.placement-module-card p {
  color: var(--muted);
  font-size: 11px;
}

.placement-sample-card {
  background: linear-gradient(135deg, #fff 0%, #fbf8fd 100%);
}

.placement-unavailable {
  border-color: #eadbb5;
  background: #fffcf3;
}

.placement-empty-state {
  display: grid;
  gap: 7px;
  padding: 22px 16px;
  border: 1px dashed #d9c9e7;
  border-radius: 12px;
  color: var(--muted);
  background: #fbf8fd;
  text-align: center;
}

.placement-empty-state strong {
  color: var(--ink);
  font-size: 13px;
}

.placement-empty-state span {
  font-size: 12px;
  line-height: 1.6;
}

.placement-module-top b {
  color: var(--brand-action);
  font-family: var(--utility);
  font-size: 12px;
}

.placement-module-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-action);
  box-shadow: 0 0 0 4px var(--brand-pale);
}

.placement-module-dot.rose { background: #c26d90; box-shadow: 0 0 0 4px #f8e9ef; }
.placement-module-dot.blue { background: #687eb5; box-shadow: 0 0 0 4px #e9eef9; }
.placement-module-dot.orange { background: #c28143; box-shadow: 0 0 0 4px #fbf0e3; }
.placement-module-dot.green { background: #3e9277; box-shadow: 0 0 0 4px #e6f4ef; }
.placement-module-dot.gold { background: #b9924d; box-shadow: 0 0 0 4px #fbf2df; }

.placement-module-bar {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: #eeeaf3;
}

.placement-module-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-soft), var(--brand-action));
}

.placement-module-card p {
  margin: 0;
  line-height: 1.5;
}

.placement-preview-heading {
  align-items: flex-start;
}

.placement-count-chip {
  padding: 6px 10px;
  border-radius: 99px;
  color: var(--brand-action);
  background: var(--brand-pale);
  font-family: var(--utility);
  font-size: 12px;
  font-weight: 800;
}

.placement-score-card {
  align-items: stretch;
  gap: 9px;
}

.placement-score-card > div {
  display: grid;
  flex: 1;
  gap: 3px;
  padding: 12px;
  border-radius: 11px;
  background: #f7f1fa;
}

.placement-score-card > div:last-child {
  background: #f3f7fb;
}

.placement-score-card span,
.placement-score-card small {
  color: var(--muted);
  font-size: 11px;
}

.placement-score-card strong {
  color: var(--brand-action);
  font-family: var(--utility);
  font-size: 22px;
}

.math-placement-question-list {
  display: grid;
  max-height: 440px;
  gap: 7px;
  overflow: auto;
  padding-right: 4px;
}

.placement-question-row {
  display: grid;
  grid-template-columns: 31px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: #fff;
}

.placement-question-row > span {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 7px;
  color: var(--brand-action);
  background: var(--brand-pale);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 800;
}

.placement-question-row > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.placement-question-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.placement-question-row small {
  color: var(--muted);
  font-size: 10px;
}

.placement-question-row em {
  padding: 4px 7px;
  border-radius: 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.placement-level-basic { color: var(--brand-action); background: var(--brand-pale); }
.placement-level-transfer { color: #7a5a24; background: var(--amber-soft); }

.placement-preview-foot {
  align-items: flex-start;
  padding-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.placement-preview-copy {
  display: grid;
  gap: 3px;
  line-height: 1.45;
}

.placement-preview-copy small {
  color: var(--jade);
  font-size: 10px;
  font-weight: 750;
}

.placement-preview-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
}

.placement-preview-actions a {
  text-decoration: none;
}

#math-placement-preview-action:not(:disabled) {
  border-color: var(--jade);
  color: #fff;
  background: var(--jade);
  box-shadow: 0 7px 18px rgba(19, 139, 114, 0.18);
}

#math-placement-preview-action:not(:disabled):hover {
  transform: translateY(-1px);
  background: #0f7863;
}

.math-placement-footer {
  padding: 16px 31px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.math-placement-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
}

.math-placement-footer > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--jade);
}

.math-placement-footer > div {
  display: flex;
  gap: 9px;
}

@media (max-width: 900px) {
  .math-placement-body {
    grid-template-columns: 1fr;
  }

  .math-placement-question-list {
    max-height: 300px;
  }
}

@media (max-width: 620px) {
  .math-placement-header,
  .math-placement-body,
  .math-placement-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .math-placement-steps {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 13px 18px;
  }

  .math-placement-steps > b {
    display: none;
  }

  .math-placement-form {
    grid-template-columns: 1fr;
  }

  .placement-source-card > div,
  .math-placement-footer,
  .placement-preview-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .placement-preview-actions {
    width: 100%;
  }

  .placement-preview-actions > * {
    flex: 1;
    justify-content: center;
  }

  .math-placement-footer > div {
    width: 100%;
  }

  .math-placement-footer > div button {
    flex: 1;
  }
}

@media (max-width: 1120px) {
  .subject-context-bar {
    grid-template-columns: 1fr auto;
  }

  .subject-context-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .classroom-workspace-body {
    grid-template-columns: 230px minmax(350px, 1fr);
  }

  .classroom-detail-pane {
    display: block;
    grid-column: 1 / -1;
    max-height: 340px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 820px) {
  .subject-focus-panel,
  .english-cloze-body {
    grid-template-columns: 1fr;
  }

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

  .classroom-workspace-toolbar {
    flex-wrap: wrap;
  }

  .classroom-search {
    min-width: 220px;
  }

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

  .classroom-detail-pane {
    grid-column: 1;
    max-height: none;
  }

  .exam-paper-summary {
    grid-template-columns: auto 1fr;
  }

  .exam-paper-navigation {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .exam-paper-body {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .classroom-list-pane {
    max-height: 220px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .classroom-class-list {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
  }

  .classroom-student-pane {
    min-height: 350px;
  }
}

@media (max-width: 620px) {
  .subject-context-bar {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .subject-switcher {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .subject-switcher button {
    justify-content: center;
    padding: 0 7px;
  }

  .subject-signal {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .subject-signal ol {
    flex-wrap: wrap;
  }

  .subject-context-actions {
    width: 100%;
  }

  .subject-context-actions button {
    flex: 1;
    justify-content: center;
  }

  .subject-focus-panel {
    padding: 20px;
  }

  .subject-focus-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .subject-focus-metrics > div {
    min-height: 100px;
    padding: 10px;
  }

  .subject-focus-metrics strong {
    font-size: 23px;
  }

  .classroom-dialog-header,
  .english-cloze-header,
  .classroom-workspace-toolbar,
  .english-cloze-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .classroom-dialog-header h2,
  .english-cloze-header h2 {
    font-size: 25px;
  }

  .classroom-student-row {
    grid-template-columns: minmax(130px, 1fr) minmax(130px, 1fr) 80px;
    gap: 8px;
  }

  .classroom-student-row .classroom-progress {
    display: none;
  }

  .classroom-student-row > span:last-child {
    grid-column: 3;
  }

  .classroom-exam-cards {
    grid-template-columns: 1fr;
  }

  .class-settings-header,
  .class-settings-scroll,
  .class-settings-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .class-settings-grid,
  #class-settings-teacher-assignments,
  .class-settings-choice-grid {
    grid-template-columns: 1fr;
  }

  .class-settings-choice-grid label > span {
    min-height: 68px;
  }

  .class-settings-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .class-settings-footer > div,
  .class-settings-footer button {
    flex: 1;
  }

  .class-settings-danger-zone {
    align-items: stretch;
    flex-direction: column;
  }

  .exam-paper-shell {
    height: calc(100vh - 14px);
  }

  .exam-paper-header,
  .exam-paper-summary {
    padding-left: 16px;
    padding-right: 16px;
  }

  .exam-paper-status small {
    display: none;
  }

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

  .exam-paper-filmstrip {
    display: flex;
    max-height: 116px;
    padding: 10px 14px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
  }

  .exam-paper-filmstrip button {
    flex: 0 0 68px;
  }

  .exam-paper-filmstrip img {
    aspect-ratio: 0.92;
  }

  .exam-paper-filmstrip small {
    display: none;
  }

  .exam-paper-canvas {
    padding: 14px;
  }

  .exam-paper-canvas figure > img {
    max-height: calc(100vh - 360px);
  }

  .english-cloze-options {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .english-cloze-options label:first-child {
    min-width: 100%;
  }

  .english-preview-paper ol {
    grid-template-columns: 1fr;
  }
}

/* High-visibility pass for reports and review workspaces. These screens carry
   teaching decisions, so their evidence must be readable at a glance. */
.shared-report-tools > span,
.shared-report-tools button,
.shared-report-brand strong,
.shared-report-brand small,
.shared-report-edition,
.shared-report-title > span,
.shared-report-proof span,
.shared-report-proof small,
.shared-section-label,
.shared-focus-item small,
.shared-cause-list > div,
.shared-report-note small,
.shared-report-receipt {
  font-size: 15px;
}

.shared-report-tools button {
  min-height: 44px;
}

.shared-report-title p,
.shared-report-note p {
  font-size: 18px;
  line-height: 1.75;
}

.shared-report-proof strong {
  font-size: 32px;
}

.shared-focus-item strong {
  font-size: 18px;
}

.shared-focus-item > b {
  font-size: 22px;
}

.shared-cause-list i {
  height: 8px;
}

.shared-report-note > span {
  font-size: 22px;
}

.scan-workspace-header h2,
.report-studio-header h2 {
  font-size: 32px;
}

.scan-workspace-header p,
.report-studio-header p,
.scan-boundary-banner p,
.report-studio-toolbar,
.scan-column-heading small,
.report-studio-toolbar > label,
.scan-intake-card small,
.scan-empty-paper p,
.scan-empty-state {
  font-size: 15px;
  line-height: 1.6;
}

.scan-upload-strip > label:not(.scan-file-picker),
.scan-question-card label,
.report-studio-toolbar > label {
  font-size: 15px;
}

.scan-upload-strip input,
.scan-upload-strip select,
.scan-question-card textarea,
.scan-question-card input,
.scan-question-card select,
.report-studio-toolbar select {
  min-height: 48px;
  font-size: 16px;
}

.scan-file-picker {
  min-height: 64px;
}

.scan-file-picker span,
.scan-file-picker small,
.scan-intake-card strong,
.scan-status,
.confidence-chip,
.scan-question-card header strong,
.scan-empty-paper strong {
  font-size: 16px;
}

.scan-boundary-banner span,
.scan-review-count {
  font-size: 15px;
}

.scan-column-heading strong {
  font-size: 20px;
}

.scan-question-card {
  gap: 13px;
  padding: 18px;
}

.scan-question-actions button,
.scan-upload-action,
.report-studio-toolbar button {
  min-height: 46px;
  font-size: 16px;
}

.report-studio-dialog .report-formula-note,
.workflow-dialog .workflow-step-button small,
.workflow-dialog .workflow-save-state small {
  font-size: 15px;
}

/* Raise specificity for compact labels that are intentionally styled in the
   dialog's earlier responsive rules. They must stay readable in the review
   workspace just like the main headings and fields. */
.scan-workspace-dialog .scan-column-heading small,
.scan-workspace-dialog .scan-status,
.scan-workspace-dialog .scan-intake-card small,
.scan-workspace-dialog .scan-empty-paper p,
.scan-workspace-dialog .scan-empty-state,
.report-studio-dialog .report-formula-note,
.workflow-dialog .workflow-step-button small,
.workflow-dialog .workflow-save-state small {
  font-size: 15px;
  line-height: 1.6;
}

.scan-workspace-dialog .scan-boundary-banner span,
.scan-workspace-dialog .scan-review-count {
  font-size: 15px;
}

@media (max-width: 760px) {
  .shared-report-title p,
  .shared-report-note p,
  .scan-workspace-header p,
  .report-studio-header p,
  .scan-boundary-banner p,
  .scan-empty-state {
    font-size: 16px;
  }

  .shared-report-proof strong {
    font-size: 28px;
  }

  .scan-workspace-header h2,
  .report-studio-header h2 {
    font-size: 28px;
  }
}

/* Responsive corrections kept last so older prototype breakpoints cannot shrink the new layout. */
@media (max-width: 760px) {
  .teacher-stage.is-visible {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  .teacher-main {
    width: 100%;
    min-width: 0;
    padding: 20px 14px 45px;
  }

  .teacher-stage button,
  .student-stage button,
  .mini-app button {
    font-size: 15px;
  }

  .teacher-stage p,
  .mini-app p {
    font-size: 16px;
  }

  .subject-context-bar,
  .subject-focus-panel,
  .dashboard-grid {
    min-width: 0;
  }

  .student-stage,
  .phone-wrap,
  .phone-frame,
  .phone-status,
  .mini-app,
  .mini-content,
  .mini-view {
    width: 100%;
    max-width: none;
    min-width: 0;
  }

  .teacher-priority-row {
    scrollbar-width: none;
  }

  .teacher-priority-row::-webkit-scrollbar {
    display: none;
  }
}

/* 2026 银河教育紫色品牌与可用性改造（最终覆盖层） */
body {
  background:
    radial-gradient(circle at 88% 8%, rgba(155, 120, 180, 0.1), transparent 28%),
    linear-gradient(rgba(67, 24, 95, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67, 24, 95, 0.022) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 32px 32px, 32px 32px, auto;
}

button:focus-visible,
a:focus-visible {
  outline-color: rgba(101, 54, 138, 0.42);
}

.prototype-header {
  border-bottom-color: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 18% -60%, rgba(255, 255, 255, 0.14), transparent 38%),
    linear-gradient(105deg, var(--brand-strong), var(--brand));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(50, 16, 71, 0.16);
}

.galaxy-logo {
  display: block;
  width: auto;
  object-fit: contain;
}

.galaxy-logo-header {
  height: 52px;
}

.brand-lockup {
  gap: 14px;
}

.brand-service-name {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  letter-spacing: 0.08em;
}

.prototype-header .role-switch {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.11);
}

.prototype-header .role-button {
  min-height: 42px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
}

.prototype-header .role-button.is-active {
  background: var(--white);
  color: var(--brand);
  box-shadow: 0 6px 14px rgba(32, 10, 45, 0.16);
}

.prototype-header .prototype-note {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.prototype-header .session-chip {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.prototype-header .session-chip small {
  color: rgba(255, 255, 255, 0.58);
}

.auth-story {
  background:
    radial-gradient(circle at 78% 82%, rgba(201, 174, 219, 0.2), transparent 27%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(145deg, var(--brand-strong), var(--brand));
}

.auth-brand {
  display: grid;
  gap: 4px;
}

.galaxy-logo-auth {
  width: 236px;
  max-height: 90px;
}

.auth-brand > span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 14px;
  letter-spacing: 0.24em;
}

.teacher-stage {
  background: #f4f0f6;
}

.teacher-sidebar {
  background:
    radial-gradient(circle at 24px 110px, rgba(255, 255, 255, 0.1) 1.5px, transparent 2px),
    radial-gradient(circle at 175px 205px, rgba(255, 255, 255, 0.08) 1px, transparent 1.5px),
    linear-gradient(180deg, #7a5a94, #604178);
  background-size: 135px 160px, 190px 210px, auto;
  box-shadow: 12px 0 30px rgba(71, 44, 87, 0.14);
}

.sidebar-brand {
  display: grid;
  gap: 2px;
  padding: 0 7px 28px;
}

.galaxy-logo-sidebar {
  width: 164px;
  max-height: 68px;
}

.sidebar-brand > span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 13px;
  letter-spacing: 0.16em;
}

.teacher-nav {
  gap: 8px;
}

.teacher-nav-item {
  min-height: 48px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 15px;
}

.teacher-nav-item.is-active {
  background: rgba(255, 255, 255, 0.19);
  box-shadow: inset 3px 0 #d7bce8;
}

.sidebar-foot strong {
  font-size: 15px;
}

.sidebar-foot small,
.nav-badge {
  font-size: 13px;
}

.teacher-main {
  max-width: 1500px;
  padding-top: 30px;
}

.teacher-header {
  align-items: center;
  margin-bottom: 18px;
}

.teacher-header h1 {
  color: #2f1d37;
  font-size: clamp(30px, 3vw, 40px);
}

.teacher-header p {
  font-size: 16px;
}

.teacher-header-actions,
.subject-context-actions,
.subject-focus-actions,
.review-actions {
  flex-wrap: wrap;
}

.outline-action,
.dark-action,
.approve-action,
.full-outline-action,
.primary-action,
.secondary-action {
  min-height: 44px;
  padding-inline: 16px;
  font-size: 15px;
}

.dark-action {
  border-color: var(--brand-action);
  background: var(--brand-action);
}

.outline-action {
  border-color: #d4c7dc;
  background: var(--white);
}

.teacher-priority-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 18px;
}

.priority-card {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 18px 20px;
  border: 1px solid #ded4e4;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 26px rgba(67, 24, 95, 0.05);
}

.priority-card:hover {
  border-color: #bca4cd;
  transform: translateY(-1px);
}

.priority-card.is-urgent {
  border-color: #d6bce4;
  background: linear-gradient(135deg, #fff, var(--brand-pale));
}

.priority-card span,
.priority-card small {
  color: var(--muted);
  font-size: 14px;
}

.priority-card strong {
  color: #37203f;
  font-size: 19px;
}

body[data-teacher-subject="math"] { --subject-accent: #655eb2; --subject-pale: #efedf9; }
body[data-teacher-subject="chinese"] { --subject-accent: #94526f; --subject-pale: #f8edf2; }
body[data-teacher-subject="english"] { --subject-accent: #7650b6; --subject-pale: #f1ebfb; }
body[data-teacher-subject="physics"] { --subject-accent: #3f7690; --subject-pale: #eaf4f7; }
body[data-teacher-subject="chemistry"] { --subject-accent: #3d7967; --subject-pale: #eaf5f0; }

.subject-context-bar {
  border-color: #ded3e4;
  background: linear-gradient(115deg, #fff, var(--subject-pale, var(--brand-wash)));
  box-shadow: 0 12px 30px rgba(67, 24, 95, 0.06);
}

.subject-context-mark,
.subject-switcher button.is-active,
.subject-filter button.is-active {
  background: var(--subject-accent, var(--brand-action));
}

.subject-context-mark {
  box-shadow: 0 8px 18px color-mix(in srgb, var(--subject-accent, var(--brand-action)) 28%, transparent);
}

.subject-context-identity strong {
  font-size: 25px;
}

.subject-context-identity p,
.subject-switcher button {
  font-size: 15px;
}

.subject-switcher button {
  min-height: 42px;
}

.subject-focus-panel,
.subject-focus-panel[data-teacher-subject="chinese"],
.subject-focus-panel[data-teacher-subject="english"] {
  border-color: color-mix(in srgb, var(--subject-accent, var(--brand-action)) 20%, white);
  background: linear-gradient(135deg, #fff 15%, var(--subject-pale, var(--brand-wash)) 100%);
}

.subject-focus-panel::after,
.subject-focus-panel[data-teacher-subject="english"]::after {
  background: color-mix(in srgb, var(--subject-accent, var(--brand-action)) 10%, transparent);
}

.subject-focus-metrics > div {
  min-height: 130px;
  border-color: rgba(67, 24, 95, 0.11);
}

.workflow-strip {
  border-color: #ddd2e3;
  background: rgba(255, 255, 255, 0.82);
}

.workflow-item strong,
.workflow-item small {
  font-size: 14px;
}

.dashboard-grid {
  grid-template-columns: minmax(640px, 2fr) minmax(280px, 0.7fr);
  gap: 18px;
  margin-top: 18px;
}

.dashboard-card {
  border-color: #ded5e4;
  box-shadow: 0 12px 28px rgba(67, 24, 95, 0.04);
}

.attention-card,
.bank-card,
.student-table-card {
  padding: 24px;
}

.card-heading h2,
.table-toolbar h2 {
  font-size: 23px;
}

.review-question {
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
}

.question-index {
  width: 58px;
  height: 64px;
  border-radius: 15px;
  background: var(--subject-pale, var(--brand-pale));
  color: var(--subject-accent, var(--brand-action));
  font-size: 13px;
}

.question-index strong {
  font-size: 17px;
}

.review-tags span,
.teacher-stage .review-tags span {
  padding: 5px 8px;
  font-size: 14px;
}

.review-copy p {
  margin: 9px 0 5px;
  font-size: 16px;
}

.review-copy small,
.teacher-stage .review-copy small {
  font-size: 14px;
}

.outline-action.compact,
.approve-action {
  min-height: 42px;
  padding-inline: 13px;
  font-size: 14px;
}

.bank-card {
  background: var(--brand-wash);
}

.bank-card > p,
.teacher-stage .bank-card > p,
.bank-breakdown div,
.full-outline-action {
  font-size: 14px;
}

.student-table-card {
  margin-top: 18px;
}

.subject-filter button {
  min-width: 58px;
  min-height: 38px;
  font-size: 14px;
}

.student-row,
.teacher-stage .student-row,
.teacher-stage .student-row span {
  min-height: 64px;
  font-size: 15px;
}

.student-row.table-head,
.teacher-stage .student-row.table-head {
  min-height: 44px;
  font-size: 14px;
}

.student-name i {
  width: 36px;
  height: 36px;
  background: var(--subject-pale, var(--brand-pale));
  color: var(--subject-accent, var(--brand-action));
}

.classroom-summary-card {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.68);
}

.mini-app {
  background: var(--brand-wash);
}

.mini-header {
  border-bottom: 1px solid #eee6f2;
}

.avatar-button,
.focus-panel {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.12), transparent 25%),
    linear-gradient(145deg, var(--brand), var(--brand-strong));
}

.focus-panel {
  box-shadow: 0 15px 30px rgba(67, 24, 95, 0.2);
}

.route-signature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 21px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.route-signature span {
  color: #eadcf2;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.route-signature small {
  color: rgba(255, 255, 255, 0.56);
  font-size: 13px;
}

.mastery-route {
  margin-top: 17px;
}

.route-node > span {
  background: var(--brand);
}

.route-node.is-current > span {
  border-color: #d9b8e9;
  color: #efdafa;
  box-shadow: 0 0 0 4px rgba(217, 184, 233, 0.15);
}

.route-progress {
  background: linear-gradient(90deg, #9f74bb, #d1afe4);
}

.primary-action {
  min-height: 48px;
  color: var(--brand);
  font-size: 16px;
}

@media (max-width: 1180px) {
  .teacher-priority-row {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
    overflow-x: auto;
  }

  .subject-context-bar {
    grid-template-columns: 1fr auto;
  }

  .subject-context-actions {
    grid-column: 1 / -1;
  }

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

@media (max-width: 760px) {
  .prototype-header {
    min-height: 62px;
    padding: 10px 12px;
  }

  .prototype-header .brand-lockup,
  .prototype-header .prototype-note,
  .prototype-header .header-session {
    display: none;
  }

  .prototype-header .role-switch {
    width: 100%;
  }

  .prototype-header .role-button {
    min-height: 42px;
    font-size: 15px;
  }

  .student-stage {
    width: 100%;
    min-height: calc(100dvh - 62px);
    background: var(--brand-wash);
  }

  .phone-wrap {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .phone-frame {
    width: 100%;
    max-width: none;
    height: calc(100dvh - 62px);
    min-height: 660px;
    margin: 0;
    transform: none !important;
  }

  .phone-status,
  .mini-app,
  .mini-content,
  .mini-view {
    width: 100%;
    min-width: 0;
  }

  .mini-view {
    padding: 16px 16px 28px;
  }

  .mini-header {
    min-height: 86px;
    padding-inline: 17px;
  }

  .mini-header strong {
    font-size: 18px;
  }

  .focus-panel {
    padding: 20px 18px;
  }

  .focus-heading h2 {
    font-size: 27px;
  }

  .route-signature {
    align-items: flex-start;
    gap: 8px;
    flex-direction: column;
  }

  .mini-app .route-node strong,
  .mini-app .route-node small,
  .mini-app .panel-kicker,
  .mini-app .mini-kicker {
    font-size: 13px;
  }

  .teacher-stage.is-visible {
    min-height: calc(100dvh - 62px);
  }

  .teacher-main {
    min-width: 0;
    padding: 20px 14px 45px;
  }

  .teacher-header {
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
  }

  .teacher-header-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-header-actions .dark-action {
    grid-column: 1 / -1;
  }

  .teacher-priority-row {
    grid-template-columns: 82% 82% 82%;
    margin-inline: -14px;
    padding-inline: 14px;
    scroll-snap-type: x mandatory;
  }

  .priority-card {
    scroll-snap-align: start;
  }

  .subject-context-bar,
  .subject-focus-panel {
    display: grid;
    grid-template-columns: 1fr;
  }

  .subject-switcher {
    width: 100%;
  }

  .subject-switcher button {
    flex: 1;
    justify-content: center;
  }

  .workflow-strip {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .workflow-strip > i {
    display: none;
  }

  .subject-focus-metrics {
    grid-template-columns: repeat(3, minmax(125px, 1fr));
    overflow-x: auto;
  }

  .review-question {
    grid-template-columns: 50px minmax(0, 1fr);
  }

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

  .review-copy p {
    overflow: visible;
    white-space: normal;
  }

  .bank-card {
    display: none;
  }

  .table-toolbar {
    grid-template-columns: 1fr;
  }

  .student-table {
    border: 0;
    overflow: visible;
  }

  .student-row.table-head {
    display: none;
  }

  .student-row,
  .teacher-stage .student-row {
    grid-template-columns: 1.2fr 1fr;
    gap: 10px;
    margin-top: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
  }

  .student-row > button {
    position: absolute;
    right: 22px;
  }

  .classroom-summary-card {
    display: none;
  }

  .workflow-dialog,
  .scan-workspace-dialog,
  .report-studio-dialog,
  .classroom-workspace-dialog,
  .english-cloze-dialog {
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }

  .workflow-workspace,
  .workflow-main {
    min-width: 0;
  }
}

/* Unified high-visibility type scale for every teacher/student workspace. */
.auth-gate,
.student-stage,
.teacher-stage,
.mini-app,
.bank-workspace-dialog,
.scan-workspace-dialog,
.report-studio-dialog,
.workflow-dialog,
.score-import-dialog,
.shared-report-root {
  font-size: 18px;
}

.auth-gate p,
.student-stage p,
.teacher-stage p,
.mini-app p,
.bank-workspace-dialog p,
.scan-workspace-dialog p,
.report-studio-dialog p,
.workflow-dialog p,
.score-import-dialog p,
.shared-report-root p {
  font-size: 18px;
  line-height: 1.7;
}

.auth-gate small,
.student-stage small,
.teacher-stage small,
.mini-app small,
.bank-workspace-dialog small,
.scan-workspace-dialog small,
.report-studio-dialog small,
.workflow-dialog small,
.score-import-dialog small,
.shared-report-root small {
  font-size: 15px;
  line-height: 1.45;
}

.auth-gate button,
.student-stage button,
.teacher-stage button,
.bank-workspace-dialog button,
.scan-workspace-dialog button,
.report-studio-dialog button,
.workflow-dialog button,
.score-import-dialog button,
.shared-report-root button {
  font-size: 17px;
}

.auth-gate label,
.teacher-stage label,
.bank-workspace-dialog label,
.scan-workspace-dialog label,
.report-studio-dialog label,
.workflow-dialog label,
.score-import-dialog label,
.teacher-stage input,
.teacher-stage select,
.teacher-stage textarea,
.bank-workspace-dialog input,
.bank-workspace-dialog select,
.bank-workspace-dialog textarea,
.scan-workspace-dialog input,
.scan-workspace-dialog select,
.scan-workspace-dialog textarea,
.report-studio-dialog input,
.report-studio-dialog select,
.report-studio-dialog textarea,
.workflow-dialog input,
.workflow-dialog select,
.workflow-dialog textarea,
.score-import-dialog input,
.score-import-dialog select,
.score-import-dialog textarea {
  font-size: 17px;
}

.mini-app .mini-kicker,
.mini-app .panel-kicker,
.mini-app .focus-status,
.mini-app .route-node strong,
.mini-app .route-node small,
.mini-app .weakness-copy small,
.mini-app .month-glance,
.mini-app .practice-topline,
.mini-app .question-meta,
.mini-app .question-tip,
.mini-app .answer-option,
.mini-app .bottom-nav,
.mini-app .student-task-card span,
.mini-app .student-task-card strong,
.mini-app .student-task-card small,
.mini-app .student-task-card li {
  font-size: 16px;
}

.mini-app .weakness-copy strong,
.mini-app .student-task-card h3,
.mini-app .student-task-card h4 {
  font-size: 19px;
}

.workflow-dialog .workflow-rail-brand strong {
  font-size: 19px;
}

.workflow-dialog .workflow-rail-brand small {
  font-size: 14px;
}

.workflow-dialog .workflow-step-button {
  min-height: 70px;
}

.workflow-dialog .workflow-step-button > span {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.workflow-dialog .workflow-step-button strong,
.workflow-dialog .workflow-save-state strong {
  font-size: 16px;
}

.workflow-dialog .workflow-step-button small,
.workflow-dialog .workflow-save-state small {
  font-size: 14px;
}

.workflow-dialog-header h2 {
  font-size: 34px;
  line-height: 1.25;
}

.workflow-dialog-header .eyebrow {
  font-size: 14px;
}

.workflow-dialog-header p {
  font-size: 17px;
  line-height: 1.65;
}

.workflow-dialog .workflow-page {
  padding: 28px 30px 34px;
}

.workflow-dialog .field > span,
.workflow-dialog .affected-students > span {
  font-size: 15px;
}

.workflow-dialog .field input,
.workflow-dialog .field select,
.workflow-dialog .diagnosis-fields .field input,
.workflow-dialog .diagnosis-fields .field select {
  min-height: 48px;
  height: 48px;
  font-size: 17px;
}

.workflow-dialog .paper-intake strong {
  font-size: 17px;
}

.workflow-dialog .paper-intake p,
.workflow-dialog .paper-demo-action,
.workflow-dialog .honesty-note p {
  font-size: 16px;
  line-height: 1.65;
}

.workflow-dialog .honesty-note > span {
  font-size: 14px;
}

.workflow-dialog .entry-toolbar h3,
.workflow-dialog .diagnosis-intro h3,
.workflow-dialog .publish-heading h3 {
  font-size: 26px;
  line-height: 1.3;
}

.workflow-dialog .entry-toolbar .eyebrow,
.workflow-dialog .diagnosis-intro .eyebrow,
.workflow-dialog .publish-heading .eyebrow,
.workflow-dialog .entry-legend,
.workflow-dialog .entry-summary,
.workflow-dialog .diagnosis-count {
  font-size: 15px;
}

.workflow-dialog .score-head,
.workflow-dialog .score-head small,
.workflow-dialog .score-student strong,
.workflow-dialog .score-total,
.workflow-dialog .score-input {
  font-size: 16px;
}

.workflow-dialog .score-input {
  width: 58px;
  height: 40px;
}

.workflow-dialog .question-ticket {
  flex-basis: 52px;
  width: 52px;
  height: 64px;
  font-size: 11px;
}

.workflow-dialog .question-ticket strong {
  font-size: 18px;
}

.workflow-dialog .risk-label {
  font-size: 14px;
}

.workflow-dialog .diagnosis-question h4 {
  font-size: 20px;
  line-height: 1.45;
}

.workflow-dialog .diagnosis-question p {
  font-size: 16px;
  line-height: 1.7;
}

.workflow-dialog .diagnosis-card {
  gap: 24px;
  padding: 22px;
}

.workflow-dialog .affected-students i {
  width: 30px;
  height: 30px;
  font-size: 12px;
}

.workflow-dialog .publish-heading p,
.workflow-dialog .bank-gap-note p,
.workflow-dialog .bank-gap-note strong,
.workflow-dialog .prescription-list article,
.workflow-dialog .prescription-route,
.workflow-dialog .prescription-list article em {
  font-size: 16px;
}

.workflow-dialog .workflow-footer {
  min-height: 82px;
}

.workflow-dialog .workflow-reset,
.workflow-dialog .workflow-footer .outline-action,
.workflow-dialog .workflow-footer .dark-action {
  font-size: 17px;
}

.source-form-panel input,
.source-form-panel select,
.source-form-panel textarea {
  font-size: 17px;
}

@media (max-width: 760px) {
  .auth-gate,
  .student-stage,
  .teacher-stage,
  .mini-app,
  .bank-workspace-dialog,
  .scan-workspace-dialog,
  .report-studio-dialog,
  .workflow-dialog,
  .score-import-dialog,
  .shared-report-root {
    font-size: 17px;
  }

  .workflow-dialog-header h2 {
    font-size: 30px;
  }

  .workflow-dialog-header p,
  .workflow-dialog .diagnosis-question p,
  .workflow-dialog .paper-intake p,
  .workflow-dialog .paper-demo-action,
  .workflow-dialog .honesty-note p {
    font-size: 16px;
  }
}

/* Readability pass: the interface is used for teaching review, so labels and
   evidence need to remain readable without zooming the whole browser. */
body {
  font-size: 17px;
}

.prototype-header .brand-lockup strong {
  font-size: 19px;
}

.prototype-header .brand-lockup small,
.prototype-note,
.role-button {
  font-size: 14px;
}

.stage-copy .eyebrow,
.stage-copy .panel-kicker,
.stage-copy .mini-kicker,
.teacher-stage .eyebrow,
.student-stage .eyebrow {
  font-size: 12px;
}

.stage-copy > p {
  font-size: 17px;
}

.stage-legend,
.auth-gate,
.teacher-stage,
.student-stage,
.bank-workspace-dialog,
.scan-workspace-dialog,
.report-studio-dialog,
.workflow-dialog,
.score-import-dialog {
  font-size: 16px;
}

.mini-app {
  font-size: 16px;
}

.mini-app .mini-kicker,
.mini-app .panel-kicker,
.mini-app .focus-status,
.mini-app .route-node small,
.mini-app .weakness-copy small,
.mini-app .month-glance,
.mini-app .publication-note small,
.mini-app .student-task-card span,
.mini-app .student-task-card small {
  font-size: 13px;
}

.mini-app button,
.teacher-stage button,
.bank-workspace-dialog button,
.scan-workspace-dialog button,
.report-studio-dialog button,
.workflow-dialog button,
.score-import-dialog button {
  font-size: 15px;
}

.mini-app .student-task-card strong,
.mini-app .student-task-card ul {
  font-size: 13px;
}

.teacher-stage small,
.bank-workspace-dialog small,
.scan-workspace-dialog small,
.report-studio-dialog small,
.workflow-dialog small,
.score-import-dialog small {
  font-size: 13px;
}

.teacher-stage .field > span,
.teacher-stage label,
.bank-workspace-dialog label,
.scan-workspace-dialog label,
.report-studio-dialog label,
.workflow-dialog label,
.score-import-dialog label {
  font-size: 14px;
}

.teacher-stage .nav-badge,
.teacher-stage .status-chip,
.teacher-stage .count-chip,
.teacher-stage .meta-label,
.teacher-stage .table-meta,
.teacher-stage .student-task-empty {
  font-size: 13px;
}

.bank-workspace-dialog .bank-column-heading small,
.bank-workspace-dialog .bank-boundary-note,
.bank-workspace-dialog .source-ledger small,
.bank-workspace-dialog .question-review-list small,
.bank-workspace-dialog .question-lineage small,
.scan-workspace-dialog .scan-column-heading small,
.scan-workspace-dialog .scan-status,
.report-studio-dialog .report-formula-note,
.workflow-dialog .workflow-step-button small,
.workflow-dialog .workflow-save-state small {
  font-size: 13px;
}

.score-import-form input,
.score-import-form select,
.score-import-form textarea,
.source-form-panel input,
.source-form-panel select,
.source-form-panel textarea {
  font-size: 15px;
}

@media (max-width: 760px) {
  .stage-copy > p {
    font-size: 16px;
  }

  .mini-app {
    font-size: 15px;
  }

  .mini-app button,
  .teacher-stage button,
  .bank-workspace-dialog button,
  .scan-workspace-dialog button,
  .report-studio-dialog button,
  .workflow-dialog button,
  .score-import-dialog button {
    font-size: 14px;
  }
}

.source-form-panel input,
.source-form-panel select,
.source-form-panel textarea {
  width: 100%;
  min-height: 39px;
  padding: 8px 10px;
  border: 1px solid rgba(151, 110, 42, 0.25);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  resize: vertical;
}

.source-notes {
  grid-column: span 2;
}

.source-submit {
  min-height: 39px;
}

.bank-workspace-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.72fr) minmax(370px, 1.15fr) minmax(390px, 1.13fr);
  min-height: 0;
}

.bank-workspace-grid > * {
  min-width: 0;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}

.bank-workspace-grid > *:last-child {
  border-right: 0;
}

.source-ledger-column {
  background: #f0f4f7;
}

.question-review-column {
  background: var(--white);
}

.question-lineage-column {
  background:
    linear-gradient(rgba(21, 42, 70, 0.035) 1px, transparent 1px) 0 0 / 100% 32px,
    #f8fafc;
}

.bank-column-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.bank-column-heading > span {
  color: #9da9b6;
  font-family: var(--utility);
  font-size: 11px;
}

.bank-column-heading > div {
  display: grid;
  gap: 2px;
}

.bank-column-heading strong {
  font-family: var(--display);
  font-size: 16px;
}

.bank-column-heading small {
  color: var(--muted);
  font-size: 10px;
}

.source-ledger,
.question-review-list {
  display: grid;
  align-content: start;
  gap: 9px;
}

.source-card,
.bank-question-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
  text-align: left;
}

.source-card {
  padding: 13px;
}

.source-card.is-pending {
  border-left: 3px solid var(--amber);
}

.source-card-heading,
.bank-question-card-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.source-card strong {
  font-size: 12px;
  line-height: 1.45;
}

.source-card p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.source-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #8793a0;
  font-size: 10px;
}

.source-type-tag,
.rights-tag,
.question-status-tag,
.difficulty-tag {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-style: normal;
  white-space: nowrap;
}

.source-type-tag {
  background: var(--blue-soft);
  color: var(--blue);
}

.rights-tag {
  background: var(--amber-soft);
  color: #856021;
}

.rights-tag.is-usable,
.question-status-tag.is-approved {
  background: var(--jade-soft);
  color: #0e684f;
}

.bank-question-statuses {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
}

.variation-seed-tag {
  padding: 4px 7px;
  border-radius: 999px;
  background: #e4f3ef;
  color: #167160;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.bank-question-card {
  display: grid;
  gap: 9px;
  padding: 14px;
  transition: border-color 150ms, box-shadow 150ms;
}

.bank-question-card:hover,
.bank-question-card.is-selected {
  border-color: #91a7be;
  box-shadow: 0 8px 24px rgba(21, 42, 70, 0.08);
}

.bank-question-card.is-selected {
  box-shadow: inset 3px 0 0 var(--ink), 0 8px 24px rgba(21, 42, 70, 0.08);
}

.bank-question-card p {
  margin: 0;
  font-family: var(--display);
  font-size: 14px;
  line-height: 1.65;
}

.bank-question-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.question-status-tag {
  background: var(--amber-soft);
  color: #856021;
}

.difficulty-tag {
  background: var(--paper);
  color: var(--muted);
}

.bank-empty-state {
  padding: 30px 18px;
  border: 1px dashed #c8d2dd;
  border-radius: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.question-lineage {
  min-height: 100%;
}

.lineage-intro {
  padding: 15px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
}

.lineage-intro span {
  color: #7fd3b4;
  font-family: var(--utility);
  font-size: 10px;
}

.lineage-intro h3 {
  margin: 7px 0 6px;
  font-family: var(--display);
  font-size: 18px;
}

.lineage-intro p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1.65;
}

.lineage-rail {
  position: relative;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding-left: 23px;
}

.lineage-rail::before {
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 8px;
  width: 1px;
  background: #b9c5d1;
  content: "";
}

.lineage-node {
  position: relative;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.lineage-node::before {
  position: absolute;
  top: 16px;
  left: -20px;
  width: 9px;
  height: 9px;
  border: 3px solid #f8fafc;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px #9eafc0;
  content: "";
}

.lineage-node.is-pending::before {
  background: var(--amber);
}

.lineage-node header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.lineage-node header span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
}

.lineage-node p {
  margin: 7px 0 0;
  font-family: var(--display);
  font-size: 13px;
  line-height: 1.55;
}

.lineage-answer {
  margin-top: 12px;
  padding: 12px 13px;
  border-left: 3px solid var(--jade);
  background: var(--jade-soft);
}

.lineage-answer span {
  color: #0e684f;
  font-size: 10px;
  font-weight: 700;
}

.lineage-answer p {
  margin: 4px 0 0;
  color: #315e52;
  font-size: 11px;
  line-height: 1.6;
}

.lineage-action {
  width: 100%;
  min-height: 42px;
  margin-top: 12px;
}

.lineage-source-detail {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #dcd3e4;
  border-radius: 12px;
  background: #faf8fc;
}

.lineage-source-detail span {
  color: #887494;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.lineage-source-detail strong {
  color: #44235d;
  font-size: 13px;
}

.lineage-source-detail p {
  margin: 0;
  color: #776681;
  font-size: 11px;
  line-height: 1.55;
}

.lineage-seed-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.lineage-seed-actions .outline-action {
  min-height: 40px;
  justify-content: center;
  text-decoration: none;
}

.variation-seed-action.is-selected {
  border-color: #1a8c73;
  background: #e7f5f1;
  color: #176c5c;
}

.lineage-action[disabled] {
  cursor: not-allowed;
  border-color: var(--line);
  background: var(--paper);
  color: var(--muted);
}

.scan-workspace-dialog {
  width: min(1500px, calc(100vw - 32px));
  height: min(920px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #eef2f6;
  box-shadow: 0 35px 100px rgba(12, 29, 49, 0.36);
}

.scan-workspace-dialog::backdrop {
  background: rgba(13, 29, 49, 0.66);
  backdrop-filter: blur(7px);
}

.scan-workspace-shell {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: 100%;
}

.scan-workspace-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 19px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.scan-workspace-header h2 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.scan-workspace-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.scan-upload-strip {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) minmax(170px, 1fr) 90px 90px 130px 130px auto;
  align-items: end;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.scan-upload-strip > label:not(.scan-file-picker) {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.scan-upload-strip input,
.scan-upload-strip select {
  width: 100%;
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 12px;
}

.scan-file-picker {
  display: grid;
  align-content: center;
  height: 56px;
  padding: 8px 12px;
  border: 1px dashed #9bacc0;
  border-radius: 10px;
  background: var(--blue-soft);
  cursor: pointer;
}

.scan-file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.scan-file-picker span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
}

.scan-file-picker small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scan-upload-action {
  min-height: 40px;
  white-space: nowrap;
}

.scan-boundary-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  border-bottom: 1px solid #d8c388;
  background: var(--amber-soft);
}

.scan-boundary-banner span {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 6px;
  background: rgba(193, 139, 54, 0.14);
  color: #805c22;
  font-size: 10px;
  font-weight: 800;
}

.scan-boundary-banner p {
  margin: 0;
  color: #725f3a;
  font-size: 11px;
  line-height: 1.55;
}

.scan-workspace-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.65fr) minmax(420px, 1.15fr) minmax(410px, 1.05fr);
  min-height: 0;
}

.scan-workspace-grid > * {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}

.scan-workspace-grid > *:last-child {
  border-right: 0;
}

.scan-queue-column {
  background: #e9eef3;
}

.scan-paper-column {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background:
    linear-gradient(90deg, rgba(21, 42, 70, 0.025) 1px, transparent 1px) 0 0 / 24px 24px,
    #f3f6f8;
}

.scan-question-column {
  background: var(--white);
}

.scan-column-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 37px;
  margin-bottom: 12px;
}

.scan-column-heading > div,
.scan-column-heading:not(:has(> div)) {
  gap: 3px;
}

.scan-column-heading strong {
  font-family: var(--display);
  font-size: 16px;
}

.scan-column-heading small {
  color: var(--muted);
  font-size: 10px;
}

.scan-intake-list,
.scan-question-list {
  display: grid;
  align-content: start;
  gap: 9px;
}

.scan-intake-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 13px;
  border: 1px solid #d4dde6;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.82);
  text-align: left;
}

.scan-intake-card.is-selected {
  border-color: var(--ink);
  background: var(--white);
  box-shadow: inset 3px 0 0 var(--ink);
}

.scan-intake-card > span:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.scan-intake-card strong {
  font-size: 12px;
  line-height: 1.45;
}

.scan-intake-card small {
  color: var(--muted);
  font-size: 10px;
}

.scan-status {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 10px;
  font-style: normal;
}

.scan-status.is-ready {
  background: var(--amber-soft);
  color: #835e20;
}

.scan-status.is-complete {
  background: var(--jade-soft);
  color: #0e684f;
}

.scan-paper-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border: 1px solid #cfd8e2;
  border-radius: 14px;
  background: #cbd3dc;
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.25);
}

.scan-paper-stage iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--white);
}

.scan-empty-paper {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  color: var(--muted);
  text-align: center;
}

.scan-empty-paper > span {
  display: grid;
  width: 74px;
  height: 92px;
  margin-bottom: 14px;
  border: 1px solid #9eacba;
  border-radius: 4px 14px 4px 4px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-family: var(--display);
  font-size: 28px;
  place-items: center;
  transform: rotate(-2deg);
}

.scan-empty-paper strong {
  font-size: 13px;
}

.scan-empty-paper p {
  margin: 5px 0 0;
  font-size: 11px;
}

.scan-extract-action {
  width: 100%;
  margin-top: 11px;
  justify-content: center;
}

.scan-extract-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.scan-review-count {
  display: grid;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--amber-soft);
  color: #835e20;
  font-family: var(--utility);
  font-size: 12px;
  place-items: center;
}

.scan-question-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fbfcfd;
}

.scan-question-card.is-promoted {
  border-color: rgba(22, 138, 107, 0.32);
  background: #f4fbf8;
}

.scan-question-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scan-question-card header strong {
  font-family: var(--utility);
  font-size: 11px;
}

.confidence-chip {
  padding: 4px 7px;
  border-radius: 6px;
  background: var(--jade-soft);
  color: #0e684f;
  font-size: 10px;
  font-style: normal;
}

.confidence-chip.is-low {
  background: var(--amber-soft);
  color: #835e20;
}

.scan-question-card label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.scan-question-card textarea,
.scan-question-card input,
.scan-question-card select {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.55;
  resize: vertical;
}

.scan-question-fields {
  display: grid;
  grid-template-columns: 1fr 106px;
  gap: 9px;
}

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

.scan-question-actions button {
  flex: 1;
  min-height: 38px;
}

.scan-question-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.scan-empty-state {
  padding: 34px 18px;
  border: 1px dashed #bcc8d4;
  border-radius: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.summary-data span,
.mastery-row small {
  font-size: 10px;
}

.mastery-row strong,
.row-change,
.error-bars > div {
  font-size: 11px;
}

.report-studio-dialog {
  width: min(1480px, calc(100vw - 32px));
  height: min(900px, calc(100vh - 32px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: #edf1f5;
  box-shadow: 0 35px 100px rgba(12, 29, 49, 0.36);
}

.report-studio-dialog::backdrop {
  background: rgba(13, 29, 49, 0.66);
  backdrop-filter: blur(7px);
}

.report-studio-shell {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  height: 100%;
}

.report-studio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 19px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.report-studio-header h2 {
  margin: 6px 0 4px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.035em;
}

.report-studio-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.report-studio-toolbar {
  display: flex;
  align-items: end;
  gap: 11px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.report-studio-toolbar > label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
}

.report-studio-toolbar select {
  min-width: 150px;
  height: 40px;
  padding: 0 30px 0 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  font-size: 12px;
}

.report-formula-note {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 6px;
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
}

.report-formula-note i {
  display: grid;
  width: 25px;
  height: 25px;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--blue-soft);
  color: var(--blue);
  font-family: var(--utility);
  font-size: 9px;
  font-style: normal;
  place-items: center;
}

.report-draft-state {
  align-self: center;
  margin-left: auto;
  color: var(--amber);
  font-size: 11px;
  white-space: nowrap;
}

.report-draft-state.is-published {
  color: var(--jade);
}

.report-studio-grid {
  display: grid;
  grid-template-columns: minmax(330px, 0.83fr) minmax(440px, 1.15fr) minmax(350px, 0.9fr);
  min-height: 0;
}

.report-studio-grid > * {
  min-width: 0;
  min-height: 0;
  padding: 20px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
}

.report-studio-grid > *:last-child {
  border-right: 0;
}

.report-overview-column {
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 100% 36px,
    var(--ink);
  color: var(--white);
}

.report-overview-kicker {
  color: #7fd3b4;
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.report-overview-column h3 {
  margin: 16px 0 23px;
  font-family: var(--display);
  font-size: 27px;
  line-height: 1.5;
}

.report-overview-data {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.13);
  border-left: 1px solid rgba(255, 255, 255, 0.13);
}

.report-overview-data article {
  display: grid;
  gap: 4px;
  min-height: 96px;
  padding: 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.report-overview-data strong {
  font-family: var(--utility);
  font-size: 25px;
}

.report-overview-data span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 10px;
}

.report-trend-note {
  margin-top: 20px;
  padding: 14px 15px;
  border-left: 3px solid #7fd3b4;
  background: rgba(255, 255, 255, 0.07);
}

.report-trend-note strong {
  display: block;
  color: #7fd3b4;
  font-family: var(--utility);
  font-size: 20px;
}

.report-trend-note p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 11px;
  line-height: 1.65;
}

.report-evidence-column {
  background: #f6f8fa;
}

.report-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 12px;
}

.report-section-title > div {
  display: grid;
  gap: 3px;
}

.report-section-title strong {
  font-family: var(--display);
  font-size: 17px;
}

.report-section-title small {
  color: var(--muted);
  font-size: 10px;
}

.evidence-chain {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.evidence-stage {
  position: relative;
  min-height: 94px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.evidence-stage::after {
  position: absolute;
  top: 28px;
  right: -9px;
  width: 9px;
  height: 1px;
  background: #bfcbd6;
  content: "";
}

.evidence-stage:last-child::after {
  display: none;
}

.evidence-stage span {
  color: var(--muted);
  font-size: 10px;
}

.evidence-stage strong {
  display: block;
  margin-top: 9px;
  font-family: var(--utility);
  font-size: 21px;
}

.evidence-stage small {
  color: #9aa5b1;
  font-size: 9px;
}

.report-knowledge-list {
  display: grid;
  gap: 9px;
}

.report-knowledge-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--white);
}

.report-knowledge-state {
  display: grid;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  place-items: center;
}

.report-knowledge-state.mastered {
  background: var(--jade-soft);
  color: var(--jade);
}

.report-knowledge-state.progressing {
  background: var(--amber-soft);
  color: #946820;
}

.report-knowledge-state.attention {
  background: var(--coral-soft);
  color: var(--coral);
}

.report-knowledge-card > div {
  display: grid;
  gap: 4px;
}

.report-knowledge-card strong {
  font-size: 13px;
}

.report-knowledge-card small {
  color: var(--muted);
  font-size: 10px;
}

.report-knowledge-score {
  font-family: var(--utility);
  font-size: 18px;
}

.report-parent-column {
  background: #e9eef3;
}

.report-parent-sheet {
  min-height: 470px;
  margin-top: 14px;
  padding: 21px;
  border: 1px solid #d4dde6;
  border-radius: 4px 18px 4px 4px;
  background: var(--white);
  box-shadow: 0 14px 35px rgba(21, 42, 70, 0.1);
}

.parent-sheet-heading {
  padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
}

.parent-sheet-heading span {
  color: var(--muted);
  font-size: 10px;
}

.parent-sheet-heading h3 {
  margin: 5px 0 0;
  font-family: var(--display);
  font-size: 21px;
}

.parent-sheet-lead {
  margin: 18px 0;
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.65;
}

.parent-error-list {
  display: grid;
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.parent-error-row {
  display: grid;
  grid-template-columns: 72px 1fr 32px;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.parent-error-row i {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: var(--line-soft);
}

.parent-error-row i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--coral);
}

.parent-sheet-foot {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.report-note-editor {
  display: grid;
  gap: 6px;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}

.report-note-editor textarea {
  width: 100%;
  padding: 11px;
  border: 1px solid #cbd5df;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}

.report-studio-empty {
  padding: 35px 20px;
  border: 1px dashed #bcc8d4;
  border-radius: 13px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.report-delivery-panel {
  padding: 15px;
  border: 1px solid #ccd7e1;
  border-radius: 14px;
  background: #f8fafc;
}

.delivery-panel-heading,
.version-history-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delivery-panel-heading > div {
  display: grid;
  gap: 3px;
}

.delivery-panel-heading span {
  color: var(--muted);
  font-size: 10px;
}

.delivery-panel-heading strong {
  font-size: 12px;
}

.delivery-panel-heading em {
  padding: 5px 7px;
  border: 1px solid #b9c7d4;
  border-radius: 6px;
  color: var(--ink-soft);
  font-family: var(--utility);
  font-size: 10px;
  font-style: normal;
}

.delivery-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 16px 0 10px;
}

.delivery-rail span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  color: #9aa6b2;
  font-size: 9px;
}

.delivery-rail span::before {
  position: absolute;
  z-index: 0;
  top: 5px;
  right: 50%;
  width: 100%;
  height: 1px;
  background: #d6dee6;
  content: "";
}

.delivery-rail span:first-child::before {
  display: none;
}

.delivery-rail i {
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 2px solid #c4ced8;
  border-radius: 50%;
  background: #f8fafc;
}

.delivery-rail span.is-done {
  color: var(--jade);
}

.delivery-rail span.is-done::before,
.delivery-rail span.is-done i {
  border-color: var(--jade);
  background: var(--jade);
}

.delivery-status-copy {
  min-height: 34px;
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.6;
}

.delivery-actions {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 7px;
}

.delivery-actions button {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 10px;
}

.delivery-revoke-action {
  border: 0;
  background: transparent;
  color: var(--coral);
}

.delivery-revoke-action:disabled {
  color: #aeb8c2;
  cursor: default;
}

.report-version-history {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.version-history-toggle {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 10px;
  text-align: left;
}

.version-history-toggle small {
  color: var(--muted);
}

.version-history-list {
  display: grid;
  gap: 6px;
  margin-top: 9px;
}

.version-history-list[hidden] {
  display: none;
}

.version-history-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 8px;
  background: var(--white);
  font-size: 9px;
}

.version-history-item > span {
  font-family: var(--utility);
  font-weight: 700;
}

.version-history-item > div {
  display: grid;
  gap: 2px;
}

.version-history-item small {
  color: var(--muted);
}

.version-history-item em {
  color: var(--jade);
  font-style: normal;
}

.version-history-item.is-revoked em {
  color: var(--coral);
}

.shared-report-root {
  min-height: 100vh;
  padding: 28px 16px 70px;
  background:
    linear-gradient(rgba(21, 42, 70, 0.028) 1px, transparent 1px) 0 0 / 100% 34px,
    #edf2f5;
}

.shared-report-root[hidden] {
  display: none;
}

body.shared-report-mode .prototype-chrome {
  display: none;
}

.shared-report-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 56px);
  color: var(--muted);
  text-align: center;
}

.shared-report-loading img {
  width: 176px;
  height: 176px;
  margin-bottom: 8px;
  object-fit: contain;
}

.shared-report-loading strong {
  color: #382147;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: 24px;
}

.shared-report-loading span {
  margin-top: 7px;
  color: #7b6e82;
  font-size: 15px;
}

.shared-report-loading[hidden] {
  display: none;
}

.shared-report-paper {
  width: min(780px, 100%);
  margin: 0 auto;
}

.shared-report-paper[hidden] {
  display: none;
}

/* Galaxy task runner: action-specific feedback instead of a generic spinner. */
.motion-stage {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 28px;
  background: transparent;
  color: var(--ink);
}

.motion-stage::backdrop {
  background: rgba(31, 12, 50, 0.5);
  backdrop-filter: blur(7px);
}

.motion-stage-card {
  position: relative;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  min-height: 232px;
  padding: 28px 30px 28px 24px;
  overflow: hidden;
  border: 1px solid rgba(104, 59, 139, 0.18);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 12%, rgba(255, 255, 255, 0.92) 0 3px, transparent 4px),
    radial-gradient(circle at 88% 18%, rgba(137, 91, 181, 0.17) 0 2px, transparent 3px),
    linear-gradient(135deg, #fbf9fd 0%, #f4eef9 58%, #eee4f6 100%);
  box-shadow: 0 34px 90px rgba(28, 13, 43, 0.28);
}

.motion-stage-card::after {
  position: absolute;
  right: -54px;
  bottom: -86px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(93, 45, 128, 0.09);
  border-radius: 50%;
  content: "";
}

.motion-stage-visual {
  position: relative;
  display: grid;
  width: 172px;
  height: 172px;
  place-items: center;
}

.motion-stage-visual::before {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: inset 0 0 0 1px rgba(105, 59, 140, 0.1);
  content: "";
}

.motion-stage-visual img {
  position: relative;
  z-index: 2;
  display: block;
  width: 168px;
  height: 168px;
  object-fit: contain;
}

.motion-orbit {
  position: absolute;
  z-index: 1;
  border: 1px dashed rgba(102, 54, 137, 0.25);
  border-radius: 50%;
  pointer-events: none;
}

.motion-orbit-one {
  inset: 4px 10px 16px 2px;
  transform: rotate(-12deg);
}

.motion-orbit-two {
  inset: 25px 0 0 22px;
  border-color: rgba(197, 139, 211, 0.32);
  transform: rotate(18deg);
}

.motion-stage-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.motion-stage-kicker {
  display: block;
  margin-bottom: 8px;
  color: #734093;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.motion-stage-copy h2 {
  margin: 0;
  color: #2d173b;
  font-family: "Noto Serif SC", "Songti SC", STSong, serif;
  font-size: 27px;
  line-height: 1.3;
}

.motion-stage-copy p {
  margin: 10px 0 16px;
  color: #65586f;
  font-size: 16px;
  line-height: 1.65;
}

.motion-stage-track {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 10px;
}

.motion-stage-track i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(101, 57, 134, 0.13);
}

.motion-stage-track i::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6d3d8f, #b876c8);
  transform: scaleX(0);
  transform-origin: left;
  animation: galaxy-task-progress 1.45s ease-in-out infinite;
  content: "";
}

.motion-stage-track i:nth-child(2)::after { animation-delay: 0.12s; }
.motion-stage-track i:nth-child(3)::after { animation-delay: 0.24s; }
.motion-stage-track i:nth-child(4)::after { animation-delay: 0.36s; }

.motion-stage-copy small {
  display: block;
  color: #817589;
  font-size: 13px;
  line-height: 1.45;
}

.motion-stage.is-leaving .motion-stage-card {
  opacity: 0;
  transform: translateY(8px) scale(0.985);
  transition: opacity 180ms ease, transform 180ms ease;
}

@keyframes galaxy-task-progress {
  0%, 12% { transform: scaleX(0); opacity: 0.45; }
  55%, 82% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

@media (max-width: 560px) {
  .motion-stage {
    width: min(390px, calc(100vw - 24px));
  }

  .motion-stage-card {
    grid-template-columns: 122px minmax(0, 1fr);
    gap: 14px;
    min-height: 190px;
    padding: 22px 20px 22px 16px;
    border-radius: 22px;
  }

  .motion-stage-visual {
    width: 122px;
    height: 142px;
  }

  .motion-stage-visual img {
    width: 132px;
    height: 132px;
  }

  .motion-stage-copy h2 {
    font-size: 21px;
  }

  .motion-stage-copy p {
    margin: 7px 0 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-stage-track i::after {
    animation: none;
    transform: scaleX(0.72);
  }

  .motion-stage.is-leaving .motion-stage-card {
    transition: none;
  }
}

.shared-report-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.shared-report-tools > span {
  color: var(--muted);
  font-size: 11px;
}

.shared-report-tools button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #c8d3dd;
  border-radius: 9px;
  background: var(--white);
  font-size: 12px;
}

.shared-report-document {
  position: relative;
  overflow: hidden;
  border: 1px solid #cbd5de;
  border-radius: 3px 26px 3px 3px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(21, 42, 70, 0.14);
}

.shared-report-document::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  background:
    radial-gradient(circle at 7px 7px, transparent 6px, #dfe6ec 6.5px) 0 0 / 7px 14px;
  content: "";
}

.shared-report-masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 34px 42px 26px;
  border-bottom: 2px solid var(--ink);
}

.shared-report-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.shared-report-brand i {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--display);
  font-size: 17px;
  font-style: normal;
  place-items: center;
}

.shared-report-brand span {
  display: grid;
  gap: 2px;
}

.shared-report-brand strong {
  font-family: var(--display);
  font-size: 17px;
}

.shared-report-brand small,
.shared-report-edition {
  color: var(--muted);
  font-family: var(--utility);
  font-size: 9px;
}

.shared-report-title {
  padding: 34px 42px 29px;
  background:
    linear-gradient(90deg, rgba(85, 119, 170, 0.055) 1px, transparent 1px) 0 0 / 26px 100%;
}

.shared-report-title > span {
  color: var(--blue);
  font-family: var(--utility);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.shared-report-title h1 {
  max-width: 590px;
  margin: 11px 0 12px;
  font-family: var(--display);
  font-size: clamp(29px, 5vw, 43px);
  line-height: 1.33;
  letter-spacing: -0.035em;
}

.shared-report-title p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.shared-report-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.shared-report-proof article {
  min-height: 104px;
  padding: 19px 18px;
  border-right: 1px solid var(--line);
}

.shared-report-proof article:last-child {
  border-right: 0;
}

.shared-report-proof span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.shared-report-proof strong {
  display: block;
  margin: 8px 0 3px;
  font-family: var(--utility);
  font-size: 24px;
}

.shared-report-proof small {
  color: #8b97a4;
  font-size: 9px;
}

.shared-report-body {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
}

.shared-report-focus,
.shared-report-causes {
  padding: 30px 42px;
}

.shared-report-focus {
  border-right: 1px solid var(--line);
}

.shared-section-label {
  display: block;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 10px;
}

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

.shared-focus-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}

.shared-focus-item i {
  display: grid;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--coral-soft);
  color: var(--coral);
  font-family: var(--display);
  font-size: 11px;
  font-style: normal;
  place-items: center;
}

.shared-focus-item.is-progress i {
  background: var(--amber-soft);
  color: #966a20;
}

.shared-focus-item > div {
  display: grid;
  gap: 4px;
}

.shared-focus-item strong {
  font-size: 13px;
}

.shared-focus-item small {
  color: var(--muted);
  font-size: 9px;
}

.shared-focus-item > b {
  font-family: var(--utility);
  font-size: 18px;
}

.shared-cause-list {
  display: grid;
  gap: 13px;
}

.shared-cause-list > div {
  display: grid;
  grid-template-columns: 78px 1fr 30px;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}

.shared-cause-list i {
  height: 5px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--line-soft);
}

.shared-cause-list b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.shared-report-note {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  margin: 0 42px 34px;
  padding: 20px;
  border-left: 3px solid var(--jade);
  background: var(--jade-soft);
}

.shared-report-note > span {
  display: grid;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--jade);
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  place-items: center;
}

.shared-report-note small {
  color: var(--jade);
  font-size: 10px;
  font-weight: 700;
}

.shared-report-note p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.8;
}

.shared-report-receipt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 42px 24px;
  border-top: 1px dashed #b7c3cd;
  color: var(--muted);
  font-size: 9px;
}

.shared-report-receipt strong {
  color: var(--ink);
  font-family: var(--utility);
}

.shared-report-error {
  display: grid;
  width: min(540px, 100%);
  min-height: calc(100vh - 56px);
  margin: auto;
  color: var(--muted);
  line-height: 1.8;
  text-align: center;
  place-items: center;
}

@media (max-width: 1050px) {
  .auth-gate {
    grid-template-columns: minmax(360px, 0.8fr) minmax(500px, 1.2fr);
  }

  .auth-story {
    padding-inline: 35px;
  }

  .auth-panel {
    width: min(500px, calc(100% - 48px));
  }

  .student-stage {
    grid-template-columns: 1fr;
    padding-top: 38px;
  }

  .stage-copy {
    justify-self: center;
    max-width: 590px;
    padding: 0 0 45px;
    text-align: center;
  }

  .stage-copy > p {
    margin-inline: auto;
  }

  .stage-legend {
    justify-content: center;
  }

  .teacher-stage.is-visible {
    grid-template-columns: 190px minmax(800px, 1fr);
    overflow-x: auto;
  }

  .teacher-main {
    padding-inline: 24px;
  }

  .workflow-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }

  .workflow-shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }

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

  .paper-intake {
    grid-template-columns: 52px minmax(0, 1fr) auto;
  }

  .paper-demo-action {
    grid-column: 3;
  }

  .scan-workspace-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }

  .scan-upload-strip {
    grid-template-columns: 1.3fr 1fr 90px 90px 130px 130px auto;
    overflow-x: auto;
  }

  .scan-workspace-grid {
    grid-template-columns: 230px minmax(420px, 1fr) 410px;
    overflow-x: auto;
  }

  .report-studio-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
  }

  .report-studio-grid {
    grid-template-columns: 340px 460px 370px;
    overflow-x: auto;
  }
}

@media (max-width: 680px) {
  .auth-gate {
    display: block;
    overflow: auto;
  }

  .auth-gate.is-hidden {
    display: none;
  }

  .auth-story {
    min-height: 285px;
    padding: 24px;
  }

  .auth-thesis {
    margin: 48px 0 20px;
  }

  .auth-thesis h1 {
    margin: 12px 0;
    font-size: 34px;
  }

  .auth-thesis p {
    font-size: 10px;
  }

  .auth-route {
    display: none;
  }

  .auth-panel {
    width: auto;
    padding: 32px 20px 45px;
  }

  .auth-panel-copy h2 {
    font-size: 25px;
  }

  .auth-role-card {
    grid-template-columns: 44px minmax(0, 1fr) 15px;
    min-height: 76px;
    padding: 12px;
  }

  .auth-role-card em {
    display: none;
  }

  .auth-role-mark {
    width: 44px;
    height: 44px;
  }

  .prototype-header {
    grid-template-columns: 1fr;
    height: auto;
    padding: 12px 14px;
  }

  .brand-lockup,
  .prototype-note {
    display: none;
  }

  .header-session {
    display: none;
  }

  .role-switch {
    width: 100%;
  }

  .role-button {
    flex: 1;
  }

  .student-stage {
    display: block;
    min-height: calc(100vh - 61px);
    padding: 0;
    background: #0f1d2e;
  }

  .stage-copy {
    display: none;
  }

  .phone-wrap {
    min-height: 0;
  }

  .phone-wrap::before,
  .phone-wrap::after,
  .phone-shadow {
    display: none;
  }

  .phone-frame {
    width: min(100%, 430px);
    height: calc(100vh - 61px);
    min-height: 690px;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .phone-frame::before {
    display: none;
  }

  .phone-status {
    top: 8px;
  }

  .mini-app {
    border-radius: 0;
  }

  .mini-header {
    padding-top: 25px;
  }

  .teacher-stage.is-visible {
    display: block;
    overflow: auto;
  }

  .teacher-sidebar {
    display: none;
  }

  .teacher-main {
    min-width: 920px;
    padding: 24px;
  }

  .bank-workspace-dialog {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .bank-workspace-grid {
    grid-template-columns: 250px minmax(410px, 1fr) 400px;
    overflow-x: auto;
  }

  .workflow-dialog {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .workflow-shell {
    display: block;
  }

  .workflow-rail {
    display: none;
  }

  .workflow-workspace {
    height: 100%;
  }

  .bank-summary-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .bank-toolbar {
    align-items: center;
    overflow-x: auto;
  }

  .bank-boundary-note {
    display: none;
  }

  .source-form-panel {
    grid-template-columns: 1fr 1fr;
    overflow-y: auto;
  }

  .source-form-heading,
  .source-notes {
    grid-column: 1 / -1;
  }

  .scan-workspace-dialog {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .scan-upload-strip {
    grid-template-columns: 190px 170px 90px 90px 130px 130px auto;
  }

  .scan-workspace-grid {
    grid-template-columns: 230px 420px 410px;
  }

  .report-studio-dialog {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .report-studio-toolbar {
    overflow-x: auto;
  }

  .report-formula-note {
    display: none;
  }

  .report-studio-grid {
    grid-template-columns: 340px 460px 370px;
  }

  .shared-report-root {
    padding: 0;
  }

  .shared-report-tools {
    padding: 12px 14px;
    margin: 0;
    background: #edf2f5;
  }

  .shared-report-document {
    border-width: 1px 0;
    border-radius: 0;
    box-shadow: none;
  }

  .shared-report-masthead,
  .shared-report-title,
  .shared-report-focus,
  .shared-report-causes {
    padding-inline: 22px;
  }

  .shared-report-proof {
    grid-template-columns: repeat(2, 1fr);
  }

  .shared-report-proof article:nth-child(2) {
    border-right: 0;
  }

  .shared-report-proof article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .shared-report-body {
    display: block;
  }

  .shared-report-focus {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .shared-report-note {
    margin-inline: 22px;
  }

  .shared-report-receipt {
    align-items: flex-start;
    gap: 12px;
    padding-inline: 22px;
  }
}

@media print {
  @page {
    size: A4;
    margin: 24.5mm 30mm 22mm;
  }

  body,
  .shared-report-root {
    background: #fff !important;
  }

  .shared-report-root {
    padding: 0;
  }

  .shared-report-tools {
    display: none;
  }

  .shared-report-document {
    width: 100%;
    border: 0;
    box-shadow: none;
  }
}

/* Teacher lesson workspace · approved purple/jade teaching direction */
.teacher-main {
  display: flex;
  flex-direction: column;
}

.teacher-main > .teacher-header { order: 0; }
.teacher-main > .teacher-schedule-home { order: 1; }
.teacher-main > .teacher-lesson-home { order: 2; }
.teacher-main > .teacher-action-home { order: 3; }

.teacher-schedule-home,
.teacher-lesson-home,
.teacher-action-home {
  position: relative;
  z-index: 1;
}

.teacher-lesson-home {
  margin-top: 24px;
  padding: 26px;
  border: 1px solid rgba(101, 54, 138, .18);
  border-radius: 24px;
  background: linear-gradient(135deg, #fff, #fbf8fd);
  box-shadow: 0 18px 38px rgba(67, 24, 95, .08);
}

.teacher-lesson-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.teacher-lesson-heading h2 {
  margin: 6px 0 4px;
  color: var(--ink);
  font: 700 1.55rem/1.16 var(--display);
  letter-spacing: -.025em;
}

.teacher-lesson-heading p {
  max-width: 68ch;
  margin: 0;
  color: var(--ink-soft);
  font-size: .9rem;
}

.teacher-lesson-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.lesson-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
}

.lesson-summary-card > div:nth-child(2) {
  min-width: 0;
}

.lesson-summary-card span,
.lesson-summary-card small {
  display: block;
  color: var(--ink-soft);
  font-size: .76rem;
}

.lesson-summary-card strong {
  display: block;
  margin: 4px 0;
  overflow: hidden;
  color: var(--ink);
  font-size: .98rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lesson-summary-icon,
.lesson-action-heading > span,
.lesson-context-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-pale);
  color: var(--brand-action);
  font-weight: 800;
}

.lesson-summary-homework .lesson-summary-icon { background: var(--jade-soft); color: var(--jade); }
.lesson-summary-feedback .lesson-summary-icon { background: var(--amber-soft); color: var(--amber); }

.teacher-schedule-entry[data-schedule-entry],
.teacher-schedule-entry {
  cursor: pointer;
}

.teacher-schedule-entry:focus-visible {
  outline: 3px solid rgba(22, 138, 107, .35);
  outline-offset: 3px;
}

.lesson-workspace-dialog {
  width: min(1320px, calc(100vw - 48px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(25, 13, 36, .28);
}

.lesson-workspace-dialog::backdrop {
  background: rgba(33, 18, 44, .56);
  backdrop-filter: blur(6px);
}

.lesson-workspace-shell {
  display: flex;
  flex-direction: column;
  min-height: min(760px, calc(100vh - 56px));
}

.lesson-workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 32px 22px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.lesson-workspace-header h2 {
  margin: 5px 0 5px;
  font: 700 1.7rem/1.1 var(--display);
  letter-spacing: -.03em;
}

.lesson-workspace-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: .88rem;
}

.lesson-workspace-header-actions,
.lesson-form-actions,
.lesson-feedback-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lesson-status-pill,
.feed-visibility-badge,
.lesson-material-visibility {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-pale);
  color: var(--brand-action);
  font-size: .74rem;
  font-weight: 700;
}

.lesson-workspace-body {
  display: grid;
  grid-template-columns: 250px minmax(420px, 1fr) 340px;
  min-height: 0;
  flex: 1;
}

.lesson-context-pane,
.lesson-material-pane,
.lesson-action-pane {
  min-width: 0;
  padding: 24px;
}

.lesson-context-pane {
  border-right: 1px solid var(--line);
  background: #f4eef7;
}

.lesson-material-pane {
  background: #fff;
}

.lesson-action-pane {
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fbf9fc;
}

.lesson-context-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.lesson-context-identity strong,
.lesson-context-identity small {
  display: block;
}

.lesson-context-identity strong { font-size: 1rem; }
.lesson-context-identity small { margin-top: 3px; color: var(--ink-soft); font-size: .78rem; }

.lesson-context-pane label,
.lesson-action-pane label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 700;
}

.lesson-context-pane input,
.lesson-context-pane textarea,
.lesson-action-pane input,
.lesson-action-pane textarea {
  width: 100%;
  border: 1px solid #d8cde0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 10px 11px;
}

.lesson-context-pane textarea,
.lesson-action-pane textarea { resize: vertical; }

.lesson-context-pane input:focus,
.lesson-context-pane textarea:focus,
.lesson-action-pane input:focus,
.lesson-action-pane textarea:focus {
  outline: 3px solid rgba(22, 138, 107, .18);
  border-color: var(--jade);
}

.lesson-context-rule {
  height: 1px;
  margin: 20px 0;
  background: rgba(101, 54, 138, .16);
}

.lesson-context-facts {
  display: grid;
  gap: 9px;
  color: var(--ink-soft);
  font-size: .78rem;
}

.lesson-context-facts b { color: var(--ink); }

.lesson-material-tabs {
  display: flex;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.lesson-material-tab {
  min-height: 42px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  font: 700 .86rem/1 var(--body);
}

.lesson-material-tab:hover,
.lesson-material-tab.is-active { background: var(--brand-pale); color: var(--brand-action); }

.lesson-material-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  color: var(--ink-soft);
  font-size: .8rem;
}

.lesson-material-preview {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 360px;
}

.lesson-material-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.lesson-material-card-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--jade-soft);
  color: var(--jade);
  font-weight: 800;
}

.lesson-material-card strong,
.lesson-material-card small,
.lesson-material-card p { display: block; }
.lesson-material-card strong { color: var(--ink); font-size: .9rem; }
.lesson-material-card small { margin-top: 5px; color: var(--ink-soft); font-size: .78rem; }
.lesson-material-card p { margin: 8px 0 0; color: var(--ink-soft); font-size: .78rem; }
.lesson-material-card.is-empty-file { background: #fcfaf4; }
.lesson-material-card.is-empty-file .lesson-material-card-icon { background: var(--amber-soft); color: var(--amber); }

.lesson-material-empty,
.lesson-homework-empty {
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 24px;
  border: 1px dashed #cfc1d9;
  border-radius: 14px;
  color: var(--ink-soft);
  text-align: center;
}

.lesson-material-empty strong { color: var(--ink); }
.lesson-material-empty small { margin-top: 7px; }

.lesson-action-section {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.lesson-action-section + .lesson-action-section { margin-top: 14px; }

.lesson-action-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.lesson-action-heading strong,
.lesson-action-heading small { display: block; }
.lesson-action-heading strong { font-size: .92rem; }
.lesson-action-heading small { margin-top: 3px; color: var(--ink-soft); font-size: .75rem; }

.lesson-question-option {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 8px !important;
  margin-bottom: 8px !important;
  padding: 9px;
  border: 1px solid #e6dce9;
  border-radius: 10px;
  background: #fcfbfd;
}

.lesson-question-option input { width: 16px; margin-top: 3px; accent-color: var(--jade); }
.lesson-question-option strong,
.lesson-question-option small { display: block; }
.lesson-question-option strong { color: var(--ink); font-size: .75rem; line-height: 1.35; }
.lesson-question-option small { margin-top: 3px; color: var(--ink-soft); font-size: .7rem; font-weight: 400; }

.lesson-feedback-note {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: .78rem;
  line-height: 1.55;
}

.mini-published-feed {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(22, 138, 107, .22);
  border-radius: 16px;
  background: #f5fbf8;
}

.mini-published-feed .section-heading {
  align-items: center;
  margin-bottom: 10px;
}

.published-lesson-card {
  padding: 13px;
  border: 1px solid rgba(22, 138, 107, .18);
  border-radius: 12px;
  background: #fff;
}

.published-lesson-card-top,
.published-feed-block { display: grid; gap: 3px; }
.published-lesson-card-top { padding-bottom: 10px; border-bottom: 1px solid #e4eee9; }
.published-lesson-card-top span,
.published-feed-label { color: var(--jade); font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.published-lesson-card-top strong { color: var(--ink); font-size: .88rem; }
.published-lesson-card-top small,
.published-feed-block small { color: var(--ink-soft); font-size: .73rem; line-height: 1.45; }
.published-feed-block { padding-top: 10px; }
.published-feed-block strong { color: var(--ink); font-size: .8rem; }

@media (max-width: 1100px) {
  .lesson-workspace-body { grid-template-columns: 220px minmax(360px, 1fr) 300px; }
  .lesson-context-pane,
  .lesson-material-pane,
  .lesson-action-pane { padding: 18px; }
}

@media (max-width: 780px) {
  .teacher-lesson-home { padding: 20px 16px; border-radius: 18px; }
  .teacher-lesson-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .teacher-lesson-heading .dark-action { width: 100%; }
  .teacher-lesson-grid { grid-template-columns: 1fr; }
  .lesson-workspace-dialog { width: calc(100vw - 20px); border-radius: 20px; }
  .lesson-workspace-shell { min-height: calc(100vh - 20px); }
  .lesson-workspace-header { padding: 20px 18px 16px; }
  .lesson-workspace-header h2 { font-size: 1.35rem; }
  .lesson-workspace-body { display: block; }
  .lesson-context-pane,
  .lesson-material-pane,
  .lesson-action-pane { border: 0; padding: 18px; }
  .lesson-context-pane { border-bottom: 1px solid var(--line); }
  .lesson-material-pane { border-bottom: 1px solid var(--line); }
  .lesson-material-preview { min-height: 0; }
  .lesson-action-pane { overflow: visible; }
  .lesson-material-tabs { overflow-x: auto; }
  .lesson-material-tab { flex: 0 0 auto; }
  .lesson-material-card { grid-template-columns: auto minmax(0, 1fr); }
  .lesson-material-visibility { grid-column: 2; justify-self: start; }
  .lesson-form-actions,
  .lesson-feedback-actions { flex-wrap: wrap; }
  .lesson-form-actions > button,
  .lesson-feedback-actions > button { flex: 1; min-width: 120px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Final readability pass: keep every working label comfortably readable. */
.auth-gate,
.student-stage,
.teacher-stage,
.mini-app,
.bank-workspace-dialog,
.scan-workspace-dialog,
.report-studio-dialog,
.workflow-dialog,
.score-import-dialog,
.shared-report-root {
  font-size: 16px;
}

.auth-gate p,
.student-stage p,
.teacher-stage p,
.mini-app p,
.bank-workspace-dialog p,
.scan-workspace-dialog p,
.report-studio-dialog p,
.workflow-dialog p,
.score-import-dialog p,
.shared-report-root p {
  font-size: 16px;
  line-height: 1.65;
}

.auth-gate small,
.student-stage small,
.teacher-stage small,
.mini-app small,
.bank-workspace-dialog small,
.scan-workspace-dialog small,
.report-studio-dialog small,
.workflow-dialog small,
.score-import-dialog small,
.shared-report-root small {
  font-size: 13px;
}

.auth-gate button,
.student-stage button,
.teacher-stage button,
.bank-workspace-dialog button,
.scan-workspace-dialog button,
.report-studio-dialog button,
.workflow-dialog button,
.score-import-dialog button,
.shared-report-root button {
  font-size: 15px;
}

.auth-gate label,
.teacher-stage label,
.bank-workspace-dialog label,
.scan-workspace-dialog label,
.report-studio-dialog label,
.workflow-dialog label,
.score-import-dialog label,
.teacher-stage input,
.teacher-stage select,
.teacher-stage textarea,
.bank-workspace-dialog input,
.bank-workspace-dialog select,
.bank-workspace-dialog textarea,
.scan-workspace-dialog input,
.scan-workspace-dialog select,
.scan-workspace-dialog textarea,
.report-studio-dialog input,
.report-studio-dialog select,
.report-studio-dialog textarea,
.workflow-dialog input,
.workflow-dialog select,
.workflow-dialog textarea,
.score-import-dialog input,
.score-import-dialog select,
.score-import-dialog textarea {
  font-size: 15px;
}

.mini-app .mini-kicker,
.mini-app .panel-kicker,
.mini-app .focus-status,
.mini-app .route-node strong,
.mini-app .route-node small,
.mini-app .weakness-copy small,
.mini-app .month-glance,
.mini-app .practice-topline,
.mini-app .question-meta,
.mini-app .question-tip,
.mini-app .answer-option,
.mini-app .bottom-nav,
.mini-app .student-task-card span,
.mini-app .student-task-card strong,
.mini-app .student-task-card small,
.mini-app .student-task-card li {
  font-size: 14px;
}

.mini-app .weakness-copy strong,
.mini-app .student-task-card h3,
.mini-app .student-task-card h4 {
  font-size: 16px;
}

.teacher-stage .teacher-nav-item,
.teacher-stage .workflow-item strong,
.teacher-stage .workflow-item small,
.teacher-stage .review-tags span,
.teacher-stage .question-index,
.teacher-stage .student-row,
.teacher-stage .student-row span,
.teacher-stage .subject-filter button,
.teacher-stage .status-pill,
.teacher-stage .count-chip,
.teacher-stage .nav-badge,
.teacher-stage .meta-label,
.teacher-stage .table-meta {
  font-size: 14px;
}

.teacher-stage .review-copy small,
.teacher-stage .sidebar-foot small,
.teacher-stage .bank-card > p,
.teacher-stage .publication-note small {
  font-size: 13px;
}

.bank-workspace-dialog .bank-column-heading small,
.bank-workspace-dialog .bank-boundary-note,
.bank-workspace-dialog .source-ledger small,
.bank-workspace-dialog .question-review-list small,
.bank-workspace-dialog .question-lineage small,
.scan-workspace-dialog .scan-column-heading small,
.scan-workspace-dialog .scan-status,
.report-studio-dialog .report-formula-note,
.workflow-dialog .workflow-step-button small,
.workflow-dialog .workflow-save-state small {
  font-size: 13px;
}

@media (max-width: 760px) {
  .auth-gate,
  .student-stage,
  .teacher-stage,
  .mini-app,
  .bank-workspace-dialog,
  .scan-workspace-dialog,
  .report-studio-dialog,
  .workflow-dialog,
  .score-import-dialog,
  .shared-report-root {
    font-size: 15px;
  }

  .auth-gate p,
  .student-stage p,
  .teacher-stage p,
  .mini-app p,
  .bank-workspace-dialog p,
  .scan-workspace-dialog p,
  .report-studio-dialog p,
  .workflow-dialog p,
  .score-import-dialog p,
  .shared-report-root p {
    font-size: 15px;
  }

  .auth-gate button,
  .student-stage button,
  .teacher-stage button,
  .bank-workspace-dialog button,
  .scan-workspace-dialog button,
  .report-studio-dialog button,
  .workflow-dialog button,
  .score-import-dialog button,
  .shared-report-root button {
    font-size: 14px;
  }
}

/* High-visibility pass (final cascade). */
.shared-report-tools > span,
.shared-report-tools button,
.shared-report-brand strong,
.shared-report-brand small,
.shared-report-edition,
.shared-report-title > span,
.shared-report-proof span,
.shared-report-proof small,
.shared-section-label,
.shared-focus-item small,
.shared-cause-list > div,
.shared-report-note small,
.shared-report-receipt {
  font-size: 15px;
}

.shared-report-tools button {
  min-height: 44px;
}

.shared-report-title p,
.shared-report-note p {
  font-size: 18px;
  line-height: 1.75;
}

.shared-report-proof strong {
  font-size: 32px;
}

.shared-focus-item strong {
  font-size: 18px;
}

.shared-focus-item > b {
  font-size: 22px;
}

.shared-cause-list i {
  height: 8px;
}

.shared-report-note > span {
  font-size: 22px;
}

.scan-workspace-header h2,
.report-studio-header h2 {
  font-size: 32px;
}

.scan-workspace-header p,
.report-studio-header p,
.scan-boundary-banner p,
.report-studio-toolbar,
.scan-column-heading small,
.report-studio-toolbar > label,
.scan-intake-card small,
.scan-empty-paper p,
.scan-empty-state {
  font-size: 15px;
  line-height: 1.6;
}

.scan-upload-strip > label:not(.scan-file-picker),
.scan-question-card label,
.report-studio-toolbar > label {
  font-size: 15px;
}

.scan-upload-strip input,
.scan-upload-strip select,
.scan-question-card textarea,
.scan-question-card input,
.scan-question-card select,
.report-studio-toolbar select {
  min-height: 48px;
  font-size: 16px;
}

.scan-file-picker {
  min-height: 64px;
}

.scan-file-picker span,
.scan-file-picker small,
.scan-intake-card strong,
.scan-status,
.confidence-chip,
.scan-question-card header strong,
.scan-empty-paper strong {
  font-size: 16px;
}

.scan-boundary-banner span,
.scan-review-count {
  font-size: 15px;
}

.scan-column-heading strong {
  font-size: 20px;
}

.scan-question-card {
  gap: 13px;
  padding: 18px;
}

.scan-question-actions button,
.scan-upload-action,
.report-studio-toolbar button {
  min-height: 46px;
  font-size: 16px;
}

.report-studio-dialog .report-formula-note,
.workflow-dialog .workflow-step-button small,
.workflow-dialog .workflow-save-state small {
  font-size: 15px;
}

/* Keep compact review labels readable after the dialog's older responsive rules. */
.scan-workspace-dialog .scan-column-heading small,
.scan-workspace-dialog .scan-status,
.scan-workspace-dialog .scan-intake-card small,
.scan-workspace-dialog .scan-empty-paper p,
.scan-workspace-dialog .scan-empty-state,
.report-studio-dialog .report-formula-note,
.workflow-dialog .workflow-step-button small,
.workflow-dialog .workflow-save-state small {
  font-size: 15px;
  line-height: 1.6;
}

.scan-workspace-dialog .scan-boundary-banner span,
.scan-workspace-dialog .scan-review-count {
  font-size: 15px;
}

@media (max-width: 760px) {
  .shared-report-title p,
  .shared-report-note p,
  .scan-workspace-header p,
  .report-studio-header p,
  .scan-boundary-banner p,
  .scan-empty-state {
    font-size: 16px;
  }

  .shared-report-proof strong {
    font-size: 28px;
  }

  .scan-workspace-header h2,
  .report-studio-header h2 {
    font-size: 28px;
  }
}

/* Final mobile guard: this block intentionally remains at the physical end. */
@media (max-width: 760px) {
  .teacher-stage.is-visible {
    display: block;
    width: 100%;
    overflow-x: hidden;
  }

  .teacher-main {
    width: 100%;
    min-width: 0;
    padding: 20px 14px 45px;
  }

  .teacher-stage button,
  .student-stage button,
  .mini-app button {
    font-size: 15px;
  }

  .teacher-stage p,
  .mini-app p {
    font-size: 16px;
  }

  .subject-context-bar,
  .subject-focus-panel,
  .dashboard-grid {
    min-width: 0;
  }

  .student-stage,
  .phone-wrap,
  .phone-frame,
  .phone-status,
  .mini-app,
  .mini-content,
  .mini-view {
    width: 100%;
    max-width: none;
    min-width: 0;
  }
}

/* Teacher desktop readability pass: stronger grey contrast and a calmer type scale. */
:root {
  --muted: #62556b;
}

.teacher-stage {
  color: #33243b;
  text-rendering: optimizeLegibility;
}

.teacher-stage .eyebrow {
  color: #65566f;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.055em;
}

.teacher-stage p,
.teacher-stage small {
  color: #65586d;
  font-weight: 500;
}

.teacher-stage small {
  font-size: 14px;
  line-height: 1.55;
}

.teacher-nav-item {
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 650;
}

.sidebar-brand > span,
.sidebar-foot small {
  color: rgba(255, 255, 255, 0.68);
}

.sidebar-foot small,
.nav-badge {
  font-size: 12px;
}

.workflow-item strong {
  color: #3c2945;
  font-size: 15px;
}

.workflow-item small {
  color: #6c5f74;
  font-size: 14px;
}

.subject-focus-metrics span,
.subject-focus-metrics small {
  color: #66586e;
  font-size: 14px;
  font-weight: 550;
}

.card-heading h2,
.table-toolbar h2 {
  color: #3c2049;
  font-size: 24px;
  line-height: 1.35;
}

.review-tags span,
.teacher-stage .review-tags span {
  color: #64566c;
  background: #f5f0f7;
  font-size: 14px;
  font-weight: 650;
}

.review-copy p {
  color: #4a3554;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6;
}

.review-copy small,
.teacher-stage .review-copy small {
  color: #67596f;
  font-size: 14px;
  font-weight: 550;
}

.bank-card > p,
.teacher-stage .bank-card > p,
.bank-breakdown div {
  color: #5d4e66;
  font-size: 14px;
  font-weight: 550;
}

.bank-breakdown span {
  color: #66576e;
}

.table-toolbar {
  margin-bottom: 17px;
}

.student-row,
.teacher-stage .student-row,
.teacher-stage .student-row span {
  color: #493651;
  font-size: 15px;
  font-weight: 550;
}

.student-row.table-head,
.teacher-stage .student-row.table-head {
  min-height: 47px;
  color: #5f5167;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.015em;
}

.student-name strong {
  color: #3f274a;
  font-size: 15px;
}

.status-pill,
.teacher-stage .status-pill {
  padding: 6px 9px;
  font-size: 13px;
  font-weight: 700;
}

.row-action {
  width: 34px;
  height: 34px;
  color: #675970;
}

.classroom-summary-card {
  padding: 24px;
}

.classroom-summary-grid {
  gap: 15px;
}

.classroom-mini-card {
  min-height: 180px;
  gap: 11px;
  padding: 20px;
  border-color: #d9cfe0;
}

.classroom-mini-head {
  color: #62546a;
  font-size: 14px;
  font-weight: 650;
}

.subject-pill {
  min-height: 27px;
  padding-inline: 9px;
  font-size: 13px;
}

.classroom-mini-card h3 {
  color: #40234c;
  font-size: 19px;
  line-height: 1.35;
}

.classroom-mini-card p {
  color: #5f5068;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.65;
}

.text-action {
  color: #67428a;
  font-size: 15px;
  font-weight: 750;
}

.classroom-summary-foot {
  color: #5e5066;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.6;
}

.teacher-stage .outline-action,
.teacher-stage .dark-action,
.teacher-stage .approve-action,
.teacher-stage .full-outline-action {
  font-size: 15px;
  font-weight: 700;
}

@media (min-width: 1500px) {
  .teacher-main {
    max-width: 1580px;
  }

  .student-row,
  .teacher-stage .student-row,
  .teacher-stage .student-row span {
    font-size: 15.5px;
  }

  .classroom-mini-card p,
  .classroom-summary-foot {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  .teacher-stage .eyebrow,
  .teacher-stage small,
  .teacher-stage .review-copy small {
    font-size: 14px;
  }

  .classroom-summary-card {
    padding: 20px;
  }
}

/* 单次考试学情反馈：把纸面阅卷的“批注轨迹”转化为可执行的四步接力。 */
.exam-feedback-dialog {
  width: min(1460px, calc(100vw - 34px));
  max-width: none;
  height: min(930px, calc(100vh - 34px));
  max-height: none;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  color: #2e1d37;
  background: #f3eef6;
  box-shadow: 0 34px 90px rgba(43, 19, 57, 0.3);
  font-family: var(--body);
}

.exam-feedback-dialog::backdrop {
  background: rgba(31, 18, 41, 0.7);
  backdrop-filter: blur(7px);
}

.exam-feedback-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: 100%;
}

.exam-feedback-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 34px 22px;
  border-bottom: 1px solid #e2d8e8;
  background: #fff;
}

.exam-feedback-header h2 {
  margin: 5px 0 7px;
  color: #3f185a;
  font-family: var(--display);
  font-size: 30px;
  line-height: 1.25;
}

.exam-feedback-header p {
  margin: 0;
  color: #6f6078;
  font-size: 15px;
  line-height: 1.6;
}

.exam-feedback-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 34px;
  border-bottom: 1px solid #ddd2e4;
  background: #faf7fc;
}

.exam-feedback-toolbar label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #5f4a6b;
  font-size: 14px;
  font-weight: 700;
}

.exam-feedback-toolbar select {
  min-width: 280px;
  min-height: 42px;
  padding: 0 38px 0 13px;
  border: 1px solid #d8cce0;
  border-radius: 10px;
  color: #3f185a;
  background: #fff;
  font-weight: 650;
}

.exam-feedback-toolbar > span {
  margin-right: auto;
  color: #6c5d75;
  font-size: 13px;
}

.exam-feedback-content {
  min-height: 0;
  padding: 32px;
  overflow: auto;
  background:
    radial-gradient(circle at 11% 4%, rgba(140, 104, 171, 0.13), transparent 24%),
    linear-gradient(#f4eff7, #ece5f1);
}

.exam-feedback-loading {
  display: grid;
  place-items: center;
  min-height: 360px;
  color: #6f6078;
  font-size: 16px;
}

.exam-feedback-loading.is-error {
  align-content: center;
  gap: 8px;
}

.exam-feedback-loading.is-error strong {
  color: var(--coral);
  font-size: 20px;
}

.exam-feedback-loading.is-error p {
  margin: 0;
}

.exam-feedback-paper {
  width: min(1080px, 100%);
  margin: 0 auto;
  border: 1px solid #ded4e4;
  border-radius: 20px;
  overflow: hidden;
  background: #fffefa;
  box-shadow: 0 20px 55px rgba(57, 31, 71, 0.14);
}

.exam-feedback-masthead {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 24px 44px;
  border-bottom: 1px solid #e5dce9;
}

.exam-feedback-masthead img {
  display: block;
  width: 158px;
  max-height: 52px;
  box-sizing: border-box;
  padding: 10px 16px;
  border-radius: 10px;
  object-fit: contain;
  object-position: left center;
  background: #512267;
}

.exam-feedback-masthead > div {
  display: grid;
  gap: 4px;
  padding-left: 20px;
  border-left: 1px solid #ddd0e4;
}

.exam-feedback-masthead > div strong {
  color: #3f185a;
  font-family: var(--display);
  font-size: 20px;
}

.exam-feedback-masthead small,
.exam-feedback-masthead > span {
  color: #72617b;
  font-size: 12px;
  line-height: 1.7;
}

.exam-feedback-masthead > span {
  text-align: right;
}

.exam-feedback-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 34px;
  align-items: center;
  padding: 50px 50px 44px;
  background:
    linear-gradient(120deg, rgba(246, 239, 250, 0.96), rgba(255, 254, 250, 0.96)),
    #fffefa;
}

.exam-feedback-title > span {
  color: #715884;
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.05em;
}

.exam-feedback-title h1 {
  max-width: 710px;
  margin: 10px 0 14px;
  color: #351544;
  font-family: var(--display);
  font-size: clamp(30px, 3.3vw, 46px);
  font-weight: 700;
  line-height: 1.3;
}

.exam-feedback-title p {
  max-width: 700px;
  margin: 0;
  color: #695970;
  font-size: 16px;
  line-height: 1.75;
}

.exam-feedback-score {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: center;
  width: 170px;
  height: 156px;
  padding: 24px;
  border: 3px solid #6e408d;
  border-radius: 48% 52% 45% 55%;
  color: #4d2265;
  transform: rotate(-2deg);
}

.exam-feedback-score::after {
  content: "";
  position: absolute;
  right: 3px;
  bottom: 17px;
  width: 76px;
  height: 3px;
  border-radius: 99px;
  background: currentColor;
  transform: rotate(-9deg);
}

.exam-feedback-score span {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 750;
}

.exam-feedback-score strong {
  font-family: var(--utility);
  font-size: 56px;
  line-height: 1;
}

.exam-feedback-score small {
  align-self: end;
  padding-bottom: 8px;
  font-family: var(--utility);
  font-size: 14px;
}

.exam-feedback-score.stable { color: #14745e; border-color: #31927c; }
.exam-feedback-score.progressing { color: #6b4384; border-color: #8d67a8; }
.exam-feedback-score.attention { color: #b24c47; border-color: #cf6c64; }

.exam-feedback-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid #e3d9e7;
  background: #fff;
}

.exam-feedback-facts article {
  display: grid;
  gap: 3px;
  padding: 19px 28px;
  border-right: 1px solid #e8e0eb;
}

.exam-feedback-facts article:last-child {
  border-right: 0;
}

.exam-feedback-facts span,
.exam-feedback-facts small {
  color: #75647d;
  font-size: 12px;
}

.exam-feedback-facts strong {
  color: #3f185a;
  font-family: var(--utility);
  font-size: 23px;
}

.exam-feedback-section {
  padding: 42px 50px;
  border-bottom: 1px solid #e5dce9;
}

.exam-feedback-section-heading {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 24px;
}

.exam-feedback-section-heading > span {
  width: max-content;
  padding: 7px 10px;
  border: 1px solid #cdbbd7;
  border-radius: 8px;
  color: #654279;
  background: #f5eef8;
  font-size: 13px;
  font-weight: 800;
}

.exam-feedback-section-heading h2 {
  margin: 0;
  color: #351544;
  font-family: var(--display);
  font-size: 25px;
}

.exam-feedback-section-heading p {
  margin: 6px 0 0;
  color: #75647d;
  font-size: 14px;
  line-height: 1.65;
}

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

.exam-module-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 17px;
  border: 1px solid #e1d7e6;
  border-radius: 13px;
  background: #fff;
}

.exam-module-card > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.exam-module-card > div span {
  overflow: hidden;
  font-size: 14px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.exam-module-card em {
  flex: 0 0 auto;
  padding: 3px 6px;
  border-radius: 6px;
  color: #765f81;
  background: #f2edf5;
  font-size: 11px;
  font-style: normal;
}

.exam-module-card > strong {
  color: #3f185a;
  font-family: var(--utility);
  font-size: 26px;
}

.exam-module-card > strong small {
  color: #817088;
  font-size: 13px;
}

.exam-module-card > i {
  height: 7px;
  border-radius: 99px;
  overflow: hidden;
  background: #ece5ef;
}

.exam-module-card > i b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8b65a4;
}

.exam-module-card.stable > i b { background: #299078; }
.exam-module-card.attention > i b { background: #d0665e; }

.exam-module-card p {
  margin: 0;
  color: #75647d;
  font-size: 12px;
}

.exam-module-card .exam-module-comment {
  color: #4b3159;
  font-size: 13px;
  line-height: 1.6;
}

.exam-module-next,
.exam-module-compare {
  display: block;
  color: #75647d;
  font-size: 12px;
  line-height: 1.55;
}

.exam-module-next b {
  display: inline-block;
  margin-right: 5px;
  color: #68418a;
  font-weight: 800;
}

.exam-module-compare {
  padding-top: 8px;
  border-top: 1px dashed #e5dce9;
  color: #816b8c;
}

.english-analysis-summary {
  display: grid;
  gap: 7px;
  margin: -4px 0 18px;
  padding: 15px 17px;
  border: 1px solid #dbc9e4;
  border-radius: 12px;
  background: linear-gradient(135deg, #fbf8fd 0%, #f4edf9 100%);
}

.english-analysis-summary > div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.english-analysis-summary span {
  color: #74458f;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.english-analysis-summary strong {
  color: #3f185a;
  font-size: 15px;
}

.english-analysis-summary small {
  color: #75647d;
  font-size: 12px;
  line-height: 1.55;
}

.exam-raw-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.exam-raw-module {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 11px;
  background: #f5eff8;
}

.exam-raw-module span,
.exam-raw-module small {
  color: #74627c;
  font-size: 12px;
}

.exam-raw-module strong {
  color: #4c2861;
  font-family: var(--utility);
  font-size: 19px;
}

.exam-feedback-data-note {
  margin: 14px 0 0;
  padding: 11px 13px;
  border-left: 3px solid #8c69a4;
  color: #685772;
  background: #f8f4fa;
  font-size: 13px;
  line-height: 1.65;
}

.exam-diagnosis-section {
  background: #fffcf8;
}

.exam-diagnosis-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.exam-diagnosis-columns > div {
  padding: 19px;
  border: 1px solid #e4dae8;
  border-radius: 14px;
  background: #fff;
}

.exam-diagnosis-columns > div > span {
  display: block;
  margin-bottom: 11px;
  color: #60406f;
  font-size: 13px;
  font-weight: 800;
}

.exam-diagnosis-columns ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.exam-diagnosis-columns li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #f8f4fa;
}

.exam-diagnosis-columns li > i {
  display: grid;
  place-items: center;
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  color: #fff;
  background: #76508c;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.exam-diagnosis-columns li:nth-child(n) > span {
  display: grid;
  gap: 3px;
}

.exam-diagnosis-columns li strong {
  color: #3f2850;
  font-size: 14px;
}

.exam-diagnosis-columns li small {
  color: #796a80;
  font-size: 12px;
}

.exam-diagnosis-columns li.is-neutral > i {
  background: #918697;
}

.exam-transfer-section {
  background: #f6f0f8;
}

.exam-transfer-line {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.exam-transfer-line::before {
  content: "";
  position: absolute;
  top: 20px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: #cbb9d5;
}

.exam-transfer-line article {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 11px;
  align-items: start;
}

.exam-transfer-line article > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid #f6f0f8;
  border-radius: 50%;
  color: #fff;
  background: #684080;
  font-family: var(--utility);
  font-size: 14px;
  font-weight: 800;
}

.exam-transfer-line article > div {
  padding-top: 2px;
}

.exam-transfer-line small {
  color: #806a8b;
  font-size: 11px;
  font-weight: 800;
}

.exam-transfer-line strong {
  display: block;
  margin: 2px 0 5px;
  color: #3b2049;
  font-size: 15px;
}

.exam-transfer-line p {
  margin: 0;
  color: #6f6077;
  font-size: 12px;
  line-height: 1.65;
}

.exam-teacher-note > div:last-child {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-radius: 14px;
  color: #fff;
  background: #4b2265;
}

.exam-teacher-note > div:last-child > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 15px;
  font-family: var(--display);
  font-size: 22px;
}

.exam-teacher-note > div:last-child p {
  margin: 0;
  color: #fff;
  font-size: 15px;
  line-height: 1.8;
}

.exam-feedback-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 50px;
  color: #76657d;
  background: #faf7fb;
  font-size: 12px;
}

.exam-feedback-footer strong {
  max-width: 580px;
  text-align: right;
}

.student-detail-actions {
  display: grid;
  gap: 8px;
}

@media (max-width: 760px) {
  .exam-feedback-dialog {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }

  .exam-feedback-header,
  .exam-feedback-toolbar {
    padding-inline: 18px;
  }

  .exam-feedback-header h2 {
    font-size: 24px;
  }

  .exam-feedback-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .exam-feedback-toolbar label,
  .exam-feedback-toolbar select {
    width: 100%;
  }

  .exam-feedback-toolbar > span {
    margin-right: 0;
  }

  .exam-feedback-content {
    padding: 14px;
  }

  .exam-feedback-masthead {
    grid-template-columns: 1fr auto;
    padding: 20px;
  }

  .exam-feedback-masthead img {
    width: 132px;
  }

  .exam-feedback-masthead > div {
    display: none;
  }

  .exam-feedback-hero {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }

  .exam-feedback-score {
    width: 150px;
    height: 132px;
  }

  .exam-feedback-score strong {
    font-size: 48px;
  }

  .exam-feedback-facts,
  .exam-diagnosis-columns,
  .exam-transfer-line {
    grid-template-columns: 1fr;
  }

  .exam-feedback-facts article {
    border-right: 0;
    border-bottom: 1px solid #e8e0eb;
  }

  .exam-feedback-section {
    padding: 30px 22px;
  }

  .exam-feedback-section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .exam-transfer-line::before {
    top: 8%;
    bottom: 8%;
    left: 19px;
    width: 2px;
    height: auto;
  }

  .exam-feedback-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 22px;
  }

  .exam-feedback-footer strong {
    text-align: left;
  }
}

@media print {
  body:has(.exam-feedback-dialog[open]) {
    background: #fff !important;
  }

  body:has(.exam-feedback-dialog[open]) .prototype-header,
  body:has(.exam-feedback-dialog[open]) .student-stage,
  body:has(.exam-feedback-dialog[open]) .teacher-stage,
  body:has(.exam-feedback-dialog[open]) .mini-app,
  body:has(.exam-feedback-dialog[open]) dialog:not(.exam-feedback-dialog),
  body:has(.exam-feedback-dialog[open]) .exam-feedback-header,
  body:has(.exam-feedback-dialog[open]) .exam-feedback-toolbar {
    display: none !important;
  }

  .exam-feedback-dialog[open] {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .exam-feedback-shell {
    display: block;
  }

  .exam-feedback-content {
    padding: 0;
    overflow: visible;
    background: #fff;
  }

  .exam-feedback-paper {
    width: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

/* English weekly check-in workbench */
.english-cloze-dialog {
  width: min(1440px, calc(100vw - 28px));
  background: #f3f7f8;
}

.english-checkin-shell {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  height: min(900px, calc(100dvh - 28px));
  min-height: 720px;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.english-checkin-header {
  padding: 22px 28px 18px;
  background: #fdfefe;
}

.english-checkin-header .eyebrow {
  color: #2d807b;
  letter-spacing: 0.09em;
}

.checkin-workflow-rail {
  display: grid;
  grid-template-columns: auto minmax(30px, 1fr) auto minmax(30px, 1fr) auto;
  align-items: center;
  padding: 12px 28px;
  border-bottom: 1px solid #d8e3e5;
  background: #eaf2f3;
}

.checkin-workflow-rail > b {
  height: 1px;
  margin: 0 15px;
  background: #bdced0;
}

.checkin-workflow-rail button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  border: 0;
  color: #738487;
  background: transparent;
  text-align: left;
}

.checkin-workflow-rail button i {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid #b8c9cc;
  border-radius: 50%;
  background: #f7fbfb;
  font-family: var(--utility);
  font-size: 12px;
  font-style: normal;
}

.checkin-workflow-rail button span {
  display: grid;
  gap: 1px;
}

.checkin-workflow-rail button strong {
  font-size: 13px;
}

.checkin-workflow-rail button small {
  font-size: 10px;
  font-weight: 500;
}

.checkin-workflow-rail button.is-active,
.checkin-workflow-rail button.is-complete {
  color: #174f50;
}

.checkin-workflow-rail button.is-active i,
.checkin-workflow-rail button.is-complete i {
  border-color: #267f7a;
  color: #fff;
  background: #267f7a;
}

.english-checkin-body {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  min-height: 0;
}

.checkin-task-pane {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-height: 0;
  padding: 18px 14px;
  border-right: 1px solid #d8e3e5;
  background: #173e48;
  color: #fff;
}

.checkin-task-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px 14px;
}

.checkin-task-heading > div {
  display: grid;
  gap: 2px;
}

.checkin-task-heading span,
.checkin-task-heading strong {
  font-size: 12px;
}

.checkin-task-heading span {
  color: #a9c4c8;
}

.checkin-task-heading button {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  color: #fff;
  background: rgba(255,255,255,.07);
  font-size: 12px;
}

.checkin-task-list {
  display: grid;
  align-content: start;
  gap: 8px;
  overflow: auto;
}

.checkin-task-list > p {
  margin: 18px 4px;
  color: #a9c4c8;
  font-size: 12px;
  line-height: 1.6;
}

.checkin-task-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 11px;
  color: #dfecee;
  background: rgba(255,255,255,.04);
  text-align: left;
}

.checkin-task-card:hover,
.checkin-task-card.is-active {
  border-color: #75bbb5;
  background: rgba(92,173,165,.17);
}

.checkin-task-card > span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #9fc0c3;
  font-size: 10px;
}

.checkin-task-card strong {
  color: #fff;
  font-size: 13px;
  line-height: 1.45;
}

.checkin-task-card small {
  color: #b8cdd0;
  font-size: 11px;
}

.checkin-type-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  border-top: 1px solid rgba(255,255,255,.13);
}

.checkin-type-note > i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #173e48;
  background: #c6e4df;
  font-family: "Microsoft YaHei", sans-serif;
  font-style: normal;
  font-weight: 800;
}

.checkin-type-note p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.checkin-type-note strong {
  font-size: 11px;
}

.checkin-type-note span {
  color: #a9c4c8;
  font-size: 10px;
  line-height: 1.5;
}

.checkin-stage-pane {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #f5f8f8;
}

.checkin-stage {
  height: 100%;
  padding: 22px 26px 26px;
  overflow: auto;
}

.checkin-stage[hidden] {
  display: none;
}

.checkin-stage-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.checkin-stage-heading h3 {
  margin: 5px 0 0;
  color: #173e48;
  font-size: 25px;
  letter-spacing: -0.02em;
}

.checkin-stage-heading p {
  margin: 5px 0 0;
  color: #6d8083;
  font-size: 12px;
}

.checkin-stage-heading > em {
  padding: 5px 9px;
  border-radius: 99px;
  color: #287771;
  background: #e1f0ed;
  font-size: 11px;
  font-style: normal;
}

.checkin-meta-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr .7fr .7fr 1fr 1fr .9fr;
  gap: 10px;
  margin-bottom: 15px;
}

.checkin-meta-grid .span-2 {
  grid-column: span 2;
}

.checkin-meta-grid label {
  display: grid;
  gap: 6px;
  color: #667b7e;
  font-size: 11px;
  font-weight: 700;
}

.checkin-meta-grid input,
.checkin-meta-grid select {
  width: 100%;
  min-height: 41px;
  padding: 0 10px;
  border: 1px solid #ccdadd;
  border-radius: 8px;
  color: #173e48;
  background: #fff;
  font: 13px "Microsoft YaHei", sans-serif;
}

.checkin-source-block {
  padding: 18px;
  border: 1px solid #ccdadd;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23,62,72,.05);
}

.checkin-source-toolbar,
.checkin-source-foot,
.checkin-review-footer,
.english-cloze-publish {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.checkin-source-toolbar > div {
  display: grid;
  gap: 3px;
}

.checkin-source-toolbar strong {
  color: #173e48;
  font-size: 14px;
}

.checkin-source-toolbar small {
  color: #7b8e91;
  font-size: 11px;
}

.checkin-file-button {
  padding: 8px 11px;
  border: 1px solid #a9c7c6;
  border-radius: 8px;
  color: #246c68;
  background: #f0f8f6;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.checkin-file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.checkin-source-block textarea {
  width: 100%;
  min-height: 310px;
  margin: 14px 0 12px;
  padding: 15px 17px;
  resize: vertical;
  border: 1px solid #d5e0e2;
  border-radius: 10px;
  color: #173e48;
  background: #fbfdfd;
  font: 15px/1.75 "Times New Roman", "Microsoft YaHei", serif;
}

.checkin-source-foot {
  color: #7b8e91;
  font-size: 12px;
}

.text-action {
  padding: 0;
  border: 0;
  color: #267f7a;
  background: transparent;
  font-weight: 700;
}

.review-heading > div:last-child,
.preview-heading > div:last-child {
  display: flex;
  gap: 8px;
}

.checkin-review-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.checkin-review-summary > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 12px;
  border: 1px solid #d8e3e5;
  border-radius: 9px;
  background: #fff;
}

.checkin-review-summary span {
  color: #74878a;
  font-size: 11px;
}

.checkin-review-summary strong {
  color: #173e48;
  font-family: var(--utility);
  font-size: 18px;
}

.checkin-day-filter {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}

.checkin-day-filter button {
  padding: 7px 11px;
  border: 1px solid #c9d8da;
  border-radius: 8px;
  color: #677b7e;
  background: #fff;
  font-size: 11px;
}

.checkin-day-filter button.is-active {
  border-color: #267f7a;
  color: #fff;
  background: #267f7a;
}

.checkin-review-table-head,
.checkin-review-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.15fr) 105px minmax(200px, 1.4fr) minmax(150px, .9fr) 72px;
  gap: 10px;
  align-items: center;
}

.checkin-review-table-head {
  padding: 8px 13px;
  color: #708386;
  font-size: 10px;
  font-weight: 800;
}

.checkin-review-list {
  display: grid;
  gap: 6px;
}

.checkin-day-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 2px 3px;
  color: #2b7672;
  font-size: 11px;
  font-weight: 800;
}

.checkin-day-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #cbdcdd;
}

.checkin-review-row {
  padding: 10px 12px;
  border: 1px solid #d8e3e5;
  border-left: 3px solid #6da7a2;
  border-radius: 9px;
  background: #fff;
}

.checkin-review-row.has-warning {
  border-left-color: #d8a335;
  background: #fffaf0;
}

.checkin-review-row.is-locked {
  border-left-color: #2a9274;
  background: #f4faf8;
}

.checkin-word-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.checkin-word-cell strong {
  overflow: hidden;
  color: #173e48;
  font: 700 16px "Times New Roman", serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkin-word-cell small,
.checkin-reason {
  color: #788b8e;
  font-size: 10px;
  line-height: 1.35;
}

.checkin-review-row input,
.checkin-review-row select {
  width: 100%;
  min-height: 35px;
  padding: 0 8px;
  border: 1px solid #cedbde;
  border-radius: 7px;
  color: #254d54;
  background: #fff;
  font: 12px "Microsoft YaHei", sans-serif;
}

.checkin-review-row input[data-item-field="partOfSpeech"] {
  font-family: "Times New Roman", serif;
}

.checkin-direction-cell {
  display: grid;
  gap: 4px;
}

.checkin-lock-button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin: auto;
  border: 1px solid #bfd0d2;
  border-radius: 50%;
  color: #789093;
  background: #fff;
  font-size: 14px;
}

.checkin-review-row.is-locked .checkin-lock-button {
  border-color: #27836f;
  color: #fff;
  background: #27836f;
}

.checkin-review-footer {
  position: sticky;
  bottom: -26px;
  z-index: 2;
  margin: 16px -26px -26px;
  padding: 13px 26px;
  border-top: 1px solid #ccdadd;
  background: rgba(250,252,252,.96);
  backdrop-filter: blur(8px);
}

.checkin-review-footer span {
  color: #527074;
  font-size: 12px;
  font-weight: 700;
}

.checkin-preview-tabs {
  display: flex;
  gap: 7px;
  margin-bottom: 12px;
}

.checkin-preview-tabs button {
  padding: 8px 12px;
  border: 1px solid #cbd9db;
  border-radius: 8px;
  color: #687c7f;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
}

.checkin-preview-tabs button.is-active {
  border-color: #173e48;
  color: #fff;
  background: #173e48;
}

.checkin-paper-canvas {
  display: grid;
  place-items: start center;
  min-height: 620px;
  padding: 26px;
  border: 1px solid #d0dcde;
  border-radius: 12px;
  background: #dfe7e8;
  overflow: auto;
}

.checkin-print-page {
  width: min(794px, 100%);
  min-height: 1123px;
  box-sizing: border-box;
  padding: 71px clamp(24px, 14.2%, 113px) 59px;
  color: #111;
  background: #fff;
  box-shadow: 0 12px 35px rgba(23,62,72,.14);
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.checkin-print-page + .checkin-print-page {
  padding-top: 94px;
}

.checkin-print-page h4 {
  margin: 0 0 13px;
  color: #000;
  text-align: center;
  font: 700 14.5pt/1.2 "Times New Roman", "Microsoft YaHei", serif;
}

.checkin-paper-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  color: #000;
  border: 1px solid #a6a6a6;
  font-family: "Microsoft YaHei", "微软雅黑", sans-serif;
}

.checkin-paper-table .col-day { width: 7.647%; }
.checkin-paper-table .col-english { width: 48.824%; }
.checkin-paper-table .col-pos { width: 15.294%; }
.checkin-paper-table .col-chinese { width: 28.235%; }

.checkin-paper-table th,
.checkin-paper-table td {
  border: 1px solid #a6a6a6;
  box-sizing: border-box;
  overflow-wrap: anywhere;
}

.checkin-paper-table th {
  height: 29px;
  padding: 3px 5px;
  text-align: left;
  vertical-align: middle;
  font: 700 10pt/1.2 "Microsoft YaHei", "微软雅黑", sans-serif;
}

.checkin-paper-table td {
  height: 26px;
  padding: 1px 5px;
  background: #f2f2f2;
  vertical-align: middle;
  line-height: 1.2;
}

.checkin-paper-table .checkin-day-cell {
  padding: 1px 2px;
  text-align: center;
  vertical-align: top;
  font: 700 9pt/1.2 "Times New Roman", "Microsoft YaHei", serif;
}

.checkin-paper-table .english-word {
  font: 700 11pt/1.2 "Times New Roman", "Microsoft YaHei", serif;
}

.checkin-paper-table .checkin-pos {
  font: 9pt/1.2 "Times New Roman", "Microsoft YaHei", serif;
}

.checkin-paper-table .chinese-meaning {
  font: 9.5pt/1.2 "Microsoft YaHei", "微软雅黑", sans-serif;
}

.checkin-paper-table .is-answer {
  color: #ff0000;
  font-weight: 700;
  text-decoration: underline;
}

.checkin-paper-table .is-blank {
  font-weight: 400;
}

.english-cloze-publish {
  margin-top: 10px;
  color: #687c7f;
  font-size: 11px;
}

.english-cloze-publish em {
  color: #287b72;
  font-style: normal;
}

@media (max-width: 1050px) {
  .checkin-meta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .checkin-review-table-head,
  .checkin-review-row {
    grid-template-columns: minmax(150px, 1fr) 90px minmax(180px, 1.2fr) minmax(135px, .8fr) 55px;
  }
}

@media (max-width: 760px) {
  .english-checkin-shell {
    height: 100dvh;
    min-height: 0;
  }

  .checkin-workflow-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    padding: 9px 14px;
  }

  .checkin-workflow-rail > b,
  .checkin-workflow-rail button small,
  .checkin-task-pane,
  .checkin-review-table-head {
    display: none;
  }

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

  .checkin-stage {
    padding: 18px;
  }

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

  .checkin-meta-grid .span-2 {
    grid-column: span 2;
  }

  .checkin-review-row {
    grid-template-columns: minmax(140px, 1fr) 85px 42px;
  }

  .checkin-review-row > input[data-item-field="chinese"] {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .checkin-direction-cell {
    grid-column: 1 / 3;
  }

  .checkin-review-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .review-heading,
  .preview-heading,
  .checkin-source-foot {
    align-items: stretch;
    flex-direction: column;
  }
}

@media print {
  body:has(.english-cloze-dialog[open]) > *:not(.prototype-shell),
  body:has(.english-cloze-dialog[open]) .prototype-header,
  body:has(.english-cloze-dialog[open]) .student-stage,
  body:has(.english-cloze-dialog[open]) .teacher-stage,
  body:has(.english-cloze-dialog[open]) .mini-app,
  body:has(.english-cloze-dialog[open]) dialog:not(.english-cloze-dialog),
  body:has(.english-cloze-dialog[open]) .english-checkin-header,
  body:has(.english-cloze-dialog[open]) .checkin-workflow-rail,
  body:has(.english-cloze-dialog[open]) .checkin-task-pane,
  body:has(.english-cloze-dialog[open]) .preview-heading,
  body:has(.english-cloze-dialog[open]) .checkin-preview-tabs,
  body:has(.english-cloze-dialog[open]) .english-cloze-publish {
    display: none !important;
  }

  .english-cloze-dialog[open] {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
  }

  .english-checkin-shell,
  .english-checkin-body,
  .checkin-stage-pane,
  .checkin-stage[data-checkin-stage="preview"] {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
    background: #fff;
  }

  .checkin-paper-canvas {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    background: #fff;
    overflow: visible;
  }

  .checkin-print-page {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-shadow: none;
  }

  .checkin-print-page + .checkin-print-page {
    padding-top: 6mm;
  }

  .checkin-print-page + .checkin-print-page {
    break-before: page;
    page-break-before: always;
  }
}

/* Final lesson workspace cascade guard */
.teacher-main {
  display: flex !important;
  flex-direction: column !important;
}

.teacher-main > .teacher-header { order: 0 !important; }
.teacher-main > .teacher-schedule-home { order: 1 !important; }
.teacher-main > .teacher-lesson-home { order: 2 !important; }
.teacher-main > .teacher-action-home { order: 3 !important; }

.teacher-lesson-home,
.lesson-workspace-dialog,
.mini-published-feed {
  isolation: isolate;
}

/* Lesson workspace assessment + homework center flow */
.lesson-material-tabs { overflow-x: auto; scrollbar-width: thin; }
.lesson-material-tab { white-space: nowrap; }
.lesson-material-preview[hidden] { display: none !important; }
.lesson-homework-preview,
.lesson-assessment-preview { min-height: 480px; max-height: 590px; overflow: auto; padding-right: 4px; }
.lesson-panel-heading,
.lesson-assessment-toolbar,
.lesson-assessment-result-heading,
.lesson-homework-question-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.lesson-panel-heading h3,
.lesson-assessment-toolbar h3 { margin: 4px 0 5px; color: var(--ink); font: 700 1.18rem/1.2 var(--display); }
.lesson-assessment-toolbar p { max-width: 52ch; margin: 0; color: var(--ink-soft); font-size: .78rem; line-height: 1.55; }
.lesson-panel-state,
.lesson-rail-status { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; background: #f5eff8; color: var(--brand-action); font-size: .72rem; font-weight: 800; white-space: nowrap; }
.lesson-panel-state.is-ready,
.lesson-rail-status.is-ready { background: var(--jade-soft); color: var(--jade); }
.lesson-homework-materials { margin: 16px 0; }
.lesson-homework-source { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(22, 138, 107, .18); border-radius: 12px; background: #f5fbf8; }
.lesson-homework-source.is-empty { border-color: #eadfbe; background: #fcfaf4; }
.lesson-homework-source strong { color: var(--ink); font-size: .82rem; }
.lesson-homework-source small { color: var(--ink-soft); font-size: .73rem; line-height: 1.45; }
.lesson-homework-panel form { display: grid; gap: 14px; margin-top: 18px; }
.lesson-homework-panel label,
.lesson-assessment-form-grid label { display: grid; gap: 7px; color: var(--ink-soft); font-size: .76rem; font-weight: 700; }
.lesson-homework-panel input,
.lesson-homework-panel textarea,
.lesson-homework-panel select,
.lesson-assessment-form-grid input,
.lesson-assessment-form-grid textarea,
.lesson-assessment-form-grid select { width: 100%; min-height: 42px; box-sizing: border-box; border: 1px solid #d8cde0; border-radius: 10px; background: #fff; color: var(--ink); font: inherit; padding: 10px 11px; }
.lesson-homework-panel textarea { resize: vertical; }
.lesson-homework-panel input:focus,
.lesson-homework-panel textarea:focus,
.lesson-homework-panel select:focus,
.lesson-assessment-form-grid input:focus,
.lesson-assessment-form-grid textarea:focus,
.lesson-assessment-form-grid select:focus { outline: 3px solid rgba(22, 138, 107, .18); border-color: var(--jade); }
.lesson-homework-form-grid,
.lesson-assessment-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lesson-homework-question-heading { align-items: baseline; margin-top: 2px; }
.lesson-homework-question-heading strong { color: var(--ink); font-size: .84rem; }
.lesson-homework-question-heading small { color: var(--ink-soft); font-size: .73rem; }
.lesson-action-section .lesson-rail-status { margin: -2px 0 14px 48px; }
.lesson-rail-jump { width: 100%; }
.lesson-assessment-rail-section { background: linear-gradient(135deg, #fff, #fbf8fd); }
.lesson-assessment-form-grid { margin-top: 18px; }
.lesson-assessment-source { margin: 14px 0; padding: 11px 15px; border: 1px solid rgba(22, 138, 107, .18); border-radius: 10px; box-shadow: inset 3px 0 0 var(--jade); background: #f5fbf8; color: var(--ink-soft); font-size: .75rem; line-height: 1.45; }
.lesson-assessment-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.lesson-assessment-result { display: grid; gap: 12px; margin-top: 18px; }
.lesson-assessment-result-heading { align-items: center; }
.lesson-assessment-result-heading strong,
.lesson-assessment-result-heading small { display: block; }
.lesson-assessment-result-heading strong { color: var(--ink); font-size: .88rem; }
.lesson-assessment-result-heading small { margin-top: 3px; color: var(--ink-soft); font-size: .72rem; }
.lesson-assessment-question-list { display: grid; gap: 7px; max-height: 215px; overflow: auto; padding-right: 3px; }
.lesson-assessment-question { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: start; gap: 9px; padding: 9px 10px; border: 1px solid #e6dce9; border-radius: 10px; background: #fcfbfd; }
.lesson-assessment-question > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--brand-pale); color: var(--brand-action); font-size: .68rem; font-weight: 800; }
.lesson-assessment-question strong,
.lesson-assessment-question small { display: block; }
.lesson-assessment-question strong { color: var(--ink); font-size: .75rem; line-height: 1.35; }
.lesson-assessment-question small { margin-top: 3px; color: var(--ink-soft); font-size: .68rem; }
.lesson-assessment-question em { color: var(--jade); font-size: .68rem; font-style: normal; font-weight: 800; }
.lesson-assessment-pdf-wrap { min-height: 420px; overflow: hidden; border: 1px solid #d8cde0; border-radius: 14px; background: #f4eef7; }
.lesson-assessment-pdf { display: block; width: 100%; height: 520px; border: 0; background: #fff; }
.lesson-feedback-pdf-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.lesson-feedback-pdf-actions .text-action { font-size: .72rem; }
.lesson-feedback-pdf-name { flex-basis: 100%; color: var(--ink-soft); font-size: .66rem; line-height: 1.35; overflow-wrap: anywhere; }
.lesson-feedback-pdf-preview { margin-top: 12px; overflow: hidden; border: 1px solid #d8cde0; border-radius: 12px; background: #f4eef7; }
.lesson-feedback-pdf-preview iframe { display: block; width: 100%; height: 360px; border: 0; background: #fff; }
@media (max-width: 780px) {
  .lesson-homework-preview,
  .lesson-assessment-preview { max-height: none; padding-right: 0; }
  .lesson-homework-form-grid,
  .lesson-assessment-form-grid { grid-template-columns: 1fr; }
  .lesson-panel-heading,
  .lesson-assessment-toolbar,
  .lesson-assessment-result-heading { flex-direction: column; align-items: stretch; }
  .lesson-panel-state,
  .lesson-rail-status { align-self: flex-start; }
  .lesson-assessment-pdf-wrap { min-height: 360px; }
  .lesson-assessment-pdf { height: 460px; }
  .lesson-feedback-pdf-preview iframe { height: 420px; }
  .lesson-action-section .lesson-rail-status { margin-left: 0; }
}

/* Growth portfolio: connects lesson evidence to the printable five-page handbook. */
.growth-portfolio-launch {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px 28px;
  margin: 14px 18px 0;
  padding: 24px 26px 20px;
  border: 1px solid #d9d4e0;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(50, 16, 71, .08);
}

.growth-portfolio-copy h3 {
  max-width: 760px;
  margin: 10px 0 8px;
  color: #231c28;
  font-family: var(--body);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.28;
  letter-spacing: -.025em;
}

.growth-portfolio-copy > p {
  max-width: 760px;
  margin: 0;
  color: #5d5662;
  font-size: .86rem;
  line-height: 1.7;
}

.growth-portfolio-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f1eff8;
  color: #5856d6;
  font-size: .73rem;
  font-weight: 800;
}

.growth-portfolio-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 18px;
  color: #6d6671;
  font-size: .74rem;
}

.growth-portfolio-facts span {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  min-height: 28px;
  padding: 2px 18px;
  border-left: 1px solid #e3e0e7;
}

.growth-portfolio-facts span:first-child { padding-left: 0; border-left: 0; }
.growth-portfolio-facts strong { color: #231c28; font-size: 1rem; font-variant-numeric: tabular-nums; }

.growth-portfolio-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 9px;
}

.growth-portfolio-actions .text-action { align-self: center; font-size: .74rem; }
.growth-portfolio-actions .text-action[hidden] { display: none !important; }
.growth-portfolio-actions button { min-height: 42px; }

.growth-portfolio-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  color: #68606d;
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
}

.growth-portfolio-state i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c18b36;
  box-shadow: 0 0 0 5px #fbf2df;
}

.growth-portfolio-state.is-ready { color: #14745b; }
.growth-portfolio-state.is-ready i { background: var(--jade); box-shadow: 0 0 0 5px var(--jade-soft); }

.growth-lesson-rail {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding-top: 2px;
}

.growth-lesson-rail::before {
  position: absolute;
  top: 14px;
  right: 6%;
  left: 6%;
  height: 1px;
  background: #ded9e3;
  content: "";
}

.growth-lesson-point {
  position: relative;
  min-width: 0;
  padding-top: 30px;
  color: #7a727f;
  text-align: center;
}

.growth-lesson-point::before {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 50%;
  width: 13px;
  height: 13px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #5856d6;
  box-shadow: 0 0 0 1px #d9d4e0;
  content: "";
  transform: translateX(-50%);
}

.growth-lesson-point.is-improved::before { background: var(--jade); }
.growth-lesson-point strong,
.growth-lesson-point small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.growth-lesson-point strong { color: #312638; font-size: .75rem; }
.growth-lesson-point small { margin-top: 4px; font-size: .66rem; }

.growth-portfolio-dialog {
  width: min(1480px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 24px;
  background: #f5f5f7;
  color: #1d1d1f;
  box-shadow: 0 30px 90px rgba(22, 15, 27, .28);
}

.growth-portfolio-dialog::backdrop { background: rgba(32, 20, 38, .54); backdrop-filter: blur(5px); }

.growth-portfolio-shell { display: flex; min-height: min(900px, calc(100vh - 28px)); flex-direction: column; }

.growth-portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  border-bottom: 1px solid #dedee3;
  background: rgba(255, 255, 255, .96);
}

.growth-portfolio-header h2 { margin: 9px 0 4px; color: #1d1d1f; font-family: var(--body); font-size: 1.45rem; letter-spacing: -.025em; }
.growth-portfolio-header p { margin: 0; color: #6e6e73; font-size: .78rem; }
.growth-portfolio-header-actions { display: flex; align-items: center; gap: 10px; }

.growth-portfolio-body {
  display: grid;
  min-height: 0;
  flex: 1;
  grid-template-columns: 340px minmax(0, 1fr);
}

.growth-portfolio-index {
  min-height: 0;
  overflow: auto;
  padding: 22px;
  border-right: 1px solid #dedee3;
  background: #fff;
  scrollbar-color: #c7c7cc transparent;
  scrollbar-width: thin;
}

.growth-student-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; padding-bottom: 18px; border-bottom: 1px solid #e5e5ea; }
.growth-student-avatar { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 16px; background: #f1eff8; color: #5856d6; font-weight: 900; }
.growth-student-card strong,
.growth-student-card small { display: block; }
.growth-student-card strong { color: #1d1d1f; font-size: .98rem; }
.growth-student-card small { margin-top: 4px; color: #86868b; font-size: .68rem; }
.growth-student-card em { grid-column: 2; color: #248a3d; font-size: .68rem; font-style: normal; font-weight: 800; }

.growth-portfolio-index section { margin-top: 24px; }
.growth-portfolio-index h3 { margin: 0 0 12px; color: #1d1d1f; font-family: var(--body); font-size: .88rem; }
.growth-portfolio-traces { display: grid; gap: 0; }
.growth-trace-item { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 10px; padding: 0 0 18px; }
.growth-trace-item:not(:last-child)::after { position: absolute; top: 30px; bottom: 4px; left: 15px; width: 1px; background: #dedee3; content: ""; }
.growth-trace-date { display: grid; width: 31px; height: 31px; place-items: center; border-radius: 10px; background: #f2f2f7; color: #5856d6; font-size: .65rem; font-weight: 800; }
.growth-trace-item strong,
.growth-trace-item small { display: block; }
.growth-trace-item strong { color: #2c2c2e; font-size: .76rem; line-height: 1.35; }
.growth-trace-item small { margin-top: 3px; color: #86868b; font-size: .65rem; line-height: 1.4; }
.growth-trace-item em { color: #248a3d; font-size: .68rem; font-style: normal; font-weight: 800; white-space: nowrap; }

.growth-module-bars { display: grid; gap: 12px; }
.growth-module-bar { display: grid; grid-template-columns: 72px minmax(0, 1fr) 34px; align-items: center; gap: 8px; color: #636366; font-size: .68rem; }
.growth-module-bar i { height: 6px; overflow: hidden; border-radius: 999px; background: #eeeef2; }
.growth-module-bar b { display: block; height: 100%; border-radius: inherit; background: #5856d6; }
.growth-module-bar strong { color: #1d1d1f; font-variant-numeric: tabular-nums; text-align: right; }
.growth-data-note { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid #e5e5ea; color: #86868b; font-size: .66rem; line-height: 1.6; }

.growth-portfolio-preview { display: flex; min-width: 0; min-height: 0; flex-direction: column; padding: 18px; background: #ececf1; }
.growth-preview-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 4px 12px; }
.growth-preview-heading strong,
.growth-preview-heading small { display: block; }
.growth-preview-heading strong { color: #1d1d1f; font-size: .86rem; }
.growth-preview-heading small { margin-top: 3px; color: #6e6e73; font-size: .68rem; }
.growth-preview-heading > span { color: #248a3d; font-size: .7rem; font-weight: 800; }
.growth-portfolio-preview iframe { width: 100%; min-height: 640px; flex: 1; border: 0; border-radius: 16px; background: #fff; box-shadow: 0 12px 28px rgba(0, 0, 0, .1); }

@media (max-width: 980px) {
  .growth-portfolio-launch { grid-template-columns: 1fr; }
  .growth-portfolio-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .growth-portfolio-state,
  .growth-portfolio-actions .text-action { grid-column: 1 / -1; }
  .growth-portfolio-body { grid-template-columns: 290px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .teacher-header-actions .mobile-only-action { display: inline-flex; }
  .teacher-header-actions .dark-action { grid-column: auto; }

  .report-studio-shell {
    display: block;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .report-studio-header {
    position: relative;
    align-items: flex-start;
    padding: 18px 72px 16px 20px;
  }

  .report-studio-header > div { min-width: 0; }
  .report-studio-header h2 { font-size: 1.7rem; line-height: 1.18; }
  .report-studio-header .dialog-close { position: absolute; top: 18px; right: 16px; }

  .report-studio-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
    padding: 12px;
    overflow-x: hidden;
  }

  .report-studio-toolbar > label { min-width: 0; }
  .report-studio-toolbar select { width: 100%; min-width: 0; }
  .report-studio-toolbar .report-draft-state {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: center;
  }
  .report-studio-toolbar button { width: 100%; }

  .report-studio-grid { display: block; }
  .report-studio-grid > * {
    min-height: auto;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .growth-portfolio-launch { margin: 12px; padding: 20px 18px; border-radius: 18px; }
  .growth-portfolio-facts span { width: 50%; padding: 6px 10px; border-left: 0; }
  .growth-lesson-rail { grid-template-columns: 1fr; gap: 8px; }
  .growth-lesson-rail::before { display: none; }
  .growth-lesson-point { padding: 0 0 0 24px; text-align: left; }
  .growth-lesson-point::before { top: 4px; left: 4px; width: 10px; height: 10px; border-width: 2px; transform: none; }
  .growth-portfolio-dialog { width: 100vw; max-height: 100vh; border-radius: 0; }
  .growth-portfolio-shell { min-height: 100vh; }
  .growth-portfolio-header { align-items: flex-start; padding: 16px; }
  .growth-portfolio-header-actions .outline-action { display: none; }
  .growth-portfolio-body { display: block; overflow: auto; }
  .growth-portfolio-index { overflow: visible; border-right: 0; border-bottom: 1px solid #dedee3; }
  .growth-portfolio-preview { min-height: 680px; padding: 12px; }
  .growth-portfolio-preview iframe { min-height: 620px; border-radius: 12px; }
}
