:root {
  --ink: #172033;
  --muted: #647083;
  --line: #d8e0ea;
  --paper: #f6f8fb;
  --panel: #ffffff;
  --green: #16805a;
  --green-soft: #e8f7ef;
  --red: #b54740;
  --blue: #283747;
  --blue-soft: #edf3f8;
  --brand-blue: #283747;
  --navy: #283747;
  --navy-deep: #1f2c3d;
  --gold: #f2a92c;
  --gold-soft: #fff4dc;
  --teal: #2d8b99;
  --shadow: 0 20px 60px rgba(21, 31, 50, 0.1);
  --soft-shadow: 0 10px 30px rgba(21, 31, 50, 0.07);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fbff 0%, var(--paper) 320px),
    var(--paper);
}

.site-icp {
  padding: 20px 16px 28px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: var(--paper);
}

.site-icp a {
  color: inherit;
  text-decoration: none;
}

.site-icp a:hover {
  color: var(--navy);
  text-decoration: underline;
}

button,
select,
textarea {
  font: inherit;
}

button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
  transition:
    transform 0.14s ease,
    border-color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

button:hover {
  border-color: #9ab1cc;
  box-shadow: 0 8px 18px rgba(21, 31, 50, 0.08);
  transform: translateY(-1px);
}

.app-shell {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--line);
  padding: 24px;
  background: #fbfaf7;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 24px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 700;
  font-size: 23px;
}

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.panel h2,
.panel h3 {
  margin: 0;
}

.brand h1 {
  font-size: 22px;
  letter-spacing: 0;
}

.brand p,
.task-meta,
.eyebrow,
.section-title,
.chat-state,
.timeline,
.room-meta {
  color: var(--muted);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--soft-shadow);
}

.compact {
  margin-bottom: 16px;
}

.section-title {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.task-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
}

.student-list {
  min-height: 460px;
}

.icon-button {
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
}

.room-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.room-card {
  width: 100%;
  text-align: left;
  padding: 12px;
  border-radius: 8px;
}

.room-card.active {
  border-color: var(--green);
  background: #edf7f2;
}

.room-card strong {
  display: block;
  margin-bottom: 6px;
}

.room-meta {
  display: flex;
  gap: 8px;
  font-size: 12px;
}

.workspace {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
}

