
/* Demonstration readiness workspace */
.demo-readiness-card {
  margin-bottom: 20px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(217, 119, 6, 0.06)),
    var(--card);
}
.demo-readiness-card .card-header { align-items: flex-start; }
.demo-readiness-card .card-header h3 { font-size: 22px; }
.demo-readiness-card .card-header .muted { max-width: 720px; margin: 10px 0 0; font-size: 14px; }
.demo-readiness-card .compact-btn { padding: 9px 12px; border-radius: 8px; font-size: 12px; }
.demo-readiness-card .compact-btn:disabled { cursor: wait; opacity: 0.62; transform: none; }
.readiness-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.readiness-pill.pending { color: #80631a; background: rgba(217, 119, 6, 0.12); }
.readiness-pill.ready { color: var(--accent-deep); background: rgba(15, 118, 110, 0.12); }
.readiness-pill.warning { color: #a13a1e; background: rgba(180, 35, 24, 0.1); }
.demo-scenario-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.scenario-summary-item { min-width: 0; padding: 14px 15px; border-radius: 12px; background: rgba(255, 255, 255, 0.68); border: 1px solid var(--line); }
.scenario-summary-item span, .scenario-summary-item strong { display: block; }
.scenario-summary-item span { margin-bottom: 7px; color: var(--muted); font-size: 12px; }
.scenario-summary-item strong { overflow: hidden; color: var(--ink); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.readiness-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.readiness-grid > section { min-width: 0; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.58); border: 1px solid var(--line); }
.readiness-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.readiness-section-heading h4 { margin: 0; font-size: 15px; }
.readiness-section-heading span { color: var(--muted); font-size: 12px; }
.readiness-check-list { display: grid; gap: 8px; }
.readiness-item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 9px; align-items: center; min-height: 38px; padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.7); }
.readiness-item-icon { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: #ffffff; background: #aeb8b7; font-size: 11px; font-weight: 800; }
.readiness-item.ready .readiness-item-icon { background: var(--accent); }
.readiness-item.pending .readiness-item-icon { color: #8b650f; background: rgba(217, 119, 6, 0.18); }
.readiness-item-label { min-width: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.readiness-item-status { color: var(--muted); font-size: 11px; white-space: nowrap; }
.readiness-item.ready .readiness-item-status { color: var(--accent); font-weight: 700; }
.readiness-loading, .readiness-empty { padding: 14px 0; color: var(--muted); font-size: 13px; }
.rehearsal-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.rehearsal-step { min-width: 0; min-height: 132px; padding: 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.7); border: 1px solid var(--line); }
.rehearsal-step-index { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-bottom: 10px; border-radius: 50%; color: #ffffff; background: var(--accent); font-size: 11px; font-weight: 800; }
.rehearsal-step strong, .rehearsal-step span { display: block; }
.rehearsal-step strong { margin-bottom: 6px; color: var(--ink); font-size: 13px; line-height: 1.4; }
.rehearsal-step span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.demo-rubric-preview { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rubric-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 29px; padding: 0 10px; border-radius: 999px; color: var(--accent-deep); background: rgba(15, 118, 110, 0.09); font-size: 12px; font-weight: 700; }
.rubric-chip em { color: var(--accent-warm); font-style: normal; }
@media (max-width: 900px) {
  .demo-readiness-card .card-header { flex-direction: column; }
  .demo-readiness-card .header-actions { justify-content: flex-start; }
  .demo-scenario-summary, .readiness-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .classroom-setup {
    margin-top: 18px;
    padding: 15px;
  }

  .classroom-setup-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .classroom-setup-grid {
    grid-template-columns: 1fr;
  }

  .demo-scenario-summary, .readiness-grid, .rehearsal-flow { grid-template-columns: 1fr; }
  .demo-readiness-card .card-header h3 { font-size: 20px; }
  .demo-readiness-card .header-actions { width: 100%; }
  .demo-readiness-card .header-actions .compact-btn { flex: 1 1 auto; }
  .rehearsal-step { min-height: auto; }
}

/* Classroom interaction */
.student-access-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.student-access-link:hover {
  text-decoration: underline;
}

.classroom-header .muted {
  max-width: 720px;
  margin: 10px 0 0;
  font-size: 14px;
}

.classroom-actions {
  max-width: 620px;
}

.danger-btn {
  color: #a13a1e;
  border-color: rgba(180, 35, 24, 0.2);
}

.classroom-loading,
.classroom-empty {
  padding: 54px 20px;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.classroom-empty strong,
.classroom-empty span {
  display: block;
}

.classroom-empty strong {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.classroom-empty span,
.classroom-loading {
  color: var(--muted);
  font-size: 13px;
}

.classroom-setup {
  width: min(100%, 900px);
  margin: 24px auto 0;
  padding: 18px 20px 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  text-align: left;
}

.classroom-setup-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.classroom-setup-heading span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.classroom-setup-heading strong {
  color: var(--ink);
  font-size: 14px;
}

.classroom-setup-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
}

.classroom-setup label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.classroom-setup label > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.classroom-setup input,
.classroom-setup select,
.classroom-setup textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong, #cbd5d3);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.classroom-setup input,
.classroom-setup select {
  min-height: 40px;
  padding: 0 11px;
}

.classroom-setup textarea {
  min-height: 108px;
  padding: 10px 11px;
  resize: vertical;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
}

.classroom-setup input:focus,
.classroom-setup select:focus,
.classroom-setup textarea:focus {
  outline: 2px solid rgba(15, 118, 110, 0.16);
  border-color: var(--accent);
}

.classroom-setup-questions {
  margin-top: 15px;
}

.classroom-setup-questions em {
  color: var(--muted);
  font-style: normal;
  font-weight: 400;
}

.classroom-setup-hint {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.classroom-setup-hint code {
  padding: 1px 4px;
  border-radius: 3px;
  color: var(--accent-deep);
  background: rgba(15, 118, 110, 0.08);
  font-family: Consolas, "SFMono-Regular", monospace;
}
.classroom-live {
  display: grid;
  gap: 22px;
}

.classroom-session-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.classroom-session-copy {
  min-width: 0;
}

.classroom-session-copy strong,
.classroom-session-copy span {
  display: block;
}

.classroom-session-copy strong {
  margin: 8px 0 5px;
  font-size: 20px;
}

.classroom-session-copy > span:last-child {
  color: var(--muted);
  font-size: 13px;
}

.live-indicator {
  display: inline-flex !important;
  width: max-content;
  padding: 4px 7px;
  border-radius: 4px;
  color: #ffffff;
  background: #b42318;
  font-size: 10px !important;
  font-weight: 800;
  letter-spacing: 0;
}

.classroom-code-block {
  flex: 0 0 186px;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: 8px;
  color: var(--accent-deep);
  background: rgba(15, 118, 110, 0.07);
  text-align: left;
  cursor: pointer;
}

.classroom-code-block span,
.classroom-code-block small {
  color: var(--muted);
  font-size: 11px;
}

.classroom-code-block strong {
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 26px;
  letter-spacing: 2px;
}

.classroom-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.classroom-metric {
  min-width: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.classroom-metric:last-child {
  border-right: 0;
}

.classroom-metric span,
.classroom-metric strong {
  display: block;
}

.classroom-metric span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
}

.classroom-metric strong {
  font-size: 23px;
}

.classroom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
  gap: 24px;
}

.classroom-panel {
  min-width: 0;
}

.classroom-participant-panel {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.classroom-panel-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.classroom-panel-heading h4,
.classroom-panel-heading span {
  margin: 0;
}

.classroom-panel-heading h4 {
  margin-top: 3px;
  font-size: 16px;
}

.classroom-panel-heading span {
  color: var(--muted);
  font-size: 12px;
}

.classroom-question-list,
.classroom-participant-list,
.classroom-history-list {
  display: grid;
  gap: 9px;
}

.classroom-question-item,
.classroom-participant-item,
.classroom-history-item {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.classroom-question-item.active {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.06);
}

.classroom-question-head,
.classroom-participant-item,
.classroom-history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.classroom-question-head > div,
.classroom-participant-copy,
.classroom-history-copy {
  min-width: 0;
}

.classroom-question-head strong,
.classroom-question-head span,
.classroom-participant-copy strong,
.classroom-participant-copy span,
.classroom-history-copy strong,
.classroom-history-copy span {
  display: block;
}

.classroom-question-head strong,
.classroom-participant-copy strong,
.classroom-history-copy strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.classroom-question-head span,
.classroom-participant-copy span,
.classroom-history-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.classroom-question-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.classroom-question-options span,
.classroom-status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(31, 42, 45, 0.06);
  color: var(--muted);
  font-size: 10px;
}

.classroom-stat-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 0.75fr) minmax(120px, 0.55fr);
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.classroom-stat-summary > div {
  min-width: 0;
}

.classroom-stat-summary span,
.classroom-stat-summary strong {
  display: block;
}

.classroom-stat-summary span {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 11px;
}



.classroom-status-tag.ready {
  color: var(--accent-deep);
  background: rgba(15, 118, 110, 0.1);
}

.classroom-status-tag.live {
  color: #a13a1e;
  background: rgba(180, 35, 24, 0.1);
}

.classroom-question-action {
  flex: 0 0 auto;
  min-width: 74px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 6px;
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.8);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.classroom-question-action.close {
  color: #a13a1e;
  border-color: rgba(180, 35, 24, 0.2);
}

.classroom-question-action:disabled {
  cursor: default;
  opacity: 0.5;
}

.classroom-participant-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
}

.classroom-participant-status.checked {
  color: var(--accent);
  font-weight: 700;
}

.classroom-participant-status.online {
  color: var(--accent);
}

.classroom-participant-status.offline {
  color: var(--muted);
}

.classroom-participant-online {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--muted);
  vertical-align: middle;
}

.classroom-participant-online.online {
  background: #2f9e67;
  box-shadow: 0 0 0 3px rgba(47, 158, 103, 0.12);
}

.classroom-participant-online.offline {
  opacity: 0.55;
}
.classroom-statistics-panel {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.classroom-stat-empty {
  padding: 28px 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.classroom-distribution {
  display: grid;
  gap: 10px;
}

.classroom-distribution-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(160px, 1fr) 42px;
  gap: 12px;
  align-items: center;
}

.classroom-distribution-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 12px;
}

.classroom-distribution-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(31, 42, 45, 0.08);
}

