:root {
  color-scheme: light;
  --ink: #202326;
  --muted: #66727c;
  --soft: #f3f0e8;
  --surface: #ffffff;
  --line: #dbe3e2;
  --green: #2f755d;
  --green-deep: #174536;
  --green-soft: #eaf5ef;
  --gold: #c4933a;
  --blue: #2f6f9f;
  --coral: #cf6d51;
  --shadow: 0 22px 70px rgba(32, 35, 38, 0.14);
  --soft-shadow: 0 16px 44px rgba(27, 62, 51, 0.1);
}

.manager-workbench-page {
  display: none;
  gap: 18px;
}

.manager-workbench-page.active {
  display: grid;
}

.manager-hero {
  align-items: stretch;
}

.manager-url-card {
  display: grid;
  align-content: center;
  gap: 6px;
  min-width: min(100%, 260px);
  padding: 16px;
  border: 1px solid rgba(47, 117, 93, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.manager-url-card span,
.manager-link-card span,
.manager-url-row strong {
  color: var(--green);
  font-weight: 800;
}

.manager-url-card strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.manager-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.manager-link-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 18px;
  text-align: left;
  border: 1px solid rgba(47, 117, 93, 0.14);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 10px 28px rgba(27, 62, 51, 0.07);
}

.manager-link-card:hover,
.manager-link-card:focus-visible {
  outline: 2px solid rgba(47, 117, 93, 0.28);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.manager-link-card.is-primary {
  color: #fff;
  background: linear-gradient(145deg, var(--green-deep), var(--green));
}

.manager-link-card.is-primary span,
.manager-link-card.is-primary small {
  color: rgba(255, 255, 255, 0.82);
}

.manager-link-card strong {
  font-size: 22px;
  line-height: 1.22;
}

.manager-link-card small {
  color: var(--muted);
  line-height: 1.55;
}

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

.manager-routine-card,
.manager-url-list {
  padding: 18px;
  border: 1px solid rgba(47, 117, 93, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.manager-routine-card ol {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

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

.manager-url-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--green-soft);
}

.manager-url-row code {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 13px;
}

@media (max-width: 980px) {
  .manager-link-grid,
  .manager-routine-grid {
    grid-template-columns: 1fr;
  }

  .manager-url-row {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(47, 117, 93, 0.12), transparent 34%),
    linear-gradient(180deg, #fbfaf6 0%, #edf4f1 100%);
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

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

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  padding: 26px 20px;
  border-right: 1px solid rgba(47, 117, 93, 0.16);
  background: rgba(255, 251, 242, 0.92);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.brand-logo {
  display: block;
  width: min(210px, 100%);
  height: auto;
}

.brand-mark,
.avatar {
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-weight: 800;
}

.brand-mark {
  width: 52px;
  height: 52px;
  font-size: 26px;
}

.brand h1,
.brand p,
.learner-card h2,
.learner-card p,
.student-hero h2,
.student-hero p,
.section-head h3,
.teacher-hero h2,
.teacher-hero p,
.coach-head h3,
.feifei-head h3 {
  margin: 0;
}

.brand p,
.learner-card p,
.rail-note p,
.student-hero p,
.path-item p,
.knowledge-card p,
.teacher-hero p,
.teacher-metrics p,
.student-item p,
.coach-response li {
  color: var(--muted);
  line-height: 1.65;
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  border-radius: 8px;
  background: #ebe8df;
}

.role-tab {
  min-height: 42px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
}

.role-tab.active {
  color: #fff;
  background: var(--green-deep);
}

.learner-card,
.admin-rail-card,
.rail-note {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.admin-rail-card {
  display: none;
  gap: 10px;
  background: linear-gradient(145deg, rgba(23, 69, 54, 0.94), rgba(47, 117, 93, 0.9));
  color: #fff;
  box-shadow: 0 14px 34px rgba(27, 62, 51, 0.14);
}

.admin-rail-card .eyebrow,
.admin-rail-card p {
  color: rgba(255, 255, 255, 0.82);
}

.admin-rail-card h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.2;
}

.admin-rail-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
}

.admin-rail-actions {
  display: grid;
  gap: 8px;
}

.admin-rail-actions button {
  min-height: 36px;
  border-radius: 8px;
  color: var(--green-deep);
  background: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.admin-side-menu {
  display: none;
  gap: 7px;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(47, 117, 93, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 12px 30px rgba(27, 62, 51, 0.06);
}

.admin-side-menu span {
  padding: 2px 4px 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.admin-side-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 38px;
  padding: 0 11px;
  border-radius: 8px;
  color: #314238;
  background: transparent;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
}

.admin-side-menu button:hover,
.admin-side-menu button.active {
  color: #fff;
  background: var(--green-deep);
}

.learner-card {
  display: grid;
  gap: 10px;
  background:
    linear-gradient(145deg, rgba(234, 245, 239, 0.72), rgba(255, 255, 255, 0.92) 52%),
    #fff;
  box-shadow: 0 14px 34px rgba(27, 62, 51, 0.08);
}

.reading-page-active .learner-card {
  display: none;
}

.reading-page-active .side-rail {
  gap: 0;
}

.learner-head {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.learner-meta {
  min-width: 0;
}

.avatar {
  width: 42px;
  height: 42px;
  margin: 0;
  font-size: 20px;
  background: linear-gradient(145deg, var(--green), var(--blue));
}

.eyebrow {
  display: inline-block;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.learner-card h2 {
  margin-top: 2px;
  font-size: 21px;
  line-height: 1.18;
}

.learner-card p {
  font-size: 13px;
  line-height: 1.45;
}

.level-progress {
  height: 6px;
  margin: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebe8;
}

.level-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--gold));
}

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

.learner-card dl div {
  display: grid;
  gap: 3px;
  min-width: 0;
  min-height: 46px;
  padding: 7px 9px;
  border: 1px solid rgba(47, 117, 93, 0.08);
  border-radius: 8px;
  background: rgba(247, 250, 248, 0.76);
}

.learner-card dt,
.learner-card dd {
  margin: 0;
}

.learner-card dt {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
}

.learner-card dd {
  overflow: hidden;
  color: var(--green-deep);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.monthly-record-trigger {
  width: 100%;
  min-height: 34px;
  margin-top: 0;
  border-radius: 8px;
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 13px;
  font-weight: 900;
}

.rail-note {
  margin-top: 14px;
}

.rail-note span {
  color: var(--coral);
  font-weight: 800;
}

.rail-note p {
  margin: 8px 0 0;
}

.workspace {
  padding: 28px;
  min-width: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

html[data-initial-view="admin"] #student-view.view.active {
  display: none;
}

html[data-initial-view="admin"] #admin-view.view {
  display: block;
}

html[data-initial-view="admin"] .learner-card,
html.admin-host .learner-card,
html[data-initial-view="admin"] .rail-note,
html.admin-host .rail-note {
  display: none !important;
}

html[data-initial-view="admin"] .admin-rail-card,
html.admin-host .admin-rail-card {
  display: grid;
}

html[data-initial-view="admin"] .admin-side-menu,
html.admin-host .admin-side-menu {
  display: grid;
}

html[data-initial-page="manager-workbench"] #admin-view .app-page.active,
html[data-initial-page="admin-students-page"] #admin-view .app-page.active,
html[data-initial-page="admin-classes-page"] #admin-view .app-page.active,
html[data-initial-page="admin-schedule-page"] #admin-view .app-page.active,
html[data-initial-page="admin-reading-page"] #admin-view .app-page.active,
html[data-initial-page="admin-notes-page"] #admin-view .app-page.active,
html[data-initial-page="admin-materials-page"] #admin-view .app-page.active,
html[data-initial-page="admin-platform-page"] #admin-view .app-page.active,
html[data-initial-page="admin-performance-page"] #admin-view .app-page.active,
html[data-initial-page="training-page"] #admin-view .app-page.active {
  display: none !important;
}

html[data-initial-page="manager-workbench"] #manager-workbench,
html[data-initial-page="admin-students-page"] #admin-students-page,
html[data-initial-page="admin-classes-page"] #admin-classes-page,
html[data-initial-page="admin-schedule-page"] #admin-schedule-page,
html[data-initial-page="admin-reading-page"] #admin-reading-page,
html[data-initial-page="admin-notes-page"] #admin-notes-page,
html[data-initial-page="admin-materials-page"] #admin-materials-page,
html[data-initial-page="admin-platform-page"] #admin-platform-page,
html[data-initial-page="admin-performance-page"] #admin-performance-page,
html[data-initial-page="training-page"] #training-page {
  display: block !important;
}

.app-page {
  display: none;
}

.app-page.active {
  display: block;
}

.jump-nav {
  position: sticky;
  top: 14px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 8px;
  border: 1px solid rgba(47, 117, 93, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 36px rgba(32, 35, 38, 0.08);
  backdrop-filter: blur(14px);
  overflow-x: auto;
}

.jump-nav button {
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

.jump-nav span {
  flex: 0 0 auto;
  padding: 0 8px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.jump-nav button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #f3f6f4;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.jump-nav button:hover,
.jump-nav button.active {
  color: #fff;
  background: var(--green-deep);
}

.student-hero,
.teacher-hero {
  display: grid;
  gap: 22px;
  margin-bottom: 24px;
  border: 1px solid rgba(47, 117, 93, 0.18);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.student-hero {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.hero-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 300px;
}

.session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.session-meta span,
.status-chip,
.safe-badge {
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--green-deep);
  background: #e6f1ec;
  font-size: 13px;
  font-weight: 800;
}

.student-hero h2 {
  max-width: 760px;
  font-size: 40px;
  line-height: 1.15;
  letter-spacing: 0;
}

.student-hero p {
  max-width: 720px;
  margin-top: 14px;
  font-size: 16px;
}

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

.hero-actions button,
#ask-ai,
#save-log {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-deep);
  font-weight: 800;
}

#ask-ai:disabled {
  cursor: progress;
  opacity: 0.68;
}

.book-art {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 22px;
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(12, 28, 25, 0.22), rgba(12, 28, 25, 0.58)),
    radial-gradient(circle at 73% 18%, #e7d2a3 0 10%, transparent 11%),
    linear-gradient(150deg, #b7534d 0%, #2f6f9f 45%, #174536 100%);
}

.book-art span,
.book-art small {
  position: relative;
  z-index: 1;
  opacity: 0.88;
}

.book-art strong {
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 1.08;
}

.web-line {
  position: absolute;
  height: 1px;
  width: 360px;
  background: rgba(255, 255, 255, 0.28);
  transform-origin: left center;
}

.web-line.one {
  top: 72px;
  left: 34px;
  transform: rotate(26deg);
}

.web-line.two {
  top: 146px;
  left: -24px;
  transform: rotate(-18deg);
}

.web-line.three {
  bottom: 72px;
  left: 42px;
  transform: rotate(12deg);
}

.student-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.catalog-panel {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 54px rgba(32, 35, 38, 0.1);
}

.catalog-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 16px 0;
}

.catalog-hint {
  margin: -4px 0 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.current-level-lock {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-deep);
  font-weight: 900;
}

.catalog-tools {
  display: flex;
  gap: 10px;
  align-items: center;
}

.catalog-tools label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.catalog-tools select,
.catalog-tools input {
  min-height: 40px;
  min-width: 150px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.catalog-tools input {
  min-width: 220px;
}

.level-profile {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.level-profile div,
.catalog-summary div {
  padding: 12px;
  border-radius: 8px;
  background: #f7f9f7;
  border: 1px solid #e7eeeb;
}

.level-profile span,
.catalog-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.level-profile strong,
.catalog-summary strong {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.catalog-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.book-catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.book-catalog.weekly-book {
  grid-template-columns: minmax(0, 1fr);
  max-height: none;
  overflow: visible;
  padding-right: 0;
}

.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.home-entry-card {
  display: grid;
  gap: 5px;
  min-height: 86px;
  padding: 12px;
  border: 1px solid rgba(47, 117, 93, 0.13);
  border-radius: 8px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(234, 245, 239, 0.82), rgba(255, 255, 255, 0.94)),
    #fff;
  text-align: left;
  box-shadow: 0 12px 28px rgba(27, 62, 51, 0.08);
}

.home-entry-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.home-entry-card strong {
  color: var(--green-deep);
  font-size: 16px;
  line-height: 1.25;
}

.home-entry-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.home-tag-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  align-items: center;
  overflow-x: auto;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid rgba(47, 117, 93, 0.09);
  border-radius: 8px;
  background: rgba(247, 251, 248, 0.86);
  scrollbar-width: none;
}

.home-tag-strip::-webkit-scrollbar {
  display: none;
}

.home-tag-strip span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid rgba(47, 117, 93, 0.1);
  border-radius: 999px;
  color: var(--green-deep);
  background: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.book-card {
  display: grid;
  gap: 10px;
  min-height: 238px;
  padding: 14px;
  border: 1px solid #e3ebe8;
  border-radius: 8px;
  background: #fff;
}

.weekly-book-card {
  position: relative;
  overflow: hidden;
  gap: 8px;
  min-height: 0;
  padding: 14px;
  border-color: rgba(47, 117, 93, 0.16);
  background:
    linear-gradient(135deg, rgba(234, 245, 239, 0.72), transparent 46%),
    #fff;
  box-shadow: 0 18px 46px rgba(27, 62, 51, 0.1);
}

.weekly-book-card::after {
  content: "本周";
  position: absolute;
  right: 16px;
  bottom: 12px;
  color: rgba(47, 117, 93, 0.08);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
  pointer-events: none;
}

.weekly-book-card > * {
  position: relative;
  z-index: 1;
}

.book-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.book-card h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.35;
}

.weekly-book-card h4 {
  font-size: 14px;
  line-height: 1.3;
}

.level-badge,
.domain-badge {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.domain-badge {
  color: var(--green-deep);
  background: #edf4f0;
}

.book-card .theme {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.weekly-book-card .theme {
  font-size: 11px;
  line-height: 1.35;
}

.book-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.weekly-book-card p {
  font-size: 12px;
  line-height: 1.5;
}

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

.book-meta-grid div,
.reading-method {
  padding: 10px;
  border-radius: 8px;
  background: #f7f9f7;
  border: 1px solid #e7eeeb;
}

.book-meta-grid span,
.reading-method span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.book-meta-grid strong,
.reading-method strong {
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}

.reading-method {
  border-left: 4px solid var(--green);
}

.reading-method p {
  margin-top: 6px;
  font-size: 13px;
}

.knowledge-tags,
.gain-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.knowledge-tags span,
.gain-tags span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f1f4f3;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.gain-tags span {
  color: #7c3d24;
  background: #fff0e6;
}

.empty-catalog {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}

.learning-column {
  display: grid;
  gap: 18px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.section-head.compact {
  align-items: flex-start;
  margin-bottom: 14px;
}

.section-head h3 {
  margin-top: 4px;
  font-size: 22px;
}

.muted-chip {
  color: var(--muted);
  background: #eff2f1;
}

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

.path-item,
.knowledge-card,
.split-panel article,
.coach-panel,
.teacher-panel,
.teacher-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.path-item {
  min-height: 178px;
  padding: 14px;
}

.path-item time {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--green);
  font-weight: 900;
}

.path-item strong,
.knowledge-card strong,
.student-item strong {
  display: block;
  line-height: 1.35;
}

.path-item p,
.knowledge-card p {
  margin: 8px 0 0;
  font-size: 14px;
}

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

.knowledge-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 126px;
  overflow: hidden;
  padding: 14px;
  color: inherit;
  text-align: left;
  box-shadow: 0 12px 32px rgba(27, 62, 51, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.knowledge-card:hover,
.knowledge-card:focus-visible {
  border-color: rgba(47, 117, 93, 0.34);
  box-shadow: 0 16px 38px rgba(27, 62, 51, 0.12);
  transform: translateY(-2px);
  outline: none;
}

.knowledge-card::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -18px;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: rgba(47, 117, 93, 0.08);
  pointer-events: none;
}

.knowledge-index {
  display: inline-grid;
  width: 34px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  color: var(--green-deep);
  background: #e6f1ec;
  font-size: 12px;
  font-weight: 900;
}

.knowledge-card strong {
  font-size: 16px;
}

.knowledge-card p {
  margin-top: 0;
}

.knowledge-card:nth-child(1) {
  border-left: 4px solid var(--green);
}

.knowledge-card:nth-child(2) {
  border-left: 4px solid var(--gold);
}

.knowledge-card:nth-child(2)::after {
  background: rgba(196, 147, 58, 0.12);
}

.knowledge-card:nth-child(3) {
  border-left: 4px solid var(--blue);
}

.knowledge-card:nth-child(3)::after {
  background: rgba(47, 111, 159, 0.1);
}

.knowledge-card:nth-child(4) {
  border-left: 4px solid var(--coral);
}

.knowledge-card:nth-child(4)::after {
  background: rgba(207, 109, 81, 0.11);
}

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

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

.split-panel article,
.teacher-panel,
.coach-panel {
  padding: 18px;
}

.mind-map {
  display: grid;
  gap: 10px;
}

.mind-node {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  min-height: 92px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #dde9e4;
  color: inherit;
  background: linear-gradient(135deg, #ffffff 0%, #f6faf7 100%);
  box-shadow: 0 10px 24px rgba(42, 91, 70, 0.06);
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mind-node:hover,
.mind-node:focus-visible {
  border-color: rgba(47, 117, 93, 0.34);
  box-shadow: 0 14px 28px rgba(42, 91, 70, 0.1);
  transform: translateY(-1px);
  outline: none;
}

.mind-step {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 16px rgba(50, 129, 91, 0.2);
}

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

.mind-node h4 {
  margin: 0;
  color: var(--green-deep);
  font-size: 15px;
  line-height: 1.35;
}

.mind-node p {
  display: -webkit-box;
  margin: 5px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mind-method {
  color: var(--ink) !important;
  font-weight: 800;
}

.mind-node small {
  display: block;
  margin-top: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.reading-log {
  display: grid;
  gap: 10px;
}

.student-task-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(47, 117, 93, 0.12);
  border-radius: 8px;
  background: rgba(247, 251, 248, 0.92);
}

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

.student-task-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid #dfeae5;
  border-radius: 8px;
  background: #fff;
}

.student-task-card span {
  display: block;
  margin-bottom: 3px;
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
}

.student-task-card strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
}

.student-task-card em {
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--green-deep);
  background: #edf7f1;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.student-task-card.is-completed em {
  color: var(--muted);
  background: #f2f4f3;
}

.ssr-timer-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid #dfeae5;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(232, 244, 237, 0.82), rgba(255, 255, 255, 0.92)),
    #fff;
  box-shadow: 0 12px 26px rgba(42, 91, 70, 0.08);
}

.timer-today-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2px 10px;
  padding: 10px 11px;
  border: 1px solid rgba(47, 117, 93, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
}

.timer-today-summary span,
.timer-today-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.timer-today-summary strong {
  grid-column: 1;
  color: var(--green-deep);
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

.timer-today-summary small {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 5px 8px;
  border-radius: 999px;
  background: #edf7f1;
  color: var(--green);
}

.timer-control {
  display: grid;
  gap: 8px;
}

.timer-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
}

.timer-input-row span {
  color: var(--muted);
  font-weight: 800;
}

.timer-presets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.timer-presets button {
  min-height: 32px;
  border: 1px solid #dfeae5;
  border-radius: 8px;
  color: var(--green-deep);
  background: #fff;
  font-weight: 900;
}

.timer-presets button::after {
  content: "分钟";
  margin-left: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

#start-reading-timer {
  min-height: 42px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-deep);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(47, 117, 93, 0.2);
}

.timer-session-list {
  display: grid;
  gap: 6px;
}

.timer-session-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 10px;
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.timer-session-item strong {
  color: var(--green-deep);
}

.timer-session-item small {
  grid-column: 1 / -1;
  color: #6f7f78;
  font-size: 11px;
  font-weight: 700;
}

.reading-log label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
}

.reading-log input,
.reading-log textarea,
#ai-question {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.reading-log input {
  min-height: 38px;
  padding: 0 10px;
}

.reading-log textarea,
#ai-question {
  min-height: 92px;
  padding: 10px;
  resize: vertical;
  line-height: 1.65;
}

.reading-lock {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 50% 18%, rgba(194, 231, 210, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(31, 85, 64, 0.97), rgba(18, 43, 36, 0.99)),
    #173f31;
  transition: opacity 0.2s ease;
}

.reading-lock.is-open {
  opacity: 1;
  pointer-events: auto;
}

.reading-lock-open {
  overflow: hidden;
}

.reading-lock-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(360px, 100%);
  padding: 26px 20px 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  text-align: center;
  backdrop-filter: blur(14px);
}