.eyebrow {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.topbar h2 {
  font-size: 24px;
}

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

.teacher-badge {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #cfd8e6;
  border-radius: 999px;
  color: #344053;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

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

.student-mode .sidebar,
.student-mode #joinBtn,
.student-mode #teacherControlPanel,
.student-mode #newRoomBtn {
  display: none;
}

.student-mode .topbar {
  background: rgba(255, 255, 255, 0.92);
}

.role-switch span {
  color: var(--muted);
  font-size: 13px;
}

select,
textarea,
input {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.hidden {
  display: none !important;
}

.portal-view,
.course-view,
.lesson-view {
  min-height: 100vh;
}

.course-view,
.lesson-view {
  background:
    linear-gradient(180deg, rgba(40, 55, 71, 0.08) 0%, rgba(242, 169, 44, 0.05) 280px, transparent 560px),
    var(--paper);
}

.portal-nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 7vw;
  border-bottom: 1px solid rgba(242, 169, 44, 0.22);
  background: rgba(40, 55, 71, 0.96);
  backdrop-filter: blur(18px);
}

.portal-brand,
.teacher-session {
  display: flex;
  align-items: center;
  gap: 12px;
}

.teacher-session {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.portal-brand span {
  font-size: 23px;
  font-weight: 800;
  color: #fff;
}

.outline-action {
  min-width: 100px;
  height: 40px;
  padding: 0 18px;
  color: #fff;
  border-color: rgba(242, 169, 44, 0.55);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.session-user {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 13px 5px 7px;
  border: 1px solid rgba(242, 169, 44, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.session-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--navy);
  border-radius: 50%;
  background: var(--gold);
  font-size: 16px;
  font-weight: 900;
}

.session-user > div {
  display: flex;
  align-items: center;
  min-width: 0;
}

.session-user strong {
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

.hero-panel {
  min-height: calc(100vh - 76px);
  display: grid;
  place-items: center;
  padding: 48px 24px 96px;
}

.hero-copy {
  width: min(760px, 100%);
  text-align: center;
}

.hero-kicker {
  width: fit-content;
  margin: 0 auto 28px;
  padding: 10px 24px;
  border: 1px solid rgba(47, 101, 216, 0.16);
  border-radius: 999px;
  color: var(--brand-blue);
  background: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.hero-copy h1 {
  margin: 0;
  color: #111827;
  font-size: 58px;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-copy p {
  width: min(620px, 100%);
  margin: 22px auto 34px;
  color: #536074;
  font-size: 19px;
  line-height: 1.8;
}

.hero-action {
  min-width: 180px;
  height: 52px;
  padding: 0 24px;
  color: #fff;
  border-color: var(--brand-blue);
  background: linear-gradient(135deg, var(--brand-blue), #254bb7);
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(47, 101, 216, 0.28);
}

.entry-home {
  min-height: 100vh;
  padding-top: 104px;
  overflow-x: hidden;
  background: #fff;
}

.entry-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  height: 104px;
  padding: 0 clamp(24px, 7vw, 140px);
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.08);
}

.entry-brand {
  color: #f2a92c;
  text-decoration: none;
}

.entry-brand .brand-mark {
  color: #243447;
  background: #f2a92c;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(242, 169, 44, 0.22);
}

.entry-brand span {
  color: #f2a92c;
  font-size: 25px;
  letter-spacing: 0;
}

.entry-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(18px, 2.2vw, 38px);
}

.entry-nav-item {
  position: relative;
}

.entry-nav-link {
  color: #283747;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.entry-nav-link:focus {
  outline: none;
}

.entry-nav-link:focus-visible {
  outline: 2px solid rgba(242, 169, 44, 0.42);
  outline-offset: 6px;
  border-radius: 999px;
}

.entry-nav-link.active,
.entry-nav-link:hover,
.entry-nav-item.open > .entry-nav-link,
.entry-nav-item:hover > .entry-nav-link,
.entry-nav-item:focus-within > .entry-nav-link {
  color: #f2a92c;
}

.entry-submenu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  z-index: 8;
  width: 292px;
  padding: 10px;
  color: #283747;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 22px 48px rgba(9, 20, 36, 0.22);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 12px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.entry-submenu::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: translateX(-50%) rotate(45deg);
}

.entry-nav-item.open .entry-submenu,
.entry-nav-item:hover .entry-submenu,
.entry-nav-item:focus-within .entry-submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.entry-course-item {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 8px;
  background: #f8fafc;
}

.entry-course-item span {
  color: #f2a92c;
  font-size: 12px;
  font-weight: 900;
}

.entry-course-item strong {
  color: #1f2c3d;
  font-size: 17px;
  line-height: 1.35;
}

.entry-course-item small {
  color: #6b7684;
  font-size: 13px;
  line-height: 1.5;
}

.entry-cta {
  min-width: 154px;
  height: 54px;
  padding: 0 28px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: #f2a92c;
  box-shadow: 0 18px 34px rgba(242, 169, 44, 0.28);
  font-size: 17px;
  font-weight: 800;
}

.entry-account {
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 18px;
  border: 1px solid rgba(242, 169, 44, 0.42);
  border-radius: 999px;
  background: #fff8ea;
  box-shadow: 0 16px 34px rgba(242, 169, 44, 0.18);
}

.entry-account div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.entry-account span {
  color: #9a6b18;
  font-size: 12px;
  font-weight: 900;
}

.entry-account strong {
  color: #283747;
  font-size: 16px;
  line-height: 1.2;
  white-space: nowrap;
}

.entry-logout {
  height: 42px;
  padding: 0 18px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: #283747;
  font-size: 15px;
  font-weight: 900;
}

.entry-hero {
  position: relative;
  min-height: calc(100vh - 104px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  place-items: stretch;
  padding: 0;
  overflow: hidden;
  background: #283747;
}

.entry-hero::after {
  content: "";
  position: absolute;
  inset: 0 0 0 50%;
  background:
    linear-gradient(rgba(40, 55, 71, 0.92), rgba(40, 55, 71, 0.92)),
    url("/assets/images/hero-bg.jpg") center / cover;
  opacity: 0.5;
}

.entry-hero-left {
  position: relative;
  z-index: 2;
  min-height: calc(100vh - 104px);
  overflow: hidden;
  background: #f5f7f8;
}

.entry-hero-left > picture {
  width: 100%;
  height: 100%;
  display: block;
}

.entry-hero-left > picture > img,
.entry-hero-left > img:first-child {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.entry-dot-shape {
  position: absolute;
  right: -62px;
  bottom: -56px;
  width: min(300px, 34vw);
}

.entry-hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: calc(100vh - 104px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(150px, 20vh, 210px) clamp(42px, 8vw, 150px) 90px clamp(42px, 7vw, 128px);
  text-align: left;
  background: rgba(40, 55, 71, 0.94);
}

.entry-hero-content .hero-kicker {
  margin: 0 0 18px;
  color: #f2a92c;
  border: 0;
  background: transparent;
  padding: 0;
  letter-spacing: 0;
}

.entry-hero-content h1 {
  color: #fff;
  font-size: 82px;
  line-height: 0.95;
}

.entry-hero-content .hero-subtitle {
  margin: 22px 0 0;
  color: #fff;
  font-size: 50px;
  font-weight: 900;
  line-height: 1.1;
}

.entry-hero-content p:not(.hero-subtitle) {
  width: min(560px, 100%);
  margin: 30px 0 42px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
  line-height: 1.8;
}

.entry-hero-content .hero-action {
  min-width: 146px;
  height: 58px;
  color: #283747;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
}

.entry-hero-content .hero-action:hover {
  color: #fff;
  background: #f2a92c;
}

.entry-courses {
  min-height: calc(100vh - 104px);
  padding: 88px clamp(24px, 8vw, 150px) 112px;
  background: #fff;
  scroll-margin-top: 104px;
}

.entry-section-title {
  width: min(720px, 100%);
  margin: 0 auto 56px;
  text-align: center;
}

.entry-section-title h2 {
  margin: 0;
  color: #283747;
  font-size: clamp(38px, 4.2vw, 64px);
  line-height: 1.1;
  letter-spacing: 0;
}

.entry-section-title p {
  margin: 22px 0 0;
  color: #6b7684;
  font-size: 18px;
  line-height: 1.75;
}

.landing-course-grid {
  width: min(560px, 100%);
  margin: 0 auto;
}

.landing-course-card {
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 0 61px rgba(229, 229, 229, 0.65);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.landing-course-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 61px rgba(205, 213, 224, 0.75);
}

.landing-course-img {
  overflow: hidden;
  background: #fff8ea;
}

.landing-course-img picture,
.landing-course-img img {
  display: block;
}

.landing-course-img img {
  width: 100%;
  height: clamp(260px, 32vw, 360px);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.landing-course-card:hover .landing-course-img img {
  transform: scale(1.08);
}

.landing-course-info {
  display: grid;
  gap: 18px;
  padding: 30px 32px 34px;
}

.course-tag {
  width: fit-content;
  padding: 6px 14px;
  color: #283747;
  border-radius: 999px;
  background: #f2a92c;
  font-size: 13px;
  font-weight: 900;
}

.landing-course-info h3 {
  margin: 0;
  color: #283747;
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: 0;
}

.landing-course-info p {
  margin: -6px 0 0;
  color: #6b7684;
  font-size: 17px;
}

.landing-course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  color: #283747;
  border: 1px solid #e2e7ee;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.landing-course-action {
  justify-self: start;
  min-width: 144px;
  height: 48px;
  padding: 0 24px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: #f2a92c;
  box-shadow: 0 14px 30px rgba(242, 169, 44, 0.28);
  font-size: 16px;
  font-weight: 900;
}

.login-dialog {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(12, 22, 36, 0.48);
  backdrop-filter: blur(10px);
}

.login-card {
  width: min(860px, 100%);
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(340px, 1fr);
  gap: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid rgba(242, 169, 44, 0.28);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 34px 90px rgba(12, 22, 36, 0.36);
}

.login-visual {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 34px;
  padding: 34px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(31, 44, 61, 0.96), rgba(40, 55, 71, 0.92)),
    url("/assets/images/hero-bg.jpg") center / cover;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-size: 22px;
  font-weight: 900;
}

.login-kicker {
  margin-bottom: 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.login-visual h2 {
  margin: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1.16;
  letter-spacing: 0;
}

.login-visual p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 17px;
  line-height: 1.8;
}

.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-points span {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 800;
}

.login-fields {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 38px 42px;
}

.login-card h3,
.login-card p {
  margin: 0;
}

.login-card h3 {
  color: #283747;
  font-size: 30px;
  line-height: 1.25;
}

.login-card .section-title {
  color: #f2a92c;
  font-size: 14px;
  font-weight: 900;
}

.login-card label {
  display: grid;
  gap: 10px;
  color: #344053;
  font-size: 16px;
  font-weight: 900;
}

.login-card input {
  width: 100%;
  height: 56px;
  padding: 0 16px;
  border-radius: 10px;
  font-size: 18px;
}

.login-card input:focus {
  outline: 3px solid rgba(242, 169, 44, 0.24);
  border-color: #f2a92c;
}

.login-card .icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3f6fa;
  color: #283747;
  font-size: 24px;
}

.login-error {
  min-height: 24px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}

.login-submit {
  height: 58px;
  color: #fff;
  border: 0;
  border-radius: 999px;
  background: #f2a92c;
  box-shadow: 0 16px 34px rgba(242, 169, 44, 0.28);
  font-size: 19px;
  font-weight: 900;
}

.account-hints {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  color: #5b6675;
  border-radius: 12px;
  background: #f7f9fc;
  font-size: 14px;
  line-height: 1.45;
}

.course-page,
.lesson-page {
  padding: 38px 6.2vw 46px;
}

.page-heading {
  margin-bottom: 24px;
}

.page-heading h1,
.lesson-titlebar h1 {
  margin: 0;
  color: #182033;
  font-size: 30px;
  letter-spacing: 0;
}

.page-heading p {
  margin: 10px 0 0;
  color: var(--muted);
}

.course-card {
  width: min(460px, 100%);
  display: block;
  padding: 0;
  overflow: hidden;
  text-align: left;
  border-color: #d5dfef;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.course-art {
  min-height: 220px;
  padding: 24px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(40, 55, 71, 0.96), rgba(31, 44, 61, 0.94)),
    var(--navy);
}

.course-status {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--gold);
  font-size: 13px;
  font-weight: 800;
}

.course-art h2 {
  margin: 48px 0 28px;
  font-size: 31px;
  letter-spacing: 0;
}

.course-art p,
.course-info h3,
.course-info p {
  margin: 0;
}

.course-info {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.course-info h3 {
  color: #343c58;
  font-size: 18px;
}

.course-info p {
  margin-top: 8px;
  color: var(--muted);
}

.course-info span,
.lesson-action {
  color: var(--navy);
  font-weight: 800;
}

.lesson-shell {
  overflow: hidden;
  border: 1px solid #ccd8e5;
  border-radius: 14px;
  background: #edf2f7;
  box-shadow: var(--shadow);
}

.lesson-titlebar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  padding: 24px 30px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
}

.lesson-titlebar .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.lesson-titlebar h1 {
  color: #fff;
}

.class-teaching-panel {
  display: grid;
  gap: 16px;
  padding: 22px 30px;
  border-bottom: 1px solid #d7e1eb;
  background: #fff;
}

.class-teaching-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.class-teaching-main h2,
.class-teaching-main p {
  margin: 0;
}

.class-teaching-main h2 {
  color: var(--navy);
  font-size: 24px;
  line-height: 1.28;
}

.class-teaching-main p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.class-teaching-badge {
  min-width: 82px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border-radius: 999px;
  color: #6b4300;
  background: #fff0cc;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.class-teaching-badge.active {
  color: #0c6548;
  background: #dff5ea;
}

.class-teaching-badge.ended {
  color: #8a3b3b;
  background: #ffe6e6;
}

.class-switch-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.class-switch {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 13px 16px;
  text-align: left;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  background: #f7f9fc;
  color: var(--navy);
}

.class-switch strong {
  font-size: 17px;
}

.class-switch span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.class-switch.active {
  border-color: var(--navy);
  background: #eef4fb;
  box-shadow: 0 10px 20px rgba(22, 34, 52, 0.08);
}

.class-empty-state {
  grid-column: 1 / -1;
  padding: 16px;
  border: 1px dashed #ccd8e5;
  border-radius: 10px;
  color: var(--muted);
  background: #f7f9fc;
  font-weight: 800;
}

.class-create-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.5fr) minmax(120px, 0.8fr) auto;
  gap: 10px;
}