.classroom-distribution-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.classroom-distribution-row strong {
  font-size: 12px;
  text-align: right;
}

.classroom-submissions-panel {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.classroom-submission-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.classroom-submission-summary > div {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.55);
}

.classroom-submission-summary span,
.classroom-submission-summary strong {
  display: block;
}

.classroom-submission-summary span {
  color: var(--muted);
  font-size: 11px;
}

.classroom-submission-summary strong {
  margin-top: 4px;
  font-size: 18px;
}

.classroom-submission-list {
  display: grid;
  gap: 10px;
}

.classroom-submission-item {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.52);
}

.classroom-submission-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.classroom-submission-head strong,
.classroom-submission-head span,
.classroom-submission-copy strong,
.classroom-submission-copy p,
.classroom-submission-copy a,
.classroom-submission-copy > span {
  display: block;
}

.classroom-submission-head strong {
  font-size: 13px;
}

.classroom-submission-head span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.classroom-submission-copy {
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.classroom-submission-copy strong {
  font-size: 13px;
}

.classroom-submission-copy p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.classroom-submission-copy a {
  margin-top: 8px;
  color: var(--accent-deep);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.classroom-submission-file {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
}

.classroom-submission-review-grid {
  display: grid;
  grid-template-columns: minmax(130px, 0.35fr) minmax(150px, 0.65fr);
  gap: 10px;
  margin-top: 13px;
}

.classroom-submission-review-grid label,
.classroom-submission-review-comment {
  display: grid;
  gap: 6px;
}

.classroom-submission-review-grid span,
.classroom-submission-review-comment span {
  color: var(--muted);
  font-size: 11px;
}

.classroom-submission-review-grid input,
.classroom-submission-review-grid select,
.classroom-submission-review-comment textarea {
  width: 100%;
  min-width: 0;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 12px;
}

.classroom-submission-review-comment {
  margin-top: 10px;
}

.classroom-submission-review-comment textarea {
  resize: vertical;
}

.classroom-submission-item [data-submission-review] {
  margin-top: 10px;
}

.classroom-submission-review-readonly {
  display: grid;
  gap: 4px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.classroom-history-selectable {
  cursor: pointer;
}

.classroom-history-selectable:hover,
.classroom-history-selectable:focus-visible {
  border-color: rgba(15, 118, 110, 0.38);
  outline: none;
}
.classroom-history-section {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.classroom-history-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.classroom-history-item .classroom-status-tag {
  flex: 0 0 auto;
}

@media (max-width: 960px) {
  .classroom-header,
  .classroom-session-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .classroom-actions {
    justify-content: flex-start;
  }

  .classroom-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .classroom-metric:nth-child(2) {
    border-right: 0;
  }

  .classroom-grid {
    grid-template-columns: 1fr;
  }

  .classroom-participant-panel {
    padding-top: 20px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .classroom-history-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .classroom-setup {
    margin-top: 18px;
    padding: 15px;
  }

  .classroom-setup-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .classroom-setup-grid {
    grid-template-columns: 1fr;
  }

  .classroom-actions {
    width: 100%;
  }

  .classroom-actions button {
    flex: 1 1 calc(50% - 10px);
  }

  .classroom-code-block {
    width: 100%;
    flex-basis: auto;
  }

  .classroom-metrics {
    grid-template-columns: 1fr;
  }

  .classroom-metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .classroom-metric:last-child {
    border-bottom: 0;
  }

  .classroom-question-head,
  .classroom-stat-summary,
  .classroom-distribution-row {
    grid-template-columns: 1fr;
  }

  .classroom-question-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .classroom-question-action {
    width: 100%;
  }

  .classroom-distribution-row strong {
    text-align: left;
  }
}

:root {
  --bg: #f2efe8;
  --bg-soft: #faf8f2;
  --ink: #1f2a2d;
  --muted: #5f6c6e;
  --line: rgba(31, 42, 45, 0.12);
  --card: rgba(255, 250, 241, 0.86);
  --card-strong: #fffaf0;
  --accent: #0f766e;
  --accent-deep: #0a4f4a;
  --accent-warm: #d97706;
  --accent-cool: #1d4ed8;
  --shadow: 0 24px 50px rgba(23, 38, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "Segoe UI Variable Text", "Microsoft YaHei", "PingFang SC", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.16), transparent 28%),
    radial-gradient(circle at bottom right, rgba(217, 119, 6, 0.12), transparent 24%),
    linear-gradient(180deg, #f6f3ec 0%, #efe8dc 100%);
}

button,
input,
textarea,
select {
  font: inherit;
}

body.auth-pending {
  overflow-x: hidden;
  overflow-y: auto;
}

body.auth-pending .toast {
  display: none;
}



.login-screen {
  --sf-ink: #050a14;
  --sf-deep: #0a1424;
  --sf-gold: #ffd400;
  --sf-gold-soft: #ffe566;
  --sf-cyan: #3de7ff;
  --sf-cyan-soft: #7cf0ff;
  --sf-blue: #1a6fd4;
  --sf-text: #f4f8fc;
  --sf-muted: #a8b8cb;
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: visible;
  color: var(--sf-text);
  background: var(--sf-ink);
}

body.authenticated .login-screen,
body.auth-pending .app-shell {
  display: none;
}

body.authenticated .app-shell {
  display: grid;
}

.login-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050a14;
  pointer-events: none;
}

.login-stage-media,
.login-stage-media--photo {
  position: absolute;
  inset: -4%;
  display: block;
  width: 108%;
  height: 108%;
  object-fit: cover;
  object-position: 58% 48%;
  opacity: 1;
  filter: saturate(1.1) contrast(1.25) brightness(0.58) hue-rotate(-8deg);
  transform-origin: 62% 45%;
  transform: scale(1.02);
  animation: none;
}

.login-stage-lights,
.login-stage-windows,
.login-stage-window {
  display: none !important;
}

.login-stage-windows {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.login-stage-window {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 1px;
  background: #ffe9a0;
  box-shadow:
    0 0 14px 4px rgba(255, 220, 110, 1),
    0 0 28px 8px rgba(255, 180, 50, 0.7),
    0 0 40px 12px rgba(255, 160, 40, 0.35);
  animation: none;
  opacity: 0.92;
  pointer-events: none;
}

.login-stage-window:nth-child(1) { left: 55.5%; top: 33%; }
.login-stage-window:nth-child(2) { left: 57.8%; top: 33%; width: 5px; height: 8px; animation-delay: 0.35s; }
.login-stage-window:nth-child(3) { left: 60.2%; top: 33%; animation-delay: 0.7s; }
.login-stage-window:nth-child(4) { left: 62.6%; top: 33%; width: 5px; height: 8px; animation-delay: 1s; }
.login-stage-window:nth-child(5) { left: 65%; top: 33%; animation-delay: 0.2s; }
.login-stage-window:nth-child(6) { left: 67.4%; top: 33%; width: 5px; height: 8px; animation-delay: 1.3s; }
.login-stage-window:nth-child(7) { left: 69.8%; top: 33%; animation-delay: 0.55s; }
.login-stage-window:nth-child(8) { left: 55.5%; top: 38%; width: 5px; height: 8px; animation-delay: 0.9s; }
.login-stage-window:nth-child(9) { left: 58%; top: 38%; animation-delay: 0.15s; }
.login-stage-window:nth-child(10) { left: 60.5%; top: 38%; width: 5px; height: 8px; animation-delay: 1.15s; }
.login-stage-window:nth-child(11) { left: 63%; top: 38%; animation-delay: 0.45s; }
.login-stage-window:nth-child(12) { left: 65.5%; top: 38%; width: 5px; height: 8px; animation-delay: 0.8s; }
.login-stage-window:nth-child(13) { left: 68%; top: 38%; animation-delay: 1.4s; }
.login-stage-window:nth-child(14) { left: 70.5%; top: 38%; width: 5px; height: 8px; animation-delay: 0.25s; }
.login-stage-window:nth-child(15) { left: 56.5%; top: 43%; animation-delay: 0.65s; }
.login-stage-window:nth-child(16) { left: 59.5%; top: 43%; width: 5px; height: 8px; animation-delay: 1.05s; }
.login-stage-window:nth-child(17) { left: 63%; top: 43%; animation-delay: 0.4s; }
.login-stage-window:nth-child(18) { left: 66.5%; top: 43%; width: 5px; height: 8px; animation-delay: 1.2s; }
.login-stage-window:nth-child(19) { left: 70%; top: 43%; animation-delay: 0.75s; }
.login-stage-window:nth-child(20) { left: 76%; top: 36%; width: 8px; height: 11px; animation-delay: 0.5s; }
.login-stage-window:nth-child(21) { left: 79%; top: 40%; width: 7px; height: 10px; animation-delay: 1.1s; }
.login-stage-window:nth-child(22) { left: 18.5%; top: 36%; width: 4px; height: 6px; animation-delay: 0.3s; }
.login-stage-window:nth-child(23) { left: 20.5%; top: 36%; width: 4px; height: 6px; animation-delay: 0.95s; }
.login-stage-window:nth-child(24) { left: 19.5%; top: 42%; width: 4px; height: 6px; animation-delay: 0.6s; }

.login-stage-scrim {
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    /* crush pale sky on the left — title sits on night, not white */
    linear-gradient(105deg, rgba(2, 6, 14, 0.94) 0%, rgba(3, 10, 20, 0.82) 22%, rgba(4, 14, 28, 0.45) 42%, rgba(5, 16, 32, 0.12) 58%, rgba(4, 12, 24, 0.42) 100%),
    /* top sky crush */
    linear-gradient(180deg, rgba(1, 5, 12, 0.85) 0%, rgba(2, 8, 18, 0.45) 18%, transparent 38%, rgba(2, 6, 14, 0.4) 72%, rgba(1, 4, 10, 0.92) 100%),
    /* night blue cast */
    linear-gradient(160deg, rgba(8, 40, 70, 0.28), transparent 55%);
  pointer-events: none;
}

.login-stage-grid {
  position: absolute;
  inset: -10%;
  z-index: 4;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(61, 231, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 231, 255, 0.14) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(120deg, transparent 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.2) 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(120deg, transparent 0%, rgba(0,0,0,.35) 40%, rgba(0,0,0,.2) 70%, transparent 100%);
  animation: none;
}

.login-stage-scan {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 5;
  height: 22%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(61, 231, 255, 0.12), transparent);
  animation: login-bg-scan 7.5s ease-in-out infinite;
  opacity: 0.85;
}

.login-stage-particles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  overflow: hidden;
}

.login-stage-particles span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(180, 230, 255, 0.85);
  box-shadow: 0 0 12px rgba(61, 231, 255, 0.9);
  animation: login-particle-float 12s linear infinite;
}

.login-stage-particles span:nth-child(1) { left: 12%; bottom: -8%; animation-duration: 14s; animation-delay: 0s; }
.login-stage-particles span:nth-child(2) { left: 28%; bottom: -10%; width: 2px; height: 2px; animation-duration: 17s; animation-delay: 2s; }
.login-stage-particles span:nth-child(3) { left: 46%; bottom: -6%; animation-duration: 11s; animation-delay: 4s; }
.login-stage-particles span:nth-child(4) { left: 63%; bottom: -12%; width: 4px; height: 4px; animation-duration: 16s; animation-delay: 1s; }
.login-stage-particles span:nth-child(5) { left: 78%; bottom: -8%; animation-duration: 13s; animation-delay: 3s; }
.login-stage-particles span:nth-child(6) { left: 88%; bottom: -10%; width: 2px; height: 2px; animation-duration: 18s; animation-delay: 5s; }
.login-stage-particles span:nth-child(7) { left: 35%; bottom: -14%; width: 2px; height: 2px; animation-duration: 15s; animation-delay: 1.5s; }
.login-stage-particles span:nth-child(8) { left: 72%; bottom: -9%; animation-duration: 12s; animation-delay: 3.5s; }
.login-stage-particles span:nth-child(9) { left: 8%; bottom: -11%; width: 2px; height: 2px; animation-duration: 16s; animation-delay: 0.8s; }
.login-stage-particles span:nth-child(10) { left: 52%; bottom: -13%; animation-duration: 14s; animation-delay: 2.2s; }
.login-stage-particles span:nth-child(11) { left: 84%; bottom: -7%; width: 4px; height: 4px; animation-duration: 11s; animation-delay: 4.1s; }
.login-stage-particles span:nth-child(12) { left: 40%; bottom: -15%; width: 2px; height: 2px; animation-duration: 19s; animation-delay: 1.8s; }

.login-stage-orbit { display: none; }

.login-stage-frame {
  --login-pad-x: clamp(20px, 3.2vw, 56px);
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 28px;
  width: 100%;
  min-height: 100dvh;
  max-width: none;
  margin: 0;
  padding: 28px var(--login-pad-x) 0;
  box-sizing: border-box;
}

.login-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.login-brand-logo-wrap {
  position: relative;
  display: inline-block;
  flex: 0 1 auto;
  max-width: min(46vw, 420px);
  line-height: 0;
}

.login-brand-logo {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  border-radius: 4px;
}

.login-brand-logo--base {
  filter: grayscale(1) brightness(0.78) contrast(0.92);
}

.login-brand-logo--color {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  clip-path: inset(0 100% 0 0);
  animation: login-brand-color-wipe 7.5s ease-in-out infinite;
}

.login-brand-divider {
  width: 1px;
  height: 28px;
  flex: 0 0 auto;
  background: #8b9098;
  animation: login-brand-divider-gold 7.5s ease-in-out infinite;
}

.login-brand-org {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: transparent;
  background-image:
    linear-gradient(#ffd400, #ffd400),
    linear-gradient(#8b9098, #8b9098);
  background-repeat: no-repeat;
  background-size: 0% 100%, 100% 100%;
  background-position: left center, left center;
  -webkit-background-clip: text;
  background-clip: text;
  animation: login-brand-text-gold 7.5s ease-in-out infinite;
}

@keyframes login-brand-color-wipe {
  0%, 12% {
    clip-path: inset(0 100% 0 0);
  }
  48%, 68% {
    clip-path: inset(0 0 0 0);
  }
  88%, 100% {
    clip-path: inset(0 100% 0 0);
  }
}

@keyframes login-brand-text-gold {
  0%, 12% {
    background-size: 0% 100%, 100% 100%;
  }
  48%, 68% {
    background-size: 100% 100%, 100% 100%;
  }
  88%, 100% {
    background-size: 0% 100%, 100% 100%;
  }
}

@keyframes login-brand-divider-gold {
  0%, 12% {
    background: #8b9098;
  }
  48%, 68% {
    background: #ffd400;
  }
  88%, 100% {
    background: #8b9098;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-brand-logo--base {
    filter: none;
  }
  .login-brand-logo--color {
    animation: none;
    clip-path: none;
  }
  .login-brand-org {
    animation: none;
    color: #ffd400;
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
  }
  .login-brand-divider {
    animation: none;
    background: rgba(255, 212, 0, 0.55);
  }
}

.login-topbar-right {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.login-topbar-status {
  display: inline-flex;
  align-items: center;
  margin: 0;
  color: rgba(210, 224, 236, 0.88);
  font-size: 13px;
}

.login-topbar-slogan {
  margin: 0;
  color: rgba(244, 248, 252, 0.78);
  font-family: "Segoe Script", "Lucida Handwriting", "KaiTi", cursive;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #3dd68c;
  box-shadow: 0 0 0 3px rgba(61, 214, 140, 0.22);
  vertical-align: 1px;
}

.login-stage-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 420px);
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
  min-height: 0;
  overflow: visible;
}

.login-hero {
  display: grid;
  gap: 34px;
  align-content: center;
  min-width: 0;
  overflow: visible;
}

.login-hero-copy {
  overflow: visible;
}

.login-hero-copy h1 {
  margin: 0;
  min-height: 2.5em;
  color: #ffffff;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: 0.06em;
  text-shadow:
    0 2px 0 rgba(0, 0, 0, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.75),
    0 0 32px rgba(80, 180, 255, 0.22);
}

.login-hero-title-line {
  display: block;
}

.login-hero-title-line.is-offset {
  margin-left: clamp(1.6em, 6vw, 3.2em);
}

.login-hero-copy p {
  max-width: 28em;
  margin: 18px 0 0;
  min-height: 1.8em;
  color: rgba(220, 232, 244, 0.92);
  font-size: 1.08rem;
  line-height: 1.8;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.7);
}

.login-hero-tags {
  margin-top: 14px !important;
  color: rgba(170, 210, 235, 0.78) !important;
  font-size: 0.78rem !important;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.login-hero-copy .is-typing-pending {
  opacity: 0;
}

.login-hero-tags.is-typed-in {
  animation: login-tags-fade 0.7s ease forwards;
}

.typewriter-caret {
  display: inline-block;
  width: 0.08em;
  height: 0.88em;
  margin-left: 0.08em;
  vertical-align: -0.06em;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 12px rgba(120, 200, 255, 0.45);
  animation: typewriter-caret-blink 0.85s steps(1) infinite;
}

@keyframes typewriter-caret-blink {
  0%, 45% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes login-tags-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .typewriter-caret {
    display: none;
  }
  .login-hero-copy .is-typing-pending {
    opacity: 1;
  }
  .login-hero-tags.is-typed-in {
    animation: none;
  }
}

.login-hero-visual {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-self: end;
  width: min(100%, 720px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(61, 231, 255, 0.5);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 50% 70%, rgba(40, 140, 220, 0.18), transparent 55%),
    linear-gradient(165deg, rgba(6, 28, 52, 0.92), rgba(4, 16, 34, 0.94));
  box-shadow:
    0 0 0 1px rgba(61, 231, 255, 0.08),
    0 0 36px rgba(40, 180, 255, 0.16),
    0 22px 48px rgba(0, 0, 0, 0.38);
}

.login-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(61, 231, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 231, 255, 0.12) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}

.login-panel-head {
  position: relative;
  z-index: 1;
  padding: 18px 20px 8px;
}

.login-panel-head span {
  display: block;
  color: rgba(160, 230, 255, 0.82);
  font: 700 11px/1.3 Consolas, "SF Mono", monospace;
  letter-spacing: 0.14em;
}

.login-panel-head strong {
  display: block;
  margin-top: 8px;
  color: #f4fbff;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.35;
}

.login-panel-head small {
  display: block;
  margin-top: 8px;
  color: rgba(170, 210, 235, 0.72);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.login-panel-body {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 168px;
  padding: 18px 24px 10px;
}

.login-panel-wave {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 38%;
  width: 84%;
  height: 54px;
  pointer-events: none;
}

.login-panel-nodes {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: 100%;
  max-width: 560px;
}

.login-panel-node {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.login-panel-node i {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: #7cf0ff;
  border: 1.5px solid rgba(61, 231, 255, 0.7);
  background:
    radial-gradient(circle at 50% 40%, rgba(61, 231, 255, 0.22), transparent 65%),
    rgba(4, 22, 44, 0.9);
  box-shadow:
    0 0 0 6px rgba(61, 231, 255, 0.08),
    0 0 22px rgba(61, 231, 255, 0.35);
}

.login-panel-node i svg {
  width: 28px;
  height: 28px;
}

.login-panel-node span {
  color: rgba(210, 235, 250, 0.92);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
}

.login-hero-visual figcaption {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 16px 14px;
  border-top: 1px solid rgba(61, 231, 255, 0.18);
  color: rgba(160, 210, 235, 0.7);
  font-size: 11px;
  letter-spacing: 0.16em;
}

.login-hero-visual figcaption strong {
  display: none;
}

.login-form-panel {
  width: 100%;
  min-width: 0;
  padding: 34px 30px 28px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  color: #f4f8fc;
  background: rgba(8, 14, 26, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 28px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.login-form-wrap { width: 100%; margin: 0; }

.login-form-heading { margin-bottom: 26px; }

.login-form-heading h2 {
  margin: 0;
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.3;
}

.login-form-heading > p {
  margin: 10px 0 0;
  color: var(--sf-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.login-form { display: grid; gap: 18px; }

.role-fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

.role-fieldset legend.sr-only,
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.login-field > span:first-child {
  display: block;
  margin-bottom: 10px;
  color: #c5d2e0;
  font-size: 13px;
  font-weight: 700;
}

.role-selector {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.role-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  padding: 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #9aabbd;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: 160ms ease;
}

.role-option svg { width: 15px; height: 15px; flex: 0 0 auto; }

.role-option:hover { color: #fff; border-color: rgba(255, 255, 255, 0.35); }

.role-option.active {
  color: #0a1424;
  border-color: transparent;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
}

.login-field { display: block; }

.login-input-shell {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 52px;
  padding: 0 12px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.38);
  transition: 160ms ease;
}

.login-input-shell:focus-within {
  border-color: rgba(255, 255, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.login-input-shell.has-error {
  border-color: #e07068;
  box-shadow: 0 0 0 3px rgba(176, 55, 45, 0.18);
}

.login-input-shell > svg { width: 18px; height: 18px; color: #8fa0b3; }

.login-input-shell input {
  min-width: 0;
  height: 50px;
  padding: 0 10px;
  border: 0;
  outline: 0;
  color: #f4f8fc;
  background: transparent;
}

.password-toggle,
.logout-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.password-toggle { color: #8fa0b3; }
.password-toggle:hover,
.password-toggle:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.password-toggle svg { width: 18px; height: 18px; }
.password-toggle .eye-off-icon,
.password-toggle.showing-password .eye-icon { display: none; }
.password-toggle.showing-password .eye-off-icon { display: block; }

.login-form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 28px;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a8b8cb;
  cursor: pointer;
  font-size: 13px;
}
.remember-option input { width: 16px; height: 16px; margin: 0; accent-color: #ffffff; }

.forgot-password {
  padding: 3px 0;
  border: 0;
  color: #ffffff;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.forgot-password:hover { color: rgba(255, 255, 255, 0.82); }

.login-message {
  min-height: 20px;
  margin: -2px 0 0;
  color: #ffb4ab;
  font-size: 13px;
  line-height: 1.5;
}
.login-message.info { color: #a8b8cb; }

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  color: #0a1424;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: 160ms ease;
}
.login-submit:hover {
  background: #f2f6fa;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
  transform: translateY(-1px);
}
.login-submit:active { transform: translateY(1px) scale(0.99); }
.login-submit:focus-visible,
.role-option:focus-visible,
.forgot-password:focus-visible,
.logout-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}
.login-submit:disabled { cursor: wait; opacity: 0.78; transform: none; }
.login-submit > svg { display: none; }

.login-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(10, 20, 36, 0.2);
  border-top-color: #0a1424;
  border-radius: 50%;
  animation: login-spin 700ms linear infinite;
}
.login-submit.is-loading .login-submit-label { opacity: 0.55; }
.login-submit.is-loading .login-spinner { display: block; margin-left: 10px; }

.login-screen .student-access-link {
  display: inline-flex;
  width: 100%;
  margin-top: 18px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.login-screen .student-access-link:hover {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: underline;
}

.login-security-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #8fa0b3;
  font-size: 12px;
}
.login-security-note svg { flex: 0 0 auto; width: 17px; height: 17px; color: #3dd68c; }

.login-page-footer {
  --footer-line: rgba(255, 255, 255, 0.12);
  display: block;
  width: calc(100% + 2 * var(--login-pad-x));
  margin: 22px 0 0 calc(-1 * var(--login-pad-x));
  padding: 0;
}

.login-footer-surface {
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(12, 22, 40, 0.55) 0%, rgba(4, 10, 20, 0.82) 100%);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.login-footer-features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px 32px;
  padding: 22px var(--login-pad-x) 20px;
}

.login-footer-features article {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
}

.login-footer-features article::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border: 1.5px solid rgba(125, 210, 235, 0.85);
  border-radius: 1px;
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(61, 231, 255, 0.28);
}

.login-footer-features strong {
  display: block;
  color: #f7fafc;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: 0.06em;
}

.login-footer-features span {
  display: block;
  color: rgba(186, 202, 218, 0.76);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.login-footer-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 12px 28px;
  align-items: center;
  padding: 14px var(--login-pad-x) 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(0, 28, 84, 0.28) 0%, rgba(2, 8, 18, 0.55) 100%);
}

.login-footer-address {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-width: 0;
  color: rgba(240, 246, 252, 0.92);
  font-size: 13px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}

.login-footer-pin {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: rgba(220, 230, 242, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.login-footer-pin svg {
  width: 14px;
  height: 14px;
}

.login-footer-address > span:last-child {
  min-width: 0;
}

.login-footer-legal {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px 18px;
  flex-wrap: wrap;
  min-width: 0;
}

.login-footer-copyright,
.login-footer-beian {
  margin: 0;
  color: rgba(198, 212, 228, 0.82);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.01em;
}

.login-footer-beian {
  position: relative;
  padding-left: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.login-footer-beian::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  transform: translateY(-50%);
}

.login-footer-beian:hover {
  color: rgba(232, 240, 248, 0.95);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (prefers-reduced-transparency: reduce) {
  .login-footer-surface {
    background: #0a1424;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-footer-features article {
    transition: none;
  }
}

/* Grok Ball — above「登录工作台」 heading */
.login-form-with-ball {
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: visible;
}

.login-form-heading {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 26px;
}

.login-ball-widget {
  position: relative;
  align-self: center;
  margin: 0 0 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  pointer-events: none;
}

.login-ball-tips {
  position: absolute;
  left: calc(100% + 12px);
  right: auto;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%) translateX(-6px) scale(0.98);
  width: max-content;
  min-width: 148px;
  max-width: 200px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px 16px 16px 16px;
  color: #122033;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.32);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 650;
  text-align: left;
  writing-mode: horizontal-tb;
  white-space: normal;
  word-break: break-word;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.28s ease;
  pointer-events: none;
  z-index: 6;
}

.login-ball-tips.is-on {
  opacity: 1;
  transform: translateY(-50%) translateX(0) scale(1);
}

.login-ball-mount {
  width: 96px;
  height: 96px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
  transition: transform 0.18s ease, filter 0.18s ease;
  pointer-events: auto;
}

.login-ball-mount:hover {
  transform: translateY(-3px);
  filter: drop-shadow(0 16px 26px rgba(0, 0, 0, 0.45));
}

.login-ball-mount:active {
  transform: scale(0.96);
}

.login-ball-mount svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

body.authenticated .login-ball-widget {
  display: none;
}

@media (max-width: 720px) {
  .login-ball-mount {
    width: 80px;
    height: 80px;
  }
  .login-ball-tips {
    left: 50%;
    top: auto;
    bottom: calc(100% + 8px);
    transform: translateX(-50%) translateY(6px) scale(0.98);
    max-width: 150px;
    min-width: 0;
    border-radius: 16px 16px 16px 4px;
    font-size: 12px;
  }
  .login-ball-tips.is-on {
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@media (prefers-reduced-transparency: reduce) {
  .login-form-panel,
  .login-hero-visual {
    background: #0c1524;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (max-width: 1100px) {
  .login-stage-frame { --login-pad-x: 28px; padding: 24px var(--login-pad-x) 0; gap: 24px; }
  .login-stage-body {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .login-hero-copy h1 { font-size: clamp(2.3rem, 7vw, 3.2rem); }
  .login-hero-visual { width: 100%; }
  .login-form-panel { width: min(100%, 460px); }
  .login-topbar-slogan { display: none; }
}

@media (max-width: 720px) {
  body.auth-pending { overflow-x: hidden; overflow-y: auto; }
  .login-screen { overflow-x: hidden; overflow-y: visible; }
  .login-stage-frame { --login-pad-x: 16px; padding: 18px var(--login-pad-x) 0; gap: 20px; min-height: 100dvh; }
  .login-brand-logo-wrap { max-width: min(55vw, 280px); }
  .login-brand-logo { height: 42px; }
  .login-brand-org { font-size: 13px; letter-spacing: 0.08em; }
  .login-topbar-status { font-size: 12px; }
  .login-cmd-meta { display: none; }
  .login-cmd-bar { grid-template-columns: 1fr; }
  .login-form-panel { width: 100%; padding: 26px 18px 20px; }
  .login-page-footer { margin-top: 14px; }
  .login-footer-features {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px var(--login-pad-x) 16px;
  }
  .login-footer-features strong {
    font-size: 14px;
  }
  .login-footer-meta {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 14px var(--login-pad-x) 16px;
  }
  .login-footer-address {
    align-items: flex-start;
    font-size: 12px;
  }
  .login-footer-pin { margin-top: 1px; }
  .login-footer-legal {
    justify-content: flex-start;
    gap: 6px 12px;
  }
  .login-footer-beian {
    padding-left: 0;
    white-space: normal;
  }
  .login-footer-beian::before { display: none; }
  .login-footer-copyright,
  .login-footer-beian {
    font-size: 11px;
    width: 100%;
  }
  .role-option { font-size: 12px; gap: 4px; }
  .role-option svg { display: none; }
}

@media (max-width: 1100px) and (min-width: 721px) {
  .login-footer-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 28px;
    padding: 18px var(--login-pad-x) 16px;
  }
  .login-footer-meta {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .login-footer-legal {
    justify-content: flex-start;
  }
  .login-footer-beian {
    white-space: normal;
  }
}


@keyframes login-kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to { transform: scale(1.16) translate3d(-3.5%, 2.2%, 0); }
}
@keyframes login-grid-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-52px, -52px, 0); }
}
@keyframes login-bg-scan {
  0%, 100% { top: 8%; opacity: 0; }
  15% { opacity: 0.7; }
  50% { top: 70%; opacity: 0.55; }
  85% { opacity: 0; }
}
@keyframes login-particle-float {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translate3d(20px, -110vh, 0); opacity: 0; }
}
@keyframes login-window-flicker {
  0%, 100% { opacity: 0.72; }
  40% { opacity: 1; }
  62% { opacity: 0.8; }
  78% { opacity: 0.95; }
}
@keyframes login-cmd-scanline {
  0%, 100% { top: 18%; opacity: 0; }
  12% { opacity: 1; }
  50% { top: 78%; opacity: 0.85; }
  88% { opacity: 0; }
}
@keyframes login-twin-breathe {
  0%, 100% { transform: scale(1) translate3d(0, 0, 0); filter: brightness(1); }
  50% { transform: scale(1.045) translate3d(0, -6px, 0); filter: brightness(1.14); }
}
@media (prefers-reduced-motion: reduce) {
  .login-stage-media--photo,
  .login-stage-grid,
  .login-stage-scan,
  .login-stage-lights,
  .login-stage-window,
  .login-stage-particles span,
  .login-cmd-stage img,
  .login-cmd-scan,
  .login-cmd-glow,
  .login-cmd-windows i {
    animation: none !important;
  }
}

.sidebar-user {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 36px;
  gap: 10px;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-avatar {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  color: #ffffff;
  background: #0f766e;
  font-size: 14px;
  font-weight: 800;
}

.sidebar-user-meta {
  min-width: 0;
}

.sidebar-user-meta strong,
.sidebar-user-meta small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-meta strong {
  margin-bottom: 4px;
  color: #f5efe3;
  font-size: 13px;
}

.sidebar-user-meta small {
  color: rgba(245, 239, 227, 0.58);
  font-size: 11px;
}

.logout-button {
  color: rgba(245, 239, 227, 0.68);
}

.logout-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.logout-button svg {
  width: 18px;
  height: 18px;
}

@keyframes login-spin {
  to {
    transform: rotate(360deg);
  }
}



.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 28px 22px;
  background: rgba(28, 40, 44, 0.94);
  color: #f5efe3;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand h1 {
  margin: 0 0 4px;
  font-size: 22px;
}

.brand p {
  margin: 0;
  color: rgba(245, 239, 227, 0.72);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--accent-warm), var(--accent));
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nav-item {
  padding: 14px 16px;
  border: 0;
  border-radius: 14px;
  color: inherit;
  background: rgba(255, 255, 255, 0.05);
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.52), rgba(217, 119, 6, 0.48));
  transform: translateX(4px);
}

.sidebar-note {
  margin-top: auto;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 239, 227, 0.8);
}

.sidebar-note strong {
  display: block;
  margin-bottom: 8px;
}

.main-content {
  padding: 28px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: stretch;
  margin-bottom: 26px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

.hero h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.1;
}

.hero-copy {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.hero-metrics {
  display: grid;
  gap: 14px;
}

.metric-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 250, 241, 0.9), rgba(255, 244, 227, 0.82));
  box-shadow: var(--shadow);
  border: 1px solid rgba(15, 118, 110, 0.08);
}

.metric-card span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.metric-card strong {
  font-size: 34px;
}

.section-panel {
  display: none;
  animation: rise 280ms ease;
}

.section-panel.active {
  display: block;
}

.panel-grid {
  display: grid;
  gap: 20px;
}

.two-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

.teacher-layout {
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.15fr);
}

.teacher-left-column {
  display: grid;
  gap: 20px;
}

.card {
  padding: 22px;
  border-radius: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.highlight-card {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(217, 119, 6, 0.12)),
    var(--card-strong);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.header-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.card-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0;
  font-size: 24px;
}

.muted {
  color: var(--muted);
  line-height: 1.7;
}

.status-pill,
.tag,
.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent-deep);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.stat-block {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.stat-block span {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.stat-block strong {
  font-size: 26px;
}

.progress-list {
  display: grid;
  gap: 16px;
}

.progress-row {
  display: grid;
  gap: 10px;
}

.progress-row span {
  font-weight: 600;
}

.progress-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(31, 42, 45, 0.08);
  overflow: hidden;
}

.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-warm));
}

