/* ============================================================================
   Candidate progress dashboard (MyDashboard.razor) - scoped redesign.
   Everything lives under `.mdash` so it never touches the shared exam-page
   classes. Surfaces use the app's theme-aware Bootstrap and mx tokens (so light
   and dark both work); the coral and amber accents are scoped tokens defined here -
   this file is the token core for the dashboard the same way theme-medax.css is
   for the marketing site: change a value here once, every surface follows.

   Layout, top to bottom (a 2/3 main column + a 1/3 rail, so card edges line up
   down the whole page; every row has one block that ABSORBS the height difference
   - a feed that scrolls or a rail that breathes - so no card is ever a tall void).
   Ordered by what a candidate came to find out, and each fact appears ONCE:
     head   - identity, exam countdown, the ONE orange action (computed: blocker > weakest topic > mock)
     hero   - readiness report (sets the height) | Today: plan, streak, review queue (scrolls)
     row 2  - my courses, blockers first          | your route (its step rows breathe)
     row 3  - mock exams: trend + list (scrolls)  | the For-you feed (scrolls)
     row 4  - exam & tools, full width, four-up; the account links fold away

   Accent system (one logic, not three):
     • signal blue - the primary ACTION, the same blue /exam and /osce use, so the
                     three candidate pages agree on what a primary button looks like
     • coral       - SEMANTIC "needs attention" only (fail badge, low readiness).
                     It is no longer an action colour; it means something.
     • teal        - VERIFIED FACTS ONLY: a pass badge, "✓ Verified", Premium active,
                     "Exam ready", a completed journey stage. Never a link, a button,
                     a selection or a neutral data series - those are blue. If the
                     element would look the same whether or not anything had been
                     confirmed, it is not teal.
     • amber/gold  - time pressure (days-to-go) - never the same colour as "on track".
   Type (Nov 2026, matching the home page): Archivo for titles and the big numbers,
   Inter for body, UI and the small-caps labels; IBM Plex Mono only inside the
   instruments (scores, ages, chart axes). Headings and card shape come from the shared
   --mx-nav-* tokens, so the dashboard reads as the same site as the page before it.
   ========================================================================== */

.mdash {
  --md-serif: var(--mx-font-display);   /* name kept so the rules below need no edit; it is Archivo now */
  --md-mono: var(--mx-font-mono);       /* instruments only */
  --md-label: var(--mx-font-sans);      /* small-caps labels */
  /* Headings in the logo's royal, as on every public page (flips to the light royal on dark). */
  --bs-heading-color: var(--mx-nav-heading);

  /* Coral is purely semantic - "needs attention". Never an action. */
  --md-coral: #FF6A52;
  --md-coral-deep: #D6412E;
  --md-coral-rgb: 255, 106, 82;
  --md-coral-text: var(--md-coral-deep);

  /* One primary action colour, shared with /exam, /osce and the catalogue. */
  --md-action: var(--mx-action);
  --md-action-rgb: 208, 64, 45;
  --md-action-on: var(--mx-action-on);

  /* Course format identity - the colour encodes HOW a course is delivered. */
  --md-fmt: #3A56C8;              --md-fmt-rgb: 58, 86, 200;
  --md-fmt-onsite: #A96C12;       --md-fmt-onsite-rgb: 169, 108, 18;
  --md-fmt-comprehensive: #6B3FBF; --md-fmt-comprehensive-rgb: 107, 63, 191;

  /* Tool-tile icon hues - same three identities the old hub cards used. */
  --md-tool-osce: #3A56C8;    --md-tool-osce-rgb: 58, 86, 200;
  --md-tool-jobs: var(--md-coral-text); --md-tool-jobs-rgb: var(--md-coral-rgb);
  --md-tool-english: #6B3FBF; --md-tool-english-rgb: 107, 63, 191;

  /* Time pressure (days-to-go) - the brand gold, never confused with "verified". */
  --md-amber: var(--mx-gold);
  --md-amber-text: var(--mx-gold-ink);
  --md-amber-rgb: 224, 164, 59;

  --md-teal-rgb: var(--mx-teal-rgb);
  --md-teal-text: var(--mx-teal-ink);

  /* Dark mode needs a gentler gold wash and a stronger card edge - see the two
     overrides below. On navy the same values read far louder than on paper. */
  --md-plan-wash: .13;
  --md-plan-edge: .30;
  --md-edge: var(--bs-border-color);

  --md-radius: 12px;
  --md-radius-sm: var(--mx-nav-card-radius);
  --md-shadow: var(--mx-nav-card-shadow);
  --md-shadow-hover: 0 2px 4px rgba(15, 23, 32, .06), 0 26px 52px -26px rgba(15, 23, 32, .30);
}

/* Dark mode: brighten the accents that carry text/strokes, soften the shadow.
   Mirrors the app's three theme states (system-dark, and explicit dark). */
@media (prefers-color-scheme: dark) {
  :root:not([data-bs-theme="light"]) .mdash {
    --md-coral: #FF7C66;
    --md-coral-text: #FF9683;
    --md-amber-rgb: 232, 178, 74;
    --md-plan-wash: .06;
    --md-plan-edge: .22;
    /* Card bg and page ground sit close in value on navy, so the tiles read as
       floating text. A brighter hairline gives them an edge to sit on. */
    --md-edge: rgba(226, 235, 247, .16);
    /* Format/tool hues lift on navy - the light-mode versions go muddy on a dark ground. */
    --md-fmt: #7FA9FF;              --md-fmt-rgb: 127, 169, 255;
    --md-fmt-onsite: #E0A43B;       --md-fmt-onsite-rgb: 224, 164, 59;
    --md-fmt-comprehensive: #A98AEA; --md-fmt-comprehensive-rgb: 169, 138, 234;
    --md-tool-osce: #7FA9FF;    --md-tool-osce-rgb: 127, 169, 255;
    --md-tool-english: #A98AEA; --md-tool-english-rgb: 169, 138, 234;
    --md-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .6);
    --md-shadow-hover: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 56px -26px rgba(0, 0, 0, .7);
  }
}
:root[data-bs-theme="dark"] .mdash {
  --md-coral: #FF7C66;
  --md-coral-text: #FF9683;
  --md-amber-rgb: 232, 178, 74;
  --md-plan-wash: .06;
  --md-plan-edge: .22;
  --md-edge: rgba(226, 235, 247, .16);
  --md-fmt: #7FA9FF;              --md-fmt-rgb: 127, 169, 255;
  --md-fmt-onsite: #E0A43B;       --md-fmt-onsite-rgb: 224, 164, 59;
  --md-fmt-comprehensive: #A98AEA; --md-fmt-comprehensive-rgb: 169, 138, 234;
  --md-tool-osce: #7FA9FF;    --md-tool-osce-rgb: 127, 169, 255;
  --md-tool-english: #A98AEA; --md-tool-english-rgb: 169, 138, 234;
  --md-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -24px rgba(0, 0, 0, .6);
  --md-shadow-hover: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 56px -26px rgba(0, 0, 0, .7);
}

/* ---- shell + type ------------------------------------------------------- */
.mex-shell.mdash {
  /* Same token as the header and every marketing container, so the dashboard lines
     up with the bar above it instead of sitting 40px wider. */
  max-width: var(--mx-shell);
  margin: 0 auto;
  padding: 2.25rem clamp(1rem, 4vw, 2rem) 4rem;
}
/* MainLayout's <main> caps itself at 1120px and pads 40px a side; under the dashboard
   that beat the shell above (976px of content, 72px of double padding) and every card
   grew tall to compensate. The layout's scoped rule loads last, so this needs the
   extra specificity to win. The dashboard owns its own padding. */
.mx-app > .mx-main:has(> .mdash) { max-width: var(--mx-shell); padding: 0; }
.mdash .mdash-eyebrow {
  font-family: var(--md-label);
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bs-tertiary-color);
  font-weight: 600;
}
.mdash-title {
  font-family: var(--md-serif);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  letter-spacing: -.02em;
  color: var(--bs-heading-color);
  margin: .1rem 0 0;
}
.mdash a {
  color: var(--bs-link-color);
  text-decoration: none;
  font-weight: 600;
}
.mdash a:hover { text-decoration: underline; }