.class-create-form input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.class-create-form button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--gold);
  border-radius: 10px;
  color: var(--navy);
  background: var(--gold);
  font-size: 14px;
  font-weight: 900;
}

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

.class-teaching-actions button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  color: var(--navy);
  background: #fff;
  font-size: 14px;
  font-weight: 900;
}

.class-teaching-actions .class-primary-action {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.class-teaching-actions button:disabled {
  cursor: default;
  opacity: 0.56;
}

.class-student-manager {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  background: #f8fafc;
}

.class-student-manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.class-student-manager-head h3 {
  margin: 2px 0 0;
  color: var(--navy);
  font-size: 18px;
}

.class-student-count {
  min-width: 54px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #0c6548;
  background: #dff5ea;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.student-create-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(160px, 1fr) minmax(150px, 0.9fr) auto;
  gap: 10px;
}

.student-create-form input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d7e1eb;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}

.student-create-form button,
.student-account-row button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 14px;
  font-weight: 900;
}

.class-student-list {
  display: grid;
  gap: 8px;
  max-height: 260px;
  overflow: auto;
}

.student-account-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(130px, 1fr) minmax(130px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #dde6ef;
  border-radius: 8px;
  background: #fff;
}

.student-account-row strong {
  color: var(--navy);
}

.student-account-row span,
.student-account-row code {
  color: var(--muted);
  font-size: 13px;
}

.student-account-row code {
  padding: 3px 7px;
  border-radius: 6px;
  background: #eef3f8;
  color: var(--navy);
  font-family: "Segoe UI", Arial, sans-serif;
  font-weight: 800;
}