.timeline,
.project-list,
.feedback-panel,
.recommendation-list,
.provider-list,
.audit-log {
  display: grid;
  gap: 14px;
}

.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.timeline li,
.project-item,
.feedback-item,
.recommendation-item,
.provider-card,
.audit-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.timeline strong,
.project-item strong,
.feedback-item strong,
.recommendation-item strong,
.provider-card strong {
  display: block;
  margin-bottom: 8px;
}

.timeline span,
.project-item p,
.feedback-item p,
.recommendation-item p,
.audit-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.stack-form {
  display: grid;
  gap: 16px;
}

.stack-form label {
  display: grid;
  gap: 8px;
}

.stack-form label span {
  font-weight: 700;
}

.stack-form input,
.stack-form select,
.stack-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(31, 42, 45, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.stack-form textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.stack-form input[type="file"] {
  padding: 12px;
  background: rgba(255, 255, 255, 0.68);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.subsection-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 22px 0 12px;
}

.subsection-header span {
  color: var(--muted);
  font-size: 13px;
}

.course-library {
  display: grid;
  gap: 12px;
}

.course-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.course-item:hover,
.course-item.active {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.1);
}

.course-item strong,
.course-item span,
.course-item small {
  display: block;
}

.course-item span,
.course-item small {
  color: var(--muted);
  margin-top: 6px;
}

