/* My records: history list and attempt review. */
.progress-page{max-width:1152px;margin:0 auto;padding:8px 32px 64px}
.progress-heading{margin-bottom:28px}
.progress-heading h1{margin:0 0 8px;font-size:28px;outline:none}
.progress-heading p{margin:0;color:var(--muted);font-size:14px;line-height:1.6}
.progress-panel{padding:28px;border:1px solid var(--line);border-radius:14px;background:#fff}
.progress-empty{display:grid;justify-items:start;gap:14px}
.progress-empty p{margin:0;color:var(--text);font-size:14px;line-height:1.6}
.progress-muted{color:var(--muted);font-size:13px}
.progress-button{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 14px;border:1px solid var(--line-strong);border-radius:8px;background:#fff;color:var(--accent);font:inherit;font-size:13px;font-weight:600;cursor:pointer;white-space:nowrap}
.progress-button:hover{background:var(--accent-soft)}
.progress-button.primary{border-color:var(--accent);background:var(--accent);color:#fff}
.progress-button.primary:hover{background:var(--accent-hover)}
.progress-button.subtle{border-color:var(--line);color:var(--text);font-weight:500}
.progress-link{padding:0;border:0;background:none;color:var(--accent);font:inherit;cursor:pointer;text-decoration:underline}
.progress-button:focus-visible,.progress-link:focus-visible,.progress-tabs button:focus-visible,.progress-attempt-link:focus-visible,.progress-back:focus-visible{outline:2px solid var(--accent);outline-offset:2px}

.progress-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:28px}
.attempt-stats{grid-template-columns:repeat(4,minmax(0,1fr))}
.progress-stat{display:grid;gap:6px;padding:20px;border:1px solid var(--line);border-radius:14px;background:#fff}
.progress-stat b{font-size:28px;line-height:1;color:var(--ink)}
.progress-stat span{font-size:12px;color:var(--muted)}
.progress-section{margin-bottom:32px}
.progress-section h2{margin:0 0 14px;font-size:16px}
.progress-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.progress-section-head h2{margin:0}
.progress-company-logo{display:grid;place-items:center;flex:none;width:52px;height:36px}
.progress-company-logo img{max-width:100%;max-height:100%;object-fit:contain}
.progress-logo-fallback{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--accent-soft);color:var(--accent);font-weight:700}
.progress-filters{display:flex;gap:10px;flex-wrap:wrap}
.progress-filter{display:grid;gap:4px;font-size:11px;color:var(--muted)}
.progress-filter select{min-height:36px;min-width:150px;padding:6px 10px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font:inherit;font-size:13px}
.progress-attempts{display:grid;gap:10px;margin:0;padding:0;list-style:none}
.progress-attempt{border:1px solid var(--line);border-radius:12px;background:#fff}
.progress-attempt:hover{border-color:var(--line-strong);background:var(--surface-subtle)}
.progress-attempt-link{display:grid;grid-template-columns:52px minmax(0,1fr) auto 12px;align-items:center;gap:16px;padding:16px 18px;color:inherit;text-decoration:none;border-radius:12px}
.progress-attempt-arrow{width:8px;height:8px;border-top:1.5px solid var(--muted);border-right:1.5px solid var(--muted);transform:rotate(45deg)}
.progress-attempt-main{display:grid;gap:3px;min-width:0}
.progress-attempt-main>b{font-size:14px}
.progress-attempt-main>span{font-size:12px;color:var(--muted)}
.progress-meta{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.progress-chip{display:inline-block;padding:2px 8px;border-radius:999px;background:var(--bg);color:var(--text);font-size:11px;font-weight:500}
.progress-chip.timed{background:#fff2e2;color:#9a4f00}
.progress-chip.practice{background:var(--accent-soft);color:var(--accent)}
.progress-attempt-score{display:grid;justify-items:end;gap:2px;min-width:96px;font-size:12px;color:var(--muted)}
.progress-score{font-size:22px;color:var(--ink)}
.progress-score.muted{color:var(--muted)}
.progress-more{margin:16px auto 0;display:flex}
.progress-back{display:inline-flex;align-items:center;gap:8px;margin:0 0 20px;padding:6px 0;border:0;background:none;color:var(--accent);font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.attempt-heading{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:16px}
.attempt-heading h1{font-size:24px}
.attempt-heading p{margin:0 0 6px}
.attempt-section{margin-bottom:28px}
.attempt-section-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px}
.attempt-section-head h2{margin:0;font-size:16px}
.attempt-section-head span{font-size:13px;color:var(--muted)}

.progress-tabs{display:inline-flex;gap:4px;padding:4px;margin-bottom:20px;border-radius:10px;background:#e6ecf6}
.progress-tabs button{display:flex;align-items:center;gap:8px;min-height:36px;padding:8px 16px;border:0;border-radius:7px;background:none;color:var(--muted);font:inherit;font-size:13px;cursor:pointer}
.progress-tabs button span{min-width:22px;padding:1px 7px;border-radius:999px;background:#fff;color:var(--muted);font-size:11px}
.progress-tabs button[aria-pressed="true"]{background:var(--accent);color:#fff;font-weight:600}
.progress-tabs button[aria-pressed="true"] span{color:var(--accent)}
.mq-list{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.mq-card{min-width:0;padding:20px;border:1px solid var(--line);border-left-width:4px;border-radius:12px;background:#fff}
.mq-card.status-correct{border-left-color:#3aa66a}
.mq-card.status-wrong,.mq-card.status-unanswered{border-left-color:#d64545}
.mq-card.status-unscored{border-left-color:var(--line-strong)}
.mq-card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.mq-card-head b{font-size:14px}
.mq-status{padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.mq-status.correct{background:#effaf3;color:#1d7a41}
.mq-status.wrong{background:#fdf1f1;color:#a12626}
.mq-status.unanswered{background:#fff2e2;color:#9a4f00}
.mq-status.unscored{background:var(--bg);color:var(--muted)}
.mq-body{font-size:14px;line-height:1.65;color:var(--text)}
.mq-body p{margin:0 0 10px}
.mq-title{margin:0 0 8px;font-size:14px}
.mq-intro{color:var(--muted);font-size:13px}
.mq-prompt{font-weight:600;color:var(--ink)}
.mq-material{margin:0 0 12px;padding:12px 14px;border-radius:10px;background:var(--surface-subtle)}
.mq-material h5{margin:0 0 6px;font-size:12px;color:var(--muted)}
.mq-material .tg-material-chart{width:100%;max-width:560px;height:auto}
.mq-image{display:block;max-width:100%;max-height:420px;margin:0 0 12px;border:1px solid var(--line);border-radius:8px}
.mq-table-wrap{overflow-x:auto;margin:0 0 12px}
.mq-table{border-collapse:collapse;font-size:12px;min-width:50%}
.mq-table caption{text-align:left;font-weight:600;margin-bottom:6px;color:var(--ink)}
.mq-table th,.mq-table td{padding:6px 10px;border:1px solid var(--line);text-align:left;vertical-align:top}
.mq-table th{background:var(--bg)}
.mq-options{display:grid;gap:6px;margin:4px 0 0;padding:0;list-style:none}
.mq-options li{display:flex;gap:10px;align-items:flex-start;padding:8px 12px;border:1px solid var(--line);border-radius:8px}
.mq-option-id{flex:none;width:22px;font-weight:600;color:var(--muted)}
.mq-options li.is-correct{border-color:#9ad3ae;background:#effaf3}
.mq-options li.is-correct .mq-option-id{color:#1d7a41}
.mq-options li.is-chosen{border-color:#f0b4b4;background:#fdf1f1}
.mq-options li.is-chosen .mq-option-id{color:#a12626}
.mq-notice{padding:10px 12px;border-radius:8px;background:var(--bg);color:var(--muted);font-size:13px}
.mq-answers{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:14px 0 0}
.mq-answer{padding:10px 12px;border-radius:8px}
.mq-answer dt{font-size:11px;margin-bottom:2px}
.mq-answer dd{margin:0;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.mq-answer.wrong{background:#fdf1f1;color:#a12626}
.mq-answer.right{background:#effaf3;color:#1d7a41}
.mq-answer.neutral{background:var(--bg);color:var(--text)}
.mq-explanation{margin-top:12px;padding:12px 14px;border-left:3px solid var(--accent);background:var(--surface-subtle);font-size:13px;line-height:1.65}
.mq-explanation h4{margin:0 0 4px;font-size:12px;color:var(--accent)}
.mq-explanation p{margin:0}

@media(max-width:860px){.attempt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.attempt-heading{grid-template-columns:auto minmax(0,1fr)}.attempt-heading>.progress-button{grid-column:1/-1;justify-self:start}}
@media(max-width:560px){.progress-page{padding:4px 16px 48px}.progress-heading h1{font-size:23px}.progress-stat{padding:14px}.progress-stat b{font-size:22px}.progress-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.attempt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.progress-attempt-link{grid-template-columns:minmax(0,1fr) auto;padding:14px;gap:12px}.progress-attempt-link>.progress-company-logo,.progress-attempt-arrow{display:none}.attempt-heading>.progress-company-logo{display:none}.attempt-heading{grid-template-columns:1fr}.mq-answers{grid-template-columns:1fr}.progress-tabs{display:flex}.progress-tabs button{flex:1;justify-content:center;padding:8px 8px}.mq-card{padding:16px 14px}.progress-filter select{min-width:0;width:100%}.progress-filters,.progress-filter{flex:1}.progress-section-head{flex-direction:column;align-items:stretch}}