.student-account-empty {
  padding: 14px;
  border: 1px dashed #ccd8e5;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

.lesson-layout {
  display: grid;
  grid-template-columns: minmax(500px, 1.25fr) minmax(360px, 0.9fr) minmax(176px, 208px);
  gap: 0;
}

.lesson-layout-student {
  grid-template-columns: minmax(620px, 1fr) minmax(220px, 300px);
}

.lesson-layout-teacher {
  grid-template-columns: minmax(500px, 1.25fr) minmax(360px, 0.9fr) minmax(176px, 208px);
}

.lesson-list {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 28px 30px 34px;
  background: #f5f6f8;
}

.lesson-row {
  width: 100%;
  min-height: 92px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  text-align: left;
  border-color: #d7dee8;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(22, 34, 52, 0.05);
}

.lesson-row:disabled {
  cursor: default;
  opacity: 0.7;
}

.lesson-row:disabled:hover {
  transform: none;
  border-color: #ccd3dc;
}

.lesson-row.active {
  border-color: rgba(242, 169, 44, 0.8);
  background: #fffaf0;
  box-shadow: inset 4px 0 0 var(--gold);
}

.lesson-index {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 2px solid #cfd5dd;
  border-radius: 999px;
  color: #52606d;
  font-weight: 800;
}

.lesson-row.active .lesson-index {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.lesson-row strong {
  display: block;
  color: #273240;
  font-size: 17px;
}

.lesson-row p {
  margin: 5px 0 0;
  color: var(--muted);
}

.lesson-tools {
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 20px 12px;
  border-left: 1px solid #d8e0ea;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f8 100%);
}

.lesson-tools > button {
  min-height: 50px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  text-align: left;
  color: var(--navy);
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  box-shadow: 0 7px 16px rgba(22, 34, 52, 0.045);
}

.lesson-tools > button > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.lesson-tools > button.tool-enter {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.lesson-tools > button.tool-new {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold);
}

.lesson-tools > button.tool-save {
  color: #fff;
  border-color: #18805b;
  background: #18805b;
}

.lesson-tools > button.tool-publish {
  color: #fff;
  border-color: #2d6ea3;
  background: #2d6ea3;
}

.lesson-tools > button.tool-secondary {
  color: var(--navy);
  border-color: #d9e2ec;
  background: #fff;
}

.lesson-tools > button.tool-danger,
.danger-action {
  color: #fff;
  border-color: #c14343;
  background: #c14343;
}

.lesson-tools > button:disabled {
  cursor: default;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.lesson-tools > button:disabled:hover {
  border-color: #d9e2ec;
}

.class-session-panel {
  display: grid;
  gap: 10px;
  padding: 14px 12px;
  border: 1px solid #d7e1eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 20px rgba(22, 34, 52, 0.05);
}

.class-session-panel h3,
.class-session-panel p {
  margin: 0;
}

.class-session-panel h3 {
  color: var(--navy);
  font-size: 15px;
  line-height: 1.35;
}

.class-session-panel p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.class-session-actions {
  display: grid;
  gap: 8px;
}

.class-session-panel button {
  min-height: 44px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  text-align: left;
  color: var(--navy);
  border: 1px solid #d9e2ec;
  border-radius: 9px;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}

.class-session-panel button.tool-enter {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.class-session-panel button:disabled {
  cursor: default;
  opacity: 0.62;
}

.class-session-history {
  display: grid;
  gap: 7px;
  color: #3b4858;
  font-size: 12px;
  font-weight: 900;
}

.class-session-history select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #d7e1eb;
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
}

.lesson-tool-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: currentColor;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid currentColor;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

.lesson-tools > button.tool-secondary .lesson-tool-icon {
  color: var(--navy);
  background: #eef2f6;
  border-color: #ccd6e0;
}

.lesson-tools > button.tool-new .lesson-tool-icon {
  background: rgba(40, 55, 71, 0.08);
}

.lesson-editor {
  display: grid;
  align-content: start;
  gap: 16px;
  max-height: calc(100vh - 196px);
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding: 26px 26px;
  border-left: 1px solid #d3e0ee;
  background: #fff;
}

.lesson-editor .section-title {
  margin-bottom: 0;
  font-size: 14px;
}

.lesson-editor h3 {
  margin: 0;
  color: #253149;
  font-size: 21px;
  line-height: 1.32;
}

.lesson-editor h4 {
  margin: 0;
  color: #1f2d44;
  font-size: 17px;
  line-height: 1.3;
}

.lesson-editor label {
  display: grid;
  gap: 8px;
  color: #42516a;
  font-size: 14px;
  font-weight: 800;
}

.lesson-editor input,
.lesson-editor textarea {
  width: 100%;
  border: 1px solid #c7d4e4;
  border-radius: 10px;
  background: #fff;
  color: #1f2937;
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
}

.lesson-editor textarea {
  resize: vertical;
  min-height: 300px;
  line-height: 1.7;
}

.lesson-agent-editor,
.lesson-activity-editor {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #fbfdff;
}

.lesson-agent-editor {
  background:
    linear-gradient(135deg, #fbfdff 0%, #fff 58%, #fff8ea 100%),
    #fff;
}

.lesson-config-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.lesson-config-heading > span {
  color: #66758a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.lesson-activity-config-list {
  display: grid;
  gap: 14px;
}

.lesson-activity-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 7px;
  padding: 0 9px;
  border-radius: 999px;
  color: #6b4300;
  background: #fff0cc;
  font-size: 12px;
  font-weight: 900;
}

.lesson-activity-editor textarea {
  min-height: 148px;
}

.lesson-activity-editor:first-child textarea {
  min-height: 260px;
}

.lesson-edit-status {
  min-height: 20px;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.visibility-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.visibility-toggle .active {
  color: #fff;
  border-color: #2d8b99;
  background: #2d8b99;
}

.activity-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 8%, rgba(242, 169, 44, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(40, 55, 71, 0.08) 0%, rgba(242, 169, 44, 0.05) 300px, transparent 620px),
    #f5f7fb;
}

.activity-topbar {
  position: sticky;
  top: 0;
  z-index: 6;
  color: #fff;
  min-height: 92px;
  border-bottom: 1px solid rgba(242, 169, 44, 0.22);
  background:
    radial-gradient(circle at 18% 20%, rgba(49, 94, 170, 0.38), transparent 32%),
    linear-gradient(135deg, #071932, #14366d 58%, #0c2345);
  box-shadow: 0 16px 42px rgba(7, 25, 50, 0.18);
}

.activity-topbar h2 {
  color: #fff;
  font-size: 30px;
  letter-spacing: 0;
}

.activity-topbar .eyebrow {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.activity-topbar .top-actions button {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold);
  font-weight: 800;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(242, 169, 44, 0.22);
}

.activity-topbar .teacher-badge {
  color: #fff;
  min-height: 46px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.activity-topbar .teacher-badge.session-ended {
  color: #ffe6e6;
  border-color: rgba(255, 218, 218, 0.42);
  background: rgba(193, 67, 67, 0.28);
}

.activity-page {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 36px 48px;
}

.activity-workspace {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 20px;
}

.activity-rail {
  min-height: calc(100vh - 132px);
  position: sticky;
  top: 100px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px 20px 26px;
  border: 1px solid rgba(203, 216, 230, 0.86);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)),
    #fff;
  box-shadow: 0 22px 54px rgba(35, 52, 78, 0.1);
}

.activity-rail::before {
  display: none;
}

.rail-title {
  position: relative;
  display: grid;
  place-items: center;
  gap: 12px;
  min-height: 116px;
  margin: 0 0 8px;
  color: #17233a;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.rail-title::before {
  content: "✓";
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  color: #1f4d86;
  border-radius: 18px;
  background: linear-gradient(135deg, #eef5ff, #dbeafe);
  box-shadow: inset 0 0 0 1px rgba(74, 116, 180, 0.12);
  font-size: 28px;
}

.activity-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 7px 12px 7px 7px;
  text-align: left;
  border: 1px solid rgba(217, 226, 236, 0.95);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #526174;
  box-shadow: 0 8px 18px rgba(35, 52, 78, 0.04);
}

.activity-step span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 2;
  border-radius: 999px;
  color: #385174;
  background: #e9f0f8;
  border: 1px solid #d7e2f0;
  font-weight: 800;
}

.activity-step.active {
  color: var(--navy);
  border-color: rgba(242, 169, 44, 0.85);
  background: linear-gradient(135deg, #fff8e9, #fffdf8);
  box-shadow:
    0 14px 30px rgba(242, 169, 44, 0.16),
    inset 4px 0 0 var(--gold);
}

.activity-step.active span {
  color: var(--navy);
  border-color: var(--gold);
  background: var(--gold-soft);
}

.activity-step span {
  font-size: 13px;
}

.activity-step strong {
  min-width: 0;
  color: inherit;
  font-size: 13px;
  line-height: 1.28;
}

.activity-subnav {
  display: grid;
  gap: 7px;
  margin: -2px 0 4px 42px;
  padding: 0 0 0 12px;
  border-left: 2px solid #e4edf7;
}

.activity-substep {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 5px 10px 5px 5px;
  text-align: left;
  border: 1px solid #dbe6f2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #5d6b7f;
  font-weight: 900;
}

.activity-substep span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef4fb;
  color: #415a7e;
  font-size: 11px;
}

.activity-substep strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.activity-substep.active {
  color: #0f4b36;
  border-color: #a8d7c6;
  background: #eefaf5;
  box-shadow: 0 8px 18px rgba(22, 128, 90, 0.1);
}

.activity-substep.active span {
  color: #0f4b36;
  background: #dff5eb;
}

.activity-main {
  display: grid;
  gap: 20px;
  align-content: start;
}

.activity-card h1,
.activity-card h2,
.activity-card h3,
.prompt-body p {
  margin: 0;
}

.activity-card {
  padding: 24px 26px;
  border: 1px solid rgba(199, 214, 232, 0.9);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 252, 255, 0.96)),
    #fff;
  box-shadow: 0 18px 48px rgba(35, 52, 78, 0.08);
}

