/*
 * Cohort view — NEW, not an existing Eureka component.
 *
 * Built only from values Eureka already uses on this page, so it reads as part of it:
 *   squares   → the same colours as the table's validation icons
 *               (flagged/needs review = $ta-color, validated = $ll-color)
 *   chips     → Kerang .btn-primary-outline pills, ungrouped so they can wrap
 *               (the merged .product-filter-buttons strip breaks when it wraps)
 *   dots      → Validate's signal colours from validation-donut.tsx
 *   tooltip   → stock Bootstrap 5 tooltip
 * A design-system proposal for this component would go in its own PR against design/.
 */

/* Prototype notes — outlines what's new when switched on. Not part of the page being tested. */
.proto-notes-toggle {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1080;
  font-size: 0.75rem;
  background: #fff;
  border: 1px solid #d8dee4;
  border-radius: var(--ds-radius-md);
  padding: 6px 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.proto-note { display: none; }
body.show-proto-notes .is-new { outline: 2px dashed var(--ds-teal); outline-offset: 4px; }
body.show-proto-notes .proto-note {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--ds-ink);
  background: #fdeef8;
  border-left: 3px solid var(--ds-teal);
  padding: 6px 10px;
}

/* Dashboard — NEW layout, built from Kerang cards, outline buttons and type */
.dashboard-section-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.25rem; }
/* Course dropdown — Kerang selectize values (form-controls audit): #949494 border, 4px radius,
   0.5rem 1rem padding; options 50px high, 8px 10px padding, #EFEFEF dividers */