.upload-info {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 118, 110, 0.08);
  border: 1px dashed rgba(15, 118, 110, 0.24);
}

.digest-card {
  position: relative;
  scroll-margin-top: 24px;
}

.digest-card.is-flash {
  animation: digestPulse 1.2s ease;
}

.digest-status.success {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.digest-status.warning {
  background: rgba(217, 119, 6, 0.14);
  color: #9a6700;
}

.digest-status.error {
  background: rgba(180, 35, 24, 0.12);
  color: #b42318;
}

.digest-preview {
  display: grid;
  gap: 12px;
}

.digest-empty,
.digest-hero,
.digest-panel {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
}

.digest-empty strong,
.digest-hero strong,
.digest-panel h4 {
  display: block;
  margin: 0 0 8px;
}

.digest-empty p,
.digest-overview,
.digest-panel ul {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.digest-hero {
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(29, 78, 216, 0.06)), rgba(255, 255, 255, 0.82);
}

.digest-hero-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.digest-hero-header span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.digest-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.digest-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(15, 118, 110, 0.16);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.digest-meta-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.digest-meta-note.warning {
  background: rgba(255, 248, 235, 0.88);
  border-color: rgba(178, 107, 0, 0.18);
}

.digest-meta-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.digest-meta-note p + p {
  margin-top: 6px;
}

.digest-visual {
  margin: 0 0 14px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.digest-visual.warning {
  background: rgba(255, 248, 235, 0.9);
  border-color: rgba(178, 107, 0, 0.2);
}

.digest-visual-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.digest-visual-header strong,
.digest-visual-header span {
  display: block;
}

.digest-visual-header span {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.6;
}

.digest-visual-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.digest-visual-summary {
  margin: 14px 0 0;
  color: var(--ink);
  line-height: 1.8;
}

.visual-findings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.visual-finding-card,
.visual-finding-empty {
  border-radius: 18px;
  background: rgba(247, 250, 252, 0.86);
  border: 1px solid rgba(31, 42, 45, 0.08);
  overflow: hidden;
}

.visual-thumb-wrap {
  aspect-ratio: 16 / 9;
  background: rgba(226, 232, 240, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-thumb-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.visual-thumb,
.visual-thumb-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 14px;
}

.visual-finding-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.visual-finding-body strong,
.visual-finding-body span,
.visual-finding-body small {
  display: block;
}

.visual-finding-body span,
.visual-finding-body small,
.visual-finding-body p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.digest-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.digest-panel h4 {
  font-size: 16px;
}

.digest-panel ul {
  padding-left: 18px;
}

.digest-raw {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px dashed rgba(15, 118, 110, 0.2);
}

.digest-raw summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-deep);
}

.digest-raw pre {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 14px;
  background: rgba(246, 248, 250, 0.9);
  border: 1px solid rgba(31, 42, 45, 0.08);
  color: var(--muted);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
}

@keyframes digestPulse {
  0% {
    box-shadow: var(--shadow);
    transform: translateY(0);
  }

  35% {
    box-shadow: 0 0 0 6px rgba(15, 118, 110, 0.08), 0 24px 50px rgba(23, 38, 43, 0.14);
    transform: translateY(-2px);
  }

  100% {
    box-shadow: var(--shadow);
    transform: translateY(0);
  }
}

.analysis-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.analysis-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.analysis-card strong,
.analysis-card span,
.analysis-card small {
  display: block;
}

.analysis-card span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.analysis-card small {
  margin-top: 10px;
  color: var(--accent);
  font-weight: 700;
}

.resource-section {
  margin-top: 22px;
}

.case-options {
  display: grid;
  gap: 12px;
}

.case-option {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.case-option.active,
.case-option:hover {
  transform: translateY(-2px);
  border-color: rgba(29, 78, 216, 0.28);
  box-shadow: 0 14px 24px rgba(29, 78, 216, 0.1);
}

.case-option strong,
.case-option span,
.case-option small {
  display: block;
}

.case-option span,
.case-option small {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.theory-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theory-chip {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(31, 42, 45, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.theory-chip.active,
.theory-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.26);
  background: rgba(15, 118, 110, 0.12);
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
}

.history-item strong,
.history-item span,
.history-item small {
  display: block;
}

.history-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.history-item span,
.history-item small {
  color: var(--muted);
  line-height: 1.6;
}

.history-subtitle {
  font-size: 13px;
}

.history-modules {
  font-weight: 600;
  color: var(--ink);
}

.history-summary {
  font-size: 14px;
}

.records-layout {
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.15fr);
}

.records-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.records-tab {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 42, 45, 0.12);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.records-tab.active,
.records-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.12);
}