.activity-card .section-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: #263b60;
  font-size: 14px;
  font-weight: 900;
}

.activity-card .section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(242, 169, 44, 0.16);
}

.activity-card h2 {
  color: #152033;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0;
}

.activity-card h3 {
  color: #27364f;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: 0;
}

.prompt-card {
  position: relative;
  overflow: hidden;
  min-height: 214px;
  padding: 28px 32px;
  border-color: rgba(186, 204, 226, 0.9);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 62%, rgba(238, 245, 255, 0.74) 100%),
    radial-gradient(circle at 94% 52%, rgba(72, 116, 182, 0.18), transparent 20%),
    #fff;
  box-shadow: 0 18px 46px rgba(31, 47, 75, 0.08);
}

.prompt-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 6px;
  background: linear-gradient(180deg, var(--navy), var(--gold));
}

.prompt-card h1 {
  margin: 0 0 16px;
  color: #152033;
  font-size: 34px;
  letter-spacing: 0;
}

.prompt-body {
  display: grid;
  gap: 10px;
  color: #313b4c;
  font-size: 17px;
  line-height: 1.85;
}

.student-writing-card,
.teacher-progress-card,
.teacher-review-card {
  border-color: rgba(186, 204, 226, 0.9);
}

.student-writing-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(251, 253, 255, 0.98)),
    #fff;
}

.ocr-upload-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #cad8e8;
  border-radius: 14px;
  background:
    linear-gradient(135deg, #f9fbff 0%, #fff 58%, #fff8ea 100%),
    #fff;
}

.ocr-upload-copy h3 {
  margin: 0;
  color: #1d2a3e;
  font-size: 21px;
  line-height: 1.3;
}

.ocr-upload-copy p {
  margin: 8px 0 0;
  color: #65758a;
  font-size: 14px;
  line-height: 1.65;
}

.ocr-upload-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.ocr-file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #283747;
  border: 1px solid #b9c9dc;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.ocr-file-picker input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.ocr-upload-controls button {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
}

.ocr-preview-wrap {
  display: grid;
  grid-template-columns: minmax(180px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.ocr-preview-wrap img {
  width: 100%;
  max-height: 260px;
  object-fit: contain;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background: #f7fafc;
}

.ocr-text-output {
  width: 100%;
  min-height: 220px;
  resize: vertical;
  padding: 14px 16px;
  color: #1f2937;
  border: 1px solid #b8cae0;
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  line-height: 1.75;
}

.ocr-status {
  min-height: 22px;
  margin: 0;
  color: #66758a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
}

.ocr-upload-panel.is-busy .ocr-status {
  color: #2d6ea3;
}

.ocr-upload-panel.is-error .ocr-status {
  color: var(--red);
}

.ocr-upload-panel.is-success .ocr-status {
  color: var(--green);
}

.student-writing-card.is-submitted .essay-input {
  color: #3e4c5f;
  background: #f7f9fc;
}

.essay-input,
.review-input {
  width: 100%;
  resize: vertical;
  padding: 18px 20px;
  line-height: 1.8;
  border: 1px solid #b8cae0;
  border-radius: 14px;
  background: #fff;
  box-shadow:
    inset 0 1px 0 rgba(21, 31, 50, 0.03),
    0 0 0 4px rgba(64, 103, 158, 0.03);
  font-size: 16px;
}

.essay-input:focus,
.review-input:focus {
  outline: none;
  border-color: #6f97c7;
  box-shadow:
    inset 0 1px 0 rgba(21, 31, 50, 0.03),
    0 0 0 4px rgba(64, 103, 158, 0.12);
}

.essay-input {
  min-height: 250px;
  margin-top: 16px;
}

.review-input {
  min-height: 184px;
  margin: 10px 0 12px;
}

#confirmReviewBtn {
  min-height: 38px;
}

.activity-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.activity-actions button:not(.primary) {
  min-height: 44px;
  padding: 0 18px;
  color: #2f496e;
  border-color: #bfd0e5;
  background: #fff;
  font-weight: 900;
}

.method-send-row {
  margin: 16px 0 18px;
}

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

.revision-history-item {
  padding: 12px;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
  background: #fff;
}

.revision-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  color: #24324a;
}