/* Anchors that are COMPONENTS, not links. `.mdash a` above is (0,1,1) and beats a
   lone component class (0,1,0), so every one of these doubles up on the element +
   class to win. Without this the buttons render teal-on-coral (1.1:1, invisible). */
.mdash a.mdash-btn { font-weight: 700; }
.mdash a.mdash-btn--primary, .mdash a.mdash-btn--primary:hover { color: var(--md-action-on); text-decoration: none; }
.mdash a.mdash-btn--outline, .mdash a.mdash-btn--outline:hover { color: var(--bs-heading-color); text-decoration: none; }
.mdash a.mdash-btn--vault, .mdash a.mdash-btn--vault:hover { color: var(--bs-link-color); text-decoration: none; }
.mdash a.mdash-course-open, .mdash a.mdash-course-open:hover { color: var(--bs-heading-color); text-decoration: none; }
.mdash a.mdash-course-open:hover { color: var(--mdc); }
.mdash a.mdash-chip, .mdash a.mdash-chip:hover { color: var(--bs-secondary-color); text-decoration: none; }
.mdash a.mdash-chip:hover { color: var(--bs-heading-color); }
.mdash a.mdash-tool, .mdash a.mdash-tool:hover { color: inherit; text-decoration: none; }

.mdash-chev { white-space: nowrap; }
.mdash-chev::after { content: " →"; display: inline-block; transition: transform .15s ease; }
.mdash-chev:hover::after { transform: translateX(3px); }
.mdash a.mdash-chev:hover { text-decoration: none; }

/* ---- head: identity + the one primary action ---------------------------- */
.mdash-head {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: .9rem 1.4rem;
  margin: 0 0 1.4rem;
}
.mdash-head-text { flex: 1 1 auto; }
.mdash-head-facts { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mdash-head-actions { display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
@media (max-width: 720px) {
  .mdash-head { align-items: flex-start; }
  .mdash-head-actions { width: 100%; }
  .mdash-head-actions .mdash-btn { flex: 1 1 auto; justify-content: center; }
}

.mdash-chip svg { width: 14px; height: 14px; flex: 0 0 auto; opacity: .85; }
.mdash-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .84rem;
  font-weight: 600;
  padding: .42rem .8rem;
  border-radius: 999px;
  color: var(--bs-secondary-color);
  border: 1px solid transparent;
}
.mdash-chip--premium {
  background: rgba(var(--md-teal-rgb), .13);
  color: var(--md-teal-text);
  border-color: rgba(var(--md-teal-rgb), .28);
}
.mdash-chip--dest {
  background: var(--bs-tertiary-bg);
  border-color: var(--md-edge);
}
a.mdash-chip { text-decoration: none; font-weight: 600; color: var(--bs-secondary-color); }
a.mdash-chip:hover {
  background: var(--bs-card-bg);
  box-shadow: var(--md-shadow);
  text-decoration: none;
  color: var(--bs-heading-color);
}

.mdash-btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-weight: 700;
  font-size: .86rem;
  padding: .6rem 1.2rem;
  border-radius: 11px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mdash-btn--primary { background: var(--md-action); color: var(--md-action-on); box-shadow: 0 6px 15px -10px rgba(var(--md-action-rgb), .7); }
.mdash-btn--primary:hover { background: var(--mx-action-hover); color: var(--md-action-on); text-decoration: none; transform: translateY(-1px); box-shadow: 0 9px 20px -10px rgba(var(--md-action-rgb), .75); }
.mdash-btn--outline { background: var(--bs-card-bg); border-color: var(--bs-border-color); color: var(--bs-heading-color); }
.mdash-btn--outline:hover { border-color: var(--bs-secondary-color); color: var(--bs-heading-color); text-decoration: none; }
.mdash-btn--vault {
  background: var(--bs-card-bg);
  border: 1.5px solid rgba(var(--md-teal-rgb), .4);
  color: var(--md-teal-text);
  font-size: .84rem;
  padding: .5rem 1.05rem;
}
.mdash-btn--vault:hover { background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-link-color); text-decoration: none; }
/* Animated arrow shared by the action buttons + the tile "chevron" links. */
.mdash-arrow { width: 15px; height: 15px; flex: 0 0 auto; transition: transform .15s ease; }
.mdash-btn:hover .mdash-arrow, .mdash-chev:hover .mdash-arrow { transform: translateX(3px); }

/* ---- loading skeleton --------------------------------------------------- */
.mdash-skeleton { display: flex; flex-direction: column; gap: 1.15rem; }
.mdash-sk {
  border-radius: var(--md-radius);
  background: linear-gradient(90deg,
    var(--bs-secondary-bg) 25%,
    var(--bs-tertiary-bg) 37%,
    var(--bs-secondary-bg) 63%);
  background-size: 400% 100%;
  animation: mdash-shimmer 1.4s ease-in-out infinite;
}
.mdash-sk--banner { height: 56px; border-radius: var(--md-radius-sm); }
.mdash-sk--report { height: 340px; }
.mdash-sk--route { height: 340px; }
.mdash-sk--tile { height: 220px; border-radius: var(--md-radius-sm); }
.mdash-sk--panel { height: 210px; }
@keyframes mdash-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .mdash-sk { animation: none; }
}

/* ---- celebration banner (rare - stays its own spotlight, not an inbox row) */
.mdash-banner {
  display: flex;
  align-items: center;
  gap: .8rem;
  flex-wrap: wrap;
  background: rgba(var(--md-teal-rgb), .1);
  border: 1px solid rgba(var(--md-teal-rgb), .28);
  border-radius: var(--md-radius-sm);
  padding: .85rem 1.15rem;
  margin-bottom: 1.15rem;
  font-size: .92rem;
  color: var(--bs-body-color);
}
.mdash-banner .emoji { font-size: 1.2rem; line-height: 1; }
.mdash-banner strong { color: var(--bs-heading-color); }
.mdash-verified {
  margin-left: auto;
  background: var(--md-teal-text);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: .3rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* ---- hero: readiness report (2/3) | Today (1/3) -------------------------- */
/* The report is the hero and SETS the row height. The rail stacks the after-exam card
   (only once the date has passed) over Today; Today is size-contained - it adds nothing
   to the track - and its feed scrolls inside whatever height the report leaves it. */
.mdash-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.15rem; margin-bottom: 1.15rem; align-items: stretch; }
.mdash-hero-main, .mdash-hero-rail { display: flex; flex-direction: column; gap: 1.15rem; min-width: 0; min-height: 0; }
.mdash-hero-main > .mdash-report { flex: 1 1 auto; }
.mdash-hero-rail > .mdash-plan { flex: 0 0 auto; margin-bottom: 0; }
.mdash-today { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
@media (min-width: 980.02px) { .mdash-today { contain: size; } }

/* Scroll cue: only where Today is height-capped beside the report (≥980) and its feed scrolls.
   A soft bottom fade + a small circular chevron say "there's more below"; both are driven by the
   feed's own scroll progress, so they fade away once the candidate reaches the end. Progressive:
   a browser without scroll-driven animations just shows the static cue, which is still correct
   because the feed reliably overflows in this layout. */
.mdash-scroll-cue { display: none; }
@media (min-width: 980.02px) {
  .mdash-today { timeline-scope: --mdTodayFeed; }
  .mdash-today > .mdash-feed { scroll-timeline: --mdTodayFeed block; }
  .mdash-today::after {
    content: ""; position: absolute; left: 1px; right: 1px; bottom: 1px; height: 40px;
    border-radius: 0 0 var(--md-radius) var(--md-radius);
    background: linear-gradient(to top, var(--bs-card-bg) 30%, transparent);
    pointer-events: none;
    animation: mdash-cue-fade linear both; animation-timeline: --mdTodayFeed;
  }
  .mdash-scroll-cue {
    display: grid; place-items: center;
    position: absolute; left: 50%; bottom: .55rem; transform: translateX(-50%);
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--bs-card-bg); color: var(--bs-secondary-color);
    border: 1px solid var(--md-edge); box-shadow: var(--md-shadow);
    pointer-events: none; z-index: 1;
    animation: mdash-cue-fade linear both; animation-timeline: --mdTodayFeed;
  }
  .mdash-scroll-cue svg { width: 14px; height: 14px; }
}
@keyframes mdash-cue-fade { 0%, 78% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mdash-scroll-cue, .mdash-today::after { animation: none; } }
@media (max-width: 980px) { .mdash-hero { grid-template-columns: 1fr; } }
/* Stacked (phone/tablet) before the first mock: the report is only a placeholder, so Today - the set-up steps -
   comes first, and the placeholder drops its what-to-expect list. Otherwise a new candidate's whole first screen
   was an empty ring and the things to do were two screens down. */
