/*
 * NEW: the Official Studiosity Design System (Claude design), applied over the Eureka page. <html> carries
 * .ds-studiosity on all three pages; the Eureka view and its switch are gone. Prototype-local. Its tokens and its
 * components travel:
 * the folded Button (components/src/components/forms/Button.jsx), the extruded Card (bundle.css
 * .sty-card--extruded) and the Dialog's light-teal header band, ported to CSS over Eureka's own markup. Icons
 * stay Eureka's vendored set. Type follows the Studiosity type sheet (design typography.md, status Explore).
 *
 * Values are the system's tokens (project/tokens.css), named beside each one. The highlighter and pen are its
 * own drawn paths (components/PrototypeStarter), never a flat chartreuse box.
 */
.ds-studiosity {
  /* NEW (31 Oct 2026, Nick): one card padding, roomier at the sides; less on phones, where width is short */
  --ds-card-pad-y: 24px;
  --ds-card-pad-x: 32px;
  /* NEW (2 Nov 2026, Nick): layout spacing, the prototype's own until the DS 2.0 spacing pass (paddings and the
     gaps between rows and cards, after the type spacing). Proposed as input to that pass: a row inside a card, the
     gap between cards side by side, and the break between sections (the same 48px as the type's h2-margin-top) */
  --proto-space-row: 14px;
  --proto-space-cards: 24px;
  --proto-space-section: 48px;
  /* NEW (2 Nov 2026, Nick): the vertical stack inside a card, from the website's call-to-action panels
     (s8y-website Closing.tsx: eyebrow to heading mt-5, heading to body mt-6, body to button mt-7 to mt-10).
     Wordmark or eyebrow to heading; heading to what supports it (pills, body); items within that; last text to
     the button. Note: DS 2.0's type spacing puts 8px under a heading; these cards take the website's 24px */
  --proto-space-lead: 20px;
  --proto-space-group: 24px;
  --proto-space-related: 16px;
  --proto-space-action: 32px;
  /* Radius: the website scale (s8y-website tokens.json at ac27107f), pending platform ratification (DS 2.0 phase 2).
     The two --proto- steps are the prototype's own and are proposed for that phase: a hairline for marks, rows and
     squares, and the 8px chip corner Nick ruled for badges (1 Nov 2026). */
  --ds-radius-xs: 6px;
  --ds-radius-sm: 12px;
  --ds-radius-md: 18px;
  --ds-radius-lg: 24px;
  --ds-radius-xl: 36px;
  --ds-radius-full: 999px;
  --proto-radius-hairline: 2px;
  --proto-radius-chip: 8px;
  /* Focus ring: the website's two layers (color-focus-ring-inner / -outer) */
  --ds-focus-inner: var(--ds-ink);
  --ds-focus-outer: var(--ds-raised);
  /* Manila: the folder, the decision bar and the course code chip. Prototype-local, proposed with the folder */
  --proto-manila: #ebe3cf;
  --proto-manila-back: #e0d5b9;
  --proto-manila-ink: #4a4031;
  /* NEW (2 Nov 2026, Nick): the example's own colour, the folder and every example tag. Lilac at manila's
     lightness, so it sits with the folders without shouting; a hue no status (green, amber, deep pink) or action
     (teal, pen blue) already uses. Front, back and ink, as for manila. */
  --proto-example: #e6e0ee;
  --proto-example-back: #d6cde4;
  --proto-example-ink: #483d5c;
  /* NEW (2 Nov 2026, Nick): closed courses, a warm grey at the same lightness, so a closed folder reads as
     stored away rather than current. Front, back and ink. */
  --proto-closed: #e7e4de;
  --proto-closed-back: #d7d3cb;
  --proto-closed-ink: #4b4842;
  --ds-page: #f3efe7;            /* surface-page → cream */
  --ds-paper: #f5f1ea;           /* paper-0 */
  --ds-raised: #fcfaf5;          /* surface-card → paper-raised */
  --ds-ink: #111514;             /* text-primary → ink-900 */
  --ds-ink-display: #241a0f;     /* ink-display: display headings, button edges */
  --ds-graphite: #57524a;        /* text-secondary → grey-600 */
  --ds-mist: #d5cec1;            /* grey-200: hairlines and disabled fills */
  --ds-line: rgba(37, 30, 18, 0.09);         /* border-hairline */
  --ds-line-strong: rgba(37, 30, 18, 0.28);  /* border-strong */
  --ds-teal: #005f60;            /* teal-deep: the blackboard, and action-teal */
  --ds-accent: #e2e71f;          /* accent → acid-500: THE chartreuse */
  --ds-accent-hover: #d9de1e;    /* color-fold-cta-hover */
  --ds-accent-pressed: #cfd41c;  /* accent-pressed → acid-600 */
  --ds-pen: #1c2f9c;             /* product-blue: the pen and links (focus is ink, below) */
  --ds-green: #009850;           /* validate-green: the validation tick */
  --ds-shadow-card: 5px 10px 24px -16px rgb(58 46 26 / 0.2);           /* shadow-lifted */
  --ds-shadow-modal: 0 32px 64px -32px rgba(17, 21, 20, 0.5);          /* shadow-modal */
  --ds-shadow-field-out: 3px 5px 10px -4px rgb(58 46 26 / 0.2), -3px -4px 8px -2px var(--ds-lit-edge); /* shadow-extruded-field */
  /* Recessed, the extruded scale turned inward (3 Nov 2026, Nick, from Shubhanshi's course-card mockup): pushed back
     into the page, so dark on the inner top-left where the lip blocks the light and lit on the inner bottom-right.
     Card size is Shubhanshi's values; each step down shrinks the throw and lifts the alpha so it still reads.
     Was the website's dark-only recess (0.45, no lit edge); the website's tokens get the same change next. */
  --ds-shadow-recessed: inset 10px 10px 25px rgb(58 46 26 / 0.14), inset -10px -10px 25px var(--ds-lit-edge); /* large cards, 400px+ */
  --ds-shadow-recessed-sm: inset 6px 6px 16px rgb(58 46 26 / 0.16), inset -6px -6px 16px var(--ds-lit-edge); /* folders, about 300px */
  --ds-shadow-field-in: inset 3px 3px 7px rgb(58 46 26 / 0.2), inset -3px -3px 7px var(--ds-lit-edge);       /* fields and tracks, about 44px */
  --ds-shadow-recessed-xs: inset 2px 2px 4px rgb(58 46 26 / 0.2), inset -2px -2px 4px var(--ds-lit-edge);    /* wells, pills, small buttons pressed */
  /* PROTOTYPE-LOCAL (3 Nov 2026, Nick): the smallest step, for things about 20 to 28px: the AI setting badge and
     the class grid's current cell. A lip from above and a lit lower edge, as a 2px inset is mud at this size */
  --ds-shadow-recessed-2xs: inset 0 1.5px 2px rgb(40 30 15 / 0.18), inset 0 -1px 0 rgb(255 255 255 / 0.45);
  /* Neumorphic depth, light from the top-left: a warm cast to the bottom-right, a lit-edge highlight to the top-left */
  --ds-shadow-extruded: 8px 16px 30px -12px rgb(58 46 26 / 0.2), -8px -12px 24px -2px var(--ds-lit-edge);        /* shadow-extruded */
  --ds-shadow-extruded-hover: 13px 26px 48px -18px rgb(58 46 26 / 0.2), -12px -16px 30px -4px var(--ds-lit-edge); /* shadow-extruded-hover */
  --ds-lit-edge: #fffdf8;                                                                              /* lit-edge */
  /* The fold (components/Button/README.md). ⚠️ --fold-cta-drop is read by Button.jsx but defined nowhere in the
     system; this pair of drop shadows stands in, cast to the bottom-right like shadow-lifted. */
  --ds-fold-flap: #b8bc14;       /* color-fold-cta-flap */
  --ds-fold-drop: drop-shadow(3px 6px 6px rgb(58 46 26 / 0.22)) drop-shadow(1px 1px 1px rgb(58 46 26 / 0.18));
  --ds-fold-time: 500ms;         /* duration-fold-cta, with ease-fold-cta ease-in-out */
  /* Type sheet families: headings-font-family, font-family-sans-serif, font-family-monospace */
  --ds-display: 'Lora', Georgia, 'Times New Roman', serif;
  --ds-body: 'Figtree', system-ui, -apple-system, sans-serif;
  --ds-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Consolas, monospace;

  /* Bootstrap and the Eureka page layer read these */
  --bs-font-sans-serif: var(--ds-body);
  --bs-font-monospace: var(--ds-mono);
  --bs-body-font-family: var(--ds-body);
  --bs-body-font-size: 1rem;       /* font-size-base */
  --bs-body-line-height: 1.5;      /* line-height-base */
  --bs-body-font-weight: 400;      /* font-weight-normal */
  --bs-code-color: inherit;        /* code is mono, not coloured */
  --bs-body-color: var(--ds-ink);
  --bs-body-color-rgb: 17, 21, 20;
  --bs-body-bg: var(--ds-page);
  --bs-border-color: var(--ds-mist);
  --bs-primary: var(--ds-teal);
  --bs-success: var(--ds-green);
  --bs-link-color: var(--ds-pen);
  --bs-link-color-rgb: 28, 47, 156;
  --bs-link-hover-color: var(--ds-pen);
  --bs-secondary-color: var(--ds-graphite);
  --ll-color: var(--ds-green);      /* validated: the green tick, same green everywhere */
  --st-cool-grey-25: #ebe5d9;
  --st-light-grey: var(--ds-paper);
}

/* ── Page ─────────────────────────────────────────────────────────────────── */
/* Backgrounds are flat: cream, no texture */
.ds-studiosity body { background: var(--ds-page); font-family: var(--ds-body); color: var(--ds-ink); }
.ds-studiosity .text-muted, .ds-studiosity .small.text-muted { color: var(--ds-graphite) !important; }

/* ── Type: the Studiosity type sheet (typography.md) ───────────────────────────
   Pick the text's job first, then its style. Heading (h1 page title, h2 a part of the page or an open pop-up's
   name, h3 a part inside it; h4 to h6 not used), Title (names a box or a part inside one; plain text, never a
   heading tag), Label, Data, Action, Body. Weights are 400, 500 and 700 only: 600 doesn't exist. */
.ds-studiosity h1, .ds-studiosity h2, .ds-studiosity h3, .ds-studiosity h4, .ds-studiosity h5, .ds-studiosity h6 {
  font-family: var(--ds-display); color: var(--ds-ink-display); font-weight: 500; line-height: 1.2; }
/* Bootstrap's own RFS sizes: 40 / 32 / 28px from 1200px, shrinking smoothly below it */
.ds-studiosity h1 { font-size: calc(1.375rem + 1.5vw); letter-spacing: -0.022em; }
.ds-studiosity h2 { font-size: calc(1.325rem + 0.9vw); letter-spacing: -0.025em; }
.ds-studiosity h3 { font-size: calc(1.3rem + 0.6vw); letter-spacing: -0.02em; }
@media (min-width: 1200px) {
  .ds-studiosity h1 { font-size: 2.5rem; }
  .ds-studiosity h2 { font-size: 2rem; }
  .ds-studiosity h3 { font-size: 1.75rem; }
}
/* Title: the name of a box, or of a part inside one. Fixed 20px at every width */
.ds-studiosity .text-title { font-family: var(--ds-display); font-size: 1.25rem; font-weight: 500; line-height: 1.2;
  letter-spacing: 0; color: var(--ds-ink-display); }
/* Key figure: the one number a card exists to show. h3's sizes, but Figtree Bold, so it reads as a value (Typography
   Review Pack: 28px Figtree bold; built 3 Nov 2026, pattern language). Proportional figures, not tabular */
.ds-studiosity .key-figure { font-family: var(--ds-body); font-size: calc(1.3rem + 0.6vw); font-weight: 700;
  line-height: 1.1; letter-spacing: -0.01em; color: var(--ds-ink); }
@media (min-width: 1200px) { .ds-studiosity .key-figure { font-size: 1.75rem; } }

.ds-studiosity .lead { font-size: 1.25rem; font-weight: 400; }
.ds-studiosity small, .ds-studiosity .small { font-size: 0.875em; }  /* small-font-size: supporting text only */
/* Eyebrow: a Label directly above a Heading, one to four words, or the name of a tab or a question (Nick's report tabs
   and set-up questions). Capitals come from CSS. Graphite (3 Nov 2026: every eyebrow in use already overrode ink) */
.ds-studiosity .eyebrow { font-family: var(--ds-mono); font-size: 0.75rem; font-weight: 500; line-height: 1.5;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ds-graphite); }
/* Code: code, an ID or a reference number, such as a course code */
.ds-studiosity code { font-family: var(--ds-mono); font-size: 0.875rem; font-weight: 400; color: inherit; }

/* Eureka sets strong and label at 600: a few words of emphasis and a field's label are Bold; option text by a
   checkbox, radio or toggle is normal */
.ds-studiosity strong, .ds-studiosity b, .ds-studiosity label { font-weight: 700; }

/* Focus: one ring everywhere, the website's (globals.css :focus-visible, s8y-website ac27107f): a 2px ink outline
   and a 4.5px paper-2 halo that separates it from whatever sits behind. Rows, tabs and chips inside a scrolling
   area would lose the halo to the clip, so there the outline draws inward instead. Where a link sits inside a
   card or row, the ring goes on the card or row. */
.ds-studiosity :focus-visible { outline: 2px solid var(--ds-focus-inner); outline-offset: 0;
  box-shadow: 0 0 0 4.5px var(--ds-focus-outer) !important; }  /* !important: a control's own shadow never hides the ring */
.ds-studiosity :is(.vd-soon__row, .vd-links__link, .vd-up__scroll, .vd-strip, .vd-strip__chip, .cs-row, .sa-signal,
  .class-side__open, .course-select__option, .course-select__toggle):focus-visible {
  outline-offset: -2px; box-shadow: none !important; }
/* The course search keeps its pressed-in field while focused; the ring draws inside it */
.ds-studiosity .course-select__search:focus-visible { outline-offset: -2px; box-shadow: var(--ds-shadow-field-in) !important; }
.ds-studiosity .vd-assign-card__name:focus-visible, .ds-studiosity .vd-assign-row__link:focus-visible {
  outline: 0; box-shadow: none !important; }
.ds-studiosity .vd-assign-card:has(.vd-assign-card__name:focus-visible),
.ds-studiosity .vd-assign-row:has(.vd-assign-row__link:focus-visible) {
  outline: 2px solid var(--ds-focus-inner); outline-offset: 0; box-shadow: 0 0 0 4.5px var(--ds-focus-outer); }
/* Bootstrap's own blue rings off: fields, the close button and buttons take the ring above */
.ds-studiosity .form-control:focus { border-color: var(--ds-line-strong); box-shadow: none; }
.ds-studiosity .form-control:focus-visible, .ds-studiosity .btn-close:focus-visible {
  outline: 2px solid var(--ds-focus-inner); outline-offset: 0; box-shadow: 0 0 0 4.5px var(--ds-focus-outer); }
