:root {
  --bg: #f5f1e8;
  --panel: #ffffff;
  --text: #223128;
  --muted: #66756c;
  --line: #d9ddd4;
  --brand: #28594c;
  --brand-soft: #e2ece7;
  --accent: #efe6d6;
  --accent-soft: #faf6ee;
  --danger: #b23a48;
  --warning: #b9770e;
  --shadow: 0 18px 40px rgba(34, 49, 40, 0.08);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.72), transparent 32%),
    radial-gradient(circle at top right, rgba(225, 236, 231, 0.9), transparent 28%),
    linear-gradient(180deg, #f7f3ec 0%, #f3f6f2 100%);
  color: var(--text);
  line-height: 1.6;
}
body.lightbox-open {
  overflow: hidden;
}
  .static-step-list li {
    margin-bottom: 10px;
    color: var(--text);
    line-height: 1.7;
  }

a { color: var(--brand); text-decoration: none; }
button {
  border: 0;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  box-shadow: 0 10px 18px rgba(40, 89, 76, 0.16);
}
button:hover { transform: translateY(-1px); background: #214c40; }
input, textarea, select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 8px;
  font: inherit;
  background: rgba(255,255,255,0.92);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: rgba(40, 89, 76, 0.45);
  box-shadow: 0 0 0 4px rgba(40, 89, 76, 0.08);
}
input[type="checkbox"] {
  width: auto;
  margin-top: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}
th, td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
th {
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--muted);
  background: rgba(244, 246, 242, 0.92);
}

