/* Small addition to the existing course library; no grid or navigation changes. */
[data-course-unlocks][hidden], .course-unlock-picker [hidden], #splash-choose-courses[hidden] { display:none!important; }
.splash-film__nav:has(#splash-choose-courses:not([hidden])) { flex-wrap:wrap; }
#splash-choose-courses { flex:1 1 100%; text-align:center; }
.course-unlocks { box-sizing:border-box; min-width:0; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 14px; margin:0 0 12px; border:1px solid #dce4e9; border-radius:12px; background:#fff; color:#203b49; box-shadow:none; scroll-margin-top:90px; }
.course-unlocks:focus-visible { outline:3px solid #77a5b6; outline-offset:3px; }
.course-unlocks__copy { min-width:0; flex:1; display:flex; align-items:center; gap:10px; }
.course-unlocks__icon { display:grid; place-items:center; flex:none; width:32px; height:32px; border-radius:9px; background:#f1f5f8; color:#315b73; }
.course-unlocks__icon .ic { width:17px; height:17px; }
.course-unlocks__content { min-width:0; flex:1; }
.course-unlocks h2 { margin:0 0 3px; color:#203f53; font-size:14px; line-height:1.3; letter-spacing:-.15px; font-weight:650; }
.course-unlocks__status { display:block; color:#607382; font-size:12px; line-height:1.5; overflow-wrap:anywhere; }
.course-unlocks__status.has-choices { color:#315b73; font-weight:600; }
.course-unlocks__priority { display:flex; align-items:baseline; gap:4px; min-width:0; margin-top:2px; color:#697e8d; font:400 11px/1.5 Inter,system-ui,sans-serif; }
.course-unlocks__priority strong { flex:none; font-weight:550; color:#45647a; }
.course-unlocks__priority>span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.course-unlocks__actions { flex:none; display:flex; align-items:center; gap:8px; }
.course-unlocks .cu-btn { min-height:44px; padding:6px 10px; gap:6px; }
.course-unlocks .cu-btn--primary { color:#254e67; background:#eef4f8; border-color:#cadbe5; }
.course-unlocks .cu-btn--primary:hover { background:#e4eef5; border-color:#a7c3d5; }
.course-unlocks .cu-btn--quiet { padding-inline:6px; color:#496879; }
.cu-btn { font:600 12px/1.4 Inter,system-ui,sans-serif; display:inline-flex; align-items:center; justify-content:center; gap:12px; min-height:40px; padding:9px 14px; border:1px solid #c8dadd; border-radius:9px; background:#fff; color:#345663; cursor:pointer; white-space:normal; }
.cu-btn--primary { color:#234e5b; background:#d9eef1; border-color:#afd2d8; }
.cu-btn--primary:hover { background:#cce5eb; border-color:#87b7c4; }
.cu-btn--quiet { border-color:transparent; background:transparent; }
.cu-btn--quiet:hover { text-decoration:underline; text-underline-offset:3px; }
.cu-btn:disabled { opacity:.55; cursor:default; }
.cu-btn:focus-visible,.course-unlock-option:focus-visible,.course-unlock-order button:focus-visible,.course-priority-link:focus-visible,.course-unlock-context__action:focus-visible { outline:3px solid #83b8ca; outline-offset:2px; }
.course-unlocks--retry { padding:12px 16px; }
.course-unlocks--retry p { margin:0; font-size:12px; line-height:1.5; }
.course-unlock-context { align-self:start; display:flex; align-items:center; justify-content:space-between; width:100%; min-width:0; min-height:40px; gap:8px; margin-top:9px; }
.course-priority-link { display:inline-flex; align-items:center; gap:6px; min-width:0; min-height:40px; padding:0; border:0; background:transparent; color:#587186; text-align:left; cursor:pointer; }
.course-priority-badge { display:inline-flex; align-items:center; flex:none; gap:4px; padding:4px 6px; border:1px solid #e0e6ec; border-radius:6px; background:#f5f7f9; color:#566e82; font:600 10.5px/1.25 Inter,system-ui,sans-serif; white-space:nowrap; transition:background .18s,border-color .18s; }
.course-priority-badge svg { width:13px; height:13px; flex:none; }
.course-priority-badge.is-first { color:#2e5d85; background:#edf4fb; border-color:#d0e0ef; }
.course-priority-link__label { color:var(--text-2,#60788b); font:500 11px/1.4 Inter,system-ui,sans-serif; white-space:nowrap; }
.course-unlock-context__action { display:inline-flex; align-items:center; min-height:40px; padding:4px 2px; border:0; background:transparent; color:var(--primary,#386d83); font:600 11px/1.4 Inter,system-ui,sans-serif; text-align:left; cursor:pointer; }
.course-priority-link:hover .course-priority-badge { border-color:#b4cbdc; background:#eef3f8; }
.course-priority-link:hover .course-priority-link__label,.course-unlock-context__action:hover { text-decoration:underline; text-underline-offset:3px; }
@media(prefers-reduced-motion:reduce) { .course-priority-badge { transition:none; } }
.course-unlock-picker { min-width:0; color:var(--text,#223b48); }
.course-unlock-picker__tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(170px,.65fr); gap:12px; margin-bottom:18px; }
.course-unlock-picker__tools label { display:grid; gap:6px; min-width:0; font-size:11px; color:var(--text-2,#5a707b); }
.course-unlock-picker__tools :is(input,select) { box-sizing:border-box; width:100%; min-width:0; min-height:43px; padding:10px 12px; border:1px solid var(--border,#d5e0e5); border-radius:9px; background:var(--surface,#fff); color:var(--text,#223b48); font:13px Inter,sans-serif; }
.course-unlock-picker__tools :is(input,select):focus-visible { outline:3px solid #b7dce8; outline-offset:1px; }
.course-unlock-picker__results { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; max-height:340px; overflow-y:auto; overscroll-behavior:contain; padding:3px; }
.course-unlock-option { box-sizing:border-box; display:flex; align-items:start; text-align:left; gap:10px; width:100%; min-width:0; padding:14px 12px; border:1px solid var(--border,#d7e1e6); border-radius:11px; background:var(--surface,#fff); color:var(--text,#243d49); cursor:pointer; }
.course-unlock-option.is-selected { border-color:#75aeb7; background:#eef9f7; color:#244c56; }
.course-unlock-option:disabled:not(.is-selected) { opacity:.48; cursor:default; }
.course-unlock-option__check { flex:none; width:22px; height:22px; display:grid; place-items:center; border:1px solid #b7d0d6; border-radius:7px; color:#477280; font-size:14px; background:#f4fafb; }
.course-unlock-option.is-selected .course-unlock-option__check { background:#d4ece7; border-color:#7bb5a8; }
.course-unlock-option__copy { display:block; min-width:0; }
.course-unlock-option small,.course-unlock-option em { display:block; color:inherit; opacity:.8; font-size:10px; font-style:normal; line-height:1.4; }
.course-unlock-option strong { display:block; margin:5px 0 7px; font:600 13px/1.5 Inter,sans-serif; overflow-wrap:anywhere; }
.course-unlock-picker__summary { font-size:12px; line-height:1.55; color:var(--text-2,#526c78); margin-bottom:12px; }
.course-unlock-picker__footer { width:100%; min-width:0; }
.course-unlock-picker__buttons { display:flex; justify-content:flex-end; flex-wrap:wrap; gap:9px; }
.course-unlock-picker__empty { padding:15px 4px; font-size:12px; line-height:1.6; grid-column:1/-1; color:var(--text-2,#607783); }
.course-unlock-picker__error { padding:12px; margin:12px 0 0; border-radius:8px; background:#fff1ee; color:#8c4135; font-size:12px; line-height:1.6; }
.course-unlock-picker h3 { margin:0 0 9px; font:600 12px Inter,sans-serif; }
.course-unlock-order { margin:0 0 20px; padding:0; list-style:none; display:grid; gap:6px; max-height:220px; overflow:auto; }
.course-unlock-order li { min-width:0; display:flex; align-items:center; gap:10px; padding:8px 10px; background:var(--surface-2,#f5f8fa); border-radius:8px; font:500 12px/1.5 Inter,sans-serif; }
.course-unlock-order li>span { min-width:0; flex:1; overflow-wrap:anywhere; }
.course-unlock-order li>div { flex:none; display:flex; gap:4px; }
.course-unlock-order button { border:1px solid var(--border,#d8e2e6); background:var(--surface,#fff); color:var(--text,#294a59); width:30px; height:32px; border-radius:6px; cursor:pointer; }
.course-unlock-order button:disabled { opacity:.4; cursor:default; }
@media(max-width:680px) { .course-unlocks { padding:10px 12px; gap:4px; align-items:stretch; flex-direction:column; } .course-unlocks__icon { width:28px; height:28px; border-radius:8px; } .course-unlocks__copy { gap:8px; } .course-unlocks__actions { gap:8px; min-width:0; width:100%; } .course-unlocks__actions .cu-btn--primary { flex:1; } .course-unlocks__actions .cu-btn--quiet { flex:none; } .course-unlocks--waiting { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:8px; row-gap:0; } .course-unlocks--waiting :is(.course-unlocks__copy,.course-unlocks__content) { display:contents; } .course-unlocks--waiting .course-unlocks__icon { display:none; } .course-unlocks--waiting h2 { grid-column:1; grid-row:1; align-self:end; } .course-unlocks--waiting .course-unlocks__status { grid-column:1; grid-row:2; align-self:start; } .course-unlocks--waiting .course-unlocks__priority { grid-column:1/-1; grid-row:3; margin-top:1px; } .course-unlocks--waiting .course-unlocks__actions { grid-column:2; grid-row:1/3; align-self:center; width:auto; } .course-unlocks--retry { flex-direction:row; align-items:center; } .course-unlock-picker__results { grid-template-columns:1fr; max-height:38vh; } .course-unlock-picker__tools { grid-template-columns:1fr; gap:10px; } }
@media(max-width:380px) { .course-unlocks { padding-inline:12px; } .course-unlock-picker__buttons .cu-btn { flex:1 1 100%; } .course-unlock-order li { flex-wrap:wrap; } .course-unlock-order li>span { flex-basis:100%; } .course-unlock-order li>div { margin-left:auto; } }