.reading-lock-panel::before {
  content: "";
  justify-self: center;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(221, 244, 231, 0.62);
}

.reading-lock h3 {
  margin: 0;
  color: #f6fff9;
  font-size: 22px;
  line-height: 1.35;
}

.lock-countdown {
  padding: 8px 0 0;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.lock-streak {
  justify-self: center;
  padding: 7px 12px;
  border: 1px solid rgba(220, 244, 230, 0.28);
  border-radius: 999px;
  color: #173f31;
  background: #dff2e6;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.lock-progress {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.lock-progress span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: #cfeadd;
  transition: width 0.3s linear;
}

.reading-lock p {
  margin: 0;
  color: #dbece4;
  line-height: 1.6;
}

.lock-cancel {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  color: #e8f3ee;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 900;
}

.monthly-record-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  background: rgba(18, 31, 27, 0.24);
  backdrop-filter: blur(5px);
  transition: opacity 0.2s ease;
}

.monthly-record-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.monthly-record-open {
  overflow: hidden;
}

.monthly-record-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(430px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(47, 117, 93, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 26px 80px rgba(23, 69, 54, 0.24);
}

.monthly-record-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--green-deep);
  background: #edf4f0;
  font-size: 24px;
  line-height: 1;
}

.monthly-record-panel h3 {
  margin: 0;
  padding-right: 42px;
  font-size: 22px;
}

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

