@import url("/assets/fonts/font.css");
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  color: #292d35;
  font-family: "PingFang SC", "Microsoft Yahei", sans-serif;
  font-size: 14px;
}
body {
  background: #f9fafc;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #a798e8;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  border: 0;
  background: transparent;
}
input,
textarea,
select {
  border: 1px solid #e0e2e8;
  border-radius: 10px;
  background: #fff;
  color: #262a34;
  padding: 12px;
  outline: none;
}
input:focus,
textarea:focus {
  border-color: #a99bda;
  box-shadow: 0 0 0 3px #eeeafa;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
small,
.muted {
  color: #8b909d;
}
.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.primary,
.secondary,
.danger {
  padding: 12px 19px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 500;
}
.primary {
  background: #556e9d;
  color: #fff;
  box-shadow: 0 3px 8px #3d5f8a12;
}
.primary:hover {
  background: #49638e;
}
.secondary {
  border: 1px solid #e0e3e9;
  background: #fff;
}
.danger {
  color: #a54747;
  background: #fff4f3;
}
.icon-btn {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.icon-btn:hover {
  background: #eef0f5;
}
.pill {
  display: inline-block;
  font-size: 11px;
  line-height: 22px;
  padding: 0 9px;
  border: 1px solid #e5e8ee;
  border-radius: 20px;
  background: #f6f7fa;
  color: #777e8d;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #8b90a0;
  text-transform: uppercase;
}
.dot-bg {
  background-image: radial-gradient(#d6dfef 0.7px, transparent 0.7px);
  background-size: 17px 17px;
}
.boot {
  padding: 20vh 0;
  text-align: center;
  color: #959aa5;
}
.shell {
  min-height: 100vh;
  padding: 26px 35px 50px 295px;
}
.sidebar {
  position: fixed;
  left: 14px;
  top: 14px;
  bottom: 14px;
  width: 250px;
  border: 1px solid #e8eaf0;
  border-radius: 20px;
  background: #ffffffed;
  padding: 21px 13px;
  box-shadow: 0 7px 24px #303c4b06;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.brand {
  font-weight: 650;
  letter-spacing: -0.5px;
  font-size: 18px;
  display: flex;
  gap: 10px;
  align-items: center;
  white-space: nowrap;
  padding: 0 9px 28px;
}
.brand .icon {
  width: 25px;
  height: 25px;
}
.sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-link {
  text-align: left;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  color: #737986;
}
.nav-link:hover {
  background: #f6f7fa;
}
.nav-link.active {
  background: #eaf0f9;
  color: #526d9c;
}
.recent {
  padding: 27px 15px;
}
.recent h4 {
  margin: 0 0 18px;
  font-size: 12px;
}
.recent-item {
  display: block;
  text-align: left;
  width: 100%;
  padding: 10px 0;
  color: #8e94a0;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 15px 12px 0;
  border-top: 1px solid #f0f1f5;
  font-size: 11px;
  line-height: 1.8;
  color: #9b9fab;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 35px;
  color: #8a909d;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 13px;
}
.avatar {
  width: 34px;
  height: 34px;
  border: 2px solid #e2e7f2;
  border-radius: 50%;
  background: #f2e8d8;
  color: #7f6b51;
  display: grid;
  place-items: center;
  font-size: 12px;
}
.page {
  max-width: 1060px;
  margin: 55px auto 0;
}
.hero {
  text-align: center;
  margin: 67px auto 0;
  max-width: 900px;
}
.hero h1 {
  font-size: 29px;
  letter-spacing: -0.7px;
  font-weight: 600;
  margin-bottom: 13px;
}
.hero p {
  color: #a1a6b2;
  font-size: 15px;
}
.hero-tabs {
  display: inline-flex;
  background: #edf0f5;
  padding: 4px;
  border-radius: 10px;
  gap: 2px;
  margin-bottom: 36px;
}
.hero-tabs button {
  padding: 7px 16px;
  border-radius: 8px;
  color: #8d94a0;
  font-size: 12px;
}
.hero-tabs .selected {
  background: #fff;
  color: #343c49;
  box-shadow: 0 1px 4px #0000000c;
}
.prompt-box {
  text-align: left;
  border: 1px solid #e8eaf0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 3px 7px #182b4203;
  padding: 20px 20px 13px;
  margin: 30px auto 12px;
}
.prompt-box textarea {
  border: 0;
  box-shadow: none;
  min-height: 70px;
  width: 100%;
  resize: none;
  padding: 0;
  font-size: 16px;
  color: #606d87;
}
.prompt-box textarea::placeholder {
  color: #a6b3ca;
}
.prompt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.prompt-actions .primary {
  border-radius: 50%;
  width: 37px;
  height: 37px;
  padding: 0;
}
.prompt-tip {
  color: #a4a9b4;
  font-size: 11px;
  text-align: center;
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 60px 0 23px;
}
.section-head h2 {
  font-size: 18px;
  margin: 0;
  font-weight: 600;
}
.section-head small {
  font-size: 12px;
}
.course-card {
  border: 1px solid #e5e8ef;
  border-radius: 19px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 5px 20px #4b63830a;
  display: grid;
  grid-template-columns: 235px 1fr;
  min-height: 210px;
  cursor: pointer;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.course-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px #4b638315;
}
.course-art {
  background: #f0efd9;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.course-art svg {
  width: 155px;
  height: 155px;
}
.course-info {
  padding: 29px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.course-info h2 {
  margin: 9px 0 11px;
  font-size: 23px;
  font-weight: 550;
}
.course-info p {
  color: #9298a4;
  line-height: 1.8;
  max-width: 550px;
  font-size: 13px;
}
.course-info-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  width: 100%;
}
.course-info-bottom .icon-btn {
  margin-left: auto;
  background: #55709d;
  color: #fff;
  border-radius: 50%;
}
.progress-track {
  height: 4px;
  background: #eef0f5;
  border-radius: 10px;
  overflow: hidden;
}
.progress-track i {
  height: 100%;
  background: #7884b4;
  display: block;
}
.stats-row {
  display: flex;
  gap: 30px;
  margin: 20px 0;
  color: #9298a5;
  font-size: 12px;
}
.stats-row b {
  color: #4f5d78;
  font-size: 20px;
  font-weight: 550;
  margin-right: 4px;
}
.course-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 24px;
}
.course-header .mini-art {
  width: 90px;
  height: 90px;
  background: #f0efd9;
  border-radius: 14px;
  display: grid;
  place-items: center;
}
.course-header h1 {
  font-size: 26px;
  font-weight: 550;
  margin-bottom: 12px;
}
.course-tabs {
  border-bottom: 1px solid #e3e6ee;
  display: flex;
  gap: 28px;
  margin: 32px 0;
}
.course-tabs button {
  padding: 14px 0;
  color: #9a9faa;
  position: relative;
}
.course-tabs button.selected {
  color: #4e638d;
}
.course-tabs button.selected:after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  background: #7085ab;
}
.course-layout {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 34px;
}
.units {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}
.units button {
  text-align: left;
  padding: 12px;
  border-radius: 9px;
  font-size: 13px;
  color: #939aa7;
}
.units button.selected {
  background: #eaf0f9;
  color: #5b73a1;
}
.lesson-row {
  border: 1px solid #e6e9f0;
  border-radius: 13px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
}
.lesson-main {
  padding: 20px;
  display: flex;
  gap: 15px;
  align-items: center;
}
.lesson-number {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f4f5f9;
  color: #8c96a8;
  font-size: 12px;
  flex-shrink: 0;
}
.lesson-row.done .lesson-number {
  background: #edf6ef;
  color: #719a7a;
}
.lesson-text {
  flex: 1;
  min-width: 0;
}
.lesson-text h3 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 7px;
}
.lesson-text p {
  font-size: 12px;
  color: #9ba2ae;
  line-height: 1.6;
  margin: 0;
  max-width: 620px;
}
.lesson-row .primary {
  font-size: 12px;
  padding: 9px 16px;
}
.lesson-row.locked {
  background: #fafbfc;
  color: #9da3ae;
}
.content-note {
  border-top: 1px solid #f0f1f5;
  padding: 10px 20px;
  font-size: 11px;
  color: #a2a7b1;
  background: #fcfcfd;
}
.card {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 16px;
}
.empty {
  text-align: center;
  padding: 65px 20px;
  color: #9ba2af;
  line-height: 2;
}
.list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid #f0f1f5;
  gap: 18px;
}
.list-row:last-child {
  border: 0;
}
.list-row p {
  font-size: 13px;
  margin: 0;
  line-height: 1.8;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-card {
  width: 430px;
  max-width: 100%;
  padding: 44px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid #e4e8f0;
  box-shadow: 0 15px 60px #63719309;
}
.login-card h1 {
  font-size: 26px;
  margin: 20px 0 10px;
  font-weight: 550;
}
.login-card p {
  color: #9ba2ae;
  line-height: 1.8;
  font-size: 12px;
}
.login-card label {
  font-size: 12px;
  color: #7d8594;
  display: grid;
  gap: 8px;
  margin: 23px 0 12px;
}
.login-card input {
  width: 100%;
}
.code-row {
  display: flex;
  gap: 8px;
}
.code-row input {
  min-width: 0;
}
.code-row button {
  white-space: nowrap;
  font-size: 12px;
  padding: 8px 10px;
}
.login-card .primary {
  width: 100%;
  margin-top: 22px;
}
.login-card .secondary.full {
  width: 100%;
  margin-top: 12px;
}
.error-line {
  color: #b36565;
  font-size: 12px;
  line-height: 1.8;
}
.login-divider {
  border-top: 1px solid #edf0f5;
  margin: 25px 0 17px;
}
.demo-note {
  font-size: 11px;
  color: #b0966b;
}
.classroom {
  position: fixed;
  inset: 0;
  background: #fcfcfd;
  z-index: 10;
  display: flex;
  flex-direction: column;
}
.class-header {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  border-bottom: 1px solid #edf0f5;
  background: #ffffffef;
  z-index: 4;
  gap: 15px;
}
.class-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.class-title span {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.class-header-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}
.class-header .pill {
  font-size: 10px;
  background: #fff;
}
.class-body {
  display: flex;
  flex: 1;
  min-height: 0;
  position: relative;
}
.outline-panel {
  width: 248px;
  flex-shrink: 0;
  border-right: 1px solid #edf0f5;
  background: #fff;
  overflow: auto;
  padding: 24px 15px;
}
.outline-panel h3 {
  font-size: 13px;
  font-weight: 550;
  margin: 0 8px 22px;
}
.outline-goal {
  padding: 7px 8px;
  font-size: 11px;
  color: #9ba2ac;
  line-height: 1.7;
}
.outline-step {
  text-align: left;
  padding: 14px 10px;
  margin: 4px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border-radius: 9px;
  font-size: 12px;
  color: #9aa0ad;
}
.outline-step.current {
  background: #f1edfc;
  color: #8065bc;
}
.outline-step.seen {
  color: #6b7490;
}
.outline-step b {
  font-size: 10px;
  min-width: 16px;
  font-weight: 450;
}
.board-viewport {
  flex: 1;
  overflow: auto;
  position: relative;
  scroll-behavior: smooth;
  min-width: 0;
  overscroll-behavior: contain;
}
.board-sheet {
  position: relative;
  width: 1000px;
  min-height: 1300px;
  transform-origin: 0 0;
  margin: 0 auto;
}
.board-object {
  position: absolute;
  max-width: 850px;
  font-family: Xiaolai, "STKaiti", "Kaiti SC", serif;
  font-size: 27px;
  color: #303440;
  line-height: 1.6;
  white-space: pre-wrap;
}
.board-title {
  font-size: 33px;
  color: #6741d9;
  line-height: 1.5;
}
.board-object.math {
  font-size: 25px;
}
.board-object .katex {
  font-size: 1.25em;
}
.written-char {
  animation: ink 0.28s both;
  display: inline-block;
}
.board-pen {
  position: absolute;
  width: 15px;
  height: 15px;
  border-radius: 3px;
  transform: rotate(-38deg);
  background: #7c6ca5;
  box-shadow: 0 2px 5px #0002;
  pointer-events: none;
  z-index: 3;
}
.board-pen:after {
  content: "";
  position: absolute;
  width: 0;
  height: 0;
  border-top: 6px solid #44335f;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  bottom: -5px;
  left: 3px;
}
.annotation {
  position: absolute;
  overflow: visible;
  pointer-events: none;
}
.annotation ellipse {
  stroke-dasharray: 650;
  animation: draw 0.9s ease forwards;
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
}
.numberline text {
  font-family: Xiaolai, serif;
  font-size: 18px;
}
.classroom .coach-panel {
  width: 380px;
  min-width: 300px;
  max-width: 560px;
  background: #fff;
  border-left: 1px solid #e9ecf1;
  display: flex;
  flex-direction: column;
  position: relative;
  flex-shrink: 0;
}
.resize-handle {
  position: absolute;
  left: -5px;
  top: 0;
  bottom: 0;
  width: 10px;
  cursor: ew-resize;
  z-index: 5;
}
.resize-handle:hover {
  background: #b5a7d92a;
}
.coach-head {
  height: 58px;
  padding: 0 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f2f6;
  font-size: 13px;
  font-weight: 550;
}
.coach-messages {
  flex: 1;
  overflow: auto;
  padding: 24px 21px;
  scroll-behavior: smooth;
}
.coach-welcome {
  color: #9da3af;
  font-size: 12px;
  line-height: 1.8;
  text-align: center;
  margin: 20px 0 35px;
}
.coach-face {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f2eefb;
  color: #9a85c6;
  display: grid;
  place-items: center;
  margin: 0 auto 15px;
}
.bubble {
  margin-bottom: 20px;
  font-size: 13px;
  line-height: 1.95;
  white-space: pre-wrap;
  word-break: break-word;
}
.bubble.student {
  padding: 13px 15px;
  background: #f2f4f8;
  border-radius: 13px;
  margin-left: 35px;
}
.bubble.coach {
  padding: 0 2px;
}
.bubble-label {
  font-size: 10px;
  color: #a2a7b2;
  display: block;
  margin-bottom: 7px;
}
.bubble.error {
  font-size: 12px;
  color: #a77467;
  background: #fff9f5;
  border: 1px solid #f0e1d7;
  padding: 12px;
  border-radius: 10px;
}
.question-card {
  border: 1px solid #e7dff5;
  background: #faf8fe;
  border-radius: 12px;
  padding: 15px;
  margin: 15px 0;
  font-size: 13px;
  line-height: 1.9;
  color: #79629c;
}
.coach-input-area {
  padding: 15px;
  border-top: 1px solid #eef0f5;
  background: #fff;
}
.coach-input-wrap {
  border: 1px solid #e4e6ee;
  border-radius: 13px;
  padding: 12px;
}
.coach-input-wrap textarea {
  width: 100%;
  padding: 0;
  border: 0;
  box-shadow: none;
  resize: none;
  min-height: 52px;
  font-size: 12px;
}
.coach-input-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.send-btn {
  width: 28px;
  height: 28px;
  background: #7385a8;
  color: #fff;
  border-radius: 50%;
}
.voice-status {
  font-size: 10px;
  color: #a5abb5;
  display: flex;
  align-items: center;
  gap: 6px;
}
.voice-status i {
  width: 5px;
  height: 5px;
  background: #c5cbd6;
  border-radius: 50%;
}
.class-footer {
  height: 62px;
  background: #ffffffed;
  border-top: 1px solid #eceef4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 19px;
  gap: 12px;
  z-index: 4;
}
.footer-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #8d94a1;
}
.footer-status {
  font-size: 11px;
  color: #a3a9b3;
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-next {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-next .primary {
  font-size: 12px;
  padding: 10px 18px;
  background: #8973b4;
}
.caption {
  position: absolute;
  left: 25px;
  right: 25px;
  bottom: 22px;
  background: #fffffff0;
  box-shadow: 0 2px 20px #6c72930b;
  border: 1px solid #ececf3;
  border-radius: 12px;
  padding: 13px 20px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: #6f7485;
  z-index: 2;
  max-width: 850px;
  margin: auto;
  pointer-events: none;
}
.board-region {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
  min-height: 0;
}
.floating-coach {
  position: absolute;
  right: 20px;
  top: 16px;
  background: #fff;
  box-shadow: 0 3px 12px #0001;
  border: 1px solid #eceef4;
  padding: 9px 12px;
  border-radius: 9px;
  z-index: 4;
}
.class-progress {
  height: 2px;
  background: #eeeaf6;
  position: absolute;
  top: 54px;
  left: 0;
  right: 0;
  z-index: 5;
}
.class-progress i {
  height: 100%;
  display: block;
  background: #ad9dcf;
  transition: width 0.4s;
}
.practice-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  margin-top: 30px;
}
.paper-instruction {
  font-size: 15px;
  line-height: 2;
  color: #69758b;
}
.timer {
  font-size: 44px;
  font-variant-numeric: tabular-nums;
  font-weight: 300;
  letter-spacing: 3px;
  margin: 23px 0;
  color: #657699;
}
.upload-slot {
  border: 1px dashed #cdd5e2;
  background: #fafbfe;
  border-radius: 12px;
  min-height: 145px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 13px;
  position: relative;
  margin-top: 16px;
}
.upload-slot input[type="file"] {
  max-width: 100%;
  font-size: 12px;
  border: 0;
  padding: 0;
}
.photo-strip {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.photo-strip img {
  width: 105px;
  height: 125px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e0e4ed;
}
.check-label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 24px 0;
  font-size: 13px;
  line-height: 1.9;
}
.check-label input {
  margin-top: 6px;
  accent-color: #7184ab;
}
.qr-card {
  text-align: center;
}
.qr-card img {
  width: 210px;
  max-width: 100%;
  image-rendering: pixelated;
}
.qr-card p {
  font-size: 12px;
  color: #959dab;
  line-height: 1.9;
}
.success-mark {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #edf5ef;
  color: #72a17c;
  display: grid;
  place-items: center;
  margin: 10px auto 24px;
  font-size: 30px;
}
.receipt {
  text-align: center;
  max-width: 750px;
  margin: 50px auto;
}
.receipt h1 {
  font-size: 27px;
  font-weight: 500;
}
.receipt p {
  font-size: 13px;
  color: #929baa;
  line-height: 1.9;
}
.receipt .card {
  text-align: left;
  margin-top: 30px;
}
.capture-shell {
  max-width: 520px;
  margin: 0 auto;
  padding: 30px 21px;
  min-height: 100vh;
  background: #fff;
}
.capture-shell h1 {
  font-size: 25px;
  margin-top: 35px;
  font-weight: 550;
}
.capture-shell p {
  color: #8791a3;
  line-height: 1.9;
  font-size: 13px;
}
.capture-shell .upload-slot {
  margin-top: 25px;
}
.capture-receipt {
  font-size: 13px;
  color: #719780;
  padding: 12px;
  background: #f0f7f2;
  border-radius: 9px;
}
.admin-form {
  display: grid;
  gap: 12px;
  max-width: 500px;
}
.admin-form label {
  font-size: 12px;
  color: #8f97a6;
  display: grid;
  gap: 8px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.search {
  width: 240px;
  margin: 16px 0;
}
.status-pending {
  color: #ad9576;
}
.mobile-nav {
  display: none;
}
#toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 13px 24px;
  border: 1px solid #e1e6ef;
  box-shadow: 0 6px 24px #3c4e6715;
  background: #fff;
  border-radius: 12px;
  z-index: 50;
  max-width: min(92vw, 650px);
  font-size: 13px;
  line-height: 1.7;
}
dialog {
  border: 1px solid #e5e8ef;
  box-shadow: 0 20px 100px #25344824;
  border-radius: 20px;
  padding: 30px;
  max-width: 520px;
  width: calc(100% - 36px);
  color: #51596b;
}
dialog::backdrop {
  background: #323d5540;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font-size: 20px;
  font-weight: 550;
}
dialog p {
  font-size: 13px;
  line-height: 1.9;
  color: #8d95a5;
}
.dialog-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin: 24px 0;
}
.settings-row label {
  font-size: 13px;
}
.settings-row select {
  padding: 7px 10px;
}
.save-state {
  font-size: 10px;
  color: #9aab9c;
}
.rank-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px;
  border-bottom: 1px solid #eee;
}
.rank-row.me {
  background: #f2eff9;
}
.rank-row b:last-child {
  margin-left: auto;
}
.notice {
  font-size: 11px;
  color: #aa9470;
  line-height: 1.9;
  padding: 10px 14px;
  border: 1px solid #eee6d9;
  border-radius: 9px;
  background: #fffdf7;
  margin: 15px 0;
}
.tabs {
  display: flex;
  gap: 8px;
}
.tabs button {
  padding: 8px 13px;
  border-radius: 8px;
  color: #8993a4;
}
.tabs .selected {
  background: #edf1f7;
  color: #64799e;
}
.capture-progress {
  padding: 15px;
  background: #f5f7fa;
  border-radius: 12px;
  margin: 20px 0;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@keyframes ink {
  from {
    opacity: 0;
    filter: blur(3px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
@keyframes draw {
  from {
    stroke-dashoffset: 650;
  }
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (max-width: 1100px) {
  .shell {
    padding-left: 245px;
  }
  .sidebar {
    width: 213px;
  }
  .course-layout {
    grid-template-columns: 150px 1fr;
  }
  .classroom .coach-panel {
    width: 325px;
  }
  .outline-panel {
    width: 205px;
  }
  .board-sheet {
    margin-left: 0;
  }
  .footer-status {
    display: none;
  }
}
@media (max-width: 760px) {
  .shell {
    padding: 20px 17px 50px;
  }
  .sidebar {
    display: none;
  }
  .mobile-nav {
    display: flex;
    gap: 8px;
    margin: 20px 0;
  }
  .mobile-nav button {
    background: #fff;
    border: 1px solid #e5e8ef;
    border-radius: 8px;
    padding: 8px 12px;
  }
  .hero {
    margin-top: 45px;
  }
  .hero h1 {
    font-size: 24px;
  }
  .course-card {
    grid-template-columns: 1fr;
  }
  .course-art {
    height: 155px;
  }
  .course-art svg {
    width: 120px;
    height: 120px;
  }
  .page {
    margin-top: 30px;
  }
  .course-layout {
    display: block;
  }
  .units {
    flex-direction: row;
    overflow: auto;
    margin-bottom: 15px;
  }
  .units button {
    white-space: nowrap;
  }
  .course-header h1 {
    font-size: 22px;
  }
  .course-header .mini-art {
    width: 60px;
    height: 60px;
  }
  .lesson-main {
    padding: 15px;
    gap: 10px;
  }
  .lesson-text p {
    display: none;
  }
  .practice-layout {
    grid-template-columns: 1fr;
  }
  .qr-card {
    display: none;
  }
  .classroom .coach-panel {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: min(90vw, 380px);
    z-index: 6;
    box-shadow: -10px 0 35px #35425c10;
  }
  .outline-panel {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 7;
    box-shadow: 10px 0 35px #35425c10;
  }
  .class-header {
    padding: 0 9px;
    gap: 5px;
  }
  .class-header .pill,
  .class-header-actions .zoom-btn {
    display: none;
  }
  .class-title span {
    max-width: 43vw;
  }
  .class-footer {
    padding: 0 10px;
  }
  .caption {
    font-size: 12px;
    left: 10px;
    right: 10px;
    bottom: 15px;
  }
  .footer-next .primary {
    padding: 10px;
  }
  .board-object {
    font-size: 25px;
  }
  .board-title {
    font-size: 31px;
  }
}

.icon-btn {
  white-space: nowrap;
}
#captions-toggle {
  font-size: 11px;
}
.topic-entry {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
}
.topic-entry > div {
  flex: 1;
}
.topic-entry b {
  font-weight: 500;
  line-height: 1.8;
}
.topic-entry small,
.case-entry small {
  display: block;
  color: #9aa2b0;
  font-size: 11px;
  margin-top: 8px;
}
.topic-page h1 {
  font-size: 27px;
  margin: 12px 0 0;
  font-weight: 550;
}
.topic-grid {
  display: grid;
  grid-template-columns: 1fr 310px;
  gap: 25px;
}
.topic-grid textarea {
  width: 100%;
  margin: 15px 0;
}
.topic-grid .error-line {
  margin-top: 16px;
}
.topic-goal {
  line-height: 1.9;
  margin-top: 12px;
  font-size: 16px;
  color: #727e94;
}
.topic-log {
  display: grid;
  gap: 10px;
  margin-top: 24px;
  font-size: 11px;
  color: #9aa7bb;
}
.blueprint-step {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-top: 1px solid #eef0f5;
}
.blueprint-step > span {
  font-size: 12px;
  color: #a2aec2;
  padding-top: 3px;
}
.blueprint-step h3 {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 9px;
}
.blueprint-step p {
  font-size: 12px;
  line-height: 1.9;
  color: #8994a6;
}
.blueprint-step small {
  font-size: 11px;
  color: #a08db9;
}
.review-screen {
  position: fixed;
  inset: 0;
  overflow: auto;
  background-color: #fafbfd;
  z-index: 10;
}
.review-screen header {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 24px;
  background: #fff;
  border-bottom: 1px solid #edf0f5;
  font-size: 12px;
  color: #8d98ac;
}
.review-card {
  width: min(680px, calc(100% - 36px));
  margin: 100px auto 40px;
  background: #fff;
  border: 1px solid #e7eaf2;
  border-radius: 20px;
  padding: 44px;
  box-shadow: 0 10px 50px #4f628509;
}
.review-card h1 {
  font-size: 28px;
  font-weight: 500;
  margin: 17px 0;
}
.review-question {
  font-family: Xiaolai, serif;
  font-size: 24px;
  line-height: 1.9;
  color: #66577f;
  padding: 25px 0;
}
.review-card textarea {
  width: 100%;
  margin: 12px 0;
}
.review-card small {
  display: block;
  font-size: 11px;
  color: #9ba4b3;
  line-height: 1.9;
  margin-top: 25px;
}
.grade-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  padding: 20px;
  background: #f7f5fc;
  border-radius: 12px;
}
.grade-summary strong {
  font-size: 30px;
  font-weight: 500;
  color: #8b77ae;
}
.grade-summary span {
  font-size: 12px;
  color: #99a1b0;
}
.grade-item {
  padding: 19px 0;
  border-top: 1px solid #eceef4;
}
.grade-item h3 {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.9;
  margin: 12px 0;
}
.grade-item p,
.grade-item small {
  font-size: 12px;
  line-height: 1.9;
  display: block;
}
.grade-item.incorrect .pill {
  background: #fff5ee;
  color: #b28463;
}
.grade-item.correct .pill {
  background: #f0f7f2;
  color: #80a28a;
}
.mistake-item {
  padding: 22px 0;
  border-bottom: 1px solid #eef0f5;
}
.mistake-item:last-child {
  border: 0;
}
.mistake-item h3 {
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  margin: 14px 0;
}
.mistake-item p {
  font-size: 12px;
  color: #9c91a8;
  line-height: 1.8;
}
.admin-workflows h2 {
  font-size: 19px;
  font-weight: 500;
}
.case-entry {
  width: 100%;
  text-align: left;
}
.case-context {
  max-height: 250px;
  overflow: auto;
  background: #f8f9fc;
  padding: 15px;
  margin: 20px 0;
  border-radius: 10px;
}
.admin-label {
  display: grid;
  gap: 8px;
  margin: 18px 0;
  color: #8e98a8;
  font-size: 12px;
}
.expanded-photo {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
.photo-strip img {
  cursor: zoom-in;
}
@media (max-width: 760px) {
  .topic-grid {
    display: block;
  }
  .review-card {
    margin-top: 35px;
    padding: 25px;
  }
  .review-question {
    font-size: 22px;
  }
  .review-card h1 {
    font-size: 25px;
  }
}
#mic.recording {
  background: #f1eafb;
  color: #8c6bb3;
  box-shadow: 0 0 0 4px #f8f5fc;
}
.voice-candidate {
  font-size: 10px;
  color: #ad987a;
  background: #fffdf7;
}
.voice-status {
  max-width: 210px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