.revision-history-meta span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.revision-history-item .markdown-body {
  color: #344155;
  font-size: 14px;
  line-height: 1.75;
}

.agent-control-card {
  padding: 18px 22px;
  border-color: #c7d6e8;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(246, 250, 255, 0.96)),
    #fbfdff;
  box-shadow: 0 12px 32px rgba(35, 52, 78, 0.07);
}

.agent-card-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.agent-card-main h2 {
  color: #152033;
  font-size: 21px;
  line-height: 1.25;
}

.agent-card-main p {
  max-width: 760px;
  margin: 6px 0 0;
  color: #66758a;
  font-size: 14px;
  line-height: 1.55;
}

.agent-lesson-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.agent-control-card .save-agent-config {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 900;
}

.agent-control-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 12px;
  align-items: end;
  margin-top: 12px;
}

.agent-control-grid label {
  display: grid;
  gap: 6px;
  color: #526174;
  font-size: 13px;
  font-weight: 900;
}

.agent-control-grid input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #c7d4e4;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
}

.agent-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  color: #253149;
  border: 1px solid #c7d4e4;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  white-space: nowrap;
}

.agent-toggle input {
  width: auto;
}

.agent-advanced {
  min-width: min(520px, 100%);
}

.agent-advanced[open] {
  flex-basis: 100%;
}

.agent-advanced summary {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  color: #334765;
  border: 1px solid #d7e1ec;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.agent-advanced summary::-webkit-details-marker {
  display: none;
}

.agent-config-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.agent-config-status.enabled {
  color: var(--green);
}

.agent-config-status.error {
  color: var(--red);
}

.activity-actions span,
.teacher-progress-card .section-row > span {
  color: #66758a;
  font-size: 13px;
  font-weight: 700;
}

.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid #a9bbcf;
  border-radius: 999px;
  color: #455467;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.state-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.state-badge.writing {
  color: var(--green);
  border-color: rgba(22, 128, 90, 0.28);
  background: #f3fbf7;
}

.state-badge.diagnosed {
  color: #246346;
  border-color: var(--green);
  background: var(--green-soft);
}

.state-badge.reviewed {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.student-progress-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 18px;
  transition: max-height 0.22s ease;
}

.student-progress-grid.is-collapsed {
  max-height: 90px;
  overflow: hidden;
}

.student-progress-grid.is-expanded {
  max-height: none;
  overflow: visible;
}

.student-progress-card {
  min-height: 86px;
  display: grid;
  gap: 6px;
  align-content: center;
  text-align: left;
  border: 1px solid #cfddec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(35, 52, 78, 0.05);
}

.student-progress-card strong {
  font-size: 18px;
  color: #1e2c44;
}

.student-progress-card span {
  color: #52606d;
  font-size: 13px;
  font-weight: 800;
}

.student-progress-card.writing {
  border-color: #d6e0eb;
  background: #fff;
}

.student-progress-card.diagnosed {
  border-color: rgba(242, 169, 44, 0.58);
  background: #fff9ec;
}

.student-progress-card.reviewed {
  color: #fff;
  border-color: #16805a;
  background: linear-gradient(135deg, #16805a, #1f9b70);
}

.student-progress-card.reviewed span {
  color: rgba(255, 255, 255, 0.86);
}

.student-progress-card.active {
  border-color: #2d6ea3;
  box-shadow: 0 0 0 4px rgba(45, 110, 163, 0.14);
}

.student-progress-toggle {
  width: 100%;
  min-height: 44px;
  margin-top: 14px;
  color: #283747;
  border: 1px solid #d7e2ef;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #fff, #f7fafc);
  font-size: 15px;
  font-weight: 900;
}

.student-progress-toggle::after {
  content: "⌄";
  display: inline-block;
  margin-left: 8px;
  color: var(--gold);
  font-size: 18px;
  line-height: 1;
}

.student-progress-toggle.is-expanded::after {
  transform: rotate(180deg);
}

.review-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 20px;
  margin-top: 18px;
}

.review-layout article,
.activity-feedback-grid > .activity-card,
.teacher-review-wide,
.ai-revision-box {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid #d9e5f2;
  border-radius: 16px;
  background: #fbfdff;
}

.review-layout article:nth-child(2),
.activity-feedback-grid > .activity-card:first-child,
.ai-revision-box {
  border-color: rgba(74, 120, 196, 0.28);
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
}

.review-layout article:nth-child(2)::before,
.activity-feedback-grid > .activity-card:first-child::before,
.ai-revision-box::before {
  content: "AI";
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2d6ea3, #3157c8);
  font-size: 12px;
  font-weight: 900;
}

.activity-feedback-grid > .activity-card:nth-child(2),
.teacher-review-wide {
  border-color: rgba(242, 169, 44, 0.36);
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.98), rgba(255, 255, 255, 0.98)),
    #fff;
}

.activity-feedback-grid > .activity-card:nth-child(2)::before,
.teacher-review-wide::before {
  content: "批注";
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  place-items: center;
  min-width: 46px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: #6f4300;
  background: #fff0cc;
  font-size: 12px;
  font-weight: 900;
}

.report-box {
  height: 220px;
  min-height: 0;
  overflow-y: auto;
  padding: 18px 20px;
  white-space: pre-wrap;
  border: 1px dashed #c9d8ea;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 251, 255, 0.94)),
    #fff;
  color: #334155;
  line-height: 1.78;
  box-shadow: inset 0 1px 0 rgba(21, 31, 50, 0.03);
}

.report-box.markdown-body {
  white-space: normal;
}

.activity32-grid .report-box {
  height: 236px;
}

.review-layout .report-box,
.activity-feedback-grid .report-box {
  height: 248px;
}

.ai-revision-box .report-box,
.ai-revision-box .revision-history {
  height: 230px;
  min-height: 0;
  overflow-y: auto;
}

