.se-tasks{margin:2rem 0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}
.se-course-filter{display:flex;align-items:center;gap:.75rem;margin:0 0 1.25rem}
.se-course-filter-select{padding:.55rem .75rem;border:1px solid rgba(0,0,0,.12);border-radius:12px;background:#fff}
.se-course-title{margin:1.75rem 0 .75rem;font-size:1.25rem}

.se-task{border:1px solid rgba(0,170,255,.22);border-radius:18px;overflow:hidden;margin:0 0 1.25rem;box-shadow:0 10px 30px rgba(0,170,255,.10);background:#fff}
.se-task-header{display:flex;align-items:center;justify-content:space-between;padding:1rem 1.1rem;background:linear-gradient(135deg,rgba(0,170,255,.14),rgba(255,138,0,.10))}
.se-task-title{margin:0;font-size:1.05rem;line-height:1.25}
.se-toggle-task{border:0;border-radius:999px;padding:.45rem .8rem;background:rgba(0,170,255,.16);cursor:pointer;font-weight:800;color:#045a86}
.se-toggle-task:hover{background:rgba(255,138,0,.16);color:#7a3b00}
.se-task-body{padding:1rem 1.1rem}
.se-task-content{margin:0 0 1rem}

.se-submission-form p{margin:.75rem 0}
.se-submission-form input[type=text],.se-submission-form input[type=email],.se-submission-form textarea{width:100%;max-width:100%;padding:.65rem .75rem;border:1px solid rgba(0,0,0,.14);border-radius:14px;background:#fff;outline:none}
.se-submission-form textarea{min-height:140px;resize:vertical}
.se-submission-form input:focus,.se-submission-form textarea:focus{border-color:rgba(0,170,255,.55);box-shadow:0 0 0 4px rgba(0,170,255,.14)}

.se-submission-form button[type=submit],.se-submission-form input[type=submit]{border:0;border-radius:14px;padding:.65rem 1rem;cursor:pointer;font-weight:900;color:#fff;background:linear-gradient(135deg,#00aaff,#ff8a00)}
.se-submission-form button[type=submit]:hover,.se-submission-form input[type=submit]:hover{filter:brightness(.98)}
.se-submission-form button[type=submit]:disabled,.se-submission-form input[type=submit]:disabled{opacity:.65;cursor:not-allowed}

.se-result{border:1px solid rgba(0,170,255,.22);border-radius:18px;padding:1rem 1.1rem;margin:.5rem 0 0;background:linear-gradient(135deg,rgba(0,170,255,.12),rgba(255,138,0,.10))}
.se-result-title{margin:0 0 .35rem;font-size:1.05rem}
.se-result-sub{margin:0 0 .75rem;opacity:.85}
.se-result-sub.se-error{opacity:1;color:#b00020;font-weight:800}
.se-ai-error{margin:-.25rem 0 .75rem;padding:.6rem .75rem;border-radius:14px;background:rgba(176,0,32,.08);border:1px solid rgba(176,0,32,.18)}

.se-section{margin:.85rem 0 0}
.se-section h4{margin:0 0 .5rem;font-size:.95rem}
.se-feedback{padding:.75rem .85rem;border-radius:16px;background:#fff;border:1px solid rgba(0,0,0,.08);line-height:1.45}

.se-badges{display:flex;flex-wrap:wrap;gap:.5rem}
.se-badge{display:inline-flex;align-items:center;gap:.35rem;padding:.35rem .6rem;border-radius:999px;font-weight:800;font-size:.85rem;border:1px solid rgba(0,0,0,.08);background:#fff}
.se-badge:nth-child(4n+1){background:rgba(0,170,255,.14);border-color:rgba(0,170,255,.22)}
.se-badge:nth-child(4n+2){background:rgba(255,138,0,.16);border-color:rgba(255,138,0,.22)}
.se-badge:nth-child(4n+3){background:rgba(0,170,255,.08);border-color:rgba(0,170,255,.18)}
.se-badge:nth-child(4n+4){background:rgba(255,138,0,.10);border-color:rgba(255,138,0,.18)}

.se-progress-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:.75rem}
.se-progress-card{background:#fff;border:1px solid rgba(0,0,0,.08);border-radius:18px;padding:.85rem .9rem;box-shadow:0 8px 20px rgba(0,0,0,.05)}
.se-progress-top{display:flex;align-items:center;justify-content:space-between;gap:.5rem;margin:0 0 .45rem}
.se-progress-skill{font-weight:900}
.se-progress-why{opacity:.9;line-height:1.35}
.se-hint{margin:.55rem 0 0;opacity:.8;font-size:.9rem}

.se-level{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:.18rem .55rem;font-weight:900;font-size:.78rem;border:1px solid rgba(0,0,0,.08)}
.se-level.beginner{background:rgba(0,170,255,.14);color:#005b8f}
.se-level.strategist{background:rgba(0,170,255,.10);color:#005b8f;border-color:rgba(255,138,0,.22)}
.se-level.leader{background:rgba(255,138,0,.16);color:#8a3f00;border-color:rgba(255,138,0,.28)}

.se-spinner{display:inline-flex;align-items:center;gap:.5rem}
.se-spinner:before{content:'';width:14px;height:14px;border-radius:50%;border:2px solid rgba(0,0,0,.18);border-top-color:rgba(0,0,0,.55);animation:seSpin .8s linear infinite}
@keyframes seSpin{to{transform:rotate(360deg)}}

.se-leaderboard{border-collapse:collapse;width:100%;border-radius:16px;overflow:hidden}
.se-leaderboard th,.se-leaderboard td{border:1px solid rgba(0,170,255,.20);padding:.6rem .7rem;text-align:left}
.se-leaderboard thead th{background:linear-gradient(135deg,rgba(0,170,255,.16),rgba(255,138,0,.12))}

/* Rank + medal styling */
.se-lb-rank{display:inline-flex;align-items:center;gap:.35rem;font-weight:1000}
.se-lb-medal{font-size:1.05rem;line-height:1;filter:saturate(1.05)}
.se-lb-rank-num{display:inline-flex;align-items:center;justify-content:center;min-width:1.6rem;height:1.6rem;border-radius:999px;
  background:linear-gradient(135deg,rgba(0,170,255,.12),rgba(255,138,0,.10));
  border:1px solid rgba(0,170,255,.22);color:#045a86}


/* Leaderboard UI improvements: clearer separation for badges vs paths */
.se-leaderboard td{vertical-align:top}
.se-lb-cell{display:flex;flex-direction:column;gap:.45rem}
.se-lb-cell-title{display:inline-flex;align-items:center;gap:.4rem;font-weight:1000;font-size:.85rem;letter-spacing:.2px;color:#045a86}
.se-lb-cell-title span{filter:saturate(1.1)}

.se-lb-badges{display:flex;flex-wrap:wrap;gap:.4rem}
.se-lb-badge{display:inline-flex;align-items:center;gap:.35rem;max-width:100%;padding:.28rem .55rem;border-radius:999px;border:1px solid rgba(0,170,255,.22);background:linear-gradient(135deg,rgba(0,170,255,.12),rgba(255,138,0,.08));font-weight:900;font-size:.78rem}
.se-lb-badge:nth-child(2n){border-color:rgba(255,138,0,.24);background:linear-gradient(135deg,rgba(255,138,0,.14),rgba(0,170,255,.06))}
.se-lb-badge-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:18rem}
.se-lb-badge-count{margin-left:.15rem;padding:.08rem .38rem;border-radius:999px;background:rgba(255,138,0,.18);border:1px solid rgba(255,138,0,.24);font-weight:1000}

.se-lb-path-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.45rem}
.se-lb-path-grid[data-count="1"],
.se-lb-path-grid[data-count="2"]{grid-template-columns:1fr}
.se-lb-path-grid[data-count="3"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.se-lb-path-grid[data-count="1"],
.se-lb-path-grid[data-count="2"]{grid-template-columns:1fr}
.se-lb-path{display:flex;align-items:center;justify-content:space-between;gap:.45rem;padding:.35rem .45rem;border-radius:14px;border:1px solid rgba(0,170,255,.18);background:#fff;box-shadow:0 6px 14px rgba(0,0,0,.04)}
.se-lb-path:nth-child(2n){border-color:rgba(255,138,0,.22);background:linear-gradient(135deg,rgba(0,170,255,.06),rgba(255,138,0,.06))}
.se-lb-path-icon{font-size:1rem;line-height:1}
.se-lb-path-abbr{font-weight:1000;color:#045a86;min-width:1.4rem;text-align:left}
.se-lb-path-level{margin-left:auto}

@media (max-width:720px){
  .se-lb-path-grid{grid-template-columns:1fr}
  .se-lb-badge-text{max-width:12rem}
}

.se-muted{opacity:.65}

/* Mind Reveal (Explain Your Thinking) */
.se-mind-reveal{border:1px solid rgba(0,170,255,.22);background:linear-gradient(135deg,rgba(0,170,255,.10),rgba(255,138,0,.08))}
.se-mind-q{font-weight:900;margin:.15rem 0 .35rem}
.se-mind-row{display:flex;align-items:center;gap:.65rem;margin:0 0 .45rem}
.se-mind-timer{font-weight:1000;padding:.25rem .55rem;border-radius:999px;border:1px solid rgba(0,170,255,.22);background:rgba(0,170,255,.12);color:#045a86}
.se-mind-hint{opacity:.75;font-weight:700}
.se-mind-answer{width:100%;max-width:100%;padding:.65rem .75rem;border:1px solid rgba(0,0,0,.14);border-radius:14px;background:#fff;outline:none;min-height:90px;resize:vertical}
.se-mind-answer:focus{border-color:rgba(0,170,255,.55);box-shadow:0 0 0 4px rgba(0,170,255,.14)}
.se-mind-actions{margin:.55rem 0 0}
.se-mind-submit{border:0;border-radius:14px;padding:.55rem .9rem;cursor:pointer;font-weight:1000;color:#fff;background:linear-gradient(135deg,#00aaff,#ff8a00)}
.se-mind-submit:disabled{opacity:.65;cursor:not-allowed}
.se-mind-msg{margin:.55rem 0 0;padding:.55rem .75rem;border-radius:14px;border:1px solid rgba(0,0,0,.08);background:#fff;font-weight:800}
.se-mind-msg.ok{border-color:rgba(0,170,255,.25);background:rgba(0,170,255,.08);color:#045a86}
.se-mind-msg.err{border-color:rgba(176,0,32,.18);background:rgba(176,0,32,.08);color:#b00020}
/* Legacy leaderboard pill styles kept for backwards compatibility (unused in v7 markup) */
.se-badges--lb{gap:.35rem}
.se-badge--lb{font-size:.78rem;padding:.25rem .5rem}
.se-paths{display:flex;flex-wrap:wrap;gap:.35rem}
.se-path-pill{display:inline-flex;align-items:center;gap:.35rem;padding:.22rem .5rem;border-radius:999px;font-weight:900;font-size:.78rem;border:1px solid rgba(0,170,255,.22);background:#fff}
.se-path-pill.beginner{background:rgba(0,170,255,.12);color:#005b8f}
.se-path-pill.strategist{background:rgba(0,170,255,.08);color:#005b8f;border-color:rgba(255,138,0,.22)}
.se-path-pill.leader{background:rgba(255,138,0,.14);color:#8a3f00;border-color:rgba(255,138,0,.28)}
