:root {
  color-scheme: dark;
  --bg: #07101c;
  --panel: #101a2b;
  --line: rgba(186, 208, 240, .12);
  --text: #e8eef8;
  --muted: #8ea0bb;
  --accent: #4c8dff;
  --good: #3dd68c;
  --mid: #f5a524;
  --bad: #ff6b6b;
}
html.dark {
  --el-bg-color: #101a2b;
  --el-bg-color-overlay: #162238;
  --el-bg-color-page: #07101c;
  --el-fill-color-blank: #101a2b;
  --el-text-color-primary: #e8eef8;
  --el-text-color-regular: #c5d2e6;
  --el-text-color-secondary: #8ea0bb;
  --el-border-color: rgba(186, 208, 240, .16);
  --el-border-color-light: rgba(186, 208, 240, .1);
  --el-color-primary: #4c8dff;
  --el-mask-color: rgba(7, 16, 28, .72);
}
* { box-sizing: border-box; }
html, body, #app { height: 100%; margin: 0; }
#app { display: flex; flex-direction: column; }
body {
  color: var(--text);
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(76, 141, 255, .18), transparent 60%),
    radial-gradient(700px 380px at 100% 0%, rgba(61, 214, 140, .08), transparent 55%),
    var(--bg);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
[v-cloak] { display: none; }
button, input { font: inherit; }

