[hidden] {
  display: none !important;
}
.role-welcome {padding:64px 0 40px; max-width:1060px; margin:auto;}
.role-welcome h1 {font-size:clamp(36px,4.2vw,58px); line-height:1.2;}
.role-choices {display:grid; grid-template-columns:1fr 1fr; gap:24px; margin:30px 0;}
.role-choices .role-card {padding:32px; background:var(--sheet); border:1px solid var(--line); border-radius:18px;}
.role-choices h2 {margin-top:24px; font-size:30px;}
.role-choices .teacher-choice {background:var(--sand);}
.role-how,.pair-status {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px;}
.role-how {margin:24px 0; padding:20px 0; border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.pair-status h3,.pair-status p {margin-bottom:4px;}
.pair-code-display {font-size:clamp(28px,6vw,42px); font-family:monospace; font-weight:700; letter-spacing:.12em; padding:24px 0; color:var(--orange); overflow-wrap:anywhere;}
.pairing-input {text-transform:uppercase; letter-spacing:.12em;}
.pair-invitations {margin:20px 0;}
@media (max-width:700px) {.role-welcome {padding-top:32px;} .role-choices {grid-template-columns:1fr;} .role-choices .role-card {padding:24px;} .pair-status {align-items:flex-start;} .pair-status .actions {width:100%;}}
:root {
  --paper: #f6f2e9;
  --sheet: #fcfaf5;
  --ink: #252420;
  --muted: #706e65;
  --line: #ded8cb;
  --orange: #b95232;
  --orange-light: #ecd1bd;
  --red: #9d4035;
  --sand: #eae4d8;
  --green: #4c6351;
  --shadow: 0 12px 35px #3b30270b;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.7 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
.serif {
  font-family: Georgia, "Noto Serif SC", "STSong", "SimSun", serif;
  font-weight: 500;
}
h1 {
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.35;
  letter-spacing: -1px;
}
h2 {
  font-size: 28px;
  line-height: 1.45;
}
h3 {
  font-size: 17px;
  line-height: 1.5;
}
small,
.small {
  font-size: 13px;
}
p {
  margin-bottom: 14px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 650;
  color: var(--orange);
  text-transform: uppercase;
}
.wrap {
  max-width: 1180px;
  margin: auto;
  padding: 0 36px;
}
header {
  border-bottom: 1px solid var(--line);
  background: #f6f2e9f5;
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  text-align: left;
  color: var(--ink);
}
.brand-mark {
  font-size: 43px;
  line-height: 1;
  color: var(--orange);
}
.brand strong {
  font-family: "STSong", "SimSun", serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  letter-spacing: 2px;
  color: var(--muted);
  font-size: 10px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav button {
  padding: 9px 15px;
  background: none;
  color: var(--muted);
  border-radius: 5px;
  font-size: 14px;
}
.nav button.active {
  background: var(--sand);
  color: var(--ink);
}
.nav .nav-primary {
  background: var(--ink);
  color: var(--sheet);
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 23px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--sheet);
  font-size: 14px;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: #403e36;
  transform: translateY(-1px);
}
.btn.accent {
  background: var(--orange);
  color: white;
}
.btn.accent:hover {
  background: #994127;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #b9b0a1;
}
.btn.soft {
  background: var(--sand);
  color: var(--ink);
}
.btn.small {
  min-height: 36px;
  padding: 7px 13px;
  font-size: 12px;
}
.btn.danger {
  background: var(--red);
}
.btn.text {
  min-height: 36px;
  padding: 6px 0;
  color: var(--orange);
  background: none;
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 76px 0 68px;
}
.hero h1 {
  margin: 22px 0;
}
.hero .intro {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}
.hero .actions {
  margin-top: 30px;
}
.hero-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}
.paper-art {
  position: relative;
  background: var(--sheet);
  border: 1px solid #d8cfbd;
  box-shadow:
    6px 8px 0 #e9dfcf,
    7px 9px 0 #cabfae;
  padding: 30px 35px;
  transform: rotate(1.5deg);
}
.art-top {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
  font-size: 10px;
  letter-spacing: 2px;
}
.paper-art h2 {
  font-size: 26px;
  margin: 25px 0;
}
.art-step {
  display: flex;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.art-step i {
  font-style: normal;
  font-family: Georgia;
  font-size: 22px;
  color: var(--orange);
}
.art-footer {
  font-size: 12px;
  color: var(--muted);
  margin-top: 22px;
}
.circle-label {
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 90px;
  height: 90px;
  border: 1px solid var(--orange);
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-content: center;
  color: var(--orange);
  font-size: 12px;
  text-align: center;
  transform: rotate(-13deg);
}
.section {
  padding: 46px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 25px;
  gap: 20px;
}
.section-head h2 {
  margin: 5px 0;
}
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.role-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 28px;
  border-radius: 8px;
}
.role-card .num {
  color: var(--orange);
  font: italic 30px Georgia;
}
.role-card h3 {
  margin: 17px 0 10px;
  font-size: 20px;
}
.role-card p {
  color: var(--muted);
  font-size: 14px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 11px;
  background: var(--paper);
  color: var(--muted);
  gap: 6px;
}
.tag.orange {
  background: #f0d9ca;
  color: #8b3d24;
  border-color: #ddbaa5;
}
.tag.green {
  background: #e4e8df;
  color: var(--green);
  border-color: #c6d1c2;
}
.tag.red {
  background: #f0dfd8;
  color: var(--red);
  border-color: #dbbcb1;
}
.tag.dark {
  background: var(--ink);
  color: white;
}
.page {
  padding-top: 36px;
  padding-bottom: 70px;
}
.page-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.page-title h1 {
  font-size: 36px;
  letter-spacing: 0;
  margin: 10px 0;
}
.banner {
  padding: 13px 18px;
  border: 1px solid #d8bda6;
  background: #f1e4d5;
  border-radius: 6px;
  font-size: 13px;
  margin: 0 0 24px;
}
.banner.neutral {
  background: var(--sand);
  border-color: var(--line);
}
.banner.error {
  background: #f3ddd6;
  border-color: #d5a899;
  color: var(--red);
}
.workspace {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 30px;
}
.side {
  align-self: start;
}
.side-title {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.side button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 12px;
  text-align: left;
  background: transparent;
  border-radius: 6px;
  color: var(--muted);
  margin: 4px 0;
}
.side button.selected {
  background: var(--sand);
  color: var(--ink);
  font-weight: 600;
}
.side button .step-num {
  width: 25px;
  height: 25px;
  border: 1px solid #b8b09f;
  border-radius: 50%;
  display: grid;
  place-content: center;
  font-size: 12px;
}
.side button.done .step-num {
  background: var(--green);
  border-color: var(--green);
  color: white;
}
.side hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}
.next-card {
  background: var(--ink);
  color: var(--sheet);
  border-radius: 8px;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
}
.next-card .eyebrow {
  color: #e5a98d;
}
.next-card h2 {
  margin: 10px 0 8px;
  color: var(--sheet);
}
.next-card p {
  font-size: 14px;
  opacity: 0.8;
  max-width: 520px;
}
.next-card .btn {
  background: #e0a07e;
  color: #2e251e;
  white-space: nowrap;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 24px 0;
}
.stat {
  border-bottom: 1px solid var(--line);
  padding: 0 0 16px;
}
.stat b {
  font-size: 29px;
  font-family: Georgia;
  font-weight: 500;
  display: block;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
}
.card h3 {
  margin-bottom: 10px;
}
.task-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.task-row h3 {
  font-size: 15px;
  margin: 0 0 5px;
}
.task-row:first-child {
  border-top: 0;
}
.task-row .actions {
  flex-shrink: 0;
}
.empty {
  padding: 25px 0;
  color: var(--muted);
  font-size: 14px;
}
.task-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.study-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.study-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.reading {
  font:
    18px/1.95 Georgia,
    serif;
  white-space: pre-wrap;
  background: var(--sheet);
  border: 1px solid var(--line);
  padding: 30px;
  border-radius: 6px;
  align-self: start;
}
.reading h2 {
  font:
    500 24px/1.4 Georgia,
    serif;
}
.question {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.question:first-child {
  padding-top: 0;
}
.q-title {
  font:
    16px/1.65 Georgia,
    serif;
  margin-bottom: 15px;
}
.q-num {
  font: 12px system-ui;
  color: var(--orange);
  margin-right: 10px;
}
.option {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin: 8px 0;
  background: var(--sheet);
  cursor: pointer;
  min-height: 45px;
  font:
    15px/1.55 Georgia,
    serif;
}
.option:has(input:checked) {
  border-color: var(--orange);
  background: #f4e1d4;
}
.option input {
  accent-color: var(--orange);
  margin-top: 5px;
}
.field {
  margin-bottom: 18px;
}
.field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
}
.input,
textarea,
select {
  width: 100%;
  background: var(--sheet);
  color: var(--ink);
  border: 1px solid #bdb5a6;
  padding: 11px 13px;
  border-radius: 5px;
  min-height: 46px;
}
textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.8;
}
textarea.english {
  font:
    17px/1.8 Georgia,
    serif;
  min-height: 290px;
}
.field small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.submit-bar {
  position: sticky;
  bottom: 0;
  background: #f6f2e9f5;
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.audio-card {
  background: #ede4d5;
  padding: 25px;
  border: 1px solid #d5c6b1;
  border-radius: 8px;
  margin-bottom: 24px;
}
.audio-card h3 {
  margin: 8px 0 12px;
}
audio {
  display: block;
  width: 100%;
  margin: 12px 0;
}
.result-hero {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 25px;
}
.score-circle {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  border: 2px solid var(--orange);
  display: grid;
  place-content: center;
  flex-shrink: 0;
  text-align: center;
}
.score-circle b {
  font: 34px Georgia;
}
.score-circle small {
  color: var(--muted);
}
.feedback-item {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.feedback-item blockquote {
  font:
    15px/1.7 Georgia,
    serif;
  border-left: 2px solid var(--orange);
  margin: 12px 0;
  padding: 8px 15px;
  background: #f0e9dd;
}
.feedback-item p {
  font-size: 14px;
}
.file-pill {
  font-size: 12px;
  background: var(--sand);
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
  margin: 4px;
}
.teacher-layout {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 28px;
}
.student-entry {
  width: 100%;
  border-bottom: 1px solid var(--line);
  padding: 16px 12px;
  background: transparent;
  text-align: left;
}
.student-entry.selected {
  background: var(--sand);
  border-left: 3px solid var(--orange);
}
.student-entry strong {
  font-size: 15px;
}
.student-entry small {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}
.tabs {
  display: flex;
  gap: 5px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
  overflow: auto;
}
.tabs button {
  background: none;
  padding: 12px 20px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.tabs button.active {
  color: var(--orange);
  border-color: var(--orange);
}
.teacher-empty {
  text-align: center;
  padding: 65px 25px;
}
.inline-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.signin {
  max-width: 450px;
  margin: 50px auto;
}
.signin h1 {
  font-size: 34px;
}
.signin .card {
  padding: 30px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #24201866;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.modal {
  max-width: 630px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 30px 100px #0003;
}
.modal .close {
  float: right;
  background: transparent;
  font-size: 25px;
  line-height: 1;
  padding: 6px;
  color: var(--muted);
}
.modal h2 {
  margin-bottom: 22px;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  margin: 12px 0;
}
.check-label input {
  margin-top: 6px;
  accent-color: var(--orange);
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--sheet);
  padding: 12px 22px;
  border-radius: 7px;
  opacity: 0;
  pointer-events: none;
  z-index: 60;
  transition: 0.2s;
  max-width: 90%;
  font-size: 14px;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: var(--red);
}
.guide {
  max-width: 850px;
  margin: auto;
}
.guide-step {
  display: grid;
  grid-template-columns: 45px 1fr;
  gap: 20px;
  margin-bottom: 25px;
}
.guide-step .number {
  font: italic 30px Georgia;
  color: var(--orange);
}
details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
details p {
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted);
}
pre {
  font:
    12px/1.7 Consolas,
    monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--sand);
  padding: 20px;
  border-radius: 6px;
}
footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  margin-top: 25px;
}
.recording {
  background: var(--red) !important;
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    opacity: 0.65;
  }
}
.loading {
  text-align: center;
  padding: 100px;
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 850px) {
  .wrap {
    padding: 0 22px;
  }
  .hero {
    gap: 38px;
    padding: 45px 0;
  }
  .hero h1 {
    font-size: 36px;
  }
  .paper-art {
    padding: 25px;
  }
  .circle-label {
    right: -10px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .side {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
  }
  .side button {
    width: auto;
    padding: 9px;
    font-size: 12px;
  }
  .side hr,
  .side-title {
    display: none;
  }
  .teacher-layout {
    grid-template-columns: 220px 1fr;
  }
  .next-card {
    padding: 23px;
  }
  .study-grid {
    gap: 20px;
  }
  .grid3 {
    gap: 12px;
  }
  .role-card {
    padding: 20px;
  }
  .nav button {
    padding: 8px 10px;
    font-size: 12px;
  }
}
@media (max-width: 620px) {
  .wrap {
    padding: 0 17px;
  }
  .header-inner {
    height: auto;
    min-height: 75px;
    gap: 8px;
    flex-wrap: wrap;
    padding-top: 13px;
    padding-bottom: 10px;
  }
  .brand strong {
    font-size: 22px;
  }
  .brand-mark {
    font-size: 33px;
  }
  .brand small {
    font-size: 8px;
  }
  .nav {
    gap: 1px;
    width: 100%;
    justify-content: space-between;
  }
  .nav button {
    padding: 8px 10px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 35px 0 45px;
  }
  .hero h1 {
    font-size: 37px;
  }
  .hero .intro {
    font-size: 15px;
  }
  .paper-art {
    margin: 0 15px 10px 5px;
  }
  .grid3 {
    grid-template-columns: 1fr;
  }
  .role-card {
    padding: 23px;
  }
  .section {
    padding: 30px 0;
  }
  .section-head {
    align-items: start;
  }
  .section-head h2 {
    font-size: 24px;
  }
  .next-card {
    display: block;
  }
  .next-card .btn {
    margin-top: 10px;
  }
  .next-card h2 {
    font-size: 26px;
  }
  .stats {
    gap: 10px;
  }
  .stat b {
    font-size: 25px;
  }
  .page-title h1 {
    font-size: 29px;
  }
  .page-title {
    display: block;
  }
  .page-title .actions {
    margin-top: 12px;
  }
  .teacher-layout {
    grid-template-columns: 1fr;
  }
  .student-list {
    display: flex;
    overflow: auto;
    border-bottom: 1px solid var(--line);
  }
  .student-entry {
    min-width: 180px;
  }
  .study-grid {
    grid-template-columns: 1fr;
  }
  .reading {
    padding: 23px;
    font-size: 17px;
  }
  .card {
    padding: 20px;
  }
  .result-hero {
    gap: 18px;
  }
  .score-circle {
    width: 85px;
    height: 85px;
  }
  .inline-grid {
    grid-template-columns: 1fr;
  }
  .task-row {
    align-items: start;
    flex-wrap: wrap;
  }
  .submit-bar {
    gap: 12px;
    font-size: 12px;
  }
  .modal-backdrop {
    padding: 10px;
  }
  .modal {
    padding: 22px;
  }
  .tabs button {
    padding: 12px 15px;
  }
  .study-head {
    align-items: start;
    gap: 12px;
  }
  .page {
    padding-top: 25px;
  }
  .hero .actions .btn {
    flex: 1;
  }
  .section-head .small {
    display: none;
  }
  footer {
    gap: 15px;
    display: block;
  }
  .signin {
    margin: 20px auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* Task-first teacher workspace, informed by the user's reference without adding CRM scope. */
body:has(.teacher-shell) .wrap {
  max-width: 1480px;
}
.teacher-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 42px;
  padding-top: 30px;
}
.teacher-rail {
  border-right: 1px solid var(--line);
  padding-right: 23px;
  position: sticky;
  top: 110px;
  align-self: start;
  min-height: 650px;
}
.rail-label {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  padding: 9px 10px 20px;
}
.rail-links button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 14px;
  background: transparent;
  color: var(--ink);
  border-radius: 7px;
  margin: 5px 0;
  text-align: left;
  font-size: 15px;
  min-height: 53px;
}
.rail-links button small {
  font-family: Georgia;
  color: var(--muted);
  font-size: 12px;
}
.rail-links button.active {
  background: var(--ink);
  color: var(--sheet);
}
.rail-links button.active small {
  color: #b8b0a2;
}
.rail-note {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  margin: 55px 10px 10px;
}
.teacher-content {
  min-width: 0;
}
.teacher-content > .page-title {
  margin: 22px 0 30px;
  align-items: center;
}
.teacher-content > .page-title h1 {
  font-size: 34px;
  letter-spacing: 0;
  margin-bottom: 11px;
}
.work-status {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sync-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #788c5d;
}
.work-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-bottom: 24px;
  background: var(--sheet);
  font-size: 13px;
  color: var(--muted);
}
.work-summary b {
  font: 23px Georgia;
  color: var(--ink);
  padding-right: 6px;
}
.work-queues {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.work-queues .card {
  padding: 25px 26px;
}
.queue-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.queue-heading h2 {
  font-size: 23px;
  margin: 0;
}
.quiet-empty {
  padding: 36px 0 20px;
  text-align: center;
}
.quiet-empty .empty-mark {
  color: var(--green);
  font-size: 25px;
  display: block;
  margin-bottom: 15px;
}
.quiet-empty h3 {
  font-weight: 500;
  font-size: 16px;
}
.quiet-empty p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.review-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 27px 0 15px;
}
.review-strip h3 {
  font:
    500 23px Georgia,
    "STSong",
    serif;
  margin: 7px 0;
}
.review-strip p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}
.review-strip .btn {
  flex-shrink: 0;
}
.advanced-import {
  padding: 22px;
  border: 1px dashed #bfb3a0;
  border-radius: 7px;
  margin-top: 20px;
}
@media (max-width: 1100px) {
  .teacher-shell {
    grid-template-columns: 170px minmax(0, 1fr);
    gap: 25px;
  }
  .teacher-rail {
    padding-right: 15px;
  }
  .teacher-content > .page-title {
    display: block;
  }
  .teacher-content > .page-title .actions {
    margin-top: 16px;
  }
  .teacher-layout {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}
@media (max-width: 800px) {
  .work-queues {
    grid-template-columns: 1fr;
  }
  .teacher-content > .page-title h1 {
    font-size: 29px;
  }
  .teacher-layout {
    grid-template-columns: 1fr;
  }
  .student-list {
    display: flex;
    overflow-x: auto;
  }
  .student-entry {
    min-width: 170px;
  }
  .review-strip {
    align-items: start;
    flex-direction: column;
  }
}
@media (max-width: 620px) {
  .teacher-shell {
    display: block;
    padding-top: 15px;
  }
  .teacher-rail {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 13px;
    min-height: 0;
    margin-bottom: 22px;
  }
  .rail-label,
  .rail-note,
  .teacher-rail > .btn {
    display: none;
  }
  .rail-links {
    display: flex;
    gap: 5px;
    overflow-x: auto;
  }
  .rail-links button {
    width: auto;
    flex-shrink: 0;
    gap: 10px;
    padding: 10px 11px;
    font-size: 12px;
    min-height: 42px;
  }
  .rail-links small {
    display: none;
  }
  .teacher-content > .page-title h1 {
    font-size: 28px;
  }
  .work-summary {
    gap: 14px;
    padding: 14px;
    font-size: 11px;
  }
  .work-summary b {
    font-size: 20px;
  }
  .work-queues .card {
    padding: 20px;
  }
  .review-strip .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
}
