.generic-test-page .test-intro {
    align-items: center;
}

.generic-test-page .test-totals {
    max-width: 590px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.generic-test-page .test-totals > div {
    min-width: 128px;
    flex: 1 1 128px;
}

.generic-form-grid {
    grid-template-columns: 1.6fr 1.2fr 0.55fr 0.55fr;
}

.generic-form-grid select {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: var(--ink);
}

.generic-form-grid select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(116, 184, 47, 0.15);
}

.generic-layout-settings {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.generic-page-settings {
    grid-template-columns: repeat(2, minmax(170px, 1fr));
    max-width: 520px;
}

.generic-layout-settings input:disabled {
    color: var(--muted);
    background: #edf0eb;
}

.print-choice--red strong {
    background: var(--red-dark);
}

.print-choice--green strong {
    background: var(--green-dark);
}

.print-choice--blue strong {
    background: #087aa5;
}

.exercise-table--green th {
    background: var(--green);
}

.exercise-table--red th {
    background: var(--red);
}

.exercise-table--blue th {
    background: #13a9dc;
}

.worksheet-section--blue .worksheet-heading span {
    color: #087aa5;
}

.cover-rule--blue {
    background: #13a9dc;
}

@media (max-width: 900px) {
    .generic-form-grid {
        grid-template-columns: 1fr 1fr;
    }

    .generic-test-page .test-totals {
        justify-content: flex-start;
    }
}

@media (max-width: 520px) {
    .generic-form-grid,
    .generic-page-settings {
        grid-template-columns: 1fr;
    }

    .generic-test-page .test-totals {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
    }
}

@media print {
    .print-excluded {
        display: none !important;
    }

    .generic-test-page .print-cover {
        min-height: 277mm;
    }
}
