.tool-copyright {
  margin: 32px auto 20px;
  padding: 14px 20px;
  width: 100%;
  max-width: 1180px;
  align-self: stretch;
  color: #64748b;
  font: 550 10px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  text-align: center;
}

.tool-copyright span {
  display: inline-block;
  padding-top: 10px;
  border-top: 1px solid rgba(100, 116, 139, 0.25);
}

/* CELPIP uses locked, full-screen launcher and test containers. Keep the notice
   visible without adding an interactive control over the test workspace. */
body.launcher-active .tool-copyright,
body.test-active .tool-copyright {
  position: static;
  z-index: auto;
  margin: 0;
  max-width: none;
  min-height: 26px;
  padding: 4px 12px max(4px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 -1px 5px rgba(15, 23, 42, 0.12);
  pointer-events: none;
}

body.launcher-active .tool-copyright span,
body.test-active .tool-copyright span {
  padding-top: 0;
  border-top: 0;
}

/* Reserve a separate strip below CELPIP's locked workspace. This ensures the
   copyright notice never overlays Answer Key, Reset, navigation, or buttons. */
body.test-active .test-wrapper,
body.launcher-active .test-wrapper {
  min-height: calc(100dvh - 52px);
  height: calc(100dvh - 52px);
}

body.test-active .test-area,
body.launcher-active .test-area {
  min-height: 0;
  height: auto;
  flex: 1 1 auto;
}

body.test-active #testPhase,
body.launcher-active #testPhase {
  min-height: 0;
  height: 100%;
}