@media (max-width: 980px) {
  .mdash-hero--empty .mdash-hero-rail { order: -1; }
  .mdash-hero--empty .mdash-expect { display: none; }
}

.mdash-report, .mdash-route {
  background: var(--bs-card-bg);
  border: 1px solid var(--md-edge);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  padding: 1.6rem 1.7rem 1.5rem;
  display: flex;
  flex-direction: column;
}

/* the report is the hero object on the page - a faint teal wash and a slightly
   stronger edge than every other card set it apart without shouting. */
.mdash-report {
  background: linear-gradient(165deg, rgba(var(--bs-primary-rgb), .04), var(--bs-card-bg) 46%);
  border-color: rgba(var(--bs-primary-rgb), .18);
}
.mdash-report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.3rem; }
.mdash-report-sub { font-family: var(--md-serif); font-size: 1.05rem; font-weight: 600; color: var(--bs-heading-color); margin-top: .15rem; }

/* body: the ring + the topic table, side by side. The ring is a fixed-width column so
   the table always gets the remaining width; on narrow screens they stack. */
.mdash-report-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 1.9rem; align-items: center; }
@media (max-width: 560px) { .mdash-report-body { grid-template-columns: 1fr; justify-items: center; gap: 1.3rem; } }

/* full-circle readiness ring - contained, always reads as a whole object */
.mdash-ring { position: relative; width: 168px; height: 168px; flex: 0 0 auto; }
.mdash-ring svg { width: 100%; height: 100%; display: block; }
.mdash-ring-track { stroke: rgba(var(--bs-body-color-rgb), .09); }
.mdash-ring-fill { stroke: var(--bs-secondary-color); transition: stroke-dasharray .5s ease; }
.mdash-ring--ready .mdash-ring-fill { stroke: var(--md-teal-text); }
.mdash-ring--developing .mdash-ring-fill { stroke: var(--md-amber); }
.mdash-ring--practice .mdash-ring-fill { stroke: var(--md-coral); }
.mdash-ring--none .mdash-ring-fill { stroke: var(--bs-tertiary-color); }
.mdash-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; }
.mdash-ring-num .n { font-family: var(--md-serif); font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.mdash-ring-num .n small { font-size: 1.1rem; font-weight: 500; color: var(--bs-secondary-color); }
.mdash-ring-cap { font-family: var(--md-label); font-size: .6rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-tertiary-color); font-weight: 600; }

.mdash-gauge-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .8rem; font-weight: 700; padding: .4rem .85rem; border-radius: 999px;
}
.mdash-gauge-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mdash-gauge-pill--ready { background: rgba(var(--md-teal-rgb), .14); color: var(--md-teal-text); }
.mdash-gauge-pill--developing { background: rgba(var(--md-amber-rgb), .16); color: var(--md-amber-text); }
.mdash-gauge-pill--practice { background: rgba(var(--md-coral-rgb), .14); color: var(--md-coral-text); }
.mdash-gauge-pill--none { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
.mdash-gauge-note { font-size: .87rem; color: var(--bs-secondary-color); line-height: 1.5; margin: .7rem 0 0; }

/* topic table (weakest first) - the report's substance, always present */
.mdash-report-topics { min-width: 0; display: flex; flex-direction: column; gap: .7rem; }
.mdash-topics-head { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--md-label); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-tertiary-color); font-weight: 600; padding-bottom: .5rem; border-bottom: 1px solid var(--md-edge); }
.mdash-topics-foot { font-size: .82rem; color: var(--bs-secondary-color); margin-top: .1rem; }
.mdash-topics-foot b { color: var(--bs-heading-color); font-weight: 700; }
.mdash-topics-parts { margin-top: .2rem; }
.mdash-report-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: .6rem; }
.mdash-mini-num { font-family: var(--md-serif); font-weight: 600; font-size: 1.5rem; line-height: 1; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.mdash-mini-lbl { font-family: var(--md-label); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-tertiary-color); font-weight: 600; margin-top: .28rem; }

.mdash-topic { }
.mdash-topic-top { display: flex; justify-content: space-between; gap: .8rem; font-size: .86rem; margin-bottom: .3rem; color: var(--bs-body-color); }
.mdash-topic-top span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdash-topic-top b { font-weight: 600; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.mdash-mono { font-family: var(--md-mono); font-size: .78rem; }
.mdash-topic-track { height: 7px; border-radius: 99px; background: var(--bs-tertiary-bg); overflow: hidden; }
.mdash-topic-fill { height: 100%; border-radius: 99px; background: var(--bs-primary); }
/* bar colour encodes the band, so the eye lands on the weak (coral) rows first */
.mdash-topic--low .mdash-topic-fill { background: var(--md-coral); }
.mdash-topic--mid .mdash-topic-fill { background: var(--md-amber); }
.mdash-topic--high .mdash-topic-fill { background: var(--md-teal-text); }
.mdash-topic-empty { font-size: .88rem; color: var(--bs-secondary-color); margin: 0; }

/* next-step action box - the royal-tinted "do this next" + its button */
.mdash-report-foot {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; align-items: center;
  margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--md-edge);
}
.mdash-nextstep {
  display: flex; align-items: center; gap: .7rem;
  padding: .75rem .9rem; border-radius: var(--md-radius-sm);
  background: rgba(var(--bs-primary-rgb), .06); border: 1px solid rgba(var(--bs-primary-rgb), .18);
  color: var(--bs-primary);
}
.mdash-nextstep svg { width: 20px; height: 20px; flex: 0 0 auto; }
.mdash-nextstep-txt { font-size: .88rem; line-height: 1.4; color: var(--bs-body-color); }
.mdash-nextstep-verdict { display: block; margin-top: .15rem; font-weight: 600; color: var(--bs-heading-color); }
@media (max-width: 560px) { .mdash-report-foot { grid-template-columns: 1fr; } .mdash-report-foot .mdash-btn { justify-content: center; } }

