/* Visible before navigation/forms, in normal flow so controls are never covered. */
.testing-environment {
    box-sizing: border-box;
    width: 100%;
    color: #211a00;
    background: #ffd54f;
    border-top: 5px solid #211a00;
    border-bottom: 5px solid #211a00;
    padding: 1rem;
    font-family: system-ui, sans-serif;
    text-align: center;
    overflow-wrap: anywhere;
}

.testing-environment-inner { max-width: 80rem; margin: 0 auto; }
.testing-environment-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem 0.75rem;
    margin: 0 0 0.35rem;
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 800;
    line-height: 1.4;
}
.testing-environment-label {
    background: #211a00;
    color: #fff;
    border-radius: 0.25rem;
    padding: 0.15rem 0.6rem;
    font-size: 0.875em;
    letter-spacing: 0.04em;
}
.testing-environment-message { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.5; }

/* Keep a test QR label and its warning together on the existing A4 print page. */
@media print {
    .testing-environment ~ .qr-sheet { min-height: 0; }
}