.topbar {
  padding: 22px 32px;
  background: linear-gradient(135deg, #1f3d35 0%, #294d43 58%, #355f53 100%);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  width: min(1380px, 100%);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0;
}
.topbar-kicker {
  margin: 0 0 4px;
  color: rgba(235, 245, 241, 0.72);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.topbar h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.02em; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.topbar-mini-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(232, 241, 237, 0.82);
}
.topbar-subtitle { margin: 0; color: rgba(230, 240, 236, 0.86); }
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.topbar-actions a {
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.topbar-actions a:hover { background: rgba(255,255,255,0.14); }

.page-shell {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 28px 32px 56px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.accent { background: linear-gradient(145deg, #fbfaf6 0%, #eef4ef 100%); }
.highlight { background: linear-gradient(180deg, #fffaf1 0%, #fff 100%); }
.dark-panel { background: rgba(8, 22, 16, 0.9); color: #fff; border-color: rgba(255,255,255,0.12); }

.hero-grid, .detail-grid, .stats-grid { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: 1.2fr 1fr; }
.detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.detail-grid .wide { grid-column: 1 / -1; }
.stats-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); margin-bottom: 20px; }

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 20px;
  margin-bottom: 22px;
}
.training-identity-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 18px;
  margin-bottom: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,0.94) 0%, rgba(239, 245, 241, 0.96) 100%);
}
.training-identity-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(40, 89, 76, 0.72);
  margin-right: 4px;
}
.training-identity-item {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(40, 89, 76, 0.08);
  color: var(--text);
  font-weight: 700;
}
.hero-main-card,
.hero-stat-card {
  position: relative;
  overflow: hidden;
}
.hero-main-card::after,
.hero-stat-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -40px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.45), transparent 72%);
  pointer-events: none;
}
.hero-topline,
.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.hero-hours-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.hero-hours-block .badge.large {
  margin-bottom: 0;
}
.hero-summary {
  margin: 0;
  color: var(--muted);
  max-width: 840px;
}
.training-journey-note {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(40, 89, 76, 0.08);
  color: #476257;
  line-height: 1.7;
}
.training-hero {
  align-items: start;
}
.hero-meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.hero-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.hero-stat-card {
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  display: grid;
  gap: 8px;
  box-shadow: var(--shadow);
}
.hero-stat-card span,
.hero-stat-card small {
  color: var(--muted);
}
.score-caption {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.hero-stat-card strong {
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hero-stat-card.action-card {
  align-content: space-between;
}
.section-header-panel {
  margin-bottom: 20px;
}
.section-title-row {
  align-items: center;
}

.training-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.training-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.training-card.completed { border-color: rgba(67, 132, 97, 0.35); background: linear-gradient(180deg, #f7fcf8 0%, #fff 100%); }
.training-card.compact { min-height: 160px; }
.certificate-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #e4f2e9;
  color: #205b3d;
  font-weight: 700;
  width: fit-content;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: #eef2ef;
  color: var(--muted);
}
.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status-dot.ok { color: #2f7a55; background: #e5f3ea; }
.status-dot.active { color: #8a5a10; background: #f8edd7; }
.status-dot.pending { color: #76837a; background: #eef1ef; }

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 7px 12px;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  font-weight: 700;
}
.badge.large { margin-bottom: 12px; }
.hero-textbook-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(40, 89, 76, 0.16);
  background: rgba(255,255,255,0.9);
  color: var(--brand);
  font-weight: 700;
  box-shadow: 0 10px 20px rgba(34, 49, 40, 0.06);
}
.hero-textbook-link:hover {
  background: #fff;
  border-color: rgba(40, 89, 76, 0.28);
}
.info-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.info-tooltip-trigger {
  width: 22px;
  height: 22px;
  min-width: 22px;
  padding: 0;
  border-radius: 999px;
  background: rgba(40, 89, 76, 0.1);
  color: var(--brand);
  box-shadow: none;
  font-size: 13px;
  line-height: 1;
}
.info-tooltip-trigger:hover {
  transform: none;
  background: rgba(40, 89, 76, 0.16);
}
.info-tooltip-trigger:focus {
  outline: 2px solid rgba(40, 89, 76, 0.28);
  outline-offset: 2px;
}
.info-tooltip-content {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  transform: translateX(-50%) translateY(8px);
  width: 280px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #223128;
  color: #f4f7f3;
  line-height: 1.65;
  box-shadow: 0 18px 36px rgba(34, 49, 40, 0.24);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  z-index: 20;
}
.info-tooltip-content::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  border-width: 8px 7px 0;
  border-style: solid;
  border-color: #223128 transparent transparent;
}
.info-tooltip:hover .info-tooltip-content,
.info-tooltip:focus-within .info-tooltip-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.feature-list, .knowledge-list, .chip-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; }
.hero-knowledge-list {
  margin-top: 2px;
}
.metric-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.stage-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}
.stage-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 700;
}
.stage-nav a:hover {
  background: #fff;
  border-color: rgba(40, 89, 76, 0.2);
}
.learning-stage {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}
.stage-shell {
  padding: 20px 24px;
}
.stage-summary-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  list-style: none;
}
.stage-summary-bar::-webkit-details-marker {
  display: none;
}
.stage-summary-side {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 12px;
  flex-shrink: 0;
}
.stage-summary-arrow {
  width: 12px;
  height: 12px;
  margin-top: 10px;
  border-right: 2px solid #28594c;
  border-bottom: 2px solid #28594c;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}
.stage-shell[open] .stage-summary-bar {
  margin-bottom: 18px;
}
.stage-shell[open] .stage-summary-arrow {
  transform: rotate(225deg);
}
.stage-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.stage-title-block {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.stage-title-copy {
  min-width: 0;
}
.stage-title-copy h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.stage-title-copy .muted {
  margin: 8px 0 0;
  max-width: 760px;
}
.stage-icon-badge {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  border: 1px solid rgba(40, 89, 76, 0.14);
  box-shadow: 0 14px 28px rgba(34, 49, 40, 0.08), inset 0 1px 0 rgba(255,255,255,0.72);
}
.stage-icon-badge svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stage-preclass .stage-icon-badge {
  color: #1f6a56;
  background: linear-gradient(145deg, #eef8f1 0%, #dceee3 100%);
}
.stage-inclass .stage-icon-badge {
  color: #9a5b00;
  background: linear-gradient(145deg, #fff5dd 0%, #f4e1b1 100%);
}
.stage-postclass .stage-icon-badge {
  color: #7b3342;
  background: linear-gradient(145deg, #fff0f2 0%, #f1d5dc 100%);
}
.stage-logs .stage-icon-badge {
  color: #325c8b;
  background: linear-gradient(145deg, #eef5ff 0%, #d7e5fb 100%);
}
.section-kicker {
  margin: 0 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(40, 89, 76, 0.08);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand);
}
.stage-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.preclass-chip-row {
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
}
.preclass-chip-row .chip {
  white-space: nowrap;
}
.stage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.stage-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  min-width: 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 12px 30px rgba(34, 49, 40, 0.05);
}
.stage-card-wide {
  grid-column: 1 / -1;
}
.stage-card.highlight {
  background: linear-gradient(180deg, rgba(250, 246, 238, 0.96), rgba(255,255,255,0.94));
}
.stage-card h4 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.03em;
}
.card-helper {
  margin: -4px 0 0;
  color: #5e7168;
  line-height: 1.75;
}
.upload-grid,
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}
.upload-grid label,
.upload-preview-card,
.form-grid {
  min-width: 0;
}
.upload-grid label {
  display: grid;
  gap: 8px;
}
.upload-grid input[type="file"] {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.upload-hint {
  margin: -2px 0 2px;
}
.upload-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(40, 89, 76, 0.12);
  background: rgba(247, 249, 247, 0.96);
  overflow: hidden;
}
.upload-preview-card strong,
.upload-preview-card p,
.upload-preview-card a {
  min-width: 0;
}
.upload-preview-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: clamp(180px, 26vw, 320px);
  object-fit: contain;
  object-position: center;
  border-radius: 16px;
  border: 1px solid rgba(40, 89, 76, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240, 244, 242, 0.96));
}
.upload-preview-card .ghost-button {
  width: fit-content;
  max-width: 100%;
}
.upload-remove-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(178, 58, 72, 0.08);
  color: #8d2535;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.upload-remove-toggle span {
  line-height: 1.2;
}
.image-lightbox[hidden] {
  display: none;
}
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
}
.image-lightbox-backdrop {
  position: absolute;
  inset: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: rgba(13, 24, 20, 0.78);
  box-shadow: none;
}
.image-lightbox-backdrop:hover {
  transform: none;
  background: rgba(13, 24, 20, 0.78);
}
.image-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: min(88vh, 920px);
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(248, 250, 248, 0.98);
  box-shadow: 0 28px 60px rgba(0,0,0,0.28);
}
.image-lightbox-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.image-lightbox-toolbar strong {
  font-size: 18px;
  color: var(--text);
}
.image-lightbox-close {
  padding: 10px 14px;
  border-radius: 12px;
}
.image-lightbox-body {
  min-height: 0;
  overflow: auto;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(244, 247, 245, 0.98), rgba(234, 239, 236, 0.96));
}
.image-lightbox-image {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: calc(88vh - 120px);
  margin: 0 auto;
  object-fit: contain;
}
.question-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.question-grid-large {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.question-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}
.question-card strong {
  font-size: 18px;
  line-height: 1.55;
}
.question-form-card {
  align-content: start;
}
.question-choice-list {
  display: grid;
  gap: 10px;
}
.question-choice-option {
  display: block;
  cursor: pointer;
}
.question-choice-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.question-choice-body {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(40, 89, 76, 0.14);
  background: rgba(247, 249, 247, 0.96);
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.question-choice-option:hover .question-choice-body {
  border-color: rgba(40, 89, 76, 0.28);
  background: #fff;
  transform: translateY(-1px);
}
.question-choice-input:checked + .question-choice-body {
  border-color: rgba(40, 89, 76, 0.45);
  background: rgba(226, 236, 231, 0.92);
  box-shadow: 0 10px 18px rgba(40, 89, 76, 0.10);
}
.question-choice-input:focus-visible + .question-choice-body {
  box-shadow: 0 0 0 4px rgba(40, 89, 76, 0.10);
}
.question-choice-badge {
  min-width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(40, 89, 76, 0.10);
  color: var(--brand);
  font-size: 13px;
  font-weight: 800;
}
.question-choice-text {
  line-height: 1.65;
  color: var(--text);
}
.question-answer-readonly {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(40, 89, 76, 0.14);
  background: rgba(243, 247, 244, 0.95);
  color: var(--text);
  line-height: 1.65;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.question-card-correct {
  border-color: rgba(31, 106, 86, 0.32);
  background: linear-gradient(180deg, rgba(239, 248, 242, 0.96), rgba(255,255,255,0.98));
  box-shadow: 0 12px 24px rgba(31, 106, 86, 0.08);
}
.question-card-wrong {
  border-color: rgba(178, 58, 72, 0.32);
  background: linear-gradient(180deg, rgba(255, 244, 245, 0.98), rgba(255,255,255,0.98));
  box-shadow: 0 12px 24px rgba(178, 58, 72, 0.08);
}
.question-result-note {
  display: grid;
  gap: 4px;
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.55;
}
.question-result-note span,
.question-correct-answer {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.question-result-note strong {
  font-size: 14px;
}
.question-result-correct {
  background: rgba(225, 241, 232, 0.9);
  color: #1f6a56;
}
.question-result-wrong {
  background: rgba(251, 229, 232, 0.92);
  color: #8d2535;
}
.question-correct-answer {
  font-weight: 800;
  color: #7b1e2e;
}
.readonly-card {
  align-content: start;
  min-height: 92px;
}
.readonly-card strong {
  font-size: 24px;
  color: var(--brand);
}
.analysis-note {
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(244, 248, 244, 0.95);
  color: var(--text);
  line-height: 1.7;
}
.preclass-locked-note {
  margin-bottom: 2px;
}
.punchin-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.diagnostic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.learning-stats-grid {
  margin-top: 16px;
  margin-bottom: 0;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.learning-detail-grid {
  margin-top: 16px;
}
.suggestion-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.suggestion-list li {
  color: var(--text);
}
.feature-list li, .knowledge-list span, .chip {
  list-style: none;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f0f4f1;
  color: var(--text);
}
.commendation-board {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding-right: 0;
}
.commendation-shell {
  margin-bottom: 20px;
}
.landing-hero {
  grid-template-columns: minmax(0, 2.3fr) minmax(320px, 0.9fr);
  align-items: stretch;
}
.landing-register {
  display: flex;
  flex-direction: column;
}
.logged-in-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.student-welcome {
  font-size: 20px;
  margin-bottom: 12px;
}
.btn-enter {
  display: block;
  text-align: center;
  padding: 12px;
  background: #2e7d32;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.btn-enter:hover { background: #1b5e20; }
.btn-logout {
  display: block;
  text-align: center;
  padding: 10px;
  background: #fff;
  color: #c62828;
  border: 1px solid #c62828;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
}
.btn-logout:hover { background: #ffebee; }
.commendation-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
}
.commendation-toolbar h2 {
  margin: 0 0 8px;
}
.commendation-toolbar p {
  margin: 0;
  color: var(--muted);
}
.commendation-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}
.commendation-filter .filter-label {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.commendation-filter select {
  min-width: 200px;
  margin-top: 0;
}
.commendation-filter button {
  white-space: nowrap;
  padding: 10px 14px;
}
.compact-board {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.commendation-card {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(76, 130, 98, 0.18);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(231, 246, 238, 0.92) 54%, rgba(214, 235, 222, 0.9) 100%);
  padding: 18px;
  box-shadow: 0 18px 34px rgba(16, 58, 37, 0.12);
}
.commendation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 72% 16%, rgba(82, 190, 255, 0.18) 0%, rgba(82, 190, 255, 0) 56%);
  pointer-events: none;
  overflow: hidden;
}
.commendation-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}
.compact-card {
  padding: 10px;
  border-radius: 18px;
  min-height: 218px;
}
.compact-title-row {
  align-items: flex-start;
  gap: 8px;
}
.compact-title-row h3 {
  font-size: 17px;
}
.compact-title-row p {
  margin: 0;
  font-size: 11px;
}
.commendation-podium {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 18px;
}
.compact-podium {
  gap: 8px;
  margin-top: 10px;
}
.commendation-row {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px;
  padding: 8px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 10px 18px rgba(18, 58, 40, 0.08);
}
.commendation-row.rank-1 {
  background: linear-gradient(180deg, rgba(255, 248, 219, 0.98) 0%, rgba(255, 227, 134, 0.88) 100%);
  box-shadow: 0 14px 28px rgba(176, 129, 8, 0.18);
}
.commendation-row.rank-2 {
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(216, 223, 232, 0.92) 100%);
  box-shadow: 0 12px 24px rgba(105, 118, 135, 0.16);
}
.commendation-row.rank-3 {
  background: linear-gradient(180deg, rgba(255, 241, 229, 0.98) 0%, rgba(216, 157, 101, 0.88) 100%);
  box-shadow: 0 12px 24px rgba(143, 85, 29, 0.16);
}
.medal-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 14px;
  font-weight: 800;
  color: #103420;
  border: 2px solid rgba(255,255,255,0.72);
  box-shadow: 0 6px 14px rgba(0,0,0,0.1);
}
.medal-1 {
  background: radial-gradient(circle at 30% 30%, #fff7cb 0%, #ffd54a 52%, #d39a00 100%);
}
.medal-2 {
  background: radial-gradient(circle at 30% 30%, #ffffff 0%, #dbe2ea 52%, #97a3b0 100%);
}
.medal-3 {
  background: radial-gradient(circle at 30% 30%, #ffe6cf 0%, #d99863 55%, #99551d 100%);
}
.winner-name {
  font-size: 13px;
  min-width: 0;
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
}
.group-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 700;
  color: rgba(23, 49, 31, 0.78);
  white-space: nowrap;
  flex-shrink: 0;
}
.commendation-row p {
  margin: 0;
  font-size: 12px;
}
.chip.ok { background: #ddf3e5; color: #13643a; }
.chip.active { background: #e7f0fb; color: #1f5f98; }
.chip.pending { background: #f8ebcf; color: #8f5d00; }
.success-button {
  border-color: #2e8b57;
  color: #13643a;
  background: #effaf2;
}

.form-grid { display: grid; gap: 14px; }
.inline-form {
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
}
.filter-bar {
  margin-bottom: 20px;
}
.filter-bar .muted {
  margin: 12px 0 0;
}
.stats-strip, .title-row, .card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.progress-card {
  min-width: 240px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(40, 89, 76, 0.22);
  color: var(--brand);
  background: rgba(255,255,255,0.85);
  font-weight: 700;
}
.ghost-button:hover {
  background: #fff;
  border-color: rgba(40, 89, 76, 0.35);
}

.step-list { padding-left: 18px; }
.step-list li { margin-bottom: 14px; }
.placeholder-video {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 18px;
  color: var(--muted);
  margin-bottom: 14px;
}

.flash-stack {
  width: min(1380px, 100%);
  margin: 0 auto;
  padding: 16px 32px 0;
  display: grid;
  gap: 10px;
}
.flash {
  padding: 14px 18px;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.flash.success { background: #2f855a; }
.flash.warning { background: #b7791f; }
.flash.info { background: #3b82f6; }
.flash.danger { background: #c53030; }

.muted { color: var(--muted); }

.metric-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow);
}
.metric-card strong { font-size: 30px; letter-spacing: -0.03em; }
.metric-card.dark { background: rgba(255,255,255,0.08); color: #fff; border-color: rgba(255,255,255,0.1); }

.doc-manager-shell {
  margin-bottom: 22px;
}
.dashboard-fold-shell {
  margin-bottom: 22px;
}
.dashboard-fold-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  padding: 2px 0;
}
.dashboard-fold-summary::-webkit-details-marker {
  display: none;
}
.dashboard-fold-main {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.dashboard-fold-copy {
  min-width: 0;
}
.dashboard-fold-copy h2 {
  margin: 0 0 6px;
}
.dashboard-fold-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex-shrink: 0;
}
.dashboard-fold-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.dashboard-fold-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #28594c;
  border-bottom: 2px solid #28594c;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}
.dashboard-fold-shell[open] .dashboard-fold-summary {
  margin-bottom: 18px;
}
.dashboard-fold-shell[open] .dashboard-fold-arrow {
  transform: rotate(225deg);
}
.dashboard-fold-body {
  margin-top: 18px;
}
.doc-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  cursor: pointer;
  list-style: none;
  padding: 2px 0;
}
.doc-summary-bar::-webkit-details-marker {
  display: none;
}
.doc-summary-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
}
.doc-summary-icon {
  display: grid;
  grid-template-columns: repeat(2, 10px);
  gap: 6px;
  padding: 12px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f1f7f2 0%, #dcebe1 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  flex-shrink: 0;
}
.doc-summary-icon span {
  width: 10px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, #28594c 0%, #15392f 100%);
  box-shadow: 0 6px 12px rgba(21, 57, 47, 0.16);
}
.doc-summary-copy {
  min-width: 0;
}
.doc-summary-bar h2 {
  margin: 0 0 6px;
}
.doc-summary-side {
  display: grid;
  justify-items: end;
  gap: 10px;
  flex-shrink: 0;
}
.doc-summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.doc-summary-arrow {
  width: 12px;
  height: 12px;
  border-right: 2px solid #28594c;
  border-bottom: 2px solid #28594c;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}
.doc-collapse-hint {
  background: rgba(22, 101, 52, 0.08);
  color: #166534;
}
.doc-manager-shell[open] .doc-summary-bar {
  margin-bottom: 18px;
}
.doc-manager-shell[open] .doc-summary-arrow {
  transform: rotate(225deg);
}
.doc-manager-grid {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 20px;
  margin-top: 18px;
}
.doc-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}
.doc-nav-item {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(250, 248, 243, 0.92);
  border: 1px solid var(--line);
  color: var(--text);
}
.doc-nav-item.active {
  background: linear-gradient(180deg, #f9fbf8 0%, #eef4ef 100%);
  border-color: rgba(40, 89, 76, 0.25);
  box-shadow: var(--shadow);
}
.doc-nav-type {
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--brand);
  font-weight: 800;
}
.doc-nav-item small {
  color: var(--muted);
}
.doc-editor-panel {
  display: grid;
  gap: 16px;
}
.doc-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.doc-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
}
.doc-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}
.doc-toolbar-actions form {
  margin: 0;
}
.doc-workbench-grid {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.doc-workbench-grid.outline-collapsed {
  grid-template-columns: minmax(0, 1fr);
}
.doc-outline-shell {
  position: sticky;
  top: 20px;
  align-self: start;
}
.doc-outline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(250, 248, 243, 0.96) 0%, rgba(243, 247, 244, 0.96) 100%);
  box-shadow: var(--shadow);
  cursor: pointer;
  list-style: none;
}
.doc-outline-summary::-webkit-details-marker {
  display: none;
}
.doc-outline-summary h4 {
  margin: 0 0 4px;
}
.doc-outline-summary-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.doc-outline-arrow {
  width: 10px;
  height: 10px;
  border-right: 2px solid #28594c;
  border-bottom: 2px solid #28594c;
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}
.doc-outline-shell[open] .doc-outline-arrow {
  transform: rotate(225deg);
}
.doc-outline-panel {
  position: sticky;
  top: 20px;
  margin-top: 12px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.92);
  box-shadow: var(--shadow);
}
.doc-outline-list {
  display: grid;
  gap: 8px;
}
.doc-outline-item {
  width: 100%;
  justify-content: flex-start;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.72);
  color: var(--text);
  box-shadow: none;
}
.doc-outline-item.level-2 {
  padding-left: 22px;
}
.doc-outline-item.level-3,
.doc-outline-item.level-4 {
  padding-left: 30px;
}
.doc-editor-stage {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.doc-format-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(250, 248, 243, 0.92);
}
.doc-format-toolbar .ghost-button {
  min-height: 40px;
}
.doc-paper {
  width: min(100%, 1080px);
  max-width: 1080px;
  margin: 0 auto;
  padding: 72px 68px;
  min-height: 1180px;
  background: #fff;
  border: 1px solid #dcd6ca;
  border-radius: 12px;
  box-shadow: 0 28px 56px rgba(34, 49, 40, 0.12);
  font-family: "SimSun", "Songti SC", "Noto Serif SC", serif;
  font-size: 15px;
  line-height: 1.8;
  color: #222;
  overflow: hidden;
}
.doc-paper *,
.doc-paper *::before,
.doc-paper *::after {
  box-sizing: border-box;
}
.doc-paper > * {
  max-width: 100%;
}
.doc-paper[contenteditable="true"]:focus {
  outline: 3px solid rgba(40, 89, 76, 0.16);
  outline-offset: 6px;
}
.doc-paper h1,
.doc-paper h2,
.doc-paper h3,
.doc-paper h4 {
  margin: 0.8em 0 0.45em;
  color: #111;
}
.doc-paper h1 {
  text-align: center;
  font-size: 28px;
}
.doc-paper h2 {
  font-size: 22px;
}
.doc-paper h3 {
  font-size: 18px;
}
.doc-paper p {
  margin: 0.45em 0;
  text-indent: 2em;
}
.doc-paper p:has(strong:only-child),
.doc-paper h1 + p,
.doc-paper h2 + p,
.doc-paper h3 + p {
  text-indent: 0;
}
.doc-paper ul,
.doc-paper ol {
  margin: 0.5em 0 0.8em 1.4em;
}
.doc-paper table,
.doc-paper .doc-table {
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: collapse;
  margin: 1em 0;
  table-layout: fixed;
}
.doc-paper col,
.doc-paper colgroup {
  width: auto !important;
  max-width: 100% !important;
}
.doc-paper table th,
.doc-paper table td,
.doc-paper .doc-table th,
.doc-paper .doc-table td {
  border: 1px solid #666;
  padding: 8px 10px;
  background: #fff;
  color: #222;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.doc-paper table th,
.doc-paper .doc-table th {
  text-align: center;
  font-weight: 700;
}
.doc-paper img {
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  display: block;
  margin: 10px auto;
}
.doc-paper svg,
.doc-paper canvas,
.doc-paper iframe {
  max-width: 100% !important;
}
.doc-paper .underline {
  text-decoration: underline;
}
.doc-import-note {
  margin-top: 24px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f9f2e2;
  color: #84561a;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-size: 13px;
  line-height: 1.6;
}

.print-doc-body {
  background: #f2f2f2;
}
.print-doc-shell {
  padding: 24px 0;
}
.print-doc-header {
  width: min(100%, 920px);
  margin: 0 auto 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

@media (max-width: 1180px) {
  .doc-manager-grid,
  .doc-workbench-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .doc-summary-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .image-lightbox {
    padding: 12px;
  }

  .image-lightbox-dialog {
    padding: 14px;
    border-radius: 18px;
  }

  .image-lightbox-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .doc-summary-side {
    width: 100%;
    justify-items: start;
  }

  .doc-outline-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .doc-paper {
    padding: 32px 20px;
  }
}

.bigscreen-body {
  background: radial-gradient(circle at top, #1d4f37 0%, #07160f 70%);
  color: #fff;
}
.bigscreen-shell { padding: 24px; }
.bigscreen-header, .bigscreen-metrics { display: grid; gap: 18px; }
.bigscreen-header { grid-template-columns: 1fr auto; align-items: center; }
.clock { font-size: 24px; font-weight: 700; }
.bigscreen-metrics { grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 20px 0; }
.bigscreen-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.bigscreen-grid .wide { grid-column: 1 / -1; }

.rank-row, .progress-row, .action-row {
  display: grid;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.rank-row { grid-template-columns: 1fr auto; }
.progress-row { grid-template-columns: 260px 1fr 80px; align-items: center; }
.progress-bar {
  height: 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.14);
  overflow: hidden;
}
.progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #46d38c 0%, #c9ff76 100%);
}
.action-row { grid-template-columns: 160px 100px 140px 80px 1fr 100px; }

.bigscreen-live-shell {
  padding: 24px;
  display: grid;
  gap: 18px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.bigscreen-live-shell::before,
.bigscreen-live-shell::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.48;
  pointer-events: none;
  z-index: -1;
}
.bigscreen-live-shell::before {
  width: 320px;
  height: 320px;
  top: -110px;
  left: -80px;
  background: radial-gradient(circle, rgba(159,255,127,0.24) 0%, rgba(159,255,127,0) 72%);
}
.bigscreen-live-shell::after {
  width: 360px;
  height: 360px;
  top: 80px;
  right: -120px;
  background: radial-gradient(circle, rgba(71,217,255,0.18) 0%, rgba(71,217,255,0) 72%);
}
.bigscreen-hero-card {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 20px;
  align-items: center;
  padding: 22px 24px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.10);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%),
    radial-gradient(circle at top left, rgba(201,255,118,0.18) 0%, rgba(201,255,118,0) 45%);
  box-shadow: 0 22px 46px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
}
.bigscreen-hero-icon {
  position: relative;
  display: grid;
  place-items: center;
}
.bigscreen-hero-icon::before {
  content: "";
  position: absolute;
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,255,118,0.28) 0%, rgba(201,255,118,0.02) 68%, rgba(201,255,118,0) 100%);
  filter: blur(4px);
}
.bigscreen-rocket {
  width: 120px;
  height: 120px;
  overflow: visible;
  filter: drop-shadow(0 14px 20px rgba(0,0,0,0.24));
  animation: rocketFloat 4.6s ease-in-out infinite;
}
.rocket-flame-outer {
  transform-origin: 90px 126px;
  animation: flamePulse 1.2s ease-in-out infinite;
}
.rocket-flame-inner {
  transform-origin: 90px 132px;
  animation: flamePulse 1.2s ease-in-out infinite reverse;
}
.rocket-star {
  transform-origin: center;
  animation: starBlink 2.8s ease-in-out infinite;
}
.rocket-star-delay {
  animation-delay: 0.7s;
}
.rocket-star-slow {
  animation-duration: 3.4s;
}
.bigscreen-hero-copy {
  min-width: 0;
}
.bigscreen-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.bigscreen-title-row h1 {
  margin: 0;
}
.bigscreen-power-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(201,255,118,0.2) 0%, rgba(46,230,161,0.18) 100%);
  border: 1px solid rgba(201,255,118,0.30);
  color: #f1ffd5;
  font-size: 13px;
  letter-spacing: 0.04em;
}
.bigscreen-subtitle {
  margin: 8px 0 0;
  color: rgba(255,255,255,0.78);
  max-width: 760px;
  line-height: 1.65;
}
.bigscreen-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.bigscreen-hero-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: rgba(245,255,241,0.92);
  font-size: 13px;
}
.bigscreen-hero-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #d8ff8f 0%, #2bd68b 100%);
  box-shadow: 0 0 10px rgba(201,255,118,0.45);
}
.bigscreen-header-side {
  display: grid;
  gap: 12px;
  justify-items: end;
}
.bigscreen-filterbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bigscreen-filterbar select,
.bigscreen-filterbar button {
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.08);
  color: #fff;
  padding: 10px 14px;
}
.bigscreen-filterbar select {
  min-width: 220px;
  color: #f8fff6;
}
.bigscreen-filterbar select option {
  color: #0f172a;
  background: #f8fafc;
}
.bigscreen-filterbar select:focus,
.bigscreen-filterbar button:focus {
  outline: 2px solid rgba(201,255,118,0.65);
  outline-offset: 2px;
}
.bigscreen-filterbar button {
  cursor: pointer;
  background: linear-gradient(90deg, #2da86f 0%, #8fd14f 100%);
  color: #042012;
  font-weight: 700;
}
.bigscreen-header-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.bigscreen-back-link {
  color: #dfffe7;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 8px 14px;
}
.bigscreen-back-link:hover {
  background: rgba(255,255,255,0.08);
}
.bigscreen-live-banner,
.bigscreen-live-metrics,
.bigscreen-live-grid {
  display: grid;
  gap: 18px;
}
.bigscreen-live-banner {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.live-banner-card {
  border-radius: 20px;
  padding: 22px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  display: grid;
  gap: 8px;
}
.live-banner-card.primary {
  background: linear-gradient(135deg, rgba(39,123,77,0.95) 0%, rgba(129,189,85,0.88) 100%);
  color: #f8fff6;
}
.live-banner-card.warning {
  background: linear-gradient(135deg, rgba(148, 73, 20, 0.92) 0%, rgba(193, 132, 42, 0.86) 100%);
}
.live-banner-card strong {
  font-size: 28px;
}
.live-banner-tag {
  display: inline-flex;
  width: fit-content;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.12);
}
.live-banner-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.alert-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  font-size: 12px;
  color: #f6fff6;
}
.bigscreen-live-metrics {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
.metric-card.emphasis {
  box-shadow: 0 0 0 1px rgba(201,255,118,0.22), 0 18px 32px rgba(0,0,0,0.24);
}
.live-panel {
  min-height: 220px;
}
.panel-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.panel-heading h2 {
  margin: 0;
}
.panel-tip {
  color: rgba(255,255,255,0.62);
  font-size: 13px;
}
.bigscreen-live-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.bigscreen-live-grid .wide {
  grid-column: 1 / -1;
}
@keyframes rocketFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}
@keyframes flamePulse {
  0%, 100% { transform: scaleY(1) scaleX(1); opacity: 0.92; }
  50% { transform: scaleY(1.16) scaleX(0.94); opacity: 1; }
}
@keyframes starBlink {
  0%, 100% { opacity: 0.48; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.08); }
}
.live-funnel-row,
.live-rank-row,
.live-metric-row,
.live-action-row {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.live-funnel-row {
  display: grid;
  grid-template-columns: 180px 1fr 78px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
}
.live-funnel-row strong,
.live-rank-main strong,
.live-metric-row strong {
  display: block;
}
.live-funnel-row span,
.live-rank-main span,
.live-metric-row span,
.live-action-row span {
  color: rgba(255,255,255,0.68);
  font-size: 13px;
}
.live-funnel-bar {
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.10);
}
.live-funnel-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2bd68b 0%, #c9ff76 100%);
}
.live-funnel-rate {
  text-align: right;
  font-weight: 700;
}
.live-rank-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.live-rank-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.live-rank-order {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  font-weight: 700;
}
.live-rank-score {
  font-size: 24px;
  font-weight: 800;
  color: #d8ff8f;
}
.live-suggestion-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.live-suggestion-item p {
  margin: 6px 0 0;
  color: rgba(255,255,255,0.78);
}
.preclass-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.preclass-summary-card {
  border-radius: 16px;
  padding: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid;
  gap: 6px;
}
.preclass-summary-card strong {
  font-size: 26px;
}
.support-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.support-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(106, 227, 165, 0.12);
  color: #dcffea;
  font-size: 13px;
}
.live-group-card {
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}
.live-group-card.red {
  border-color: rgba(248, 113, 113, 0.42);
  background: rgba(127, 29, 29, 0.22);
}
.live-group-card.amber {
  border-color: rgba(251, 191, 36, 0.38);
  background: rgba(120, 53, 15, 0.2);
}
.live-group-card.green {
  border-color: rgba(74, 222, 128, 0.34);
  background: rgba(20, 83, 45, 0.22);
}
.live-group-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.live-group-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  color: rgba(255,255,255,0.78);
  font-size: 13px;
}
.live-group-focus {
  margin: 10px 0 0;
  color: #e8ffd0;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.status-pill.red {
  background: rgba(248, 113, 113, 0.16);
  color: #ffd2d2;
}
.status-pill.amber {
  background: rgba(251, 191, 36, 0.18);
  color: #ffefbf;
}
.status-pill.green {
  background: rgba(74, 222, 128, 0.16);
  color: #dcffe5;
}
.watch-student-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.watch-student-main {
  display: flex;
  align-items: center;
  gap: 12px;
}
.watch-student-side {
  display: grid;
  gap: 10px;
}
.watch-student-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.watch-issue-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.watch-issue-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(248, 113, 113, 0.12);
  color: #ffd0d0;
  font-size: 12px;
}
.watch-student-recommendation {
  margin: 0;
  color: rgba(255,255,255,0.84);
}
.live-student-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.mini-tag {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.52);
  font-size: 12px;
}
.mini-tag.on {
  background: rgba(74, 222, 128, 0.18);
  color: #d7ffd6;
}
.live-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.metric-range-values {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.live-action-row {
  display: grid;
  grid-template-columns: 150px 80px 100px 70px 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  align-items: start;
}
.action-type {
  color: #d5ff96;
}
.action-detail {
  color: rgba(255,255,255,0.86) !important;
}
.empty-hint {
  color: rgba(255,255,255,0.62);
  margin: 12px 0;
}

.table-gap-top {
  margin-top: 18px;
}

.certificate-body {
  background: linear-gradient(180deg, #f8f1dc 0%, #efe2bb 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.certificate-card {
  width: min(980px, 96vw);
  background: #fffdf6;
  border-radius: 24px;
  padding: 18px;
}
.certificate-border {
  border: 8px double #b48a2c;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
}
.certificate-label { letter-spacing: 6px; color: #7c6221; }
.certificate-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0;
}
.certificate-points span {
  padding: 8px 14px;
  background: #f7edd0;
  border-radius: 999px;
}
.certificate-meta {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}
.certificate-actions { margin-top: 24px; display: flex; justify-content: center; gap: 16px; }

@media print {
  @page {
    size: A4 portrait;
    margin: 18mm 16mm 16mm;
  }
  body,
  .print-doc-body {
    background: #fff;
  }
  .topbar,
  .flash-stack,
  .filter-bar,
  .doc-sidebar,
  .doc-toolbar-actions,
  .print-doc-header .ghost-button {
    display: none !important;
  }
  .question-bank-panel {
    margin-bottom: 22px;
  }
  .question-bank-header-meta,
  .question-bank-toolbar,
  .question-bank-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
  }
  .question-bank-toolbar {
    margin: 18px 0;
    flex-wrap: wrap;
  }
  .question-bank-form {
    display: grid;
    gap: 18px;
  }
  .question-bank-list {
    display: grid;
    gap: 16px;
  }
  .question-edit-card {
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248, 251, 249, 0.92) 100%);
  }
  .new-question-card {
    border-style: dashed;
  }
  .question-edit-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
  }
  .question-edit-topline h3 {
    margin: 0;
  }
  .question-edit-topline label {
    width: 140px;
  }
  .question-edit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
  }
  .question-edit-grid .wide {
    grid-column: 1 / -1;
  }
  .question-edit-grid textarea {
    min-height: 96px;
    resize: vertical;
  }
  .source-note {
    margin: 0;
    align-self: end;
  }
  .analysis-note.compact {
    margin: 0;
    flex: 1;
  }
  .page-shell,
  .print-doc-shell {
    padding: 0;
    margin: 0;
    width: 100%;
  }
  .doc-paper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}

