/* Short courses, the staff side (js/m-sc.js). Tokens only (DESIGN.md); the shared tables, panels and chips do the rest. */
.sc-t .c-end { white-space: nowrap; }
.sc-t .c-end small { white-space: normal; }
.sc-t td.num-c small .btn-in { min-height: 32px; margin: 0 calc(-1 * var(--s3)) 0 0; font-size: var(--t-s); font-weight: 600; }
.sc-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.sc-pays { display: grid; }
.sc-pays li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2) var(--s3); padding: var(--s3) 0; border-top: 1px solid var(--line); }
.sc-pays li:first-child { border-top: 0; padding-top: 0; }
.sc-pays li:last-child { padding-bottom: 0; }
.sc-pays b { display: block; font-weight: 600; color: var(--ink); }
.sc-pays small { display: block; font-size: var(--t-note); color: var(--mute); }
.sc-amt { display: flex; align-items: center; gap: var(--s2); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row.sc-reg { grid-template-columns: auto minmax(0, 1fr); }
.row.sc-reg > .row-end { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); }
.dp-btns.sc-btns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Phones: a status with its button gets a row of its own under the name, so the name keeps its width */
@container mt (max-width: 48rem) {
  .mt.wide.sc-t .c-end:has(.chip) { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: center; justify-self: start; gap: var(--s2); white-space: normal; text-align: left; }
}
.sc-pick { width: auto; min-width: 9rem; max-width: 12rem; min-height: 36px; margin-right: var(--s2); padding: 0 var(--s2); font-size: var(--t-s); }
.mt .c-main small.sc-made { margin-top: var(--s05); color: var(--mute); font-style: normal; }
.sc-line { display: block; }
.sc-more { border-top: 1px solid var(--line); padding-top: var(--s3); }
.sc-more summary { min-height: var(--tap); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); font-weight: 650; color: var(--ink); cursor: pointer; }
.sc-more summary .opt { font-size: var(--t-note); }
.sc-more summary { list-style: none; }
.sc-more summary::-webkit-details-marker { display: none; }
.sc-more summary .ic { width: 18px; height: 18px; flex: none; transition: transform var(--t-press) var(--ease-out); }
.sc-more[open] summary .ic { transform: rotate(90deg); }
.sc-more summary .opt { flex-basis: 100%; padding-left: calc(18px + var(--s2)); font-weight: 400; }
.sc-more[open] { display: grid; gap: var(--s3); }
.sc-acts { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sc-hint { margin: var(--s3) 0 var(--s2); }
.row.sc-msg { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.row.sc-msg .row-main span { overflow-wrap: anywhere; }
.sc-temp { display: grid; gap: var(--s3); }
.sc-pw { padding: var(--s3) var(--s4); border-radius: var(--r-ctl); background: var(--with-bg); font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.375rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ink); text-align: center; user-select: all; }
@media (min-width: 64em) { .row.sc-msg { grid-template-columns: auto minmax(0, 1fr) auto; } .row.sc-msg > .row-end { grid-column: auto; } }
/* The course editor: the photo choice */
.sc-imgs { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.sc-imgs legend { padding: 0; margin-bottom: var(--s1); font-size: var(--t-s); font-weight: 650; color: var(--ink); }
.sc-img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); gap: var(--s2); }
.sc-img { position: relative; display: block; border-radius: var(--r-ctl); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.sc-img img, .sc-img-none { display: grid; place-items: center; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; font-size: var(--t-s); color: var(--mute); background: var(--sunk); }
.sc-img input { position: absolute; top: var(--s1); left: var(--s1); width: 18px; height: 18px; margin: 0; accent-color: var(--navy); }
.sc-img:has(input:checked) { box-shadow: 0 0 0 3px var(--navy); }
.sc-img:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
/* The course editor */
.sc-ed { display: grid; gap: var(--s5); max-width: 52rem; }
.sc-ed .panel.pad { display: grid; gap: var(--s4); }
.sc-ed .panel.pad > .h-sm { margin: 0; }
.sc-ed > .btn-in, .sc-mod > .btn-in, .sc-ed .panel > .btn-in { justify-self: start; display: inline-flex; align-items: center; gap: var(--s1); }
.sc-ed .btn-in .ic { width: 18px; height: 18px; }
.sc-ed .btn-in:disabled { opacity: 0.5; cursor: not-allowed; }
.sc-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s3); }
.sc-mod-h { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.sc-lessons, .sc-qs { display: grid; gap: var(--s3); }
.sc-lesson fieldset, .sc-q fieldset { display: grid; gap: var(--s3); margin: 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--canvas); min-width: 0; }
.sc-lesson legend, .sc-q legend { padding: 0 var(--s1); font-size: var(--t-s); font-weight: 700; color: var(--ink); }
.sc-lesson fieldset > .btn-in, .sc-q fieldset > .btn-in { justify-self: start; display: inline-flex; align-items: center; gap: var(--s1); color: var(--no-fg); }
.sc-lt { display: grid; grid-template-columns: minmax(0, 1fr) 7rem; gap: var(--s3); }
.sc-opts { display: grid; gap: var(--s2); }
.sc-sub { margin-top: var(--s2); font-size: var(--t-m); font-weight: 700; color: var(--ink); }
.sc-save { position: sticky; bottom: calc(var(--tabs) + env(safe-area-inset-bottom)); z-index: 3; display: flex; justify-content: flex-end; gap: var(--s3); padding: var(--s3) 0; background: var(--canvas); border-top: 1px solid var(--line); }
@media (min-width: 53.8125em) { .sc-save { bottom: 0; } .sc-opts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* The demo guide: the short-course students under the staff list */
.start-stu { margin-top: var(--s8); }
.start-stu h2 { font-size: var(--t-l); font-weight: 650; color: var(--on-navy); }
.start-stu > p { margin: var(--s1) 0 var(--s4); max-width: 60ch; color: var(--on-navy-mute); }
.start-stu .start-go { display: inline-flex; align-items: center; gap: var(--s2); min-height: var(--tap); margin-top: var(--s3); color: var(--on-navy); font-weight: 650; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (min-width: 64em) {
  .sc-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row.sc-reg { grid-template-columns: auto minmax(0, 1fr) auto; }
  .row.sc-reg > .row-end { grid-column: auto; justify-self: end; justify-content: flex-end; }
}

/* Programmes (m-prg.js) and the participant profile (Nova LMS, phase 1) */
.pg-mode { display: inline-flex; align-items: center; gap: var(--s1); }
.pg-mode .ic { width: 16px; height: 16px; color: var(--mute); }
.pg-mod + .pg-mod { border-top: 1px solid var(--line); }
.pg-mod > .h-xs { padding: var(--s4) var(--s5) var(--s2); }
.pg-ses .row-main span { display: inline-flex; align-items: center; gap: var(--s1); }
.pg-ses .row-main .ic { width: 15px; height: 15px; flex: none; }
.pg-ses.past { opacity: 0.72; }
.pg-ses.is-next .date-tile { background: var(--needs-bg); }
.pg-obj { margin: 0 0 var(--s3); padding-left: 1.2em; }
.pg-obj li + li { margin-top: var(--s1); }
.pg-mods .tico { font-variant-numeric: tabular-nums; font-weight: 700; }
.pg-ed { display: grid; gap: var(--s4); }
.pg-ed-ses { margin: 0 0 var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.pg-ed-ses legend { padding: 0 var(--s1); font-size: var(--t-xs); color: var(--mute); }
.pg-ses-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); gap: 0 var(--s3); }
.notice.warn { background: var(--needs-bg); color: var(--needs-fg); }
.sc-bad { margin: var(--s2) 0 0; padding: 0; list-style: none; max-height: 14rem; overflow: auto; font-size: var(--t-note); }
.sc-bad li { padding: var(--s1) 0; border-top: 1px solid var(--line); }
.sc-bad b { display: inline-block; min-width: 4.5em; color: var(--no-fg); }
.pt-sched { margin: 0; padding: 0; list-style: none; }
.pt-sched li { display: grid; gap: 2px; padding: var(--s3) 0; border-top: 1px solid var(--line); }
.pt-sched li:first-child { border-top: 0; }
.pt-sched li.past { opacity: 0.7; }
.pt-sched small { display: inline-flex; align-items: center; gap: var(--s1); color: var(--mute); }
.pt-sched .ic { width: 15px; height: 15px; flex: none; }
.pt-sched-d { margin-top: var(--s3); }
.pt-sched-d summary { display: inline-flex; align-items: center; gap: var(--s1); cursor: pointer; color: var(--accent-ink); font-weight: 600; }
.pt-sched-d summary .ic { width: 16px; height: 16px; }
.pg-ed .field { margin-bottom: var(--s4); }
.pg-obj { list-style: disc; }
#scr .field, #scb .field, #sce .field, #scc .field { margin-bottom: var(--s3); }