.monthly-summary div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: #f5faf7;
}

.monthly-summary span {
  color: var(--muted);
}

.monthly-summary strong {
  color: var(--green-deep);
  font-size: 20px;
}

.calendar-weekdays,
.monthly-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  display: grid;
  place-items: center;
  min-height: 48px;
  padding: 5px 2px;
  border: 1px solid #e5eeea;
  border-radius: 8px;
  background: #fbfdfb;
}

.calendar-day.is-empty {
  border-color: transparent;
  background: transparent;
}

.calendar-day strong {
  color: var(--ink);
  font-size: 13px;
}

.calendar-day small {
  min-height: 14px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.1;
}

.calendar-day.has-reading {
  border-color: rgba(47, 117, 93, 0.28);
  background: #eaf5ef;
}

.calendar-day.has-reading strong,
.calendar-day.has-reading small {
  color: var(--green-deep);
  font-weight: 900;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(196, 147, 58, 0.45);
}

.coach-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  box-shadow: 0 16px 46px rgba(32, 35, 38, 0.1);
}

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

.coach-head h3 {
  margin-top: 4px;
  font-size: 22px;
}

.safe-badge {
  color: #7c3d24;
  background: #fff0e6;
  white-space: nowrap;
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: 8px;
  background: #edf2ef;
}

.mode-tabs button {
  min-height: 36px;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.mode-tabs button.active {
  color: var(--green-deep);
  background: #fff;
}

.coach-response {
  min-height: 260px;
  max-height: min(44vh, 430px);
  overflow: auto;
  padding: 14px;
  border: 1px solid #e0ebe5;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(235, 246, 239, 0.82), rgba(248, 251, 248, 0.96)),
    #f7f9f7;
}

.coach-response h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.coach-response ol {
  margin: 0;
  padding-left: 20px;
}

.feifei-actions {
  display: flex;
  gap: 8px;
  align-items: stretch;
  justify-content: space-between;
}

.history-toggle,
.history-clear {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dce8e3;
  border-radius: 8px;
  color: var(--green-deep);
  background: #f3f8f5;
  font-weight: 800;
}

.history-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 44px;
  min-width: 44px;
  padding: 0;
}

.history-clock {
  position: relative;
  display: inline-block;
  width: 19px;
  height: 19px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.history-clock::before,
.history-clock::after {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  border-radius: 999px;
  background: currentColor;
  content: "";
  transform-origin: 50% 0;
}

.history-clock::before {
  height: 6px;
  transform: translate(-50%, -1px) rotate(0deg);
}

.history-clock::after {
  height: 5px;
  transform: translate(-50%, -1px) rotate(52deg);
}

.history-toggle:hover,
.history-clear:hover,
.history-delete:hover,
.guide-mode-tag:hover {
  color: #fff;
  background: var(--green-deep);
}

.guide-mode-tag {
  min-height: 42px;
  margin-right: auto;
  padding: 0 11px;
  border: 1px solid #dce8e3;
  border-radius: 999px;
  color: var(--green-deep);
  background: #f3f8f5;
  font-size: 12px;
  font-weight: 900;
}

.guide-mode-tag.is-active {
  color: #fff;
  border-color: var(--green-deep);
  background: var(--green-deep);
  box-shadow: 0 8px 18px rgba(31, 90, 67, 0.16);
}

.ai-history {
  display: grid;
  gap: 8px;
  flex: 0 1 auto;
  min-height: 0;
  padding: 12px;
  border: 1px solid #e3ebe8;
  border-radius: 8px;
  background: #fbfdfb;
}

.ai-history.is-collapsed {
  display: none;
}

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

.ai-history-head span {
  color: var(--green-deep);
  font-weight: 900;
}

.ai-history-head .history-clear {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

.ai-history-list {
  display: grid;
  gap: 8px;
  max-height: min(174px, 24vh);
  overflow: auto;
  padding-right: 2px;
}

.ai-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.history-replay,
.history-delete {
  border-radius: 8px;
  text-align: left;
}

.history-replay {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #e7eeeb;
}

.history-replay:hover {
  border-color: rgba(47, 117, 93, 0.38);
  background: #f6fbf8;
}

.history-replay strong,
.history-replay span,
.history-replay small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-replay strong {
  font-size: 14px;
}

.history-replay span,
.history-replay small {
  color: var(--muted);
  font-size: 12px;
}

.history-delete {
  min-width: 50px;
  padding: 0 10px;
  color: #8a4b3a;
  background: #fff2ed;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

.ai-response-field {
  padding: 12px;
  border: 1px solid #e3ebe8;
  border-radius: 8px;
  background: #fff;
}

.ai-response-field h4 {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0 0 8px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green-deep);
  background: #e6f1ec;
  font-size: 14px;
}

.ai-response-field p,
.ai-response-field ul {
  margin: 0;
}

.ai-response-field p,
.ai-response-field li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.ai-response-field p {
  white-space: pre-line;
}

.ai-response-field ul {
  display: grid;
  gap: 8px;
  padding-left: 18px;
}

.ai-response-field li strong,
.ai-response-field li span {
  display: block;
}

.ai-response-field li strong {
  color: var(--ink);
}

.empty-ai-field {
  color: #8b969f;
  font-size: 14px;
}

.ai-chat-log {
  display: grid;
  gap: 12px;
}

.ai-message {
  display: grid;
  gap: 10px;
  max-width: 92%;
}

.ai-message-user {
  justify-self: end;
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 16px 16px 4px 16px;
  color: #fff;
  background: linear-gradient(135deg, #2f755d, #1f5a43);
  box-shadow: 0 10px 26px rgba(31, 90, 67, 0.18);
}

.ai-message-user p {
  margin: 0;
  line-height: 1.58;
}

.ai-message-assistant {
  justify-self: start;
}

.welcome-message {
  max-width: 100%;
}

.ai-response-field.primary-field {
  border-color: rgba(47, 117, 93, 0.2);
}

.ai-message-assistant.is-loading .ai-response-field {
  opacity: 0.82;
}

.ai-line-bubble {
  gap: 7px;
  max-width: 94%;
  padding: 12px;
  border: 1px solid #e3ebe8;
  border-radius: 8px;
  background: #fff;
}

.ai-line {
  margin: 0;
  color: #51645b;
  font-size: 13px;
  line-height: 1.62;
  white-space: pre-wrap;
}

.ai-suggestion-panel {
  display: grid;
  gap: 5px;
  padding: 7px 8px;
  border: 1px solid #e2ece7;
  border-radius: 8px;
  background: #fbfdfb;
}

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

.ai-suggestion-head span {
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.ai-suggestion-head small {
  display: none;
  overflow: hidden;
  max-width: 58%;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-suggestion-list {
  display: grid;
  gap: 3px;
}

.ai-suggestion-chip {
  display: block;
  min-height: 24px;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  background: #f5faf7;
  text-align: left;
}

.ai-suggestion-chip:hover {
  border-color: rgba(47, 117, 93, 0.36);
  background: #f6fbf8;
}

.ai-suggestion-chip span {
  display: block;
  overflow: hidden;
  color: #314238;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-composer {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid #dfeae4;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 -8px 30px rgba(23, 69, 54, 0.07);
}

#ai-question {
  min-height: 58px;
  max-height: 112px;
  padding: 11px 12px;
  border: 0;
  border-radius: 8px;
  background: #f5faf7;
  resize: none;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(47, 117, 93, 0.08);
  transition: background 0.18s ease, box-shadow 0.18s ease;
}

#ai-question:focus {
  background: #f8fcfa;
  box-shadow: inset 0 0 0 1px rgba(47, 117, 93, 0.28), 0 0 0 3px rgba(47, 117, 93, 0.08);
}

#ai-question::placeholder {
  color: #91a19a;
}

#ai-question.needs-question {
  animation: inputNudge 0.28s ease;
  box-shadow: 0 0 0 2px rgba(196, 91, 64, 0.18);
}

.ai-composer #ask-ai {
  min-width: 70px;
  min-height: 42px;
  padding: 0 16px;
}

@keyframes inputNudge {
  0%, 100% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-4px);
  }
  70% {
    transform: translateX(4px);
  }
}

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

.ai-result-list article {
  padding: 12px;
  border: 1px solid #e7eeeb;
  border-radius: 8px;
  background: #fff;
}

.ai-result-list strong,
.ai-result-list span,
.ai-result-list small {
  display: block;
}

.ai-result-list span {
  margin-top: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.ai-result-list p {
  margin: 8px 0;
  color: var(--muted);
  line-height: 1.55;
}

.ai-result-list small {
  color: var(--muted);
  line-height: 1.45;
}

.feifei-trigger {
  position: fixed;
  right: -54px;
  bottom: 24px;
  z-index: 45;
  display: grid;
  justify-items: center;
  width: 100px;
  padding: 6px;
  border: 0;
  border-radius: 0;
  color: var(--green-deep);
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  font-weight: 900;
  filter: drop-shadow(0 10px 18px rgba(23, 69, 54, 0.2));
  transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
  transform: translateX(0);
}

.knowledge-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 22px;
  opacity: 0;
  pointer-events: none;
  background: rgba(18, 31, 27, 0.26);
  backdrop-filter: blur(7px);
  transition: opacity 0.2s ease;
}

.knowledge-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.knowledge-modal-panel {
  position: relative;
  display: grid;
  gap: 12px;
  width: min(520px, 100%);
  max-height: min(76vh, 680px);
  overflow: auto;
  padding: 20px;
  border: 1px solid rgba(47, 117, 93, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(234, 245, 239, 0.78), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f9fcfa 100%),
    #ffffff;
  box-shadow: 0 24px 72px rgba(23, 69, 54, 0.22);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.2s ease;
}

.knowledge-modal.is-open .knowledge-modal-panel {
  transform: translateY(0) scale(1);
}

.knowledge-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--green-deep);
  background: #edf4f0;
  font-size: 23px;
  line-height: 1;
}

.knowledge-modal-close:hover {
  color: #fff;
  background: var(--green-deep);
}

.knowledge-modal-back {
  justify-self: start;
  min-height: 30px;
  padding: 0 9px;
  border-radius: 8px;
  color: var(--green-deep);
  background: #edf4f0;
  font-size: 12px;
  font-weight: 900;
}