.ds-studiosity .btn-close:focus { box-shadow: none; opacity: 1; }
/* ── Close (3 Nov 2026, pattern language): the one way to dismiss. Since the button ladder (3 Nov 2026, Nick) it is a
   Flat icon button (.ds-btn--icon --flat), Raised over a picture or a card edge; .ds-close only sizes its cross. */
.ds-studiosity .ds-btn.ds-close { flex: none; }
.ds-studiosity .ds-btn.ds-close .icon { width: 20px; height: 20px; }
.ds-studiosity .btn { --bs-btn-focus-box-shadow: 0 0 0 4.5px var(--ds-focus-outer); }

/* Header on paper, a hairline under it; the footer is the page's one blackboard */
.ds-studiosity .header { background: var(--ds-raised); border-bottom-color: var(--ds-line-strong); }
.ds-studiosity .footer { background: var(--ds-teal); border-top: 0; }
.ds-studiosity .header .round-icon { background: var(--ds-raised); border-color: var(--ds-line-strong); }

/* ── Surfaces: the extruded Card ──────────────────────────────────────────────
   The page's own cream, raised by depth alone: no border, no lighter fill, 18px written as a literal (Card
   README). Only one level deep: a card inside a card lies flat, and the course cards' panel isn't a card at all, so
   the course cards stand on the page ground themselves. */
.ds-studiosity .card, .ds-studiosity .vd-box, .ds-studiosity .doc-view {
  background: var(--ds-page); border: 0; border-radius: var(--ds-radius-md); box-shadow: var(--ds-shadow-extruded); }
.ds-studiosity .card { --bs-card-bg: var(--ds-page); --bs-card-border-width: 0; }
.ds-studiosity .card .card, .ds-studiosity .modal .card {
  background: transparent; border: 1px solid var(--ds-line-strong); border-radius: var(--ds-radius-sm); box-shadow: none; }
.ds-studiosity .vd-panel { background: none; box-shadow: none; padding: 8px 0 0; }

/* ── Type by job ──────────────────────────────────────────────────────────────
   Action: the button style for buttons, tabs, filter and menu items, nav and standalone links. Medium, 16px at
   every width, slightly tight. A selected tab or option keeps the same weight. */
.ds-studiosity .course-select__control, .ds-studiosity .course-select__option,
.ds-studiosity .course-select__toggle, .ds-studiosity .course-select__course, .ds-studiosity .compare-open,
.ds-studiosity .breadcrumb, .ds-studiosity .footer a, .ds-studiosity .footer button {
  font-family: var(--ds-body); font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; }
.ds-studiosity .course-select__option .small, .ds-studiosity .course-select__option small {
  font-weight: 400; letter-spacing: 0; }
.ds-studiosity .footer { font-size: 1rem; }
/* Every link is underlined, so colour isn't the only sign (WCAG 1.4.1). The pen draws it on breadcrumbs and
   .btn-link. A whole raised card or row that is a link shows it by its depth instead, as the assignment tiles do. */

/* Label: small / bold above its value or as a column header, body / bold before its value. Never capitals. */
.ds-studiosity th, .ds-studiosity .vd-soon__day,
.ds-studiosity .vd-assign-rows__head, .ds-studiosity .vd-assign-card__k, .ds-studiosity .journey-title, .ds-studiosity .journey-facts dt,
.ds-studiosity .journey-signal__label, .ds-studiosity .journey-compare thead th, .ds-studiosity .journey-compare tbody th {
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0; text-transform: none; }
/* Sorting a column keeps it a Label: the button inside takes the head's style */
.ds-studiosity th .btn { --bs-btn-font-size: 1em; --bs-btn-font-weight: 700; letter-spacing: 0; }

/* Data: a value is body / medium beside its label, body / normal in a table, small / normal when it supports
   something else */
.ds-studiosity .vd-assign-card__date, .ds-studiosity .journey-facts dd,
.ds-studiosity .doc-view__file {
  font-size: 1rem; font-weight: 500; }
.ds-studiosity .vd-assign-rows, .ds-studiosity .journey-compare, .ds-studiosity .factor-cell__value {
  font-size: 1rem; font-weight: 400; }

.ds-studiosity .vd-box__count, .ds-studiosity .vd-soon__meta, .ds-studiosity .vd-links__sub, .ds-studiosity .vd-assign-toolbar__count,
.ds-studiosity .vd-assign-card__submitted, .ds-studiosity .journey-sub, .ds-studiosity .journey-time,
.ds-studiosity .journey-gap, .ds-studiosity .signal-context {
  font-size: 0.875rem; font-weight: 400; letter-spacing: 0; }
/* A status pill is the Badge component: small / bold, never capitals. ⚠️ Stand-in until a Badge doc says
   otherwise; the sheet lets a Badge use xs (12px) only with its reason written there. */
.ds-studiosity .badge, .ds-studiosity .vd-assign-card__review,
.ds-studiosity .vd-assign-row__review,
.ds-studiosity .journey-outcome, .ds-studiosity .offering-current {
  font-family: var(--ds-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0; text-transform: none; }

/* Body: reading text at 16px; help text, captions, legends and supporting lines are small */
.ds-studiosity .doc-text, .ds-studiosity .qa-answer, .ds-studiosity .doc-popover__body, .ds-studiosity .course-select__search {
  font-size: 1rem; }
.ds-studiosity .journey-prompt, .ds-studiosity .journey-legend, .ds-studiosity .journey-node--more {
  font-size: 0.875rem; }
.ds-studiosity .doc-text { line-height: 1.5; }

/* Titles in the prototype's own markup */
.ds-studiosity .journey-detail__title { font-family: var(--ds-display); font-size: 1.25rem; font-weight: 500;
  line-height: 1.2; color: var(--ds-ink-display); }
.ds-studiosity .journey-detail__title .fw-normal { font-family: var(--ds-body); font-size: 1rem; }
/* The document popover's header names its box */

.ds-studiosity .validation-how-it-works-modal__formula { font-weight: 500; }
.ds-studiosity .doc-heading { padding-bottom: 6px; margin-bottom: 8px; }
/* Code: the course code on its course card */

/* ── Buttons: square. One folded chartreuse primary; everything else is ghost. ── */
.ds-studiosity .btn {
  --bs-btn-font-family: var(--ds-body); --bs-btn-font-size: 1rem; --bs-btn-font-weight: 500;  /* the button style */
  --bs-btn-line-height: 1.5; --bs-btn-border-radius: 0; --bs-btn-border-width: 1.5px;
  --bs-btn-focus-box-shadow: 0 0 0 4.5px var(--ds-focus-outer); letter-spacing: -0.01em; }
/* The folded Button (Button.jsx's .sds-fold-cta, on Eureka's markup): ::before is the yellow face with its
   top-right and bottom-left corners cut, ::after the two folded flaps. Hover, keyboard focus and press unfold
   both corners over 500ms and a softer fill slides in from the left 200ms later. Sizes are the system's sm
   (Eureka's default button) and md (.btn-lg); .btn-sm is smaller than the system goes. Text is 16px in all. */
.ds-studiosity .btn-primary {
  --ds-fold: 10px;  /* fold-cta-size-sm */
  --bs-btn-padding-x: 16px; --bs-btn-padding-y: 10px; --bs-btn-font-size: 1rem;
  --bs-btn-color: var(--ds-ink); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
  --bs-btn-hover-color: var(--ds-ink); --bs-btn-hover-bg: transparent; --bs-btn-hover-border-color: transparent;
  --bs-btn-active-color: var(--ds-ink); --bs-btn-active-bg: transparent; --bs-btn-active-border-color: transparent;
  --bs-btn-disabled-color: var(--ds-graphite); --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: transparent; --bs-btn-disabled-opacity: 1;
  position: relative; isolation: isolate; filter: var(--ds-fold-drop); }

.ds-studiosity .btn-primary::before,
.ds-studiosity .btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ds-studiosity .btn-primary::before {
  background-color: var(--ds-accent);
  background-image: linear-gradient(var(--ds-accent-hover), var(--ds-accent-hover));  /* color-fold-cta-hover */
  background-repeat: no-repeat; background-size: 0 100%;
  clip-path: polygon(0 0, calc(100% - var(--ds-fold)) 0, 100% var(--ds-fold), 100% 100%, var(--ds-fold) 100%,
    0 calc(100% - var(--ds-fold)));
  transition: clip-path var(--ds-fold-time) ease-in-out, background-size var(--ds-fold-time) ease-in-out; }
.ds-studiosity .btn-primary::after {
  background-image: linear-gradient(to top right, var(--ds-fold-flap) 50%, transparent 50%),
    linear-gradient(to bottom left, var(--ds-fold-flap) 50%, transparent 50%);
  background-position: top right, bottom left; background-repeat: no-repeat;
  background-size: var(--ds-fold) var(--ds-fold);
  transition: background-size var(--ds-fold-time) ease-in-out; }

.ds-studiosity .btn-primary:focus-visible::before,
.ds-studiosity .btn-primary:active::before {
  clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 0 100%, 0 100%); background-size: 100% 100%;
  transition: clip-path var(--ds-fold-time) ease-in-out, background-size var(--ds-fold-time) ease-in-out 200ms; }
.ds-studiosity .btn-primary:focus-visible::after,
.ds-studiosity .btn-primary:active::after { background-size: 0 0; }
/* NEW (3 Nov 2026, Nick): hover unfolds too, as the website's .fold-cta does (globals.css), only where a pointer
   can hover, so a tap never leaves it stuck */
@media (hover: hover) {
  .ds-studiosity .btn-primary:not(:disabled):hover::before {
    clip-path: polygon(0 0, 100% 0, 100% 0, 100% 100%, 0 100%, 0 100%); background-size: 100% 100%;
    transition: clip-path var(--ds-fold-time) ease-in-out, background-size var(--ds-fold-time) ease-in-out 200ms; }
  .ds-studiosity .btn-primary:not(:disabled):hover::after { background-size: 0 0; }
}
/* Press darkens the face a little: the website's ink tint */
.ds-studiosity .btn-primary:not(:disabled):active::before {
  background-color: color-mix(in srgb, var(--ds-accent), rgb(37 30 18) 14%);
  background-image: linear-gradient(rgb(37 30 18 / 0.14), rgb(37 30 18 / 0.14)); }
/* Disabled lies flat and grey: no folds, no shadow */
.ds-studiosity .btn-primary:disabled { filter: none; }
.ds-studiosity .btn-primary:disabled::before {
  background: var(--ds-mist); clip-path: none; }
.ds-studiosity .btn-primary:disabled::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ds-studiosity .btn-primary::before,
  .ds-studiosity .btn-primary::after { transition: none !important; }
}
.ds-studiosity .btn-primary-outline {
  --bs-btn-color: var(--ds-ink); --bs-btn-bg: transparent; --bs-btn-border-color: var(--ds-line-strong);
  --bs-btn-hover-color: var(--ds-paper); --bs-btn-hover-bg: var(--ds-ink-display);
  --bs-btn-hover-border-color: var(--ds-ink-display);
  --bs-btn-active-color: var(--ds-paper); --bs-btn-active-bg: var(--ds-teal); --bs-btn-active-border-color: var(--ds-teal); }
/* The grid / list toggle: the chosen one is the action-teal state */

/* ── Links: the pen, a person went over this ──────────────────────────────── */
.ds-studiosity .breadcrumb a, .ds-studiosity .btn-link {
  position: relative; color: var(--ds-ink) !important; text-decoration: none !important;
  padding-bottom: 0.34em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10' preserveAspectRatio='none'%3E%3Cpath d='M -2.5 6.0 C 14 6.8, 28 5.2, 43 5.8 S 72 6.7, 86 5.5 S 97 5.2, 102.5 5.9' fill='none' stroke='%231c2f9c' stroke-width='2.5' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3Cpath d='M 62 6.0 C 72 6.6, 84 5.6, 99 5.6' opacity='0.55' fill='none' stroke='%231c2f9c' stroke-width='0.7' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left bottom / 100% 0.42em; }
.ds-studiosity .breadcrumb a:hover, .ds-studiosity .btn-link:hover { color: var(--ds-pen) !important; }
.ds-studiosity .btn-link { --bs-btn-border-width: 0; }
/* Sort buttons in a table head are controls, not links */
.ds-studiosity th .btn-link { background: none; padding-bottom: 0; color: inherit !important; font-weight: inherit; }

/* ── The highlighter: the claim. Two drawn shapes behind the word, which stays ink. ──
   .ds-mark (two words at most) is the mark as drawn: the band behind the word, tilted -0.7deg
   (highlighter-tilt), multiplied into the paper. The journey sentence's mark can wrap, so it carries the same
   shapes as a band that breaks with the line, untilted. */
.ds-studiosity .ds-mark { position: relative; isolation: isolate; white-space: nowrap; }
.ds-studiosity .ds-mark::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  left: -0.14em; right: -0.26em; bottom: 0; height: 1.18em;           /* lead, trail, height */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 100' preserveAspectRatio='none'%3E%3Cpath fill='%23e2e71f' d='M 15.50 13.99 L 26.26 11.85 L 35.40 11.95 L 45.49 14.11 L 55.23 12.15 L 65.96 12.13 L 76.38 13.85 L 85.69 12.03 L 95.03 11.92 L 106.98 12.17 L 116.16 11.98 L 125.43 14.14 L 135.29 12.09 L 145.52 12.14 L 156.70 13.83 L 167.08 11.82 L 177.06 14.02 L 187.12 14.16 L 197.40 14.08 L 207.32 11.99 L 216.36 13.88 L 225.97 12.20 L 237.70 13.97 L 247.48 14.10 L 258.00 13.94 L 266.75 14.15 L 277.66 14.17 L 287.56 12.00 L 296.62 13.86 L 306.68 14.00 L 318.04 12.11 L 327.31 14.03 L 338.00 11.85 L 347.71 13.86 L 357.29 13.95 L 367.76 13.93 L 378.24 11.85 L 387.04 12.02 L 397.30 14.10 L 408.30 14.12 L 417.47 12.16 L 427.66 13.99 L 437.87 11.90 L 447.56 14.02 L 458.58 11.96 L 468.15 12.09 L 478.20 12.17 L 487.51 13.81 L 493.62 11.93 L 489.09 19.91 L 487.27 29.95 L 481.33 38.49 L 482.90 47.30 L 480.87 54.62 L 480.22 64.62 L 478.04 73.24 L 474.85 81.82 L 476.50 89.97 L 466.16 90.11 L 457.50 89.85 L 447.09 89.80 L 436.83 88.20 L 427.95 87.93 L 417.70 88.13 L 407.96 88.10 L 397.17 88.00 L 387.45 87.87 L 377.32 90.02 L 366.75 90.10 L 357.85 87.89 L 347.84 89.94 L 337.76 88.20 L 327.15 88.15 L 318.05 89.80 L 307.35 87.92 L 298.05 87.89 L 287.70 87.94 L 278.09 88.10 L 268.70 89.97 L 257.85 87.84 L 249.12 89.81 L 239.28 88.20 L 229.47 88.13 L 218.95 88.16 L 209.73 88.01 L 199.77 90.05 L 189.84 90.09 L 179.92 88.13 L 170.40 88.19 L 159.14 88.09 L 149.42 87.97 L 139.44 88.08 L 130.14 87.94 L 121.23 89.96 L 110.79 89.94 L 100.34 88.16 L 90.34 89.91 L 80.77 87.87 L 71.68 88.15 L 61.34 89.95 L 51.47 90.16 L 40.13 87.86 L 31.04 88.09 L 20.48 90.14 L 11.82 90.00 L 4.87 89.99 L 8.59 78.55 L 11.88 67.74 L 11.67 56.73 L 17.65 45.92 L 13.95 36.40 L 17.91 24.21 L 15.50 13.99 Z'/%3E%3Cpath fill='%23e2e71f' fill-opacity='0.5' style='mix-blend-mode:multiply' d='M 21.50 58.11 L 31.96 60.09 L 41.20 58.38 L 50.51 58.55 L 60.58 60.53 L 70.52 60.98 L 80.30 60.97 L 91.60 59.44 L 100.42 61.58 L 109.68 61.50 L 119.81 61.69 L 131.02 59.80 L 140.36 62.00 L 149.61 62.11 L 159.54 62.43 L 169.30 60.50 L 179.33 60.74 L 189.75 61.09 L 199.50 61.17 L 209.07 61.35 L 219.63 63.45 L 228.57 61.74 L 238.19 62.00 L 249.85 61.96 L 259.55 64.34 L 268.04 62.27 L 278.68 64.58 L 287.98 62.80 L 299.14 62.79 L 309.01 65.26 L 317.43 65.30 L 328.25 65.46 L 338.08 65.56 L 347.72 65.93 L 357.13 63.98 L 368.20 66.17 L 377.26 66.20 L 387.19 64.69 L 397.17 66.87 L 407.85 67.09 L 417.77 65.07 L 426.74 65.39 L 436.13 65.45 L 447.04 67.47 L 456.95 65.78 L 466.50 67.83 L 463.50 86.83 L 452.97 86.83 L 443.32 86.84 L 434.10 85.05 L 422.96 87.14 L 413.52 84.81 L 405.06 87.06 L 393.41 85.10 L 384.02 85.03 L 374.05 87.03 L 363.91 85.16 L 355.30 86.87 L 344.59 85.06 L 334.71 84.84 L 324.83 85.00 L 315.95 87.14 L 305.05 86.87 L 296.13 86.83 L 284.67 84.85 L 276.27 87.05 L 265.06 85.00 L 256.51 84.91 L 245.10 87.20 L 236.24 85.10 L 225.86 86.82 L 216.01 84.92 L 207.24 84.85 L 195.64 87.10 L 187.29 84.87 L 175.83 84.98 L 166.86 85.12 L 157.84 85.09 L 146.49 85.18 L 137.65 84.92 L 126.90 84.98 L 118.08 86.91 L 108.44 86.95 L 98.58 86.96 L 87.37 84.82 L 78.46 87.01 L 68.20 84.81 L 58.74 85.14 L 48.58 86.89 L 38.82 86.94 L 27.48 84.84 L 18.50 85.14 Z'/%3E%3C/svg%3E") no-repeat center / 100% 100%;
  transform: rotate(-0.7deg); mix-blend-mode: multiply; }
