/* ExamGuard Lite 2.3.3 — tăng độ dễ đọc của chữ thường; giữ nguyên cấp bậc tiêu đề. */
:root { --eg-readable: #506079; --eg-readable-soft: #617189; }

body { font-size: 16px; line-height: 1.55; }
p, .muted, .small { color: var(--eg-readable); }
button { font-size: 15px; }
label { font-size: 15px; color: #3d4e66; }
.eyebrow { font-size: 12.5px; }
.brand small { font-size: 11px; color: #65758c; }
.header-label { font-size: 12px; color: #56677e; }
.top .pill { font-size: 13px; }
.hero-copy > p { font-size: 16px; line-height: 1.75; }
.hero-features { font-size: 14px; }
.mock-head, .mock-live { font-size: 10.5px; }
.mock-title small, .mock-metrics > div > span { font-size: 12px; }
.mock-progress, .mock-students > div > span:nth-child(2) { font-size: 12px; }
.mock-students small { font-size: 10.5px; }
.floating-chip { font-size: 12px; }
.entry-title > span { font-size: 14px; color: #53657d; }
.entry-label { font-size: 12px; color: #62728a; }
.entry-card > p { font-size: 16px; color: #53637a; line-height: 1.7; }
.entry-card form label { font-size: 15px; }
.footnote { font-size: 14px; line-height: 1.7; color: #586980; }
.notice { font-size: 15px; line-height: 1.7; }

/* Giáo viên: chữ mô tả, nhãn, danh sách phòng và bảng giám sát. */
#teacher { font-size: 16px; }
#teacher button, #teacher .workspace-nav { font-size: 15px; }
#teacher label { font-size: 15px; }
#teacher input, #teacher textarea, #teacher select { font-size: 16px; }
.workspace-identity small { font-size: 11px; color: #b2bfd1; }
.workspace-nav-caption { font-size: 11.5px; color: #a1aec3; }
.workspace-test-note strong { font-size: 13px; }
.workspace-test-note small { font-size: 12.5px; color: #c2cce0; }
.workspace-topbar { font-size: 12px; color: #607087; }
.workspace-online { font-size: 11.5px; }
.workspace-overline { font-size: 12px; }
.workspace-page-heading p { font-size: 16px; color: #516178; line-height: 1.65; }
.summary-tile { grid-template-rows: auto auto auto; min-height: 148px; row-gap: 6px; }
.summary-label { font-size: 15px; color: #53637a; }
.summary-tile small { font-size: 13.5px; color: #65758a; }
.workspace-panel-heading p { font-size: 15.5px; color: #56667d; }
.room-code { font-size: 12.5px; }
.room-status { font-size: 12.5px; }
.room-meta { font-size: 15px; color: #5a6a82; }
.room-card-footer small { font-size: 13px; color: #64758d; }
.room-empty p { font-size: 15px; }
#teacher .detail > .section-heading p { font-size: 15px; }
#teacher .metrics small { font-size: 13.5px; color: #54667c; line-height: 1.55; }
#teacher .detail .notice { font-size: 15px; line-height: 1.65; }
#teacher .detail > .muted.small { font-size: 14px; line-height: 1.65; color: #5a6b82; }
#teacher table { min-width: 1040px; }
#teacher th { font-size: 12.5px; color: #51617a; }
#teacher td { font-size: 14.5px; color: #3e5168; }
#teacher td small { font-size: 12.5px; color: #677a91; }
#teacher .section-actions strong { font-size: 13px; }
#teacher .hint { font-size: 13.5px; color: #596a81; }
.builder-submit small { font-size: 13.5px; color: #5d6f85; }
.builder-help li strong { font-size: 14px; }
.builder-help li span { font-size: 14px; color: #54677e; }
.builder-help-note { font-size: 13.5px; color: #56687f; }

/* Học sinh: hướng dẫn thao tác và xác nhận lưu/nộp bài. */
#student > .section-heading p { font-size: 15px; }
#student .exam-status .pill { font-size: 14px; }
#student .notice { font-size: 15px; }
#student #progress-text { font-size: 15px; color: #52637a; }
#question-area .eyebrow { font-size: 13px; }
#question-area .option span { font-size: 16px; }
#question-area label { font-size: 15px; }
#lobby > p, #waiting > p, #released > p { font-size: 16px; }
#lobby .lobby-ready > span:last-child { font-size: 15px; }
#lobby .notice, #waiting .notice, #released .notice { font-size: 15px; }
#waiting .pill { font-size: 14px; }

/* Cảnh báo rõ ràng khi học sinh thử rời bài thi. */
.exam-guard-alert {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 22px;
  background: rgba(13, 24, 43, .7);
  backdrop-filter: blur(5px);
}
.exam-guard-alert-card {
  width: min(100%, 510px); padding: 34px 30px 30px;
  border-radius: 23px; border: 1px solid #f1c9bf;
  background: #fff; text-align: center;
  box-shadow: 0 26px 85px rgba(13, 25, 42, .28);
}
.exam-guard-alert-icon {
  display: grid; place-items: center; width: 67px; height: 67px;
  margin: 0 auto 18px; border-radius: 19px;
  background: #fff1eb; color: #bc2818; font-size: 38px; font-weight: 900;
}
#student-guard-title { margin: 0 0 13px; font-size: 25px; color: #9c241a; }
#student-guard-message { margin: 0; font-size: 17px; font-weight: 650; color: #39485e; line-height: 1.6; }
.exam-guard-alert-note { margin: 14px 0 25px; font-size: 15px; color: #596b82; }
#student-guard-close { width: 100%; padding: 15px 18px; font-size: 16px; }

/* Một đề dùng lại cho nhiều phòng: thao tác rõ ràng ở từng thẻ phòng thi. */
.room-card-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
#teacher .room-card-actions button { font-size: 13px; padding: 9px 11px; }
#teacher .room-card-actions .reuse-room-button {
  color: #374d68; border-color: #cbd8e6; background: #f4f8fc;
}
.reuse-exam-dialog {
  position: fixed; margin: auto; width: min(92vw, 530px); max-height: min(88vh, 760px);
  overflow-y: auto; padding: 30px; border: 1px solid #dce5f0; border-radius: 22px;
  background: #fff; color: #263750; box-shadow: 0 26px 100px #111f3345;
}
.reuse-exam-dialog::backdrop { background: #142640ad; backdrop-filter: blur(4px); }
.reuse-exam-dialog h2 { font-size: 25px; margin: 4px 0; }
.reuse-exam-dialog p { color: #51647b; margin: 4px 0 8px; font-size: 15px; }
.reuse-exam-dialog label { font-size: 15px; font-weight: 750; }
.reuse-exam-dialog label input { margin-top: 8px; text-transform: uppercase; }
.reuse-exam-dialog form > small { color: #5c6f85; font-size: 13px; }
.reuse-exam-source { display: grid; gap: 3px; padding: 16px 18px; border-radius: 13px; background: #f3f7fc; border: 1px solid #dce6f1; }
.reuse-exam-source span, .reuse-exam-source small { font-size: 13px; color: #576c83; }
.reuse-exam-source strong { font-size: 17px; color: #293d56; }
.reuse-exam-dialog .reuse-exam-error { margin: 0; padding: 12px 14px; border: 1px solid #f0bdb6; border-radius: 10px; background: #fff1ed; color: #9c2f22; font-size: 14px; font-weight: 650; }
.reuse-exam-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.reuse-exam-actions button { min-height: 45px; font-size: 15px; }
#teacher .room-card-actions .delete-room-button { color: #a6372a; border-color: #f2c6be; background: #fff7f5; }
.reuse-exam-dialog .delete-exam-danger { background: #fff0eb; border: 1px solid #f0c5bd; padding: 13px 15px; border-radius: 12px; color: #933529; font-size: 14px; }
.delete-exam-consent { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.delete-exam-consent input { margin: 3px 0 0; flex: none; }
.delete-exam-consent span { flex: 1; }
.fullscreen-entry { padding: 26px 22px; border-radius: 18px; border: 1px solid #d8e4f0; background: linear-gradient(160deg,#f2f7fd,#fff); margin-top: 18px; }
.fullscreen-entry-icon { font-size: 46px; line-height: 1.1; color: #b93828; }
.fullscreen-entry h2 { font-size: 24px; margin: 9px 0; }
.fullscreen-entry p { font-size: 16px; color: #52667d; }
#enter-fullscreen { font-size: 17px; padding: 17px 20px; width: 100%; margin-top: 9px; }
#enter-with-warning { font-size: 14px; padding: 13px; width: 100%; margin-top: 10px; }
.fullscreen-entry .fullscreen-entry-error { margin: 12px 0 0; background: #fff0eb; border-radius: 10px; padding: 13px; color: #933529; font-size: 15px; }
#student-guard-restore { width: 100%; padding: 14px; margin-top: 9px; font-size: 15px; }
.strict-lock-icon { font-size: 52px; margin-bottom: 12px; }
#locked h1 { color:#8d2424; font-size:28px; }
#locked .notice { max-width:660px; margin:18px auto; font-size:16px; line-height:1.65; }
#locked-reenter { padding:15px 20px; margin-top:14px; font-size:16px; }
.strict-current-badge { display:inline-flex; align-items:center; background:#fff3ed; border:1px solid #ffdacb; color:#9b3328; border-radius:24px; font-weight:750; padding:8px 15px; font-size:15px; }
.strict-unlock { margin-left:8px; padding:8px 12px; white-space:nowrap; }
.audit-panel { margin-top:24px; border-top:1px solid #e5eaf0; padding-top:20px; }
.audit-panel h3 { font-size:19px; margin:0; }
.audit-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
.audit-heading button { min-height:40px; font-size:14px; }
.audit-rows { max-height:310px; overflow:auto; border:1px solid #e2e8f0; border-radius:12px; margin-top:12px; }
.audit-entry { display:grid; grid-template-columns:minmax(110px,0.8fr) minmax(180px,2fr) minmax(140px,1fr); gap:10px; align-items:center; padding:12px 14px; border-bottom:1px solid #e6ecf2; font-size:14px; }
.audit-entry:last-child { border-bottom:0; }
.audit-entry strong { color:#9a352f; }
.audit-entry time { color:#657385; font-size:13px; }
@media (max-width:680px) {.audit-entry {grid-template-columns:1fr; gap:4px;}}

@media (max-width: 680px) {
  .brand small { font-size: 10.5px; }
  .hero-copy > p { font-size: 15px; }
  .hero-features { font-size: 13px; }
  .entry-card > p { font-size: 15px; }
  .summary-tile { min-height: 111px; }
  .workspace-topbar { font-size: 11.5px; }
  #teacher .detail .notice { font-size: 14.5px; }
  #student .notice { font-size: 14.5px; }
  .exam-guard-alert-card { padding: 26px 19px; }
  #student-guard-title { font-size: 21px; }
  #student-guard-message { font-size: 16px; }
  .reuse-exam-dialog { padding: 22px 17px; }
  .reuse-exam-actions button { flex: 1 1 150px; }
}