.knowledge-modal h3 {
  margin: 0;
  padding-right: 40px;
  color: var(--green-deep);
  font-size: 22px;
  line-height: 1.25;
}

.knowledge-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

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

.modal-preview-card {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #e4ece8;
  border-radius: 8px;
  color: inherit;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 8px 18px rgba(27, 62, 51, 0.05);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.modal-preview-card:hover,
.modal-preview-card:focus-visible {
  border-color: rgba(47, 117, 93, 0.34);
  background: #f7fbf8;
  transform: translateY(-1px);
  outline: none;
}

.modal-preview-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.modal-preview-card strong {
  color: var(--green-deep);
  font-size: 14px;
  line-height: 1.35;
}

.modal-preview-card p,
.modal-preview-card small {
  color: var(--muted);
  line-height: 1.6;
}

.modal-preview-card p {
  margin: 0;
  font-size: 12px;
}

.modal-preview-card small {
  font-size: 12px;
}

.knowledge-modal-block {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid #e4ece8;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.knowledge-modal-block strong {
  color: var(--green-deep);
  font-size: 13px;
}

.knowledge-modal-block ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.feifei-trigger:hover {
  transform: translateX(-34px) translateY(-4px);
  filter: drop-shadow(0 18px 28px rgba(23, 69, 54, 0.28));
}

.feifei-trigger img {
  width: 86px;
  height: 86px;
  object-fit: contain;
}

.feifei-drawer {
  position: fixed;
  right: 26px;
  bottom: 24px;
  z-index: 120;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) translateY(18px) scale(0.96);
  transform-origin: right bottom;
  transition: opacity 0.24s ease, transform 0.24s cubic-bezier(0.2, 0.85, 0.25, 1);
}

.feifei-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: calc(100vh - 48px);
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(47, 117, 93, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(23, 69, 54, 0.22);
}

.feifei-panel.history-open .ai-suggestion-panel {
  display: none;
}

.feifei-panel.history-open .coach-response {
  flex: 0 1 auto;
  min-height: 128px;
  max-height: 180px;
}

.feifei-panel.history-open .ai-history {
  flex: 1 1 auto;
  overflow: hidden;
}

.feifei-panel.history-open .ai-history-list {
  min-height: 120px;
  max-height: none;
}

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

.feifei-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feifei-title img {
  width: 58px;
  height: 58px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  object-fit: contain;
  background: transparent;
}

.feifei-head h3 {
  margin-top: 4px;
  font-size: 22px;
}

.feifei-close {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--green-deep);
  background: #edf4f0;
  font-size: 26px;
  line-height: 1;
}

.feifei-close:hover {
  color: #fff;
  background: var(--green-deep);
}

.feifei-backdrop {
  position: fixed;
  inset: 0;
  z-index: 119;
  opacity: 0;
  pointer-events: none;
  background: rgba(18, 31, 27, 0.18);
  backdrop-filter: blur(3px);
  transition: opacity 0.2s ease;
}

body.feifei-open .feifei-trigger {
  opacity: 0;
  pointer-events: none;
  transform: translateX(18px) translateY(8px) scale(0.9);
  animation: feifeiWakeOut 0.28s ease both;
}

body.feifei-open .feifei-drawer {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

body.feifei-open .feifei-panel {
  animation: feifeiWakeIn 0.34s cubic-bezier(0.2, 0.9, 0.24, 1.12) both;
}

body.feifei-open .feifei-backdrop {
  opacity: 1;
  pointer-events: auto;
}

@keyframes feifeiWakeIn {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  68% {
    opacity: 1;
    transform: translateY(-4px) scale(1.015);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes feifeiWakeOut {
  0% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateX(26px) scale(0.88);
  }
}

@media (prefers-reduced-motion: reduce) {
  .feifei-trigger,
  .feifei-drawer,
  .feifei-panel,
  .feifei-backdrop {
    animation: none !important;
    transition: none !important;
  }
}

.teacher-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 22px;
}

.teacher-hero h2 {
  margin-top: 4px;
  font-size: 30px;
}

.teacher-metrics,
.teacher-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.teacher-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.teacher-metrics article {
  padding: 18px;
}

.teacher-metrics span {
  color: var(--muted);
}

.teacher-metrics strong {
  display: block;
  margin: 8px 0;
  font-size: 30px;
}

.teacher-metrics p {
  margin: 0;
}

.teacher-sop,
.student-list {
  display: grid;
  gap: 10px;
}

.teacher-sop .path-item,
.student-item {
  min-height: auto;
  padding: 12px;
  background: #f7f9f7;
}

.student-item {
  border: 1px solid #e7eeeb;
  border-radius: 8px;
}

.student-item p {
  margin: 6px 0 0;
}

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

.ops-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(47, 117, 93, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(234, 245, 239, 0.9), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: var(--soft-shadow);
}

.ops-head h3 {
  margin: 3px 0 0;
  color: var(--green-deep);
  font-size: 24px;
  line-height: 1.25;
}

.danger-chip {
  color: #7d2c20;
  background: #fff0e6;
}

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

.ops-metrics article,
.ops-filters,
.ops-panel,
.ops-dashboard-grid > section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(32, 35, 38, 0.08);
}

.ops-metrics article {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 12px;
}

.ops-metrics span,
.ops-section-title h4,
.ops-form label,
.ops-filters label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.ops-metrics strong {
  color: var(--green-deep);
  font-size: 25px;
  line-height: 1;
}

.ops-filters {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.ops-filters label,
.ops-form label {
  display: grid;
  gap: 6px;
}

.ops-filters select,
.ops-filters input,
.ops-form input,
.ops-form select,
.ops-form textarea {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #dce7e2;
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.ops-form textarea {
  min-height: 86px;
  padding: 10px;
  line-height: 1.55;
  resize: vertical;
}

.ops-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 7px;
  border: 1px solid rgba(47, 117, 93, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 12px 30px rgba(32, 35, 38, 0.07);
  scrollbar-width: none;
}

.ops-tabs::-webkit-scrollbar {
  display: none;
}

.ops-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #f2f6f4;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.ops-tabs button.active {
  color: #fff;
  background: var(--green-deep);
}

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

.ops-panel.active {
  display: block;
}

.ops-two-column {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}

.ops-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.ops-section-title h4 {
  margin: 0;
  color: var(--green-deep);
  font-size: 16px;
}

.ops-section-title button,
.ops-form button,
.ops-form-actions button {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.ops-form-actions button:nth-child(2),
#ops-refresh,
#ops-new-knowledge {
  color: var(--green-deep);
  background: var(--green-soft);
}

.ops-item-list,
.ops-log-list,
.ops-sample-list,
.ops-rule-list,
.ops-stat-list {
  display: grid;
  gap: 9px;
}

.ops-item-list,
.ops-rule-list,
.ops-log-list.compact {
  max-height: 580px;
  overflow: auto;
  padding-right: 3px;
}

.ops-list-item,
.ops-log-card,
.ops-sample-card,
.ops-stat-item,
.ops-feedback-target {
  border: 1px solid #e1ebe6;
  border-radius: 8px;
  background: #fff;
}

.ops-list-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  color: inherit;
  text-align: left;
}

.ops-list-item:hover,
.ops-list-item:focus-visible {
  border-color: rgba(47, 117, 93, 0.32);
  background: #f7fbf8;
  outline: none;
}

.ops-list-item.is-published {
  border-left: 4px solid var(--green);
}

.ops-list-item span,
.ops-log-card span,
.ops-sample-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.ops-list-item strong,
.ops-log-card strong,
.ops-sample-card strong,
.ops-stat-item strong {
  color: var(--ink);
  line-height: 1.35;
}

.ops-list-item small,
.ops-list-item em,
.ops-log-card small {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.ops-form {
  display: grid;
  gap: 11px;
}

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

.ops-checkbox {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 8px !important;
  color: var(--ink) !important;
}

.ops-checkbox input {
  width: 18px;
  min-height: 18px;
  accent-color: var(--green);
}

.ops-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-log-card {
  display: grid;
  gap: 9px;
  padding: 12px;
}

.ops-log-card.is-selected {
  border-color: rgba(47, 117, 93, 0.42);
  box-shadow: 0 10px 24px rgba(47, 117, 93, 0.1);
}

.ops-log-card button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.ops-log-card p,
.ops-sample-card p,
.ops-feedback-target p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.ops-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-tag-row span {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green-deep);
  background: #edf4f0;
  font-size: 11px;
  font-weight: 900;
}

.ops-tag-row .danger {
  color: #7d2c20;
  background: #fff0e6;
}

.ops-tag-row .match {
  color: #17583f;
  background: #e5f3ec;
}

.ops-tag-row .neutral {
  color: #586a62;
  background: #eef2f0;
}

.ops-tag-row .question-type {
  color: #1f4f78;
  background: #e9f3fb;
}

.ops-tag-row .reviewed {
  color: #1f4f78;
  background: #e9f3fb;
}

.ops-feedback-target {
  display: grid;
  gap: 8px;
  min-height: 104px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.ops-context-grid span {
  min-width: 0;
  overflow: hidden;
  padding: 7px 8px;
  border-radius: 8px;
  color: #40564d;
  background: #f4f8f6;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-sample-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

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

.ops-dashboard-grid > section {
  padding: 14px;
}

.ops-stat-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
}

.ops-stat-item strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-stat-item span {
  min-width: 32px;
  color: var(--green-deep);
  font-weight: 900;
  text-align: right;
}

.ops-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed #d6e2dd;
  border-radius: 8px;
  color: var(--muted);
  background: #f8fbf9;
  text-align: center;
}