.markdown-body {
  color: #344155;
  line-height: 1.75;
}

.markdown-body > :first-child {
  margin-top: 0;
}

.markdown-body > :last-child {
  margin-bottom: 0;
}

.markdown-body p,
.markdown-body ul,
.markdown-body ol,
.markdown-body blockquote,
.markdown-body pre {
  margin: 0 0 10px;
}

.markdown-body h3,
.markdown-body h4,
.markdown-body h5,
.markdown-body h6 {
  margin: 14px 0 8px;
  color: #162033;
  font-size: 17px;
  letter-spacing: 0;
}

.markdown-body ul,
.markdown-body ol {
  padding-left: 22px;
}

.markdown-body li + li {
  margin-top: 4px;
}

.markdown-body blockquote {
  padding: 8px 12px;
  border-left: 4px solid #8fb7df;
  background: #f4f8fc;
  color: #42526a;
}

.markdown-body code {
  padding: 2px 5px;
  border-radius: 6px;
  background: #eef3f8;
  color: #1f3659;
  font-family: "Cascadia Mono", "Consolas", monospace;
  font-size: 0.92em;
}

.markdown-body pre {
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
  border: 1px solid #d6e0eb;
  border-radius: 8px;
  background: #f4f7fb;
}

.markdown-body pre code {
  padding: 0;
  background: transparent;
}

.markdown-body a {
  color: var(--brand-blue);
  font-weight: 800;
}

.markdown-body hr {
  margin: 14px 0;
  border: 0;
  border-top: 1px solid #d7e2ee;
}

.muted-box {
  color: #66758a;
}

.micro-lesson-panel {
  display: grid;
  gap: 12px;
  margin: 18px 0 16px;
  padding: 14px;
  border: 1px solid #cdddec;
  border-radius: 8px;
  background: #f7fbff;
}

.micro-lesson-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.micro-lesson-header h3 {
  margin: 3px 0 2px;
  color: #162033;
  font-size: 18px;
  letter-spacing: 0;
}

.micro-lesson-header p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.micro-lesson-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #aebdce;
  border-radius: 999px;
  color: #536273;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.micro-lesson-badge.done {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.micro-lesson-badge.pending {
  color: #8a5a00;
  border-color: #e5bf6a;
  background: #fff7e0;
}

.micro-lesson-empty {
  padding: 14px;
  border: 1px dashed #c3d1e0;
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-size: 14px;
  font-weight: 800;
}

.micro-lesson-video {
  width: 100%;
  max-height: 420px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #101828;
}

.micro-lesson-teacher-panel {
  border-color: #c7d6e8;
  box-shadow: none;
}

.micro-lesson-upload-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(160px, 0.8fr);
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.micro-lesson-file-input {
  height: 40px;
  padding: 7px 10px;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #fff;
}

.micro-lesson-upload-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.micro-lesson-current {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 11px 12px;
  border: 1px solid #d9e4ef;
  border-radius: 8px;
  background: #fbfcfd;
  color: #344155;
  font-size: 14px;
}

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

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

.method-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.activity32-step-tab {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cdd9e8;
  border-radius: 999px;
  background: #fff;
  color: #27364f;
  font-weight: 900;
}

.activity32-step-tab.active {
  color: #0f4b36;
  border-color: #a8d7c6;
  background: #eefaf5;
  box-shadow: 0 0 0 3px rgba(22, 128, 90, 0.1);
}

.activity32-step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 10px 0 14px;
}

.activity32-step-viewport {
  overflow: hidden;
  border: 1px solid #d8e3ef;
  border-radius: 10px;
  background: #fbfdff;
}

.activity32-step-panel {
  display: none;
  padding: 16px;
}

.activity32-step-panel.active {
  display: block;
}

.step-panel-copy {
  margin-bottom: 12px;
}

.step-panel-copy h3 {
  margin: 0 0 6px;
  color: #19253a;
  font-size: 18px;
}

.step-panel-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.method-button {
  min-height: 74px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 10px;
  text-align: left;
  border: 1px solid #cdd9e8;
  background: #fff;
}

.method-button strong {
  color: #19253a;
  font-size: 15px;
}

.method-button span {
  color: var(--muted);
  font-size: 12px;
}

.method-button.active {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 3px rgba(22, 128, 90, 0.12);
}

.ai-revision-box {
  margin: 12px 0 16px;
}

.ai-revision-box h3,
.draft-label span,
.teacher-review-wide h3 {
  display: block;
  margin: 0 0 10px;
  color: #27364f;
}

.teacher-review-wide {
  margin-top: 20px;
}

.teacher-review-wide h3,
.review-layout h3,
.activity-feedback-grid .section-title,
.ai-revision-box h3 {
  padding-right: 58px;
}

.teacher-review-wide .primary,
.activity-actions .primary,
#confirmReviewBtn {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), #1d4f91);
  border-color: var(--navy);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(40, 55, 71, 0.16);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

select {
  height: 38px;
  padding: 0 10px;
}

.primary {
  height: 38px;
  padding: 0 16px;
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 20px;
  padding: 20px;
  min-height: 0;
  flex: 1;
}

.chat-panel,
.draft-panel {
  min-height: 0;
}

.chat-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-state {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  background: #fbfaf7;
}

.chat-presence,
.agent-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-presence,
#cozeStatus,
.agent-inline button {
  white-space: nowrap;
}

.agent-inline {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7b0bb;
}

.state-dot.active {
  background: var(--green);
}

