
/* ---------- 12. Course tabs (D103, design B: pill switcher) ---------- */
.cx-page { padding-bottom: 0 !important; margin-bottom: -6px; }
.cx-top { display: flex; flex-direction: column; gap: 10px; }
.cx-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.cx-pills { display: inline-flex; gap: 4px; padding: 4px; background: var(--surface); border: 1px solid var(--rule); border-radius: 999px; flex-wrap: wrap; }
.cx-pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 14px var(--font); background: transparent; color: var(--ink-2); }
.cx-pill:hover { background: var(--rule-2); }
.cx-pill[aria-selected=true] { background: var(--night); color: #FFFFFF; }
.cx-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.cx-subs { display: flex; gap: 8px; flex-wrap: wrap; }
.cx-sub { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--control-line); background: var(--surface); color: var(--ink-2); font: 500 14px var(--font); cursor: pointer; }
.cx-sub[aria-pressed=true] { background: var(--ink); border-color: var(--ink); color: #FFFFFF; font-weight: 600; }
.cx-badge { display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.5; padding: 2px 9px; border-radius: 999px; color: #FFFFFF; white-space: nowrap; vertical-align: middle; }
.side-badge { margin-left: auto; font-size: 12px; font-weight: 700; background: #F59E0B; color: #1B1428; border-radius: 999px; padding: 1px 8px; }
.layout.rail .side-badge { display: none; }
/* All tab */
.cx-hello { background: var(--night); color: #FFFFFF; border-radius: 20px; padding: 24px 28px; margin-bottom: 18px; }
.cx-hello h1 { margin: 0; font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.cx-hello p { margin: 6px 0 0; color: var(--night-ink); }
.cx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin-bottom: 18px; }
.cx-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.cx-card-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cx-card-h strong { display: inline-flex; align-items: center; gap: 8px; }
.cx-card-v { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.cx-card-v span { font-size: 14px; font-weight: 500; color: var(--slate); }
.cx-card-bar { height: 8px; border-radius: 4px; background: var(--rule-2); overflow: hidden; }
.cx-card-bar i { display: block; height: 100%; border-radius: 4px; }
.cx-card-f { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 4px; }
.cx-split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.cx-col { display: flex; flex-direction: column; gap: 14px; }
.cx-list { margin: 0; }
.cx-list h2 { margin: 0 0 6px; font-size: 17px; }
.cx-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule-2); }
.cx-row .grow { flex: 1; min-width: 0; }
.cx-res { text-align: left; color: var(--ink); text-decoration: none; }
.cx-res:hover { text-decoration: underline; }
@media (max-width: 860px) { .cx-split { grid-template-columns: 1fr; } .cx-hello { padding: 20px; } }
@media (forced-colors: active) { .cx-pill[aria-selected=true], .cx-sub[aria-pressed=true] { outline: 3px solid Highlight; outline-offset: -3px; } .cx-badge { border: 1px solid CanvasText; } }