@media (max-width: 1180px) {
  .student-layout,
  .student-hero,
  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .coach-panel {
    position: static;
  }

  .path-list,
  .book-catalog,
  .catalog-summary,
  .knowledge-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-controls,
  .level-profile {
    grid-template-columns: 1fr;
  }

  .catalog-tools {
    align-items: stretch;
    flex-direction: column;
  }

  .catalog-tools input,
  .catalog-tools select {
    width: 100%;
    min-width: 0;
  }

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

  .ops-two-column,
  .ops-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .ops-filters {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: static;
    height: auto;
  }

  .workspace {
    padding: 18px 18px calc(104px + env(safe-area-inset-bottom));
  }

  .jump-nav {
    position: fixed;
    inset: auto 14px calc(10px + env(safe-area-inset-bottom)) 14px;
    top: auto;
    z-index: 55;
    justify-content: space-between;
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 40px rgba(23, 69, 54, 0.18);
    backdrop-filter: blur(16px);
  }

  .jump-nav span {
    display: none;
  }

  .jump-nav button {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
  }

  .monthly-record-modal,
  .knowledge-modal {
    align-items: end;
    padding: 14px;
  }

  .monthly-record-panel,
  .knowledge-modal-panel {
    width: 100%;
    max-height: calc(82vh - env(safe-area-inset-bottom));
    padding: 18px 14px calc(18px + env(safe-area-inset-bottom));
  }

  .knowledge-modal h3 {
    font-size: 19px;
  }

  .knowledge-modal p,
  .knowledge-modal-block ul {
    font-size: 12px;
  }

  .modal-preview-card {
    padding: 10px;
  }

  .modal-preview-card strong {
    font-size: 13px;
  }

  .modal-preview-card p {
    font-size: 12px;
  }

  .student-hero h2 {
    font-size: 30px;
  }

  .split-panel,
  .teacher-metrics {
    grid-template-columns: 1fr;
  }

  .feifei-trigger {
    right: -60px;
    bottom: calc(94px + env(safe-area-inset-bottom));
    width: 104px;
    transform: translateX(0);
  }

  .feifei-trigger img {
    width: 82px;
    height: 82px;
  }

  .feifei-drawer {
    right: 14px;
    bottom: 14px;
    width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .feifei-panel {
    max-height: calc(100vh - 28px);
  }
}

@media (max-width: 560px) {
  .side-rail {
    padding: 18px;
  }

  .student-hero {
    padding: 0;
  }

  .hero-main {
    min-height: auto;
  }

  .book-art {
    min-height: 220px;
  }

  .path-list,
  .book-catalog,
  .catalog-summary,
  .book-meta-grid,
  .knowledge-grid,
  .mode-tabs {
    grid-template-columns: 1fr;
  }

  .section-head,
  .teacher-hero,
  .coach-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .mind-node {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .ops-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-head h3 {
    font-size: 20px;
  }

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

  .ops-panel {
    padding: 12px;
  }

  .ops-form-grid {
    grid-template-columns: 1fr;
  }

  .ops-item-list,
  .ops-rule-list,
  .ops-log-list.compact {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 560px) {
  .ops-metrics article {
    min-height: 72px;
    padding: 10px;
  }

  .ops-metrics strong {
    font-size: 22px;
  }

  .ops-tabs button {
    min-height: 40px;
  }

  .ops-form-actions {
    display: grid;
  }

  .ops-form-actions button,
  .ops-form button {
    width: 100%;
  }
}

@media (max-width: 820px) {
  body {
    background:
      linear-gradient(180deg, #f8fcfa 0%, #eef7f2 48%, #f8faf7 100%);
  }

  .app-shell {
    display: block;
    min-height: 100vh;
  }

  .side-rail {
    position: relative;
    top: auto;
    z-index: 20;
    height: auto;
    padding: max(14px, env(safe-area-inset-top)) 14px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(47, 117, 93, 0.12);
    background: rgba(250, 253, 251, 0.96);
    box-shadow: 0 14px 38px rgba(27, 62, 51, 0.08);
  }

  .brand {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
  }

  .brand-logo {
    width: 132px;
  }

  .brand p {
    max-width: 120px;
    font-size: 12px;
    line-height: 1.35;
    text-align: right;
  }

  .role-switch {
    margin-bottom: 12px;
    padding: 3px;
    border-radius: 999px;
    background: #eaf1ed;
  }

  .role-tab {
    min-height: 36px;
    border-radius: 999px;
    font-size: 14px;
  }

  .learner-card {
    gap: 8px;
    padding: 10px;
    border-color: rgba(47, 117, 93, 0.13);
    background: linear-gradient(135deg, #ffffff 0%, #f4fbf7 100%);
    box-shadow: var(--soft-shadow);
  }

  .learner-head {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 9px;
  }

  .avatar {
    width: 40px;
    height: 40px;
    margin: 0;
    font-size: 19px;
  }

  .learner-card .eyebrow {
    font-size: 12px;
  }

  .learner-card h2 {
    margin-top: 2px;
    font-size: 19px;
  }

  .learner-card p {
    font-size: 12px;
  }

  .level-progress {
    height: 6px;
    margin: 0;
  }

  .learner-card dl {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .learner-card dl div {
    display: grid;
    gap: 3px;
    min-height: 44px;
    padding: 6px 8px;
    border: 0;
    border-radius: 8px;
    background: #f7faf8;
  }

  .learner-card dt {
    font-size: 12px;
  }

  .learner-card dd {
    font-size: 13px;
  }

  .monthly-record-trigger {
    min-height: 34px;
    font-size: 13px;
  }

  .rail-note {
    display: none;
  }

  .workspace {
    padding: 14px 14px calc(104px + env(safe-area-inset-bottom));
  }

  .jump-nav {
    position: fixed;
    inset: auto 14px calc(10px + env(safe-area-inset-bottom)) 14px;
    top: auto;
    z-index: 55;
    gap: 6px;
    justify-content: space-between;
    margin: 0;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 40px rgba(23, 69, 54, 0.18);
    scrollbar-width: none;
    backdrop-filter: blur(16px);
  }

  .jump-nav::-webkit-scrollbar {
    display: none;
  }

  .jump-nav span {
    display: none;
  }

  .jump-nav button {
    flex: 1 1 0;
    min-height: 44px;
    padding: 0 8px;
    border-radius: 8px;
    background: #eef5f1;
    font-size: 12px;
    text-align: center;
  }

  .student-hero,
  .teacher-hero {
    overflow: hidden;
    border-color: rgba(47, 117, 93, 0.14);
    box-shadow: var(--soft-shadow);
  }

  .student-hero {
    gap: 0;
    padding: 0;
  }

  .hero-main {
    min-height: auto;
    padding: 20px;
    background:
      radial-gradient(circle at 88% 14%, rgba(196, 147, 58, 0.18), transparent 28%),
      linear-gradient(135deg, #ffffff 0%, #f0f7f3 100%);
  }

  .session-meta {
    margin-bottom: 12px;
  }

  .session-meta span,
  .status-chip,
  .safe-badge {
    min-height: 30px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .student-hero h2 {
    font-size: 26px;
    line-height: 1.18;
  }

  .student-hero p {
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
  }

  .book-art {
    min-height: 150px;
    border-radius: 0;
    padding: 18px;
  }

  .book-art strong {
    font-size: 28px;
  }

  .catalog-panel {
    margin-bottom: 18px;
    padding: 16px;
    border-color: rgba(47, 117, 93, 0.13);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--soft-shadow);
  }

  .section-head {
    align-items: flex-start;
    gap: 10px;
  }

  .section-head h3 {
    font-size: 20px;
  }

  .catalog-controls {
    gap: 10px;
    margin: 12px 0;
  }

  .current-level-lock {
    justify-content: center;
    min-height: 38px;
    border-radius: 8px;
    font-size: 13px;
    text-align: center;
  }

  .catalog-tools {
    gap: 8px;
  }

  .catalog-tools label {
    font-size: 12px;
  }

  .catalog-tools select,
  .catalog-tools input {
    min-height: 42px;
    border-radius: 8px;
    font-size: 14px;
  }

  .catalog-hint {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #e3ece8;
    border-radius: 8px;
    background: #f4f9f6;
    line-height: 1.45;
  }

  .level-profile {
    gap: 8px;
    margin-bottom: 10px;
  }

  .level-profile div,
  .catalog-summary div {
    padding: 11px;
  }

  .catalog-summary {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .catalog-summary::-webkit-scrollbar {
    display: none;
  }

  .catalog-summary div {
    flex: 0 0 118px;
  }

  .book-catalog {
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .book-card {
    min-height: 0;
    padding: 14px;
    border-color: rgba(47, 117, 93, 0.12);
    background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%);
    box-shadow: 0 12px 30px rgba(27, 62, 51, 0.08);
  }

  .book-card h4 {
    font-size: 17px;
  }

  .book-meta-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .book-meta-grid div,
  .reading-method {
    padding: 10px;
  }

  .reading-method {
    border-left: 0;
    border-top: 3px solid var(--green);
  }

  .knowledge-tags span,
  .gain-tags span {
    border-radius: 8px;
    line-height: 1.35;
  }

  .split-panel article,
  .teacher-panel,
  .teacher-metrics article,
  .knowledge-card {
    border-color: rgba(47, 117, 93, 0.12);
    box-shadow: var(--soft-shadow);
  }

  .split-panel article,
  .teacher-panel {
    padding: 16px;
  }

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

  .knowledge-card {
    min-height: 132px;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 10px 26px rgba(27, 62, 51, 0.08);
  }

  .knowledge-index {
    width: 30px;
    height: 22px;
    font-size: 11px;
  }

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

  .knowledge-card p {
    display: -webkit-box;
    overflow: hidden;
    color: #6b7670;
    font-size: 12px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .mind-node {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 10px;
  }

  .home-tag-strip {
    gap: 6px;
    padding: 9px;
  }

  .home-tag-strip span {
    min-height: 23px;
    padding: 0 7px;
    font-size: 10px;
  }

  .reading-log input {
    min-height: 44px;
  }

  .reading-log textarea {
    min-height: 104px;
  }

  #ai-question {
    min-height: 44px;
    max-height: 92px;
  }

  .feifei-trigger {
    right: -50px;
    bottom: calc(94px + env(safe-area-inset-bottom));
    width: 90px;
    padding: 5px;
    border-radius: 0;
    transform: translateX(0);
  }

  .feifei-trigger img {
    width: 76px;
    height: 76px;
  }

  .feifei-drawer {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    max-height: 88vh;
    transform: translateY(100%) scale(0.98);
    transform-origin: center bottom;
  }

  .feifei-panel {
    max-height: 88vh;
    padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
  }

  .feifei-title img {
    width: 48px;
    height: 48px;
  }

  .feifei-head h3 {
    font-size: 19px;
  }

  .coach-response {
    flex: 1 1 auto;
    max-height: none;
    min-height: 230px;
    overflow: auto;
    padding: 12px;
  }

  .ai-response-field {
    padding: 11px;
  }

  .ai-suggestion-panel {
    padding: 10px;
  }

  .ai-suggestion-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .ai-suggestion-head small {
    max-width: 100%;
  }

  .ai-composer {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .side-rail {
    padding-inline: 12px;
  }

  .workspace {
    padding-inline: 12px;
  }

  .brand-logo {
    width: 120px;
  }

  .brand p {
    display: none;
  }

  .student-hero h2 {
    font-size: 24px;
  }

  .book-art {
    min-height: 128px;
  }

  .catalog-panel {
    padding: 14px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: row;
  }

  .teacher-hero,
  .coach-head {
    flex-direction: column;
  }

  .level-profile,
  .book-meta-grid,
  .teacher-metrics {
    grid-template-columns: 1fr;
  }

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

  .knowledge-card {
    min-height: 126px;
    padding: 11px;
  }

  .mind-node {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}

body.admin-active .learner-card,
body.admin-active .rail-note,
body.admin-active .feifei-trigger {
  display: none;
}

body.admin-active .admin-rail-card {
  display: grid;
}

body.admin-active .admin-side-menu {
  display: grid;
}

.binding-panel,
.admin-hero,
.admin-panel,
.admin-form,
.training-ops-page {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 36px rgba(32, 35, 38, 0.08);
}

.binding-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 180px auto minmax(150px, auto);
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px;
}

.binding-panel strong,
.admin-card strong,
.ops-log-card strong,
.ops-sample-card strong,
.ops-rule-card strong {
  display: block;
  line-height: 1.35;
}

.binding-panel p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.binding-panel label,
.admin-form label,
.ops-form label,
.ops-filters label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.binding-panel input,
.admin-form input,
.admin-form select,
.admin-form textarea,
.ops-form input,
.ops-form select,
.ops-form textarea,
.ops-filters input,
.ops-filters select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.binding-panel input,
.admin-form input,
.admin-form select,
.ops-form input,
.ops-form select,
.ops-filters input,
.ops-filters select {
  min-height: 40px;
  padding: 0 10px;
  line-height: 40px;
}

.admin-form select,
.admin-form input[type="text"],
.admin-form input[type="date"],
.admin-date-input {
  height: 40px;
}

.admin-form textarea,
.ops-form textarea {
  min-height: 88px;
  padding: 10px;
  resize: vertical;
  line-height: 1.6;
}

.binding-panel button,
.admin-form button,
.ops-form button,
.ops-section-title button,
#ops-refresh {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.ghost-button,
.ops-section-title .ghost-button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(47, 117, 93, 0.22);
  border-radius: 8px;
  color: var(--green-deep);
  background: rgba(237, 247, 241, 0.96);
  font-size: 12px;
  font-weight: 900;
}

.ghost-button.danger-button,
.ops-section-title .ghost-button.danger-button {
  border-color: rgba(185, 75, 61, 0.26);
  color: #9f3d31;
  background: #fff4f1;
}

.admin-task-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 10px;
}

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

.admin-task-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(47, 117, 93, 0.14);
  border-radius: 8px;
  background: rgba(247, 251, 248, 0.86);
}

.admin-task-item .admin-remove-task {
  justify-self: end;
}

.admin-card-action {
  width: fit-content;
  min-height: 32px;
  margin-top: 10px;
}

.admin-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin: 10px 0 6px;
}

.admin-search-row label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-search-row input {
  width: 100%;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.admin-search-summary {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.binding-status {
  align-self: center;
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
}

.admin-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px;
}

.admin-hero h2 {
  margin: 4px 0 6px;
  font-size: 28px;
}

.admin-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.role-summary {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.role-summary span,
.status-chip,
.admin-tag,
.ops-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 900;
}

.admin-metrics,
.ops-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.admin-metrics article,
.ops-metrics article {
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-metrics span,
.ops-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-metrics strong,
.ops-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--green-deep);
  font-size: 26px;
  line-height: 1;
}

.admin-overview-grid,
.ops-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.performance-page {
  display: grid;
  gap: 16px;
}

.performance-brief-card {
  min-height: 136px;
  padding: 16px;
  border: 1px solid rgba(47, 117, 93, 0.18);
  border-radius: 8px;
  background: #fff;
}

.performance-brief-card span,
.performance-toolbar label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.performance-brief-card strong {
  display: block;
  margin: 8px 0;
  color: var(--green-deep);
  font-size: 22px;
  line-height: 1.25;
}

.performance-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(180px, 240px) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.performance-toolbar label {
  display: grid;
  gap: 6px;
}

.performance-toolbar select {
  min-height: 38px;
  width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
}

.performance-toolbar button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

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

.performance-metrics article {
  min-height: 82px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.performance-metrics span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.performance-metrics strong {
  display: block;
  margin-top: 8px;
  color: var(--green-deep);
  font-size: 26px;
  line-height: 1;
}

.performance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

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

.performance-card,
.performance-action {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.performance-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.performance-card .admin-card-meta {
  grid-column: 1 / -1;
}

.performance-card strong,
.performance-action strong {
  display: block;
  line-height: 1.35;
}

.performance-card p,
.performance-action p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.performance-score {
  display: grid;
  place-items: center;
  min-width: 48px;
  min-height: 48px;
  border-radius: 8px;
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 22px;
  font-weight: 900;
}

.performance-score.is-risk {
  color: #9d2f2f;
  background: #fff0ee;
}

.performance-level {
  justify-self: start;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #9d5b12;
  background: #fff4dc;
  font-size: 12px;
  font-weight: 900;
}

.performance-summary {
  width: 100%;
  min-height: 310px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  resize: vertical;
}

.performance-ai-trigger {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 52;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 7px 14px 7px 8px;
  border: 1px solid rgba(47, 117, 93, 0.24);
  border-radius: 999px;
  color: var(--green-deep);
  background: linear-gradient(135deg, #ffffff, #eef8f2);
  box-shadow: 0 16px 40px rgba(32, 35, 38, 0.2);
  font-size: 13px;
  font-weight: 900;
}

body:not(.admin-active) .performance-ai-trigger,
body:not(.admin-active) .performance-ai-drawer {
  display: none;
}

.performance-ai-trigger img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.performance-ai-drawer {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 53;
  width: min(460px, calc(100vw - 28px));
  height: min(700px, calc(100dvh - 110px));
}

.performance-ai-drawer[aria-hidden="true"] {
  display: none;
}

.performance-ai-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(47, 117, 93, 0.2);
  border-radius: 8px;
  background: #f7fbf8;
  box-shadow: 0 20px 56px rgba(32, 35, 38, 0.22);
}

.performance-ai-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid rgba(47, 117, 93, 0.12);
  background: linear-gradient(135deg, #ffffff, #edf7f1);
}

.performance-ai-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.performance-ai-title img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.performance-ai-title h3 {
  margin: 2px 0 0;
  color: var(--green-deep);
  font-size: 18px;
  line-height: 1.2;
}

.performance-ai-presets {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(47, 117, 93, 0.12);
  background: #f7fbf8;
}

.performance-ai-presets button {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid rgba(47, 117, 93, 0.16);
  border-radius: 8px;
  color: var(--green-deep);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(42, 91, 70, 0.05);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
}

.performance-ai-presets button:hover {
  border-color: rgba(47, 117, 93, 0.34);
  background: #eef7f1;
}

.performance-ai-chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  padding: 14px 12px;
  background: linear-gradient(180deg, #f7fbf8, #ffffff 42%, #f8fbf9);
}

.performance-ai-message {
  max-width: 86%;
  padding: 11px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
  box-shadow: 0 8px 20px rgba(32, 35, 38, 0.05);
}

.performance-ai-message p {
  margin: 0 0 6px;
}

.performance-ai-message p:last-child {
  margin-bottom: 0;
}

.performance-ai-message.is-assistant {
  align-self: flex-start;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(47, 117, 93, 0.13);
}

.performance-ai-message.is-user {
  align-self: flex-end;
  color: #fff;
  background: linear-gradient(135deg, var(--green-deep), #37785e);
}

.performance-ai-compose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid rgba(47, 117, 93, 0.12);
  background: #fff;
}

.performance-ai-compose textarea {
  min-height: 44px;
  max-height: 110px;
  padding: 10px;
  border: 1px solid rgba(47, 117, 93, 0.18);
  border-radius: 8px;
  resize: vertical;
  line-height: 1.5;
  background: #fbfdfb;
}

.performance-ai-compose button {
  align-self: end;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--green-deep);
  font-size: 13px;
  font-weight: 900;
}

.performance-ai-compose button:disabled {
  opacity: 0.58;
  cursor: wait;
}

.admin-two-column,
.ops-two-column {
  display: grid;
  grid-template-columns: minmax(260px, 0.88fr) minmax(360px, 1.12fr);
  gap: 14px;
  align-items: start;
}

.admin-panel,
.admin-form,
.training-ops-page {
  padding: 16px;
}

.admin-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-title-actions,
.admin-bulk-tools,
.admin-bulk-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-form-hint,
.admin-help-text,
.admin-bulk-footer span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.admin-form-hint.is-error {
  color: #b94b3d;
  font-weight: 900;
}

.admin-help-text {
  margin: 2px 0 12px;
}

.admin-bulk-panel {
  margin-top: 14px;
}

.admin-bulk-panel.is-hidden {
  display: none;
}

.admin-file-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(47, 117, 93, 0.24);
  border-radius: 8px;
  color: var(--green-deep);
  background: rgba(237, 247, 241, 0.96);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

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

.admin-bulk-textarea {
  width: 100%;
  min-height: 150px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
  line-height: 1.65;
}

.admin-bulk-footer {
  justify-content: space-between;
  margin-top: 10px;
}

.admin-bulk-footer .is-error {
  color: #b94b3d;
  font-weight: 900;
}

.admin-form,
.ops-form {
  display: grid;
  gap: 12px;
}

.admin-form-grid,
.ops-form-grid,
.ops-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.schedule-date-field {
  position: relative;
  min-width: 0;
}

.schedule-date-field label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-date-input {
  cursor: pointer;
}

.schedule-date-picker {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 80;
  display: none;
  width: min(390px, calc(100vw - 36px));
  padding: 14px;
  border: 1px solid rgba(47, 117, 93, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 60px rgba(32, 35, 38, 0.18);
}

.schedule-date-picker.is-open {
  display: grid;
  gap: 12px;
}

.schedule-date-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.schedule-date-picker-head strong {
  color: var(--green-deep);
  font-size: 16px;
}

.schedule-date-picker-head button {
  display: grid;
  place-items: center;
  width: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 8px;
  color: var(--green-deep);
  background: #edf7f1;
  font-size: 18px;
}

.schedule-date-weekdays,
.schedule-date-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.schedule-date-weekdays span {
  display: grid;
  place-items: center;
  min-height: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.schedule-date-day {
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: #f7fbf8;
  font-size: 14px;
  font-weight: 900;
}

.schedule-date-day:hover {
  border-color: rgba(47, 117, 93, 0.32);
  background: #edf7f1;
}

.schedule-date-day.is-today {
  border-color: rgba(196, 147, 58, 0.42);
  color: #8a5b12;
  background: #fff8e8;
}

.schedule-date-day.is-selected {
  color: #fff;
  background: var(--green-deep);
}

.schedule-date-empty {
  min-height: 42px;
}

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

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

.admin-class-add-row button {
  min-height: 38px;
}

.admin-class-search-results {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  max-height: 180px;
  overflow: auto;
  padding: 6px;
  border: 1px solid #dbe7e3;
  border-radius: 8px;
  background: #f7fbf8;
}

.admin-class-search-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
  text-align: left;
}

.admin-class-search-result:hover,
.admin-class-search-result.is-selected {
  border-color: rgba(24, 83, 63, 0.22);
  background: #edf6f1;
}

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

.admin-class-search-result strong {
  font-size: 13px;
}

.admin-class-search-result span {
  color: var(--muted);
  font-size: 12px;
}

.admin-class-roster {
  display: grid;
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding-right: 4px;
}

.admin-class-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #e1e9e6;
  border-radius: 8px;
  background: #fff;
}

.admin-class-member span {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-class-member button {
  min-height: 30px;
  padding: 0 9px;
  font-size: 12px;
}

.admin-list,
.ops-item-list,
.ops-log-list,
.ops-sample-list,
.ops-rule-list,
.ops-stat-list {
  display: grid;
  gap: 10px;
}

.admin-student-panel {
  position: sticky;
  top: 12px;
}

.admin-student-list {
  max-height: min(58vh, 620px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
}

.admin-student-list::-webkit-scrollbar {
  width: 8px;
}

.admin-student-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(47, 117, 93, 0.22);
}

.admin-card,
.ops-item-card,
.ops-log-card,
.ops-sample-card,
.ops-rule-card,
.ops-stat-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border: 1px solid #e1e9e6;
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.admin-student-card {
  position: relative;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  min-height: 56px;
  padding: 9px 10px;
}

.admin-student-card::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 3px;
  border-radius: 999px;
  background: transparent;
}

.admin-student-card.is-selected::before {
  background: var(--green-deep);
}

.admin-student-main {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 7px;
}

.admin-student-main strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-student-main em,
.admin-student-status {
  flex: 0 0 auto;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.admin-student-main em {
  padding: 4px 6px;
  color: var(--green-deep);
  background: #edf7f1;
}

.admin-student-sub,
.admin-student-phone {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-student-phone {
  justify-self: end;
  max-width: 150px;
  color: #53655d;
}

.admin-student-status {
  justify-self: end;
  padding: 5px 7px;
  color: #53655d;
  background: #f3f6f5;
}

button.admin-card,
button.ops-item-card,
button.ops-log-card,
button.ops-rule-card {
  cursor: pointer;
}

.admin-card:hover,
.admin-card.is-selected,
.ops-item-card:hover,
.ops-item-card.is-selected,
.ops-log-card:hover,
.ops-log-card.is-selected,
.ops-rule-card:hover,
.ops-rule-card.is-selected {
  border-color: rgba(47, 117, 93, 0.42);
  box-shadow: 0 10px 26px rgba(42, 91, 70, 0.08);
}

.admin-card p,
.ops-item-card p,
.ops-log-card p,
.ops-sample-card p,
.ops-rule-card p,
.ops-stat-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-card-meta,
.ops-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-task-card-main {
  display: grid;
  gap: 7px;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.admin-task-card-main:hover {
  background: transparent;
}

.admin-task-submission-panel {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e1e9e6;
}

.admin-task-submission-list {
  display: grid;
  gap: 8px;
}

.admin-task-submission-summary,
.admin-task-submission-item {
  border: 1px solid #e1e9e6;
  border-radius: 8px;
  background: #fff;
}

.admin-task-submission-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  background: #f7fbf8;
}

.admin-task-submission-summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--green-deep);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-task-submission-summary span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.admin-task-submission-item {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
}

.admin-task-submission-item div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.admin-task-submission-item strong {
  color: var(--ink);
  font-size: 13px;
}

.admin-task-submission-item span,
.admin-task-submission-item small {
  color: var(--muted);
  font-size: 12px;
}

.admin-task-submission-item p {
  margin: 0;
  color: #43584f;
  font-size: 13px;
  line-height: 1.5;
}

.admin-task-submission-item a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-table-row {
  display: grid;
  grid-template-columns: 120px 110px 110px minmax(160px, 1fr) minmax(180px, 1fr);
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid #e1e9e6;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.admin-table-row span {
  color: var(--muted);
}

.admin-table-row strong {
  display: block;
}

.admin-note-list .admin-table-row,
.admin-note-row {
  grid-template-columns: 100px 100px 120px minmax(160px, 1fr) minmax(240px, 1.4fr) 100px;
}

.admin-note-row strong {
  line-height: 1.55;
}

.admin-note-row a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.admin-reading-compact-row {
  grid-template-columns: minmax(120px, 1.2fr) minmax(110px, 0.9fr) minmax(80px, 0.6fr) minmax(100px, 0.8fr);
  align-items: center;
  padding: 9px 11px;
}

.admin-reading-compact-row strong {
  line-height: 1.3;
}

.training-ops-page {
  display: grid;
  gap: 14px;
}

.ops-head,
.ops-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ops-head h3,
.ops-section-title h4 {
  margin: 0;
}

.ops-head h3 {
  margin-top: 4px;
  font-size: 24px;
}

.ops-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.ops-tabs button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--ink);
  background: #eef3f0;
  font-size: 12px;
  font-weight: 900;
}

.ops-tabs button.active {
  color: #fff;
  background: var(--green-deep);
}

.ops-panel {
  display: none;
}

.ops-panel.active {
  display: block;
}

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

.ops-checkbox {
  display: flex !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px !important;
}

.ops-checkbox input {
  width: 16px;
  min-height: 16px;
}

.ops-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ops-feedback-target {
  min-height: 90px;
  padding: 12px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #f7faf8;
  line-height: 1.6;
}

.empty-state {
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.danger-chip {
  color: #8b2f24 !important;
  background: #fff0ea !important;
}

.ops-empty {
  margin: 0;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  text-align: center;
}

.ops-list-item {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px;
  border: 1px solid #e1e9e6;
  border-radius: 8px;
  color: inherit;
  background: #fff;
  text-align: left;
}

.ops-list-item:hover,
.ops-list-item.is-published {
  border-color: rgba(47, 117, 93, 0.42);
  box-shadow: 0 10px 26px rgba(42, 91, 70, 0.08);
}

.ops-list-item span,
.ops-log-card span,
.ops-sample-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ops-list-item small,
.ops-log-card small {
  color: var(--muted);
  line-height: 1.5;
}

.ops-list-item em {
  justify-self: start;
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.ops-log-card > button {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.ops-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ops-tag-row span {
  padding: 4px 7px;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--green-soft);
  font-size: 11px;
  font-weight: 900;
}

.ops-tag-row .danger {
  color: #8b2f24;
  background: #fff0ea;
}

.ops-tag-row .match {
  color: #17583f;
  background: #e5f3ec;
}

.ops-tag-row .neutral {
  color: #586a62;
  background: #eef2f0;
}

.ops-tag-row .question-type {
  color: #1f4f78;
  background: #e9f3fb;
}

.ops-tag-row .reviewed {
  color: #5c3b08;
  background: #fff4ce;
}

.ops-stat-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid #e1e9e6;
  border-radius: 8px;
  background: #fff;
}

.ops-stat-item strong {
  line-height: 1.4;
}

.ops-stat-item span {
  color: var(--green-deep);
  font-weight: 900;
}

@media (max-width: 1180px) {
  .binding-panel,
  .admin-hero,
  .admin-two-column,
  .performance-toolbar,
  .performance-grid,
  .ops-two-column {
    grid-template-columns: minmax(0, 1fr);
  }

  .role-summary {
    justify-content: flex-start;
  }

  .admin-metrics,
  .performance-metrics,
  .ops-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .binding-panel,
  .admin-form-grid,
  .ops-form-grid,
  .ops-filters,
  .admin-overview-grid,
  .performance-grid,
  .ops-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .admin-class-add-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .admin-student-panel {
    position: static;
  }

  .admin-student-list {
    max-height: 420px;
  }
}

@media (max-width: 560px) {
  .admin-metrics,
  .performance-metrics,
  .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-hero h2 {
    font-size: 22px;
  }

  .performance-ai-trigger {
    right: 12px;
    bottom: 12px;
  }

  .performance-ai-trigger span {
    display: none;
  }

  .performance-ai-drawer {
    right: 10px;
    bottom: 74px;
    width: calc(100vw - 20px);
    height: min(640px, calc(100dvh - 88px));
  }

  .performance-ai-message {
    max-width: 92%;
  }
}

/* 飞飞AI最终适配：头部固定、内容滚动、输入区固定 */
body.feifei-open {
  overflow: hidden;
}

.feifei-trigger {
  right: -34px;
}

.feifei-drawer {
  height: min(760px, calc(100vh - 48px));
  height: min(760px, calc(100dvh - 48px));
  max-height: calc(100vh - 48px);
  max-height: calc(100dvh - 48px);
}

.feifei-panel {
  height: 100%;
  min-height: 0;
  max-height: 100%;
}

.feifei-head,
.ai-suggestion-panel,
.ai-composer {
  flex: 0 0 auto;
}

.coach-response {
  flex: 1 1 auto;
  min-height: 0 !important;
  max-height: none !important;
}

.ai-suggestion-panel {
  max-height: clamp(96px, 18vh, 148px);
  overflow: auto;
}

.ai-history {
  min-height: 0;
}

.ai-history-list {
  min-height: 0;
}

.feifei-panel.history-open .coach-response {
  flex: 0 0 auto;
  min-height: 104px !important;
  max-height: 136px !important;
}

.feifei-panel.history-open .ai-history {
  flex: 1 1 auto;
  min-height: 0;
}

.feifei-panel.history-open .ai-history-list {
  min-height: 0;
  max-height: none;
}

@media (max-width: 720px) {
  .feifei-trigger {
    right: -30px;
    bottom: calc(96px + env(safe-area-inset-bottom));
    width: 88px;
  }

  .feifei-trigger img {
    width: 74px;
    height: 74px;
  }

  .feifei-drawer {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 8px);
    height: calc(100dvh - 8px);
    max-height: calc(100vh - 8px);
    max-height: calc(100dvh - 8px);
    transform: translateY(100%) scale(0.98);
    transform-origin: center bottom;
  }

  .feifei-panel {
    gap: 10px;
    height: 100%;
    padding: 14px 14px calc(16px + env(safe-area-inset-bottom));
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
  }

  .feifei-head {
    align-items: center;
  }

  .feifei-title img {
    width: 48px;
    height: 48px;
  }

  .coach-response {
    padding: 10px;
  }

  .ai-suggestion-panel {
    max-height: 128px;
    padding: 8px;
  }

  .ai-composer {
    gap: 7px;
    padding: 8px;
  }

  #ai-question {
    min-height: 52px;
    max-height: 86px;
  }

  .feifei-actions {
    gap: 7px;
  }

  .history-toggle,
  .guide-mode-tag,
  .ai-composer #ask-ai {
    min-height: 38px;
  }
}

/* 飞飞AI操作区精修 */
.feifei-close {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 700;
}

.ai-suggestion-head small {
  display: none !important;
}

.ai-composer {
  gap: 9px;
}

#ai-question {
  min-height: 86px;
  max-height: 132px;
}

.feifei-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.guide-mode-tag {
  margin-right: 0;
}

.ai-composer #ask-ai {
  margin-left: auto;
}

@media (max-width: 720px) {
  .feifei-close {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    font-size: 20px;
  }

  #ai-question {
    min-height: 92px;
    max-height: 136px;
  }
}