.messages {
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.coze-sdk-mount {
  min-height: 520px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.coze-sdk-mount.hidden {
  display: none;
}

.message {
  max-width: 76%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  line-height: 1.6;
  background: #fff;
}

.message.student {
  align-self: flex-end;
  background: #eef4fb;
  border-color: #c9d9ef;
}

.message.teacher {
  align-self: flex-start;
  background: #fff6e8;
  border-color: #ead4ad;
}

.message.ai {
  align-self: flex-start;
  background: #edf7f2;
  border-color: #c7dfd3;
}

.message.system {
  align-self: center;
  max-width: 88%;
  color: var(--muted);
  background: #f3f4f6;
  font-size: 13px;
}

.message.pending {
  opacity: 0.72;
}

.message-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.message-time {
  color: var(--muted);
  font-weight: 400;
}

.composer {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 86px;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fbfaf7;
}

.composer textarea {
  resize: none;
  padding: 10px 12px;
  min-height: 48px;
}

.composer button {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.draft-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.draft-card h3 {
  font-size: 19px;
}

.version-pill {
  padding: 5px 10px;
  background: #f2e6d2;
  color: #7f4e12;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.draft-text {
  width: 100%;
  min-height: 230px;
  resize: vertical;
  margin: 14px 0 10px;
  padding: 12px;
  line-height: 1.7;
}

.draft-actions,
.control-list {
  display: grid;
  gap: 10px;
}

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

.draft-actions button,
.control-list button {
  min-height: 38px;
  padding: 8px 10px;
}

.control-list button {
  text-align: left;
}

.timeline {
  display: grid;
  gap: 10px;
  font-size: 13px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eceff3;
}

.timeline-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.timeline-tag {
  color: var(--red);
  font-weight: 700;
}

.agent-inline.connected #cozeStatus {
  color: var(--green);
  font-weight: 700;
}

.agent-inline.error #cozeStatus {
  color: var(--red);
  font-weight: 700;
}

.agent-id-input,
.token-input {
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
}

.agent-id-input {
  width: 150px;
}

.token-input {
  width: 180px;
}

.agent-inline button {
  height: 32px;
  padding: 0 12px;
}

@media (max-width: 1120px) {
  .entry-header {
    height: auto;
    align-items: flex-start;
    padding: 22px 28px;
  }

  .entry-nav {
    flex-wrap: wrap;
    gap: 14px 22px;
  }

  .entry-account {
    min-height: 50px;
    padding: 6px 8px 6px 14px;
  }

  .entry-account strong {
    font-size: 15px;
  }

  .login-card {
    grid-template-columns: 1fr;
    width: min(620px, 100%);
  }

  .login-visual {
    min-height: 230px;
  }

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

  .entry-hero::after {
    inset: 42vh 0 0;
  }

  .entry-hero-left {
    min-height: 42vh;
  }

  .entry-hero-content {
    min-height: 58vh;
    padding: 76px 36px 84px;
  }

  .entry-courses {
    min-height: auto;
    padding: 72px 36px 90px;
  }

  .entry-hero-content h1 {
    font-size: 64px;
  }

  .entry-hero-content .hero-subtitle {
    font-size: 40px;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

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

  .student-list {
    min-height: unset;
  }

  .main-grid {
    grid-template-columns: 1fr;
  }

  .lesson-layout {
    grid-template-columns: 1fr;
  }

  .lesson-editor {
    border-left: 0;
    border-top: 1px solid #d3e0ee;
    max-height: none;
  }

  .lesson-tools {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-top: 1px solid #aac6df;
  }

  .teacher-session {
    gap: 10px;
  }

  .session-user strong {
    font-size: 15px;
  }

  .lesson-edit-status {
    grid-column: 1 / -1;
  }

  .activity-page {
    grid-template-columns: 1fr;
  }

  .activity-rail {
    min-height: unset;
  }

  .rail-title {
    writing-mode: horizontal-tb;
    min-height: unset;
    font-size: 24px;
    letter-spacing: 0;
  }

  .review-layout,
  .activity-feedback-grid,
  .activity32-grid,
  .ocr-preview-wrap {
    grid-template-columns: 1fr;
  }

  .agent-control-grid {
    grid-template-columns: 1fr;
  }

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

  .micro-lesson-upload-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal-nav {
    height: auto;
    min-height: 72px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 18px;
  }

  .teacher-session {
    width: 100%;
    justify-content: flex-start;
    padding-bottom: 14px;
  }

  .session-user {
    order: -1;
    flex: 1 1 100%;
    border-radius: 14px;
  }

  .entry-header {
    gap: 18px;
    padding: 18px;
  }

  .entry-nav {
    justify-content: flex-start;
  }

  .entry-nav-link[href="#mentors"],
  .entry-nav-link[href="#blog"],
  .entry-nav-link[href="#contact"] {
    display: none;
  }

  .entry-cta {
    min-width: 132px;
    height: 48px;
    padding: 0 20px;
  }

  .entry-account {
    width: 100%;
    max-width: 320px;
    justify-content: space-between;
  }

  .login-dialog {
    padding: 16px;
  }

  .login-card {
    max-height: calc(100vh - 32px);
    overflow-y: auto;
  }

  .login-visual {
    padding: 24px;
  }

  .login-visual h2 {
    font-size: 30px;
  }

  .login-visual p {
    font-size: 15px;
  }

  .login-fields {
    padding: 26px 22px 28px;
  }

  .login-card h3 {
    font-size: 25px;
  }

  .login-card input {
    height: 52px;
    font-size: 16px;
  }

  .portal-brand span {
    font-size: 20px;
  }

  .entry-hero-left {
    min-height: 38vh;
  }

  .entry-hero-content {
    min-height: 62vh;
    padding: 72px 24px 72px;
  }

  .entry-hero-content h1 {
    font-size: 46px;
  }

  .entry-hero-content .hero-subtitle {
    font-size: 30px;
  }

  .entry-hero-content p:not(.hero-subtitle),
  .hero-copy p {
    font-size: 16px;
  }

  .entry-courses {
    padding: 58px 18px 76px;
  }

  .entry-section-title {
    margin-bottom: 34px;
  }

  .entry-section-title p {
    font-size: 16px;
  }

  .landing-course-info {
    padding: 24px 22px 28px;
  }

  .landing-course-img img {
    height: 240px;
  }

  .course-page,
  .lesson-page {
    padding: 28px 18px;
  }

  .lesson-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .lesson-list {
    padding: 18px;
  }

  .lesson-editor {
    padding: 18px;
  }

  .lesson-tools {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .class-create-form,
  .student-create-form,
  .student-account-row {
    grid-template-columns: 1fr;
  }

  .lesson-row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .lesson-action {
    grid-column: 2;
  }

  .topbar,
  .top-actions,
  .chat-state,
  .agent-inline {
    align-items: stretch;
    flex-direction: column;
  }

  .chat-presence {
    align-self: flex-start;
  }

  .agent-id-input,
  .token-input {
    width: 100%;
  }

  .composer {
    grid-template-columns: 1fr;
  }

  .message {
    max-width: 100%;
  }

  .activity-page {
    padding: 16px;
  }

  .activity-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .micro-lesson-header,
  .micro-lesson-current {
    align-items: flex-start;
    flex-direction: column;
  }

  .prompt-card h1 {
    font-size: 27px;
  }

  #confirmReviewBtn,
  #activity32ConfirmReviewBtn {
    width: 100%;
    margin: 0 0 10px;
  }

  .method-list {
    grid-template-columns: 1fr;
  }
}