.course-select { position: relative; width: 300px; max-width: 100%; }
.course-select__control { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #fff; border: 1px solid #949494; border-radius: var(--ds-radius-xs); padding: 0.5rem 1rem; color: var(--ds-ink); text-align: left; }
.course-select.is-open .course-select__control { border-radius: var(--ds-radius-xs) var(--ds-radius-xs) 0 0; }
.course-select.is-open .course-select__control .icon { transform: rotate(180deg); }
.course-select__dropdown { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; background: #fff; border: 1px solid #949494; border-top: 0; border-radius: 0 0 var(--ds-radius-xs) var(--ds-radius-xs); box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); max-height: 320px; overflow-y: auto; }
.course-select__search { width: 100%; border: 0; border-bottom: 1px solid #efefef; padding: 8px 10px; font-size: 0.875rem; outline: 0; }
.course-select__option { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 10px; border: 0; border-bottom: 1px solid #efefef; background: #fff; text-align: left; }
.course-select__option:hover, .course-select__option:focus-visible { background: #f8f9fa; }
.course-select__option.is-selected { font-weight: 700; }
/* NEW: offerings are longer labels ("PSY60001 · Semester 2 2026") */
.course-select--offerings { width: 340px; }
.course-select--offerings .course-select__dropdown { max-height: 400px; }
/* NEW: the running offering, as Eureka's validated badge outline (.badge[data-status="marked"]) */
.offering-current { display: inline-block; margin-left: 6px; padding: 0 6px; border: 1px solid var(--ll-color); border-radius: var(--ds-radius-xs); color: var(--ll-color); font-size: 0.6875rem; font-weight: 500; line-height: 1.5; vertical-align: 1px; }
/* NEW: the dashboard's three tiers. Semesters indent under All courses, with an arrow to show their courses;
   courses indent under their semester. */
.course-select--tree .course-select__option { min-height: 44px; }
.course-select__semester-row { display: flex; align-items: stretch; border-bottom: 1px solid #efefef; }
.course-select__semester-row .course-select__option { border-bottom: 0; padding-left: 4px; }
.course-select__toggle { flex: none; width: 28px; margin-left: 12px; display: inline-flex; align-items: center;
  justify-content: center; padding: 0; border: 0; background: none; color: var(--ds-graphite); }
.course-select__toggle:hover, .course-select__toggle:focus-visible { background: #f8f9fa; color: var(--ds-ink); }
.course-select__toggle .icon { transform: rotate(-90deg); transition: transform 0.15s ease; }
.course-select__toggle[aria-expanded="true"] .icon { transform: none; }
.course-select--tree .course-select__course { min-height: 40px; padding-left: 48px; font-size: 0.875rem; }
@media (prefers-reduced-motion: reduce) {
  .course-select__toggle .icon { transition: none; }
}

.ui-tip { position: fixed; top: 0; left: 0; pointer-events: none; opacity: 0; transition: opacity 0.1s ease; }
.ui-tip.show { opacity: 1; }
.ui-tip .tooltip-arrow { position: absolute; }

/* ── Dashboard v2 — NEW, prototype-local (vd- = validate dashboard) ─────────────────────────────────
   Deliberate deviations from the design system, to be proposed separately through eureka-pattern-audit:
   the calendar, the to-do list's task icons, the course card with its carousel of assignment tiles, and the
   assignment cards.
   Colours are Eureka's: var(--ds-teal) primary, norval.follow_up #fff3cd, the cool greys #516677 / var(--ds-graphite),
   #d8dee4 / #e5e8ed surfaces. Colour marks what needs doing, never the course: three of the Official Studiosity
   Design System's feedback fills (feedback-structure, -spelling, -argument), the same in both design systems. */
:root {
  /* Students to review: Eureka's deep pink (3 Nov 2026, Greg and Nick: coral read as "bad", chartreuse was too soft
     on cream). Striking without red or orange, clear of green, the pen's blue and teal. 3.6:1 on the rail, so a
     square passes WCAG 1.4.11 alone; ink on it 4.9:1. Eureka also uses it for "submitted late" (eureka-page.css),
     to settle before build */
  --act-review: var(--st-deep-pink);
  --act-review-edge: color-mix(in srgb, var(--st-deep-pink), var(--ds-ink) 30%);  /* its edge, 5.4:1 on cream: outlines,
                                  the bar's bracket and the status header's rule */
  --act-validated-deep: #006b38;  /* green's edge: --ds-green taken deep enough for a line on cream and white text on it
                                     (7:1). The status header's rule and the Validated pill (3 Nov 2026: one green family) */
  --act-closing: var(--ds-ink);  /* closes, and closing soon: ink, so the review colour means review only (30 Oct 2026) */
  --act-closing-text: var(--ds-ink);  /* closing soon as text: ink, bold; the words carry the urgency */
  /* Return by (#77422f, feedback-argument) is set aside until Eureka has the date; see README */
}
.vd-panel { background: #fff; border-radius: var(--proto-radius-chip); box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  padding: 24px; }

/* Top row (stage 2): Coming up in two thirds, quick links in one. Both are one fixed height, so the course cards
   show without scrolling; Coming up's list scrolls inside. */
.vd-top { margin-bottom: 28px; }
.vd-top__row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 24px; }
.vd-box { display: flex; flex-direction: column; gap: 12px; min-width: 0; height: 312px; padding: 18px 22px;
  background: #fff; border-radius: var(--proto-radius-chip); box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); }
.vd-box__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.vd-box__count { color: var(--ds-graphite); }

.vd-up__body { flex: 1 1 auto; min-height: 0; }
.vd-up__scroll { overflow-y: auto; margin: 0 -22px -18px; padding: 0 22px 12px; }
@media (max-width: 991.98px) {
  .vd-top__row { grid-template-columns: minmax(0, 1fr); }
  .vd-links { height: auto; }
}

/* Coming up: one compact row per date */
.vd-soon > li + li { border-top: 1px solid #e5e8ed; }
.vd-soon__row { display: grid; grid-template-columns: 92px 14px minmax(0, 1fr) auto; align-items: center;
  column-gap: 12px; padding: 10px 8px; color: var(--ds-ink); text-decoration: none; border-radius: var(--ds-radius-xs); }
.vd-soon__row:hover { background: #f5f7f9; color: var(--ds-ink); }
.vd-soon__day { white-space: nowrap; }
.vd-soon__what { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.vd-soon__meta { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; font-size: 13px;
  color: var(--ds-graphite); }
.vd-soon__code { color: var(--ds-graphite); }
.vd-soon__rel { min-width: 132px; text-align: right; }
.vd-soon__empty { padding: 12px 0; color: var(--ds-graphite); }
@media (max-width: 575.98px) {
  .vd-soon__row { grid-template-columns: 76px 14px minmax(0, 1fr); row-gap: 4px; }
  .vd-soon__what { white-space: normal; }
  .vd-soon__meta { grid-column: 3; }
  .vd-soon__rel { min-width: 0; text-align: left; }
}

/* A date's mark in the list and the calendar's day popover, the same side stroke as the calendar's chips:
   due grey, closes orange, extensions end dashed orange */
.vd-mark { display: inline-block; flex: none; justify-self: center; align-self: stretch; width: 0; min-height: 18px;
  border-left: 3px solid var(--ds-graphite); border-radius: 0; }
.vd-mark--close { border-left-color: var(--act-closing); }
.vd-mark--ext { border-left-color: var(--act-closing); border-left-style: dashed; }

/* Calendar — month view, Monday first. It grows to fit the month (only in Calendar view; the list keeps its
   cap), and each date is a chip that opens the assignment, its left edge in the kind's colour. */

.vd-cal__icon { width: 8px; height: 12px; }

/* Today: the only bold number, with a solid ink dot beside it */

/* A busy day scrolls inside its cell */

/* The day button and its popover are for narrow screens only */

/* Quick links: what isn't about one course */
.vd-links li + li { border-top: 1px solid #e5e8ed; }
.vd-links__link { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 14px 6px; color: var(--ds-ink); text-decoration: none; border-radius: var(--ds-radius-xs); }
.vd-links__link:hover { background: #f5f7f9; color: var(--ds-ink); }
.vd-links__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; background: #e5e8ed; }
.vd-links__icon .icon { width: 20px; height: 20px; fill: var(--ds-teal); }
.vd-links__title { display: block; font-size: 15px; font-weight: 700; }
.vd-links__sub { display: block; font-size: 13px; color: var(--ds-graphite); }
.vd-links__go .icon { fill: var(--ds-graphite); }

/* Your courses heading */
.vd-now-line { font-size: 1.25rem; font-weight: 700; }
.vd-courses { margin-bottom: 64px; }
.vd-assign-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 16px; }

/* An offering's assignments in place of the course cards, as a grid of cards or a list; the same cards are the
   carousel's tiles */
.vd-assign-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 16px; }
.vd-assign-toolbar__count { font-size: 14px; color: var(--ds-graphite); }
.vd-assign-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: 16px; }
.vd-assign-grid > li { display: flex; }
.vd-assign-card { display: flex; flex-direction: column; gap: 8px; width: 100%; padding: 12px 14px 14px; color: var(--ds-ink);
  text-decoration: none; background: #fff; border: 1px solid #d8dee4; border-top: 4px solid var(--ds-graphite);
  border-radius: var(--ds-radius-xs); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.vd-assign-card:hover { color: var(--ds-ink); transform: translateY(-3px); box-shadow: 0 8px 14px rgba(0, 0, 0, 0.12); }
.vd-assign-card__name { font-size: 15px; font-weight: 700; line-height: 1.3; }
/* Every tile the same size: the review slot is always there (empty when nobody needs review) and the name
   always takes two lines, cut short after that */
.vd-assign-card__flag { display: flex; min-height: 26px; }
.vd-assign-card__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  min-height: 2.6em; }
/* Needs review: the tile's loudest thing, the deep pink review tag */
.vd-assign-card__review { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--proto-radius-hairline);
  background: var(--act-review); color: var(--ds-ink); font-size: 13px; font-weight: 700; }
.vd-assign-card__review .icon { fill: currentColor; }
.vd-assign-card__submitted { font-size: 13px; color: var(--ds-graphite); }
.vd-assign-card__date { margin-top: auto; font-size: 13px; white-space: nowrap; }
.vd-assign-card__k { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--ds-graphite); }
.vd-assign-card__date.is-closing, .vd-assign-card__date.is-closing .vd-assign-card__k { color: var(--act-closing-text); }
/* The list view: a head row of labels over raised rows, all on one five-column grid */
.vd-assign-rows { display: flex; flex-direction: column; gap: 12px; padding: 4px 6px; }
.vd-assign-rows__head, .vd-assign-row { display: grid; grid-template-columns: minmax(0, 2.2fr) 1.1fr 1.7fr 1.3fr 0.8fr;
  column-gap: 16px; align-items: center; padding: 0 22px; }
.vd-assign-row { position: relative; padding: 16px 22px; transition: box-shadow 0.2s ease; }
.vd-assign-row__link { text-decoration: none; }
.vd-assign-row__link:focus-visible { outline: 0; }
.vd-assign-row__status { display: inline-flex; align-items: center; gap: 8px; }
.vd-assign-row__dot { flex: none; width: 9px; height: 9px; }
.vd-assign-row__date { white-space: nowrap; }
.vd-assign-row__relative { display: block; margin-top: 2px; }
.vd-assign-row__num { text-align: right; font-variant-numeric: tabular-nums; }
.vd-assign-row__review { display: inline-flex; padding: 6px 12px; }
/* Narrow: the name across the top, then status and date to the left of the counts */
@media (max-width: 767.98px) {
  .vd-assign-rows__head { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vd-assign-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 8px; }
  .vd-assign-row__name { grid-column: 1 / -1; }
  .vd-assign-row__num:not(.vd-assign-row__submitted) { text-align: left; }
  .vd-assign-row__submitted::after { content: " submitted"; }
}

@media (prefers-reduced-motion: reduce) {
  .vd-assign-card { transition: none; }

  .vd-assign-card:hover { transform: none; }
  .vd-assign-row { transition: none; }
}

/* Course folder (30 Oct 2026, restored from Renee's 39fe765): one per offering, in neutral greys. Only what
   needs doing is coloured: the blue review slip. It opens the course on this page. */
.vd-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 20px; }
.vd-folders > li { display: flex; }
.vd-folder { position: relative; display: flex; flex-direction: column; width: 100%; min-height: 200px;
  padding: 24px 0 0; border: 0; background: none; font: inherit; text-align: left; color: var(--ds-ink); cursor: pointer;
  border-radius: var(--proto-radius-chip); }
.vd-folder__tab { position: absolute; top: 0; left: 0; z-index: 2; max-width: 80%; height: 28px; padding: 5px 12px 0;
  border-radius: var(--proto-radius-chip) var(--proto-radius-chip) 0 0; background: var(--ds-graphite); color: #fff; font-size: 11px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.vd-folder__back { position: absolute; top: 24px; left: 0; right: 0; bottom: 0; background: #d8dee4;
  border-radius: 0 var(--proto-radius-chip) var(--ds-radius-xs) var(--ds-radius-xs); }
.vd-folder__slip { position: absolute; top: 30px; right: 16px; z-index: 1; display: inline-flex; align-items: center;
  gap: 4px; padding: 3px 10px 12px; background: var(--act-review); color: var(--ds-ink); font-size: 12px; font-weight: 700;
  border-radius: var(--proto-radius-hairline) var(--proto-radius-hairline) 0 0; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); }
.vd-folder__front { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 4px;
  flex: 1 1 auto; margin-top: 28px; padding: 14px 14px 12px 16px; background: #e5e8ed;
  border-radius: var(--proto-radius-hairline) var(--proto-radius-hairline) var(--ds-radius-xs) var(--ds-radius-xs); box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.28s ease; }
.vd-folder__name { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.vd-folder__state { display: block; font-size: 12px; color: var(--ds-graphite); }

/* The folder's next assignment, on a page inside it that rises on hover, its name cut to one line */
.vd-folder__peek { position: absolute; top: 31px; left: 10px; right: 12px; height: 80px; z-index: 1; background: #fff;
  border: 1px solid #d8dee4; border-top: 3px solid var(--ds-graphite); border-radius: var(--proto-radius-hairline);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); transform: translateY(18px);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.3, 1); }
.vd-folder__peek-name { display: block; padding: 6px 10px; font-size: 12px; font-weight: 700; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vd-folder.has-slip .vd-folder__peek-name { padding-right: 64px; }
.vd-folder:hover .vd-folder__peek, .vd-folder:focus-visible .vd-folder__peek { transform: translateY(-10px); }
@media (prefers-reduced-motion: reduce) { .vd-folder__peek, .vd-folder__front { transition: none; } }
.vd-course-modal__code { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: var(--proto-radius-hairline);
  background: var(--ds-graphite); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }

/* The empty state (30 Oct 2026) */
/* The line under the welcome, and the first-time card (31 Oct 2026, Nick) */
.vd-welcome-line { max-width: 720px; margin: -12px 0 32px; font-size: 1.125rem; line-height: 1.5; }
.vd-welcome-card { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; height: auto;
  margin: -8px 0 32px; }
.vd-welcome-card__text { flex: 1 1 420px; max-width: 640px; }
.vd-welcome-card > .btn { flex: none; }
a.vd-folder { text-decoration: none; }

/* PROTOTYPE ONLY: which educator the landing shows */
.proto-demo { position: fixed; left: 150px; bottom: 16px; z-index: 1080; display: flex; flex-wrap: wrap; align-items: center;
  gap: 4px 10px; padding: 6px 12px; font-size: 0.75rem; background: #fff; border: 1px solid #d8dee4;
  border-radius: var(--ds-radius-md); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.proto-demo a { color: var(--ds-teal); }
.proto-demo a[aria-current] { font-weight: 700; color: var(--ds-ink); text-decoration: none; }
/* Needs your review and the empty state size to their content, unlike the fixed-height top row */

/* The card is one target (its name link is stretched over it); the review chip sits above it as its own link */
.vd-assign-card { position: relative; }
.vd-assign-card__name { color: inherit; text-decoration: none; }
.vd-assign-card__name:hover { color: inherit; }
.vd-assign-card__name:focus-visible { outline: 0; }
a.vd-assign-card__review { position: relative; z-index: 2; min-height: 32px; text-decoration: none; }
a.vd-assign-card__review:hover { filter: brightness(0.92); }
a.vd-assign-row__review { position: relative; z-index: 2; text-decoration: none; }

/* Room above the welcome (30 Oct 2026, Nick): the name and course menu sit lower, so the page opens up */
.vd-welcome-row { padding-top: 40px; }
@media (min-width: 992px) { .vd-welcome-row { padding-top: 64px; } .vd-welcome-row.mb-4 { margin-bottom: 40px !important; } }

/* Coming up's Days view (30 Oct 2026, Nick): 14 columns, today first, scrolling sideways inside the box at the
   list's height. Empty days are narrow; days with dates are wide enough for a chip. */
.vd-strip { height: 100%; overflow-x: auto; overflow-y: hidden; margin: 0 -22px -18px; padding: 0 22px 14px; }
.vd-strip__days { display: flex; gap: 8px; height: 100%; }
.vd-strip__day { flex: 0 0 168px; display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 10px;
  border-radius: var(--ds-radius-sm); background: #fff; }
.vd-strip__day.is-empty { flex-basis: 52px; align-items: center; padding: 10px 4px; background: transparent; }
.vd-strip__head { display: flex; flex-direction: column; line-height: 1.2; color: var(--ds-graphite); }
.vd-strip__day.is-empty .vd-strip__head { align-items: center; text-align: center; }
.vd-strip__wd { font-weight: 700; }
.vd-strip__day.is-today .vd-strip__head { color: var(--ds-ink); }
.vd-strip__items { display: flex; flex-direction: column; gap: 6px; overflow-y: auto; min-height: 0; }
.vd-strip__chip { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; border-left: 3px solid #a49b8c;
  border-radius: var(--ds-radius-xs); color: var(--ds-ink); text-decoration: none; background: #f6f3ec; line-height: 1.3; }
.vd-strip__chip:hover { color: var(--ds-ink); background: #efe9dd; }
.vd-strip__chip--close { border-left-color: var(--act-closing); }
.vd-strip__chip--ext { border-left-color: var(--act-closing); border-left-style: dashed; }
.vd-strip__name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2;
  overflow: hidden; }
.vd-strip__meta { color: var(--ds-graphite); }
.vd-strip__meta code { color: inherit; }

/* Older courses (30 Oct 2026) */
.vd-older-toggle { margin-top: 20px; }
.vd-older { margin-top: 12px; }
/* The Coming up list fades at its bottom edge when it overflows (has-more, set in dashboard.js), so a part-hidden
   row reads as "scroll for more" (30 Oct 2026).
   A sticky gradient over the content, not a mask on the scrolling layer. */
.vd-up__scroll.has-more::after { content: ""; position: sticky; bottom: -12px; display: block; height: 40px; margin-top: -40px;
  pointer-events: none; background: linear-gradient(to bottom, rgb(243 239 231 / 0), rgb(243 239 231 / 0.92)); }

/* One course's sub-heading (30 Oct 2026): the folder's manila tab with the code, then the course name */
.vd-only-course { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 20px;
  font-size: 1.375rem; font-weight: 500; }
.vd-only-course__tab { display: inline-block; padding: 4px 12px; border-radius: var(--ds-radius-sm); background: var(--proto-manila-back);
  font-size: 0.875rem; line-height: 1.5; }
.vd-only-course__tab code { color: var(--ds-ink); font-size: inherit; }
.vd-box.vd-welcome-card { flex-direction: row; height: auto; justify-content: space-between; }

/* First time: the example folder and the Turn on card side by side in Your courses; stacked on narrow screens */
.vd-empty-row { display: grid; grid-template-columns: minmax(230px, 300px) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.vd-box.vd-welcome-card--side { flex-direction: column; align-items: flex-start; justify-content: center; margin: 24px 0 0; }
.vd-welcome-card--side .vd-welcome-card__text { flex: none; }
@media (max-width: 767.98px) { .vd-empty-row { grid-template-columns: 1fr; } .vd-box.vd-welcome-card--side { margin-top: 0; } }

/* ── The cohort view (3 Nov 2026, Nick, for Greg): assignment.html, drawn by cohort.js ──────────────────────
   NEW, prototype-local. Modelled on Greg's pilot reviews; squares reuse the class card's .cs-sq kinds so the two
   agree. One new value: --proto-bar-outcome (on the proposal list). */
:root {
  --proto-bar-outcome: 28px;  /* the outcome bar's height: reads as one shape at a glance, not a progress line */
}

/* The Whole class button in the rail (3 Nov 2026 pm, Nick): the words only, raised at the field scale and lifting
   on hover, like Home's list rows. On the class it reads "Back to <student>" and stays raised */
/* Since the button ladder it is a Raised .ds-btn (studiosity-theme.css); this only lays out its two lines */
.ds-studiosity .ds-btn.cs-class { display: flex; justify-content: space-between; min-height: var(--hit-row); margin: 0 0 16px;
  padding: 10px 14px 10px 16px; text-align: left; }
.ds-studiosity .ds-btn.cs-class--back { justify-content: flex-start; padding-left: 10px; }
.cs-class__text { display: flex; flex-direction: column; }
.cs-class__name { font-weight: 700; }
.cs-class__line { font-size: 0.875rem; color: var(--ds-graphite); }
.cs-class__go { flex: none; width: 24px; height: 24px; fill: var(--ds-ink); }

.ch-head { margin: 0 0 var(--proto-space-group); }
.ch-head__code { margin: 0 0 var(--proto-space-related); color: var(--ds-graphite); }
.ds-studiosity .review-main .ch-head__name { margin: 0 0 var(--proto-space-related); }
.ch-head__settings { display: inline-flex; flex-wrap: wrap; gap: 8px; }

.ch-card { padding: 32px 36px; border-radius: var(--ds-radius-md); background: var(--ds-page);
  box-shadow: var(--ds-shadow-extruded); margin: 0 0 var(--proto-space-section); }
/* Every size here is a type role (3 Nov 2026): the hero's answer is an h2, its numbers key figures */
.ds-studiosity .ch-lead { margin: 0; }
.ch-sub { margin: 8px 0 0; color: var(--ds-graphite); font-size: 1.0625rem; }
.ch-sub strong { color: var(--ds-ink); }

/* The outcome bar: the class as one bar, best outcome first, labelled on the bar. A pattern for outcome charts
   (proposal list): one accent for what needs action, everything else quiet; 4px rounded ends, 2px surface gaps */
.ch-bar { margin: 32px 0 0; }
.ch-bar__row { display: flex; }
.ch-bar__row > span { flex-basis: 0; min-width: 0; }
.ch-bar__row--above { margin-bottom: 8px; }
.ch-bar__label { white-space: nowrap; font-size: 0.9375rem; color: var(--ds-graphite); }
.ch-bar__label strong { color: var(--ds-ink); font-size: 1rem; margin-right: 4px; }
.ch-bar__track { display: flex; gap: 2px; height: var(--proto-bar-outcome); }
.ch-bar__seg { flex-basis: 0; min-width: 6px; border-radius: var(--proto-radius-hairline); }
.ch-bar__seg:first-child { border-top-left-radius: var(--ds-radius-xs); border-bottom-left-radius: var(--ds-radius-xs); }
.ch-bar__seg:last-child { border-top-right-radius: var(--ds-radius-xs); border-bottom-right-radius: var(--ds-radius-xs); }
/* The class card's green, so validated is one colour everywhere (3 Nov 2026, Nick; a wider colour idea is to come) */
.ch-bar__seg--met { background: var(--ds-green); }
.ch-bar__seg--review { background: var(--act-review); }
/* Reviewed is the educator's blue, as its pill and its speech bubble (3 Nov 2026, Nick) */
.ch-bar__seg--reviewed { box-shadow: inset 0 0 0 2px var(--ds-pen); }
/* Each segment opens with its state's mark (results.css), a little in from its start */
.ch-bar__seg::after { position: absolute; top: 0; bottom: 0; left: 8px; width: 16px; }
/* A bracket under everyone who didn't validate, its words right-aligned to the bar's end */
.ch-bar__row--below { margin-top: 8px; }
.ch-bar__brace { display: flex; justify-content: flex-end; padding-top: 10px; border-top: 2px solid var(--act-review-edge);
  position: relative; }
.ch-bar__brace::before, .ch-bar__brace::after { content: ""; position: absolute; top: -8px; width: 2px; height: 8px;
  background: var(--act-review-edge); }
.ch-bar__brace::before { left: 0; }
.ch-bar__brace::after { right: 0; }
.ch-bar__brace .ch-bar__label { direction: ltr; }

.ch-took { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--ds-line); font-size: 0.9375rem;
  color: var(--ds-graphite); }
.ch-took strong { color: var(--ds-ink); }
.ch-hero__foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px;
  margin-top: 28px; }
.ch-numbers { width: 220px; }  /* the course dropdown, narrower: its rows are short */
.ch-numbers__panel { padding: 8px 16px; }
.ch-numbers__table { width: 100%; font-size: 0.9375rem; }
.ch-numbers__table th { font-weight: 400; padding: 2px 24px 2px 0; color: var(--ds-graphite); }
.ch-numbers__table td { font-weight: 700; text-align: right; }

/* The sections below the hero */
.ch-section { margin: 0 0 var(--proto-space-section); }
.ds-studiosity .ch-section__title { margin: 0 0 6px; }
.ch-section__sub { margin: 0 0 var(--proto-space-group); color: var(--ds-graphite); }

.ch-shapes { display: grid; gap: 12px; margin: 0; }
.ch-shape { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 18px 24px; border-radius: var(--ds-radius-md); background: var(--ds-page); box-shadow: var(--ds-shadow-extruded-sm); }
.ds-studiosity .ch-shape__n { margin: 0; }
.ch-shape__title { margin: 0; font-weight: 700; }
.ch-shape__line { margin: 2px 0 0; color: var(--ds-graphite); font-size: 0.9375rem; }
.ch-shape__signals { display: grid; gap: 6px; }
.ch-shape__sig { display: grid; grid-template-columns: 96px 66px 8.5rem;  /* word column fixed, so meters align card to card */ gap: 10px; align-items: center; font-size: 0.8125rem;
  color: var(--ds-graphite); }
.ch-shape__v { color: var(--ds-ink); font-weight: 500; white-space: nowrap; }
.ch-meter { display: inline-flex; gap: 3px; }
.ch-meter i { width: 20px; height: 6px; border-radius: var(--proto-radius-hairline); background: var(--sa-indigo-soft); }
.ch-meter--3 i, .ch-meter--2 i:nth-child(-n+2), .ch-meter--1 i:first-child { background: var(--sa-indigo); }
.ch-meter--none { width: 66px; height: 6px; border: 1.5px dashed var(--ds-line-strong); border-radius: var(--proto-radius-hairline); }

.ch-didnt { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.ch-didnt__col { padding: 18px 24px; border-radius: var(--ds-radius-md); background: var(--ds-page);
  box-shadow: var(--ds-shadow-extruded-sm); }
.ch-didnt__k { margin: 0 0 10px; font-weight: 700; }
.ch-reasons { margin: 0; display: grid; gap: 6px; }
.ch-reasons li { display: flex; justify-content: space-between; gap: 16px; }
.ch-reasons__n { font-weight: 700; }

.ch-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin: 0; }
.ch-fact { padding: 18px 20px; border-radius: var(--ds-radius-md); background: var(--ds-page); box-shadow: var(--ds-shadow-extruded-sm); }
.ds-studiosity .ch-fact__n { margin: 0 0 10px; }
.ch-fact__n span { font-size: 1rem; color: var(--ds-graphite); }
.ch-share { display: block; height: 6px; border-radius: var(--proto-radius-hairline); background: var(--sa-indigo-soft); overflow: hidden; }
.ch-share i { display: block; height: 100%; background: var(--sa-indigo); }
.ch-fact__line { margin: 10px 0 0; font-size: 0.9375rem; color: var(--ds-graphite); }

.ch-empty { padding: 28px 32px; }

@media (max-width: 767.98px) {
  .ch-card { padding: 24px 20px; }
  .ch-shape { grid-template-columns: 48px minmax(0, 1fr); }
  .ch-shape__signals { grid-column: 1 / -1; }
}
