/* Course finder */
.cf-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
@media (min-width: 992px) { .cf-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; } .cf-form { position: sticky; top: 96px; } }
.cf-form { display: grid; gap: 22px; padding: 22px; border: 1px solid var(--ph-line2); border-radius: 12px; background: var(--ph-surface); }
.cf-q { border: 0; margin: 0; padding: 0; min-width: 0; }
.cf-q legend { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-weight: 700; font-size: 1.02rem; color: var(--ph-ink); }
.cf-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ph-grad); font-size: .8rem; color: #fff; flex: 0 0 26px; }
.cf-opts { display: grid; gap: 8px; }
.cf-opt { position: relative; display: flex; align-items: center; min-height: 46px; padding: 10px 14px 10px 42px; border: 1px solid var(--ph-line2); border-radius: 8px; cursor: pointer; color: #E9DDFF; transition: border-color .15s, background .15s; }
.cf-opt input { position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; accent-color: #C514D9; }
.cf-opt:hover { border-color: rgba(225, 28, 242, .5); }
.cf-opt:has(input:checked) { border-color: #E11CF2; background: rgba(225, 28, 242, .08); color: var(--ph-ink); }
.cf-opt:has(input:focus-visible) { outline: 2px solid #E11CF2; outline-offset: 2px; }
.cf-intro { padding: 28px; border: 1px dashed var(--ph-line2); border-radius: 12px; }
.cf-intro > .icon { width: 36px; height: 36px; color: #E11CF2; }
.cf-intro h2 { margin: 12px 0 8px; font-size: 1.3rem; }
.cf-intro p { color: var(--ph-muted); max-width: 60ch; }
.cf-title { font-size: 1.3rem; margin: 0 0 16px; }
.cf-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
@media (min-width: 640px) { .cf-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cf-why { display: flex; gap: 6px; align-items: flex-start; margin: 8px 2px 0; font-size: .84rem; color: #C9B8F5; }
.cf-why .icon { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px; color: #2ED38A; }
.cf-help { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--ph-line); color: var(--ph-muted); }
.cf-help span { flex-basis: 100%; }
@media (min-width: 640px) { .cf-help span { flex-basis: auto; margin-right: auto; } }

/* Public live class schedule */
.cs-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.cs-week { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cs-week strong { font-size: 1rem; color: var(--ph-ink); }
.cs-week .btn { min-width: 44px; min-height: 44px; justify-content: center; }
.cs-today { font-size: .88rem; }
.cs-filter .select { min-width: 220px; max-width: 100%; }
@media (max-width: 560px) { .cs-filter, .cs-filter .select { width: 100%; min-width: 0; } }
.cs-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 1100px) { .cs-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; } }
.cs-day { padding: 12px; border: 1px solid var(--ph-line2); border-radius: 10px; background: var(--ph-surface); min-width: 0; }
.cs-day.is-today { border-color: #E11CF2; }
.cs-day h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 10px; font-size: .92rem; font-weight: 600; color: var(--ph-muted); }
.cs-day h2 b { color: var(--ph-ink); font-weight: 700; }
.cs-day h2 em { margin-left: auto; font-style: normal; font-size: .74rem; color: #E11CF2; }
.cs-class { display: grid; gap: 2px; padding: 10px; margin-top: 6px; border-radius: 8px; border-left: 3px solid #C514D9; background: var(--ph-soft); color: var(--ph-ink); }
.cs-class:hover { background: var(--ph-soft); color: var(--ph-ink); }
.cs-class time { font-weight: 700; font-size: .86rem; color: #F3B5FF; }
.cs-class time small { margin-left: 6px; font-weight: 500; color: var(--ph-muted); }
.cs-class strong { font-size: .9rem; line-height: 1.35; overflow-wrap: anywhere; }
.cs-class span { font-size: .78rem; color: var(--ph-muted); }
.cs-none { margin: 0; font-size: .82rem; color: var(--ph-muted); }
@media (max-width: 1099px) { .cs-day.is-empty { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .cs-day.is-empty h2 { margin: 0; } }
.cs-note { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 18px; font-size: .86rem; color: var(--ph-muted); }
.cs-note .icon { width: 16px; height: 16px; }

/* Syllabus explorer */
.sx-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.sx-subject { border: 1px solid var(--ph-line2); border-radius: 10px; background: var(--ph-surface); margin-bottom: 10px; }
.sx-subject > summary { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; cursor: pointer; list-style: none; }
.sx-subject > summary::-webkit-details-marker { display: none; }
.sx-name { font-weight: 700; color: var(--ph-ink); flex: 1; min-width: 0; overflow-wrap: anywhere; }
.sx-count { font-size: .84rem; color: var(--ph-muted); white-space: nowrap; }
.sx-subject .caret { transition: rotate .2s; }
.sx-subject[open] .caret { rotate: 180deg; }
.sx-body { padding: 0 16px 16px; }
.sx-chapter h3 { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 6px; font-size: .95rem; color: var(--ph-ink); }
.sx-chapter h3 small { font-weight: 500; color: var(--ph-muted); }
.sx-topics { list-style: none; margin: 0; padding: 0; }
.sx-topics li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 48px; padding: 6px 0; border-top: 1px solid var(--ph-line); }
.sx-topic { overflow-wrap: anywhere; }
.sx-n { font-variant-numeric: tabular-nums; color: var(--ph-muted); font-size: .86rem; text-align: right; }
.sx-go, .sx-all { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; white-space: nowrap; }
.sx-go .icon, .sx-all .icon { width: 16px; height: 16px; }
.sx-soon { font-size: .8rem; color: var(--ph-muted); }
.sx-all { margin-top: 8px; }
@media (max-width: 480px) { .sx-topics li { grid-template-columns: minmax(0, 1fr) auto; } .sx-n { display: none; } }
@media (prefers-reduced-motion: reduce) { .sx-subject .caret { transition: none; } }
