/* course-space-tab.css — "A space for your students" on a course's Manage board
   (js/course-space-tab.js; artefact spaces-design/ artboard CourseSpace). */
.cst { display: flex; flex-direction: column; gap: 16px; }
.cst-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .cst-grid { grid-template-columns: 1fr; } }
.cst-card { overflow: hidden; }
.cst-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cst-body { padding: 16px 20px; display: flex; flex-direction: column; gap: 14px; font-size: 13.5px; line-height: 1.6; }
.cst-muted { margin: 0; color: var(--text-3, #6b6f86); font-size: 13.5px; line-height: 1.55; }
.cst-lbl { margin: 0 0 8px; font: 10.5px var(--font-mono, "JetBrains Mono", monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3, #6b6f86); }
.cst-seg { display: inline-flex; flex-wrap: wrap; background: var(--surface-2, #faf9f4); border: 1px solid var(--border-soft, #efece2); border-radius: 10px; padding: 3px; gap: 2px; }
.cst-seg button { min-height: 40px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; font-family: inherit; font-weight: 500; font-size: 13px; color: var(--text-2, #4d5168); cursor: pointer; }
.cst-seg button.on { background: var(--surface, #fff); color: var(--text-1, #15172b); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.cst-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-soft, #efece2); }
.cst-row:last-of-type { border-bottom: 0; }
.cst-row-body { flex: 1 1 auto; min-width: 0; }
.cst-rt { font-weight: 600; font-size: 14px; color: var(--text-1, #15172b); }
.cst-rm { color: var(--text-3, #6b6f86); font-size: 12.5px; margin-top: 2px; }
.cst-open { font-weight: 600; font-size: 13px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.cst-new { align-self: flex-start; }
.cst-msg { margin: 0; min-height: 18px; color: var(--text-3, #6b6f86); font-size: 12.5px; }
.cst-maya { display: flex; gap: 10px; align-items: flex-start; background: var(--accent-softer, #f5f1ff); border: 1px solid var(--accent-soft, #e4dcff); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.cst-av { width: 28px; height: 28px; border-radius: 50%; background: #e85a8a; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: 0 0 28px; }
.cst-legacy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cst-switch { position: relative; display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; }
.cst-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cst-switch span:first-of-type { width: 40px; height: 24px; border-radius: 999px; background: var(--border, #d8d3c2); position: relative; transition: background .15s; }
.cst-switch span:first-of-type::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: left .15s; }
.cst-switch input:checked + span { background: var(--accent, #6a4cf1); }
.cst-switch input:checked + span::after { left: 19px; }
.cst-switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-softer, #efeaff); }
/* The artboard's pills (Cohort 1, Everyone): drawn here because this panel is
   outside the Spaces route whose sheet styles them. */
.cst .pill { display: inline-flex; align-items: center; white-space: nowrap; flex: none; font: 600 11.5px Inter, sans-serif; padding: 3px 10px; border-radius: 999px; }
.cst .p-good { background: #e2f3ea; color: #146c44; }
.cst .p-warn { background: #fbf0d9; color: #8a5608; }
.cst .p-mut { background: #f1eee5; color: #4d5168; }