/* 机构端资料库与发布配置 */
.compact-hero {
  align-items: center;
}

.material-status,
#platform-active-store {
  min-width: 240px;
}

.material-metrics {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.material-list {
  display: grid;
  gap: 10px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.material-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(47, 117, 93, 0.12);
  border-radius: 8px;
  background: #fff;
}

.material-card strong {
  color: var(--green-deep);
  font-size: 15px;
  line-height: 1.35;
}

.material-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.workflow-list,
.release-checklist {
  display: grid;
  gap: 10px;
}

.workflow-list article,
.release-checklist article {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(47, 117, 93, 0.1);
  border-radius: 8px;
  background: #f8fbf8;
}

.workflow-list strong,
.release-checklist strong {
  color: var(--green-deep);
  font-size: 14px;
}

.workflow-list span,
.release-checklist span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

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

.platform-card {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(47, 117, 93, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(234, 245, 239, 0.8), rgba(255, 255, 255, 0.96)),
    #fff;
  box-shadow: 0 16px 38px rgba(27, 62, 51, 0.08);
}

.platform-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.platform-card strong {
  color: var(--green-deep);
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.platform-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

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

.release-checklist article.is-ok {
  border-color: rgba(47, 117, 93, 0.18);
  background: #eef8f1;
}

.release-checklist article.is-warn {
  border-color: rgba(196, 147, 58, 0.28);
  background: #fff8e8;
}

@media (max-width: 980px) {
  .material-metrics,
  .platform-grid,
  .release-checklist {
    grid-template-columns: 1fr;
  }
}

/* Admin ops polish: final overrides for dashboard and Feifei AI operations. */
#campus-dashboard {
  gap: 16px;
}

#campus-dashboard .admin-hero {
  margin-bottom: 0;
  border-color: rgba(47, 117, 93, 0.16);
  background: #fff;
  box-shadow: 0 12px 34px rgba(27, 62, 51, 0.06);
}