.records-toolbar {
  margin-bottom: 16px;
}

.records-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.records-filters label {
  display: grid;
  gap: 8px;
}

.records-filters label span {
  font-weight: 700;
}

.records-filters input,
.records-filters select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 45, 0.12);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.records-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.records-list,
.records-detail,
.record-blocks {
  display: grid;
  gap: 12px;
}

.record-item,
.record-detail-section,
.records-empty,
.record-block {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.record-item {
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.record-item:hover,
.record-item.active {
  transform: translateY(-2px);
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.08);
}

.record-item strong,
.record-block strong {
  display: block;
  margin-bottom: 8px;
}

.record-item p,
.records-empty p,
.record-detail-section p,
.record-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.record-modules {
  font-weight: 600;
  color: var(--ink);
}

.record-summary {
  font-size: 14px;
}

.record-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-tag.success {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.mini-tag.warning {
  background: rgba(217, 119, 6, 0.14);
  color: #9a6700;
}

.records-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.records-page-info {
  color: var(--muted);
  font-size: 14px;
}

.records-page-actions {
  display: flex;
  gap: 10px;
}

.records-empty strong {
  display: block;
  margin-bottom: 8px;
}

.detail-empty {
  min-height: 220px;
  align-content: center;
}

.record-detail-sheet {
  display: grid;
  gap: 12px;
}

.record-detail-hero {
  padding: 18px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.1), rgba(29, 78, 216, 0.06)), rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 118, 110, 0.16);
}

