/* Unified Tutorix app styles */

body{background:#f5f7fa;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Oxygen,Ubuntu,Cantarell,sans-serif}
.ttx-test-container{padding:20px 0;min-height:calc(100vh - 150px)}
.ttx-page-header{background:linear-gradient(135deg,#057ab5 0,#086fa3 100%);color:#fff;padding:25px 15px;text-align:center;border-radius:10px;margin-bottom:20px;box-shadow:0 3px 10px rgba(31,52,167,.15)}
.ttx-page-header h1{margin:0;font-size:24px;font-weight:700}
.ttx-page-header p{margin:8px 0 0;opacity:.95;font-size:14px}
.ttx-access-denied{background:#fff3cd;border:2px solid #ffc107;border-radius:12px;padding:30px;text-align:center;margin:40px auto;max-width:600px;box-shadow:0 4px 12px rgba(255,193,7,.2)}
.ttx-access-denied h3{color:#856404;margin:0 0 15px;font-size:22px}
.ttx-access-denied p{color:#856404;margin:12px 0;font-size:15px;line-height:1.6}
.ttx-access-denied .upgrade-btn{background:#057ab5;color:#fff;padding:12px 30px;border-radius:8px;text-decoration:none;display:inline-block;margin-top:15px;transition:all .3s;cursor:pointer;border:0;font-size:16px;font-weight:600}
.ttx-access-denied .upgrade-btn:hover{background:#046a9f;transform:translateY(-2px);box-shadow:0 4px 12px rgba(5,122,181,.3)}
.ttx-demo-notice{background:#e7f3ff;border:1px solid #057ab5;border-radius:6px;padding:15px;margin-bottom:20px;text-align:center}
.ttx-demo-notice h4{color:#057ab5;margin:0 0 8px;font-size:16px}
.ttx-demo-notice p{color:#495057;margin:0;font-size:13px}
.ttx-demo-notice a{color:#057ab5;font-weight:600;text-decoration:underline}

.ttx-content-wrapper{display:grid;grid-template-columns:1.5fr 1fr;gap:20px;margin-top:20px}
@media (max-width:1024px){.ttx-content-wrapper{grid-template-columns:1fr}}
.ttx-cards-container{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.ttx-cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(380px,1fr));gap:20px;margin-top:20px}
@media (max-width:768px){.ttx-cards-grid{grid-template-columns:1fr}.ttx-user-rank-score-item .score-label{font-size:10px}.ttx-user-rank-score-item .score-value{font-size:14px}}
.ttx-leaderboard-container{background:#fff;border-radius:12px;padding:10px;box-shadow:0 2px 8px rgba(0,0,0,.08);position:sticky;top:20px;max-height:calc(100vh - 50px);overflow-y:auto}
.ttx-leaderboard-container::-webkit-scrollbar{width:6px}
.ttx-leaderboard-container::-webkit-scrollbar-track{background:#f1f1f1;border-radius:10px}
.ttx-leaderboard-container::-webkit-scrollbar-thumb{background:#057ab5;border-radius:10px}
.ttx-leaderboard-container::-webkit-scrollbar-thumb:hover{background:#09608c}
.ttx-section-title{font-size:20px;font-weight:600;color:#011527;margin-bottom:20px;padding-bottom:12px;border-bottom:2px solid #011527}
.ttx-leaderboard-table{width:100%;border-collapse:separate;border-spacing:0;margin-top:10px}
.ttx-leaderboard-table th{text-align:left;padding:12px 15px;background:#f8fafc;color:#4b5563;font-weight:600;font-size:13px;text-transform:uppercase;letter-spacing:.5px;border-bottom:2px solid #e5e7eb}
.ttx-leaderboard-table th.col-rank{width:60px}
.ttx-leaderboard-table th.col-score{width:100px;text-align:center}
.ttx-leaderboard-table th.col-percentage{width:80px;text-align:center}
.ttx-leaderboard-table td{padding:12px 15px;border-bottom:1px solid #f1f5f9;font-size:14px;vertical-align:middle}
.ttx-leaderboard-table tr:last-child td{border-bottom:none}
.ttx-leaderboard-table tr:hover{background:#f8fafc}
.ttx-leaderboard-rank{font-weight:700;color:#057ab5;text-align:center;width:50px}
.ttx-leaderboard-rank-1{background:#363b4c;color:#fff;border-radius:4px}
.ttx-leaderboard-rank-2{background:linear-gradient(135deg,silver 0,#9e9e9e 100%);color:#fff;border-radius:4px}
.ttx-leaderboard-rank-3{background:linear-gradient(135deg,#cd7f32 0,#a97142 100%);color:#fff;border-radius:4px}
.ttx-leaderboard-user{display:flex;align-items:center;gap:12px}
.ttx-leaderboard-avatar{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,#057ab5 0,#086fa3 100%);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:600;font-size:14px}
.ttx-leaderboard-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.ttx-leaderboard-user-info{flex:1;display:flex;flex-direction:column}
.ttx-leaderboard-name{font-weight:600;color:#1f2937;font-size:14px}
.ttx-leaderboard-class{font-size:12px;color:#6b7280;margin-top:2px}
.ttx-leaderboard-score{text-align:center;font-weight:600;color:#1f2937}
.ttx-leaderboard-percentage{text-align:center;font-weight:600}
.ttx-leaderboard-percentage.high{color:#10b981}
.ttx-leaderboard-percentage.medium{color:#f59e0b}
.ttx-leaderboard-percentage.low{color:#ef4444}
.ttx-leaderboard-empty{text-align:center;padding:40px 20px;color:#6b7280}
.ttx-leaderboard-empty-icon{font-size:48px;margin-bottom:16px;opacity:.5}
.ttx-leaderboard-empty-text{font-size:16px;font-weight:600;margin-bottom:8px}
.ttx-leaderboard-empty-subtext{font-size:14px;color:#9ca3af}

.ttx-test-card{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 2px 8px rgba(0,0,0,.08);transition:all .3s}
.ttx-test-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(0,0,0,.12)}
.ttx-card-header{padding:16px;color:#000;background:linear-gradient(135deg,#808ef061 0,#959cd8 100%)}
.ttx-card-header.attempted{background:linear-gradient(135deg,#63f1ad61 0,#44b975cc 100%)}
.ttx-card-header.locked{background:linear-gradient(135deg,#ef97c961 0,#9b96eebd 100%)}
.ttx-card-header-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.ttx-card-title{flex:1}
.ttx-card-title h3{margin:0 0 4px;font-size:18px;font-weight:600;line-height:1.3}
.ttx-card-published{font-size:11px;opacity:.9}
.ttx-card-action-btn{background:rgba(255,255,255,.2);padding:8px;border-radius:8px;border:none;cursor:pointer;transition:all .3s;display:flex;align-items:center;justify-content:center}
.ttx-card-action-btn:hover{background:rgba(255,255,255,.3)}
.ttx-card-action-btn svg{width:20px;height:20px;color:#fff}
.ttx-card-subjects{display:flex;flex-wrap:wrap;gap:8px}
.ttx-card-subject-chip{background:rgba(255,255,255,.2);padding:4px 10px;border-radius:6px;font-size:12px;font-weight:500}
.ttx-card-details{background:#f9fafb;padding:12px 16px;border-bottom:1px solid #e5e7eb}
.ttx-card-details-row{display:flex;align-items:center;justify-content:space-between;font-size:13px}
.ttx-card-detail-item{display:flex;align-items:center;gap:6px}
.ttx-card-detail-item svg{width:16px;height:16px;color:#6b7280}
.ttx-card-detail-label{color:#6b7280}
.ttx-card-detail-value{font-weight:600;color:#111827}
.ttx-card-body{padding:16px}
.ttx-card-not-attempted{text-align:center;padding:16px 0;color:#6b7280;font-size:14px}
.ttx-card-attempt-info{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;font-size:13px}
.ttx-card-attempt-date{color:#6b7280}
.ttx-card-percentage{font-weight:700;font-size:14px;color:#10b981}
.ttx-card-percentage.low{color:#f59e0b}
.ttx-card-percentage.high{color:#10b981}
.ttx-card-score-bar{display:flex;align-items:center;gap:12px}
.ttx-card-progress{flex:1;height:8px;background:#e5e7eb;border-radius:999px;overflow:hidden}
.ttx-card-progress-fill{height:100%;background:#10b981;border-radius:999px;transition:width .3s}
.ttx-card-progress-fill.low{background:#f59e0b}
.ttx-card-progress-fill.high{background:#10b981}
.ttx-card-score-text{font-weight:600;color:#1f2937;font-size:13px}
.ttx-card-footer{padding:12px 16px;border-top:1px solid #e5e7eb}
.ttx-card-footer-buttons{display:flex;gap:8px}
.ttx-card-btn{flex:1;padding:10px 16px;border:none;border-radius:6px;font-size:13px;font-weight:600;cursor:pointer;transition:all .3s;display:inline-flex;align-items:center;justify-content:center;gap:4px;text-decoration:none}
.ttx-card-btn-primary{background:#057ab5;color:#fff;max-width:120px}
.ttx-card-btn-primary:hover{background:#09608c;transform:translateY(-1px)}
.ttx-card-btn-secondary{background:#6b7280;color:#fff;max-width:120px}
.ttx-card-btn-secondary:hover{background:#4b5563}
.ttx-card-btn-locked{background:#6366f1;color:#fff;width:120px}
.ttx-card-btn-locked:hover{background:#4f46e5}
.ttx-card-btn-disabled{background:#9ca3af;color:#fff;cursor:not-allowed;opacity:.6;width:100%}
.ttx-card-btn-disabled:hover{transform:none}
.ttx-loading{text-align:center;padding:40px;color:#6b7280}
.ttx-loading-spinner{display:inline-block;width:40px;height:40px;border:4px solid #e5e7eb;border-radius:50%;border-top-color:#057ab5;animation:spin 1s linear infinite;margin-bottom:12px}
@keyframes spin{to{transform:rotate(360deg)}}
.ttx-error{background:#fee;border:1px solid #fcc;color:#c33;padding:16px;border-radius:8px;margin:20px 0;text-align:center}
.ttx-empty-state{text-align:center;padding:60px 20px;color:#6b7280}
.ttx-empty-state-icon{font-size:48px;margin-bottom:16px}
.ttx-empty-state-text{font-size:18px;font-weight:600;margin-bottom:8px}
.ttx-empty-state-subtext{font-size:14px;color:#9ca3af}

.ttx-user-rank-section{background:#fff;border-radius:12px;padding:0px;margin-bottom:20px;box-shadow:0 2px 8px rgba(0,0,0,.08)}
.ttx-user-rank-card{background:linear-gradient(120deg, #231f0e 0, #011527 0%);border-radius:12px;padding:14px;color:#fff}
.ttx-user-rank-card.not-attempted{background:linear-gradient(135deg,#6b7280 0,#4b5563 100%);text-align:center;padding:10px}
.ttx-user-rank-icon{font-size:35px;margin-bottom:12px}
.ttx-user-rank-text{font-size:18px;font-weight:600;margin-bottom:8px}
.ttx-user-rank-subtext{font-size:14px;opacity:.9}
.ttx-user-rank-header{display:flex;align-items:center;gap:15px;margin-bottom:10px;padding-bottom:10px;border-bottom:1px solid rgba(255,255,255,.2)}
.ttx-user-rank-avatar{width:60px;height:60px;border-radius:50%;background:rgba(255,255,255,.2);display:flex;align-items:center;justify-content:center;font-size:24px;font-weight:600;flex-shrink:0}
.ttx-user-rank-avatar img{width:100%;height:100%;border-radius:50%;object-fit:cover}
.ttx-user-rank-info{flex:1}
.ttx-user-rank-name{font-size:20px;font-weight:600;margin-bottom:4px}
.ttx-user-rank-body{display:flex;flex-direction:column;gap:20px}
.ttx-user-rank-main{text-align:center;display:flex;justify-content:space-around;align-items:center}
.ttx-user-rank-label{font-size:22px;opacity:.9;text-transform:uppercase;letter-spacing:.5px}
.ttx-user-rank-value{display:flex;flex-direction:column;gap:4px}
.ttx-user-rank-value .rank-number{font-size:36px;font-weight:700}
.ttx-user-rank-value .rank-total{font-size:14px;opacity:.9}
.ttx-user-rank-scores{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;background:rgba(255,255,255,.2);border-radius:8px;padding:5px}
.ttx-user-rank-score-item{text-align:center}
.ttx-user-rank-score-item .score-label{font-size:9px;opacity:.8;margin-bottom:6px}
.ttx-user-rank-score-item .score-value{font-size:14px;font-weight:600}
.ttx-user-rank-score-item .score-value.high{color:#10b981}
.ttx-user-rank-score-item .score-value.medium{color:#f59e0b}
.ttx-user-rank-score-item .score-value.low{color:#ef4444}
.ttx-leaderboard-table tbody tr.current-user-row{background:#fffbeb;border-left:3px solid #f59e0b}
.ttx-leaderboard-table tbody tr.current-user-row:hover{background:#fef3c7}
.you-badge{display:inline-block;background:#f59e0b;color:#fff;font-size:10px;font-weight:600;padding:2px 6px;border-radius:4px;margin-left:6px;text-transform:uppercase;letter-spacing:.5px}
.ttx-load-more-container{text-align:center;padding:20px 0 10px}
.ttx-load-more-btn{background:#057ab5;color:#fff;border:0;border-radius:8px;padding:12px 30px;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s;display:inline-flex;align-items:center;gap:8px}
.ttx-load-more-btn:hover{background:#09608c;transform:translateY(-2px)}
.ttx-load-more-btn:disabled{background:#9ca3af;cursor:not-allowed;opacity:.6}
.ttx-load-more-btn:disabled:hover{transform:none}
.ttx-load-more-btn svg{width:16px;height:16px}
@media (max-width:768px){.ttx-user-rank-section{margin-bottom:15px}.ttx-user-rank-card{padding:15px}.ttx-user-rank-header{flex-direction:column;text-align:center;padding-bottom:15px}.ttx-user-rank-avatar{width:50px;height:50px;font-size:20px}.ttx-user-rank-name{font-size:18px}.ttx-user-rank-value .rank-number{font-size:28px}.ttx-user-rank-scores{gap:4px;padding:4px}.ttx-leaderboard-table th,.ttx-leaderboard-table td{padding:10px 8px;font-size:13px}.ttx-leaderboard-avatar{width:32px;height:32px;font-size:12px}.ttx-leaderboard-name{font-size:13px}.ttx-leaderboard-class{font-size:11px}}

.mui-tabs__pane.mui--is-active{border:none!important}
.count-timer{color:#fff!important}

.option-row{display:flex;align-items:flex-start;padding:12px 15px;margin:10px 0;background:#f8f9fa;border-radius:8px;border:2px solid #e9ecef;transition:all .3s ease;font-size:15px;line-height:1.6;cursor:pointer;position:relative}
.option-row:hover{background:#e9ecef;border-color:#057ab5;transform:translateX(5px);box-shadow:0 2px 8px rgba(5,122,181,.15)}
.option-row.selected-option{background:#d4edda!important;border-color:#28a745!important;border-left:4px solid #28a745!important}
.option-label{flex:1;cursor:pointer;margin-left:10px;padding-top:2px;display:block}
.option-content{flex:1;margin-left:10px;padding-top:2px}
.option-content img{max-width:100%;height:auto;display:block}
.option-row input[type=radio]{margin-right:0;margin-top:5px;cursor:pointer;width:18px;height:18px;flex-shrink:0}
.option-row .MathJax,.option-row .mjx-math{pointer-events:none}
.option-row img{max-width:100%;height:auto;display:block}
.ttx-quiz-question img,.ttx-quiz-question h3 img{max-width:100%!important;height:auto!important;display:inline-block}
.mjx-container{max-width:100%;overflow-x:auto}
.ttx-quiz-question{width:100%;box-sizing:border-box;word-break:break-word;overflow-wrap:break-word}
.option-row,.option-content{box-sizing:border-box}
.option-content{flex:1;margin-left:10px;padding-top:2px}
.option-content img{max-width:100%;height:auto;display:block}
.ttx-quiz-question p{flex-wrap:wrap}
.ttx-quiz-question p img{max-width:100%;height:auto;display:block}
@media (max-width:768px){.option-row{padding:15px;margin:12px 0}.option-row:hover{transform:translateX(3px)}}

.ttx-quiez-review-questions{margin:0 0 20px 0!important}
.mui-tabs__pane{display:none}
.mui-tabs__pane.mui--is-active{display:block}
.mui-tabs__bar li{cursor:pointer;transition:all .3s ease}
.mui-tabs__bar li a{text-decoration:none;display:block;padding:10px 15px}
.mui-tabs__bar li.mui--is-active a{border-bottom:2px solid #057ab5;color:#057ab5;font-weight:600}

.choosed-sub{display:flex;justify-content:center;align-items:center;flex-direction:column}

.ttx-quiz-completed{background:#fff;border-radius:12px;padding:20px;box-shadow:0 2px 10px rgba(0,0,0,.08);border:1px solid #e9ecef}
.ttx-quiz-completed h1{font-size:22px;margin:0 0 8px;color:#057ab5}
.ttx-quiz-completed h2{font-size:18px;margin:0 0 12px;color:#1f2937;display:flex;align-items:center;gap:8px; justify-content: center;}
.ttx-score-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin:12px 0}
@media (min-width:768px){.ttx-score-grid{grid-template-columns:repeat(4,1fr)}}
.ttx-score-item{background:#f8fafc;border:1px solid #e5e7eb;border-radius:10px;padding:14px;display:flex;gap:10px}
.ttx-score-item i{font-size:18px;color:#057ab5}
.ttx-score-item .label{color:#6b7280;font-size:12px}
.ttx-score-item .value{font-weight:700;color:#111827}
.ttx-quiz-completed #p_duration{margin-top:10px;color:#374151}
.ttx-quiz-completed .ttx-btn-cont{display:flex;gap:10px;justify-content:center;margin-top:10px}

#content-wrapper.ttx-home{background:#f5f7fa;min-height:100vh;padding:20px 0 40px}
.ttx-track-header{background:linear-gradient(135deg,#057ab5 0,#086fa3 100%);color:#fff;padding:25px 20px;text-align:center;border-radius:12px;margin-bottom:25px;box-shadow:0 4px 15px rgba(5,122,181,.2)}
.ttx-track-header h1{color:#fff;margin:0 0 8px;font-size:26px;font-weight:700;display:flex;align-items:center;justify-content:center;gap:12px}
.ttx-track-header p{margin:0;opacity:.95;font-size:14px}
.ttx-back-btn{display:inline-flex;align-items:center;gap:8px;background:#057ab5!important;color:#fff;padding:10px 20px;border-radius:8px;text-decoration:none;font-weight:600;margin-bottom:20px;transition:all .3s;border:2px solid rgba(255,255,255,.3)}
.ttx-back-btn:hover{background:rgba(255,255,255,.3);transform:translateX(-3px)}
.test-review-view{background:#fff;border-radius:12px;padding:25px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.round20{border-radius:12px}
.track-tl-container{position:relative;padding:20px 0}
.timelinevideo-item{position:relative;display:flex;align-items:center;margin-bottom:30px;padding-left:0}
.timelinevideo-item a{text-decoration:none;color:inherit;display:contents}
.timelinevideo-icon{width:60px;height:60px;background:linear-gradient(135deg,#057ab5 0,#086fa3 100%);border-radius:50%;display:flex;align-items:center;justify-content:center;position:relative;z-index:2;box-shadow:0 4px 12px rgba(5,122,181,.3);margin-right:30px;flex-shrink:0}
.timelinevideo-icon.test-series-img img{width:32px;height:32px;filter:brightness(0) invert(1)}
.timelinevideo-content{flex:1;background:#fff;border:2px solid #e9ecef;border-radius:12px;padding:20px;transition:all .3s;cursor:pointer;display:flex;align-items:center;position:relative;overflow:hidden}
.timelinevideo-content::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#057ab5;transform:scaleY(0);transition:transform .3s}
.timelinevideo-content:hover{border-color:#057ab5;box-shadow:0 4px 15px rgba(5,122,181,.15);transform:translateX(5px)}
.timelinevideo-content:hover::before{transform:scaleY(1)}
.timelinevideo-content h2{margin:0 0 12px;font-size:18px;font-weight:700;color:#2c3e50}
.timelinevideo-content p{margin:8px 0;color:#6c757d;font-size:14px;display:flex;flex-wrap:wrap;gap:15px}
.timelinevideo-content p span{display:inline-flex;align-items:center;gap:6px}
.total-questions{color:#057ab5}
.total-questions b{color:#057ab5;font-weight:700}
.total-correct{color:#28a745}
.total-correct b{color:#28a745;font-weight:700}
.timeline-time{color:#6c757d}
.calendar{color:#6c757d}
.txt-right{display:flex;align-items:center;justify-content:flex-end}
.track-right-icon{font-size:28px;color:#057ab5;transition:all .3s}
.timelinevideo-content:hover .track-right-icon{transform:translateX(5px)}
.no-data{text-align:center;padding:60px 20px;color:#6c757d;font-size:18px;font-weight:600;background:#f8f9fa;border-radius:12px;border:2px dashed #dee2e6}
.no-data::before{content:"📊";display:block;font-size:48px;margin-bottom:15px}
.load_more{text-align:center;padding:30px 0;margin-top:20px}
.load_more.block{display:block}
.load_more_btn{background:#057ab5;color:#fff;padding:12px 40px;border-radius:8px;border:0;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s;box-shadow:0 4px 12px rgba(5,122,181,.3)}
.load_more_btn:hover{background:#046a9f;transform:translateY(-2px);box-shadow:0 6px 16px rgba(5,122,181,.4)}
.load_more_btn:disabled{background:#6c757d;cursor:not-allowed;opacity:.6;transform:none}
.end{text-align:center;padding:30px 20px;color:#6c757d;font-size:16px;font-weight:600}
.end i{font-size:32px;color:#057ab5;display:block;margin:10px auto}
.ttx-error-message{background:#f8d7da;border:2px solid #dc3545;border-radius:12px;padding:30px;text-align:center;margin:40px auto;max-width:600px;box-shadow:0 4px 12px rgba(220,53,69,.2)}
.ttx-error-message h3{color:#721c24;margin:0 0 15px;font-size:22px}
.ttx-error-message p{color:#721c24;margin:12px 0;font-size:15px}
.ttx-stats-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:15px;margin-bottom:25px}
.ttx-stat-card{background:linear-gradient(135deg,#057ab5 0,#086fa3 100%);color:#fff;padding:20px;border-radius:10px;text-align:center;box-shadow:0 3px 10px rgba(5,122,181,.2)}
.ttx-stat-card h4{margin:0 0 8px;font-size:14px;opacity:.9;font-weight:600}
.ttx-stat-card .stat-value{font-size:28px;font-weight:700;margin:0}
.ttx-filter-section{background:#f8f9fa;padding:15px 20px;border-radius:10px;margin-bottom:20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px}
.ttx-filter-section label{font-weight:600;color:#2c3e50;margin-right:10px}
.ttx-filter-section select{padding:8px 15px;border:2px solid #dee2e6;border-radius:6px;font-size:14px;background:#fff;cursor:pointer;transition:all .3s}
.ttx-filter-section select:focus{outline:0;border-color:#057ab5}
@media (max-width:768px){.track-tl-container::before{left:30px}.timelinevideo-icon{width:50px;height:50px;margin-right:20px}.timelinevideo-icon.test-series-img img{width:26px;height:26px}.timelinevideo-content h2{font-size:16px}.timelinevideo-content p{font-size:13px;flex-direction:column;gap:8px;align-items:flex-start}.timelinevideo-content{flex-direction:column;align-items:flex-start}.txt-right{width:100%;justify-content:flex-start;margin-top:10px}.track-right-icon{font-size:24px}.mui-col-md-9{width:100%;padding:0}.mui-col-md-3{width:100%;padding:0}.ttx-track-header h1{font-size:22px}.ttx-stats-summary{grid-template-columns:1fr}.ttx-filter-section{flex-direction:column;align-items:stretch}}
@media (max-width:480px){.timelinevideo-item{margin-bottom:25px}.timelinevideo-content{padding:15px}.no-data{padding:40px 15px;font-size:16px}.no-data::before{font-size:36px}.load_more_btn{padding:10px 30px;font-size:14px}}
.mui-row{display:flex;flex-wrap:wrap;margin:0-15px}
.mui-col-md-12{width:100%;padding:0 15px}
.mui-col-md-9{width:75%;padding:0 15px}
.mui-col-md-3{width:25%;padding:0 15px}
@media (max-width:768px){.mui-col-md-9,.mui-col-md-3{width:100%}}
.fade-in{animation:fadeIn .5s ease-in}
@keyframes fadeIn{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}
.ttx-mb-20{margin-bottom:20px}
.ttx-mt-20{margin-top:20px}
.ttx-text-center{text-align:center}
.ttx-text-muted{color:#6c757d}

.ttx-details-container{background:#f8f9fa;padding:20px 0;min-height:calc(100vh - 150px)}
.ttx-details-header{background:linear-gradient(135deg,#057ab5 0,#086fa3 100%);color:#fff;padding:20px 15px;text-align:center;border-radius:10px;margin-bottom:20px;box-shadow:0 3px 10px rgba(5,122,181,.15)}
.ttx-details-header h1{margin:0 0 3px;font-size:22px;font-weight:600}
.ttx-details-header p{margin:0;opacity:.95;font-size:13px}
.ttx-badge-header{display:inline-block;padding:4px 12px;border-radius:16px;font-size:12px;font-weight:600;margin-top:8px;background:rgba(255,255,255,.2)}
.ttx-content-box{background:#fff;border-radius:10px;padding:20px;margin-bottom:20px;box-shadow:0 1px 8px rgba(0,0,0,.04)}
.ttx-section-heading{font-size:18px;font-weight:700;color:#057ab5;margin:0 0 15px;padding-bottom:10px;border-bottom:2px solid #057ab5;display:flex;align-items:center;gap:8px}
.ttx-rule-item{display:flex;align-items:flex-start;padding:12px;background:#f8f9fa;border-radius:6px;margin-bottom:10px;border-left:3px solid #057ab5}
.ttx-rule-icon{width:32px;height:32px;background:#057ab5;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px;margin-right:12px;flex-shrink:0}
.ttx-rule-text{flex:1;color:#495057;line-height:1.5;font-size:14px}
.ttx-marks-table{margin-top:10px}
.ttx-marks-table table{width:100%;border-collapse:collapse;margin-top:10px;box-shadow:0 1px 6px rgba(0,0,0,.06);border-radius:6px;overflow:hidden}
.ttx-marks-table th{background:#057ab5;color:#fff;padding:12px;text-align:center;font-weight:600;font-size:14px}
.ttx-marks-table td{border:1px solid #dee2e6;padding:10px;text-align:center;background:#fff;font-size:13px}
.ttx-disclaimer{background:#fff3cd;border:1px solid #ffc107;border-radius:6px;padding:15px;margin-top:15px;color:#856404;line-height:1.5;font-size:13px}
.ttx-palette-item{display:flex;align-items:center;padding:10px;background:#f8f9fa;border-radius:6px;margin-bottom:8px}
.ttx-color-box{width:28px;height:28px;border-radius:5px;margin-right:12px;border:1px solid #dee2e6}
.ttx-color-box.green{background:#28a745}
.ttx-color-box.red{background:#dc3545}
.ttx-color-box.yellow{background:#ffc107}
.ttx-color-box.blue{background:#007bff}
.ttx-color-box.white{background:#fff}
.ttx-palette-text{color:#495057;font-size:13px;line-height:1.4}
.ttx-palette-text strong{display:block;margin-bottom:2px}
.ttx-start-btn{background:#057ab5;color:#fff;padding:14px 40px;border-radius:6px;border:none;font-size:16px;font-weight:600;cursor:pointer;transition:all .3s;display:inline-flex;align-items:center;gap:8px;box-shadow:0 3px 10px rgba(40,167,69,.25);margin:15px 0}
.ttx-start-btn:hover{background:#09608c;transform:translateY(-1px);box-shadow:0 4px 12px rgba(40,167,69,.3)}
.ttx-start-btn:active{transform:translateY(0)}
.ttx-start-btn:disabled{background:#6c757d;cursor:not-allowed;transform:none}
.ttx-button-wrapper{text-align:center;padding:15px 0}
.ttx-icon-wrapper{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background:#e7f3ff;border-radius:50%;margin:0 auto 12px}
#content-wrapper.ttx-home{background:#f5f7fa;min-height:100vh;padding-bottom:20px;padding-top:0px!important}
.ttx-home-top{background:#fff;border-bottom:1px solid #e0e0e0;padding:12px 0;position:sticky;top:0;z-index:100;box-shadow:0 1px 4px rgba(0,0,0,.04)}
.ttx-widget{max-width:1200px;margin:0 auto;padding:0 12px}
.ttx-syllabus-liststyle{list-style:none}
.ttx-syllabus-image{display:flex;align-items:center;justify-content:space-between}
.subject-icon{display:flex;align-items:center}
.subject-icon img{width:45px;height:40px;margin-right:12px}
.subject-name{flex:1;display:flex;align-items:center;justify-content:space-between}
.subject-name b{font-size:21px;color:#333}
.ttx-syl-close{padding:4px 8px;transition:transform .2s;position:absolute;top:10px;right:20px}
.ttx-syl-close:hover{transform:scale(1.1)}
.ttx-syl-close img{width:30px;height:30px}
.ttx-series-time-track{background:linear-gradient(135deg,#057ab5 0,#086fa3 100%);color:#fff;padding:12px 15px;border-radius:8px;display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;box-shadow:0 3px 10px rgba(5,122,181,.25);flex-wrap:wrap;gap:12px}
.ttx-duration{display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600}
.ttx-play-pause button{background:rgba(255,255,255,.2);color:#fff;border:1px solid #fff;padding:6px 15px;border-radius:5px;cursor:pointer;font-weight:600;transition:all .3s}
.ttx-play-pause button:hover{background:rgba(255,255,255,.3);transform:scale(1.05)}
#divCurrentClass{font-size:14px;font-weight:600;padding:6px 15px;background:rgba(255,255,255,.15);border-radius:5px}
.ttx-nav-details a{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;background:rgba(255,255,255,.2);border-radius:5px;color:#fff;font-size:18px;transition:all .3s}
.ttx-nav-details a:hover{background:rgba(255,255,255,.3);transform:scale(1.1)}
.ttx-subject-class{background:#fff;border-radius:10px;padding:15px;box-shadow:0 1px 8px rgba(0,0,0,.06);margin-top:15px}
.mui-tabs__bar{display:flex;list-style:none;border-bottom:2px solid #e0e0e0;margin-bottom:20px;padding:0;flex-wrap:wrap}
.mui-tabs__bar li{margin-right:4px}
.mui-tabs__bar li a{display:block;padding:10px 24px;background:#f8f9fa;color:#666;text-decoration:none;border-radius:6px 6px 0 0;font-weight:600;transition:all .3s;border:1px solid transparent}
.mui-tabs__bar li.mui--is-active a{background:#057ab5;color:#fff;border-bottom:2px solid #057ab5}
.mui-tabs__bar li:not(.mui--is-active) a:hover{background:#e9ecef;color:#057ab5}
.ttx-start-details h3{font-size:16px;font-weight:600;color:#057ab5;margin:20px 0 12px;padding:8px 12px;background:#e7f3ff;border-left:3px solid #057ab5;border-radius:4px}
.ttx-start-details h3:first-of-type{margin-top:0}
.ttx-start-details ul{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;list-style:none;padding:0;margin-bottom:20px}
.ttx-start-details ul:nth-of-type(1),.ttx-start-details ul:nth-of-type(2){grid-template-columns:repeat(auto-fill,minmax(80px,1fr));gap:10px}
.ttx-start-details ul li{position:relative}
.mui-tab-num{width:100%;height:42px;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #ddd;border-radius:6px;font-weight:600;font-size:14px;cursor:pointer;transition:all .3s;color:#333}
.clsQuestion:hover .mui-tab-num{transform:scale(1.05);box-shadow:0 3px 8px rgba(0,0,0,.12)}
.clsQuestion.white .mui-tab-num,.clsQuestion.rounded.white .mui-tab-num{background:#fff;border-color:#ddd;color:#333}
.clsQuestion.red .mui-tab-num,.clsQuestion.rounded.red .mui-tab-num{background:#dc3545;border-color:#dc3545;color:#fff}
.clsQuestion.green .mui-tab-num,.clsQuestion.rounded.green .mui-tab-num{background:#28a745;border-color:#28a745;color:#fff}
.clsQuestion.yellow .mui-tab-num,.clsQuestion.rounded.yellow .mui-tab-num{background:#ffc107;border-color:#ffc107;color:#333}
.clsQuestion.blue .mui-tab-num,.clsQuestion.rounded.blue .mui-tab-num{background:#007bff;border-color:#007bff;color:#fff}
.ttx-test-wrap{display:flex;align-items:center;padding:10px;background:#f8f9fa;border-radius:6px;margin-bottom:8px}
.ttx-test-wrap img{max-width:32px;margin-right:12px}
.ttx-test-wrap .rounded{width:28px;height:28px;border-radius:5px;margin-right:12px;border:1px solid #dee2e6;flex-shrink:0}
.ttx-test-wrap .green{background:#28a745}
.ttx-test-wrap .red{background:#dc3545}
.ttx-test-wrap .yellow{background:#ffc107}
.ttx-test-wrap .blue{background:#007bff}
.ttx-test-wrap .white{background:#fff}
.ttx-test-wrap p{margin:0;color:#495057;font-size:13px;line-height:1.4}
.btn-testseries{background:#057ab5;color:#fff;padding:12px 30px;border-radius:6px;border:0;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s;display:inline-flex;align-items:center;gap:8px;box-shadow:0 3px 10px rgba(40,167,69,.25);text-decoration:none}
.btn-testseries:hover{background:#09608c;transform:translateY(-1px);box-shadow:0 4px 12px rgba(40,167,69,.3)}
.test-series-class-wrap{background:linear-gradient(135deg,#057ab5 0,#086fa3 100%);color:#fff;padding:10px 15px;border-radius:6px;margin-bottom:15px;font-size:14px;font-weight:600;text-align:center}
.btn-save{background:#057ab5;color:#fff;padding:10px 20px;border-radius:6px;border:0;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s;margin:4px;display:inline-flex;align-items:center;gap:6px}
.btn-save:hover{background:#046a9f;transform:translateY(-1px);box-shadow:0 3px 8px rgba(5,122,181,.25)}
.btn-save-right{background:#057ab5}
.btn-save-right:hover{background:#09608c}
#btnClear{background:#ffc107;color:#333}
#btnClear:hover{background:#e0a800}
#btnMark{background:#6c757d}
#btnMark:hover{background:#5a6268}
.btn-draft,.btn-details{padding:10px 25px;border-radius:6px;border:0;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s;margin:8px 4px;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.btn-draft{background:#28a745;color:#fff}
.btn-draft:hover{background:#218838;transform:translateY(-1px)}
.btn-details{background:#057ab5;color:#fff}
.btn-details:hover{background:#046a9f;transform:translateY(-1px)}
.fa-spin{animation:fa-spin 1s infinite linear}
@keyframes fa-spin{0%{transform:rotate(0deg)}to{transform:rotate(360deg)}}
.container{max-width:1200px;margin:0 auto;padding:0 12px}
.clear{clear:both}
.np{padding:0!important}
.text-center{text-align:center}
.text-left{text-align:left}
.text-right{text-align:right}
.mui-col-md-1,.mui-col-md-2,.mui-col-md-3,.mui-col-md-4,.mui-col-md-5,.mui-col-md-6,.mui-col-md-7,.mui-col-md-8,.mui-col-md-9,.mui-col-md-10,.mui-col-md-11{padding:0 12px}
.mui-col-md-10{width:83.333%}
.mui-col-md-4{width:33.333%}
@media (max-width:768px){.mui-col-sm-12{width:100%}.mui-col-sm-10{width:83.333%}.mui-col-sm-6{width:50%}.ttx-details-header h1{font-size:20px}.ttx-content-box{padding:15px}.ttx-start-btn{padding:12px 30px;font-size:15px}.ttx-series-time-track{flex-direction:column;align-items:stretch;text-align:center}.ttx-duration,#divCurrentClass{justify-content:center}.ttx-start-details ul{grid-template-columns:repeat(auto-fill,minmax(42px,1fr));gap:6px}.mui-tab-num{height:38px;font-size:13px}.mui-tabs__bar{overflow-x:auto;flex-wrap:nowrap}.mui-tabs__bar li a{padding:8px 16px;white-space:nowrap}.btn-save{width:100%;justify-content:center;margin:4px 0}}
@media (max-width:480px){.mui-col-xs-12{width:100%}.mui-col-xs-10{width:83.333%}.ttx-start-details ul{grid-template-columns:repeat(5,1fr)}.subject-name b{font-size:21px}}
.mui-tabs__bar{display:flex!important}
.ttx-start-details{position:relative;z-index:1}
.ttx-start-details .question-no-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;list-style:none;padding:0;margin-bottom:20px}
#timelinevideo:before,.track-tl-container::before{display:none!important;background:#fff!important}
#trackData h1{color:#057ab5;font-size:24px;font-weight:600;margin:0 0 20px;padding:15px 20px;background:linear-gradient(135deg,#057ab5 0,#086fa3 100%);color:#fff;border-radius:10px;display:flex;align-items:center;gap:12px}
.txt-tags{background:#f8f9fa;padding:12px 15px;border-radius:8px;margin-bottom:10px;font-size:14px;color:#495057;border-left:4px solid #057ab5;transition:all .3s ease}
.txt-tags:hover{background:#e9ecef;transform:translateX(3px);box-shadow:0 2px 8px rgba(0,0,0,.1)}
.ttx-quiz-question{background:#fff;border-radius:10px;padding:25px;margin-bottom:20px;box-shadow:0 2px 10px rgba(0,0,0,.08);border:2px solid #e9ecef;transition:all .3s ease;position:relative}
.ttx-quiz-question:hover{box-shadow:0 4px 15px rgba(0,0,0,.12);transform:translateY(-2px)}
.ttx-quiz-question h3{font-size:16px;color:#333;line-height:1.6;margin-bottom:15px}
.ttx-quiz-question h3 b{color:#057ab5;margin-right:6px}
.ttx-quiz-question p{display:flex;align-items:flex-start;padding:12px 15px;margin:10px 0;background:#f8f9fa;border-radius:8px;border:2px solid #e9ecef;transition:all .3s ease;font-size:15px;line-height:1.6;cursor:default;position:relative}
.ttx-quiz-question input[type=radio]{margin-right:10px;margin-top:3px;cursor:pointer;width:16px;height:16px;flex-shrink:0}
.ttx-quiz-question input[type=text]{width:100%;max-width:280px;padding:10px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;transition:all .3s}
.ttx-quiz-question input[type=text]:focus{outline:0;border-color:#057ab5;box-shadow:0 0 0 2px rgba(5,122,181,.1)}
.ttx-explanation-active{background:#d4edda!important;border-color:#28a745!important;border-left:4px solid #28a745!important}
.ttx-explanation-active span{background:#28a745!important}
.ttx-explanation-selected{background:#f8d7da!important;border-color:#dc3545!important;border-left:4px solid #dc3545!important}
.ttx-explanation-selected span{background:#dc3545!important}
.ttx-quiz-question>p[style*="color:#FF7058"],.ttx-quiz-question>p[style*="color:#009245"]{border:0;padding:15px 20px;border-radius:8px;font-weight:600;display:flex;align-items:center;gap:10px;margin:15px 0;transition:all .3s ease}
.ttx-quiz-question>p[style*="color:#FF7058"]:hover{background:#ffe69c;transform:translateX(5px);box-shadow:0 3px 10px rgba(255,193,7,.25)}
.ttx-quiz-question>p[style*="color:#009245"]:hover{background:#c3e6cb;transform:translateX(5px);box-shadow:0 3px 10px rgba(40,167,69,.25)}
.ttx-question-explanaton{background:#e7f3ff;border-left:4px solid #057ab5;padding:20px;margin-top:20px;border-radius:8px;font-size:14px;line-height:1.8;color:#495057}
.ttx-question-explanaton p{display:block;background:transparent!important;border:none!important;padding:5px 0!important;margin:8px 0!important;transform:none!important;box-shadow:none!important}
.ttx-question-explanaton p:hover{background:transparent!important;border:none!important;transform:none!important;box-shadow:none!important}
.ttx-question-explanaton img{max-width:100%;height:auto;margin:10px 0}
.btn-cancel{background:#dc3545;color:#fff;padding:10px 30px;border-radius:8px;border:0;font-size:14px;font-weight:600;cursor:pointer;transition:all .3s ease;display:inline-flex;align-items:center;gap:7px}
.btn-cancel:hover{background:#c82333;transform:translateY(-2px);box-shadow:0 6px 15px rgba(220,53,69,.4)}
.ttx-quiz-question::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#057ab5;border-radius:10px 0 0 10px;transform:scaleY(0);transition:transform .3s ease}
.ttx-quiz-question:hover::before{transform:scaleY(1)}
.ttx-btn-cont{display:flex;justify-content:center; align-items: center;}
.ttx-review-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-bottom:5px}
.ttx-review-stat{background:#fff;border:1px solid #e5e7eb;border-radius:10px;padding:10px 12px;display:flex;flex-direction:column;gap:4px}
.ttx-review-stat .label{color:#6b7280;font-size:12px}
.ttx-review-stat .value{font-weight:700;color:#111827}
.ttx-exp-toggle{display:inline-flex;align-items:center;gap:6px;background:#f8fafc;border:1px solid #e5e7eb;color:#374151;padding:6px 10px;border-radius:6px;font-size:12px;cursor:pointer;margin:8px 0}
.ttx-exp-toggle:hover{background:#eef2f7}
.ttx-start-details .mui-tabs__bar li.mui--is-active a{background:#057ab5!important;color:#fff!important;border-bottom:2px solid #057ab5!important}
.ttx-start-details .mui-tabs__bar li:not(.mui--is-active) a:hover{background:#e9ecef!important;color:#057ab5!important}
.ttx-details-grid{display:grid;grid-template-columns:1fr;gap:16px}
@media(min-width:992px){.ttx-details-grid{grid-template-columns:1fr 1fr}}
.ttx-accordion{background:#fff;border-radius:10px;box-shadow:0 1px 8px rgba(0,0,0,.04);border:1px solid #e9ecef;overflow:hidden}
.ttx-accordion-wide{grid-column:1/-1}
.ttx-accordion-header{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;color:#057ab5;font-weight:700;border-bottom:1px solid #e9ecef;cursor:pointer}
.ttx-accordion-header .left{display:flex;align-items:center;gap:8px}
.ttx-accordion-header .toggle{width:24px;height:24px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:#f0f7fb;color:#057ab5}
.ttx-accordion-body{padding:16px}
.ttx-accordion.collapsed .ttx-accordion-body{display:none}
.ttx-details-container .ttx-details-header{padding:18px 12px!important;margin-bottom:16px!important}
.ttx-details-container .ttx-content-box{padding:14px!important;margin-bottom:12px!important}
.ttx-details-container .ttx-section-heading{font-size:17px!important;padding-bottom:8px!important;margin-bottom:12px!important}
.ttx-details-container .ttx-rule-item{padding:10px!important;margin-bottom:8px!important}
.ttx-details-container .ttx-palette-item{padding:8px!important;margin-bottom:6px!important}
.ttx-details-container .ttx-marks-table th{padding:10px!important}
.ttx-details-container .ttx-marks-table td{padding:8px!important}
.test-series-review-exp p{text-align:left!important}
.test-series-review-exp img{display:block!important}
.ttx-score-card{max-width: 770px; text-align: center; justify-self: center;} 
.ttx-quiz-review{background:#fff;border-radius:10px;padding:20px;margin-bottom:20px;box-shadow:0 2px 10px rgba(0,0,0,.08)}
.ttx-quiz-review.rounded{border-radius:10px}.txt-tags b{color:#057ab5;font-weight:600;font-size:16px;margin-left:5px}.tags-li{border-left:4px solid #28a745}
.ttx-start-details .mui-tabs__bar{display:flex;list-style:none;border-bottom:2px solid #e0e0e0;margin-bottom:25px;padding:0;flex-wrap:wrap;background:#fff}
.ttx-start-details .mui-tabs__bar li{margin-right:5px}
.ttx-start-details .mui-tabs__bar li a{display:block;padding:12px 30px;background:#f8f9fa;color:#666;text-decoration:none;border-radius:8px 8px 0 0;font-weight:600;transition:all .3s;border:2px solid transparent}
.ttx-start-details .mui-tabs__bar li.mui--is-active a{background:#057ab5;color:#fff;border-bottom:2px solid #057ab5}
.ttx-start-details .mui-tabs__bar li:not(.mui--is-active) a:hover{background:#e9ecef;color:#057ab5}
.ttx-start-details .mui-tabs__pane{display:none}
.ttx-start-details .mui-tabs__pane.mui--is-active{display:block;border:0!important}
.ttx-quiz-question h3 span{display:inline-block;background:#057ab5;color:#fff;padding:4px 12px;border-radius:6px;font-weight:600;margin-right:10px;min-width:40px;text-align:center}
.ttx-quiz-question p span{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:28px;background:#057ab5;color:#fff;border-radius:50%;font-weight:600;margin-right:12px;flex-shrink:0;font-size:14px}
.ttx-question-explanaton p span{background:0 0;color:inherit;border-radius:0;margin:0;min-width:auto;height:auto}
.ttx-question-explanaton ul,.ttx-question-explanaton ol{margin:15px 0;padding-left:25px}
.ttx-question-explanaton li{margin:8px 0}.quiz-table{width:100%;border-collapse:collapse;margin:15px 0}
.quiz-table th,.quiz-table td{border:1px solid #dee2e6;padding:10px;text-align:center}
.quiz-table th{background:#057ab5;color:#fff;font-weight:600}
.quiz-table td{background:#fff}
.txt-center{text-align:center;padding:30px 0}
.mui-col-md-4{width:33.333%;padding:0 15px;float:left}
.clear{clear:both}.MathJax{display:inline-block!important}mjx-container{display:inline-block!important;margin:0 2px}
.ttx-loading-review{text-align:center;padding:60px 20px;color:#6c757d;font-size:16px}
.ttx-loading-review::after{content:"";display:block;width:50px;height:50px;margin:20px auto;border:5px solid #f3f3f3;border-top:5px solid #057ab5;border-radius:50%;animation:spin 1s linear infinite}
div[style*="text-align:center"] 
img{max-width:100%;height:auto;display:block;margin:15px auto}
.ttx-quiz-question h3+p:first-of-type{margin-top:20px}
.ttx-quiz-question>p:not([class]) b{color:#057ab5;font-size:16px}

/* New tx-new-header shell compatibility for legacy test-series pages */
.cur-dark .ttx-test-container,
.cur-dark .ttx-home,
.cur-dark .ttx-details-container,
.cur-dark #content-wrapper.ttx-home{background:transparent!important;color:#f4f2ff!important}
.cur-dark .ttx-cards-container,
.cur-dark .ttx-leaderboard-container,
.cur-dark .ttx-test-card,
.cur-dark .test-review-view,
.cur-dark .ttx-content-box,
.cur-dark .ttx-quiz-question,
.cur-dark .timelinevideo-content,
.cur-dark .ttx-accordion,
.cur-dark .no-data,
.cur-dark .ttx-filter-section,
.cur-dark .ttx-start-details .mui-tabs__bar{
    background:rgba(255,255,255,.055)!important;
    border:1px solid rgba(255,255,255,.12)!important;
    color:#f4f2ff!important;
    box-shadow:0 16px 36px rgba(0,0,0,.22)!important;
}
.cur-dark .ttx-card-details,
.cur-dark .ttx-card-footer,
.cur-dark .ttx-card-body,
.cur-dark .ttx-leaderboard-table th,
.cur-dark .ttx-rule-item,
.cur-dark .ttx-palette-item,
.cur-dark .ttx-accordion-body,
.cur-dark .ttx-start-details .mui-tabs__bar li a{
    background:rgba(255,255,255,.045)!important;
    border-color:rgba(255,255,255,.12)!important;
}
.cur-dark .ttx-page-header,
.cur-dark .ttx-track-header,
.cur-dark .ttx-details-header{box-shadow:0 18px 42px rgba(5,122,181,.28)!important}
.cur-dark .ttx-page-header *,
.cur-dark .ttx-track-header *,
.cur-dark .ttx-details-header *,
.cur-dark .test-series-class-wrap,
.cur-dark .test-series-class-wrap *{color:#ffffff!important}
.cur-dark .ttx-section-title,
.cur-dark .ttx-card-title h3,
.cur-dark .ttx-card-detail-value,
.cur-dark .ttx-card-score-text,
.cur-dark .ttx-leaderboard-name,
.cur-dark .ttx-leaderboard-score,
.cur-dark .ttx-rule-text,
.cur-dark .ttx-palette-text,
.cur-dark .timelinevideo-content h2,
.cur-dark .timelinevideo-content p,
.cur-dark .timelinevideo-content p span,
.cur-dark .ttx-filter-section label,
.cur-dark .ttx-accordion-header,
.cur-dark .ttx-quiz-question,
.cur-dark .ttx-quiz-question *:not(.fa):not(i),
.cur-dark #divQuestionView,
.cur-dark #divQuestionView *:not(.fa):not(i){color:#f4f2ff!important}
.cur-dark .ttx-card-detail-label,
.cur-dark .ttx-card-not-attempted,
.cur-dark .ttx-card-attempt-date,
.cur-dark .ttx-leaderboard-class,
.cur-dark .ttx-loading,
.cur-dark .ttx-loading-review,
.cur-dark .no-data,
.cur-dark .end{color:#bcb7d8!important}
.cur-dark .ttx-section-title{border-bottom-color:rgba(255,255,255,.22)!important}
.cur-dark .ttx-card-header{color:#fff!important;background:linear-gradient(135deg,rgba(59,130,246,.42),rgba(139,92,246,.38))!important}
.cur-dark .ttx-card-header.attempted{background:linear-gradient(135deg,rgba(34,197,94,.34),rgba(20,184,166,.28))!important}
.cur-dark .ttx-card-header.locked{background:linear-gradient(135deg,rgba(239,68,68,.28),rgba(139,92,246,.32))!important}
.cur-dark .ttx-card-subject-chip{background:rgba(255,255,255,.13)!important;color:#fff!important}
.cur-dark .ttx-card-action-btn{background:rgba(255,255,255,.16)!important}
.cur-dark .ttx-leaderboard-table td{border-bottom-color:rgba(255,255,255,.09)!important;color:#f4f2ff!important}
.cur-dark .ttx-leaderboard-table tr:hover{background:rgba(255,255,255,.05)!important}
.cur-dark .ttx-leaderboard-table th{color:#d8d6ee!important}
.cur-dark .ttx-user-rank-section{background:transparent!important;box-shadow:none!important}
.cur-dark .ttx-marks-table td{background:rgba(255,255,255,.05)!important;border-color:rgba(255,255,255,.12)!important}
.cur-dark .ttx-marks-table td,.cur-dark .ttx-marks-table td *{color:#f4f2ff!important}
.cur-dark .ttx-marks-table th,.cur-dark .ttx-marks-table th *{color:#fff!important}
.cur-dark .option-row{
    background:rgba(255,255,255,.06)!important;
    border-color:rgba(255,255,255,.16)!important;
    color:#f4f2ff!important;
}
.cur-dark .option-row:hover{background:rgba(5,122,181,.18)!important;border-color:#38bdf8!important}
.cur-dark .option-row.selected-option{background:rgba(34,197,94,.18)!important;border-color:#22c55e!important}
.cur-dark .option-label,
.cur-dark .option-label span,
.cur-dark .option-label p,
.cur-dark .option-label div,
.cur-dark .option-label mjx-container,
.cur-dark .option-label .MathJax,
.cur-dark .option-label .mjx-math{color:#f4f2ff!important;background:transparent!important}
.cur-dark .option-row span,
.cur-dark .option-row p,
.cur-dark .option-row div,
.cur-dark .option-row mjx-container{
    display:inline!important;min-width:0!important;height:auto!important;
    margin:0!important;padding:0!important;border-radius:0!important;
    background:transparent!important;color:#f4f2ff!important;
}
.cur-dark .option-row mjx-container{display:inline-block!important}
.cur-dark .option-label svg,
.cur-dark .option-label svg *{fill:currentColor!important;stroke:currentColor!important}
html[data-theme="light"] .cur-dark .ttx-test-container,
html[data-theme="light"] .cur-dark .ttx-home,
html[data-theme="light"] .cur-dark .ttx-details-container,
html[data-theme="light"] .cur-dark #content-wrapper.ttx-home{background:#f5f7fa!important;color:#1f2937!important}
html[data-theme="light"] .cur-dark .ttx-cards-container,
html[data-theme="light"] .cur-dark .ttx-leaderboard-container,
html[data-theme="light"] .cur-dark .ttx-test-card,
html[data-theme="light"] .cur-dark .test-review-view,
html[data-theme="light"] .cur-dark .ttx-content-box,
html[data-theme="light"] .cur-dark .ttx-quiz-question,
html[data-theme="light"] .cur-dark .timelinevideo-content,
html[data-theme="light"] .cur-dark .ttx-accordion,
html[data-theme="light"] .cur-dark .no-data,
html[data-theme="light"] .cur-dark .ttx-filter-section,
html[data-theme="light"] .cur-dark .ttx-start-details .mui-tabs__bar{background:#ffffff!important;color:#1f2937!important;border-color:#e5e7eb!important;box-shadow:0 2px 8px rgba(0,0,0,.08)!important}
html[data-theme="light"] .cur-dark .ttx-card-details,
html[data-theme="light"] .cur-dark .ttx-card-footer,
html[data-theme="light"] .cur-dark .ttx-card-body,
html[data-theme="light"] .cur-dark .ttx-rule-item,
html[data-theme="light"] .cur-dark .ttx-palette-item{background:#f9fafb!important;color:#1f2937!important;border-color:#e5e7eb!important}
html[data-theme="light"] .cur-dark .ttx-section-title,
html[data-theme="light"] .cur-dark .ttx-card-title h3,
html[data-theme="light"] .cur-dark .ttx-card-detail-value,
html[data-theme="light"] .cur-dark .ttx-card-score-text,
html[data-theme="light"] .cur-dark .ttx-leaderboard-name,
html[data-theme="light"] .cur-dark .ttx-leaderboard-score,
html[data-theme="light"] .cur-dark .ttx-rule-text,
html[data-theme="light"] .cur-dark .ttx-palette-text,
html[data-theme="light"] .cur-dark .timelinevideo-content h2,
html[data-theme="light"] .cur-dark .timelinevideo-content p,
html[data-theme="light"] .cur-dark .timelinevideo-content p span,
html[data-theme="light"] .cur-dark .ttx-filter-section label,
html[data-theme="light"] .cur-dark .ttx-accordion-header,
html[data-theme="light"] .cur-dark .ttx-quiz-question,
html[data-theme="light"] .cur-dark .ttx-quiz-question *:not(.fa):not(i),
html[data-theme="light"] .cur-dark #divQuestionView,
html[data-theme="light"] .cur-dark #divQuestionView *:not(.fa):not(i){color:#1f2937!important}
html[data-theme="light"] .cur-dark .ttx-card-detail-label,
html[data-theme="light"] .cur-dark .ttx-card-not-attempted,
html[data-theme="light"] .cur-dark .ttx-card-attempt-date,
html[data-theme="light"] .cur-dark .ttx-leaderboard-class,
html[data-theme="light"] .cur-dark .ttx-loading,
html[data-theme="light"] .cur-dark .ttx-loading-review,
html[data-theme="light"] .cur-dark .no-data,
html[data-theme="light"] .cur-dark .end{color:#6b7280!important}
html[data-theme="light"] .cur-dark .ttx-marks-table td,
html[data-theme="light"] .cur-dark .ttx-marks-table td *{background:#fff!important;color:#1f2937!important}
html[data-theme="light"] .cur-dark .option-row{background:#f8fafc!important;border-color:#d7dde8!important;color:#1f2937!important}
html[data-theme="light"] .cur-dark .option-row:hover{background:#eef6ff!important;border-color:#057ab5!important}
html[data-theme="light"] .cur-dark .option-row.selected-option{background:#dcfce7!important;border-color:#22c55e!important}
html[data-theme="light"] .cur-dark .option-label,
html[data-theme="light"] .cur-dark .option-label span,
html[data-theme="light"] .cur-dark .option-label p,
html[data-theme="light"] .cur-dark .option-label div,
html[data-theme="light"] .cur-dark .option-label mjx-container,
html[data-theme="light"] .cur-dark .option-label .MathJax,
html[data-theme="light"] .cur-dark .option-label .mjx-math{color:#1f2937!important;background:transparent!important}

/* Final dark-mode corrections for test-series pages inside tx-new-header shell. */
html:not([data-theme="light"]) main.cur-dark #content-wrapper.ttx-test-container,
html:not([data-theme="light"]) main.cur-dark #content-wrapper.ttx-home,
html:not([data-theme="light"]) main.cur-dark #content-wrapper.ttx-details-container,
html:not([data-theme="light"]) main.cur-dark .container,
html:not([data-theme="light"]) main.cur-dark .ttx-content-wrapper,
html:not([data-theme="light"]) main.cur-dark #test-series-content,
html:not([data-theme="light"]) main.cur-dark #divSeriesDetails,
html:not([data-theme="light"]) main.cur-dark #test-review{
    background:transparent!important;
    color:#f4f2ff!important;
    box-shadow:none!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-cards-container,
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-container,
html:not([data-theme="light"]) main.cur-dark .ttx-test-card,
html:not([data-theme="light"]) main.cur-dark .test-review-view,
html:not([data-theme="light"]) main.cur-dark .ttx-subject-class,
html:not([data-theme="light"]) main.cur-dark .ttx-content-box,
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question,
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-review,
html:not([data-theme="light"]) main.cur-dark .timelinevideo-content,
html:not([data-theme="light"]) main.cur-dark .ttx-accordion,
html:not([data-theme="light"]) main.cur-dark .no-data,
html:not([data-theme="light"]) main.cur-dark .ttx-filter-section,
html:not([data-theme="light"]) main.cur-dark .ttx-start-details .mui-tabs__bar,
html:not([data-theme="light"]) main.cur-dark .ttx-review-stat{
    background:rgba(255,255,255,.055)!important;
    border-color:rgba(255,255,255,.12)!important;
    color:#f4f2ff!important;
    box-shadow:0 16px 36px rgba(0,0,0,.22)!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-card-details,
html:not([data-theme="light"]) main.cur-dark .ttx-card-footer,
html:not([data-theme="light"]) main.cur-dark .ttx-card-body,
html:not([data-theme="light"]) main.cur-dark .ttx-rule-item,
html:not([data-theme="light"]) main.cur-dark .ttx-palette-item,
html:not([data-theme="light"]) main.cur-dark .ttx-accordion-body,
html:not([data-theme="light"]) main.cur-dark .ttx-start-details .mui-tabs__bar li a,
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-table th{
    background:rgba(255,255,255,.045)!important;
    border-color:rgba(255,255,255,.12)!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-section-title,
html:not([data-theme="light"]) main.cur-dark .ttx-section-heading,
html:not([data-theme="light"]) main.cur-dark .ttx-card-title h3,
html:not([data-theme="light"]) main.cur-dark .ttx-card-detail-value,
html:not([data-theme="light"]) main.cur-dark .ttx-card-score-text,
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-name,
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-score,
html:not([data-theme="light"]) main.cur-dark .ttx-rule-text,
html:not([data-theme="light"]) main.cur-dark .ttx-palette-text,
html:not([data-theme="light"]) main.cur-dark .timelinevideo-content h2,
html:not([data-theme="light"]) main.cur-dark .timelinevideo-content p,
html:not([data-theme="light"]) main.cur-dark .timelinevideo-content p span,
html:not([data-theme="light"]) main.cur-dark .ttx-filter-section label,
html:not([data-theme="light"]) main.cur-dark .ttx-accordion-header,
html:not([data-theme="light"]) main.cur-dark .ttx-content-box p,
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question,
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question *:not(.fa):not(i),
html:not([data-theme="light"]) main.cur-dark #divQuestionView,
html:not([data-theme="light"]) main.cur-dark #divQuestionView *:not(.fa):not(i){
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-card-detail-label,
html:not([data-theme="light"]) main.cur-dark .ttx-card-not-attempted,
html:not([data-theme="light"]) main.cur-dark .ttx-card-attempt-date,
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-class,
html:not([data-theme="light"]) main.cur-dark .ttx-loading,
html:not([data-theme="light"]) main.cur-dark .ttx-loading-review,
html:not([data-theme="light"]) main.cur-dark .ttx-review-stat .label,
html:not([data-theme="light"]) main.cur-dark .no-data,
html:not([data-theme="light"]) main.cur-dark .end{
    color:#bcb7d8!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-section-title,
html:not([data-theme="light"]) main.cur-dark .ttx-section-heading{
    border-bottom-color:rgba(255,255,255,.22)!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-card-header{
    color:#fff!important;
    background:linear-gradient(135deg,rgba(59,130,246,.42),rgba(139,92,246,.38))!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-card-header.attempted{
    background:linear-gradient(135deg,rgba(34,197,94,.34),rgba(20,184,166,.28))!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-card-header.locked{
    background:linear-gradient(135deg,rgba(239,68,68,.28),rgba(139,92,246,.32))!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-card-subject-chip{
    background:rgba(255,255,255,.13)!important;
    color:#fff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-table td{
    border-bottom-color:rgba(255,255,255,.09)!important;
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-table tr:hover{
    background:rgba(255,255,255,.05)!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-marks-table td{
    background:rgba(255,255,255,.05)!important;
    border-color:rgba(255,255,255,.12)!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-marks-table td,
html:not([data-theme="light"]) main.cur-dark .ttx-marks-table td *{
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .option-row{
    background:rgba(255,255,255,.06)!important;
    border-color:rgba(255,255,255,.16)!important;
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .option-row:hover{
    background:rgba(5,122,181,.18)!important;
    border-color:#38bdf8!important;
}
html:not([data-theme="light"]) main.cur-dark .option-row.selected-option{
    background:rgba(34,197,94,.18)!important;
    border-color:#22c55e!important;
}
html:not([data-theme="light"]) main.cur-dark .option-label,
html:not([data-theme="light"]) main.cur-dark .option-label span,
html:not([data-theme="light"]) main.cur-dark .option-label p,
html:not([data-theme="light"]) main.cur-dark .option-label div,
html:not([data-theme="light"]) main.cur-dark .option-label mjx-container,
html:not([data-theme="light"]) main.cur-dark .option-label .MathJax,
html:not([data-theme="light"]) main.cur-dark .option-label .mjx-math{
    color:#f4f2ff!important;
    background:transparent!important;
}
html:not([data-theme="light"]) main.cur-dark .option-row span,
html:not([data-theme="light"]) main.cur-dark .option-row p,
html:not([data-theme="light"]) main.cur-dark .option-row div,
html:not([data-theme="light"]) main.cur-dark .option-row mjx-container{
    display:inline!important;
    min-width:0!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    border-radius:0!important;
    background:transparent!important;
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .option-row mjx-container{
    display:inline-block!important;
}

/* Test-series review AJAX output: dark-mode readable rows and status blocks. */
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-table tbody tr.current-user-row,
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-table tbody tr.current-user-row:hover{
    background:rgba(245,158,11,.16)!important;
    border-left-color:#f59e0b!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-table tbody tr.current-user-row td{
    background:transparent!important;
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-table tbody tr.current-user-row .ttx-leaderboard-name,
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-table tbody tr.current-user-row .ttx-leaderboard-score,
html:not([data-theme="light"]) main.cur-dark .ttx-leaderboard-table tbody tr.current-user-row .ttx-leaderboard-class{
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark #trackData > h1,
html:not([data-theme="light"]) main.cur-dark .ttx-review-stat .value,
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-completed h2,
html:not([data-theme="light"]) main.cur-dark .ttx-score-item .value{
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-completed,
html:not([data-theme="light"]) main.cur-dark .ttx-score-item{
    background:rgba(255,255,255,.055)!important;
    border-color:rgba(255,255,255,.12)!important;
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-start-details .mui-tabs__bar li.mui--is-active a{
    background:rgba(5,122,181,.72)!important;
    color:#fff!important;
    border-color:#38bdf8!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-start-details .mui-tabs__bar li:not(.mui--is-active) a{
    color:#bcb7d8!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question h3,
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question h3 *:not(span){
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question h3{
    background:rgba(255,255,255,.07)!important;
    border:1px solid rgba(255,255,255,.16)!important;
    border-left:4px solid #f59e0b!important;
    border-radius:8px!important;
    padding:12px 14px!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question h3 span{
    background:#f59e0b!important;
    color:#1a1208!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question > p{
    background:rgba(255,255,255,.07)!important;
    border-color:rgba(255,255,255,.16)!important;
    color:#f4f2ff!important;
    box-shadow:none!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question > p:not(.ttx-explanation-active):not(.ttx-explanation-selected):hover{
    background:rgba(255,255,255,.1)!important;
    transform:none!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question > p span{
    color:#fff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question > p:not(.ttx-explanation-active):not(.ttx-explanation-selected) span{
    background:#057ab5!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-explanation-active{
    background:rgba(34,197,94,.18)!important;
    border-color:#22c55e!important;
    color:#dcfce7!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-explanation-active span{
    background:#16a34a!important;
    color:#fff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-explanation-selected{
    background:rgba(239,68,68,.16)!important;
    border-color:#ef4444!important;
    color:#fee2e2!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-explanation-selected span{
    background:#dc2626!important;
    color:#fff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question > p[style*="color:#FF7058"]{
    background:rgba(239,68,68,.12)!important;
    border-color:rgba(239,68,68,.38)!important;
    color:#fca5a5!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question > p[style*="color:#009245"]{
    background:rgba(34,197,94,.14)!important;
    border-color:rgba(34,197,94,.42)!important;
    color:#86efac!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question > p[style*="color:#FF7058"] b,
html:not([data-theme="light"]) main.cur-dark .ttx-quiz-question > p[style*="color:#009245"] b{
    color:inherit!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-question-explanaton{
    background:rgba(5,122,181,.14)!important;
    border-color:#38bdf8!important;
    color:#dbeafe!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-question-explanaton p,
html:not([data-theme="light"]) main.cur-dark .ttx-question-explanaton li,
html:not([data-theme="light"]) main.cur-dark .ttx-question-explanaton span{
    color:#dbeafe!important;
    background:transparent!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-rule-icon,
html:not([data-theme="light"]) main.cur-dark .ttx-icon-wrapper{
    background:#f59e0b!important;
    color:#1a1208!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-rule-icon i,
html:not([data-theme="light"]) main.cur-dark .ttx-icon-wrapper i{
    color:#1a1208!important;
}
html[data-theme="light"] main.cur-dark .ttx-rule-icon,
html[data-theme="light"] main.cur-dark .ttx-icon-wrapper{
    background:#057ab5!important;
    color:#fff!important;
}
html[data-theme="light"] main.cur-dark .ttx-rule-icon i,
html[data-theme="light"] main.cur-dark .ttx-icon-wrapper i{
    color:#fff!important;
}

/* Dark mode: keep test-series hero/header areas transparent, light mode keeps blue. */
html:not([data-theme="light"]) main.cur-dark .ttx-page-header,
html:not([data-theme="light"]) main.cur-dark .ttx-track-header,
html:not([data-theme="light"]) main.cur-dark .ttx-details-header{
    background:transparent!important;
    background-image:none!important;
    border:1px solid rgba(255,255,255,.12)!important;
    box-shadow:none!important;
    color:#f4f2ff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-page-header h1,
html:not([data-theme="light"]) main.cur-dark .ttx-track-header h1,
html:not([data-theme="light"]) main.cur-dark .ttx-details-header h1{
    color:#ffffff!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-page-header p,
html:not([data-theme="light"]) main.cur-dark .ttx-track-header p,
html:not([data-theme="light"]) main.cur-dark .ttx-details-header p{
    color:#d8d6ee!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-back-btn{
    margin-top:10px!important;
}

/* Test-series final theme fixes: keep active tabs, question states, and explanation controls readable. */
html[data-theme="light"] main.cur-dark .ttx-start-details .mui-tabs__bar,
html[data-theme="light"] main.cur-dark #subject-tabs{
    background:#fff!important;
    border-color:#d7dde8!important;
}
html[data-theme="light"] main.cur-dark .ttx-start-details .mui-tabs__bar li.mui--is-active a,
html[data-theme="light"] main.cur-dark .ttx-start-details .mui-tabs__bar li.clsSubjectTab.mui--is-active a,
html[data-theme="light"] main.cur-dark .ttx-start-details .mui-tabs__bar li.clsSubjectTabReview.mui--is-active a{
    background:#057ab5!important;
    color:#fff!important;
    border-color:#057ab5!important;
    box-shadow:0 6px 14px rgba(5,122,181,.18)!important;
}
html[data-theme="light"] main.cur-dark .ttx-start-details .mui-tabs__bar li:not(.mui--is-active) a{
    background:#fff!important;
    color:#475569!important;
    border:1px solid #d7dde8!important;
    box-shadow:none!important;
}
html[data-theme="light"] main.cur-dark .ttx-start-details .mui-tabs__bar li:not(.mui--is-active) a:hover{
    background:#eef7fd!important;
    color:#057ab5!important;
    border-color:#9fd3ed!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-start-details .mui-tabs__bar li.mui--is-active a,
html:not([data-theme="light"]) main.cur-dark .ttx-start-details .mui-tabs__bar li.clsSubjectTab.mui--is-active a,
html:not([data-theme="light"]) main.cur-dark .ttx-start-details .mui-tabs__bar li.clsSubjectTabReview.mui--is-active a{
    background:#f59e0b!important;
    color:#1a1208!important;
    border-color:#f59e0b!important;
    box-shadow:0 8px 18px rgba(245,158,11,.22)!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-start-details .mui-tabs__bar li:not(.mui--is-active) a{
    background:rgba(255,255,255,.055)!important;
    color:#d8d6ee!important;
    border-color:rgba(255,255,255,.14)!important;
}
html[data-theme="light"] main.cur-dark .ttx-exp-toggle{
    background:#fff!important;
    color:#057ab5!important;
    border-color:#bfdff0!important;
    box-shadow:0 2px 8px rgba(5,122,181,.08)!important;
}
html[data-theme="light"] main.cur-dark .ttx-exp-toggle i{
    color:#057ab5!important;
}
html[data-theme="light"] main.cur-dark .ttx-exp-toggle:hover{
    background:#eef7fd!important;
    border-color:#057ab5!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-exp-toggle{
    background:rgba(245,158,11,.16)!important;
    color:#fde68a!important;
    border-color:rgba(245,158,11,.45)!important;
    box-shadow:none!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-exp-toggle i{
    color:#fde68a!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-exp-toggle:hover{
    background:rgba(245,158,11,.25)!important;
    border-color:#f59e0b!important;
}
html[data-theme="light"] main.cur-dark .ttx-quiz-question h3{
    background:#e7f3ff!important;
    border:1px solid #cfe6f7!important;
    border-left:4px solid #057ab5!important;
    color:#1f2937!important;
}
html[data-theme="light"] main.cur-dark .ttx-quiz-question h3 *,
html[data-theme="light"] main.cur-dark .ttx-quiz-question > p,
html[data-theme="light"] main.cur-dark .ttx-quiz-question > p *:not(span){
    color:#1f2937!important;
}
html[data-theme="light"] main.cur-dark .ttx-quiz-question h3 span,
html[data-theme="light"] main.cur-dark .ttx-quiz-question > p:not(.ttx-explanation-active):not(.ttx-explanation-selected) span{
    background:#057ab5!important;
    color:#fff!important;
}
html[data-theme="light"] main.cur-dark .ttx-quiz-question > p{
    background:#f8fafc!important;
    border-color:#d7dde8!important;
    box-shadow:none!important;
}
html[data-theme="light"] main.cur-dark .ttx-explanation-active{
    background:#dcfce7!important;
    border-color:#22c55e!important;
    color:#14532d!important;
}
html[data-theme="light"] main.cur-dark .ttx-explanation-selected{
    background:#fee2e2!important;
    border-color:#ef4444!important;
    color:#7f1d1d!important;
}
html[data-theme="light"] main.cur-dark .clsQuestion.white .mui-tab-num,
html[data-theme="light"] main.cur-dark .clsQuestion.rounded.white .mui-tab-num{
    background:#fff!important;
    color:#1f2937!important;
    border-color:#cbd5e1!important;
}
html[data-theme="light"] main.cur-dark .clsQuestion.green .mui-tab-num,
html[data-theme="light"] main.cur-dark .clsQuestion.rounded.green .mui-tab-num{
    background:#22c55e!important;
    color:#fff!important;
    border-color:#16a34a!important;
}
html[data-theme="light"] main.cur-dark .clsQuestion.red .mui-tab-num,
html[data-theme="light"] main.cur-dark .clsQuestion.rounded.red .mui-tab-num{
    background:#ef4444!important;
    color:#fff!important;
    border-color:#dc2626!important;
}
html[data-theme="light"] main.cur-dark .clsQuestion.yellow .mui-tab-num,
html[data-theme="light"] main.cur-dark .clsQuestion.rounded.yellow .mui-tab-num{
    background:#f59e0b!important;
    color:#1f2937!important;
    border-color:#d97706!important;
}
html[data-theme="light"] main.cur-dark .clsQuestion.blue .mui-tab-num,
html[data-theme="light"] main.cur-dark .clsQuestion.rounded.blue .mui-tab-num{
    background:#2563eb!important;
    color:#fff!important;
    border-color:#1d4ed8!important;
}

/* Test-series buttons/icons: blue in light mode, orange in dark mode. */
html[data-theme="light"] main.cur-dark .ttx-card-btn-primary,
html[data-theme="light"] main.cur-dark .ttx-card-btn-secondary,
html[data-theme="light"] main.cur-dark .ttx-card-btn-locked,
html[data-theme="light"] main.cur-dark .ttx-back-btn,
html[data-theme="light"] main.cur-dark .load_more_btn{
    background:#057ab5!important;
    color:#fff!important;
    border-color:#057ab5!important;
    box-shadow:0 4px 12px rgba(5,122,181,.22)!important;
}
html[data-theme="light"] main.cur-dark .ttx-card-btn-primary:hover,
html[data-theme="light"] main.cur-dark .ttx-card-btn-secondary:hover,
html[data-theme="light"] main.cur-dark .ttx-card-btn-locked:hover,
html[data-theme="light"] main.cur-dark .ttx-back-btn:hover,
html[data-theme="light"] main.cur-dark .load_more_btn:hover{
    background:#086fa3!important;
    color:#fff!important;
}
html[data-theme="light"] main.cur-dark .timelinevideo-icon,
html[data-theme="light"] main.cur-dark .ttx-test-icon,
html[data-theme="light"] main.cur-dark .ttx-icon-wrapper{
    background:#057ab5!important;
    color:#fff!important;
    box-shadow:0 4px 12px rgba(5,122,181,.24)!important;
}
html[data-theme="light"] main.cur-dark .track-right-icon,
html[data-theme="light"] main.cur-dark .total-questions,
html[data-theme="light"] main.cur-dark .total-questions b{
    color:#057ab5!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-card-btn-primary,
html:not([data-theme="light"]) main.cur-dark .ttx-card-btn-secondary,
html:not([data-theme="light"]) main.cur-dark .ttx-card-btn-locked,
html:not([data-theme="light"]) main.cur-dark .ttx-back-btn,
html:not([data-theme="light"]) main.cur-dark .load_more_btn{
    background:#f59e0b!important;
    color:#1a1208!important;
    border-color:#f59e0b!important;
    box-shadow:0 8px 18px rgba(245,158,11,.24)!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-card-btn-primary:hover,
html:not([data-theme="light"]) main.cur-dark .ttx-card-btn-secondary:hover,
html:not([data-theme="light"]) main.cur-dark .ttx-card-btn-locked:hover,
html:not([data-theme="light"]) main.cur-dark .ttx-back-btn:hover,
html:not([data-theme="light"]) main.cur-dark .load_more_btn:hover{
    background:#fb923c!important;
    color:#1a1208!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-card-btn svg,
html:not([data-theme="light"]) main.cur-dark .ttx-back-btn i,
html:not([data-theme="light"]) main.cur-dark .load_more_btn i{
    color:#1a1208!important;
    stroke:#1a1208!important;
}
html:not([data-theme="light"]) main.cur-dark .timelinevideo-icon,
html:not([data-theme="light"]) main.cur-dark .ttx-test-icon,
html:not([data-theme="light"]) main.cur-dark .ttx-icon-wrapper{
    background:#f59e0b!important;
    color:#1a1208!important;
    box-shadow:0 8px 18px rgba(245,158,11,.24)!important;
}
html:not([data-theme="light"]) main.cur-dark .timelinevideo-icon img{
    filter:brightness(0) saturate(100%) invert(8%) sepia(30%) saturate(1271%) hue-rotate(356deg) brightness(90%) contrast(95%)!important;
}
html:not([data-theme="light"]) main.cur-dark .track-right-icon,
html:not([data-theme="light"]) main.cur-dark .total-questions,
html:not([data-theme="light"]) main.cur-dark .total-questions b{
    color:#f59e0b!important;
}
html:not([data-theme="light"]) main.cur-dark .timelinevideo-content::before{
    background:#f59e0b!important;
}

/* Track summary cards stay colored in light mode, but become transparent in dark mode. */
html:not([data-theme="light"]) main.cur-dark .ttx-stat-card,
html:not([data-theme="light"]) main.cur-dark .ttx-stat-card[style]{
    background:rgba(255,255,255,.055)!important;
    border:1px solid rgba(255,255,255,.13)!important;
    color:#f4f2ff!important;
    box-shadow:none!important;
}
html:not([data-theme="light"]) main.cur-dark .ttx-stat-card h4,
html:not([data-theme="light"]) main.cur-dark .ttx-stat-card .stat-value{
    color:#f4f2ff!important;
}