.mdash-report-exam { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; margin-top: .9rem; }
.mdash-goal-edit { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.mdash-report-examdate { font-size: .84rem; font-weight: 600; color: var(--bs-heading-color); }
/* Time pressure gets its own colour per state - "days to go" is neutral progress,
   "passed" reads as needs-attention, never as an achievement. */
.mdash-report-days { font-size: .8rem; font-weight: 600; padding: .12rem .5rem; border-radius: 999px; }
.mdash-report-days.is-future { background: var(--bs-tertiary-bg); color: var(--bs-secondary-color); }
.mdash-report-days.is-today { background: rgba(var(--md-action-rgb), .14); color: var(--md-action); }
.mdash-report-days.is-past { background: rgba(var(--md-coral-rgb), .14); color: var(--md-coral-text); }
.mdash-report-edit { font-size: .82rem; }
.mdash-report-edit-set { border: 1.5px dashed var(--md-edge); background: transparent; color: var(--bs-secondary-color); font: inherit; font-size: .82rem; font-weight: 600; padding: .3rem .8rem; border-radius: 999px; cursor: pointer; }
.mdash-report-edit-set:hover { border-color: var(--bs-primary); color: var(--bs-heading-color); }

/* ---- your route (merged: adopted guide route, else the fixed journey) --- */
.mdash-route-top { display: flex; justify-content: space-between; align-items: flex-start; gap: .8rem; }
.mdash-route-head { min-width: 0; }
.mdash-route-title { font-family: var(--md-serif); font-size: 1.22rem; font-weight: 600; color: var(--bs-heading-color); margin: .3rem 0 .15rem; }
.mdash-route-title small { font-family: var(--mx-font-sans); font-size: .78rem; font-weight: 500; color: var(--bs-secondary-color); margin-left: .4rem; }
.mdash-route-next { font-size: .87rem; color: var(--bs-body-color); margin: 0; }
.mdash-route-next strong { color: var(--bs-heading-color); }
.mdash-route-next--done { color: var(--mx-teal-ink); font-weight: 600; }
/* Remove is a quiet icon button, not a text link fighting the title for attention. */
.mdash-route-remove { flex: 0 0 auto; width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--bs-tertiary-color); cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.mdash-route-remove svg { width: 15px; height: 15px; }
.mdash-route-remove:hover { background: var(--md-coral-tint, rgba(var(--md-coral-rgb), .12)); border-color: rgba(var(--md-coral-rgb), .3); color: var(--md-coral-text); }

/* numbered step timeline - done = teal check, next = royal, upcoming = muted outline.
   The list flexes and each row shares the slack equally, so a route shorter than the
   report column spreads its rows out a little instead of leaving a void above the footer. */
.mdash-route-steps { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; flex-direction: column; flex: 1 0 auto; }
.mdash-rstep { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .62rem 0; flex: 1 0 auto; }
.mdash-rstep + .mdash-rstep { border-top: 1px solid var(--md-edge); }
.mdash-rcheck { display: inline-flex; align-items: center; gap: .6rem; cursor: pointer; min-width: 0; }
.mdash-rcheck input { position: absolute; opacity: 0; width: 0; height: 0; }
.mdash-rbox {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--md-mono); font-size: .7rem; font-weight: 700;
  border: 1.5px solid var(--md-edge); background: var(--bs-card-bg); color: var(--bs-tertiary-color);
  transition: background .14s, border-color .14s, color .14s;
}
.mdash-rbox svg { width: 13px; height: 13px; }
.mdash-rstep.is-next .mdash-rbox { border-color: var(--bs-primary); color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .08); }
.mdash-rstep.is-done .mdash-rbox { background: var(--md-teal-text); border-color: var(--md-teal-text); color: #fff; }
.mdash-rcheck:hover .mdash-rbox { border-color: var(--bs-primary); }
.mdash-rtitle { color: var(--bs-body-color); font-weight: 500; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdash-rstep.is-next .mdash-rtitle { font-weight: 700; color: var(--bs-heading-color); }
.mdash-rstep.is-done .mdash-rtitle { color: var(--bs-tertiary-color); text-decoration: line-through; }
.mdash-rmeta { flex: 0 0 auto; font-family: var(--md-mono); font-size: .72rem; color: var(--bs-tertiary-color); white-space: nowrap; }

/* timeline + cost tiles, homepage-style */
.mdash-route-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem; margin-top: .9rem; }
.mdash-route-tile { display: flex; flex-direction: column; gap: .15rem; padding: .55rem .7rem; border-radius: var(--md-radius-sm); background: var(--bs-tertiary-bg); }
.mdash-route-tile-lbl { font-family: var(--md-label); font-size: .58rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bs-tertiary-color); font-weight: 600; }
.mdash-route-tile-val { font-weight: 700; font-size: .86rem; color: var(--bs-heading-color); }
/* margin-top:auto here pins the guide link + the change-destination control below it
   as one footer group at the card's bottom, filling a route shorter than the left column. */
.mdash-route-open { display: inline-flex; align-items: center; gap: .4rem; margin-top: auto; padding-top: .85rem; font-size: .84rem; font-weight: 600; color: var(--bs-link-color); }
.mdash-route-open:hover { text-decoration: none; }
.mdash-route-open:hover .mdash-arrow { transform: translateX(3px); }

