/* Private, account-synced course organization. */
.course-hero { justify-content: space-between; gap: 24px; padding: 30px; }
.course-hero h1 { font-size: clamp(24px, 3vw, 34px); margin: 7px 0 10px; letter-spacing: -.7px; }
.course-hero p { line-height: 1.6; }
.course-hero > button { flex-shrink: 0; }
.course-help { color: var(--muted); font-size: 13px; line-height: 1.7; margin: 0 0 24px; }
.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.course-card { min-width: 0; background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--course); border-radius: 14px; padding: 24px; }
.course-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.course-card-head h2 { flex: 1; min-width: 0; font-size: 21px; }
.course-title { background: none; border: 0; color: var(--text); font: inherit; font-weight: 700; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.course-title:hover { color: #c2b3ff; }
.course-marker { height: 11px; width: 11px; border-radius: 4px; flex: 0 0 auto; background: var(--course); }
.course-totals { font-size: 15px; margin-bottom: 10px; color: #c2cada; }
.course-totals span { padding: 0 5px; color: var(--muted); }
.course-progress-label { display: flex; gap: 12px; justify-content: space-between; margin: 24px 0 9px; font-size: 12px; color: var(--muted); }
.course-progress-label strong { color: #c2cada; font-weight: 500; }
.course-progress { appearance: none; display: block; width: 100%; height: 6px; border: none; border-radius: 5px; overflow: hidden; background: var(--panel2); color: var(--course); }
.course-progress::-webkit-progress-bar { background: var(--panel2); }
.course-progress::-webkit-progress-value { background: var(--course); border-radius: 5px; }
.course-progress::-moz-progress-bar { background: var(--course); border-radius: 5px; }
.course-card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 23px; }
.course-remove { margin: 12px 0 -8px -12px; font-size: 11px; }
.course-remove:hover { color: #ffa5b7; }
.course-footnote { margin-top: 17px; font-size: 11px; color: var(--muted); }
.course-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: -6px 0 24px; }
.course-filter > label { color: var(--muted); font-size: 13px; }
.course-filter select { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; color: var(--text); padding: 9px 12px; font: inherit; max-width: min(100%, 320px); }
.course-filter .small { margin-left: auto; }
.course-badge { display: flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0 0 13px; padding: 5px 9px; border: 1px solid var(--border); border-left: 3px solid var(--course); border-radius: 6px; background: var(--panel2); color: #c1cadb; font: inherit; font-size: 11px; text-align: left; overflow-wrap: anywhere; cursor: pointer; }
.course-badge:hover { border-color: var(--course); }
.course-badge span { color: var(--muted); }
.course-deck-list { display: grid; gap: 8px; max-height: 45vh; overflow-y: auto; margin-bottom: 20px; }
.modal label.course-deck-choice { display: flex; flex-direction: row; gap: 12px; align-items: center; padding: 12px; margin: 0; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.course-deck-choice input { flex: 0 0 auto; }
.course-deck-choice span { min-width: 0; overflow-wrap: anywhere; }
.course-deck-choice strong { color: var(--text); }
#courseForm .colordot { position: relative; }
#courseForm .colordot input { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; }
#courseForm .colordot input:focus-visible + span { outline: 2px solid #c6b9ff; outline-offset: 4px; }
.course-deck-choice small { display: block; color: var(--muted); margin-top: 5px; font-weight: 400; }
.course-title:focus-visible, .course-badge:focus-visible, .course-filter select:focus-visible { outline: 2px solid #a68bff; outline-offset: 3px; }
.hero h1 { overflow-wrap: anywhere; }
.deck-actions { flex-wrap: wrap; }
@media (max-width: 1000px) { .hero { flex-wrap: wrap; } .hero-actions { flex-wrap: wrap; margin-left: 0; } }
@media (max-width: 780px) {
  .course-hero { padding: 24px; align-items: flex-start; flex-direction: column; }
  .course-filter .small { margin-left: 0; width: 100%; }
  .topbar nav { justify-content: space-between; }
  .navbtn { padding: 7px 11px; }
  .course-card { padding: 20px; }
}