#campus-dashboard .admin-hero h2 {
  font-size: 26px;
  line-height: 1.25;
}

#campus-dashboard .admin-metrics,
#training-page .ops-metrics {
  grid-template-columns: repeat(auto-fit, minmax(138px, 1fr));
  gap: 12px;
  margin-bottom: 0;
}

#campus-dashboard .admin-metrics article,
#training-page .ops-metrics article {
  position: relative;
  min-height: 86px;
  overflow: hidden;
  border-color: rgba(47, 117, 93, 0.14);
  background: #fff;
  box-shadow: none;
}

#campus-dashboard .admin-metrics article::after,
#training-page .ops-metrics article::after {
  content: "";
  position: absolute;
  right: 13px;
  bottom: 0;
  left: 13px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: rgba(47, 117, 93, 0.14);
}

#campus-dashboard .admin-metrics strong,
#training-page .ops-metrics strong {
  font-size: 24px;
}

#campus-dashboard .admin-overview-grid {
  grid-template-columns: minmax(360px, 1.1fr) minmax(300px, 0.9fr);
  gap: 14px;
  align-items: start;
}

#campus-dashboard .admin-panel {
  min-height: 310px;
  box-shadow: 0 12px 34px rgba(27, 62, 51, 0.06);
}

#campus-dashboard .admin-list {
  display: grid;
  gap: 9px;
}

