/* Countdown between identity details and the photograph on wide screens. */
body.student-quiz #identityPanel > #startCountdown:not([hidden]) {
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:10px;box-sizing:border-box;width:min(100%,500px);max-width:500px;
  padding:12px 8px;margin:14px 0 18px;border:0;background:transparent;
  color:#990000;text-align:center;
}
body.student-quiz #startCountdownLabel {
  font-size:15px;font-weight:900;letter-spacing:.04em;line-height:1.4;color:#990000;
}
body.student-quiz #quizStartTimer {
  font-family:ui-monospace,Consolas,monospace;font-size:clamp(36px,4vw,56px);
  font-weight:900;font-variant-numeric:tabular-nums;letter-spacing:.01em;
  line-height:1.15;color:#990000;
}
body.student-quiz.student-profile-open:has(#identityPanel:not([hidden])) #identityPanel {
  position:relative;max-height:none;overflow:visible;
}
body.student-quiz.student-profile-open:has(#identityPanel:not([hidden])) #studentWorkspace {
  container-name:quiz-confirmation;container-type:inline-size;
}
html:has(body.student-profile-open #identityPanel:not([hidden])),
body.student-quiz.student-profile-open:has(#identityPanel:not([hidden])) {
  height:auto;min-height:100dvh;max-height:none;overflow-y:auto!important;
}
body.student-quiz.student-profile-open:has(#identityPanel:not([hidden])) .quiz-access-shell {
  height:auto;min-height:100dvh!important;max-height:none;overflow:visible!important;
}
@media(min-width:801px) {
  body.student-quiz #identityPanel > #startCountdown:not([hidden]) {margin-left:165px;max-width:calc(100% - 165px);}
}
@media(min-width:801px) and (max-height:800px) {
  body.student-quiz #identityPanel > #startCountdown:not([hidden]) {margin-left:145px;max-width:calc(100% - 145px);}
}
/* Use the marked desktop space only when the actual card has enough room. */
@container quiz-confirmation (min-width:1380px) {
  body.student-quiz #identityPanel > #startCountdown:not([hidden]) {
    position:absolute;top:50%;right:310px;transform:translateY(-50%);
    width:280px;max-width:280px;margin:0;
  }
  body.student-quiz #quizStartTimer {font-size:52px;}
}
@media(max-width:800px) {
  body.student-quiz #identityPanel > #startCountdown:not([hidden]) {
    width:100%;max-width:100%;margin-left:0;margin-right:0;
  }
}
