:root{font-family:Inter,system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:#172b49;background:#f2f5fa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}h1,h2,h3,p{margin-top:0}h1{font-size:clamp(1.4rem,2.3vw,2rem);line-height:1.2}h2{font-size:1.16rem}.topbar{height:58px;background:white;display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1280px)/2));border-bottom:1px solid #e0e7f2}.brand{display:flex;align-items:center;gap:11px;color:#155ccb}.brand-symbol{height:35px;width:35px;background:#1665db;color:#fff;display:grid;place-items:center;border-radius:10px;font-weight:900;font-size:22px}.brand strong{display:block;font-size:16px}.brand small{display:block;color:#62758c;font-size:10px}.top-badge{font-size:12px;color:#1556af;background:#eff5ff;border-radius:20px;padding:8px 13px}.centered{max-width:620px;margin:36px auto;text-align:center}.hero-icon{background:#e5efff;color:#1763da;font-size:36px;font-weight:800;border-radius:24px;width:72px;height:72px;display:grid;place-items:center;margin:0 auto 18px}.eyebrow{font-size:11px;letter-spacing:2.3px;font-weight:800;color:#1768e8}.lead{color:#62758c;font-size:14px}.pills{display:flex;justify-content:center;gap:10px;margin:28px 0;flex-wrap:wrap}.pills span{border:1px solid #dae4f3;background:#fff;border-radius:12px;padding:12px 16px;font-size:12px;color:#58718c}.pills b{color:#1856b7}.paper{background:#fff;border:1px solid #dfe7f3;border-radius:20px;box-shadow:0 12px 32px rgba(15,41,77,.05)}.entry-paper{padding:27px;text-align:left}.entry-paper label,.login-paper label{display:block;font-size:13px;font-weight:700;margin:10px 0 9px}.entry-paper input:not([type=checkbox]),.login-paper input,.retry-form input,.section-head input{width:100%;border:1px solid #d1ddec;border-radius:11px;padding:13px 14px;outline:none;background:#fff;color:#1f3350}.entry-paper input:focus,.login-paper input:focus,.retry-form input:focus,.section-head input:focus{border-color:#1765d4;box-shadow:0 0 0 3px #deecff}.info{border-radius:13px;background:#f4f7fc;padding:17px;margin:18px 0;border:1px solid #e0e8f5;font-size:12px;line-height:1.7}.info p{margin:8px 0}.checkbox-row{display:flex!important;gap:8px;align-items:center;font-weight:400!important}.primary,.secondary,.finish{border-radius:11px;border:1px solid transparent;padding:12px 17px;font-weight:700;font-size:13px;transition:.15s}.primary{background:#1664dc;color:white}.primary:hover:not(:disabled){background:#0d53c0}.secondary{color:#1459bd;background:white;border-color:#cbdaf1}.secondary:hover{background:#f1f6fe}.finish{background:#172b49;color:white}.full{width:100%}.muted,.hint{color:#6d7f98}.caption,.hint{font-size:11px}.error-text{font-size:12px;color:#d03145;padding-top:10px;min-height:20px}.hidden{display:none!important}main{padding:0 20px 50px}.exam-wrap,.admin-main{max-width:1280px;margin:34px auto}.exam-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:0 0 26px}.exam-head p{margin-bottom:8px}.exam-head h1{margin-bottom:6px}.exam-timers{display:flex;gap:10px;align-items:center}.timer{padding:12px 18px;background:#fff;border-radius:10px;border:1px solid #cfdff4;font-variant-numeric:tabular-nums;color:#185cba;font-weight:800;font-size:20px}.timer.warning{background:#fff2ee;color:#c34232}.warning-chip{padding:12px;border-radius:10px;background:#eef3fa;color:#45607f;font-size:12px;font-weight:700}.exam-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:23px}.question-card{padding:30px;min-height:470px}.question-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:11px}.question-meta strong{color:#1765d4;letter-spacing:1px}.meta-code{color:#71839b}.difficulty{border-radius:20px;background:#f0f4fb;color:#547096;padding:6px 10px}.question-prompt{font-size:15px;line-height:1.75;white-space:pre-wrap;margin-top:27px;color:#21334d}.question-image{display:block;max-width:100%;max-height:480px;object-fit:contain;margin:14px auto 24px;border-radius:8px}.choices{border:0;padding:0;margin:22px 0}.choices legend{color:#71839b;font-size:12px;margin-bottom:14px}.choice{display:flex;align-items:flex-start;gap:12px;padding:14px;margin:9px 0;border-radius:12px;border:1px solid #dee6f3;cursor:pointer;line-height:1.6;font-size:13px}.choice:hover{background:#f5f9ff;border-color:#90b8f6}.choice.selected{background:#e9f2ff;border-color:#1d6bdb;box-shadow:0 0 0 1px #1d6bdb}.choice input{margin-top:4px;accent-color:#1267e5}.choice strong{color:#1765d4;margin-right:6px}.question-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;border-top:1px solid #e5ebf5;margin-top:26px;padding-top:15px;font-size:12px}.sync{display:inline-flex;align-items:center;gap:5px;font-weight:700;font-size:12px}.sync.ready{color:#687c94}.sync.saving{color:#bd821a}.sync.saved{color:#148462}.sync.error{color:#bb3343}.sync.saving::before{content:'';width:11px;height:11px;border:2px solid #e2bd78;border-top-color:#bd821a;border-radius:50%;animation:spin .65s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.nav-buttons{display:flex;justify-content:space-between;margin-top:24px}.sidebar{padding:23px}.sidebar strong{font-size:15px}.sidebar p{font-size:12px}.progress-track{height:8px;border-radius:8px;background:#e9eff8;margin-bottom:18px;overflow:hidden}.progress-track div{width:0;background:#2774e4;height:100%;transition:width .2s}.qgrid{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.qgrid button{height:40px;border:1px solid #d6e1f1;border-radius:9px;background:white;color:#395371;font-size:12px;font-weight:700}.qgrid button.answered{background:#e3f6ef;border-color:#74c5a7;color:#08794f}.qgrid button.current{background:#226bda;color:white;border-color:#226bda}.sidebar hr{border:0;border-top:1px solid #e5ebf5;margin:21px 0}.sidebar .finish{margin-top:14px}.result{max-width:540px;margin:70px auto;padding:40px 28px}.result-icon,.modal-icon{border-radius:50%;display:grid;place-items:center;width:65px;height:65px;background:#ddf5e9;color:#128558;font-size:36px;margin:0 auto 18px}.result-icon.canceled,.modal-icon{background:#ffebe8;color:#bd463a}.result-score{display:flex;flex-direction:column;margin:22px auto;gap:3px}.result-score strong{font-size:46px;color:#1964cb}.result-score span{color:#62758c}.modal-layer{position:fixed;inset:0;background:rgba(12,29,56,.62);display:flex;align-items:center;justify-content:center;padding:18px;z-index:50}.modal{max-width:500px;padding:28px;width:100%;text-align:center}.modal h2{font-size:20px}.modal p{line-height:1.7;font-size:14px;color:#4e6684}.modal .mini{padding:12px;background:#f3f6fb;border-radius:10px;color:#426181;margin:14px 0;font-size:13px}.modal-actions{display:flex;justify-content:center;gap:10px}.toast{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);background:#23344f;color:white;border-radius:12px;padding:15px 22px;max-width:95%;box-shadow:0 12px 28px #0002;z-index:100}.admin-main{padding-top:30px}.login-paper{max-width:420px;padding:32px;text-align:left;margin:auto}.login-paper h1,.login-paper .muted{text-align:center}.login-paper button{margin-top:20px}.admin-header,.section-head{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:19px}.admin-header .muted{font-size:12px}.admin-actions{display:flex;align-items:center;gap:9px}.text-button{border:0;background:none;color:#475f7e;padding:10px}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:13px;margin:24px 0 10px}.stat{border:1px solid #dde6f4;background:white;border-radius:13px;padding:18px}.stat span{display:block;font-size:11px;color:#6a7c98}.stat strong{display:block;font-size:26px;color:#1556b5;margin-top:12px}.table-section{padding:20px;margin:23px 0}.section-head h2{margin:0 0 6px}.section-head p{font-size:12px;margin:0}.section-head input{max-width:265px}.table-scroll{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:12px;text-align:left}th{background:#f1f5fb;color:#526a8a;font-weight:700}td,th{padding:12px;border-bottom:1px solid #e8edf5;white-space:nowrap}td:first-child{max-width:280px;overflow:hidden;text-overflow:ellipsis}.table-link{color:#155dc9;border:0;background:none;padding:0;text-decoration:underline;font-weight:700;cursor:pointer}.status-pill{border-radius:5px;background:#e9f1ff;color:#175ebe;padding:6px 9px;display:inline-block;font-size:11px}.status-pill.CONCLUIDA{background:#e1f6eb;color:#0b7651}.status-pill.CANCELADA,.status-pill.TEMPO_ESGOTADO{background:#fff0ed;color:#c3423a}.retry-form{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.retry-form input{max-width:320px}.detail-modal{max-width:940px;max-height:90vh;overflow:auto;width:100%;padding:24px}.events{font-size:12px;color:#4e617c}.events div{padding:9px 0;border-bottom:1px solid #e9eef6}@media(max-width:850px){.exam-layout{grid-template-columns:1fr}.sidebar{order:-1}.qgrid{grid-template-columns:repeat(10,1fr)}.stats{grid-template-columns:repeat(2,1fr)}.exam-head,.admin-header,.section-head{align-items:flex-start;flex-direction:column}.admin-actions{flex-wrap:wrap}}@media(max-width:540px){main{padding:0 12px 35px}.topbar{padding:0 12px}.centered{margin:22px auto}.entry-paper,.question-card,.sidebar{padding:18px}.qgrid{grid-template-columns:repeat(5,1fr)}.stats{gap:8px}.question-footer{flex-direction:column;align-items:flex-start}.exam-timers{align-items:flex-end;flex-direction:column}.question-meta{gap:5px}.modal-actions{flex-direction:column}}

/* AvaliaTech V2 — Marcação de revisão sem alterar a nota. */
.review-strip{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:18px}
.review-button{display:inline-flex;align-items:center;gap:8px;padding:11px 14px;border:1px solid #e6c86a;border-radius:11px;background:#fffaf0;color:#845b00;font-size:13px;font-weight:750}
.review-button:hover{background:#fff1cc}.review-button:focus-visible,.review-next:focus-visible{outline:3px solid #e2b939;outline-offset:2px}
.review-button.marked{background:#fff0c2;border-color:#dba71c;color:#734c00}
#reviewButtonIcon{font-size:21px;line-height:14px}.review-help{font-size:11px;color:#7d8592}
.qgrid button{position:relative}.qgrid button.review{box-shadow:inset 0 0 0 2px #e2ac13}
.qgrid button.review::after{content:'★';position:absolute;font-size:10px;line-height:1;color:#ad7200;top:-4px;right:-4px;background:#fff3bf;border-radius:50%;height:15px;width:15px;display:grid;place-items:center}
.qgrid button.review.current::after{background:#fff3bf;color:#855300}
.review-counter{font-weight:700;color:#855300;margin:14px 0 7px}
.review-next{font-size:12px;padding:10px;margin-bottom:2px}
.question-notes{display:grid;gap:6px;max-width:520px;margin:20px 0;color:#526a8a;font-size:12px}

.dashboard-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 0;
  margin: 0 0 18px;
  border-bottom: 1px solid #dfe7f3;
  background: rgba(242, 245, 250, .96);
  scrollbar-width: thin;
}

.dashboard-nav > div {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.dashboard-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 13px;
  border: 1px solid #d8e2f1;
  border-radius: 999px;
  background: #fff;
  color: #365273;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-nav a:hover {
  border-color: #9bb9e7;
  background: #f4f8ff;
  color: #1459bd;
}

.dashboard-nav a:focus-visible,
.admin-actions a:focus-visible,
button:focus-visible,
.table-link:focus-visible {
  outline: 3px solid #8ab7fa;
  outline-offset: 2px;
}

#dashboard [id^="admin"],
#dashboard [id^="teacher"] {
  scroll-margin-top: 76px;
}

.table-scroll tbody tr:hover {
  background: #f8faff;
}

.table-empty-state {
  padding: 22px 16px;
  color: #6d7f98;
  text-align: center;
  white-space: normal;
}

.table-section {
  box-shadow: 0 8px 26px rgba(15, 41, 77, .045);
}

.admin-header {
  align-items: flex-start;
}

.admin-header h1 {
  margin-bottom: 8px;
}

.admin-header .muted {
  line-height: 1.6;
}

.admin-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.section-head {
  align-items: flex-start;
}

.section-head > div {
  min-width: 0;
}

.section-head p {
  line-height: 1.6;
}

.stats .stat {
  min-width: 0;
}

.stats .stat strong {
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .admin-main {
    margin-top: 20px;
  }

  .admin-header,
  .section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .admin-actions > * {
    min-height: 42px;
  }

  .dashboard-nav {
    margin-right: -20px;
    margin-left: -20px;
    padding-right: 20px;
    padding-left: 20px;
  }

  .table-section {
    padding: 16px;
    border-radius: 16px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .stat {
    padding: 14px;
  }

  .stat strong {
    font-size: 22px;
  }

  .login-paper {
    padding: 25px 21px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
.question-notes label{font-weight:700}
.question-notes textarea{width:100%;min-height:58px;resize:vertical;border:1px solid #d1ddec;border-radius:9px;padding:9px 11px;color:#1f3350;font:inherit;line-height:1.5}
.question-notes textarea:focus{outline:3px solid #deecff;border-color:#1765d4}

.classroom-exams{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,320px),1fr));gap:16px;margin:20px 0}.classroom-exam{border:1px solid #b8c9dd;border-radius:14px;padding:18px}.classroom-exam .content-actions{display:flex;flex-wrap:wrap;gap:8px}.classroom-actions{margin-top:24px;padding:16px;border:1px solid #b8c9dd;border-radius:12px}.classroom-actions summary{cursor:pointer;font-weight:700}.classroom-actions .content-actions{display:flex;flex-wrap:wrap;gap:10px}#classroomClass{display:block;min-width:200px;padding:10px;margin:8px 0 18px}#classroomMessage:not(:empty){padding:14px;border-left:4px solid #1664dc;background:#edf4ff;color:#172b49}
.classroom-selection{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr);gap:18px;margin:20px 0}.classroom-selection label{display:block;font-weight:700;font-size:14px;margin-bottom:8px}.classroom-selection select,#classroomClass{width:100%;min-width:0;max-width:100%;padding:12px;margin:0;border:1px solid #b8c9dd;border-radius:10px;background:var(--surface,#fff);color:inherit;font:inherit}.classroom-current{padding:24px;border:2px solid #8aade0;border-radius:16px;background:#f5f9ff}.classroom-current h3{margin:0}.classroom-current>.content-actions{display:flex;gap:10px;flex-wrap:wrap}.classroom-primary-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:22px 0}.classroom-primary-actions button{width:100%;min-height:48px}.classroom-primary-actions p{font-size:13px;color:#526a8a;line-height:1.5;margin:9px 0 0}.classroom-status{display:inline-block;border-radius:20px;padding:7px 11px;font-size:12px;font-weight:700;background:#e8ecf2;color:#394c66}.classroom-status[data-state="waiting"]{background:#fff0c4;color:#73510a}.classroom-status[data-state="open"]{background:#d9f4e5;color:#13643a}.classroom-exam[data-selected="true"]{border:2px solid #4d82ca;padding:17px}.classroom-exam h4{font-size:15px;margin:0 0 12px}.classroom-exam .muted{margin-top:14px}.classroom-note{font-size:13px;line-height:1.7;color:#526a8a;margin:18px 0 28px}.classroom-operation{display:flex;gap:22px;align-items:center;justify-content:space-between;padding:18px 0;border-bottom:1px solid #b8c9dd}.classroom-operation:last-child{border-bottom:0}.classroom-operation p{font-size:13px;line-height:1.6;max-width:680px;margin:8px 0 0}.classroom-operation button{flex-shrink:0}.classroom-actions>p{margin-top:15px}html[data-theme="dark"] .classroom-current{background:#172b44;border-color:#608fcd}html[data-theme="dark"] .classroom-selection select{background:#17263b;color:#e4edf9}html[data-theme="dark"] .classroom-primary-actions p,html[data-theme="dark"] .classroom-note{color:#b7c7de}@media(max-width:680px){.classroom-selection,.classroom-primary-actions{grid-template-columns:minmax(0,1fr)}.classroom-current{padding:16px}.classroom-operation{align-items:stretch;flex-direction:column}.classroom-current>.content-actions button{width:100%}}
#studentImport label{display:block;font-size:14px;font-weight:700;margin:14px 0 8px}#studentImport input,#studentImport select{max-width:100%;min-width:0;padding:12px;border:1px solid #b8c9dd;border-radius:10px;background:#fff;color:#172b49}#studentImport input[type="file"]{width:100%;font-size:13px}#importPassword{display:block;width:min(100%,420px);margin-bottom:12px}.import-preview-table{max-height:420px;margin:18px 0}#importMessage:not(:empty),#importProgress:not(:empty){padding:14px;border-left:4px solid #1664dc;background:#edf4ff;color:#172b49;margin-top:18px}#studentImport .student-filters{margin-bottom:18px}html[data-theme="dark"] #studentImport input,html[data-theme="dark"] #studentImport select{background:#17263b;color:#e4edf9}
/* Native form controls must follow the selected app theme, not the OS theme. */
:root:not([data-theme="dark"]) {
  color-scheme: light;
}

.workspace-view {
  min-width: 0;
  scroll-margin-top: 20px;
}

.live-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.live-controls { padding: 18px; border: 1px solid #d1ddec; background: #f8faff; border-radius: 13px; margin: 18px 0; }
.live-controls p { font-size: 13px; line-height: 1.6; margin: 12px 0 0; }
.live-control-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto; align-items: end; gap: 14px; }
.live-control-fields > div { display: grid; gap: 8px; min-width: 0; }
.live-control-fields label { color: #526a8a; font-size: 13px; font-weight: 700; }
.live-control-fields select { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #cbdaf1; border-radius: 9px; padding: 10px; background: #fff; color: #1f3350; font: inherit; }
.live-report-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.live-closure-dialog { width: min(900px, calc(100% - 32px)); max-height: 88vh; overflow: auto; padding: 24px; background: #fff; color: #172b49; border: 1px solid #d1ddec; border-radius: 16px; }
.live-closure-dialog::backdrop { background: rgba(12,29,56,.62); }
.live-closure-dialog p { line-height: 1.6; font-size: 14px; }
.live-closure-dialog > button { margin-top: 18px; }
html[data-theme="dark"] .live-controls, html[data-theme="dark"] .live-closure-dialog { background: #17263b; border-color: #3b4d66; color: #e4ebf5; }
html[data-theme="dark"] .live-control-fields label { color: #b7c7de; }
@media (max-width: 680px) { .live-control-fields { grid-template-columns: minmax(0, 1fr); } .live-closure-dialog { padding: 16px; } }
.live-filters > div { display: grid; gap: 8px; min-width: 0; }
.live-filters label { font-size: 13px; font-weight: 700; color: #526a8a; }
.live-filters input, .live-filters select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #cbdaf1; border-radius: 10px; background: #fff; color: #1f3350; font: inherit; }
.live-filters input:focus, .live-filters select:focus { outline: 3px solid #deecff; border-color: #1765d4; }
.live-summary { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 20px 0; }
.live-summary > div { padding: 16px; border: 1px solid #dfe7f3; border-radius: 12px; background: #f8faff; }
.live-summary span { display: block; color: #526a8a; font-size: 12px; }
.live-summary strong { display: block; font-size: 25px; margin-top: 8px; }
.live-mode-tabs{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.live-mode-tabs button[aria-pressed="true"]{box-shadow:0 0 0 2px #aac8f0}.live-mode-tabs button:focus-visible{outline:3px solid #1765d4;outline-offset:3px}#liveExamContext{font-weight:600;line-height:1.7}
.live-summary > button{padding:16px;border:1px solid #cad8e9;border-radius:12px;background:#f8faff;text-align:left;min-width:0;color:inherit}.live-summary > button:hover{border-color:#1765d4}.live-summary > button[aria-pressed="true"]{border:2px solid #1765d4;background:#e7f0ff;padding:15px}.live-summary > button:focus-visible{outline:3px solid #1765d4;outline-offset:3px}html[data-theme="dark"] .live-summary > button{background:#17263b;border-color:#61738a}html[data-theme="dark"] .live-summary > button[aria-pressed="true"]{background:#203f68;border-color:#8dbdff}#liveFilterCount{margin:0;align-self:center}#liveClearFilters{margin-left:auto}
.live-state { display: inline-block; padding: 7px 9px; border-radius: 7px; color: #365273; background: #eef3fa; font-weight: 700; }
.live-RESPONDENDO, .live-CONCLUIDA { background: #e1f6eb; color: #0b7651; }
.live-FORA_DA_TELA, .live-CANCELADA { background: #fff0ed; color: #a12d29; }
.live-SEM_SINAL, .live-TEMPO_ESGOTADO { background: #fff5db; color: #795600; }
#liveUpdated { font-size: 13px; }
#liveStudents small { color: #526a8a; }
html[data-theme="dark"] .live-summary > div { background: #17263b; border-color: #3b4d66; }
html[data-theme="dark"] .live-summary span, html[data-theme="dark"] .live-filters label, html[data-theme="dark"] #liveStudents small { color: #b7c7de; }
@media (max-width: 980px) { .live-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) { .live-filters { grid-template-columns: minmax(0, 1fr); } .live-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.workspace-field { display: grid; gap: 8px; min-width: 0; }
.workspace-field label { color: #526a8a; font-size: 12px; font-weight: 700; }
.workspace-form-disclosure { margin: 18px 0; border: 1px solid #d1ddec; border-radius: 12px; }
.workspace-form-disclosure > summary { cursor: pointer; padding: 16px; font-weight: 700; font-size: 14px; color: #1459bd; }
.workspace-form-disclosure > .content-form { margin: 0; border: 0; border-top: 1px solid #e5ebf5; border-radius: 0 0 12px 12px; }
html[data-theme="dark"] .workspace-field label { color: #c2d0e3; }
html[data-theme="dark"] .workspace-form-disclosure { border-color: #3b4d66; }
html[data-theme="dark"] .workspace-form-disclosure > summary { color: #9ac4ff; }
html[data-theme="dark"] .workspace-form-disclosure > .content-form { border-top-color: #3b4d66; }

.workspace-view > [id] {
  scroll-margin-top: 20px;
}

.workspace-intro {
  padding: clamp(18px, 3vw, 30px);
  margin: 23px 0;
}

.workspace-intro > .muted {
  line-height: 1.7;
  max-width: 800px;
  font-size: 14px;
}

.workspace-steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}

.workspace-step {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding: 20px;
  border: 1px solid #dfe7f3;
  border-radius: 14px;
  background: #f8faff;
}

.workspace-step-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #e5efff;
  color: #1459bd;
  font-weight: 800;
}

.workspace-step strong { font-size: 15px; }
.workspace-step p { margin: 8px 0; color: #526a8a; line-height: 1.65; font-size: 13px; }
.workspace-step-status { color: #526a8a; font-size: 12px; }
.workspace-step a { text-decoration: none; text-align: center; }
.dashboard-nav a[aria-current="page"] { background: #1664dc; border-color: #1664dc; color: #fff; }
.workspace-view h2:focus { outline-offset: 5px; }

html[data-theme="dark"] .workspace-step { background: #17263b; border-color: #3b4d66; }
html[data-theme="dark"] .workspace-step p,
html[data-theme="dark"] .workspace-step-status { color: #b7c7de; }
html[data-theme="dark"] .workspace-step-number { background: #243f64; color: #d2e4ff; }
html[data-theme="dark"] .dashboard-nav a[aria-current="page"] { background: #1664dc; border-color: #4289ed; color: #fff; }

@media (max-width: 680px) {
  .workspace-step { grid-template-columns: 32px minmax(0, 1fr); padding: 16px; gap: 12px; }
  .workspace-step-number { width: 32px; height: 32px; }
  .workspace-step a { grid-column: 2; justify-self: start; max-width: 100%; white-space: normal; }
}
.question-notes span{font-size:11px;color:#71839b}
.choice-option-row{display:flex;align-items:stretch;gap:8px}
.choice-option-row .choice{flex:1;min-width:0}
.choice-option-row.eliminated .choice{color:#a43a43;background:#fff0f0;border-color:#e7aeb2;text-decoration:line-through}
.choice-option-row.eliminated .choice strong{color:#b42332}
.choice-option-row.eliminated .choice input{visibility:hidden}
.eliminate-choice{align-self:center;min-width:78px;padding:9px 11px;border:1px solid #efc3c7;border-radius:9px;color:#ae2535;background:#fff7f7;font-size:11px;font-weight:700}
.eliminate-choice:hover{background:#ffe7e9}
.choice-option-row.eliminated .eliminate-choice{border-color:#bd3341;color:#fff;background:#bd3341}
.eliminate-help{margin:-8px 0 16px;color:#a43a43;font-size:11px}
.student-uc-filter{display:grid;gap:7px;max-width:360px;margin:0 0 18px;color:#526a8a;font-size:12px;font-weight:700;text-align:left}
.student-uc-filter select{padding:9px 10px;border:1px solid #d1ddec;border-radius:9px;background:#fff;color:#1f3350;font:inherit}
@media(max-width:560px){.choice-option-row{gap:5px}.eliminate-choice{min-width:68px;padding:8px 7px}}

.topbar {
  min-height: 58px;
  height: auto;
  gap: 12px;
}

.topbar-actions,
.accessibility-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.topbar-actions {
  flex-wrap: wrap;
}

.accessibility-tools {
  flex: 0 0 auto;
}

.accessibility-button {
  min-height: 36px;
  padding: 7px 10px;
  border: 1px solid #cbdaf1;
  border-radius: 9px;
  background: #fff;
  color: #25415f;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.accessibility-button:hover:not(:disabled) {
  border-color: #8eb2e8;
  background: #f1f6fe;
}

.accessibility-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.text-size-button {
  min-width: 38px;
  font-size: 14px;
}

.theme-toggle {
  white-space: nowrap;
}

body {
  zoom: var(--text-scale, 1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  color: #e4ebf5;
  background: #0b1220;
}

html[data-theme="dark"] body {
  background: #0b1220;
  color: #e4ebf5;
}

html[data-theme="dark"] .topbar,
html[data-theme="dark"] .paper,
html[data-theme="dark"] .stat,
html[data-theme="dark"] .pills span,
html[data-theme="dark"] .timer,
html[data-theme="dark"] .choice,
html[data-theme="dark"] .qgrid button,
html[data-theme="dark"] .student-exam-card,
html[data-theme="dark"] .exam-assignment-item,
html[data-theme="dark"] .accessibility-button {
  border-color: #2b3b54;
  background-color: #131f32;
  color: #e4ebf5;
}

html[data-theme="dark"] .topbar {
  border-bottom-color: #26364e;
}

html[data-theme="dark"] .brand,
html[data-theme="dark"] .brand strong,
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] label,
html[data-theme="dark"] .question-prompt,
html[data-theme="dark"] .exam-assignment-details h3,
html[data-theme="dark"] .table-link {
  color: #e4ebf5;
}

html[data-theme="dark"] .brand small,
html[data-theme="dark"] .muted,
html[data-theme="dark"] .hint,
html[data-theme="dark"] .caption,
html[data-theme="dark"] .exam-assignment-details p,
html[data-theme="dark"] .exam-assignment-classes,
html[data-theme="dark"] .exam-assignment-controls {
  color: #aab9ce;
}

html[data-theme="dark"] .top-badge,
html[data-theme="dark"] .dashboard-nav a,
html[data-theme="dark"] .exam-assignment-chip {
  border-color: #304561;
  background: #1a2b43;
  color: #c7ddff;
}

html[data-theme="dark"] .hero-icon,
html[data-theme="dark"] .info,
html[data-theme="dark"] .warning-chip,
html[data-theme="dark"] .modal .mini,
html[data-theme="dark"] th,
html[data-theme="dark"] .progress-track {
  border-color: #2b3b54;
  background: #1a293e;
  color: #c5d3e7;
}

html[data-theme="dark"] input:not([type="checkbox"]),
html[data-theme="dark"] textarea,
html[data-theme="dark"] select,
html[data-theme="dark"] .exam-assignment-controls select,
html[data-theme="dark"] .content-table-actions select,
html[data-theme="dark"] .exam-filters select,
html[data-theme="dark"] .student-uc-filter select,
html[data-theme="dark"] .exam-assignment-section td select {
  border-color: #3b4d66;
  background-color: #0f1a2b;
  color: #e4ebf5;
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: #9aabc2;
}

html[data-theme="dark"] .secondary {
  border-color: #405a7b;
  background: #17263b;
  color: #c7ddff;
}

html[data-theme="dark"] .secondary:hover:not(:disabled),
html[data-theme="dark"] .accessibility-button:hover:not(:disabled),
html[data-theme="dark"] .dashboard-nav a:hover {
  border-color: #6389bd;
  background: #203653;
}

html[data-theme="dark"] .text-button,
html[data-theme="dark"] .table-link {
  color: #b9d4fa;
}

html[data-theme="dark"] th,
html[data-theme="dark"] td {
  border-bottom-color: #293a52;
}

html[data-theme="dark"] .table-scroll tbody tr:hover,
html[data-theme="dark"] .question-option:hover,
html[data-theme="dark"] .choice:hover {
  background: #182840;
}

html[data-theme="dark"] .choice.selected,
html[data-theme="dark"] .qgrid button.current {
  border-color: #66a3ff;
  background: #1a3b67;
  color: #f0f6ff;
}

html[data-theme="dark"] .qgrid button.answered {
  border-color: #387c66;
  background: #17392f;
  color: #9de4c8;
}

html[data-theme="dark"] .choice-option-row.eliminated .choice,
html[data-theme="dark"] .eliminate-choice {
  border-color: #713b46;
  background: #351e28;
  color: #ffc2c6;
}

html[data-theme="dark"] .exam-assignment-chip .text-button {
  color: #c7ddff;
}

html[data-theme="dark"] .modal-layer {
  background: rgba(0, 0, 0, .76);
}

html[data-theme="dark"] .modal p,
html[data-theme="dark"] .question-footer,
html[data-theme="dark"] .sidebar p {
  color: #bac8da;
}

html[data-theme="dark"] .question-footer,
html[data-theme="dark"] .sidebar hr {
  border-color: #293a52;
}

html[data-theme="dark"] .dashboard-nav {
  border-bottom-color: #293a52;
  background: rgba(11, 18, 32, .96);
}

html[data-theme="dark"] .table-empty-state {
  color: #aab9ce;
}

html[data-theme="dark"] .exam-assignment-section td select,
html[data-theme="dark"] .question-notes textarea {
  border-color: #3b4d66;
  background: #0f1a2b;
  color: #e4ebf5;
}

html[data-theme="dark"] .exam-assignment-section td select:focus,
html[data-theme="dark"] input:focus,
html[data-theme="dark"] textarea:focus,
html[data-theme="dark"] select:focus {
  outline-color: #345d91;
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 10px 16px;
  }

  .topbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .accessibility-button {
    min-height: 40px;
  }

  .theme-toggle {
    flex: 1;
  }
}

@media (max-width: 380px) {
  .topbar-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .accessibility-tools {
    justify-content: flex-start;
  }
}
:root .live-attention{background:#fff6df}
:root[data-theme="dark"] .live-attention{background:#493b20}
.result-review{text-align:left;margin:16px 0}.result-review details{padding:12px;border-bottom:1px solid #d1ddec}.result-review summary{cursor:pointer}
.review-legend{font-size:13px;line-height:1.7;color:#526a8a}.result-review .review-question{border:1px solid #cbd5e1;border-left-width:5px;border-radius:12px;margin:12px 0;padding:15px;background:#f8fafc}.result-review .review-correct{border-left-color:#168049;background:#f0fdf4}.result-review .review-incorrect{border-left-color:#c62828;background:#fff5f5}.review-question summary{line-height:1.7;overflow-wrap:anywhere}.review-question summary:focus-visible{outline:3px solid #1765d4;outline-offset:4px}.review-outcome{display:inline-block;font-size:12px;font-weight:800;border-radius:20px;padding:3px 10px;margin:0 10px 8px 0;background:#e2e8f0;color:#334155}.review-correct .review-outcome{background:#dcfce7;color:#166534}.review-incorrect .review-outcome{background:#fee2e2;color:#991b1b}.review-question .review-answer{padding:12px;border-radius:9px;font-size:14px;line-height:1.7;margin:12px 0;overflow-wrap:anywhere}.review-question .answer-correct{background:#dcfce7;color:#14532d;border-left:3px solid #168049}.review-question .answer-incorrect{background:#fee2e2;color:#991b1b;border-left:3px solid #c62828}.review-question .answer-unanswered{background:#e2e8f0;color:#334155}.question-explanation{font-size:14px;line-height:1.8;border-top:1px solid #b9c8da;margin:16px 0 0;padding-top:14px;overflow-wrap:anywhere}html[data-theme="dark"] .result-review .review-question{background:#17263b;border-color:#61738a}html[data-theme="dark"] .result-review .review-correct{border-left-color:#4ade80}html[data-theme="dark"] .result-review .review-incorrect{border-left-color:#f87171}html[data-theme="dark"] .review-legend{color:#b7c7de}html[data-theme="dark"] .review-question .answer-correct,html[data-theme="dark"] .review-correct .review-outcome{background:#143b2b;color:#bbf7d0}html[data-theme="dark"] .review-question .answer-incorrect,html[data-theme="dark"] .review-incorrect .review-outcome{background:#4b2027;color:#fecaca}html[data-theme="dark"] .review-question .answer-unanswered,html[data-theme="dark"] .review-unanswered .review-outcome{background:#334155;color:#e2e8f0}
.answer-question{min-width:260px;max-width:650px;white-space:normal}.answer-question summary{cursor:pointer;color:#155dc9}.answer-question p{white-space:pre-wrap;line-height:1.65;margin:12px 0}.answer-question-correct{border-left:4px solid #168049;padding:10px;background:#dcfce7;color:#14532d}.answer-question-incorrect{border-left:4px solid #c62828;padding:10px;background:#fee2e2;color:#991b1b}
html[data-theme="dark"] .answer-question summary{color:#93c5fd}html[data-theme="dark"] .answer-question-correct{background:#143b2b;color:#bbf7d0}html[data-theme="dark"] .answer-question-incorrect{background:#4b2027;color:#fecaca}#resultsVersions>strong{display:block;margin-bottom:8px}#resultsVersions>div{margin:6px 0}
.dashboard-mobile-nav { display: none; }
.workspace-shortcuts { margin: 20px 0; }
.workspace-shortcuts a { text-decoration: none; }
.workspace-guide > summary { cursor: pointer; font-weight: 700; padding: 12px 0; }
@media (max-width: 700px) {
  .dashboard-nav { display: none; }
  .dashboard-mobile-nav {
    display: grid; gap: 6px; position: sticky; top: 0; z-index: 20;
    padding: 10px 0; margin-bottom: 14px; font-weight: 700;
    background: #f2f5fa;
  }
  .dashboard-mobile-nav select {
    width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px;
    border: 1px solid #b6c9e4; border-radius: 10px; font: inherit;
    color: #172b49; background: #fff;
  }
  html[data-theme="dark"] .dashboard-mobile-nav { background: #0b1220; }
  html[data-theme="dark"] .dashboard-mobile-nav select { background: #17263b; color: #e2e8f0; border-color: #61738a; }
  .admin-main { padding-top: 18px; }
  .admin-header { margin-bottom: 14px; }
  .admin-header h1 { font-size: 24px; }
}
.question-position{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.question-position #questionTime{font-size:12px;font-weight:400;line-height:1.5}
