/* Live unanswered-question confirmation */
.exam-submit-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(10, 27, 57, .58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.exam-submit-dialog {
  width: min(100%, 520px);
  border: 1px solid rgba(16, 42, 86, .16);
  border-radius: 20px;
  padding: 26px;
  background: #fffefa;
  color: #142036;
  box-shadow: 0 24px 70px rgba(10, 27, 57, .28);
}
.exam-submit-dialog-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #fff5dc;
  color: #8a5a00;
  font-size: 1.25rem;
  font-weight: 900;
}
.exam-submit-dialog h2 {
  margin: 0 0 10px;
  color: #102a56;
  font-size: 1.55rem;
  line-height: 1.2;
}
.exam-submit-dialog p {
  margin: 0;
  color: #4f6074;
  line-height: 1.55;
}
.exam-submit-dialog p + p { margin-top: 9px; }
.exam-submit-dialog strong { color: #142036; }
.exam-submit-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
.exam-submit-dialog button {
  min-height: 44px;
  border-radius: 999px;
  padding: 10px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.exam-submit-dialog-cancel {
  border: 1px solid #9aabb9;
  background: #fff;
  color: #102a56;
}
.exam-submit-dialog-cancel:hover { background: #f2f6f8; }
.exam-submit-dialog-confirm {
  border: 1px solid #102a56;
  background: #102a56;
  color: #fff;
  box-shadow: 0 5px 14px rgba(16, 42, 86, .18);
}
.exam-submit-dialog-confirm:hover { background: #0a1b39; }
body.exam-submit-dialog-open { overflow: hidden; }

/* Slightly refined native system typography */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Clearer active state for writing fields */
.writing-task textarea:focus {
  border-color: #45aeb8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 165, 181, .13), 0 3px 10px rgba(16, 42, 86, .05);
}

.writing-composer {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.writing-composer:focus-within {
  border-color: #45aeb8;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 165, 181, .13), 0 3px 10px rgba(16, 42, 86, .05);
}

.writing-composer textarea:focus {
  box-shadow: none;
}

/* Distinguish official exam instructions from platform guidance */
.part-intro {
  position: relative;
  border: 1px solid rgba(16, 42, 86, .14);
  border-left: 4px solid #102a56;
  border-radius: 0 11px 11px 0;
  background: #f7f8fb;
  padding: 15px 17px 16px;
}

.part-intro::before {
  content: "Instruções do exame";
  display: block;
  margin-bottom: 6px;
  color: #52637a;
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.part-intro h3 {
  margin-bottom: 6px;
  border-left: 0;
  padding-left: 0;
}

.notice-banner,
.grading-panel {
  border-left: 4px solid #00a5b5;
}

.notice-banner > strong::after {
  content: "Orientações da plataforma";
  margin-left: auto;
  color: #007f8c;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 620px) {
  .notice-banner > strong::after {
    display: none;
  }
}

/* Content-sized desktop summary metrics */
@media (min-width: 901px) {
  .exam-summary-strip {
    grid-template-columns: repeat(6, max-content);
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  .exam-summary-strip { justify-content: stretch; }
}

@media (max-width: 520px) {
  .exam-submit-dialog { padding: 22px 18px; }
  .exam-submit-dialog-actions,
  .exam-submit-dialog-actions button { width: 100%; }
}
