/* Exam Progress & History panel and the read-only review view. */
.ep-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.ep-card { background: #fff; border: 1px solid #d9e2ea; border-radius: 12px; padding: 1.1rem; box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); }
.ep-card-head { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.7rem; }
.ep-card-head h3 { margin: 0; font-size: 1.05rem; color: var(--blue); }
.ep-badge { padding: 0.2rem 0.65rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; white-space: nowrap; }
.ep-badge-idle { background: #eef2f5; color: var(--muted); }
.ep-badge-active { background: #fff3d6; color: #8a5a00; }
.ep-badge-done { background: #d9f3ee; color: #0b6b62; }
.ep-stats { display: flex; gap: 1.2rem; margin: 0 0 0.8rem; }
.ep-stats dt { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ep-stats dd { margin: 0; font-weight: 700; }
.ep-empty, .ep-note, .ep-message { margin: 0 0 0.8rem; color: var(--muted); font-size: 0.9rem; }
.ep-trends { list-style: none; margin: 0 0 0.6rem; padding: 0; display: grid; gap: 0.4rem; }
.ep-trend { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 3.6rem; align-items: center; gap: 0.6rem; font-size: 0.82rem; }
.ep-trend-bar { height: 8px; border-radius: 4px; background: #e6edf2; overflow: hidden; }
.ep-trend-bar span { display: block; height: 100%; background: var(--teal); }
.ep-trend.is-weak .ep-trend-bar span { background: var(--red); }
.ep-weak-tag { font-style: normal; font-weight: 700; color: var(--red); font-size: 0.7rem; margin-left: 0.3rem; }
.ep-trend-value { text-align: right; font-variant-numeric: tabular-nums; }
.ep-more, .ep-history { margin-top: 0.6rem; font-size: 0.88rem; }
.ep-more summary, .ep-history summary { cursor: pointer; color: var(--blue); font-weight: 600; }
.ep-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.8rem; }
.ep-secondary { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
.ep-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1rem; }
.ep-tab { padding: 0.4rem 1rem; border: 1px solid #d9e2ea; border-radius: 999px; background: #fff; color: var(--muted); font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; }
.ep-tab:hover { border-color: var(--blue); color: var(--blue); }
.ep-tab:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.ep-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.ep-suite-badge { margin-left: auto; padding: 0.15rem 0.55rem; border-radius: 999px; background: #e4eff7; color: var(--blue); font-size: 0.7rem; font-weight: 700; white-space: nowrap; }
.ep-empty-state { padding: 1.5rem; border: 1px dashed #d9e2ea; border-radius: 12px; background: #fff; text-align: center; color: var(--muted); }
.ep-empty-state p { margin: 0.2rem 0; }
.ep-history ul { list-style: none; margin: 0.5rem 0 0; padding: 0; }
.ep-history-row { display: grid; grid-template-columns: 5.5rem 1fr auto auto; gap: 0.6rem; align-items: center; padding: 0.35rem 0; border-top: 1px solid #edf1f4; }
.ep-history-date { color: var(--muted); }

@media (max-width: 620px) {
    .ep-history-row { grid-template-columns: 1fr 1fr; }
    .ep-trend { grid-template-columns: 1fr 3.6rem; }
    .ep-trend-bar { grid-column: 1 / -1; order: 3; }
}
