/* The course picker, shared by the onboarding (step 3) and the dashboard (Your courses -> Choose
   courses); picker.js builds it. Semesters as headed groups, each header opening and closing its group,
   no inner box (the page scrolls; the onboarding's list box is onboard.css .scroll), a sticky
   bar with the count and the button. */
:is([data-onb], .v25) .pnote { display: flex; align-items: flex-start; gap: 7px; margin: 0; font-size: 15.5px; color: var(--ink-2); }
:is([data-onb], .v25) .pnote svg { width: 18px; height: 18px; margin-top: 3px; color: var(--ink-3); flex: none; }
:is([data-onb], .v25) .pnote.ok svg { color: var(--ok); }
:is([data-onb], .v25) .pnote .link { font-size: inherit; }
/* -8px: the header's own 8px top, so the first semester's name starts where the list does */
:is([data-onb], .v25) .pk { display: flex; flex-direction: column; gap: 14px; margin-top: -8px; }
:is([data-onb], .v25) .pk-g { display: flex; flex-direction: column; }
/* A semester's header, open or closed (picker.js): the name and count are a button stretched over the
   whole row (::after), Select all / none lies above it, and the chevron turns down when open. */
:is([data-onb], .v25) .pk-h { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
:is([data-onb], .v25) .pk-t { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 10px; padding: 0; border: 0; background: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
:is([data-onb], .v25) .pk-t::after { content: ""; position: absolute; inset: -3px 0 0; border-radius: var(--r-sm); }
/* The tap target, 44px: 1px more above than the focus ring's box (::after), drawn nowhere. */
:is([data-onb], .v25) .pk-t::before { content: ""; position: absolute; inset: -4px 0 0; }
:is([data-onb], .v25) .pk-t:focus-visible { outline: 0; }
:is([data-onb], .v25) .pk-t:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; }
:is([data-onb], .v25) .pk-h b { font-size: 16px; font-weight: 700; white-space: nowrap; }
:is([data-onb], .v25) .pk-h small { font-size: 14px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
:is([data-onb], .v25) .pk-h .link { position: relative; z-index: 1; font-size: 14.5px; font-weight: 500; flex: none; }
:is([data-onb], .v25) .pk-h > svg { width: 16px; height: 16px; color: var(--ink-3); transform: rotate(90deg); transition: transform .15s ease-out; }
:is([data-onb], .v25) .pk-g.shut .pk-h > svg { transform: none; }
:is([data-onb], .v25) .pk-h:has(.pk-t:hover) > svg { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { :is([data-onb], .v25) .pk-h > svg { transition: none; } }
:is([data-onb], .v25) .pk-r { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; cursor: pointer; }
:is([data-onb], .v25) .pk-r input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }
:is([data-onb], .v25) .pk-r .nm { flex: 1; min-width: 0; display: flex; flex-direction: column; }
:is([data-onb], .v25) .pk-r .nm > span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
:is([data-onb], .v25) .pk-r .nm small { font-size: 13.5px; color: var(--ink-2); }
:is([data-onb], .v25) .pk-r.lock { color: var(--ink-3); cursor: default; }
:is([data-onb], .v25) .pk-r .lk { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--ink-3); white-space: nowrap; flex: none; margin-top: 1px; }
:is([data-onb], .v25) .pk-r .lk svg { width: 14px; height: 14px; }
:is([data-onb], .v25) .pk-g.shut .pk-r { display: none; }
/* one course (the Free plan's): bordered option rows, the whole row is the target, the chosen one outlined */
:is([data-onb], .v25) .pk.one .pk-g { gap: 8px; }
:is([data-onb], .v25) .pk.one .pk-r { align-items: center; padding: 13px 16px; border: 1px solid var(--line-2); border-radius: var(--r); }
:is([data-onb], .v25) .pk.one .pk-r input { margin: 0; }
:is([data-onb], .v25) .pk.one .pk-r:not(.lock):hover { background: var(--soft); }
:is([data-onb], .v25) .pk.one .pk-r:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
:is([data-onb], .v25) .pk.one .pk-r:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
:is([data-onb], .v25) .pk.one .pk-r.lock { border-style: dashed; }
:is([data-onb], .v25) .pk-empty { display: flex; flex-direction: column; gap: 6px; padding: 18px 0 4px; }
:is([data-onb], .v25) .pk-empty b { font-size: 17px; }
:is([data-onb], .v25) .pk-empty p { margin: 0; color: var(--ink-2); }
:is([data-onb], .v25) .pk-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
:is([data-onb], .v25) .stick { position: sticky; bottom: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; padding: 14px 0 16px; background: var(--bg); border-top: 1px solid var(--line); }
:is([data-onb], .v25) .stick > span { font-size: 15.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
:is([data-onb], .v25) .stick .btns { display: flex; gap: 10px; }