@media (max-width: 980px) {
  .hero-grid, .detail-grid, .stats-grid, .bigscreen-grid, .bigscreen-metrics, .bigscreen-header, .stage-grid, .dashboard-hero, .hero-stat-grid {
    grid-template-columns: 1fr;
  }
  .bigscreen-hero-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .bigscreen-hero-icon {
    width: 100%;
    justify-content: start;
  }
  .doc-manager-grid {
    grid-template-columns: 1fr;
  }
  .doc-workbench-grid {
    grid-template-columns: 1fr;
  }
  .question-grid,
  .diagnostic-grid,
  .learning-stats-grid {
    grid-template-columns: 1fr;
  }
  .stage-header,
  .stage-chip-row,
  .stage-nav {
    justify-content: flex-start;
  }
  .stage-summary-bar,
  .stage-summary-side {
    flex-direction: column;
    align-items: flex-start;
  }
  .stage-summary-arrow {
    margin-top: 0;
  }
  .preclass-chip-row {
    flex-wrap: wrap;
  }
  .hero-hours-block {
    width: 100%;
    align-items: flex-start;
  }
  .training-identity-bar {
    align-items: flex-start;
  }
  .stage-header {
    flex-direction: column;
  }
  .stage-title-block {
    width: 100%;
  }
  .stage-title-copy h3 {
    font-size: 24px;
  }
  .bigscreen-live-banner,
  .bigscreen-live-metrics,
  .bigscreen-live-grid {
    grid-template-columns: 1fr;
  }
  .commendation-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .topbar-inner,
  .brand-lockup,
  .hero-topline,
  .card-topline,
  .doc-toolbar,
  .doc-toolbar-actions,
  .doc-stats-row,
  .doc-format-toolbar,
  .question-bank-header-meta,
  .question-bank-toolbar,
  .question-bank-actions,
  .question-edit-topline {
    flex-direction: column;
    align-items: flex-start;
  }
  .question-edit-grid {
    grid-template-columns: 1fr;
  }
  .upload-grid,
  .upload-preview-grid {
    grid-template-columns: 1fr;
  }
  .question-edit-grid .wide {
    grid-column: auto;
  }
  .commendation-filter {
    width: 100%;
  }
  .commendation-filter label {
    min-width: 100%;
  }
  .landing-register {
    height: auto;
  }
  .compact-board {
    grid-template-columns: 1fr;
  }
  .commendation-row.rank-1,
  .commendation-row.rank-2,
  .commendation-row.rank-3 {
    order: initial;
    min-height: auto;
    transform: none;
  }
  .progress-row, .action-row, .live-funnel-row, .live-action-row, .live-metric-row, .watch-student-row { grid-template-columns: 1fr; }
  .metric-range-values, .live-student-tags, .bigscreen-header-meta {
    justify-content: flex-start;
  }
  .bigscreen-title-row {
    align-items: flex-start;
  }
  .preclass-summary-grid {
    grid-template-columns: 1fr;
  }
  .topbar, .title-row, .stats-strip, .card-actions { flex-direction: column; align-items: flex-start; }
  .page-shell { padding: 16px; }
  .flash-stack { padding: 16px 16px 0; }
  .info-tooltip-content {
    left: 0;
    transform: translateX(0) translateY(8px);
    width: min(280px, calc(100vw - 48px));
  }
  .info-tooltip-content::after {
    left: 18px;
    transform: none;
  }
  .info-tooltip:hover .info-tooltip-content,
  .info-tooltip:focus-within .info-tooltip-content {
    transform: translateX(0) translateY(0);
  }
  .doc-paper {
    width: 100%;
    min-height: auto;
    padding: 28px 22px;
  }
}