.record-detail-hero h3 {
  margin: 0;
  font-size: 24px;
}

.record-detail-section h4 {
  margin: 0 0 10px;
  font-size: 17px;
}

.record-detail-section ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-btn,
.ghost-btn,
.switch-btn {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-cool));
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.24);
}

.ghost-btn,
.switch-btn {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(31, 42, 45, 0.12);
}

.test-btn {
  border: 0;
  cursor: pointer;
  border-radius: 16px;
  padding: 12px 18px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease;
  color: var(--accent-cool);
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.18);
}

.primary-btn:hover,
.ghost-btn:hover,
.switch-btn:hover,
.test-btn:hover {
  transform: translateY(-2px);
}

.switch-btn[disabled],
.test-btn[disabled] {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
}

.generated-output {
  display: grid;
  gap: 14px;
}

.result-status-panel {
  margin-bottom: 14px;
}

.result-status-card {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
}

.result-status-card.success {
  background: rgba(236, 253, 245, 0.94);
  border-color: rgba(15, 118, 110, 0.22);
}

.result-status-card.warning {
  background: rgba(255, 248, 235, 0.94);
  border-color: rgba(178, 107, 0, 0.2);
}

.result-status-title strong,
.result-status-title span {
  display: block;
}

.result-status-title span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

.result-status-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-status-actions {
  display: flex;
  justify-content: flex-start;
}

.output-block {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
}

.output-block h4 {
  margin: 0 0 10px;
  font-size: 18px;
}

.output-block ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.output-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-summary {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 22px;
}

.profile-badge {
  min-width: 110px;
  justify-content: center;
  padding: 14px 16px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.14), rgba(217, 119, 6, 0.16));
}

.profile-text p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.recommendation-item {
  border-left: 4px solid var(--accent);
}

.project-meta,
.provider-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.mini-tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(29, 78, 216, 0.08);
  color: var(--accent-cool);
  font-size: 12px;
  font-weight: 700;
}

.provider-card.active {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 14px 24px rgba(15, 118, 110, 0.12);
}

