* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Georgia, serif;
    font-size: 16px;
    line-height: 1.7;
    background: #f9f7f4;
    color: #222;
}

#timer-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 80px 24px 60px;
}

h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

h2 {
    font-size: 22px;
    margin: 32px 0 12px;
    color: #1a1a2e;
    border-left: 4px solid #2e75b6;
    padding-left: 12px;
}

.instructions {
    color: #555;
    margin-bottom: 32px;
    font-style: italic;
}

.passage-block {
    background: white;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.passage-text p {
    margin-bottom: 14px;
    text-indent: 24px;
}

.questions {
    margin-top: 32px;
    border-top: 2px solid #eee;
    padding-top: 24px;
}

.question {
    margin-bottom: 32px;
}

.question-text {
    margin-bottom: 12px;
    font-size: 16px;
}

.choices {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-left: 20px;
}

.choice-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fafafa;
    transition: background 0.15s;
}

.choice-label:hover {
    background: #eef4ff;
    border-color: #2e75b6;
}

.choice-label input[type="radio"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.choice-letter {
    font-weight: bold;
    flex-shrink: 0;
}

.cr-question textarea {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    font-family: Georgia, serif;
    border: 1px solid #ccc;
    border-radius: 6px;
    resize: vertical;
    margin-top: 10px;
}

.credit-note {
    color: #666;
    font-style: italic;
    font-size: 14px;
    margin-bottom: 6px;
}

.submit-section {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    border-top: 2px solid #eee;
}

.button {
    display: inline-block;
    background: #2e75b6;
    color: white;
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    margin: 0 8px;
}

.button:hover {
    background: #1a5a96;
}

.button.secondary {
    background: #888;
}

.score-summary {
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    margin: 24px 0 40px;
}

.big-score {
    font-size: 52px;
    font-weight: bold;
    margin: 12px 0 4px;
}

.result-item {
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.result-item.correct {
    background: #f0fff4;
    border-color: #27ae60;
}

.result-item.incorrect {
    background: #fff5f5;
    border-color: #e74c3c;
}

.correct-answer {
    color: #27ae60;
    margin-top: 6px;
}

.tagline {
    color: #555;
    font-style: italic;
    margin-bottom: 40px;
}

.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.test-card {
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.test-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.test-card p {
    color: #666;
    font-size: 14px;
    margin-bottom: 6px;
}

.test-card .button {
    margin-top: 16px;
    display: block;
    text-align: center;
}

.cr-review-block {
    background: white;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 32px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    border-left: 4px solid #2e75b6;
}

.cr-question-num {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #1a1a2e;
}

.credit-badge {
    background: #2e75b6;
    color: white;
    font-size: 13px;
    padding: 2px 10px;
    border-radius: 12px;
    margin-left: 10px;
    font-weight: normal;
}

.cr-prompt {
    margin-bottom: 16px;
    font-style: italic;
    color: #444;
}

.cr-student-response {
    background: #f9f7f4;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    min-height: 80px;
}

.cr-rubric {
    margin-bottom: 20px;
}

.cr-rubric p {
    margin-bottom: 8px;
}

.rubric-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 14px;
}

.score-label {
    font-weight: bold;
    flex-shrink: 0;
    width: 40px;
}

.score-2 { background: #f0fff4; border-left: 3px solid #27ae60; }
.score-1 { background: #fff9e6; border-left: 3px solid #f39c12; }
.score-0 { background: #fff5f5; border-left: 3px solid #e74c3c; }

.cr-model {
    background: #eef4ff;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
    border-left: 3px solid #2e75b6;
    font-size: 15px;
}

.cr-score-entry {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.score-select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    cursor: pointer;
}

.cr-total-block {
    text-align: right;
    padding: 16px 0;
    font-size: 16px;
    border-top: 2px solid #eee;
    margin-bottom: 32px;
}

.final-score-block {
    background: #2c3e50;
    color: white;
    border-radius: 8px;
    padding: 28px;
    margin-bottom: 32px;
}

.final-score-block p {
    font-size: 16px;
    margin-bottom: 8px;
}

.grand-total {
    font-size: 20px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.2);
}