#training-page .training-ops-page {
  gap: 16px;
  padding: 18px;
  border-color: rgba(47, 117, 93, 0.16);
  background: #f7fbf8;
  box-shadow: 0 14px 38px rgba(27, 62, 51, 0.08);
}

#training-page .ops-head {
  position: relative;
  align-items: center;
  padding: 16px 18px 16px 20px;
  overflow: hidden;
  border: 1px solid rgba(47, 117, 93, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

#training-page .ops-head::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 0;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--green);
}

#training-page .ops-head > div {
  min-width: 0;
}

#training-page .ops-head h3 {
  max-width: 820px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

#training-page .ops-head .status-chip {
  flex: 0 0 auto;
}

#training-page .ops-filters {
  grid-template-columns: minmax(120px, 160px) repeat(2, minmax(180px, 1fr));
  align-items: end;
  padding: 12px;
  border-color: rgba(47, 117, 93, 0.14);
  background: #fff;
  box-shadow: none;
}

#training-page .ops-filters input,
#training-page .ops-filters select,
#training-page .ops-form input,
#training-page .ops-form select,
#training-page .ops-form textarea {
  border-color: #d8e5df;
  background: #fff;
}

#training-page .ops-filters input:focus,
#training-page .ops-filters select:focus,
#training-page .ops-form input:focus,
#training-page .ops-form select:focus,
#training-page .ops-form textarea:focus {
  border-color: rgba(47, 117, 93, 0.5);
  outline: 2px solid rgba(47, 117, 93, 0.12);
  outline-offset: 0;
}

#training-page .ops-tabs {
  gap: 6px;
  padding: 6px;
  border-color: rgba(47, 117, 93, 0.14);
  background: #fff;
  box-shadow: none;
}

#training-page .ops-tabs button {
  min-height: 38px;
  border: 1px solid transparent;
  color: #4f6059;
  background: transparent;
}

#training-page .ops-tabs button:hover,
#training-page .ops-tabs button:focus-visible {
  border-color: rgba(47, 117, 93, 0.2);
  color: var(--green-deep);
  background: #edf7f1;
  outline: none;
}

#training-page .ops-tabs button.active {
  border-color: var(--green-deep);
  color: #fff;
  background: var(--green-deep);
}

#training-page .ops-panel {
  padding: 16px;
  border-color: rgba(47, 117, 93, 0.14);
  background: #fff;
  box-shadow: none;
}

#training-page .ops-two-column {
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: 16px;
}

#training-page .ops-item-list,
#training-page .ops-rule-list,
#training-page .ops-log-list.compact {
  max-height: 620px;
}

#training-page .ops-log-list:not(.compact) {
  max-height: min(72vh, 760px);
  overflow: auto;
  padding-right: 4px;
}

#training-page .ops-list-item,
#training-page .ops-log-card,
#training-page .ops-sample-card,
#training-page .ops-stat-item,
#training-page .ops-feedback-target {
  border-color: #dde9e3;
  box-shadow: none;
}

#training-page .ops-list-item:hover,
#training-page .ops-list-item:focus-visible,
#training-page .ops-log-card:hover,
#training-page .ops-log-card.is-selected {
  border-color: rgba(47, 117, 93, 0.38);
  background: #f8fbf9;
  box-shadow: 0 10px 24px rgba(27, 62, 51, 0.07);
}

#training-page .ops-log-card {
  gap: 10px;
  padding: 13px;
}

#training-page .ops-log-card > button strong {
  font-size: 15px;
}

#training-page .ops-log-card p,
#training-page .ops-sample-card p,
#training-page .ops-feedback-target p {
  color: #5f6b65;
}

#training-page .ops-precheck-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

#training-page .ops-precheck-summary article {
  min-height: 76px;
  padding: 12px;
  border: 1px solid rgba(47, 117, 93, 0.14);
  border-radius: 8px;
  background: #f8fbf9;
}

#training-page .ops-precheck-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

#training-page .ops-precheck-summary strong {
  display: block;
  margin-top: 7px;
  color: var(--green-deep);
  font-size: 24px;
  line-height: 1;
}

#training-page .ops-feedback-workflow {
  grid-template-columns: minmax(340px, 0.94fr) minmax(420px, 1.06fr);
}

#training-page .ops-feedback-queues {
  display: grid;
  gap: 10px;
}

#training-page .ops-subsection-title {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(47, 117, 93, 0.12);
}

#training-page .ops-precheck-card {
  position: relative;
  overflow: hidden;
}

#training-page .ops-precheck-card::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 3px;
  border-radius: 0 999px 999px 0;
  background: rgba(47, 117, 93, 0.18);
}

#training-page .ops-precheck-card.is-selected::before {
  background: var(--green-deep);
}

#training-page .ops-precheck-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

#training-page .ops-precheck-reasons span {
  padding: 5px 7px;
  border-radius: 8px;
  color: #4d5d56;
  background: #f1f6f3;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

#training-page .ops-tag-row span {
  border: 1px solid rgba(47, 117, 93, 0.08);
  background: #f0f6f3;
}

#training-page .ops-dashboard-grid {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}

#training-page .ops-dashboard-grid > section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 340px;
  padding: 14px;
  border-color: rgba(47, 117, 93, 0.14);
  background: #fff;
  box-shadow: none;
}

#training-page .ops-stat-list {
  align-content: start;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

#training-page .ops-stat-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(42px, auto);
  min-height: 46px;
  padding: 10px 12px;
}

#training-page .ops-stat-item strong {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.35;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#training-page .ops-stat-item span {
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--green-deep);
  background: var(--green-soft);
  text-align: center;
}

#training-page .ops-empty {
  background: #f8fbf9;
}

#training-page .ops-supplement-workflow {
  align-items: start;
}

#training-page .ops-supplement-card {
  position: relative;
  padding-right: 82px;
}

#training-page .ops-supplement-card::after {
  content: "补";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: var(--green-deep);
  background: #e9f5ee;
  font-size: 12px;
  font-weight: 900;
  line-height: 28px;
  text-align: center;
}

#training-page .ops-source-list {
  display: grid;
  gap: 8px;
  max-height: 310px;
  overflow: auto;
  padding-right: 4px;
}

#training-page .ops-source-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 5px 9px;
  padding: 10px;
  border: 1px solid #dde9e3;
  border-radius: 8px;
  background: #fbfdfb;
}

#training-page .ops-source-card span {
  grid-row: span 3;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  color: #fff;
  background: var(--green-deep);
  font-size: 12px;
  font-weight: 900;
  line-height: 26px;
  text-align: center;
}

#training-page .ops-source-card strong {
  color: #173c30;
  font-size: 13px;
  line-height: 1.25;
}

#training-page .ops-source-card p {
  margin: 0;
  color: #5e6b65;
  font-size: 12px;
  line-height: 1.45;
}

#training-page .ops-source-card small {
  color: #87958e;
  font-size: 11px;
}

@media (max-width: 1180px) {
  #campus-dashboard .admin-overview-grid,
  #training-page .ops-two-column,
  #training-page .ops-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #training-page .ops-precheck-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #training-page .ops-filters {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  #training-page .ops-head {
    align-items: flex-start;
    flex-direction: column;
  }

  #training-page .ops-head .status-chip {
    align-self: flex-start;
  }

  #campus-dashboard .admin-metrics,
  #training-page .ops-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #training-page .training-ops-page,
  #training-page .ops-panel,
  #campus-dashboard .admin-panel {
    padding: 14px;
  }

  #training-page .ops-precheck-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}