.ds-studiosity .journey-sentence mark {
  color: inherit; padding: 0 0.26em 0 0.14em; margin: 0 -0.26em 0 -0.14em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 100' preserveAspectRatio='none'%3E%3Cpath fill='%23e2e71f' d='M 15.50 13.99 L 26.26 11.85 L 35.40 11.95 L 45.49 14.11 L 55.23 12.15 L 65.96 12.13 L 76.38 13.85 L 85.69 12.03 L 95.03 11.92 L 106.98 12.17 L 116.16 11.98 L 125.43 14.14 L 135.29 12.09 L 145.52 12.14 L 156.70 13.83 L 167.08 11.82 L 177.06 14.02 L 187.12 14.16 L 197.40 14.08 L 207.32 11.99 L 216.36 13.88 L 225.97 12.20 L 237.70 13.97 L 247.48 14.10 L 258.00 13.94 L 266.75 14.15 L 277.66 14.17 L 287.56 12.00 L 296.62 13.86 L 306.68 14.00 L 318.04 12.11 L 327.31 14.03 L 338.00 11.85 L 347.71 13.86 L 357.29 13.95 L 367.76 13.93 L 378.24 11.85 L 387.04 12.02 L 397.30 14.10 L 408.30 14.12 L 417.47 12.16 L 427.66 13.99 L 437.87 11.90 L 447.56 14.02 L 458.58 11.96 L 468.15 12.09 L 478.20 12.17 L 487.51 13.81 L 493.62 11.93 L 489.09 19.91 L 487.27 29.95 L 481.33 38.49 L 482.90 47.30 L 480.87 54.62 L 480.22 64.62 L 478.04 73.24 L 474.85 81.82 L 476.50 89.97 L 466.16 90.11 L 457.50 89.85 L 447.09 89.80 L 436.83 88.20 L 427.95 87.93 L 417.70 88.13 L 407.96 88.10 L 397.17 88.00 L 387.45 87.87 L 377.32 90.02 L 366.75 90.10 L 357.85 87.89 L 347.84 89.94 L 337.76 88.20 L 327.15 88.15 L 318.05 89.80 L 307.35 87.92 L 298.05 87.89 L 287.70 87.94 L 278.09 88.10 L 268.70 89.97 L 257.85 87.84 L 249.12 89.81 L 239.28 88.20 L 229.47 88.13 L 218.95 88.16 L 209.73 88.01 L 199.77 90.05 L 189.84 90.09 L 179.92 88.13 L 170.40 88.19 L 159.14 88.09 L 149.42 87.97 L 139.44 88.08 L 130.14 87.94 L 121.23 89.96 L 110.79 89.94 L 100.34 88.16 L 90.34 89.91 L 80.77 87.87 L 71.68 88.15 L 61.34 89.95 L 51.47 90.16 L 40.13 87.86 L 31.04 88.09 L 20.48 90.14 L 11.82 90.00 L 4.87 89.99 L 8.59 78.55 L 11.88 67.74 L 11.67 56.73 L 17.65 45.92 L 13.95 36.40 L 17.91 24.21 L 15.50 13.99 Z'/%3E%3Cpath fill='%23e2e71f' fill-opacity='0.5' style='mix-blend-mode:multiply' d='M 21.50 58.11 L 31.96 60.09 L 41.20 58.38 L 50.51 58.55 L 60.58 60.53 L 70.52 60.98 L 80.30 60.97 L 91.60 59.44 L 100.42 61.58 L 109.68 61.50 L 119.81 61.69 L 131.02 59.80 L 140.36 62.00 L 149.61 62.11 L 159.54 62.43 L 169.30 60.50 L 179.33 60.74 L 189.75 61.09 L 199.50 61.17 L 209.07 61.35 L 219.63 63.45 L 228.57 61.74 L 238.19 62.00 L 249.85 61.96 L 259.55 64.34 L 268.04 62.27 L 278.68 64.58 L 287.98 62.80 L 299.14 62.79 L 309.01 65.26 L 317.43 65.30 L 328.25 65.46 L 338.08 65.56 L 347.72 65.93 L 357.13 63.98 L 368.20 66.17 L 377.26 66.20 L 387.19 64.69 L 397.17 66.87 L 407.85 67.09 L 417.77 65.07 L 426.74 65.39 L 436.13 65.45 L 447.04 67.47 L 456.95 65.78 L 466.50 67.83 L 463.50 86.83 L 452.97 86.83 L 443.32 86.84 L 434.10 85.05 L 422.96 87.14 L 413.52 84.81 L 405.06 87.06 L 393.41 85.10 L 384.02 85.03 L 374.05 87.03 L 363.91 85.16 L 355.30 86.87 L 344.59 85.06 L 334.71 84.84 L 324.83 85.00 L 315.95 87.14 L 305.05 86.87 L 296.13 86.83 L 284.67 84.85 L 276.27 87.05 L 265.06 85.00 L 256.51 84.91 L 245.10 87.20 L 236.24 85.10 L 225.86 86.82 L 216.01 84.92 L 207.24 84.85 L 195.64 87.10 L 187.29 84.87 L 175.83 84.98 L 166.86 85.12 L 157.84 85.09 L 146.49 85.18 L 137.65 84.92 L 126.90 84.98 L 118.08 86.91 L 108.44 86.95 L 98.58 86.96 L 87.37 84.82 L 78.46 87.01 L 68.20 84.81 L 58.74 85.14 L 48.58 86.89 L 38.82 86.94 L 27.48 84.84 L 18.50 85.14 Z'/%3E%3C/svg%3E") no-repeat left bottom / 100% 1.18em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media print {
  .ds-studiosity .ds-mark::before { background: var(--ds-accent); transform: none; }
}

/* ── Tables: a quiet eyebrow head on paper, not a black bar ───────────────── */
.ds-studiosity .table { --bs-table-bg: transparent; --bs-table-border-color: var(--ds-line-strong); }

/* ── Badges and pills: square-cornered tags ───────────────────────────────── */
.ds-studiosity .badge { border-radius: var(--proto-radius-hairline); }
.ds-studiosity .offering-current { border-color: var(--ds-green); color: var(--ds-green); border-radius: var(--proto-radius-hairline); }

/* ── Form controls: a dropdown extrudes, a text input recesses ─────────────── */
.ds-studiosity .course-select__control { background: var(--ds-page); border-color: var(--ds-line-strong);
  border-radius: var(--proto-radius-hairline); box-shadow: var(--ds-shadow-field-out); }
.ds-studiosity .course-select__dropdown { background: var(--ds-raised); border-color: var(--ds-line-strong);
  border-radius: 0 0 var(--ds-radius-sm) var(--ds-radius-sm); box-shadow: var(--ds-shadow-card); }
.ds-studiosity .course-select__search { background: var(--ds-paper); box-shadow: var(--ds-shadow-field-in);
  border-bottom-color: var(--ds-line); }
.ds-studiosity .course-select__option { background: var(--ds-raised); border-bottom-color: var(--ds-line); }
.ds-studiosity .course-select__option:hover, .ds-studiosity .course-select__option:focus-visible,
.ds-studiosity .course-select__toggle:hover { background: var(--ds-paper); }

/* ── Dashboard ────────────────────────────────────────────────────────────── */

/* Calendar days (neumorphic): an empty day recesses into the card; a day with dates stands up at the field
   scale. Its chips lie flat inside it (a card inside a card lies flat): a raised fill and a hairline that
   darkens on hover, the left edge in the kind's colour. */

/* Top row: Coming up and quick links are extruded Cards; their rows lie flat on hairlines and light on paper
   when hovered */
.ds-studiosity .vd-box { padding: var(--ds-card-pad-y) var(--ds-card-pad-x); }
.ds-studiosity .vd-up__scroll { margin: 0 calc(var(--ds-card-pad-x) * -1) calc(var(--ds-card-pad-y) * -1);
  padding: 0 var(--ds-card-pad-x) 12px; }
.ds-studiosity .vd-box__count, .ds-studiosity .vd-soon__meta, .ds-studiosity .vd-soon__code,
.ds-studiosity .vd-soon__day, .ds-studiosity .vd-links__sub, .ds-studiosity .vd-soon__empty { color: var(--ds-graphite); }
.ds-studiosity .vd-soon > li + li, .ds-studiosity .vd-links li + li { border-top-color: var(--ds-line); }
.ds-studiosity .vd-soon__row, .ds-studiosity .vd-links__link { color: var(--ds-ink); border-radius: var(--proto-radius-hairline); }
.ds-studiosity .vd-soon__row:hover, .ds-studiosity .vd-links__link:hover { color: var(--ds-ink); background: var(--ds-raised); }
.ds-studiosity .vd-soon__what { font-size: 1rem; }
.ds-studiosity .vd-soon__name, .ds-studiosity .vd-links__title { font-weight: 500; }
.ds-studiosity .vd-links__title { font-size: 1rem; }
.ds-studiosity .vd-links__icon { background: var(--ds-page);
  box-shadow: inset 2px 3px 6px -3px rgb(58 46 26 / 0.4), inset -2px -2px 4px -2px var(--ds-lit-edge); }
.ds-studiosity .vd-links__icon .icon { fill: var(--ds-teal); }
.ds-studiosity .vd-mark { border-left-color: var(--ds-graphite); }
.ds-studiosity .vd-mark--close, .ds-studiosity .vd-mark--ext { border-left-color: var(--act-closing); }
/* Course cards: the extruded Card, cream with an 18px radius and no border, its shadow deepening on hover.
   Nothing tilts. Colour only on what needs doing: the blue review count. */

/* Assignment tiles: extruded at the field scale, the shadow deepening on hover. Nothing moves. */
.ds-studiosity .vd-assign-card { background: var(--ds-page); border: 0; border-radius: var(--ds-radius-md);
  box-shadow: var(--ds-shadow-field-out); padding: 16px 18px 18px; }
.ds-studiosity .vd-assign-card:hover { transform: none; box-shadow: var(--ds-shadow-extruded-sm); }
.ds-studiosity .vd-assign-grid { gap: 22px; padding: 4px; }
/* Inside a course card the tiles lie flat (a card inside a card lies flat): a raised fill and a hairline,
   the fill darkening on hover */

.ds-studiosity .vd-assign-card__review { border-radius: var(--proto-radius-hairline); padding: 3px 10px; }
.ds-studiosity .vd-assign-card__flag { min-height: 30px; }
/* Lora at 1.2 line height: two lines reserved for every name */
.ds-studiosity .vd-assign-card__name { min-height: 2.4em; }
/* Due and Closed by the date, a step up from the small label: body / bold */
.ds-studiosity .vd-assign-card__k { font-size: 1rem; }
.ds-studiosity .vd-assign-toolbar__count, .ds-studiosity .vd-assign-card__submitted { color: var(--ds-graphite); }
/* The list view: each assignment a raised row, deepening on hover; the review count a light-teal chip */
.ds-studiosity .vd-assign-rows__head, .ds-studiosity .vd-assign-row__relative, .ds-studiosity .vd-assign-row__none,
.ds-studiosity .vd-assign-row__submitted { color: var(--ds-graphite); }
.ds-studiosity .vd-assign-row { background: var(--ds-page); border-radius: var(--ds-radius-sm);
  box-shadow: var(--ds-shadow-field-out); }
.ds-studiosity .vd-assign-row:hover { box-shadow: var(--ds-shadow-extruded-sm); }
.ds-studiosity .vd-assign-row__link, .ds-studiosity .vd-assign-row__link:hover { color: var(--ds-ink-display); }
.ds-studiosity .vd-assign-row__dot.is-open { background: var(--ds-teal); }
.ds-studiosity .vd-assign-row__dot.is-closing { background: var(--act-closing); }
.ds-studiosity .vd-assign-row__dot.is-closed { box-shadow: inset 0 0 0 1.5px var(--ds-graphite); }
/* The review count is deep pink everywhere, as on the cards and folders (3 Nov 2026: was light teal here) */
.ds-studiosity .vd-assign-row__review { background: var(--act-review); color: var(--ds-ink); font-weight: 700;
  border-radius: var(--proto-radius-chip); }

