body {
    margin: 0;
    background: #f4f1e8;
    color: #222;
    font-family: Arial, sans-serif;
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 18px;
    background: #4b2e13;
    color: white;
}

header a {
    color: white;
}

.wrap {
    max-width: 1180px;
    margin: 18px auto;
    padding: 0 14px;
}

.card {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #d8ccb6;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 6px #0001;
}

.splash-card {
    position: relative;
    overflow: hidden;
    min-height: 360px;
    margin-bottom: 18px;
    border: 1px solid #d8ccb6;
    border-radius: 16px;
    background: #2b1b0c;
    box-shadow: 0 2px 8px #0002;
}

.splash-image {
    display: block;
    width: 100%;
    min-height: 360px;
    object-fit: cover;
}

.splash-login-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(90%, 520px);
    padding: 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    text-align: center;
    transform: translate(-50%, -50%);
}

.splash-login-box h1 {
    margin-top: 0;
}

.splash-buttons {
    justify-content: center;
}

.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
}

input,
select,
textarea,
button {
    box-sizing: border-box;
    padding: 8px;
    border: 1px solid #bba98d;
    border-radius: 8px;
    font-size: 15px;
}

input,
select,
textarea {
    width: 100%;
}

input[type="image"] {
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
}

textarea {
    min-height: 70px;
}

button,
.btn {
    display: inline-block;
    padding: 8px 11px;
    border: 0;
    border-radius: 8px;
    background: #6c451f;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.btn2 {
    background: #1f5f6c;
}

.danger {
    background: #a73524;
}

.muted {
    color: #666;
    font-size: 13px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.test-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-top: 1px solid #eee;
}

.pill {
    display: inline-block;
    margin-left: 4px;
    padding: 2px 8px;
    border-radius: 99px;
    background: #efe4cf;
    font-size: 12px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

td,
th {
    padding: 7px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.qr {
    width: 220px;
    height: 220px;
    border: 1px solid #ddd;
}

.small {
    font-size: 13px;
}

.question {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #e6dccb;
    border-radius: 10px;
    background: #fffdf8;
}

.payment-card {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.reading-passage {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
    font-size: 1.05em;
    line-height: 1.6;
}

.reading-passage p {
    margin: 0 0 14px;
}

.reading-passage ul,
.reading-passage ol {
    margin-top: 6px;
    margin-bottom: 14px;
    padding-left: 32px;
}

.reading-passage blockquote {
    margin: 10px 0 14px 24px;
    padding-left: 12px;
    border-left: 4px solid #ddd;
}

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

    .test-row {
        grid-template-columns: 1fr;
    }
}

@media print {
    header,
    .noprint,
    .btn,
    button {
        display: none !important;
    }

    .card {
        border: 0;
        box-shadow: none;
    }

    .wrap {
        max-width: none;
    }
}
