/* Persistent green "writing uploaded → Review Corrections" banner shown after
 * a writing scan is committed on scan-review.html / scan-exams.html. Created
 * dynamically by /js/scan-exams/writing-handoff.js. Colours mirror the
 * .success-message banner on students-writing.html for consistency. */

.writing-upload-banner {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  max-width: min(560px, calc(100vw - 24px));
  background-color: #efe;
  color: #060;
  padding: 0.85rem 2.4rem 0.85rem 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-align: center;
  font-size: 0.95rem;
}

.writing-upload-banner[hidden] {
  display: none;
}

/* On a phone the toast spans the full width and tucks under the top edge —
   a centred 560px block looked like a stray card on a narrow screen. */
@media (max-width: 600px) {
  .writing-upload-banner {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    max-width: none;
    width: 100%;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  }
}

.writing-upload-banner a {
  color: #502f77;
  font-weight: bold;
  text-decoration: underline;
}

.writing-upload-banner-close {
  position: absolute;
  top: 6px;
  right: 10px;
  padding: 0;
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  color: #060;
  cursor: pointer;
}