.login-screen {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 48px 24px;
  background:
    radial-gradient(720px 360px at 12% 8%, rgba(76, 141, 255, .16), transparent 68%),
    radial-gradient(560px 320px at 88% 100%, rgba(61, 214, 140, .07), transparent 70%);
}
.login-stage {
  width: min(960px, 100%);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  border: 1px solid rgba(186, 208, 240, .16);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(10, 18, 32, .78);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .38);
}
.login-aside {
  padding: 52px 48px 44px;
  background:
    linear-gradient(180deg, rgba(76, 141, 255, .1), transparent 46%),
    rgba(7, 14, 26, .42);
  border-right: 1px solid var(--line);
}
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand .brand { margin: 0; color: var(--accent); letter-spacing: .22em; font-size: 12px; }
.login-brand strong { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; }
.login-aside h1 {
  margin: 48px 0 0;
  max-width: 11em;
  font-size: 36px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: .01em;
}
.login-aside .sub { margin: 16px 0 0; max-width: 28em; color: var(--muted); line-height: 1.75; }
.login-points { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.login-points li { display: flex; gap: 14px; align-items: flex-start; }
.login-points span { color: var(--accent); font-size: 12px; letter-spacing: .12em; line-height: 1.7; font-variant-numeric: tabular-nums; }
.login-points strong { display: block; font-size: 15px; font-weight: 600; }
.login-points em { display: block; margin-top: 2px; color: var(--muted); font-style: normal; font-size: 13px; line-height: 1.6; }
.login-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.login-card .el-card__body { padding: 52px 40px 36px; }
.login-kicker { margin: 0 0 28px; color: var(--accent); letter-spacing: .22em; font-size: 12px; }
.login-card .el-form-item { margin-bottom: 18px; }
.login-card .el-form-item__label { color: var(--muted); font-size: 12px; letter-spacing: .08em; }
.login-card .el-input__wrapper {
  min-height: 44px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  box-shadow: 0 0 0 1px rgba(186, 208, 240, .18) inset;
}
.login-go { width: 100%; height: 44px; margin-top: 6px; border-radius: 10px; font-size: 15px; }
.login-foot { margin: 22px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.err { color: var(--bad); margin: 10px 0 0; }

.shell { flex: 1; min-height: 0; height: 100%; }
.shell > .body { flex: 1; min-height: 0; overflow: hidden; }
.top {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 28, .8);
  backdrop-filter: blur(10px);
}
.brand-lock { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.brand-lock strong { display: block; font-size: 16px; }
.brand-lock em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.mark { width: 10px; height: 28px; border-radius: 99px; background: linear-gradient(180deg, var(--accent), var(--good)); }
.class-pick { width: 280px; }
.side-tools .class-pick { width: 100%; }
.page-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
}
.page-filters > span { color: var(--muted); font-size: 13px; flex: none; }
.page-body { min-height: 240px; }
.top-gap { flex: 1; }
.body { min-height: 0; }
.side {
  border-right: 1px solid var(--line);
  background: rgba(10, 18, 32, .72);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.side-tools { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 10px; }
.sort-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
}
.sort-switch button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 28px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.sort-switch button.on { background: var(--accent); color: #fff; }
.sort-switch em { font-style: normal; font-size: 12px; letter-spacing: .02em; }
.roster { overflow: auto; padding: 0 10px 16px; }
.stu {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.stu:hover { background: rgba(76, 141, 255, .08); }
.stu.on { background: rgba(76, 141, 255, .16); border-color: rgba(76, 141, 255, .45); }
.stu-name { font-size: 14px; }
.stu-meta { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 12px; }
.main { min-height: 0; overflow: auto; padding: 18px 20px 32px; }
.student-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.student-head h2 { margin: 0; font-size: 28px; font-weight: 600; }
.student-head p { margin: 6px 0 0; color: var(--muted); }
.scope-filters { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 100%; }
.scope-row { display: flex; align-items: center; justify-content: flex-end; gap: 8px; max-width: 100%; }
.scope-row > span { color: var(--muted); font-size: 12px; flex: none; }
.scope-filters .el-radio-group { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; }
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin: 16px 0; }
.kpis.compact { grid-template-columns: repeat(3, minmax(160px, 280px)); }
.kpis button.kpi, .filter-kpis .kpi { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.kpis button.kpi:hover, .filter-kpis .kpi:hover { border-color: rgba(76, 141, 255, .55); }
.kpis.filter-active button.kpi:not(.on) { opacity: .5; }
.kpis button.kpi.on, .filter-kpis .kpi.on { border-color: rgba(76, 141, 255, .75); box-shadow: inset 0 0 0 1px rgba(76, 141, 255, .4); opacity: 1; }
.kpi {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px 10px;
}
.kpi span, .kpi em { display: block; color: var(--muted); font-style: normal; font-size: 12px; }
.kpi strong { display: block; margin: 4px 0; font-size: 26px; font-variant-numeric: tabular-nums; font-weight: 600; }
.kpi strong i, .report-kpis strong i { margin-left: 2px; font-style: normal; font-size: 13px; font-weight: 500; color: var(--muted); }
.kpi.good strong { color: var(--good); }
.kpi.mid strong { color: var(--mid); }
.kpi.bad strong { color: var(--bad); }
.gap-up { color: var(--good); }
.gap-down { color: var(--bad); }
.chart-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 12px; }
.panel { margin-bottom: 12px; background: rgba(16, 26, 43, .92); border: 1px solid var(--line); }
.panel-h { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.panel-h small, .hint { color: var(--muted); font-weight: 400; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chart { height: 300px; }
.chart-wide { height: 340px; }
.curve-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; min-height: 32px; margin-bottom: 4px; }
.el-table { --el-table-bg-color: transparent; --el-table-tr-bg-color: transparent; --el-table-header-bg-color: rgba(255,255,255,.03); cursor: pointer; }
.el-table .is-picked td { background: rgba(76, 141, 255, .12) !important; }
.view-tabs { margin-top: 8px; }
.paper-reason { margin: 0 0 12px; }
.question {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.question header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.question header span, .question header { color: var(--muted); font-size: 12px; }
.question header span { max-width: 100%; white-space: normal; line-height: 1.5; text-align: right; }
.question header strong { color: var(--text); font-size: 14px; }
.question p { margin: 0; line-height: 1.7; white-space: pre-wrap; }
.question ol { margin: 8px 0 0; padding: 0; list-style: none; }
.question li { margin-top: 4px; line-height: 1.6; }
.question li b {
  display: inline-block;
  width: 1.4em;
  color: var(--accent);
}
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.choices button {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  cursor: pointer;
}
.choices button b { color: var(--accent); min-width: 1.2em; }
.choices button span { white-space: normal; }
.choices button:hover:not(:disabled) { border-color: rgba(76, 141, 255, .55); }
.choices button.on { border-color: var(--accent); background: rgba(76, 141, 255, .12); }
.choices button.right { border-color: var(--good); background: rgba(61, 214, 140, .12); }
.choices button.wrong { border-color: var(--bad); background: rgba(255, 107, 107, .12); }
.choices button:disabled { cursor: default; }
.written textarea {
  width: 100%;
  min-height: 128px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .03);
  color: var(--text);
  resize: vertical;
}
.written-actions { display: flex; gap: 8px; margin-top: 8px; }
.written-actions button {
  padding: 8px 16px;
  border-radius: 8px;
  cursor: pointer;
}
.written-actions .ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.written-actions .solid { background: var(--accent); color: #fff; border: 0; }
.written-actions button:disabled { opacity: .45; cursor: default; }
.review-block { margin-top: 8px; }
.reveal { margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255,255,255,.04); white-space: pre-wrap; }
.reveal.good { color: var(--good); }
.reveal.bad { color: var(--bad); }
.q-points { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.q-points span { color: var(--muted); font-size: 12px; }
.q-points em {
  font-style: normal;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 99px;
  background: rgba(76, 141, 255, .12);
  color: #c5d8ff;
}
.mastery-list, .question-stories { border: 0; }
.mastery-list .el-collapse-item__header,
.question-stories .el-collapse-item__header {
  background: transparent;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  height: auto;
  line-height: 1.5;
  padding: 8px 0;
}
.mastery-list .el-collapse-item__wrap,
.question-stories .el-collapse-item__wrap {
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.mastery-list .el-collapse-item__content,
.question-stories .el-collapse-item__content { color: var(--text); }
.mastery-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mastery-title strong { font-weight: 600; }
.mastery-title span { color: var(--muted); font-variant-numeric: tabular-nums; }
.mastery-title .page-ref { font-weight: 400; white-space: nowrap; }
.spark-wrap { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 8px; }
.spark { width: 180px; height: 52px; }
.spark polyline { fill: none; stroke: #4c8dff; stroke-width: 2; }
.spark circle { fill: #7eb6ff; }
.spark-labels { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: 12px; }
.story { margin: 0 0 8px; line-height: 1.7; color: #c5d2e6; }
.stem-bit { margin: 0; color: var(--muted); line-height: 1.6; white-space: pre-wrap; }
.report {
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  padding: 18px 18px 8px;
  border-radius: 16px;
  border: 1px solid rgba(76, 141, 255, .38);
  background:
    radial-gradient(480px 180px at 0% 0%, rgba(76, 141, 255, .22), transparent 62%),
    rgba(16, 26, 43, .96);
  animation: report-in .7s ease both;
}
.report::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -30%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent);
  animation: report-sheen 1.6s ease .15s both;
  pointer-events: none;
}
.report-head { display: flex; justify-content: space-between; align-items: baseline; }
.report-head span { font-size: 20px; font-weight: 600; letter-spacing: .04em; }
.report-head small, .report-row small { color: var(--muted); }
.report-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 16px; }
.report-kpis div {
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.04);
}
.report-kpis strong { display: block; font-size: 26px; font-variant-numeric: tabular-nums; }
.report-kpis span { color: var(--muted); font-size: 12px; }
.report-kpis .up, .report-name .up, .delta-up { color: var(--good); }
.report-kpis .down, .report-name .down { color: var(--bad); }
.report-row {
  padding: 10px 0 12px;
  border-top: 1px solid var(--line);
  animation: report-in .55s ease both;
}
.report-name { display: flex; justify-content: space-between; gap: 12px; }
.report-name em { font-style: normal; font-variant-numeric: tabular-nums; }
.meters { display: grid; gap: 6px; margin: 8px 0; }
.meter { height: 8px; border-radius: 99px; background: rgba(255,255,255,.06); overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; border-radius: inherit; animation: meter-grow .8s ease forwards; }
@keyframes report-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes report-sheen { to { transform: translateX(460%); } }
@keyframes meter-grow { to { width: var(--w); } }
@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .chart-grid { grid-template-columns: 1fr; }
}
.book-fold { border: 0; }
.book-fold > .el-collapse-item {
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.book-fold > .el-collapse-item > .el-collapse-item__header {
  background: transparent;
  color: var(--text);
  height: auto;
  line-height: 1.5;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.book-fold .el-collapse-item__wrap { background: transparent; border-bottom: 0; }
.book-fold .el-collapse-item__content { padding: 0 12px 8px; color: var(--text); }
.book-title { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding-right: 8px; }
.book-title strong { font-size: 15px; }
.book-title small { color: var(--muted); font-weight: 400; }
.round-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.round-list { display: flex; flex-direction: column; gap: 8px; position: sticky; top: 12px; }
.round-list button, .round-pick, .view-switch button, .past-reports button, .submit-bar button, .text-btn {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}
.round-pick { display: flex; align-items: center; gap: 8px; width: 100%; }
.round-meta { flex: 1; min-width: 0; }
.round-meta strong, .round-list button strong, .round-list button small { display: block; }
.round-meta small, .round-list button small { color: var(--muted); margin-top: 4px; }
.round-pick.on, .view-switch button.on { border-color: rgba(76, 141, 255, .7); background: rgba(76, 141, 255, .16); }
.round-list .round-report, .round-tools .round-report-main {
  flex: none;
  text-align: center;
  background: #4c8dff;
  color: #fff;
  border: 0;
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}
.round-list .round-report:hover, .round-tools .round-report-main:hover { background: #6aa2ff; }
.round-list .round-report { padding: 4px 8px; }
.round-list .round-del {
  flex: none;
  text-align: center;
  background: transparent;
  color: #ff8d8d;
  border: 1px solid rgba(255, 107, 107, .5);
  border-radius: 8px;
  font-size: 12px;
  line-height: 1.2;
  padding: 4px 10px;
}
.round-list .round-del:hover { background: rgba(255, 107, 107, .16); }
.round-tools .round-report-main { padding: 6px 12px; }
.round-list .issue { text-align: center; background: #4c8dff; color: #fff; border: 0; }
.round-list .issue:disabled { opacity: .6; cursor: default; }
.round-tools { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.round-tools small { display: block; color: var(--muted); margin-top: 4px; }
.view-switch { display: flex; gap: 8px; }
.view-switch button { padding: 8px 12px; }
.past-reports { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; color: var(--muted); }
.past-reports button { padding: 6px 10px; }
.submit-bar {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  padding: 4px 0 8px;
}
.submit-bar .solid { margin-left: auto; }
.submit-bar .ghost { min-width: 120px; text-align: center; }
.submit-bar .solid {
  min-width: 140px;
  text-align: center;
  background: #4c8dff;
  color: #fff;
  border: 0;
}
.submit-bar .solid:disabled { opacity: .45; cursor: default; }
.text-btn { padding: 4px 10px; }
.report-wait { padding: 22px 4px 8px; }
.grade-title { margin: 0 0 14px; text-align: center; color: var(--text); font-size: 16px; }
.grade-log {
  list-style: none;
  margin: 0;
  padding: 12px 14px;
  max-height: 320px;
  overflow: auto;
  color: var(--muted);
  background: rgba(0, 0, 0, .28);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
}
.grade-log li + li { margin-top: 8px; }
.report p { line-height: 1.75; }
@media (max-width: 800px) {
  .login-screen { padding: 20px 14px; }
  .login-stage { grid-template-columns: 1fr; }
  .login-aside { padding: 28px 22px 22px; border-right: 0; border-bottom: 1px solid var(--line); }
  .login-aside h1 { margin-top: 28px; font-size: 28px; }
  .login-points { margin-top: 24px; }
  .login-card .el-card__body { padding: 28px 22px 24px; }
  .round-layout { grid-template-columns: 1fr; }
  .round-list { position: static; }
  .report-kpis { grid-template-columns: repeat(2, 1fr); }
  .side { width: 100% !important; max-height: 280px; }
  .body { flex-direction: column; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .watch-grid { grid-template-columns: 1fr; }
  .class-pick { width: 160px; }
  .admin-nav { width: 100% !important; flex-direction: row; align-items: flex-start; overflow: auto; }
  .admin-nav-label { display: none; }
  .nav-group { min-width: 140px; }
  .nav-sub { margin-left: 8px; }
  .drawer, .nav-drawer, .roster-drawer, .drawer.closed { width: 100%; height: auto; transition: none; }
  .drawer.closed { height: 44px; }
  .drawer:not(.closed) { max-height: 280px; }
}

.admin-shell { position: relative; }
.admin-shell > .body,
.admin-shell > .class-main { flex: 1; min-width: 0; min-height: 0; height: 100%; }
.drawer {
  flex: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: rgba(10, 18, 32, .72);
  border-right: 1px solid var(--line);
  transition: width .24s ease;
}
.nav-drawer { width: 220px; }
.roster-drawer { width: 300px; }
.drawer.closed { width: 44px; }
.drawer-body { flex: 1; min-height: 0; min-width: 220px; }
.roster-drawer .drawer-body { min-width: 300px; }
.drawer.closed .drawer-body { visibility: hidden; }
.drawer .admin-nav,
.drawer .side {
  height: auto;
  width: auto;
  border-right: 0;
  background: transparent;
}
.drawer .side { height: 100%; }
.drawer-toggle,
.drawer-hint {
  flex: none;
  display: grid;
  place-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.drawer-toggle { height: 36px; }
.drawer-hint { order: -1; height: 44px; color: #c5d4ee; }
.drawer-toggle svg,
.drawer-hint svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drawer-toggle:hover,
.drawer-hint:hover { color: #fff; background: rgba(76, 141, 255, .16); }
.class-brief { margin: 8px 0 0; max-width: 820px; line-height: 1.7; color: var(--text); }
.watch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) {
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
}
.watch-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 42px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(186, 208, 240, .72) rgba(255, 255, 255, .08);
}
.watch-list::-webkit-scrollbar { width: 8px; }
.watch-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, .08); border-radius: 99px; }
.watch-list::-webkit-scrollbar-thumb { background: rgba(186, 208, 240, .72); border-radius: 99px; }
.watch-list button {
  display: flex;
  flex: none;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.watch-list button:hover { background: rgba(76, 141, 255, .08); }
.watch-list button > span { flex: none; white-space: nowrap; }
.watch-list em { flex: none; color: var(--muted); font-style: normal; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.class-main .el-table { cursor: default; }
.admin-nav {
  align-self: stretch;
  height: 100%;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: rgba(10, 18, 32, .72);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.admin-nav-label { margin: 0 8px 6px; color: var(--muted); font-size: 12px; letter-spacing: .12em; }
.nav-group { display: flex; flex-direction: column; gap: 4px; }
.admin-nav button {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.admin-nav button.nav-main {
  padding: 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}
.admin-nav button.nav-main.on { background: rgba(76, 141, 255, .16); border-color: rgba(76, 141, 255, .45); }
.nav-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 4px 14px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}
.nav-sub button {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
}
.nav-sub button.on { color: var(--text); background: rgba(76, 141, 255, .16); }
.maintain { display: flex; flex-direction: column; gap: 8px; }
.maintain-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.maintain-head h2 { margin: 0; font-size: 20px; }
.maintain-head p, .card-title p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.card-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 8px 0 12px; }
.card-title > :only-child { margin-left: auto; }
.card-title p { margin: 0; }
.table-scroll { overflow-x: auto; }
.maintain table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.maintain th, .maintain td { text-align: left; padding: 10px 8px; border-bottom: 1px solid rgba(186, 208, 240, .1); vertical-align: middle; white-space: nowrap; }
.maintain th { color: var(--muted); font-weight: 500; }
.maintain td.row-actions { display: table-cell; text-align: right; white-space: nowrap; }
.maintain td.row-actions .el-button + .el-button { margin-left: 4px; }
.import-form { max-width: 640px; }
.file-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 4px 0 16px; }
.file-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font-size: 13px;
}
.file-pick em { color: var(--muted); font-style: normal; font-size: 12px; }
.import-list { margin-top: 22px; }
.import-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.import-meta { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.import-actions { display: flex; align-items: center; gap: 12px; margin: 12px 0; flex-wrap: wrap; }
.maintain table.import-questions { min-width: 0; table-layout: fixed; }
.maintain table.import-questions th:nth-child(1),
.maintain table.import-questions td:nth-child(1) { width: 76px; white-space: nowrap; }
.maintain table.import-questions th:nth-child(3),
.maintain table.import-questions td:nth-child(3) { width: 56px; white-space: nowrap; }
.maintain table.import-questions th:nth-child(4),
.maintain table.import-questions td:nth-child(4) { width: 96px; }
.maintain td.point-cell {
  white-space: normal;
  min-width: 0;
  line-height: 1.55;
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
}
.maintain td.point-cell span { display: block; }
.maintain td.point-cell em {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.maintain tr.low td { background: rgba(245, 165, 36, .12); }
.import-log { max-height: 640px; }
@media (max-width: 800px) {
  .import-layout { grid-template-columns: 1fr; }
}

.scope-chip,
.phone-back,
.fold-toggle,
.point-cards,
.phone-tabs,
.sheet-mask { display: none; }

@media (max-width: 719px) {
  .scope-chip,
  .phone-back,
  .fold-toggle,
  .point-cards { display: flex; }
  .phone-tabs,
  .sheet-mask { display: flex; }
  .desk-only,
  .scope-filters { display: none !important; }

  .top.el-header {
    height: auto !important;
    min-height: calc(52px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 12px 0;
    gap: 8px;
  }
  .brand-lock { min-width: 0; }
  .brand-lock em {
    max-width: 9em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html, body, #app { overflow: hidden; }
  .login-screen { height: 100%; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .shell { overflow: hidden; max-height: 100%; }
  .main, .roster {
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .main { padding: 14px 14px 28px; }
  .watch-list { max-height: none; overflow: visible; padding-right: 0; }
  .student-head { align-items: stretch; }
  .student-head h2 { font-size: 22px; }
  .page-filters { align-items: center; }
  .page-filters .class-pick { width: auto; flex: 1; min-width: 0; }
  .side-tools .class-pick { width: 100%; flex: none; }
  .kpis,
  .kpis.compact { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .kpi { padding: 10px 8px 8px; }
  .kpi strong { font-size: 20px; }
  .kpi em { line-height: 1.35; }
  .chart { height: 240px; }
  .chart-wide { height: 260px; }
  .watch-grid { grid-template-columns: minmax(0, 1fr); }
  .class-stack { display: flex; flex-direction: column; }
  .block-watch { order: 1; }
  .block-points { order: 2; }
  .block-charts { order: 3; }
  .filters { width: 100%; }
  .filters .el-select,
  .filters .el-input { width: 100% !important; }
  .panel-h { flex-direction: column; align-items: stretch; }
  .mastery-title { flex-wrap: wrap; }
  .view-tabs > .el-tabs__header { position: static; }
  .choices button { min-height: 48px; }
  .stu { min-height: 48px; }
  .round-list button,
  .round-pick { min-height: 48px; }
  input, textarea, .el-input__inner, .el-textarea__inner { font-size: 16px !important; }
  .el-dialog { width: calc(100% - 24px) !important; max-width: calc(100% - 24px); margin: 8vh auto 0 !important; }
  .submit-bar { position: static; margin-top: 12px; }

  .phone-back {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-size: 14px;
    min-height: 32px;
  }
  .scope-chip {
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .04);
    color: var(--text);
    text-align: left;
  }
  .scope-chip::after { content: "更改"; color: var(--accent); font-size: 12px; flex: none; }
  .fold-toggle {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin: 0 0 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    text-align: left;
  }
  .fold-toggle small { color: var(--muted); margin-top: 4px; }
  .point-cards { flex-direction: column; gap: 8px; }
  .point-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .03);
    color: var(--text);
    text-align: left;
  }
  button.point-card { cursor: pointer; }
  .point-card.is-picked {
    border-color: rgba(76, 141, 255, .7);
    background: rgba(76, 141, 255, .12);
  }
  .point-card-top,
  .point-card-sub { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
  .point-card-top strong { font-size: 15px; }
  .point-card-top em { font-style: normal; font-variant-numeric: tabular-nums; }
  .point-card-sub small { color: var(--muted); }
  .watch-switch {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    overflow: visible;
    margin-bottom: 8px;
  }
  .watch-switch button {
    min-height: 44px;
    padding: 6px 8px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--muted);
  }
  .watch-switch button.on {
    color: var(--text);
    border-color: rgba(76, 141, 255, .7);
    background: rgba(76, 141, 255, .16);
  }
  .watch-switch em { display: block; font-style: normal; font-variant-numeric: tabular-nums; color: var(--text); }
  .watch-list button { min-height: 44px; }

  .teacher-phone {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
  }
  .teacher-phone > .body,
  .teacher-phone > .class-main { flex: 1 1 auto; min-width: 0; min-height: 0; }
  .teacher-phone.phone-roster > .body { flex-direction: column; overflow: hidden; }
  .teacher-phone .roster-drawer,
  .teacher-phone .roster-drawer.closed,
  .teacher-phone.phone-roster .drawer:not(.closed) {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    flex: 1 1 auto;
    border-right: 0;
  }
  .teacher-phone .roster-drawer .drawer-body,
  .teacher-phone .roster-drawer.closed .drawer-body {
    visibility: visible;
    min-width: 0;
    width: 100%;
  }
  .teacher-phone .drawer-toggle,
  .teacher-phone .drawer-hint { display: none; }
  .teacher-phone .side {
    width: 100% !important;
    max-height: none !important;
    height: auto;
    min-height: 0;
    flex: 1;
  }
  .teacher-phone .roster { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; }
  .teacher-phone.phone-roster .student-main { display: none !important; }
  .teacher-phone.phone-detail .roster-drawer { display: none !important; }

  .phone-tabs {
    position: static;
    flex: none;
    width: 100%;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(7, 16, 28, .96);
    border-top: 1px solid var(--line);
  }
  .phone-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
  }
  .phone-tabs button.on { background: rgba(76, 141, 255, .18); color: #fff; }

  .sheet-mask {
    position: fixed;
    inset: 0;
    z-index: 40;
    align-items: flex-end;
    background: rgba(0, 0, 0, .5);
    overscroll-behavior: contain;
    touch-action: none;
  }
  .sheet {
    width: 100%;
    max-height: 78dvh;
    overflow: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: 16px 16px 0 0;
    background: #101a2b;
  }
  .sheet-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
  .sheet-label { margin: 14px 0 8px; color: var(--muted); font-size: 12px; }
  .sheet-options { display: flex; flex-direction: column; gap: 8px; }
  .sheet-options button {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left;
  }
  .sheet-options button.on {
    border-color: rgba(76, 141, 255, .7);
    background: rgba(76, 141, 255, .16);
  }
}

.issue-label { margin: 14px 0 8px; color: var(--muted); font-size: 12px; }
.issue-label:first-child { margin-top: 0; }
.issue-options { display: flex; flex-wrap: wrap; gap: 8px; }
.issue-options button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.issue-options button.on {
  border-color: rgba(76, 141, 255, .7);
  background: rgba(76, 141, 255, .16);
}
.issue-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.issue-count { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.issue-count .el-input-number { width: 140px; }
.issue-checks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.issue-word {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  min-height: 40px;
  cursor: pointer;
}
.issue-word input { width: 16px; height: 16px; }
.issue-summary { margin: 12px 0 0; color: var(--text); line-height: 1.6; }
.issue-actions { margin: 14px 0 4px; }
.issue-actions .solid {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: #4c8dff;
  color: #fff;
  cursor: pointer;
}
.issue-actions .solid:disabled { opacity: .45; cursor: default; }
.review-q {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.review-q-main { flex: 1; min-width: 0; }
.review-q header { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.review-q header span, .review-options { color: var(--muted); }
.review-q .stem { white-space: pre-wrap; line-height: 1.7; }
.review-options { margin: 8px 0 0; padding: 0; list-style: none; }
.review-options li { display: flex; gap: 8px; margin-top: 4px; line-height: 1.6; }
.review-options b { color: var(--accent); }
.review-answer { max-height: 96px; overflow: auto; white-space: pre-wrap; }
.swap-one {
  flex: none;
  min-width: 72px;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.swap-one:disabled { opacity: .45; cursor: default; }
.issue-dialog .el-dialog__body { max-height: min(70dvh, 640px); overflow: auto; }
@media (max-width: 719px) {
  .review-q { gap: 8px; }
  .swap-one { align-self: flex-start; }
}