.provider-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.provider-test-result {
  margin-top: 12px;
  min-height: 40px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.provider-test-result.success {
  color: #0f766e;
}

.provider-test-result.warning {
  color: #b26b00;
}

.provider-test-result.error {
  color: #b42318;
}

.audit-item small,
.feedback-item small,
.project-item small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  min-width: 220px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(28, 40, 44, 0.94);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 18px;
  }

  .hero,
  .two-columns,
  .teacher-layout,
  .records-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .main-content {
    padding: 18px;
  }

  .card {
    padding: 18px;
    border-radius: 22px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .profile-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .mini-grid {
    grid-template-columns: 1fr;
  }

  .records-filters {
    grid-template-columns: 1fr;
  }

  .records-pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .analysis-cards {
    grid-template-columns: 1fr;
  }

  .digest-grid {
    grid-template-columns: 1fr;
  }

  .digest-hero-header {
    flex-direction: column;
  }

  .digest-badges {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .classroom-submission-summary,
  .classroom-submission-review-grid {
    grid-template-columns: 1fr;
  }
}

.evidence-dashboard-card { margin-bottom: 24px; }
.evidence-summary { margin: 20px 0; }
.evidence-dimensions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.evidence-student-list { display: grid; gap: 12px; }
.evidence-student-item { border: 1px solid var(--line, #e6eaf0); border-radius: 8px; padding: 16px; background: var(--surface-subtle, #fafbfc); }
.evidence-student-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.evidence-student-head div { display: grid; gap: 4px; }
.evidence-student-head span { color: var(--muted, #667085); font-size: 13px; }
.evidence-score { color: var(--accent, #0f766e); white-space: nowrap; }
.evidence-metrics { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0; color: var(--muted, #667085); font-size: 13px; }
.evidence-student-item ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.evidence-student-item li { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line, #e6eaf0); padding-top: 7px; font-size: 13px; }
.evidence-student-item li em { color: var(--muted, #667085); font-style: normal; text-align: right; }
@media (max-width: 720px) {
  .evidence-student-item li { display: grid; gap: 4px; }
  .evidence-student-item li em { text-align: left; }
}


.attainment-workspace {
  margin: 22px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line, #e6eaf0);
  border-bottom: 1px solid var(--line, #e6eaf0);
}
.attainment-toolbar,
.attainment-policy-actions,
.attainment-section-heading,
.attainment-trend-row,
.attainment-warning-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.attainment-toolbar h4 {
  margin: 4px 0 0;
  color: var(--ink, #172033);
  font-size: 18px;
  line-height: 1.35;
}
.attainment-filters {
  display: flex;
  align-items: end;
  gap: 10px;
}
.attainment-filters label,
.attainment-policy-grid > label {
  display: grid;
  gap: 6px;
  color: var(--muted, #667085);
  font-size: 12px;
}
.attainment-filters select {
  min-width: 170px;
  height: 40px;
}
.attainment-policy-form {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line, #e6eaf0);
  border-radius: 8px;
  background: #f8fafb;
}
.attainment-policy-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(108px, 1fr));
  gap: 12px;
}
.attainment-policy-grid label > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 24px;
  align-items: center;
  gap: 4px;
}
.attainment-policy-grid input {
  width: 100%;
  min-width: 0;
  height: 38px;
}
.attainment-policy-grid em {
  color: var(--muted, #667085);
  font-style: normal;
  text-align: center;
}
.attainment-policy-actions {
  margin-top: 14px;
}
.attainment-policy-actions .primary-btn {
  min-width: 148px;
}
.attainment-overview {
  display: grid;
  grid-template-columns: minmax(180px, 1.35fr) repeat(5, minmax(104px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.attainment-overview-main,
.attainment-overview-metric {
  min-height: 96px;
  padding: 14px;
  border: 1px solid var(--line, #e6eaf0);
  border-radius: 8px;
  background: #fff;
}
.attainment-overview-main {
  display: grid;
  align-content: center;
  gap: 5px;
  border-left: 4px solid #087f5b;
}
.attainment-overview-main.is-warning {
  border-left-color: #c2413b;
}
.attainment-overview-main.is-warning > strong {
  color: #b42318;
}
.attainment-overview-main > strong {
  color: #087f5b;
  font-size: 28px;
  line-height: 1;
}
.attainment-overview-main > span,
.attainment-overview-main > small,
.attainment-overview-metric > span {
  color: var(--muted, #667085);
  font-size: 12px;
}
.attainment-overview-metric {
  display: grid;
  align-content: center;
  gap: 7px;
}
.attainment-overview-metric > strong {
  color: var(--ink, #172033);
  font-size: 20px;
}
.attainment-analysis-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  margin-top: 22px;
}
.attainment-analysis-panel {
  min-width: 0;
}
.attainment-section-heading {
  min-height: 42px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line, #e6eaf0);
}
.attainment-section-heading > div {
  display: grid;
  gap: 3px;
}
.attainment-section-heading span {
  color: var(--muted, #667085);
  font-size: 12px;
}
.attainment-section-heading strong {
  color: var(--ink, #172033);
  font-size: 15px;
}
.attainment-trend-list,
.attainment-warning-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}
.attainment-trend-row {
  min-height: 54px;
}
.attainment-trend-row > div:first-child {
  display: grid;
  flex: 0 0 90px;
  gap: 3px;
}
.attainment-trend-row span,
.attainment-warning-item span,
.attainment-warning-item small {
  color: var(--muted, #667085);
  font-size: 12px;
}
.attainment-trend-bar {
  position: relative;
  flex: 1;
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf1f4;
}
.attainment-trend-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #087f5b;
}
.attainment-trend-row > strong {
  flex: 0 0 46px;
  color: var(--ink, #172033);
  text-align: right;
}
.attainment-warning-item {
  display: grid;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e6eaf0);
}
.attainment-warning-head > div {
  display: grid;
  gap: 3px;
}
.attainment-warning-head > strong {
  white-space: nowrap;
}
.attainment-warning-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.attainment-warning-action {
  color: var(--ink, #172033);
  font-size: 13px;
  line-height: 1.5;
}
.attainment-risk-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
.attainment-risk-badge.high {
  color: #b42318;
  background: #fef3f2;
}
.attainment-risk-badge.medium {
  color: #925b00;
  background: #fff8e6;
}
.warning-case-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
}
.warning-case-status.open {
  color: #925b00;
  background: #fff8e6;
}
.warning-case-status.in_progress {
  color: #175cd3;
  background: #eff8ff;
}
.warning-case-status.resolved {
  color: #067647;
  background: #ecfdf3;
}
.warning-case-form {
  display: grid;
  gap: 12px;
  margin-top: 4px;
  padding: 14px;
  border: 1px solid var(--line, #e6eaf0);
  border-radius: 8px;
  background: #f8fafb;
}
.warning-case-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.warning-case-fields label,
.warning-case-textarea {
  display: grid;
  gap: 5px;
}
.warning-case-fields label > span,
.warning-case-textarea > span {
  color: var(--muted, #667085);
  font-size: 12px;
}
.warning-case-fields input,
.warning-case-fields select,
.warning-case-textarea textarea {
  width: 100%;
}
.warning-case-textarea textarea {
  min-height: 62px;
  resize: vertical;
}
.warning-case-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.warning-case-actions > span,
.warning-case-empty {
  color: var(--muted, #667085);
  font-size: 12px;
}
.warning-case-events {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line, #e6eaf0);
  list-style: none;
}
.warning-case-events li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted, #667085);
  font-size: 12px;
}
.warning-case-events em {
  font-style: normal;
  white-space: nowrap;
}
.warning-case-empty {
  padding: 8px 0 0;
}
.attainment-empty {
  padding: 20px 0;
  color: var(--muted, #667085);
  font-size: 13px;
}
@media (max-width: 1180px) {
  .attainment-policy-grid { grid-template-columns: repeat(4, minmax(120px, 1fr)); }
  .attainment-overview { grid-template-columns: repeat(3, minmax(120px, 1fr)); }
  .attainment-overview-main { grid-column: span 3; }
}
@media (max-width: 780px) {
  .attainment-toolbar,
  .attainment-policy-actions { align-items: stretch; flex-direction: column; }
  .attainment-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .attainment-filters select { width: 100%; min-width: 0; }
  .attainment-policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .attainment-analysis-grid { grid-template-columns: 1fr; }
  .warning-case-fields { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .attainment-filters,
  .attainment-policy-grid,
  .attainment-overview { grid-template-columns: 1fr; }
  .attainment-overview-main { grid-column: auto; }
}

.mentor-workspace-card { margin-bottom: 24px; }
.mentor-queue-list { display: grid; gap: 14px; }
.mentor-queue-item { border: 1px solid var(--line, #e6eaf0); border-radius: 8px; padding: 16px; background: var(--surface-subtle, #fafbfc); }
.submission-meta-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; align-items: center; font-size: 13px; }
.rubric-score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 12px 0; }
.rubric-score-grid label { display: grid; gap: 5px; }
.rubric-score-grid label > span { font-size: 12px; color: var(--muted, #667085); }
.rubric-score-grid em { font-style: normal; color: var(--accent, #0f766e); }
.rubric-score-grid input { width: 100%; }
@media (max-width: 720px) { .rubric-score-grid { grid-template-columns: 1fr; } }


.storage-policy-card { margin-bottom: 24px; }
.storage-policy-note { margin-top: 12px; color: var(--muted, #667085); font-size: 13px; }
.evidence-attainment-list { display: grid; gap: 10px; margin: 18px 0; }
.evidence-attainment-heading { display: flex; justify-content: space-between; gap: 12px; color: var(--muted, #667085); font-size: 13px; }
.evidence-attainment-heading strong { color: var(--ink, #172033); font-size: 15px; }
.evidence-attainment-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--line, #e6eaf0); border-radius: 8px; padding: 12px 14px; background: var(--surface-subtle, #fafbfc); }
.evidence-attainment-item div { display: grid; gap: 4px; }
.evidence-attainment-item span { color: var(--muted, #667085); font-size: 13px; }
.evidence-attainment-item > strong { color: var(--accent, #0f766e); white-space: nowrap; }

.academic-admin-card { margin-bottom: 24px; }
.academic-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.academic-admin-panel,
.academic-course-class-panel { min-width: 0; }
.academic-course-class-panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line, #e6eaf0); }
.academic-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.academic-section-heading > div { display: grid; gap: 4px; }
.academic-section-heading span { color: var(--muted, #667085); font-size: 12px; }
.academic-section-heading strong { color: var(--ink, #172033); font-size: 16px; }
.academic-form { display: grid; gap: 12px; margin-bottom: 16px; padding: 14px; border: 1px solid var(--line, #e6eaf0); border-radius: 8px; background: #f8fafb; }
.academic-form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.academic-form label { display: grid; gap: 5px; }
.academic-form label > span { color: var(--muted, #667085); font-size: 12px; }
.academic-form textarea { width: 100%; resize: vertical; }
.academic-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.academic-form-actions .muted { margin-right: auto; font-size: 12px; }
.academic-roster-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.academic-roster-toolbar select { flex: 1; min-width: 0; }
.academic-record-list { display: grid; gap: 8px; max-height: 430px; overflow: auto; }
.academic-record-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line, #e6eaf0); border-radius: 8px; background: #fff; }
.academic-record-main { display: grid; gap: 4px; min-width: 0; }
.academic-record-main strong { overflow: hidden; color: var(--ink, #172033); text-overflow: ellipsis; white-space: nowrap; }
.academic-record-main span,
.academic-record-meta { color: var(--muted, #667085); font-size: 12px; }
.academic-record-meta { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.academic-record-actions { display: flex; gap: 6px; }
.academic-empty { padding: 20px 0; color: var(--muted, #667085); font-size: 13px; }
.academic-summary { margin: 0; }
@media (max-width: 980px) {
  .academic-admin-grid { grid-template-columns: 1fr; }
  .academic-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .academic-form-grid { grid-template-columns: 1fr; }
  .academic-record-item { grid-template-columns: 1fr; align-items: start; }
  .academic-record-meta { justify-content: flex-start; }
  .academic-form-actions { align-items: stretch; flex-wrap: wrap; }
}
.task-workspace-card { margin-bottom: 24px; }
.task-admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 22px; }
.task-form-panel, .task-list-panel, .task-detail-panel { min-width: 0; }
.task-list-panel > .academic-section-heading select { min-width: 120px; }
.task-record-list, .task-student-list { display: grid; gap: 8px; max-height: 520px; overflow: auto; }
.task-record-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line, #e6eaf0); border-radius: 8px; background: #fff; }
.task-record-main, .task-student-head > div { display: grid; gap: 4px; min-width: 0; }
.task-record-main strong, .task-student-head strong { color: var(--ink, #172033); }
.task-record-main span, .task-record-meta, .task-student-head span, .task-submission-copy > span { color: var(--muted, #667085); font-size: 12px; }
.task-record-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.task-status-published { color: var(--accent, #0f766e); }
.task-status-archived { color: var(--muted, #667085); }
.task-detail-panel { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line, #e6eaf0); }
.task-student-item { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line, #e6eaf0); border-radius: 8px; background: #fff; }
.task-student-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-student-head > strong { color: var(--accent, #0f766e); white-space: nowrap; }
.task-submission-copy { display: grid; gap: 5px; padding: 10px 12px; background: #f8fafb; border-radius: 6px; }
.task-submission-copy p { margin: 0; color: var(--ink, #172033); font-size: 13px; white-space: pre-wrap; }
.task-review-fields { display: grid; grid-template-columns: 120px 150px minmax(0, 1fr) auto; align-items: end; gap: 8px; }
.task-review-fields label { display: grid; gap: 4px; }
.task-review-fields label > span { color: var(--muted, #667085); font-size: 12px; }
.task-feedback-field textarea { min-height: 38px; resize: vertical; }
.task-checkbox { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.task-checkbox input { width: auto !important; }
.task-student-note { color: var(--muted, #667085); font-size: 13px; }
@media (max-width: 980px) { .task-admin-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .task-record-item { grid-template-columns: 1fr; align-items: start; } .task-record-meta { justify-content: flex-start; } .task-review-fields { grid-template-columns: 1fr 1fr; } .task-feedback-field { grid-column: 1 / -1; } }
.gradebook-workspace-card { margin-bottom: 24px; }
.gradebook-toolbar { display: flex; align-items: end; gap: 12px; margin: 20px 0 14px; }
.gradebook-toolbar label { display: grid; gap: 5px; min-width: 220px; }
.gradebook-toolbar label > span { color: var(--muted, #667085); font-size: 12px; }
.gradebook-toolbar .muted { margin-left: auto; padding-bottom: 10px; }
.gradebook-policy-form { display: grid; gap: 12px; padding: 14px; border: 1px solid var(--line, #e6eaf0); border-radius: 8px; background: #f8fafb; }
.gradebook-policy-grid { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); gap: 10px; }
.gradebook-policy-grid label { display: grid; gap: 5px; }
.gradebook-policy-grid label > span { color: var(--muted, #667085); font-size: 12px; }
.gradebook-policy-grid label > div { display: flex; align-items: center; gap: 5px; }
.gradebook-policy-grid input { width: 100%; min-width: 0; }
.gradebook-policy-grid em { color: var(--muted, #667085); font-size: 12px; font-style: normal; }
.gradebook-summary { margin: 16px 0; }
.gradebook-table-wrap { max-width: 100%; overflow: auto; border: 1px solid var(--line, #e6eaf0); border-radius: 8px; }
.gradebook-table { width: 100%; min-width: 1050px; border-collapse: collapse; background: #fff; }
.gradebook-table th, .gradebook-table td { padding: 11px 12px; border-bottom: 1px solid var(--line, #edf0f4); text-align: center; font-size: 13px; }
.gradebook-table th { position: sticky; top: 0; z-index: 1; color: var(--muted, #667085); background: #f8fafb; font-size: 12px; font-weight: 600; }
.gradebook-table td:first-child { text-align: left; }
.gradebook-table td:first-child, .gradebook-table td:nth-child(8) { min-width: 120px; }
.gradebook-table td > span, .gradebook-table td > strong + span { display: block; margin-top: 3px; color: var(--muted, #667085); font-size: 11px; }
.gradebook-final-score { color: var(--accent, #0f766e); font-size: 16px; }
.gradebook-status { display: inline-flex !important; margin: 0 !important; padding: 4px 7px; border-radius: 4px; font-size: 11px !important; }
.gradebook-status-draft { color: #854d0e !important; background: #fffbeb; }
.gradebook-status-confirmed { color: #1d4ed8 !important; background: #eff6ff; }
.gradebook-status-archived { color: #166534 !important; background: #f0fdf4; }
.gradebook-row-actions { display: flex; justify-content: center; gap: 5px; }
.gradebook-row-actions .ghost-btn { padding: 6px 8px; font-size: 12px; }
.gradebook-empty { padding: 28px !important; color: var(--muted, #667085); text-align: center !important; }
.gradebook-event-panel { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line, #e6eaf0); }
.gradebook-event-list { display: grid; gap: 8px; }
.gradebook-event-list article { display: grid; gap: 5px; padding: 11px 12px; border: 1px solid var(--line, #e6eaf0); border-radius: 8px; background: #fff; }
.gradebook-event-list article > div { display: flex; justify-content: space-between; gap: 12px; }
.gradebook-event-list span, .gradebook-event-list p { color: var(--muted, #667085); font-size: 12px; }
.gradebook-event-list p { margin: 0; }
@media (max-width: 1050px) { .gradebook-policy-grid { grid-template-columns: repeat(4, minmax(100px, 1fr)); } }
@media (max-width: 700px) { .gradebook-toolbar { align-items: stretch; flex-direction: column; } .gradebook-toolbar label { min-width: 0; } .gradebook-toolbar .muted { margin-left: 0; padding: 0; } .gradebook-policy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.classroom-join-card{display:flex;gap:26px;align-items:center;margin:18px 0 22px;padding:24px 28px;border:1px solid rgba(8,127,140,.2);border-radius:20px;background:linear-gradient(135deg,#f3fbfb 0%,#ffffff 72%);box-shadow:0 14px 32px rgba(22,50,79,.08)}
.classroom-qr-wrap{width:190px;display:flex;flex-direction:column;align-items:center;gap:10px;color:#075e67;font-size:13px;font-weight:700;flex:none}.classroom-qr-wrap img{width:168px;height:168px;background:#fff;border-radius:12px;padding:8px;box-shadow:0 4px 18px rgba(22,50,79,.12)}
.classroom-join-copy{min-width:0;display:flex;flex-direction:column;gap:8px}.classroom-join-kicker{font-size:11px;letter-spacing:.18em;color:#087f8c;font-weight:800}.classroom-join-copy strong{font-size:22px;color:#16324f}.classroom-join-copy p{margin:0;color:#5b6770;font-size:13px}.classroom-join-url{max-width:560px;padding:10px 12px;border-radius:10px;background:#edf5f6;color:#39535e;font:12px/1.4 Consolas,monospace;overflow-wrap:anywhere}.classroom-join-actions{display:flex;gap:10px;flex-wrap:wrap}
@media(max-width:720px){.classroom-join-card{align-items:flex-start;padding:18px;gap:16px}.classroom-qr-wrap{width:132px}.classroom-qr-wrap img{width:118px;height:118px}.classroom-join-copy strong{font-size:18px}.classroom-join-url{font-size:10px}}

.evidence-pagination { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:18px; padding:14px 16px; border:1px solid var(--line,#e6eaf0); border-radius:8px; background:#fff; }
.evidence-pagination[hidden] { display:none !important; }
.evidence-pagination-summary { color:var(--muted,#667085); font-size:13px; }
.evidence-pagination-controls,.evidence-page-size,.evidence-page-buttons { display:flex; align-items:center; gap:8px; }
.evidence-page-size { color:var(--muted,#667085); font-size:13px; }
.evidence-page-size select { width:78px; height:36px; padding:0 8px; border:1px solid var(--line-strong,#cbd5db); background:#fff; }
.evidence-page-buttons button { min-width:36px; height:36px; padding:0 10px; border:1px solid var(--line-strong,#cbd5db); border-radius:6px; color:var(--ink,#172033); background:#fff; font:inherit; font-size:13px; cursor:pointer; }
.evidence-page-buttons button:hover:not(:disabled) { border-color:var(--accent,#0f766e); color:var(--accent,#0f766e); background:#f1faf8; }
.evidence-page-buttons button.is-active { border-color:var(--accent,#0f766e); color:#fff; background:var(--accent,#0f766e); font-weight:700; }
.evidence-page-buttons button:disabled { color:#98a2b3; background:#f5f7f8; cursor:not-allowed; }
@media (max-width:720px) { .evidence-pagination { align-items:stretch; flex-direction:column; } .evidence-pagination-controls { align-items:flex-start; flex-direction:column; } .evidence-page-buttons { width:100%; overflow-x:auto; } .evidence-page-buttons button { min-width:44px; height:44px; } }
