.exam-container { max-width: 1000px; margin: 0 auto; padding: 24px; padding-top: 56px; min-height: 100vh; display: flex; flex-direction: column; }
.exam-header {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 16px 24px; position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
}
.exam-header h2 { font-size: 18px; }
.timer { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.timer.warning { color: var(--danger); animation: pulse 1s infinite; }

.section-nav {
  display: flex; gap: 8px; padding: 12px 24px;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.section-nav button {
  padding: 8px 16px; border-radius: 20px; border: 2px solid var(--border);
  background: var(--surface); cursor: pointer; font-weight: 600;
}
.section-nav button.active { border-color: var(--primary); background: var(--primary-light); }
.section-nav button.completed { border-color: var(--success); color: var(--success); }

.question-block {
  background: var(--surface); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 24px; margin-bottom: 20px;
}
.question-block h3 { font-size: 16px; margin-bottom: 16px; }
.question-block audio { width: 100%; margin-bottom: 16px; border-radius: var(--radius-sm); }

.question-number {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff; font-size: 13px; font-weight: 700;
  text-align: center; line-height: 28px; margin-right: 10px;
}

.exam-actions {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; background: var(--surface); border-top: 1px solid var(--border);
  position: sticky; bottom: 0;
}

.exit-btn { background: none; border: 2px solid var(--danger); color: var(--danger); }
.submit-btn { background: var(--primary); color: #fff; }

/* Timer bar */
.timer-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--surface); border-bottom: 2px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px; height: 56px;
}
.timer-bar .exam-title { font-size: 14px; font-weight: 600; text-transform: uppercase; color: var(--text-secondary); }
.timer-bar .section-name { font-size: 16px; font-weight: 700; color: var(--primary); }
.timer-display {
  font-family: "SF Mono", Monaco, monospace; font-size: 28px; font-weight: 700;
  letter-spacing: 2px; color: var(--text); min-width: 120px; text-align: center;
}
.timer-display.warning { color: var(--warning); }
.timer-display.danger { color: var(--danger); animation: pulse 1s infinite; }

/* Exam content layout */
.exam-main { flex: 1; max-width: 960px; margin: 0 auto; width: 100%; padding: 32px 24px; }
.exam-content { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.exam-content h3 { font-size: 18px; color: var(--primary); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 2px solid var(--border-light); }
.exam-content h4 { font-size: 15px; margin: 24px 0 12px; color: var(--text-secondary); }

/* Passages */
.passage { background: #fafafa; border: 1px solid var(--border-light); padding: 20px; margin-bottom: 20px; border-radius: var(--radius-sm); }
.passage h5 { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; text-transform: uppercase; }

/* Question blocks in exam */
.question-block { border: 1px solid var(--border-light); padding: 20px; margin-bottom: 16px; background: var(--surface); border-radius: var(--radius-sm); }
.question-block .q-num { font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 8px; text-transform: uppercase; }
.question-block .q-text { font-size: 15px; margin-bottom: 14px; }
.question-block input[type="text"] { width: 100%; max-width: 400px; padding: 10px 12px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; background: var(--surface); color: var(--text); }
.question-block input[type="text"]:focus { outline: none; border-color: var(--primary); }

/* Options */
.options { display: flex; flex-direction: column; gap: 10px; }
.option-label input[type="radio"] { margin-top: 2px; }
.option-label.selected { border-color: var(--primary); background: var(--primary-light); }
.option-label.correct-option { border-color: var(--success); background: #f0fdf4; }

/* Audio */
.audio-box { background: #fafafa; border: 1px solid var(--border-light); padding: 20px; margin-bottom: 24px; text-align: center; border-radius: var(--radius-sm); }
.audio-box audio { width: 100%; max-width: 600px; }

/* Writing */
.writing-task { background: #fafafa; border: 1px solid var(--border-light); padding: 20px; margin-bottom: 24px; border-radius: var(--radius-sm); }
.writing-task pre { white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.7; color: var(--text-secondary); }
.writing-editor { width: 100%; min-height: 400px; padding: 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); font-size: 15px; line-height: 1.7; resize: vertical; font-family: inherit; background: var(--surface); color: var(--text); }
.writing-editor:focus { outline: none; border-color: var(--primary); }
.word-count { text-align: right; font-size: 13px; color: var(--text-muted); margin-top: 8px; }

/* Speaking */
.speaking-card { background: var(--surface); border: 2px solid var(--border); padding: 28px; margin-bottom: 20px; border-radius: var(--radius); }
.speaking-card .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.speaking-card .card-header h4 { font-size: 18px; margin: 0; }
.role-badge { font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 6px 12px; border-radius: var(--radius-sm); }
.role-badge.candidate { background: #dbeafe; color: #1e40af; }
.role-badge.roleplayer { background: #dcfce7; color: #166534; }
.speaking-card h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-secondary); margin-bottom: 8px; }
.speaking-card p, .speaking-card ul { margin-bottom: 16px; }
.speaking-card ul { padding-left: 20px; }
.speaking-card li { margin-bottom: 8px; }

/* Navigation */
.card-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border-light); }

/* Practice toolbar */
.practice-toolbar { background: #f8f9ff; border-bottom: 1px solid #d6dfff; padding: 10px 24px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: center; }

/* Submit bar */
.submit-bar { position: fixed; bottom: 0; left: 0; right: 0; background: var(--surface); border-top: 2px solid var(--border); padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; z-index: 100; }
.submit-bar .progress-info { font-size: 14px; color: var(--text-secondary); }

/* PDF fallback */
.pdf-fallback { margin: 16px 0; padding: 16px; background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius-sm); }

/* Practice question view */
.practice-question-view { padding: 24px 0; }
