/* 1.19.0: reference-style result summary and course-specific ranking table. */
.tcts-result,.tcts-leaderboard,.tcts-result button,.tcts-leaderboard button{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.tcts-result{max-width:1080px!important;margin:22px auto!important;color:#111827}
.tcts-result-summary-card{overflow:hidden;margin:0 auto 34px;border:1px solid #e4e7ec;border-radius:14px;background:#fff;box-shadow:0 12px 34px rgba(16,24,40,.09)}
.tcts-result-complete{display:flex;align-items:center;justify-content:center;gap:15px;padding:24px 20px 18px;text-align:left}
.tcts-result-check{display:grid;width:55px;height:55px;flex:0 0 55px;place-items:center;border-radius:50%;color:#fff;background:#18b86a;box-shadow:0 8px 20px rgba(24,184,106,.22);font-size:30px;font-weight:900}
.tcts-result-summary-card.is-fail .tcts-result-check{background:#f59e0b;box-shadow:0 8px 20px rgba(245,158,11,.2)}
.tcts-result-complete h1{margin:0!important;color:#171b2c!important;font-size:25px!important;font-weight:850!important;line-height:1.15!important}
.tcts-result-complete p{margin:5px 0 0!important;color:#585f73!important;font-size:13px!important;font-weight:600!important}.tcts-result-complete small{display:block;max-width:540px;margin-top:4px;overflow:hidden;color:#8a90a0;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.tcts-result-answer-stats,.tcts-result-performance{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #e9ebf0}
.tcts-result-answer-stats>div,.tcts-result-performance>div{position:relative;min-width:0;padding:16px 12px;text-align:center}.tcts-result-answer-stats>div:not(:last-child),.tcts-result-performance>div:not(:last-child){border-right:1px solid #e9ebf0}
.tcts-result-answer-stats span,.tcts-result-performance span{display:block;color:#727889;font-size:12px;font-weight:650}.tcts-result-answer-stats strong{display:block;margin-top:4px;font-size:21px;font-weight:850}.tcts-result-answer-stats .is-correct strong{color:#18a763}.tcts-result-answer-stats .is-wrong strong{color:#ee4d5d}.tcts-result-answer-stats .is-skipped strong{color:#111827}
.tcts-result-answer-stats span:before{display:inline-grid;width:16px;height:16px;margin-right:6px;place-items:center;border-radius:50%;color:#fff;font-size:10px;font-weight:900;vertical-align:-2px}.tcts-result-answer-stats .is-correct span:before{content:"✓";background:#18b86a}.tcts-result-answer-stats .is-wrong span:before{content:"×";background:#ee4d5d}.tcts-result-answer-stats .is-skipped span:before{content:"−";background:#697386}
.tcts-result-performance{background:#fbfbfd}.tcts-result-performance strong{display:block;margin-top:5px;color:#12172a;font-size:21px;font-weight:850;line-height:1.15}.tcts-result-performance>div:first-child strong{color:#6439e8}.tcts-result-performance>div:last-child strong{color:#f08a16}.tcts-result-performance small{display:block;margin-top:3px;color:#8a90a0;font-size:10px;font-weight:550}
.tcts-result-primary-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:18px 20px 10px}.tcts-result-primary-actions a{display:flex;min-height:45px;align-items:center;justify-content:center;border:1px solid #6938e8;border-radius:8px;color:#fff!important;background:linear-gradient(135deg,#7443ee,#5d2cda);box-shadow:0 7px 16px rgba(105,56,232,.16);font-size:12px;font-weight:800;text-decoration:none!important}.tcts-result-primary-actions a.is-retry{color:#5631c8!important;background:#fff;box-shadow:none}
.tcts-result-utility-actions{display:flex;align-items:center;justify-content:center;gap:7px;padding:2px 20px 16px;flex-wrap:wrap}.tcts-result-utility-actions a,.tcts-result-utility-actions button{margin:0!important;padding:5px 7px!important;border:0!important;color:#667085!important;background:transparent!important;box-shadow:none!important;font-size:10px!important;font-weight:700!important;text-decoration:none!important;cursor:pointer}.tcts-result-utility-actions>*:not(:last-child):after{margin-left:12px;color:#d0d5dd;content:"•"}
.tcts-analysis-heading{margin:0 0 16px!important;padding-top:6px!important;color:#172554!important;font-size:25px!important;font-weight:850!important;scroll-margin-top:30px}

.tcts-course-leaderboard{max-width:940px!important;margin:22px auto!important}.tcts-course-leader-head{padding:23px 25px;border-radius:16px 16px 0 0;color:#fff;background:linear-gradient(135deg,#233ab6,#6941c6)}.tcts-course-leader-head>span{display:block;color:#d9ddff;font-size:10px;font-weight:800;letter-spacing:.12em;text-transform:uppercase}.tcts-course-leader-head h2{margin:5px 0 4px!important;color:#fff!important;font-size:26px!important;font-weight:850!important}.tcts-course-leader-head p{margin:0!important;color:rgba(255,255,255,.82)!important;font-size:12px!important}
.tcts-course-rank-filter{display:flex;gap:7px;padding:12px 14px;overflow-x:auto;border-right:1px solid #e4e7ec;border-left:1px solid #e4e7ec;background:#f8f9fc;scrollbar-width:thin}.tcts-course-rank-filter a{flex:0 0 auto;padding:7px 11px;border:1px solid #d9dce5;border-radius:999px;color:#475467!important;background:#fff;font-size:10px;font-weight:750;text-decoration:none!important}.tcts-course-rank-filter a.is-active{border-color:#6841df;color:#fff!important;background:#6841df}
.tcts-rank-table-wrap{overflow-x:auto;border:1px solid #e4e7ec;border-top:0;border-radius:0 0 16px 16px;background:#fff;box-shadow:0 12px 30px rgba(16,24,40,.08)}.tcts-rank-table{width:100%;min-width:520px;border:0;border-collapse:collapse}.tcts-rank-table th,.tcts-rank-table td{padding:13px 18px;border:0;border-bottom:1px solid #eef0f4;text-align:left}.tcts-rank-table th{color:#667085;background:#fafbfc;font-size:10px;font-weight:800;letter-spacing:.06em;text-transform:uppercase}.tcts-rank-table th:first-child,.tcts-rank-table td:first-child{width:150px;text-align:center}.tcts-rank-table th:last-child,.tcts-rank-table td:last-child{width:150px;text-align:right}.tcts-rank-table td{color:#344054;font-size:13px}.tcts-rank-table tbody tr:last-child td{border-bottom:0}.tcts-rank-table tbody tr:hover{background:#fafbff}.tcts-rank-table tr.is-current{background:#f4f3ff}.tcts-rank-table tr.rank-1{background:linear-gradient(90deg,#fffbeb,#fff)}.tcts-rank-table tr.rank-2{background:linear-gradient(90deg,#f8fafc,#fff)}.tcts-rank-table tr.rank-3{background:linear-gradient(90deg,#fff7ed,#fff)}.tcts-rank-number{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-width:56px}.tcts-rank-number>b{color:#475467;font-size:13px}.tcts-rank-crown{display:inline-flex;width:23px;height:23px;align-items:center;justify-content:center}.tcts-rank-crown svg{display:block;width:100%;height:100%}.tcts-rank-table .rank-1 .tcts-rank-crown{width:30px;height:30px;color:#e5a400;filter:drop-shadow(0 2px 2px rgba(180,125,0,.2))}.tcts-rank-table .rank-2 .tcts-rank-crown{color:#8f9aab}.tcts-rank-table .rank-3 .tcts-rank-crown{color:#bd6c35}.tcts-rank-name{font-weight:650}.tcts-rank-table .rank-1 .tcts-rank-name,.tcts-rank-table .rank-1 td:last-child strong{color:#111827;font-weight:900}.tcts-rank-name small{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:999px;color:#5b35d5;background:#eeeaff;font-size:8px;font-weight:800}.tcts-rank-table td:last-child strong{color:#172554;font-size:13px}

@media(max-width:640px){.tcts-result{margin-top:10px!important}.tcts-result-summary-card{border-radius:11px}.tcts-result-complete{justify-content:flex-start;padding:18px 14px 14px}.tcts-result-check{width:46px;height:46px;flex-basis:46px;font-size:25px}.tcts-result-complete h1{font-size:20px!important}.tcts-result-complete p{font-size:11px!important}.tcts-result-answer-stats>div,.tcts-result-performance>div{padding:13px 6px}.tcts-result-answer-stats span,.tcts-result-performance span{font-size:9px}.tcts-result-answer-stats strong,.tcts-result-performance strong{font-size:17px}.tcts-result-performance small{font-size:8px}.tcts-result-primary-actions{gap:7px;padding:14px 12px 8px}.tcts-result-primary-actions a{min-height:41px;padding:7px;font-size:10px}.tcts-result-utility-actions{padding-inline:9px}.tcts-result-utility-actions a,.tcts-result-utility-actions button{font-size:8px!important}.tcts-analysis-heading{font-size:21px!important}.tcts-course-leader-head{padding:19px 16px}.tcts-course-leader-head h2{font-size:21px!important}.tcts-rank-table th,.tcts-rank-table td{padding:11px 12px}.tcts-rank-table th:first-child,.tcts-rank-table td:first-child{width:120px}}
@media print{.tcts-result-primary-actions,.tcts-result-utility-actions{display:none!important}.tcts-result-summary-card{box-shadow:none!important}.tcts-result-answer-stats,.tcts-result-performance{display:grid!important;grid-template-columns:repeat(3,1fr)!important}}
