/* TSA variants of the existing khảo thí card and pink result summary. */
@font-face{font-family:KTResultRoboto;src:url('images/fonts/roboto/Roboto-vietnamese.woff2?hs_v=eca7e78766eb62e05d6a') format('woff2');font-weight:100 900;font-style:normal;font-display:swap}
.tsa-practice-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;box-shadow:0 1px 3px #0000000d;color:#1e293b}
.tsa-practice-card .kt-event-cover{padding:14px 16px 10px;border-bottom:1px solid #f1f5f9}
.tsa-practice-card .kt-event-title{margin:4px 0 6px;font-size:16px;line-height:1.4;color:#0f2b5c}
.tsa-practice-card .kt-event-body{padding:14px 18px;flex:1}.tsa-practice-card .kt-event-dates{margin:0;display:grid;grid-template-columns:auto minmax(0,1fr);gap:9px 12px;font-size:13px}
.tsa-practice-card dt{margin:0;color:#64748b}.tsa-practice-card dd{margin:0;text-align:right;font-weight:500;overflow-wrap:anywhere}
.tsa-practice-card .kt-event-mode{color:#ff2035;border:1px solid #ffc4cc;border-radius:8px;padding:2px 7px;justify-self:end;line-height:1.2}
.tsa-practice-card .kt-event-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #f1f5f9;background:#fafafa}
.tsa-practice-card .kt-event-result{padding:0;border:0;background:none;color:#ed1238;cursor:pointer;font:inherit;font-size:13px}
.tsa-practice-card .btn-start{display:inline-flex;align-items:center;justify-content:center;margin:0;min-width:116px;width:auto;background:#16a34a;color:#fff;border:0;border-radius:6px;padding:8px 16px;font-size:13px;text-decoration:none}
.tsa-practice-card .btn-start.btn-locked{background:#e2e8f0;color:#64748b}.tsa-practice-card .pr-card-meta{margin:12px 0 0;color:#64748b;font-size:12px}
.tsa-practice-card .pr-card-schedule{margin:8px 0 0;color:#9f1239;font-size:12px;line-height:1.6}
.subject-section .exam-grid:has(.tsa-practice-card){grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.pr-results-dialog{position:fixed;inset:0;margin:auto;padding:0;border:0;border-radius:8px;width:800px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 32px);overflow:hidden;color:#333;font-family:KTResultRoboto,Arial,sans-serif;background:#fff}
.pr-results-dialog:not([open]){display:none}.pr-results-dialog::backdrop{background:#000b}.pr-results-dialog *{box-sizing:border-box}
.pr-results-dialog .kt-result-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 32px)}
.pr-results-dialog .kt-result-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 25px;border-bottom:1px solid #eee}
.pr-results-dialog .kt-result-header h2{margin:0;font-size:16px;font-weight:400;line-height:1.5}
.pr-results-dialog .kt-result-close{border:0;border-radius:50%;background:#909090;color:white;width:18px;height:18px;line-height:16px;padding:0;cursor:pointer;flex-shrink:0}
.pr-result-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 25px 0}.pr-result-notice{margin:0;font-size:13px;color:#64748b}.pr-result-refresh{border:0;background:none;color:#64748b;cursor:pointer;font-size:12px;white-space:nowrap;padding:6px 0}
.pr-attempt-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 30px;padding:16px 25px 25px;overflow-y:auto;overscroll-behavior:contain}
.pr-attempt h3{margin:0 0 9px;font-size:14px;line-height:1.5}.pr-results-dialog .kt-result-summary{background:#fcf0f1;border-radius:20px;padding:20px 16px;min-height:136px;display:flex;flex-direction:column;justify-content:center}
.pr-results-dialog .kt-result-score-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:12px;align-items:center}.pr-results-dialog .kt-result-score{text-align:center;font-size:14px;line-height:21px;font-weight:600}
.pr-results-dialog .kt-result-score p{margin:0 0 6px}.pr-results-dialog .kt-result-total{font-size:32px;line-height:38px;color:#ce1628;display:block;font-weight:600;margin:0}.pr-results-dialog .kt-result-counts h4{margin:0;font-size:11px;line-height:20px}.pr-results-dialog .kt-result-counts p{margin:0;font-size:11px;line-height:24px}
.pr-result-waiting{font-size:15px;color:#9f1239}.pr-results-dialog .kt-result-summary>p,.pr-results-dialog .kt-result-summary>small{font-size:12px;line-height:1.7;margin:8px 0 0}
.pr-compose-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.pr-compose-history{border:1px solid #cbd5e1;background:#fff;border-radius:6px;color:#16377a;cursor:pointer;padding:10px 14px;font-size:13px;font-weight:600;white-space:nowrap}
.pr-history-dialog .pr-attempt-grid{grid-template-columns:minmax(0,1fr)}.pr-history-dialog .pr-attempt{padding:16px;border:1px solid #e2e8f0;border-radius:12px}.pr-history-dialog .pr-attempt h3{font-size:15px}.pr-history-meta,.pr-history-sources{font-size:12px;line-height:1.6;color:#64748b;margin:0 0 10px;overflow-wrap:anywhere}.pr-history-dialog .kt-result-summary{max-width:420px}.pr-history-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.pr-history-review{font-size:13px;border:1px solid #d8e1ef;border-radius:6px;padding:8px 12px;text-decoration:none;color:#16377a;background:#f8fafc}
@media(max-width:680px){.pr-compose-actions{width:100%;flex-wrap:wrap}.pr-compose-actions>button{flex:1;min-width:0}.pr-history-dialog .pr-attempt{padding:12px}.pr-history-dialog .kt-result-summary{padding:16px 12px}}
.pr-held-report{max-width:660px;margin:12vh auto;padding:32px 24px;background:white;border:1px solid #e2e8f0;border-radius:12px;font:16px/1.6 Arial,sans-serif;color:#334155}.pr-held-report h1{font-size:24px;color:#0f2b5c}.pr-held-report>div{display:flex;flex-wrap:wrap;gap:12px}.pr-held-report a,.pr-held-report button{padding:8px 14px;border:1px solid #cbd5e1;border-radius:6px;text-decoration:none;background:#fff;color:#0f2b5c;font:inherit;cursor:pointer}
@media(max-width:680px){.subject-section .exam-grid:has(.tsa-practice-card),.pr-attempt-grid{grid-template-columns:minmax(0,1fr)}.pr-attempt-grid{gap:20px;padding:16px}.pr-results-dialog .kt-result-header{padding:16px}.pr-result-toolbar{padding:8px 16px 0}.pr-results-dialog .kt-result-score-row{grid-template-columns:85px minmax(0,1fr);gap:10px}.tsa-practice-card .kt-event-dates{font-size:12px;gap:8px}.pr-held-report{margin:32px 12px}}