.mdash-seg-track { display: flex; gap: .3rem; margin: 1rem 0 .9rem; }
.mdash-seg { flex: 1; height: 7px; border-radius: 99px; background: var(--bs-secondary-bg); }
.mdash-seg--on { background: linear-gradient(90deg, var(--mx-teal, #0E7A5A), var(--mx-teal-bright, #16A97A)); }
.mdash-route-cta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .3rem; }

/* one-tap retarget - a real labelled disclosure button, not a buried link.
   (The guide link above carries the margin-top:auto that pins this whole footer group;
   in a branch with no guide link, margin-top:auto here pins it instead.) */
.mdash-dest-fold { margin-top: auto; padding-top: .9rem; border-top: 1px solid var(--md-edge); }
.mdash-dest-btn {
  display: flex; align-items: center; gap: .55rem; cursor: pointer; list-style: none; user-select: none;
  padding: .6rem .85rem; border-radius: var(--md-radius-sm);
  border: 1.5px solid var(--md-edge); background: var(--bs-card-bg);
  font-size: .84rem; font-weight: 600; color: var(--bs-heading-color);
  transition: border-color .12s, background .12s;
}
.mdash-dest-btn::-webkit-details-marker { display: none; }
.mdash-dest-btn > svg:first-child { width: 16px; height: 16px; flex: 0 0 auto; color: var(--bs-primary); }
.mdash-dest-btn > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdash-dest-caret { width: 15px; height: 15px; flex: 0 0 auto; color: var(--bs-tertiary-color); transition: transform .18s ease; }
.mdash-dest-fold[open] .mdash-dest-caret { transform: rotate(180deg); }
.mdash-dest-btn:hover { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .04); }
.mdash-dest-pills { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .7rem; }
.mdash-dest-pill {
  border: 1.5px solid var(--bs-border-color);
  background: var(--bs-card-bg);
  color: var(--bs-secondary-color);
  font: inherit; font-size: .8rem; font-weight: 600;
  padding: .32rem .75rem; border-radius: 99px; cursor: pointer;
  transition: background .12s, color .12s, border-color .12s, transform .12s;
}
.mdash-dest-pill:hover:not(:disabled) { color: var(--bs-heading-color); border-color: var(--bs-primary); transform: translateY(-1px); }
.mdash-dest-pill.is-on { background: var(--bs-primary); border-color: transparent; color: var(--mx-on-primary, #fff); }
.mdash-dest-pill:disabled { opacity: .55; cursor: default; }

/* ---- rows 2 + 3: the same 2/3 + 1/3 split, so the rail edge runs straight down --- */
/* Row 2 = my courses | your route: whichever is taller sets the row; a shorter route
   spreads its step rows, a shorter course grid just ends (align-content:start).
   Row 3 = mock exams | For you: the mocks card sets the height and the feed, size-
   contained, scrolls inside it - a long feed never stretches the row into a void.
   minmax(0,1fr) not 1fr: nowrap content would otherwise claim min-content width. */
.mdash-row2, .mdash-row3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.15rem; margin-bottom: 1.15rem; align-items: stretch; }
/* The route card ends where its content ends: stretched to the courses card beside it, its two footer links sank to the
   bottom and left a tall empty middle. */
.mdash-row2 > .mdash-route { min-width: 0; align-self: start; }
.mdash-courses-panel { display: flex; flex-direction: column; min-width: 0; margin-bottom: 0; }
.mdash-courses-panel .mdash-courses { align-content: start; }
.mdash-mocks { display: flex; flex-direction: column; min-width: 0; }
.mdash-mocks .mdash-chart-stats { display: flex; margin: -.4rem 0 .2rem; }
/* the list under the chart: a hairline above, ~5 rows asked for, scrolls past that */
.mdash-mocks .mdash-examlist { flex: 1 1 230px; min-height: 135px; margin-top: .9rem; padding: .5rem .75rem 0 0; border-top: 1px solid var(--md-edge); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-gutter: stable; }
.mdash-foryou { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mdash-feed { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
/* the fallback line shows only when no card in the feed rendered */
.mdash-feed:has(.mdash-inbox, .mdash-notifs, .today-card, .streak-card, .svy-card, .pwa-optin, .ach-toast) > .mdash-feed-empty { display: none; }
@media (min-width: 860.02px) {
  .mdash-foryou { contain: size; }
}
@media (min-width: 860.02px) {
  /* the negative margin keeps card shadows/hover lifts from being clipped by the scroll box */
  .mdash-feed { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 0 -.5rem; padding: 0 .5rem .25rem; }
}
@media (max-width: 860px) {
  .mdash-row2, .mdash-row3 { grid-template-columns: 1fr; }
  .mdash-mocks .mdash-examlist { flex-basis: auto; max-height: 320px; }
}

/* ---- row 4: exam & tools, full width ------------------------------------ */
/* Tool rows read as real tiles you click, not a faint list: each has its own hairline,
   a bigger icon, and a chevron in a circle that fills in on hover. Four-up on a wide
   screen, two-up on a laptop, one column on a phone. */
.mdash-tools-panel { display: flex; flex-direction: column; margin-bottom: 1.15rem; }
.mdash-tools { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; }
@media (min-width: 700px) { .mdash-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .mdash-tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
/* the account / utility links stay VISIBLE (not folded) but read as secondary navigation:
   a quiet mono label, then lightweight links - never a second bank of bold cards. */
.mdash-tool-more { margin-top: 1rem; padding-top: .85rem; border-top: 1px solid var(--md-edge); }
.mdash-tool-more-lbl { display: block; font-family: var(--md-label); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--bs-tertiary-color); }
.mdash-tool {
  display: flex; align-items: center; gap: .85rem;
  padding: .7rem .8rem;
  border: 1px solid var(--md-edge);
  border-radius: var(--md-radius-sm);
  background: var(--bs-card-bg);
  transition: border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
.mdash-tool:hover { border-color: rgba(var(--bs-primary-rgb), .5); box-shadow: var(--md-shadow); transform: translateY(-1px); }
.mdash-ic {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; flex: 0 0 auto;
}
.mdash-ic svg { width: 19px; height: 19px; }
/* one tint for every tile: coral means "needs attention" on this page, so it cannot also
   be a tool identity, and three hues across eight tiles was noise rather than information */
.mdash-ic { background: rgba(var(--bs-primary-rgb), .09); color: var(--bs-primary); }
.mdash-tool:hover .mdash-ic { background: rgba(var(--bs-primary-rgb), .16); }
.mdash-tool-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.mdash-tool-title { font-weight: 700; font-size: .94rem; color: var(--bs-heading-color); }
/* wrap to at most two lines rather than truncating mid-word - the column is only
   a third wide, and "try a st…" reads worse than a clean second line. */
/* Three lines, not two: at four tiles a row the text column is only ~10rem, and two lines cut most of these off before
   the part that matters ("Your timetable across every course - nothing…" lost "scheduled yet"). */
.mdash-tool-sub { font-size: .8rem; color: var(--bs-secondary-color); line-height: 1.35; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.mdash-tool .mdash-chev {
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0;
  background: var(--bs-tertiary-bg); color: var(--bs-secondary-color);
  transition: background .14s ease, color .14s ease;
}
.mdash-tool .mdash-chev::after { content: "→"; font-size: .95rem; display: block; }
.mdash-tool:hover .mdash-chev { background: var(--bs-primary); color: var(--mx-on-primary, #fff); }

.mdash-tool-links { display: flex; flex-wrap: wrap; gap: .3rem .45rem; margin-top: .5rem; }
/* lighter than the tool tiles above: normal weight, muted, a soft hover - not pill-cards */
.mdash-tool-links a.mdash-chip { padding: .3rem .5rem; font-size: .8rem; font-weight: 500; border-radius: 8px; color: var(--bs-secondary-color); }
.mdash-tool-links a.mdash-chip:hover { background: var(--bs-tertiary-bg); box-shadow: none; color: var(--bs-heading-color); }

/* the one enriched figure inside an otherwise-muted tile state line (cards due, cases done) -
   a subtle weight/colour lift on the NUMBER only, never a whole bold line under the body */
.mdash-tool-live { font-weight: 600; color: var(--bs-heading-color); }

/* for-you inbox - notices as rows, not stacked banners */
.mdash-inbox { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mdash-inbox-row {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .7rem 0; border-top: 1px solid var(--md-edge);
  font-size: .88rem; color: var(--bs-body-color);
}
.mdash-inbox-row:first-child { border-top: 0; padding-top: 0; }
.mdash-inbox-row .emoji { font-size: 1.05rem; line-height: 1.3; flex: 0 0 auto; }
.mdash-inbox-row strong { color: var(--bs-heading-color); }
.mdash-inbox-row a { white-space: nowrap; font-weight: 600; }

/* The rail feeds (Today, For you) are ONE flat column with hairlines between sections -
   not boxes inside a box. The slot components keep their own layout; only their card
   chrome (border, fill, radius, padding) is switched off here, where they sit in a feed. */
.mdash-feed > * { margin: 0; }
.mdash-feed > .today-card, .mdash-feed > .streak-card, .mdash-feed > .svy-card, .mdash-feed > .pwa-optin, .mdash-feed > .mdash-notifs {
  border: 0; border-radius: 0; background: transparent; box-shadow: none; padding: .85rem 0; margin: 0;
}
.mdash-feed > .streak-card.is-live { background: transparent; }
.mdash-feed > * + * { border-top: 1px solid var(--md-edge); }
.mdash-feed > :first-child { padding-top: 0; }
.mdash-feed > .mdash-inbox { padding: .85rem 0; }
.mdash-feed > .mdash-inbox:first-child { padding-top: 0; }
.mdash-feed > .mdash-notifs { border-top: 1px solid var(--md-edge); }
.mdash-feed > .mdash-notifs:first-child { border-top: 0; }
.mdash-feed .svy-dismiss { top: .55rem; right: 0; }

/* ---- exam-day plan ------------------------------------------------------ */
/* A regular card (same surface/border/shadow as every panel) so it sits WITH the
   design system, not as an amber slab apart from it. Gold survives only as accents:
   the icon tile, the eyebrow, the step numbers - a left rail keeps it identifiable. */
.mdash-plan {
  background: var(--bs-card-bg);
  border: 1px solid var(--md-edge);
  border-left: 3px solid var(--md-amber);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  padding: 1.3rem 1.5rem 1.2rem;
  margin-bottom: 1.15rem;
  display: flex; flex-direction: column;
}
/* the after-exam variant leans on the primary/royal accent instead of gold */
.mdash-plan--after { border-left-color: var(--bs-primary); }
.mdash-plan--after .mdash-plan-ic { background: rgba(var(--bs-primary-rgb), .12); color: var(--bs-primary); }
.mdash-plan--after .mdash-plan-eyebrow { color: var(--bs-primary); }
.mdash-plan-body { font-size: .9rem; line-height: 1.55; color: var(--bs-body-color); margin: 0 0 1rem; }
.mdash-plan-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; }
.mdash-plan-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; }
.mdash-plan-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(var(--md-amber-rgb), .16); color: var(--md-amber-text);
}
.mdash-plan-ic svg { width: 22px; height: 22px; }
.mdash-plan-headwrap { flex: 1; min-width: 0; }
.mdash-plan-eyebrow { display: block; font-family: var(--md-label); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--md-amber-text); }
.mdash-plan-headline { font-family: var(--md-serif); font-weight: 600; font-size: 1.22rem; letter-spacing: -.01em; color: var(--bs-heading-color); margin: .15rem 0 0; }
/* days-to-go badge, coloured by state - a passed date reads as needs-attention, not neutral */
.mdash-plan-days { flex: 0 0 auto; font-size: .76rem; font-weight: 700; padding: .3rem .7rem; border-radius: 999px; white-space: nowrap; }
.mdash-plan-days.is-future { background: rgba(var(--md-amber-rgb), .18); color: var(--md-amber-text); }
.mdash-plan-days.is-today { background: rgba(var(--md-action-rgb), .16); color: var(--md-action); }
.mdash-plan-days.is-past { background: rgba(var(--md-coral-rgb), .14); color: var(--md-coral-text); }
.mdash-plan-steps { list-style: none; margin: 0 0 .9rem; padding: 0; counter-reset: mdstep; display: grid; gap: .55rem; }
@media (min-width: 820px) { .mdash-plan-steps { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .55rem .9rem; } }
.mdash-plan-steps li { display: flex; gap: .55rem; font-size: .88rem; line-height: 1.5; color: var(--bs-body-color); }
.mdash-plan-steps li::before {
  counter-increment: mdstep;
  content: counter(mdstep);
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: .7rem; font-weight: 700;
  background: rgba(var(--md-amber-rgb), .2); color: var(--md-amber-text);
}
.mdash-plan-steps strong { color: var(--bs-heading-color); }
.mdash-plan-note { border-top: 1px dashed rgba(var(--md-amber-rgb), .35); padding-top: .8rem; font-size: .84rem; color: var(--md-amber-text); }

/* ---- score trend (inside the Mocks card): chart beside a plain-language read --- */
.mdash-chart-wrap { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 1.6rem; align-items: center; }
@media (max-width: 820px) { .mdash-chart-wrap { grid-template-columns: 1fr; gap: 1rem; } }
.mdash-chart-left { min-width: 0; }
.mdash-chart-side { display: flex; flex-direction: column; gap: .9rem; align-items: flex-start; }
/* "where to focus" / how-to-read - fills the right of the full-width chart card */
.mdash-insight { padding: .9rem 1.1rem; border-radius: var(--md-radius-sm); background: var(--bs-tertiary-bg); font-size: .86rem; line-height: 1.55; color: var(--bs-body-color); }
.mdash-insight b { color: var(--bs-heading-color); }

.mdash-panel {
  background: var(--bs-card-bg);
  border: 1px solid var(--md-edge);
  border-radius: var(--md-radius);
  box-shadow: var(--md-shadow);
  padding: 1.35rem 1.4rem 1.3rem;
}
.mdash-chart-panel { display: flex; flex-direction: column; }
.mdash-panel-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.mdash-panel-title { font-family: var(--md-serif); font-size: 1.1rem; font-weight: 600; color: var(--bs-heading-color); margin: 0; }
.mdash-panel-meta { font-family: var(--md-label); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--bs-tertiary-color); font-weight: 600; }
.mdash-panel-links { display: inline-flex; gap: 1rem; font-family: var(--mx-font-sans); text-transform: none; letter-spacing: normal; }

/* score chart - gridded, labelled, with an orange 85% target and a ghost next mock */
.mdash-chart-stats { display: inline-flex; gap: 1rem; font-size: .78rem; color: var(--bs-secondary-color); }
.mdash-chart-stats b { font-family: var(--md-serif); font-size: 1.05rem; font-weight: 600; color: var(--bs-heading-color); margin-right: .15rem; }
.mdash-chart { width: 100%; height: auto; display: block; margin-top: .3rem; }
.mdash-chart-line { fill: none; stroke: var(--bs-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mdash-chart-grid { stroke: var(--md-edge); stroke-width: 1; }
.mdash-chart-target { stroke: var(--md-action); stroke-width: 1.5; stroke-dasharray: 4 4; opacity: .8; }
.mdash-chart-ylbl { font-family: var(--md-mono); font-size: 10px; fill: var(--bs-tertiary-color); }
.mdash-chart-tlbl { font-family: var(--mx-font-sans); font-size: 10px; font-weight: 600; fill: var(--md-action-ink, var(--md-action)); }
.mdash-chart-xlbl { font-family: var(--mx-font-sans); font-size: 10.5px; fill: var(--bs-secondary-color); text-anchor: middle; }
.mdash-chart-xlbl--val { font-weight: 700; fill: var(--bs-heading-color); }
.mdash-chart-xlbl--muted { fill: var(--bs-tertiary-color); }
.mdash-chart-dot { fill: #fff; stroke: var(--bs-primary); stroke-width: 2.5; }
.mdash-chart-dot--last { fill: var(--bs-primary); }
.mdash-chart-glow { fill: var(--bs-primary); opacity: .16; }
/* the empty ring + dashed reach marking where a third mock would land */
.mdash-chart-ghost { fill: var(--bs-card-bg); stroke: var(--bs-tertiary-color); stroke-width: 1.5; stroke-dasharray: 3 2; opacity: .7; }
.mdash-chart-ghostline { stroke: var(--bs-tertiary-color); stroke-width: 1.5; stroke-dasharray: 3 3; opacity: .45; }
.mdash-chart-cap { font-size: .78rem; color: var(--bs-tertiary-color); margin: .5rem 0 0; }

/* mock list - deliberately stays TABULAR: four aligned columns you scan down. Hairlines
   between rows, not zebra fills: eight tinted bands shouted louder than the chart above
   them. The verdict is a coloured dot + word (semantic colour, no pill), the score is mono. */
.mdash-examlist { margin: 0; }
.mdash-exam {
  display: flex; align-items: center; gap: .9rem;
  padding: .58rem .25rem; font-size: .88rem;
  border-top: 1px solid var(--md-edge);
}
.mdash-exam:first-child { border-top: 0; }
.mdash-exam:hover { background: rgba(var(--bs-body-color-rgb), .025); }
.mdash-exam-name { flex: 1; min-width: 0; font-weight: 500; color: var(--bs-heading-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdash-exam-score { width: 64px; text-align: right; font-family: var(--md-mono); font-size: .8rem; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.mdash-badge { display: inline-flex; align-items: center; gap: .35rem; width: 6.6rem; font-size: .74rem; font-weight: 600; }
.mdash-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.mdash-badge--pass { color: var(--md-teal-text); }
.mdash-badge--fail { color: var(--md-coral-text); }
/* A readiness check measures a starting point - a red "Fail" on it read as failing an exam (as on Exam history). */
.mdash-badge--placement { color: var(--bs-link-color); }
.mdash-exam > a { font-size: .82rem; font-weight: 600; }

/* ---- My courses (full-width row) ------------------------------------------ */
/* Each course is a small card, not a squeezed table row: a colour-railed tile that
   the delivery-format hue identifies (onsite · virtual · comprehensive). The title
   gets full width, tags sit inline, and the action is a full-width button pinned to
   the card's foot so a row of cards ends level. auto-fill (not auto-fit) keeps one
   lone course at card width instead of stretching it across the whole row. */
.mdash-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: .8rem; }
.mdash-course {
  --mdc: var(--md-fmt);
  --mdc-rgb: var(--md-fmt-rgb);
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: .9rem 1rem;
  border: 1px solid var(--md-edge);
  border-left: 3px solid var(--mdc);
  border-radius: 10px;
  background: var(--bs-card-bg);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mdash-course--onsite { --mdc: var(--md-fmt-onsite); --mdc-rgb: var(--md-fmt-onsite-rgb); }
.mdash-course--virtual { --mdc: var(--md-teal-text); --mdc-rgb: var(--md-teal-rgb); }
.mdash-course--comprehensive { --mdc: var(--md-fmt-comprehensive); --mdc-rgb: var(--md-fmt-comprehensive-rgb); }
.mdash-course:hover { border-color: rgba(var(--mdc-rgb), .5); box-shadow: var(--md-shadow); transform: translateY(-1px); }
.mdash-course-row { display: flex; align-items: flex-start; gap: .8rem; }
.mdash-course-mark {
  width: 44px; height: 44px; border-radius: 10px; flex: 0 0 auto;
  display: grid; place-items: center;
  background: rgba(var(--mdc-rgb), .14);
  color: var(--mdc);
}
.mdash-course-mark svg { width: 21px; height: 21px; }
.mdash-course-main { flex: 1; min-width: 0; }
.mdash-course-title { font-weight: 700; font-size: .95rem; line-height: 1.3; color: var(--bs-heading-color); margin: 0 0 .25rem; }
.mdash-course-metatext { font-size: .82rem; color: var(--bs-secondary-color); margin-bottom: .4rem; }
/* The course's next live class (ADR 0038) - an action link into the timetable, so it takes the action blue. */
.mdash-course-next { display: inline-flex; align-items: center; gap: .35rem; margin: -.1rem 0 .45rem; font-size: .8rem; font-weight: 600; color: var(--bs-primary); text-decoration: none; }
.mdash-course-next span { font-size: .5rem; }
.mdash-course-next:hover { text-decoration: underline; color: var(--bs-primary); }
.mdash-course-meta { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.mdash-course-tag {
  font-family: var(--md-label);
  font-size: .6rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  font-weight: 600;
  /* neutral: the format hue already lives in the card's rail and icon; a tag only takes a
     colour when it means something (needs attention / renew) */
  color: var(--bs-secondary-color);
  background: var(--bs-tertiary-bg);
  padding: .18rem .5rem;
  border-radius: 5px;
}
.mdash-course-tag--alert { color: var(--md-coral-text); background: rgba(var(--md-coral-rgb), .13); }
/* the Renew/Extend tag is an action link, so it takes the link colour */
a.mdash-course-tag--renew { color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .1); text-decoration: none; }
.mdash-course-open {
  align-self: stretch;
  margin-top: auto;
  text-align: center;
  font-weight: 700;
  font-size: .84rem;
  padding: .5rem 1rem;
  border-radius: 9px;
  border: 1.5px solid var(--bs-border-color);
  color: var(--bs-heading-color);
  background: var(--bs-card-bg);
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.mdash-course-open:hover { border-color: var(--mdc); color: var(--mdc); text-decoration: none; }
/* a course still needing set-up is flagged in coral (semantic "needs attention") - not
   orange: the page head already carries the one orange action for exactly this blocker */
.mdash-course-open--alert { border-color: rgba(var(--md-coral-rgb), .55); color: var(--md-coral-text); }
.mdash a.mdash-course-open--alert, .mdash a.mdash-course-open--alert:hover { color: var(--md-coral-text); }
.mdash-course-open--alert:hover { background: rgba(var(--md-coral-rgb), .08); border-color: var(--md-coral-text); }

/* ADR 0040 D7 - self-paced progress + resume on the course card. The bar takes the card's own
   format hue (--mdc), so each course keeps its identity; text stays on the muted scale. */
.mdash-course-prog { margin-top: .55rem; display: flex; flex-direction: column; gap: .3rem; }
.mdash-course-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--mdc-rgb), .16);
  overflow: hidden;
}
.mdash-course-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--mdc);
  transition: width .3s ease;
}
.mdash-course-progtext { display: flex; flex-wrap: wrap; gap: .2rem .6rem; font-size: .78rem; color: var(--bs-secondary-color); }
.mdash-course-left { color: var(--bs-tertiary-color); }
.mdash-course-resume { display: block; font-size: .82rem; font-weight: 600; color: var(--bs-primary); text-decoration: none; margin-top: .05rem; }
.mdash-course-resume:hover { text-decoration: underline; color: var(--bs-primary); }
.mdash-course-resume-lbl { font-weight: 700; }
.mdash-course-studied { font-size: .72rem; color: var(--bs-tertiary-color); }

/* ---- For-you: unread notifications as rows (ADR 0020 slot #3) --------------- */
/* A count + "See all" header, then one row per notification: title left, age right,
   the same hairline rhythm as the inbox rows above it. */
.mdash-notifs { padding-top: .7rem; }
.mdash-notifs-head { display: flex; align-items: center; gap: .55rem; font-size: .88rem; color: var(--bs-heading-color); }
.mdash-notifs-head .emoji { font-size: 1.05rem; line-height: 1; }
.mdash-notifs-head a { margin-left: auto; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.mdash-notifs-list { list-style: none; margin: .35rem 0 .5rem; padding: 0; display: flex; flex-direction: column; }
.mdash-notif { display: flex; align-items: baseline; gap: .7rem; padding: .5rem 0; border-top: 1px solid var(--md-edge); }
.mdash-notif:first-child { border-top: 0; }
.mdash-notif-title { flex: 1 1 auto; min-width: 0; font-size: .86rem; font-weight: 500; color: var(--bs-body-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.mdash-notif-title { color: var(--bs-body-color); text-decoration: none; }
a.mdash-notif-title:hover { color: var(--bs-primary); text-decoration: underline; }
.mdash-notif-age { flex: 0 0 auto; font-family: var(--md-mono); font-size: .68rem; color: var(--bs-tertiary-color); white-space: nowrap; }

/* ---- empty states (candidate lifecycle) ----------------------------------
   Global rule: never render a 0, 0% or flatlined chart at the same visual weight
   as a real value. A section with no underlying data swaps to this register -
   dashed hairlines, muted icon, one sentence, one ROYAL CTA per card (the page
   head keeps the single orange action). Everything below uses theme tokens only,
   so light and dark both work without overrides. */

/* royal-filled CTA - the empty-state action colour, matching .mdash-dest-pill.is-on */
.mdash-btn--royal { background: var(--bs-primary); color: var(--mx-on-primary, #fff); box-shadow: 0 6px 15px -10px rgba(var(--bs-primary-rgb), .8); }
.mdash-btn--royal:hover { background: var(--bs-primary); filter: brightness(1.08); color: var(--mx-on-primary, #fff); text-decoration: none; transform: translateY(-1px); box-shadow: 0 9px 20px -10px rgba(var(--bs-primary-rgb), .8); }
/* The theme's ink for the blue fill: white on light, dark on dark mode's brighter blue (#fff there was 3.2:1). */
.mdash a.mdash-btn--royal, .mdash a.mdash-btn--royal:hover { color: var(--mx-on-primary, #fff); text-decoration: none; }

/* report card: dashed ring placeholder (same 168px footprint as the live ring) */
.mdash-ring--empty .mdash-ring-dashed { stroke: var(--bs-tertiary-color); stroke-dasharray: 1 9; stroke-linecap: round; opacity: .8; }
.mdash-ring-await { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bs-tertiary-color); }
.mdash-ring-await svg { width: 36px; height: 36px; opacity: .75; }

/* report card: the headline + copy + CTA beside the empty ring */
.mdash-report-intro { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.mdash-report-cta-title { font-family: var(--md-serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; color: var(--bs-heading-color); margin: 0; }
.mdash-report-cta-sub { font-size: .9rem; line-height: 1.55; color: var(--bs-secondary-color); margin: 0 0 .25rem; }
@media (max-width: 560px) { .mdash-report-intro { align-items: center; text-align: center; } }

/* "what to expect" rows - doing the expectation-setting job the topic table will
   take over, instead of three 0/9 bars pretending to be data */
.mdash-expect { list-style: none; margin: 1.15rem 0 0; padding: 0; }
.mdash-expect li { display: flex; align-items: center; gap: .7rem; padding: .58rem 0; font-size: .88rem; line-height: 1.45; color: var(--bs-secondary-color); border-top: 1px solid var(--md-edge); }
.mdash-expect li b { color: var(--bs-heading-color); font-weight: 600; }
.mdash-expect-ic { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-primary); }
.mdash-expect-ic svg { width: 16px; height: 16px; }

/* dashed "this will appear here" inset - the topics placeholder */
.mdash-await-note { margin: 1rem 0 0; padding: .8rem 1rem; border: 1.5px dashed var(--md-edge); border-radius: var(--md-radius-sm); font-size: .84rem; line-height: 1.5; color: var(--bs-secondary-color); }
.mdash-await-note b { color: var(--bs-heading-color); font-weight: 600; }

/* mocks card: muted em dashes in the stat strip - "no data", never a 0 at value weight */
.mdash-chart-stats b.mdash-dim { color: var(--bs-tertiary-color); }

/* mocks card: the chart area as a dashed panel, not axes with a flatline at zero */
.mdash-chart-await { margin-top: .55rem; padding: 1.9rem 1.5rem; border: 1.5px dashed var(--md-edge); border-radius: var(--md-radius-sm); display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; }
.mdash-chart-await-ic { color: var(--bs-tertiary-color); }
.mdash-chart-await-ic svg { width: 30px; height: 30px; opacity: .8; }
.mdash-chart-await-title { font-family: var(--md-serif); font-size: 1.08rem; font-weight: 600; color: var(--bs-heading-color); margin: 0; }
.mdash-chart-await-sub { font-size: .86rem; line-height: 1.55; color: var(--bs-secondary-color); margin: 0 0 .6rem; max-width: 52ch; }

/* benchmark tiles under the empty chart: what a first score normally looks like,
   so a low one reads as expected rather than as failure */
.mdash-bench { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-top: .9rem; }
@media (max-width: 700px) { .mdash-bench { grid-template-columns: 1fr; } }
.mdash-bench-tile { padding: .75rem .9rem; border: 1px solid var(--md-edge); border-radius: var(--md-radius-sm); background: var(--bs-tertiary-bg); }
.mdash-bench-tile b { display: block; font-family: var(--md-serif); font-weight: 600; font-size: 1.3rem; line-height: 1.15; color: var(--bs-heading-color); font-variant-numeric: tabular-nums; }
.mdash-bench-tile b small { font-size: .85rem; font-weight: 500; color: var(--bs-secondary-color); }
.mdash-bench-tile span { display: block; font-size: .78rem; line-height: 1.4; color: var(--bs-secondary-color); margin-top: .15rem; }

/* row 3 with no mock history: the mocks card takes the whole row (the For-you
   panel is not rendered - its slots surface in the hero rail instead) */
.mdash-row3--solo { grid-template-columns: minmax(0, 1fr); }

/* getting-started checklist in the Today rail - same slot, same weight, pointed
   at the three tasks that unlock the page; rows check themselves off */
.mdash-feed > .mdash-setup { padding: .85rem 0; }
.mdash-setup { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.mdash-setup-row { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem; padding: .55rem 0; }
.mdash-setup-row + .mdash-setup-row { border-top: 1px solid var(--md-edge); }
.mdash-setup-row:first-child { padding-top: 0; }
.mdash-setup-ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-primary); }
.mdash-setup-ic svg { width: 17px; height: 17px; }
.mdash-setup-row.is-done .mdash-setup-ic { background: rgba(var(--md-teal-rgb), .13); color: var(--md-teal-text); }
.mdash-setup-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.mdash-setup-title { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-weight: 600; font-size: .9rem; color: var(--bs-heading-color); }
.mdash-setup-row.is-done .mdash-setup-title { color: var(--bs-secondary-color); }
.mdash-setup-min { font-family: var(--md-label); font-size: .62rem; font-weight: 600; letter-spacing: .05em; color: var(--bs-tertiary-color); background: var(--bs-tertiary-bg); padding: .14rem .45rem; border-radius: 5px; }
.mdash-setup-sub { font-size: .78rem; line-height: 1.35; color: var(--bs-secondary-color); overflow: hidden; text-overflow: ellipsis; }
.mdash-setup-act { flex: 0 0 auto; font: inherit; font-size: .8rem; font-weight: 700; padding: .4rem .85rem; border-radius: 9px; border: 1.5px solid var(--bs-border-color); color: var(--bs-heading-color); background: var(--bs-card-bg); cursor: pointer; transition: border-color .14s, color .14s; }
.mdash-setup-act:hover { border-color: var(--bs-primary); color: var(--bs-primary); text-decoration: none; }
.mdash a.mdash-setup-act { color: var(--bs-heading-color); text-decoration: none; }
.mdash a.mdash-setup-act:hover { color: var(--bs-primary); text-decoration: none; }
.mdash-setup-done { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--md-teal-text); color: #fff; }
.mdash-setup-done svg { width: 12px; height: 12px; }
/* the inline exam-date editor wraps to its own line under the row */
.mdash-setup .mdash-goal-edit { flex-basis: 100%; padding-left: calc(34px + .7rem); }

/* My-courses empty panel: dashed, with route-relevant suggestion CHIPS (never
   full course cards with fake progress on something not yet added) */
.mdash-course-setup { display: flex; align-items: center; gap: 1.1rem; padding: 1.1rem 1.2rem; border: 1.5px dashed var(--md-edge); border-radius: var(--md-radius-sm); }
@media (max-width: 700px) { .mdash-course-setup { flex-direction: column; align-items: flex-start; } }
.mdash-course-setup-ic { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-primary); }
.mdash-course-setup-ic svg { width: 22px; height: 22px; }
.mdash-course-setup-main { flex: 1; min-width: 0; }
.mdash-course-setup-title { font-weight: 700; font-size: .98rem; color: var(--bs-heading-color); margin: 0 0 .2rem; }
.mdash-course-setup-sub { font-size: .85rem; line-height: 1.5; color: var(--bs-secondary-color); margin: 0; }
.mdash-course-setup > .mdash-btn { flex: 0 0 auto; }
.mdash-sugg { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.mdash a.mdash-sugg-chip { display: inline-flex; align-items: center; padding: .32rem .75rem; border: 1px solid var(--md-edge); border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--bs-body-color); background: var(--bs-card-bg); text-decoration: none; transition: border-color .12s, color .12s; }
.mdash a.mdash-sugg-chip:hover { border-color: var(--bs-primary); color: var(--bs-primary); text-decoration: none; }

/* courses-panel foot: route-relevant next programmes fill the slack under a short
   course list instead of leaving the panel bottom blank beside a taller route card */
.mdash-course-more { margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--md-edge); display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.mdash-course-more-lbl { font-family: var(--md-label); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--bs-tertiary-color); white-space: nowrap; }
.mdash-course-more .mdash-sugg { margin-top: 0; flex: 1; min-width: 0; }

/* route card ghost preview - a dimmed sketch of the route the CTA generates,
   so the space previews the value instead of sitting blank */
.mdash-ghost { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px dashed var(--md-edge); }
.mdash-ghost-lbl { font-family: var(--md-label); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--bs-tertiary-color); margin-bottom: .2rem; }
.mdash-ghost-steps { list-style: none; margin: 0; padding: 0; }
.mdash-ghost-steps li { display: flex; align-items: center; gap: .6rem; padding: .5rem 0; }
.mdash-ghost-steps li + li { border-top: 1px solid var(--md-edge); }
.mdash-ghost-num { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1.5px dashed var(--bs-tertiary-color); display: grid; place-items: center; font-family: var(--md-mono); font-size: .68rem; font-weight: 700; color: var(--bs-tertiary-color); opacity: .8; }
.mdash-ghost-title { flex: 1; min-width: 0; font-size: .88rem; font-weight: 500; color: var(--bs-tertiary-color); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdash-ghost-note { margin: .6rem 0 0; font-size: .76rem; line-height: 1.45; color: var(--bs-tertiary-color); }

/* ---- pass-chance line (ADR 0030 ReadinessInsight) inside the report -------- */
/* One quiet line under the topic table, not a grey box inside the hero card. The
   locked nudge is muted; the live prediction keeps its figure but at body scale. */
.mdash-report .rdy-insight { margin: .7rem 0 0; padding: 0; background: transparent; border: 0; border-radius: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; font-size: .8rem; }
/* A real padlock (shackle + body), not the bare rounded box it was - that read as an
   empty checkbox beside "Sit two more mocks…", inviting a click that does nothing. */
.mdash-report .rdy-insight.rdy-locked { position: relative; padding-left: 1.05rem; color: var(--bs-tertiary-color); }
.mdash-report .rdy-insight.rdy-locked::before { content: ""; position: absolute; left: 0; top: calc(50% - 1px); width: 11px; height: 8px; border-radius: 2px; background: currentColor; opacity: .55; }
.mdash-report .rdy-insight.rdy-locked::after { content: ""; position: absolute; left: 2px; top: calc(50% - 8px); width: 7px; height: 8px; border: 1.5px solid currentColor; border-bottom: 0; border-radius: 4px 4px 0 0; opacity: .55; }
.mdash-report .rdy-prob { font-family: var(--md-serif); font-size: 1rem; font-weight: 600; color: var(--bs-heading-color); }
.mdash-report .rdy-basis, .mdash-report .rdy-driver { font-size: .8rem; }
/* The page-head wash comes from the app shell (body:has(.mx-app) in medax-ui.css), shared by every signed-in page. */

/* The milestone survey at the foot of the page (it used to sit inside Today): a slim card, the width of a tool row. */
.mdash-survey-foot { margin-top: 1.25rem; max-width: 46rem; }
.mdash-survey-foot:empty { display: none; }
