:root {
  --blue: #174ea6;
  --blue-2: #0b93d1;
  --red: #e9232c;
  --red-dark: #c51622;
  --ink: #20252d;
  --muted: #687386;
  --line: #d8e2ef;
  --bg: #f6f8fb;
  --panel: #ffffff;
  --soft-blue: #eaf4fb;
  --soft-red: #fff0f1;
  --shadow: 0 14px 38px rgba(23, 78, 166, .08);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 76px; padding: 0 42px; display: flex; align-items: center; justify-content: space-between; background: var(--panel); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand img { width: 132px; height: auto; display: block; }
.brand-divider { height: 24px; width: 1px; background: var(--line); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.trial-pill, .status-chip, .pending-label, .review-count { display: inline-flex; align-items: center; gap: 7px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.trial-pill { padding: 9px 13px; background: var(--soft-red); color: var(--red-dark); }
.trial-pill i, .live-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--red); }
.text-button, .link-button { border: 0; background: transparent; color: var(--blue); font-weight: 700; padding: 6px 0; }
.review-entry { border: 1px solid #bdd1ec; background: #eef5ff; color: var(--blue); border-radius: 8px; min-height: 38px; padding: 0 14px; font-weight: 800; }
.top-actions a.review-entry { display: inline-flex; align-items: center; text-decoration: none; }
.review-entry.light { background: white; }
.avatar { border: 0; width: 38px; height: 38px; border-radius: 50%; color: white; background: var(--red); font-weight: 800; }
.layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar { padding: 30px 20px; background: #f1f6fb; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.sidebar-heading { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; font-weight: 700; }
.sidebar-heading strong { color: var(--blue); font-size: 18px; }
.progress-track { height: 7px; border-radius: 7px; background: #dce8f4; margin: 14px 0 26px; overflow: hidden; }
.progress-track span { display: block; width: 28%; height: 100%; background: var(--blue); border-radius: inherit; }
.level-list { display: grid; gap: 7px; }
.level { width: 100%; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 8px; padding: 13px 10px; border: 1px solid transparent; border-radius: 10px; text-align: left; color: var(--muted); background: transparent; }
.level b { font-size: 12px; }
.level span { font-size: 14px; font-weight: 700; }
.level em { font-size: 11px; font-style: normal; }
.level.done, .level.open { color: var(--blue); background: var(--soft-blue); }
.level.current { color: var(--red-dark); background: var(--soft-red); border-color: #f5c8cc; }
.level.locked { cursor: default; opacity: .65; }
.level.admin-level { margin-top: 10px; color: var(--blue); background: #fff; border-color: #bdd1ec; }
.level.admin-level b { color: var(--red); }
.sidebar-foot { margin-top: auto; padding: 14px 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sidebar-foot small { width: 100%; padding-left: 15px; color: var(--blue); }
.main-content { width: min(1160px, 100%); padding: 62px 64px 80px; margin: 0 auto; }
.view { display: none; }
.view.active { display: block; }
.eyebrow { color: var(--blue); font-size: 12px; letter-spacing: .12em; font-weight: 800; text-transform: uppercase; }
.hero-row, .task-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
h1 { margin: 12px 0 12px; font-size: clamp(30px, 4vw, 48px); line-height: 1.15; letter-spacing: 0; }
h2 { margin: 8px 0 14px; font-size: 25px; letter-spacing: 0; }
h3 { margin: 0 0 16px; font-size: 18px; }
.lead { max-width: 700px; margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.result-badge { flex: 0 0 160px; padding: 18px; margin-top: 15px; background: var(--soft-red); border-left: 4px solid var(--red); }
.result-badge span, .result-badge strong { display: block; }
.result-badge span { color: var(--red-dark); font-size: 12px; font-weight: 700; }
.result-badge strong { margin-top: 8px; font-size: 17px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .8fr); gap: 22px; margin-top: 48px; }
.result-panel, .side-panel, .step-card, .submission-panel, .review-rule, .prompt-section, .student-submit-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.result-panel { padding: 32px; }
.blue-panel { border-top: 4px solid var(--blue); }
.side-panel { padding: 26px; }
.panel-kicker { color: var(--blue); font-size: 13px; font-weight: 800; }
.check-list { list-style: none; margin: 22px 0 30px; padding: 0; display: grid; gap: 13px; color: var(--muted); }
.check-list li::before { content: "✓"; color: var(--blue); font-weight: 900; margin-right: 10px; }
.primary-button, .secondary-button { border: 0; border-radius: 8px; min-height: 46px; padding: 0 18px; font-weight: 800; }
.primary-button { background: var(--blue); color: white; }
.primary-button span { margin-left: 14px; font-size: 20px; }
.secondary-button { background: var(--red); color: white; }
.danger-button {
  border: 1px solid #f3b7bc;
  border-radius: 8px;
  min-height: 46px;
  padding: 0 18px;
  background: #fff2f3;
  color: var(--red-dark);
  font-weight: 800;
}
.danger-button.ghost {
  background: white;
}
.danger-button:hover {
  background: #ffe7ea;
}
.secondary-button:disabled { opacity: .5; cursor: default; }
.teacher-row { display: flex; align-items: center; gap: 11px; margin: 18px 0; }
.teacher-row strong, .teacher-row small { display: block; }
.teacher-row small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.teacher-avatar { display: grid; place-items: center; flex: 0 0 auto; width: 50px; height: 50px; border-radius: 50%; color: white; font-weight: 800; overflow: hidden; box-shadow: 0 6px 16px rgba(23, 78, 166, .12); }
.teacher-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-avatar { background: #eef5ff; border: 2px solid #fff; }
.blue-avatar { background: var(--blue); }
.red-avatar { background: var(--red); }
hr { border: 0; border-top: 1px solid var(--line); margin: 25px 0; }
.voice-tip { display: flex; align-items: center; gap: 12px; }
.mic-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--soft-blue); color: var(--blue); font-size: 12px; }
.voice-tip strong, .voice-tip small { display: block; }
.voice-tip small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.method-strip { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 22px; padding: 18px 20px; color: var(--muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.method-strip span { color: var(--red-dark); font-weight: 800; margin-right: 8px; }
.method-strip b { color: var(--ink); }
.method-strip i { color: var(--blue-2); font-style: normal; }
.back-link { display: inline-block; color: var(--blue); font-size: 14px; font-weight: 700; cursor: pointer; margin-bottom: 26px; }
.status-chip { padding: 8px 13px; background: var(--soft-red); color: var(--red-dark); margin-top: 10px; }
.result-callout { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; padding: 14px 18px; border-radius: 8px; background: var(--soft-blue); border-left: 4px solid var(--blue); }
.result-callout span { color: var(--blue); font-size: 13px; font-weight: 800; }
.result-callout strong { font-size: 16px; }
.resource-links { display: grid; gap: 10px; margin-top: 22px; padding: 16px 18px; border: 1px solid #bdd1ec; border-radius: 8px; background: #fbfdff; }
.resource-links[hidden] { display: none; }
.resource-link-item { display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid #e6eef7; }
.resource-link-item:last-child { padding-bottom: 0; border-bottom: 0; }
.resource-links a, .resource-links .link-button { width: fit-content; color: var(--blue); font-weight: 800; text-decoration: none; }
.resource-links .link-button { text-align: left; }
.resource-links small { color: var(--muted); line-height: 1.6; }
.step-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.step-card { padding: 24px; min-height: 245px; }
.step-card > span { color: var(--red); font-weight: 900; font-size: 13px; }
.step-card strong { display: block; margin-top: 18px; font-size: 18px; }
.step-card p { min-height: 66px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.prompt-section, .student-submit-panel { margin-top: 22px; padding: 26px; }
.section-title { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.section-title h2 { margin-bottom: 0; }
.section-title span { color: var(--muted); font-size: 13px; font-weight: 700; padding-top: 8px; }
.prompt-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.prompt-item { padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.prompt-item-wide { grid-column: 1 / -1; }
.prompt-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.prompt-head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.prompt-item strong { display: block; font-size: 15px; }
.prompt-item p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.prompt-section-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.prompt-subsection { padding: 14px; border: 1px solid #dbe6f2; border-radius: 10px; background: #ffffff; }
.prompt-subsection-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.prompt-subsection-head strong { font-size: 15px; line-height: 1.5; }
.prompt-subsection p { margin: 0 0 8px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.copy-prompt-button {
  border: 1px solid #cfe0ff;
  background: #eef4ff;
  color: var(--blue);
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.copy-prompt-button:hover { background: #e3eeff; }
.edit-prompt-button {
  border: 1px solid #f0d8a8;
  background: #fff8e8;
  color: #8a5a00;
  font-weight: 800;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.edit-prompt-button:hover { background: #fff1cc; }
.prompt-text { width: 100%; min-height: 280px; max-height: 520px; overflow: auto; margin: 12px 0; padding: 14px; border: 1px solid #dbe6f2; border-radius: 7px; background: white; color: #263241; font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 13px; line-height: 1.72; white-space: pre-wrap; }
.prompt-text-large { min-height: 360px; max-height: 620px; margin-bottom: 0; }
.advanced-mode-details {
  border: 1px solid #dbe6f2;
  border-radius: 10px;
  background: #fbfdff;
  overflow: hidden;
}
.advanced-mode-details summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  cursor: pointer;
}
.advanced-mode-details summary::-webkit-details-marker { display: none; }
.advanced-mode-details summary strong {
  display: block;
  font-size: 16px;
}
.advanced-mode-details summary p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.advanced-mode-details summary span {
  flex: 0 0 auto;
  padding-top: 0;
  color: var(--blue);
  font-weight: 800;
}
.advanced-mode-details[open] summary {
  border-bottom: 1px solid #e7eef8;
  background: #f4f8ff;
}
.advanced-mode-details[open] summary span {
  color: var(--red-dark);
}
.advanced-mode-body {
  padding: 18px 20px 20px;
}
.advanced-mode-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.advanced-prompt-list {
  margin-top: 16px;
}
.prompt-editor-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 22, 37, .46);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 30;
}
.prompt-editor-modal.active { display: flex; }
.prompt-editor-panel {
  width: min(980px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: white;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(15, 31, 56, .22);
  padding: 24px;
}
.prompt-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.prompt-editor-head h3 {
  margin: 6px 0 0;
  font-size: 24px;
}
.prompt-editor-form {
  display: grid;
  gap: 14px;
}
.prompt-editor-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.prompt-editor-form input,
.prompt-editor-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ink);
  background: white;
}
.prompt-editor-form textarea {
  min-height: 100px;
  resize: vertical;
}
.prompt-editor-textarea {
  min-height: 420px !important;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.72;
}
.prompt-editor-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 18px;
}
.submit-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.submit-grid label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.submit-grid label:nth-child(4), .submit-grid label:nth-child(5) { grid-column: 1 / -1; }
.submit-grid label.text-submit-field { grid-column: span 3; }
.submit-grid input, .submit-grid textarea, .submit-grid select { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 11px 12px; color: var(--ink); background: white; }
.submit-grid textarea { min-height: 96px; resize: vertical; }
.file-drop { position: relative; padding: 14px; border: 1px dashed #9fbbdb; border-radius: 8px; background: #f8fbff; cursor: pointer; }
.submit-grid .file-drop { grid-column: 1 / -1; }
.file-drop input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-button { display: inline-flex; align-items: center; justify-content: center; width: fit-content; min-height: 38px; margin-top: 6px; padding: 0 14px; border-radius: 7px; background: var(--blue); color: white; font-weight: 800; }
.file-drop span:not(.file-button) { color: var(--blue); font-weight: 700; line-height: 1.6; }
.submit-actions { display: flex; gap: 14px; align-items: center; margin-top: 18px; }
.submission-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 22px; padding: 18px 20px; background: var(--soft-blue); border-left: 4px solid var(--blue); border-radius: 8px; }
.note-icon { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: white; font-size: 12px; font-weight: 800; }
.submission-note strong, .submission-note p { display: block; margin: 0; }
.submission-note p { color: var(--muted); margin-top: 5px; font-size: 13px; }
.inline-review-button { margin-top: 12px; border: 1px solid #bdd1ec; background: white; color: var(--blue); border-radius: 7px; min-height: 36px; padding: 0 12px; font-weight: 800; }
.review-count { padding: 10px 14px; color: var(--red-dark); background: var(--soft-red); margin-top: 12px; }
.admin-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(240px, .6fr); gap: 20px; margin-top: 42px; }
.submission-panel { padding: 28px; }
.submission-header { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.submission-header h2 { font-size: 21px; }
.pending-label { padding: 8px 11px; color: var(--red-dark); background: var(--soft-red); }
.fake-upload { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 22px 0; background: var(--soft-blue); border: 1px solid var(--line); border-radius: 8px; }
.file-icon { display: grid; place-items: center; width: 42px; height: 42px; color: white; background: var(--blue); border-radius: 7px; font-size: 11px; font-weight: 900; }
.fake-upload strong, .fake-upload small { display: block; }
.fake-upload small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.fake-upload .link-button { margin-left: auto; white-space: nowrap; }
.submitted-content { margin: 0 0 22px; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.submitted-content strong { display: block; margin-bottom: 8px; }
.submitted-content p { margin: 0; color: var(--muted); line-height: 1.65; white-space: pre-wrap; }
.review-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.review-form label { display: grid; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.review-form label:nth-child(n+3) { grid-column: 1 / -1; }
.review-form input, .review-form textarea, .review-form select { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 10px 11px; color: var(--ink); background: white; }
.review-form textarea { min-height: 70px; resize: vertical; }
.form-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 15px; padding-top: 4px; }
.form-actions span { color: var(--muted); font-size: 13px; }
.review-rule { padding: 25px; align-self: start; }
.review-rule ol { margin: 0; padding-left: 22px; color: var(--muted); line-height: 2; font-size: 14px; }
.rule-callout { margin-top: 25px; padding: 16px; background: var(--soft-red); border-left: 3px solid var(--red); }
.rule-callout strong, .rule-callout p { display: block; margin: 0; }
.rule-callout p { margin-top: 8px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 15px); opacity: 0; pointer-events: none; padding: 12px 16px; color: white; background: var(--ink); border-radius: 7px; transition: .2s ease; font-size: 14px; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.checkin-main { width: min(980px, 100%); margin: 0 auto; padding: 58px 28px 90px; }
.checkin-card { padding: 38px; background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.checkin-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; align-items: start; }
.checkin-intro h1 { margin-top: 10px; }
.checkin-link-card { margin-top: 24px; padding: 16px; border: 1px solid #bdd1ec; border-radius: 10px; background: #fbfdff; }
.checkin-link-card strong, .checkin-link-card a { display: block; }
.checkin-link-card strong { margin-bottom: 8px; }
.checkin-link-card a { color: var(--blue); font-weight: 800; word-break: break-all; text-decoration: none; margin-bottom: 14px; }
.checkin-link-card .secondary-button { width: 100%; background: var(--blue); }
.checkin-qr-card { display: grid; justify-items: center; gap: 9px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(180deg, #f8fbff, #fff); text-align: center; }
.checkin-qr-card img { width: 196px; height: 196px; display: block; border-radius: 8px; background: white; }
.checkin-qr-card strong { font-size: 17px; }
.checkin-qr-card small { color: var(--muted); line-height: 1.5; }
.checkin-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; margin-top: 32px; }
.checkin-form label { display: grid; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.checkin-form input, .checkin-form textarea, .checkin-form select { width: 100%; border: 1px solid var(--line); border-radius: 7px; padding: 12px; color: var(--ink); background: white; }
.checkin-form textarea { min-height: 96px; resize: vertical; }
.checkin-form .wide-field, .checkin-form .primary-button, .checkin-form .form-note { grid-column: 1 / -1; }
.form-note { padding: 12px 14px; color: var(--blue); background: var(--soft-blue); border-left: 4px solid var(--blue); border-radius: 8px; font-size: 13px; font-weight: 800; }
.checkin-result { margin-top: 24px; padding: 20px; border-left: 4px solid var(--blue); border-radius: 8px; background: var(--soft-blue); }
.checkin-result strong, .checkin-result p, .checkin-result a { display: block; }
.checkin-result p { color: var(--muted); margin: 8px 0 12px; }
.checkin-result a { color: var(--blue); font-weight: 800; word-break: break-all; margin-bottom: 15px; }
.teacher-shell { background: #f6f8fb; }
.teacher-main { width: min(1380px, 100%); margin: 0 auto; padding: 42px; }
.teacher-hero { display: flex; justify-content: space-between; gap: 28px; align-items: flex-start; margin-bottom: 28px; }
.teacher-stats { display: flex; gap: 12px; }
.teacher-stats span { min-width: 116px; padding: 14px 16px; border-radius: 8px; background: white; border: 1px solid var(--line); color: var(--muted); font-weight: 800; }
.teacher-stats b { display: block; margin-top: 5px; color: var(--blue); font-size: 26px; }
.teacher-layout { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.teacher-list-panel, .teacher-detail-panel { background: white; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.teacher-list-panel { padding: 20px; max-height: calc(100vh - 190px); overflow: auto; }
.teacher-detail-panel { padding: 26px; }
.section-title.compact { margin-bottom: 14px; }
.section-title.compact h2 { font-size: 20px; }
.level-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filter-pill { min-width: 62px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fbfdff; color: var(--muted); font-size: 12px; font-weight: 800; }
.filter-pill.active { border-color: #9fbbdb; background: var(--soft-blue); color: var(--blue); }
.submission-summary { margin-bottom: 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.teacher-signed-panel { margin-bottom: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: #fbfdff; }
.teacher-signed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.teacher-signed-head strong { font-size: 15px; }
.teacher-signed-head small { color: var(--muted); font-size: 12px; }
.signed-list { display: grid; gap: 8px; }
.signed-item { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #dbe6f2; border-radius: 8px; background: white; }
.signed-item-main { display: grid; gap: 4px; min-width: 0; }
.signed-item-main strong { font-size: 14px; }
.signed-item-main small { color: var(--muted); font-size: 12px; line-height: 1.4; }
.signed-item-side { display: grid; justify-items: end; gap: 8px; }
.signed-item-status { white-space: nowrap; border-radius: 999px; padding: 6px 10px; font-size: 11px; font-weight: 800; }
.signed-item-status.submitted { background: var(--soft-blue); color: var(--blue); }
.signed-item-status.pending { background: var(--soft-red); color: var(--red-dark); }
.signed-item-delete {
  border: 1px solid #f3c6ca;
  border-radius: 999px;
  min-height: 30px;
  padding: 0 12px;
  background: white;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 800;
}
.signed-item-delete:hover {
  background: #fff5f6;
}
.submission-grid-list { display: grid; gap: 10px; }
.submission-group { display: grid; gap: 10px; }
.submission-group + .submission-group { margin-top: 14px; }
.submission-group-title { margin: 0; padding: 0 2px; color: var(--blue); font-size: 13px; font-weight: 800; }
.submission-tile { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; text-align: left; }
.submission-tile.active { border-color: #9fbbdb; background: var(--soft-blue); }
.tile-thumb { display: grid; place-items: center; width: 74px; height: 58px; border-radius: 6px; overflow: hidden; background: #e9eef5; color: var(--blue); font-size: 12px; font-weight: 900; }
.tile-thumb img { width: 100%; height: 100%; object-fit: cover; }
.tile-body strong, .tile-body small, .tile-body em { display: block; }
.tile-body small { color: var(--muted); margin-top: 4px; font-size: 12px; }
.tile-body em { color: var(--blue); font-style: normal; margin-top: 5px; font-size: 12px; line-height: 1.4; }
.tile-score { color: var(--red-dark); font-size: 12px; font-weight: 800; white-space: nowrap; }
.teacher-preview-area { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 16px; margin: 22px 0; }
.teacher-review-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 22px 0 0; }
.review-block-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 8px; }
.review-block-head strong { margin: 0; }
.image-review-guide { align-self: start; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fbfdff; }
.image-review-guide strong { display: block; margin-bottom: 10px; }
.image-review-guide ol { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.85; font-size: 13px; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.preview-thumb { position: relative; min-height: 180px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #f1f5f9; }
.preview-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.preview-thumb span { position: absolute; left: 8px; top: 8px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: rgba(32,37,45,.8); color: white; font-size: 12px; font-weight: 800; }
.empty-preview { display: grid; place-items: center; min-height: 220px; border: 1px dashed #b9c7d8; border-radius: 8px; color: var(--muted); background: #fbfdff; }
.teacher-content { margin: 0; align-self: start; min-height: 220px; }
.teacher-review-form { margin-top: 8px; }
.image-modal { position: fixed; inset: 0; z-index: 20; display: none; place-items: center; background: rgba(14, 20, 30, .86); padding: 38px; }
.image-modal.active { display: grid; }
.image-modal img { max-width: min(1100px, 86vw); max-height: 82vh; object-fit: contain; background: white; border-radius: 8px; }
.modal-close, .modal-arrow { position: fixed; border: 0; color: white; background: rgba(255,255,255,.16); border-radius: 50%; font-weight: 800; }
.modal-close { right: 28px; top: 24px; width: 42px; height: 42px; font-size: 28px; }
.modal-arrow { top: 50%; width: 52px; height: 52px; font-size: 42px; transform: translateY(-50%); }
.modal-arrow.left { left: 28px; }
.modal-arrow.right { right: 28px; }
.modal-caption { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); color: white; background: rgba(0,0,0,.35); border-radius: 999px; padding: 10px 16px; font-size: 13px; }
@media (max-width: 900px) {
  .topbar { padding: 0 20px; }
  .top-actions .trial-pill { display: none; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { padding: 18px 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .level-list { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; }
  .sidebar-foot { display: none; }
  .main-content { padding: 38px 24px 60px; }
  .content-grid, .admin-layout, .prompt-list, .teacher-layout, .teacher-preview-area, .teacher-review-split, .checkin-layout { grid-template-columns: 1fr; }
  .submit-grid { grid-template-columns: 1fr; }
  .submit-grid label:nth-child(4), .submit-grid label:nth-child(5), .submit-grid label.text-submit-field { grid-column: auto; }
}
@media (max-width: 620px) {
  .topbar { height: 64px; }
  .brand img { width: 104px; }
  .brand-divider, .brand > span:last-child { display: none; }
  .review-entry { min-height: 34px; padding: 0 10px; font-size: 12px; }
  .main-content { padding: 30px 16px 48px; }
  .checkin-main { padding: 22px 14px 42px; }
  .checkin-card { padding: 22px 16px; border-radius: 10px; }
  .checkin-form { grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
  .checkin-form .wide-field, .checkin-form .primary-button, .checkin-form .form-note { grid-column: auto; }
  .checkin-form input, .checkin-form textarea, .checkin-form select { min-height: 46px; font-size: 16px; }
  .checkin-form .primary-button, .checkin-link-card .secondary-button { min-height: 50px; }
  .checkin-qr-card img { width: 168px; height: 168px; }
  .hero-row, .task-head { display: block; }
  .result-badge, .review-count { display: inline-flex; margin-top: 18px; }
  h1 { font-size: 32px; }
  .lead { font-size: 15px; }
  .prompt-list, .prompt-section-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .step-card { min-height: auto; }
  .step-card p { min-height: auto; }
  .prompt-head-actions { justify-content: flex-start; }
  .review-form { grid-template-columns: 1fr; }
  .review-form label:nth-child(n+3) { grid-column: auto; }
  .form-actions { grid-column: auto; display: block; }
  .form-actions .secondary-button { width: 100%; }
  .form-actions span { display: block; margin-top: 10px; }
  .fake-upload { align-items: flex-start; flex-wrap: wrap; }
  .fake-upload .link-button { margin-left: 54px; }
  .method-strip { gap: 9px; line-height: 1.7; }
  .teacher-main { padding: 24px 16px; }
  .teacher-hero { display: block; }
  .teacher-stats { margin-top: 16px; }
  .teacher-list-panel { max-height: none; }
  .level-filter-bar { overflow-x: auto; padding-bottom: 4px; flex-wrap: nowrap; }
  .submission-tile { grid-template-columns: 56px 1fr; }
  .tile-score { grid-column: 2; }
  .tile-thumb { width: 56px; height: 48px; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-thumb { min-height: 150px; }
  .checkin-qr-card { display: none; }
}