/* ── Student page ─────────────────────────────────────────────────────────── */
.ds-studiosity .doc-view { overflow: hidden; }

/* Folders (30 Oct 2026, restored from 39fe765): one extruded cream form, back and rounded tab together, with a
   flat extruded front panel. Nothing tilts; on hover the shadow deepens and the page inside rises straight up. */
.ds-studiosity .vd-folder__state, .ds-studiosity .vd-folder__peek-name { font-size: 0.875rem; font-weight: 400;
  letter-spacing: 0; }
.ds-studiosity .vd-folder__slip { font-family: var(--ds-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0;
  text-transform: none; border-radius: var(--proto-radius-hairline); z-index: 2; }

.ds-studiosity .vd-folder__tab code { font-size: 0.875rem; font-weight: 400; letter-spacing: 0; }
.ds-studiosity .vd-folder { color: var(--ds-ink); border-radius: var(--ds-radius-md); }
.ds-studiosity .vd-folder__tab { line-height: 1.5; background: var(--ds-page); color: var(--ds-ink);
  border-radius: var(--ds-radius-sm) var(--ds-radius-sm) 0 0; box-shadow: -6px -6px 12px -6px var(--ds-lit-edge); }
.ds-studiosity .vd-folder__back { background: var(--ds-page); border-radius: 0 var(--ds-radius-md) var(--ds-radius-md) var(--ds-radius-md);
  box-shadow: var(--ds-shadow-extruded); transition: box-shadow 200ms ease; }
.ds-studiosity .vd-folder:hover .vd-folder__back, .ds-studiosity .vd-folder:focus-visible .vd-folder__back {
  box-shadow: var(--ds-shadow-extruded-hover); }
.ds-studiosity .vd-folder__front { background: var(--ds-page); border-radius: var(--ds-radius-xs) var(--ds-radius-xs) var(--ds-radius-md) var(--ds-radius-md);
  box-shadow: inset 0 1px 0 var(--ds-lit-edge), 0 -3px 6px -3px rgb(58 46 26 / 0.22),
    4px 8px 14px -8px rgb(58 46 26 / 0.3); }
.ds-studiosity .vd-folder:hover .vd-folder__front, .ds-studiosity .vd-folder:focus-visible .vd-folder__front {
  box-shadow: inset 0 1px 0 var(--ds-lit-edge), 0 -4px 8px -3px rgb(58 46 26 / 0.26),
    6px 12px 20px -10px rgb(58 46 26 / 0.32); }
.ds-studiosity .vd-folder__state { color: var(--ds-graphite); }
.ds-studiosity .vd-folder__peek { background: var(--ds-raised); border: 0; border-radius: var(--ds-radius-xs);
  box-shadow: var(--ds-shadow-card), 0 0 0 1px var(--ds-line); }
.ds-studiosity .vd-course-modal__code { font-size: 0.875rem; font-weight: 400; letter-spacing: 0;
  color: var(--ds-page); }

/* Assignment cards as documents (30 Oct 2026, Nick): papers that belong inside the course folder. A sheet with
   rounded corners and a folded top-right corner; drop-shadow (not box-shadow) so the shadow follows the fold.
   Students to review: a blue clip across the top edge, holding a second sheet behind. Colour stays only on
   what needs doing. */
.ds-studiosity .vd-assign-grid { gap: 30px 24px; padding: 16px 8px 8px; }
.ds-studiosity .vd-doc { position: relative; isolation: isolate; }
.ds-studiosity .vd-assign-card { --fold: 22px; position: relative; border-radius: var(--ds-radius-sm); box-shadow: none;
  padding: 34px 20px 18px;
  background: linear-gradient(225deg, transparent calc(var(--fold) * 0.7071), var(--ds-raised) 0);
  filter: drop-shadow(0 1px 1px rgb(58 46 26 / 0.14)) drop-shadow(2px 6px 8px rgb(58 46 26 / 0.12));
  transition: transform 200ms ease, filter 200ms ease; }
/* The folded corner */
.ds-studiosity .vd-assign-card::before { content: ""; position: absolute; top: 0; right: 0; width: var(--fold);
  height: var(--fold); border-bottom-left-radius: 5px;
  background: linear-gradient(45deg, #e9e2d4 50%, transparent 50%); }
.ds-studiosity .vd-assign-card:hover { transform: translateY(-3px);
  filter: drop-shadow(0 2px 2px rgb(58 46 26 / 0.14)) drop-shadow(4px 12px 14px rgb(58 46 26 / 0.16)); }
/* The sheet behind, held by the clip */
.ds-studiosity .vd-doc.has-clip::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--ds-radius-sm);
  background: linear-gradient(225deg, transparent 15px, #efe8da 0);
  transform: translate(7px, 6px) rotate(2deg);
  filter: drop-shadow(0 0 0.5px rgb(58 46 26 / 0.35)) drop-shadow(1px 3px 5px rgb(58 46 26 / 0.14)); }
/* The clip: across the top edge, half on the paper. Its back leg shows as a loop on the sheet. */
.ds-studiosity .vd-assign-card__flag { min-height: 0; }
.ds-studiosity a.vd-assign-card__review { position: absolute; top: -13px; left: 18px; z-index: 2; min-height: 30px;
  padding: 4px 12px; border-radius: var(--proto-radius-chip) var(--proto-radius-chip) var(--ds-radius-xs) var(--ds-radius-xs); box-shadow: var(--ds-shadow-extruded-xs); }
.ds-studiosity a.vd-assign-card__review::before { content: ""; position: absolute; left: 10px; right: 10px; top: 60%;
  height: 14px; z-index: -1; border: 2px solid var(--act-review); border-top: 0; border-radius: 0 0 var(--proto-radius-chip) var(--proto-radius-chip);
  opacity: 0.6; }
@media (prefers-reduced-motion: reduce) {
  .ds-studiosity .vd-assign-card, .ds-studiosity .vd-assign-card:hover { transition: none; transform: none; } }

/* Materials (30 Oct 2026, Nick): manila folders hold white paper, so a folder and a document never look alike.
   Manila is the same on every folder: a material, not a colour that marks the course. */
.ds-studiosity .vd-folder { --manila: var(--proto-manila); --manila-back: var(--proto-manila-back); }  /* a dry, faded manila */
.ds-studiosity .vd-folder__tab, .ds-studiosity .vd-folder__back { background: var(--manila-back);
  box-shadow: 3px 6px 12px -6px rgb(58 46 26 / 0.3); }
.ds-studiosity .vd-folder:hover .vd-folder__back, .ds-studiosity .vd-folder:focus-visible .vd-folder__back {
  box-shadow: 5px 10px 18px -8px rgb(58 46 26 / 0.36); }
.ds-studiosity .vd-folder__front { background: var(--manila);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45), 0 -3px 6px -3px rgb(58 46 26 / 0.25),
    4px 8px 14px -8px rgb(58 46 26 / 0.32); }
.ds-studiosity .vd-folder__state { color: var(--proto-manila-ink); }
/* The example course in its own colour (2 Nov 2026, Nick) */
.ds-studiosity .vd-folder.is-example { --manila: var(--proto-example); --manila-back: var(--proto-example-back); }
.ds-studiosity .vd-folder.is-example .vd-folder__state, .ds-studiosity .vd-folder.is-example .vd-folder__tab code {
  color: var(--proto-example-ink); }
/* Closed courses in grey (2 Nov 2026, Nick), wherever they show: the Closed courses window, or a semester chosen
   in the course filter */
.ds-studiosity .vd-folder.is-closed { --manila: var(--proto-closed); --manila-back: var(--proto-closed-back); }
.ds-studiosity .vd-folder.is-closed .vd-folder__state, .ds-studiosity .vd-folder.is-closed .vd-folder__tab code {
  color: var(--proto-closed-ink); }
.ds-studiosity .vd-closed-modal .modal-body .vd-folders { padding: 4px 4px 12px; }
/* The example tag: the same lilac chip wherever the example shows (Coming up, the course window) */
.ds-studiosity .vd-example-tag, .ds-studiosity .vd-course-modal__code.is-example {
  padding: 1px 8px; border-radius: var(--proto-radius-hairline); background: var(--proto-example-back);
  color: var(--proto-example-ink); }
/* Remove the example: a small round button on the folder's top-right corner, once the educator's own folders
   have arrived. A sibling of the folder button, so it isn't a button inside a button */
.ds-studiosity .vd-example-slot { position: relative; }
.ds-studiosity .vd-example-remove { position: absolute; top: 4px; right: -20px; z-index: 4; }
.ds-studiosity .vd-folder__peek { background: #fff; }
/* White paper, a light grey fold, a soft off-white sheet behind */
.ds-studiosity .vd-assign-card { background: linear-gradient(225deg, transparent calc(var(--fold) * 0.7071), #fff 0); }
.ds-studiosity .vd-assign-card::before { background: linear-gradient(45deg, #e4e4e1 50%, transparent 50%); }
.ds-studiosity .vd-doc.has-clip::before { background: linear-gradient(225deg, transparent 15px, #f6f6f3 0); }
/* Fine-tuning (30 Oct 2026, Nick): the tab is part of the folder's back, so it casts no shadow of its own onto
   it; and the page inside rises only to just below the tab, so the tab never clips it. */
.ds-studiosity .vd-folder__tab { box-shadow: none; }
.ds-studiosity .vd-folder:hover .vd-folder__peek, .ds-studiosity .vd-folder:focus-visible .vd-folder__peek {
  transform: translateY(-2px); }

/* The folder's review tag is the same clip as on the papers (30 Oct 2026, Nick): "Review N", rounded, across
   the top edge of the folder's front, with its loop showing on the front */
.ds-studiosity .vd-folder__slip { top: 38px; right: 16px; z-index: 3; gap: 5px; min-height: 30px; padding: 4px 12px;
  border-radius: var(--proto-radius-chip) var(--proto-radius-chip) var(--ds-radius-xs) var(--ds-radius-xs); box-shadow: var(--ds-shadow-extruded-xs); }
.ds-studiosity .vd-folder__slip::before { content: ""; position: absolute; left: 10px; right: 10px; top: 60%;
  height: 14px; z-index: -1; border: 2px solid var(--act-review); border-top: 0; border-radius: 0 0 var(--proto-radius-chip) var(--proto-radius-chip);
  opacity: 0.6; }
.ds-studiosity .vd-folder__slip .icon { margin: 0; }

/* Review tags in deep pink carry ink text and icon (4.9:1) */
.ds-studiosity .vd-folder__slip, .ds-studiosity a.vd-assign-card__review, .ds-studiosity a.vd-assign-card__review:hover {
  color: var(--ds-ink); }
.ds-studiosity .vd-folder__slip .icon, .ds-studiosity .vd-assign-card__review .icon { fill: currentColor; }
/* With "closes" now ink, "due" steps back to slate so the two strokes stay apart (30 Oct 2026) */
.ds-studiosity .vd-mark { border-left-color: #a49b8c; }
.ds-studiosity .vd-mark--close, .ds-studiosity .vd-mark--ext { border-left-color: var(--act-closing); }

/* The folder's review tag is a sticker on the folder front, lower right (30 Oct 2026, Nick): it balances the
   folder (code tab top left, sticker bottom right). Papers keep the clip; the folder gets a sticker. */
.ds-studiosity .vd-folder__slip { top: auto; bottom: 16px; right: 16px; padding: 5px 12px; border-radius: var(--ds-radius-sm);
  transform: rotate(-4deg); transform-origin: 50% 50%;
  box-shadow: 0 1px 1px rgb(58 46 26 / 0.25), 0 4px 8px -3px rgb(58 46 26 / 0.3); }
.ds-studiosity .vd-folder__slip::before { display: none; }
.ds-studiosity .vd-folder.has-slip .vd-folder__peek-name { padding-right: 10px; }
/* The sticker lies flat on the folder: no tilt, no shadow (30 Oct 2026, Nick) */
.ds-studiosity .vd-folder__slip { transform: none; box-shadow: none; }
/* Folders take the website's extruded pair (30 Oct 2026, Nick: "the standard for all cards"): a soft cast below
   and a lit edge above, the same as Coming up and Quick links, in place of the heavier drop shadows. The front
   panel keeps only its lit top edge and a hairline seam onto the back. */
.ds-studiosity .vd-folder__back { box-shadow: var(--ds-shadow-extruded); }
.ds-studiosity .vd-folder:hover .vd-folder__back, .ds-studiosity .vd-folder:focus-visible .vd-folder__back {
  box-shadow: var(--ds-shadow-extruded-hover); }
.ds-studiosity .vd-folder__front, .ds-studiosity .vd-folder:hover .vd-folder__front,
.ds-studiosity .vd-folder:focus-visible .vd-folder__front {
  box-shadow: inset 0 1px 0 rgb(255 253 248 / 0.7), 0 -2px 4px -2px rgb(58 46 26 / 0.16); }
/* PROTOTYPE-LOCAL TOKEN (30 Oct 2026, Nick): the extruded pair at a small-card scale, between the website's card
   (--shadow-extruded) and field (--shadow-extruded-field) steps. Shadows scale with the object, so a 230px folder
   takes a smaller blur than a full-width card. Not a website token yet; propose it there separately. */
.ds-studiosity {
  --ds-shadow-extruded-sm: 5px 10px 18px -8px rgb(58 46 26 / 0.2), -5px -7px 14px -2px var(--ds-lit-edge);
  --ds-shadow-extruded-sm-hover: 8px 16px 28px -12px rgb(58 46 26 / 0.2), -7px -10px 18px -3px var(--ds-lit-edge);
  /* PROTOTYPE-LOCAL (2 Nov 2026, Nick): the extruded pair at pill and tag size, below the website's field step, in
     the family's one colour and opacity (rgb 58 46 26 / 0.2 with the lit edge). Same for every pill colour. */
  --ds-shadow-extruded-xs: 2px 3px 5px -2px rgb(58 46 26 / 0.2), -1px -2px 3px -1px var(--ds-lit-edge); }
/* ── The aesthetic: soft extrusion (2 Nov 2026, Nick: "closer to what we had before and closer to the website").
   One light from the top-left. A raised thing is the page's own material pushed forward: a warm cast below right
   and a lit edge above left (the website's --shadow-extruded family). The step is set by the object's size, never
   its colour: card (large cards) / -sm (folders, about 320px) / field (controls and rows, about 44px) / -xs (pills
   and tags), each with a deeper -hover. The website's other tiers keep their own jobs: lifted for a sheet over the
   page (the course menu, paper), recessed for things you put something into (fields, icon wells), modal for
   dialogs. DS 2.0's elevation.md is a draft (Tight / Fluffy, black, straight down, two roles); proposed to it. */
.ds-studiosity .vd-folder__back { box-shadow: var(--ds-shadow-extruded-sm); }
.ds-studiosity .vd-folder:hover .vd-folder__back, .ds-studiosity .vd-folder:focus-visible .vd-folder__back {
  box-shadow: var(--ds-shadow-extruded-sm-hover); }

/* A page's main call to action takes the website's DEFAULT button (s8y-website primitives.tsx SIZES.default:
   px-6 py-[0.9rem], fold-cta-size 16px), not the small one (30 Oct 2026, Nick). */
.ds-studiosity .btn-primary.vd-cta { --ds-fold: 16px; --bs-btn-padding-x: 24px; --bs-btn-padding-y: 0.9rem; }

/* The Days view on the Studiosity ground: days with dates lie as raised fields, empty days stay flat */
.ds-studiosity .vd-strip { margin: 0 -24px -20px; padding: 0 24px 14px; }
.ds-studiosity .vd-strip__day:not(.is-empty) { background: var(--ds-page); box-shadow: var(--ds-shadow-field-out); }
.ds-studiosity .vd-strip__head, .ds-studiosity .vd-strip__meta { color: var(--ds-graphite); }
.ds-studiosity .vd-strip__day.is-today .vd-strip__head { color: var(--ds-ink); }
.ds-studiosity .vd-strip__chip { background: var(--ds-raised); box-shadow: inset 0 0 0 1px var(--ds-line); }
.ds-studiosity .vd-strip__chip:hover { background: var(--ds-paper); box-shadow: inset 0 0 0 1px var(--ds-ink); }
/* The course menu is a field, so it takes the website's field rounding: 12px (Field.tsx rounded-sm, "not the
   panel's 18px and not a pill"). Open, the control and its list join as one rounded shape (30 Oct 2026, Nick). */
.ds-studiosity .course-select__control { border-radius: var(--ds-radius-sm); }
.ds-studiosity .course-select.is-open .course-select__control { border-radius: var(--ds-radius-sm) var(--ds-radius-sm) 0 0; }
.ds-studiosity .course-select__dropdown { border-radius: 0 0 var(--ds-radius-sm) var(--ds-radius-sm); }
/* The course menu's outline fades from light at the top to the website's field edge at the bottom (30 Oct 2026,
   Nick): lit from above like the cards. The bottom edge (ink at 55%, about 3.7:1 on cream) carries WCAG 1.4.11;
   the top is about 1.6:1. A two-layer background keeps the 12px corners, which border-image can't. */
.ds-studiosity .course-select__control {
  --cs-fill: var(--ds-page);
  border: 1px solid transparent;
  background: linear-gradient(var(--cs-fill), var(--cs-fill)) padding-box,
    linear-gradient(to bottom, rgb(37 30 18 / 0.22), rgb(17 21 20 / 0.55)) border-box; }
.ds-studiosity .course-select__control:hover { --cs-fill: var(--ds-paper); }
/* ── Room to breathe (30 Oct 2026, Nick) ───────────────────────────────────────────────────────────────
   Every hit target gets ample space above and below its words: the copy breathes, and larger targets are
   faster to hit (Fitts's law) and kinder to touch on iPads. One rule, as tokens:
     rows in lists and menus: at least 56px tall, 16px above and below, 20px at the sides;
     buttons and toggles: at least 48px tall (above WCAG 2.5.5's 44px and the Apple and Google touch minimums).
     Raised from 48/44 the same evening (Nick: "they can be even larger"). */
.ds-studiosity {
  --hit-row: 56px; --hit-row-y: 16px; --hit-row-x: 20px;
  --hit-btn: 48px; }
.ds-studiosity .course-select__control { min-height: var(--hit-btn); padding: 10px var(--hit-row-x); }
.ds-studiosity .course-select__search { min-height: var(--hit-row); padding: var(--hit-row-y) var(--hit-row-x); }
.ds-studiosity .course-select__option, .ds-studiosity .course-select--tree .course-select__option {
  min-height: var(--hit-row); padding: var(--hit-row-y) var(--hit-row-x); line-height: 1.4; }
.ds-studiosity .course-select__semester-row .course-select__option { padding-left: 4px; }
.ds-studiosity .course-select__toggle { width: 40px; margin-left: 8px; }
.ds-studiosity .course-select__dropdown { max-height: 420px; }
/* Courses indent past their semester's label (toggle 8px + 40px, then 4px, plus a step of 16px) */
.ds-studiosity .course-select--tree .course-select__course { padding-left: 72px; }
/* The rule, on the landing's other buttons: view toggles at --hit-btn; the review clips keep their drawn size but
   their hit area grows to 48px with an invisible margin, so the look holds and the target is easy to hit */

.ds-studiosity a.vd-assign-card__review::after { content: ""; position: absolute; inset: -9px -8px; }
/* The course modal is the inside of the folder (30 Oct 2026, Nick: "lighter and more balanced", no odd blue).
   The page's cream ground, no coloured header band, the folder's manila code tab, even 32px padding, a width
   sized to the papers rather than the screen, and a softer warm scrim. The How it works modal is unchanged. */
.ds-studiosity .vd-course-modal .modal-dialog { max-width: min(900px, calc(100vw - 32px)); }
.ds-studiosity .vd-course-modal .modal-title { margin-top: 10px; }
.ds-studiosity .vd-course-modal .modal-header .small { color: var(--ds-graphite); margin-top: 4px; }
.ds-studiosity .vd-course-modal__code { display: inline-block; margin: 0; padding: 4px 12px; border-radius: var(--ds-radius-sm);
  background: var(--proto-manila-back); color: var(--ds-ink); font-size: 0.875rem; font-weight: 400; letter-spacing: 0; }

/* The layout switcher (30 Oct 2026, Nick). One control with the course menu's outline (fading to a 3.7:1
   bottom edge, WCAG 1.4.11). Chosen: flat paper fill, ink icon. Not chosen: no fill, slate #8d8578 icon (3.3:1 on
   cream, 5:1 from the ink), and it lifts on hover with the small extruded shadow. State shows by fill and icon
   colour, never by shadow alone. Buttons are 48px squares (the hit rule). */
/* The layout switch, on the button ladder (3 Nov 2026, Nick): Flat 48px icon buttons side by side, the chosen
   layout pressed in with the fading outline turned over, as every choice (Buttons by job, below). Replaces the
   30 and 31 Oct rules (bare icons, a dark-cream chosen icon). Line icons stay: one pen stroke, no fill */
.ds-studiosity .vd-switch { display: inline-flex; gap: 4px; }
.ds-studiosity .vd-switch__btn svg.vd-switch__icon { width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.ds-studiosity .vd-box__head .vd-switch { margin-left: auto; }
/* The footer is ink, as on the website (Closing.tsx, Nick 26 Sept 2026: "our black ink colour, so that it feels
   like a grounding or solid ending to each page"). Was the teal blackboard. Text and links stay light. */
.ds-studiosity .footer { background: var(--ds-ink); }

/* Header as on the website (31 Oct 2026, Nick): the cream bar (the nav's surface-0 #f3efe7) with a hairline, the
   website's wordmark with its glint (wordmark.js) in place of the PNG, and the profile button a white circle with
   the initial in Lora, ink. */
.ds-studiosity .header { background: var(--ds-page); border-bottom-color: var(--ds-line); }
.ds-studiosity .header .page-title.has-wordmark { width: 8rem; height: auto; margin: 0; background: none;
  color: var(--ds-ink); }
.ds-studiosity .s8y-wordmark { display: block; width: 100%; height: auto; }
.ds-studiosity .header .round-icon { width: var(--hit-btn); height: var(--hit-btn); border-radius: 50%;
  background: #fff; border: 1px solid var(--ds-line); box-shadow: 0 1px 2px rgb(58 46 26 / 0.12); }
.ds-studiosity .round-icon__initial { font-family: var(--ds-display); font-size: 1.375rem; font-weight: 500;
  line-height: 1; color: var(--ds-ink); }
/* A very soft downcast under the nav (31 Oct 2026, Nick), so the bar reads as separate from the page below.
   Light from above, like the cards: a short, warm, low-opacity cast. */
.ds-studiosity .header { position: relative; z-index: 10; box-shadow: 0 6px 14px -10px rgb(58 46 26 / 0.28); }

.ds-studiosity .vd-welcome-line { color: var(--ds-graphite); }
.ds-studiosity .vd-welcome-card { padding: calc(var(--ds-card-pad-y) + 4px) var(--ds-card-pad-x); }
/* Ready to turn on Validate (31 Oct 2026, Nick): teal-deep, the system's blackboard, so the one thing to do calls
   out next to the cream example folder. Light text; the yellow button stays the one CTA */
.ds-studiosity .vd-box.vd-welcome-card--teal { --surface: var(--ds-teal); background: var(--surface); color: var(--ds-paper);
  box-shadow: var(--ds-shadow-extruded); }
.ds-studiosity .vd-welcome-card--teal .vd-welcome-card__title { color: var(--ds-paper);
  margin-bottom: var(--proto-space-group) !important; text-wrap: balance; }
/* One heading size for both teal cards (2 Nov 2026, Nick: the 20px Title "too small" once the card grew): h3,
   28px, the same as Validate is on in the LMS */
.ds-studiosity .vd-welcome-card--teal .vd-welcome-card__title.text-title { font-size: 1.75rem; }
.ds-studiosity .vd-welcome-card--teal p { color: rgb(255 255 255 / 0.86); }
/* The card's stack (2 Nov 2026, Nick: "too cramped"): heading, its line, then the button underneath, on the
   card-stack spacing. Replaces the button beside the text on desktop (31 Oct) */
.ds-studiosity .vd-box.vd-welcome-card--teal { flex-direction: column; flex-wrap: nowrap; align-items: flex-start;
  justify-content: center; gap: 0; }
.ds-studiosity .vd-welcome-card--teal .vd-welcome-card__text { flex: none; }
.ds-studiosity .vd-welcome-card--teal > .btn { margin-top: var(--proto-space-action); }
/* ── Coming up, on brand (31 Oct 2026, Nick: list "dull", Days "crammed into tiny boxes on white cards") ──
   The three kinds keep their shapes (solid due, solid closes, dashed extensions end) but take brand colour:
   teal-deep for due (the brand's base colour, used here as a quiet marker), ink for closes, dashed ink for
   extensions end. Strokes are 4px and rounded; the day reads in ink with its weekday in graphite. Coral stays
   for review only, yellow for CTAs only. */
.ds-studiosity .vd-mark { width: 0; border-left-width: 4px; border-radius: var(--proto-radius-hairline); }
.ds-studiosity .vd-mark, .ds-studiosity .vd-mark--due { border-left-color: var(--ds-teal); }
.ds-studiosity .vd-mark--close { border-left-color: var(--ds-ink); }
.ds-studiosity .vd-mark--ext { border-left-color: var(--ds-ink); border-left-style: dashed; }
.ds-studiosity .vd-soon__day { color: var(--ds-ink); }
.ds-studiosity .vd-soon__row { padding-top: 14px; padding-bottom: 14px; }
.ds-studiosity .vd-soon__rel { color: var(--ds-ink); }

/* Days: open lanes on the cream, no cards. One lane per day, divided by hairlines; a lane with dates is wide
   enough for full names; empty lanes are narrow and quiet. Each date is a row like the list's, with its mark,
   not a box. */
.ds-studiosity .vd-strip__days { gap: 0; }
.ds-studiosity .vd-strip__day, .ds-studiosity .vd-strip__day:not(.is-empty) { flex: 0 0 236px; padding: 4px 16px;
  background: none; box-shadow: none; border-radius: 0; border-left: 1px solid var(--ds-line); }
.ds-studiosity .vd-strip__day:first-child { border-left: 0; padding-left: 0; }
.ds-studiosity .vd-strip__day.is-empty { flex-basis: 56px; padding: 4px 6px; }
.ds-studiosity .vd-strip__head { flex-direction: row; gap: 6px; align-items: baseline; margin-bottom: 6px;
  font-size: 0.875rem; color: var(--ds-ink); }
.ds-studiosity .vd-strip__day.is-empty .vd-strip__head { flex-direction: column; gap: 0; color: var(--ds-graphite); }
.ds-studiosity .vd-strip__day.is-today .vd-strip__wd { color: var(--ds-ink); }
.ds-studiosity .vd-strip__items { gap: 4px; }
.ds-studiosity .vd-strip__chip { gap: 2px; padding: 8px 10px 8px 14px; background: none; box-shadow: none;
  border-left: 4px solid var(--ds-teal); border-radius: var(--proto-radius-hairline); font-size: 1rem; line-height: 1.35; }
.ds-studiosity .vd-strip__chip:hover { background: var(--ds-paper); box-shadow: none; }
.ds-studiosity .vd-strip__chip--close { border-left-color: var(--ds-ink); }
.ds-studiosity .vd-strip__chip--ext { border-left-color: var(--ds-ink); border-left-style: dashed; }
.ds-studiosity .vd-strip__name { font-weight: 500; -webkit-line-clamp: 2; }
.ds-studiosity .vd-strip__meta { font-size: 0.875rem; color: var(--ds-graphite); }
/* Extensions end: a visible dash pattern at 4px (a border-style dash draws as one stub at this size) */
.ds-studiosity .vd-mark--ext { width: 4px; border-left: 0;
  background: repeating-linear-gradient(to bottom, var(--ds-ink) 0 4px, transparent 4px 7px); }
.ds-studiosity .vd-strip__chip--ext { border-left: 4px solid transparent;
  border-image: repeating-linear-gradient(to bottom, var(--ds-ink) 0 4px, transparent 4px 7px) 0 0 0 4 / 0 0 0 4px; }
/* Coming up colours, vibrant and distinct (31 Oct 2026, Nick): due bright teal #00999a (3.04:1 on cream, at the
   floor), closes Validate indigo #3b4bc8 (6.05:1), extensions end violet #9b5ad6 dashed (3.79:1). Coral stays
   for review, yellow for CTAs. */
.ds-studiosity { --cu-due: #00999a; --cu-close: #3b4bc8; --cu-ext: #9b5ad6; }
.ds-studiosity .vd-mark, .ds-studiosity .vd-mark--due { border-left-color: var(--cu-due); }
.ds-studiosity .vd-mark--close { border-left-color: var(--cu-close); }
.ds-studiosity .vd-mark--ext { background: repeating-linear-gradient(to bottom, var(--cu-ext) 0 4px, transparent 4px 7px); }
.ds-studiosity .vd-strip__chip { border-left-color: var(--cu-due); }
.ds-studiosity .vd-strip__chip--close { border-left-color: var(--cu-close); }
.ds-studiosity .vd-strip__chip--ext {
  border-image: repeating-linear-gradient(to bottom, var(--cu-ext) 0 4px, transparent 4px 7px) 0 0 0 4 / 0 0 0 4px; }

/* Card padding, the rest (31 Oct 2026, Nick): the folders are a fixed 300px, so they take a smaller step; the
   assessment sheets and the student page's tabs and review bar follow the shared sides */
.ds-studiosity .vd-folder__front { padding-left: 24px; padding-right: 24px; }
.ds-studiosity .vd-assign-card { padding-left: var(--ds-card-pad-x); padding-right: var(--ds-card-pad-x); }
@media (max-width: 575.98px) {
  .ds-studiosity { --ds-card-pad-y: 20px; --ds-card-pad-x: 20px; }
  .ds-studiosity .vd-folder__front { padding-left: 20px; padding-right: 20px; }
}


/* ── Every modal looks like the course modal (31 Oct 2026, Nick: "all modals should have on brand styling") ──
   The course modal set the look: the page's cream, no coloured header band, a display title in ink, a round
   close at hit size, even 32px padding, a footer on the same ground, and the soft mist scrim. The How it works
   modal and the decision dialog now share it; the course modal keeps only its width and folder code tab. The
   scrim is the website's mist at 75%, so the page steps back without going dark (Nick chose mist over slate at
   50% for brightness; the modal's own shadow carries the separation). The close keeps Bootstrap's own cross. */
.ds-studiosity .modal-content { background: var(--ds-page); border: 0; border-radius: var(--ds-radius-lg);
  box-shadow: var(--ds-shadow-modal); overflow: hidden; }
.ds-studiosity .modal-header { background: transparent; color: var(--ds-ink); border-bottom: 0; align-items: flex-start;
  padding: 32px 32px 8px; }
.ds-studiosity .modal-title { font-family: var(--ds-display); font-weight: 500; font-size: 2rem; line-height: 1.15;
  color: var(--ds-ink); text-wrap: balance; }
.ds-studiosity .modal-header .ds-close { margin: -8px -8px 0 auto; }
.ds-studiosity .modal-body { padding: 8px 32px 32px; }
.ds-studiosity .modal-footer { background: transparent; border-top: 0; padding: 0 32px 32px; gap: 12px; }
.ds-studiosity .modal-footer > * { margin: 0; }
.ds-studiosity .modal-backdrop.show { background: var(--ds-mist); opacity: 0.75; }
@media (max-width: 575.98px) {
  .ds-studiosity .modal-header { padding: 24px 20px 8px; }
  .ds-studiosity .modal-body { padding: 8px 20px 24px; }
  .ds-studiosity .modal-footer { padding: 0 20px 24px; }
  .ds-studiosity .modal-title { font-size: 1.625rem; }
}
/* Inside a modal, a section heading steps down from the title, and boxed content sits on manila */
.ds-studiosity .modal-body h3 { font-family: var(--ds-display); font-weight: 500; font-size: 1.75rem; }
.ds-studiosity .validation-how-it-works-modal__formula { background: var(--proto-manila-back); border: 0; border-radius: var(--ds-radius-sm); }
/* How Validate works, the report's key (2 Nov 2026, Nick): each signal by its tab's name, as a mono eyebrow, then
   Eureka's description, then the mark it draws on the essay, drawn as on the tab */
.ds-studiosity .validation-how-it-works-modal .hiw-title { margin: var(--proto-space-group) 0 var(--proto-space-related);
  font-size: 1.25rem; }
.ds-studiosity .hiw-signals { margin: 0 0 var(--proto-space-group); }
.ds-studiosity .hiw-signal { padding: var(--proto-space-related) 0; border-top: 1px solid var(--ds-line); }
.ds-studiosity .hiw-signal__k { margin: 0 0 6px; }
.ds-studiosity .hiw-signal__desc { margin: 0 0 10px; }
.ds-studiosity .hiw-signal__mark { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--ds-graphite);
  font-size: 0.875rem; }
.ds-studiosity .hiw-signal__sample { flex: none; width: 78px; height: 21px; overflow: visible; }
.ds-studiosity .validation-how-it-works-modal__formula { text-align: left; font-weight: 400; }
/* The example's code tab in ink, like the example banner, so it reads as the example at once (1 Nov 2026, Nick) */
.ds-studiosity .vd-course-modal__code.is-example { background: var(--ds-ink); color: var(--ds-page); }
.ds-studiosity .vd-course-modal .modal-header + .modal-body .vd-assign > .vd-assign-grid:first-child { margin-top: 16px; }
/* The first-time line under Your courses (1 Nov 2026, Nick), in the same voice as the example modal's line */
.ds-studiosity .vd-courses__hint { flex-basis: 100%; margin: 8px 0 0; color: var(--ds-graphite); font-size: 1rem; }
/* Coming up and Quick links are shorter (1 Nov 2026, Nick), so Your courses starts inside the first screen on a
   laptop. 256px still holds three Coming up rows; more rows scroll inside the card, as before */
/* Quick links has three open rows (2 Nov 2026, Nick: the squeezed rows felt congested): How Validate works, Educator
   FAQs and Accommodations. It grows to fit them and sets the row's height; Coming up takes that height but never
   grows for its own list, which still scrolls inside it */
.ds-studiosity .vd-top__row { gap: var(--proto-space-cards); }
.ds-studiosity .vd-box.vd-links { height: auto; min-height: 256px; }
.ds-studiosity .vd-box.vd-up { height: auto; min-height: 256px; contain: size; }
.ds-studiosity .vd-links__link { padding-top: var(--proto-space-row); padding-bottom: var(--proto-space-row); }
/* The welcome video is a Card (2 Nov 2026, Nick): the card corner and the card's extruded shadow, so it stands off
   the page. One shadow for every card whatever its colour, scaled only by size, as the website's design system
   has it (2 Nov 2026, Nick). Before it plays it's one still and one flat play button, with none of the player's
   controls; a close button sits top right */
.ds-studiosity .vd-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--ds-radius-md);
  background: var(--ds-ink); box-shadow: var(--ds-shadow-extruded); }
.ds-studiosity .vd-video__close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.ds-studiosity .vd-video iframe, .ds-studiosity .vd-video__play { display: block; width: 100%; height: 100%;
  border: 0; border-radius: inherit; }
.ds-studiosity .vd-video__play { position: relative; padding: 0; overflow: hidden; background: none; cursor: pointer; }
.ds-studiosity .vd-video__poster { display: block; width: 100%; height: 100%; object-fit: cover; }
.ds-studiosity .vd-video__btn { position: absolute; top: 50%; left: 50%; display: inline-flex; align-items: center;
  justify-content: center; width: 72px; height: 72px; border-radius: var(--ds-radius-full);
  background: var(--ds-page); transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.ds-studiosity .vd-video__btn .icon { width: 32px; height: 32px; margin-left: 4px; fill: var(--ds-teal); }
.ds-studiosity .vd-video__play:hover .vd-video__btn { transform: translate(-50%, -50%) scale(1.06); }
/* The focus ring goes on the card, outside its corner, as for other cards */
.ds-studiosity .vd-video__play:focus-visible { outline: 0; box-shadow: none !important; }
.ds-studiosity .vd-video:has(.vd-video__play:focus-visible) { outline: 2px solid var(--ds-focus-inner);
  box-shadow: 0 0 0 4.5px var(--ds-focus-outer); }
@media (prefers-reduced-motion: reduce) { .ds-studiosity .vd-video__btn { transition: none; } }
.ds-studiosity .validation-how-it-works-modal .vd-video { margin-bottom: 24px; box-shadow: none; }
/* ── The landing's two columns (2 Nov 2026, Nick) ──────────────────────────────────────────────────────────────
   One reading order: welcome, Coming up, Your courses, Quick links. First time, a side column holds what's
   temporary, the welcome video and the turn-on card; it stays on screen as the page scrolls, its top in line
   with the heading. It only sticks when the window is tall enough to show all of it, or its button would hide
   below the fold. Below 992px the columns stack: the video follows the welcome, the turn-on card goes last. */
.ds-studiosity .vd-layout.has-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px);
  column-gap: var(--proto-space-section); align-items: start; }
.ds-studiosity .vd-side { align-self: stretch; padding-top: 64px; }
.ds-studiosity .vd-side__stick { display: flex; flex-direction: column; gap: var(--proto-space-cards); }
@media (min-height: 760px) {
  .ds-studiosity .vd-side__stick { position: sticky; top: var(--proto-space-cards); }
}
.ds-studiosity .vd-side .vd-welcome-card--teal { margin: 0; }
@media (max-width: 991.98px) {
  /* Stacked, every section takes the full width (2 Nov 2026: the desktop grid's align-items: start carried over,
     so each section shrank to its content, and Coming up, which ignores its content's size, collapsed to 64px) */
  .ds-studiosity .vd-layout.has-side { display: flex; flex-direction: column; align-items: stretch; }
  .ds-studiosity .vd-layout.has-side .vd-main, .ds-studiosity .vd-side, .ds-studiosity .vd-side__stick {
    display: contents; }
  .ds-studiosity .vd-layout.has-side .vd-welcome-row { order: -3; }
  .ds-studiosity .vd-layout.has-side .vd-welcome-line { order: -2; }
  .ds-studiosity .vd-side .vd-video { order: -1; max-width: 480px; margin-bottom: var(--proto-space-section); }
  .ds-studiosity .vd-side .vd-welcome-card--teal { order: 10; margin-bottom: var(--proto-space-section); }
  /* Quick links in the side column (video closed) takes its usual place after the courses */
  .ds-studiosity .vd-side .vd-more { order: 5; }
}
/* ── The course list arriving (2 Nov 2026, Nick) ──────────────────────────────────────────────────────────────
   Before Validate is on, the LMS's course list comes with the login: a short loading screen, then, for a slow
   LMS, a folder-shaped placeholder that shimmers until the real folders arrive, one after another. No motion
   with reduced motion: the bar sits still and the folders just appear. */
.ds-studiosity .vd-loading { display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--proto-space-group); min-height: 60vh; }
.ds-studiosity .vd-loading__mark { position: relative; width: 200px; height: 4px; overflow: hidden;
  border-radius: var(--ds-radius-full); background: var(--ds-line); }
.ds-studiosity .vd-loading__bar { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit;
  background: var(--ds-teal); animation: vd-loading 1.2s ease-in-out infinite; }
@keyframes vd-loading { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.ds-studiosity .vd-loading__text { margin: 0; font-family: var(--ds-display); font-size: 1.5rem; font-weight: 500;
  color: var(--ds-ink-display); }
.ds-studiosity .vd-folder.is-finding { cursor: default; }
/* The placeholder is recessed, not extruded (2 Nov 2026, Nick: it "looks clickable"): a folder-shaped hollow
   pressed into the page, the website's recessed tier, part of the surface rather than something put forward.
   No manila, no lift on hover, its words in graphite. The shimmer runs inside the hollow. */
/* Tab and body are one SVG hollow, so the shading runs round the whole outline with no seam at the tab. Its
   depth matches --ds-shadow-recessed-sm: a warm shade on the inner top-left and the lit edge on the inner
   bottom-right (3 Nov 2026, the two-sided recess). */
.ds-studiosity .vd-folder__hollow { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%;
  overflow: visible; }
.ds-studiosity .vd-folder__hollow g rect { fill: var(--ds-page); }
.ds-studiosity .vd-folder__sheen-edge { stop-color: var(--ds-raised); stop-opacity: 0; }
.ds-studiosity .vd-folder__sheen-mid { stop-color: var(--ds-raised); stop-opacity: 0.8; }
.ds-studiosity .vd-folder__hollow-body { height: calc(100% - 24px); }
.ds-studiosity .vd-folder__hollow-shade { flood-color: rgb(58 46 26); flood-opacity: 0.16; }
.ds-studiosity .vd-folder__hollow-lit { flood-color: var(--ds-lit-edge); flood-opacity: 1; }
.ds-studiosity .vd-folder.is-finding .vd-folder__front, .ds-studiosity .vd-folder.is-finding:hover .vd-folder__front {
  overflow: hidden; background: transparent; box-shadow: none !important; transform: none !important; }
.ds-studiosity .vd-folder.is-finding .vd-folder__name, .ds-studiosity .vd-folder.is-finding .vd-folder__state {
  color: var(--ds-graphite); }
.ds-studiosity .vd-folders li.is-arriving { animation: vd-arrive 420ms ease both;
  animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes vd-arrive { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .ds-studiosity .vd-loading__bar { animation: none; width: 100%; opacity: 0.5; }
  .ds-studiosity .vd-folder__hollow-sheen { display: none; }
  .ds-studiosity .vd-folders li.is-arriving { animation: none; }
}
/* A course from the LMS with nothing on Validate yet: one line and the way to turn it on */
.ds-studiosity .vd-off-empty { display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--proto-space-action); max-width: 560px; padding: var(--proto-space-related) 0; }
/* Video closed: Quick links in the side column, rows stacked */
.ds-studiosity .vd-side .vd-more { margin-bottom: 0; }
@media (min-width: 992px) {
  .ds-studiosity .vd-side .vd-more .vd-links ul { display: block; }
  .ds-studiosity .vd-side .vd-more .vd-links li + li { border-top: 1px solid var(--ds-line); }
}
/* Coming up stands alone at the top now; Quick links closes the page, its rows side by side across the width */
.ds-studiosity .vd-top__row { grid-template-columns: minmax(0, 1fr); }
.ds-studiosity .vd-more { margin-bottom: var(--proto-space-section); }
.ds-studiosity .vd-more .vd-box.vd-links { min-height: 0; }
/* Once Validate is on (2 Nov 2026, Nick): Quick links moves back up beside Coming up, a third of the row, its
   rows stacked again; the two cards share the row's height. Below 992px it stays at the foot, after the courses
   (the reading order in the markup). Explicit rows, so nothing else is auto-placed into the gap. */
@media (min-width: 992px) {
  .ds-studiosity .vd-layout:not(.has-side) .vd-main { display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); column-gap: var(--proto-space-cards); }
  .ds-studiosity .vd-layout:not(.has-side) .vd-main > * { grid-column: 1 / -1; }
  .ds-studiosity .vd-layout:not(.has-side) .vd-main > .vd-welcome-row { grid-row: 1; }
  .ds-studiosity .vd-layout:not(.has-side) .vd-main > .vd-welcome-line { grid-row: 2; }
  .ds-studiosity .vd-layout:not(.has-side) .vd-main > .vd-top { grid-column: 1; grid-row: 3;
    display: flex; flex-direction: column; }
  .ds-studiosity .vd-layout:not(.has-side) .vd-top__row { flex: 1 1 auto; }
  .ds-studiosity .vd-layout:not(.has-side) .vd-main > .vd-more { grid-column: 2; grid-row: 3; margin-bottom: 28px; }
  .ds-studiosity .vd-layout:not(.has-side) .vd-main > .vd-courses { grid-row: 4; }
  .ds-studiosity .vd-layout:not(.has-side) .vd-more .vd-box.vd-links { height: 100%; min-height: 256px; }
  .ds-studiosity .vd-layout:not(.has-side) .vd-more .vd-links ul { display: block; }
  .ds-studiosity .vd-layout:not(.has-side) .vd-more .vd-links li + li { border-top: 1px solid var(--ds-line); }
}
@media (min-width: 768px) {
  .ds-studiosity .vd-more .vd-links ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    column-gap: var(--proto-space-cards); }
  .ds-studiosity .vd-more .vd-links li + li { border-top: 0; }
}
/* How to turn on Validate (2 Nov 2026, Nick): the set-up steps in the platform's dialog. Numbered steps in teal
   circles, a Title and its line, the settings pills where the step is a choice; the shortcut is labelled */
.ds-studiosity .vd-guide { display: grid; gap: var(--ds-card-pad-y); counter-reset: guide; }
.ds-studiosity .vd-guide__step { position: relative; padding-left: 48px; counter-increment: guide; }
.ds-studiosity .vd-guide__step::before { content: counter(guide); position: absolute; top: 0; left: 0; display: flex;
  align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--ds-radius-full);
  background: var(--ds-teal); color: var(--ds-paper); font-family: var(--ds-body); font-weight: 500; }
.ds-studiosity .vd-guide .vd-guide__title { margin: 4px 0; font-size: 1.25rem; line-height: 1.2; }
.ds-studiosity .vd-guide__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ds-studiosity .vd-guide-modal .modal-footer { gap: 8px 16px; }
.ds-studiosity .vd-guide__skip { flex-basis: 100%; margin: 0; text-align: right; }

/* ── Studiosity inside the LMS (2 Nov 2026, Nick): the set-up wizard and the configured box, in an LMS frame.
   The LMS rules: no header or footer, constrained width, flat and light (a hairline, no extruded shadow), no
   full-page modals ─────────────────────────────────────────────────────────────────────────────────────────── */
.ds-studiosity .lti-page { margin: 0; padding: var(--ds-card-pad-y); background: var(--ds-page); }
.ds-studiosity .lti { max-width: 760px; margin: 0 auto; }
.ds-studiosity .lti-card { padding: var(--ds-card-pad-y) var(--ds-card-pad-x); border: 1px solid var(--ds-line);
  border-radius: var(--ds-radius-md); background: var(--ds-page); }
.ds-studiosity .lti-card--center { text-align: center; }
.ds-studiosity .lti-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.ds-studiosity .lti-title { margin: 0 0 8px; font-family: var(--ds-display); font-size: 1.5rem; font-weight: 500;
  color: var(--ds-ink-display); }
.ds-studiosity .lti-logo { flex: none; width: 7.5rem; margin-top: 4px; color: var(--ds-ink); }
.ds-studiosity .lti-logo svg { display: block; width: 100%; height: auto; }
/* Set-up, one screen (2 Nov 2026, Nick, "C, simpler"): two questions, each a segmented control of native radios
   recessed into the card, the chosen one raised; the stage bar under the levels in the chosen level's ink, from the
   settings badges; one sentence on a raised panel. The card measures its own width, so the five levels stack into
   a list wherever the LMS frame is narrow, whatever the window */
.ds-studiosity .lti-card { container-type: inline-size; }
.ds-studiosity .lti-head + .lti-q { margin-top: var(--proto-space-lead); }
/* Two decisions, divided by a hairline (2 Nov 2026, Nick) */
.ds-studiosity .lti-q + .lti-q { margin-top: var(--proto-space-group); padding-top: var(--proto-space-group);
  border-top: 1px solid var(--ds-line); }
/* The decision's name as a mono eyebrow, like the report's signal tabs */
.ds-studiosity .lti-q__label { margin: 0 0 4px; }
.ds-studiosity .lti-seg { display: grid; gap: 4px; padding: 4px; border-radius: var(--ds-radius-sm); background: var(--ds-raised);
  box-shadow: var(--ds-shadow-field-in); }  /* a track you choose inside: the field step of the recess */
.ds-studiosity .lti-seg--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ds-studiosity .lti-seg--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ds-studiosity .lti-seg__opt { position: relative; display: flex; align-items: center; justify-content: center;
  min-height: var(--hit-btn); padding: 6px 4px; border-radius: var(--proto-radius-chip); cursor: pointer;
  font-weight: 700; font-size: 0.875rem; line-height: 1.15; text-align: center; }
.ds-studiosity .lti-seg__opt:hover { background: rgb(255 255 255 / 0.5); }
.ds-studiosity .lti-seg__input { position: absolute; opacity: 0; pointer-events: none; }
/* The chosen one is its badge (2 Nov 2026, Nick), filling the whole cell, flush in the track: no hover box around
   it ("sits awkwardly inside a white hover box") */
.ds-studiosity .lti-seg__opt .badge { position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: center; min-height: 0; padding: 4px 8px; font-size: 0.875rem; line-height: 1.15; white-space: normal; }
.ds-studiosity .lti-seg__opt:has(.lti-seg__input:checked):hover { background: transparent; }
.ds-studiosity .lti-seg__opt:has(.lti-seg__input:focus-visible) { outline: 2px solid var(--ds-focus-inner);
  box-shadow: 0 0 0 4.5px var(--ds-focus-outer); }
.ds-studiosity .lti-bar { --lv-ink: var(--ds-ink); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px;
  margin-top: 14px; }
.ds-studiosity .lti-bar i { height: 6px; border-radius: var(--ds-radius-full); background: var(--ds-line); }
.ds-studiosity .lti-bar i.is-ai { background: var(--lv-ink); }
.ds-studiosity .lti-bar span { color: var(--ds-graphite); font-size: 0.75rem; line-height: 1.2; }
/* the settings badges' inks, so the bar matches the badge the educator will see on the course */
.ds-studiosity .lti-bar[data-ai-policy="AI Planning"] { --lv-ink: #2e5524; }
.ds-studiosity .lti-bar[data-ai-policy="AI Collaboration"] { --lv-ink: #4b3a8a; }
.ds-studiosity .lti-bar[data-ai-policy="Full AI"] { --lv-ink: #74470f; }
.ds-studiosity .lti-bar[data-ai-policy="AI Exploration"] { --lv-ink: #86304f; }
/* Each decision is headed by what it means, changing with the choice (2 Nov 2026, Nick); the official wording
   sits quietly under the control */
.ds-studiosity .lti-says { min-height: 2.6em; margin: 0 0 14px; font-family: var(--ds-display); font-size: 1.25rem;
  font-weight: 500; line-height: 1.3; }
.ds-studiosity .lti-desc { margin: 12px 0 0; color: var(--ds-graphite); font-size: 0.875rem; line-height: 1.45; }
.ds-studiosity .lti-small { margin: var(--proto-space-related) 0 0; color: var(--ds-graphite); font-size: 0.8125rem; }
.ds-studiosity .lti-q + .lti-small { margin-top: var(--proto-space-group); }
/* On a phone the frame and the card take less padding, so the three thresholds keep a row */
@media (max-width: 575.98px) {
  .ds-studiosity .lti-page { padding: 12px; }
  .ds-studiosity .lti-card { padding: 20px 16px; }
}
@container (max-width: 520px) {
  .ds-studiosity .lti-seg--5 { grid-template-columns: minmax(0, 1fr); }
  .ds-studiosity .lti-seg--5 .lti-seg__opt { justify-content: flex-start; padding-left: 14px; text-align: left; }
  .ds-studiosity .lti-seg--5 .lti-seg__opt .badge { justify-content: flex-start; padding-left: 13px; }
  .ds-studiosity .lti-seg--3 .lti-seg__opt { font-size: 0.8125rem; }
  .ds-studiosity .lti-title { font-size: 1.25rem; }
}
.ds-studiosity .lti-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: var(--ds-card-pad-y); }
.ds-studiosity .lti-card--center .btn { margin-top: 8px; }
.ds-studiosity .lti-status__icon { width: 48px; height: 48px; margin-bottom: 12px; }
.ds-studiosity .lti-status.is-ok .lti-status__icon { fill: var(--ds-green); }
.ds-studiosity .lti-status.is-off .lti-status__icon { fill: var(--ds-graphite); }
.ds-studiosity .lti-status__meta { margin-top: 8px !important; color: var(--ds-graphite); }
/* Validate is on (2 Nov 2026, Nick): the box Canvas shows on the saved assignment is where the educator should
   want to come into Studiosity, so it's the first-time page's teal card, raised off the LMS page, with the folded
   CTA. The frame is see-through here, so the card sits on the LMS's own page */
.ds-studiosity .lti-page:has(.lti-done) { background: transparent; }
.ds-studiosity .lti-done { display: flex; flex-direction: column; align-items: flex-start; padding: calc(var(--ds-card-pad-y) + 8px) var(--ds-card-pad-x); border-radius: var(--ds-radius-md);
  background: var(--ds-teal); color: var(--ds-paper); box-shadow: var(--ds-shadow-extruded); }
.ds-studiosity .lti-done__text { max-width: 560px; }
.ds-studiosity .lti-done__mark { display: block; width: 6.5rem; margin-bottom: var(--proto-space-lead);
  color: var(--ds-paper); }
.ds-studiosity .lti-done__mark svg { display: block; width: 100%; height: auto; }
.ds-studiosity .lti-done__title { margin: 0 0 var(--proto-space-group); font-family: var(--ds-display); font-size: 1.75rem; font-weight: 500;
  line-height: 1.2; color: var(--ds-paper); text-wrap: balance; }
.ds-studiosity .lti-done__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--proto-space-related); }
.ds-studiosity .lti-done p { color: rgb(255 255 255 / 0.86); }
.ds-studiosity .lti-done > .btn { flex: none; margin-top: var(--proto-space-action); }
.ds-studiosity .vd-links__out { width: 16px; height: 16px; fill: var(--ds-graphite); }
/* Not built yet: in the list, faded so it's plainly not a link, "Coming soon" in bold after the description
   (2 Nov 2026, Nick) */
.ds-studiosity .vd-links__link.is-soon { opacity: 0.55; cursor: default; }
.ds-studiosity .vd-links__soon { color: var(--ds-ink); font-weight: 700; }

/* Coming up hover, the Quick links pattern (2 Nov 2026, Nick): no box; the name takes the pen's underline and the
   date's mark widens, as Quick links' icon rises */
.ds-studiosity .vd-soon__row:hover, .ds-studiosity .vd-strip__chip:hover { background: none; }
.ds-studiosity .vd-soon__row .vd-mark { transition: transform 0.2s ease; }
.ds-studiosity .vd-soon__row:hover .vd-mark { transform: scaleX(1.75); }
.ds-studiosity :is(.vd-soon__row, .vd-strip__chip):hover .vd-soon__name,
.ds-studiosity .vd-strip__chip:hover .vd-strip__name { text-decoration: underline; text-decoration-color: var(--ds-pen);
  text-decoration-thickness: 2px; text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .ds-studiosity .vd-soon__row .vd-mark { transition: none; }
}
/* Days move by the arrows, not a sideways scroll (2 Nov 2026, Nick): the strip hides its overflow and the lanes
   snap, so each step lands on a whole day */
.ds-studiosity .vd-strip { overflow-x: hidden; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; }
.ds-studiosity .vd-strip__day { scroll-snap-align: start; }
.ds-studiosity .vd-strip-nav { display: inline-flex; gap: 2px; margin-left: auto; }
.ds-studiosity .vd-strip-nav + .vd-switch { margin-left: 8px; }
/* Earlier and later days: Flat icon buttons on the ladder (3 Nov 2026, Nick); off at either end */
.ds-studiosity .ds-btn.vd-strip-nav__btn .icon { width: 14px; height: 14px; }
.ds-studiosity .vd-strip-nav__btn:disabled { opacity: 0.3; }

/* Quick links hover, on brand (2 Nov 2026, Nick: the grey fill was "off brand"): no box. The icon's well rises
   under the pointer, from pressed in to the cards' smallest extrusion, the title takes the pen's underline, and
   the chevron steps along. The faded Coming soon row doesn't move */
.ds-studiosity .vd-links__link:hover { background: none; }
.ds-studiosity .vd-links__icon { transition: box-shadow 0.2s ease; }
.ds-studiosity .vd-links__go { transition: transform 0.2s ease; }
.ds-studiosity .vd-links__link:not(.is-soon):hover .vd-links__icon { box-shadow: var(--ds-shadow-extruded-xs); }
.ds-studiosity .vd-links__link:not(.is-soon):hover .vd-links__title { text-decoration: underline;
  text-decoration-color: var(--ds-pen); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.ds-studiosity .vd-links__link:not(.is-soon):hover .vd-links__go { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
  .ds-studiosity .vd-links__icon, .ds-studiosity .vd-links__go { transition: none; }
  .ds-studiosity .vd-links__link:not(.is-soon):hover .vd-links__go { transform: none; }
}


/* ── One scrollbar, everywhere (2 Nov 2026, Nick: "ultra thin") ──────────────────────────────────────────────
   Every scrolling area and the page itself: a 4px pill of mist on a clear track, graphite while held or hovered.
   The custom bar is drawn only where the browser supports it (Chrome, Edge, Safari); setting the standard
   scrollbar-width there would switch Chrome back to its own bar (the bar that ran past the class card's
   corners), so the standard properties are given to Firefox alone, its thinnest bar in the same colours.
   In a rounded card the track stops short of the corners, so the bar never runs past the rounding. */
@supports selector(::-webkit-scrollbar) {
  .ds-studiosity::-webkit-scrollbar, .ds-studiosity ::-webkit-scrollbar { width: 4px; height: 4px; }
  .ds-studiosity::-webkit-scrollbar-track, .ds-studiosity ::-webkit-scrollbar-track,
  .ds-studiosity::-webkit-scrollbar-corner, .ds-studiosity ::-webkit-scrollbar-corner { background: transparent; }
  .ds-studiosity::-webkit-scrollbar-thumb, .ds-studiosity ::-webkit-scrollbar-thumb {
    border-radius: var(--ds-radius-full); background: var(--ds-mist); }
  .ds-studiosity::-webkit-scrollbar-thumb:hover, .ds-studiosity ::-webkit-scrollbar-thumb:hover,
  .ds-studiosity ::-webkit-scrollbar-thumb:active { background: var(--ds-graphite); }
  /* Where a scrolling area meets a rounded edge, its track stops short by that radius (2 Nov 2026, Nick: "should
     sit within the card rounded corners"), at every breakpoint: the class card (and its drawer) top and bottom,
     the modals' bottom corners, Coming up's list at the card's bottom-right, the Days strip (Coming up's
     sideways scroller) at both bottom corners, and the course menu's bottom corners */
  .ds-studiosity .class-side::-webkit-scrollbar-track { margin: var(--ds-radius-md) 0; }
  .ds-studiosity .modal-body::-webkit-scrollbar-track { margin-bottom: var(--ds-radius-lg); }
  .ds-studiosity .vd-up__scroll::-webkit-scrollbar-track { margin-bottom: var(--ds-radius-md); }
  .ds-studiosity .vd-strip::-webkit-scrollbar-track { margin: 0 var(--ds-radius-md); }
  .ds-studiosity .course-select__dropdown::-webkit-scrollbar-track { margin-bottom: var(--ds-radius-sm); }
}
@supports not selector(::-webkit-scrollbar) {
  .ds-studiosity, .ds-studiosity * { scrollbar-width: thin; scrollbar-color: var(--ds-mist) transparent; }
}

/* ── Settings pills: AI use level and Validity threshold (1 Nov 2026, Nick: "important… very specific colours,
   used in the AI setting screens") ─────────────────────────────────────────────────────────────────────────
   AI use keeps the hue per level that Eureka (bendigo colours.rb) and WF+ (data/validate.ts) already share:
   1 blue, 2 green, 3 violet, 4 amber, 5 pink. Redrawn on brand: muted, slightly earthy tints that read as
   labels, never as status (the sage is not validate-green, the sand is not the yellow CTA), equal weight with
   no light-to-dark ramp, as AIAS v2 asks (no implied hierarchy), and deep text in each level's own hue,
   6.2–7.1:1. A hairline in the same hue gives the edge on cream.
   Threshold is a different kind of setting (how strict, not which level), so it takes no hue: ink, by weight.
   Essential an outline, Comprehensive a heavier outline on a light tint, Definitive solid ink. */
.ds-studiosity .badge[data-ai-policy], .ds-studiosity .badge[data-threshold] {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 12px; border: 1px solid transparent;
  border-radius: var(--ds-radius-full); font-family: var(--ds-body); font-size: 0.875rem; font-weight: 700; letter-spacing: 0;
  line-height: 1.2; }
.ds-studiosity .badge[data-ai-policy="No AI"] { background: #dbe7f0; border-color: #a9c3d8; color: #1f4d72 !important; }
.ds-studiosity .badge[data-ai-policy="AI Planning"] { background: #dfe8d5; border-color: #b3c6a2; color: #2e5524 !important; }
.ds-studiosity .badge[data-ai-policy="AI Collaboration"] { background: #e4def0; border-color: #bfb3dc; color: #4b3a8a !important; }
.ds-studiosity .badge[data-ai-policy="Full AI"] { background: #f1e2c8; border-color: #d9bd8c; color: #74470f !important; }
.ds-studiosity .badge[data-ai-policy="AI Exploration"] { background: #f2dce5; border-color: #ddb0c3; color: #86304f !important; }
.ds-studiosity .badge[data-threshold="Essential"] { background: transparent; border: 1px solid var(--ds-ink);
  color: var(--ds-ink) !important; }
.ds-studiosity .badge[data-threshold="Comprehensive"] { background: var(--ds-paper); border: 2px solid var(--ds-ink);
  color: var(--ds-ink) !important; padding: 3px 11px; }
.ds-studiosity .badge[data-threshold="Definitive"] { background: var(--ds-ink); border: 2px solid var(--ds-ink);
  color: var(--ds-page) !important; padding: 3px 11px; }

/* Settings badges, pressed in (1 Nov 2026, Nick's Figma sketch: gradient fill, gradient keyline, inner shadow on
   the fill). The inverse of the raised cards, lit from the same top left: the face is debossed into the paper,
   a sheen runs light to deep left to right, the rim darkens along the top and catches light along the bottom.
   8px corners (the chip scale; the round status pill stays round), medium weight on the gradient. Each level
   sets five values; text stays 5.4:1 or better on the deep end. Plain CSS, one class pattern, no images. */
.ds-studiosity .badge[data-ai-policy], .ds-studiosity .badge[data-threshold] {
  --b-light: #fbfaf6; --b-deep: #efebe2; --b-rim-top: #b9b1a3; --b-rim-bottom: #ffffff; --b-ink: var(--ds-ink);
  min-height: 28px; padding: 4px 12px; border: 1.5px solid transparent; border-radius: var(--proto-radius-chip);
  background: linear-gradient(100deg, var(--b-light), var(--b-deep)) padding-box,
    linear-gradient(180deg, var(--b-rim-top), var(--b-rim-bottom)) border-box;
  box-shadow: var(--ds-shadow-recessed-2xs);
  color: var(--b-ink) !important; font-weight: 500; }
.ds-studiosity .badge[data-ai-policy="No AI"] { --b-light: #e6eff6; --b-deep: #cddeea; --b-rim-top: #9fbad0;
  --b-rim-bottom: #f1f7fb; --b-ink: #1f4d72; }
.ds-studiosity .badge[data-ai-policy="AI Planning"] { --b-light: #e9f0e1; --b-deep: #d2ddc4; --b-rim-top: #a3b78f;
  --b-rim-bottom: #f3f7ee; --b-ink: #2e5524; }
.ds-studiosity .badge[data-ai-policy="AI Collaboration"] { --b-light: #ece7f5; --b-deep: #d6cdea; --b-rim-top: #ad9fd2;
  --b-rim-bottom: #f5f2fa; --b-ink: #4b3a8a; }
.ds-studiosity .badge[data-ai-policy="Full AI"] { --b-light: #f6ead6; --b-deep: #e8d2ad; --b-rim-top: #c9a76f;
  --b-rim-bottom: #fbf4e8; --b-ink: #74470f; }
.ds-studiosity .badge[data-ai-policy="AI Exploration"] { --b-light: #f6e6ec; --b-deep: #e8c9d6; --b-rim-top: #cf98b0;
  --b-rim-bottom: #fbf1f5; --b-ink: #86304f; }
/* Threshold: one ink family, strictness by weight. Essential a light face with a graphite rim; Comprehensive a
   heavier ink rim; Definitive a solid ink face, cream text, the deepest press */
.ds-studiosity .badge[data-threshold="Essential"] { --b-rim-top: #8a8378; --b-rim-bottom: #e9e4da; }
.ds-studiosity .badge[data-threshold="Comprehensive"] { --b-rim-top: var(--ds-ink); --b-rim-bottom: var(--ds-graphite);
  border-width: 2px; padding: 3.5px 11.5px; }
.ds-studiosity .badge[data-threshold="Definitive"] { --b-light: #3a3f3d; --b-deep: var(--ds-ink); --b-rim-top: #000000;
  --b-rim-bottom: #5a605e; --b-ink: var(--ds-page); border-width: 2px; padding: 3.5px 11.5px;
  box-shadow: inset 0 1.5px 3px rgb(0 0 0 / 0.5), inset 0 -1px 0 rgb(255 255 255 / 0.12); }
.ds-studiosity .badge[data-ai-policy], .ds-studiosity .badge[data-threshold] { border-radius: var(--proto-radius-chip) !important; }
/* Thresholds in stone, same construction as the AI badges (1 Nov 2026, Nick: the heavy ink rim read as another
   component). One warm neutral, kept apart from the five AI hues; strictness by depth, which is honest here
   because a threshold is a scale. 1.5px gradient rim on all three; text 5.2:1 or better. */
.ds-studiosity .badge[data-threshold="Essential"] { --b-light: #f1ece3; --b-deep: #e6e0d4; --b-rim-top: #b5ab98;
  --b-rim-bottom: #faf7f1; --b-ink: #3d3830; border-width: 1.5px; padding: 4px 12px;
  box-shadow: inset 0 1.5px 2px rgb(40 30 15 / 0.18), inset 0 -1px 0 rgb(255 255 255 / 0.45); }
.ds-studiosity .badge[data-threshold="Comprehensive"] { --b-light: #dcd4c4; --b-deep: #c9bfac; --b-rim-top: #9a8f7b;
  --b-rim-bottom: #ece6da; --b-ink: #2e2a24; border-width: 1.5px; padding: 4px 12px;
  box-shadow: inset 0 1.5px 2px rgb(40 30 15 / 0.2), inset 0 -1px 0 rgb(255 255 255 / 0.4); }
.ds-studiosity .badge[data-threshold="Definitive"] { --b-light: #6e6556; --b-deep: #554d40; --b-rim-top: #3a342b;
  --b-rim-bottom: #8f8573; --b-ink: #f7f3ec; border-width: 1.5px; padding: 4px 12px;
  box-shadow: inset 0 1.5px 3px rgb(20 15 8 / 0.4), inset 0 -1px 0 rgb(255 255 255 / 0.15); }
/* Thresholds raised, AI levels pressed (1 Nov 2026, Nick: two categories, two reliefs). The threshold badges
   flip the inner shadow to a drop shadow, extruded like the cards under the same top-left light: a soft cast
   below right, a lit edge above left, and the rim lighter on top, darker below. The AI badges stay pressed in. */
.ds-studiosity .badge[data-threshold] { box-shadow: var(--ds-shadow-extruded-xs) !important; }
.ds-studiosity .badge[data-threshold="Essential"] { --b-rim-top: #faf7f1; --b-rim-bottom: #b5ab98;
  }
.ds-studiosity .badge[data-threshold="Comprehensive"] { --b-rim-top: #ece6da; --b-rim-bottom: #9a8f7b;
  }
.ds-studiosity .badge[data-threshold="Definitive"] { --b-light: #6e6556; --b-deep: #554d40; --b-rim-top: #8f8573;
  --b-rim-bottom: #3a342b; }

/* ── Buttons by job (3 Nov 2026, Nick): one material, priority by height ────────────────────────────────────────
   Everything is paper on the desk: the higher a control sits, the more it matters; pressed into the page means on,
   chosen or current. Things you open (folders, papers, Quick links rows) are objects, not buttons, and keep their
   own rules above. Controls, highest first:
     1 Fold (.btn-primary): the one way into the page's main tool. Once a page at most, often none.
     2 Raised (.ds-btn): the likely next step inside a tool. The Whole class button's look.
     3 Flat (.ds-btn--flat): any other action beside it. Same shape, no shadow until hover, then it rises to Raised.
     4 Link (.btn-link, an a in a sentence): an action that's part of the text. Never standalone.
   On (aria-pressed="true" or .is-on): pressed in. The educator's decision keeps its blue (.sa-choice.is-on).
   Size sets the corner and the depth, so a small button is the same object, smaller:
     48px (--hit-btn): corner sm 12, raised field-out, hover extruded-sm, pressed field-in
     32px (.ds-btn--sm, dense toolbars): corner chip 8, raised extruded-xs, hover field-out, pressed recessed-xs
     20 to 28px (badges, grid cells): corner xs 6, pressed recessed-2xs; too small to click as a button
   Icon-only (.ds-btn--icon) is square at the same sizes: Raised for Home and Help, Flat for close. */
/* Shadows from the surface (3 Nov 2026, Nick): a button keeps its own fill (cream), but its shade and lit edge are
   the colour it sits on taken darker and lighter, so on a darker cream or on teal it rises from that surface
   instead of glowing on it. The rule is that the styling fits the surface, not that the button matches it. A
   container that isn't the page's cream sets --surface. On a picture or
   video there is no one surface to rise from, so no neumorphism: .ds-btn--on-media, a solid tile with one soft
   dark shadow. The geometry is the website's extruded scale; on cream the colours match the tokens */
.ds-studiosity { --surface: var(--ds-page); }
.ds-studiosity .ds-btn, .ds-studiosity .sa-choice {
  --b-shade: color-mix(in srgb, var(--surface), var(--ds-ink-display) 20%);
  --b-lit: color-mix(in srgb, var(--surface), var(--ds-lit-edge) 65%);
  --b-out-48: 3px 5px 10px -4px var(--b-shade), -3px -4px 8px -2px var(--b-lit);
  --b-lift-48: 5px 10px 18px -8px var(--b-shade), -5px -7px 14px -2px var(--b-lit);
  --b-in-48: inset 3px 3px 7px var(--b-shade), inset -3px -3px 7px var(--b-lit);
  --b-out-32: 2px 3px 5px -2px var(--b-shade), -1px -2px 3px -1px var(--b-lit);
  --b-in-32: inset 2px 2px 4px var(--b-shade), inset -2px -2px 4px var(--b-lit); }
/* The darker the surface, the less white it takes to lift it, and the more its shade must drop to still read
   (3 Nov 2026, Nick: on teal the lit edge was too white and the shade got lost; then a 5% lift was invisible, 0.09 faint). In
   OKLCH the lit edge is the surface's own colour 0.13 lighter, keeping its chroma, so teal lifts to a lighter teal
   rather than toward white; cream caps at the lit edge. The shade drops a fixed 0.15.
   Browsers without relative colour keep the mixes above */
@supports (color: oklch(from red l c h)) {
  .ds-studiosity .ds-btn, .ds-studiosity .sa-choice {
    --b-shade: oklch(from var(--surface) calc(l - 0.15) calc(c * 1.1) h);
    --b-lit: oklch(from var(--surface) min(calc(l + 0.13), 0.995) c h); }
}
.ds-studiosity .ds-btn {
  --b-h: var(--hit-btn); --b-out: var(--b-out-48); --b-out-hover: var(--b-lift-48); --b-in: var(--b-in-48);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--b-h);
  padding: 0 18px; border: 1px solid transparent; border-radius: var(--ds-radius-sm); background: var(--ds-page); box-shadow: var(--b-out);
  color: var(--ds-ink); font-family: var(--ds-body); font-size: 1rem; font-weight: 500; line-height: 1.25;
  text-decoration: none; cursor: pointer; transition: box-shadow 150ms ease, background-color 150ms ease; }
.ds-studiosity .ds-btn .icon { width: 24px; height: 24px; margin: 0; fill: currentColor; }
.ds-studiosity .ds-btn:hover { box-shadow: var(--b-out-hover); color: var(--ds-ink); }
.ds-studiosity .ds-btn:active { box-shadow: var(--b-in); }
/* On presses in, with the course menu's fading outline turned over (3 Nov 2026, Nick, accessibility pass): the
   menu is lit as a raised shape (dark at the foot); a pressed one is dark at the top, where the recess's lip casts
   its shadow. Ink at 55% along the top is 3.7:1 on cream, so the state passes WCAG 1.4.11's 3:1 (the soft inset
   alone is 1.3:1), fading to nothing at the foot. Tried and dropped: a hard graphite lip (harsh), a graphite fill
   (heavy). Two-layer background keeps the corners, as the menu's does */
.ds-studiosity .ds-btn.is-on, .ds-studiosity .ds-btn[aria-pressed="true"],
.ds-studiosity .ds-btn--flat.is-on:hover, .ds-studiosity .ds-btn--flat[aria-pressed="true"]:hover {
  font-weight: 700; box-shadow: var(--b-in);
  background: linear-gradient(var(--ds-page), var(--ds-page)) padding-box,
    linear-gradient(to bottom, rgb(17 21 20 / 0.55), rgb(17 21 20 / 0) 85%) border-box; }
.ds-studiosity .ds-btn--flat { background: transparent; box-shadow: none; }
.ds-studiosity .ds-btn--flat:hover { background: var(--ds-page); box-shadow: var(--b-out); }
.ds-studiosity .ds-btn--sm { --b-h: 32px; --b-out: var(--b-out-32);
  --b-out-hover: var(--b-out-48); --b-in: var(--b-in-32); padding: 0 12px;
  border-radius: var(--proto-radius-chip); font-size: 0.875rem; }
.ds-studiosity .ds-btn--sm .icon { width: 18px; height: 18px; }
.ds-studiosity .ds-btn--icon { width: var(--b-h); padding: 0; }
.ds-studiosity .ds-btn:disabled, .ds-studiosity .ds-btn[aria-disabled="true"] { background: transparent;
  box-shadow: none; color: var(--ds-graphite); cursor: default; }
/* On a picture or video: a solid cream tile and one soft dark shadow, no neumorphism (3 Nov 2026, Nick) */
.ds-studiosity .ds-btn--on-media, .ds-studiosity .ds-btn--on-media:hover { background: var(--ds-raised);
  box-shadow: 0 2px 8px -1px color-mix(in srgb, var(--ds-ink) 40%, transparent); }
.ds-studiosity .ds-btn--on-media:hover { box-shadow: 0 4px 14px -2px color-mix(in srgb, var(--ds-ink) 45%, transparent); }
/* Choose one of a few: Flat buttons in a row, the chosen one pressed in */
.ds-studiosity .ds-switch { display: inline-flex; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .ds-studiosity .ds-btn { transition: none; } }
