/* ============================================================================
 * Brute Info — css/pages/dashboard.css
 * The signed-in home surface. Everything here is built from the tokens in
 * css/tokens.css and composed around the shared components in
 * css/components.css — no shared class is restyled from this file.
 * ========================================================================== */

/* --------------------------------------------------------------------------
   0 · COURSE ARTWORK SCRIM
   Course gradients come from js/data.js and are fixed brand colours, so they
   do not follow the theme. Several of them are light (OS starts at #fbbf24,
   Systems design at #4ade80): white set straight on those stops measures
   1.67:1, far under AA. This scrim is laid over every course gradient so
   --text-on-brand clears 4.5:1 on the lightest stop in the set while the
   course keeps its own hue. Theme-independent by design — the gradient
   underneath it is theme-independent too.
   -------------------------------------------------------------------------- */
.dash-resume-art,
.dash-course-icon,
.dash-rec-art {
  --art-scrim: color-mix(in srgb, var(--slate-1000) 46%, transparent);
}

/* --------------------------------------------------------------------------
   1 · GREETING BAND
   -------------------------------------------------------------------------- */
.dash-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: var(--space-10) var(--space-8);
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(72rem 26rem at 8% -40%, color-mix(in srgb, var(--primary) 22%, transparent), transparent 68%),
    radial-gradient(48rem 22rem at 92% -30%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%);
}
.dash-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: url("../../assets/dash-texture.svg");
  background-size: 180px 180px;
  background-repeat: repeat;
  opacity: 0.28;
  mix-blend-mode: overlay;
}
.dash-band-grid {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-6);
}
.dash-band-copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  min-width: 0;
}
.dash-title {
  font-size: var(--fs-4xl);
  letter-spacing: var(--tracking-tighter);
  line-height: var(--lh-tight);
}
.dash-title .dash-title-name { color: var(--primary); }
.dash-nudge {
  font-size: var(--fs-lg);
  color: var(--text-muted);
  max-width: 56ch;
  text-wrap: balance;
}
.dash-nudge strong { color: var(--text); font-weight: var(--fw-semibold); }
.dash-band-side {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
/* Banner slots above the greeting: the welcome message and the render-failure
   notice. Both sit flush when empty. */
.dash-notice:not(:empty) { margin-bottom: var(--space-6); }

/* --------------------------------------------------------------------------
   2 · STAT ROW
   -------------------------------------------------------------------------- */
.dash-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr));
  gap: var(--tile-gap);
}
.dash-stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
}
.dash-stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}
.dash-stat-top .stat-icon { margin-bottom: 0; }
.dash-stat-delta {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.dash-stat-spark {
  display: block;
  margin-top: auto;
  color: var(--primary);
}
.dash-stat-spark svg { display: block; width: 100%; height: 2.25rem; overflow: visible; }
.dash-spark-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.dash-spark-area { fill: currentColor; opacity: 0.14; stroke: none; }
.dash-stat.is-skeleton { gap: var(--space-3); }

/* --------------------------------------------------------------------------
   3 · WORK AREA LAYOUT
   -------------------------------------------------------------------------- */
.dash-work { padding-top: var(--space-10); }
.dash-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: var(--space-8);
  align-items: start;
}
.dash-col-main,
.dash-col-rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  min-width: 0;
}
.dash-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  min-width: 0;
}
.dash-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-4);
}
.dash-head-title {
  font-size: var(--fs-2xl);
  letter-spacing: var(--tracking-tight);
}
.dash-head-sub {
  font-size: var(--fs-md);
  color: var(--text-muted);
  max-width: 52ch;
}
.dash-head-link {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--primary);
  white-space: nowrap;
}
.dash-panel-title { font-size: var(--fs-lg); }

/* --------------------------------------------------------------------------
   4 · CONTINUE LEARNING — the hero card
   -------------------------------------------------------------------------- */
.dash-resume {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
}
.dash-resume.is-skeleton {
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--card-pad);
}
.dash-resume.is-skeleton .skeleton-media { height: 100%; min-height: 9rem; }
.dash-resume-art {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: var(--space-5);
  color: var(--text-on-brand);
  background:
    linear-gradient(0deg, var(--art-scrim), var(--art-scrim)),
    radial-gradient(120% 120% at 18% 8%, color-mix(in srgb, var(--dash-c1) 92%, transparent), transparent 62%),
    linear-gradient(150deg, var(--dash-c1) 0%, var(--dash-c2) 100%);
}
.dash-resume-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../assets/dash-texture.svg");
  background-size: 180px 180px;
  opacity: 0.3;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.dash-resume-art-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}
.dash-resume-art svg { width: 3rem; height: 3rem; }
.dash-resume-code {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-full);
  background: color-mix(in srgb, var(--slate-1000) 30%, transparent);
}
.dash-resume-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--card-pad);
  min-width: 0;
}
.dash-resume-title {
  font-size: var(--fs-2xl);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
}
.dash-resume-next {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-inset);
  min-width: 0;
}
.dash-resume-kicker {
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--primary);
}
.dash-resume-lecture {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  color: var(--text);
  line-height: var(--lh-snug);
}
.dash-resume-module { font-size: var(--fs-sm); color: var(--text-muted); }
.dash-resume-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: auto;
}
.dash-resume-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--card-pad);
  border-left: 1px solid var(--border-subtle);
  background: var(--surface-2);
  text-align: center;
}
.dash-resume-remaining {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  max-width: 11ch;
  line-height: var(--lh-snug);
}

/* --------------------------------------------------------------------------
   5 · YOUR COURSES
   -------------------------------------------------------------------------- */
.dash-course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr));
  gap: var(--space-5);
}
.dash-course-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  min-width: 0;
}
.dash-course-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  border-radius: var(--radius-lg);
  color: var(--text-on-brand);
  background:
    linear-gradient(0deg, var(--art-scrim), var(--art-scrim)),
    linear-gradient(140deg, var(--dash-c1) 0%, var(--dash-c2) 100%);
  box-shadow: var(--shadow-sm);
}
.dash-course-icon svg { width: 1.4rem; height: 1.4rem; }
.dash-course-name {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-snug);
}
/* Course titles run to one or two lines. Reserving two lines keeps the progress
   bar, the "opened" line and the footer buttons on the same baseline across a
   row of cards; below the two-column breakpoint the cards stack, so the
   reservation is dropped and no card carries a blank line. */
@media (min-width: 641px) {
  .dash-course-name { min-height: calc(var(--fs-base) * var(--lh-snug) * 2); }
}
.dash-course-meta { font-size: var(--fs-xs); color: var(--text-muted); }
.dash-course-when {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.dash-course-when svg { width: 0.9rem; height: 0.9rem; }

/* --------------------------------------------------------------------------
   6 · ACTIVITY CHART
   -------------------------------------------------------------------------- */
.dash-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.dash-chart-total {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tighter);
  font-variant-numeric: tabular-nums;
}
.dash-chart-total small {
  display: block;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-wide);
  color: var(--text-muted);
}
.dash-chart-wrap { display: flex; flex-direction: column; gap: var(--space-2); }
.dash-chart-plot { position: relative; }
.dash-chart {
  display: block;
  width: 100%;
  height: auto;
}
.dash-chart-grid {
  stroke: var(--border);
  stroke-dasharray: 3 5;
  vector-effect: non-scaling-stroke;
}
.dash-chart-base {
  stroke: var(--border-strong);
  vector-effect: non-scaling-stroke;
}
.dash-chart-bar {
  fill: var(--primary);
  opacity: 0.88;
  transition: opacity var(--dur-fast) var(--ease-standard);
}
/* A "no activity" stub and its legend key are the only thing that tells a
   learner a day was blank rather than missing, so they need the 3:1 that
   WCAG 1.4.11 asks of a meaningful graphic. --surface-3 measures 1.15:1 on
   --surface in light and 1.8:1 in dark — invisible in both. --text-subtle
   clears 3:1 in both themes and still reads as the quiet grey it should. */
.dash-chart-bar.is-empty { fill: var(--text-subtle); opacity: 1; }
.dash-chart-bar.is-today { fill: var(--accent); opacity: 1; }

/* Interactive overlay — one HTML button per day, sitting exactly over its bar */
.dash-chart-cells {
  position: absolute;
  inset: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
}
.dash-chart-cell {
  border: 0;
  padding: 0;
  background: transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-standard);
}
.dash-chart-cell:hover,
.dash-chart-cell.is-active { background: color-mix(in srgb, var(--primary) 9%, transparent); }
.dash-chart-labels {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 0;
}
.dash-chart-label {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  text-align: center;
  letter-spacing: var(--tracking-wide);
  white-space: nowrap;
}
/* Edge labels hug the plot so a wide label can never push the page sideways. */
.dash-chart-label:first-child { text-align: start; }
.dash-chart-label:last-child { text-align: end; }
.dash-chart-label.is-today { color: var(--text); font-weight: var(--fw-bold); }
.dash-chart-tip {
  position: absolute;
  bottom: calc(100% + var(--space-2));
  left: 50%;
  z-index: var(--z-base);
  min-width: 9rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface-raised);
  box-shadow: var(--shadow-lg);
  color: var(--text);
  font-size: var(--fs-xs);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity var(--dur-fast) var(--ease-standard);
}
.dash-chart-tip.is-open { opacity: 1; }
.dash-chart-tip-day {
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  display: block;
}
.dash-chart-tip-val { color: var(--text-muted); display: block; }
.dash-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
.dash-chart-legend > span { display: inline-flex; align-items: center; gap: var(--space-2); }
.dash-legend-swatch {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: var(--radius-xs);
  background: var(--primary);
}
.dash-legend-swatch.is-today { background: var(--accent); }
.dash-legend-swatch.is-empty { background: var(--text-subtle); }

/* Fourteen blank days would otherwise leave a tall empty plot. The chart keeps
   its frame — the window is the point — and says plainly what fills it. */
.dash-chart-empty {
  position: absolute;
  inset-inline: var(--space-4);
  top: 50%;
  /* Nudged clear of the mid gridline, which sits just under the half mark. */
  transform: translateY(calc(-50% - var(--space-6)));
  margin: 0;
  text-align: center;
  text-wrap: balance;
  font-size: var(--fs-md);
  color: var(--text-muted);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7 · WEEKLY GOAL
   -------------------------------------------------------------------------- */
.dash-goal-top {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.dash-goal-copy { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.dash-goal-count {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: var(--fw-extrabold);
  letter-spacing: var(--tracking-tight);
  font-variant-numeric: tabular-nums;
}
.dash-goal-note { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-snug); }
.dash-goal-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--space-1);
}
.dash-goal-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-2xs);
  color: var(--text-muted);
}
.dash-goal-pip {
  width: 100%;
  height: 0.375rem;
  border-radius: var(--radius-full);
  background: var(--surface-3);
}
.dash-goal-day.is-done .dash-goal-pip { background: var(--primary); }
.dash-goal-day.is-today .dash-goal-pip { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3px var(--primary-border); }
.dash-goal-day.is-today { color: var(--text); font-weight: var(--fw-bold); }

/* --------------------------------------------------------------------------
   8 · UP NEXT
   -------------------------------------------------------------------------- */
.dash-next-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  margin-inline: calc(var(--space-2) * -1);
}
.dash-next-list a:hover { text-decoration: none; }
.dash-next-body { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; flex: 1; }
.dash-next-title {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--text);
  line-height: var(--lh-snug);
}
.dash-next-meta {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  letter-spacing: var(--tracking-wide);
}
.dash-next-index {
  display: grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  color: var(--primary-soft-text);
  background: var(--primary-soft);
}
.dash-next-time {
  font-size: var(--fs-2xs);
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   9 · ACHIEVEMENTS
   -------------------------------------------------------------------------- */
.dash-badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(7.5rem, 100%), 1fr));
  gap: var(--space-3);
}
.dash-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  text-align: center;
}
.dash-badge-art {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-full);
  color: var(--text-subtle);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.dash-badge-art svg { width: 1.5rem; height: 1.5rem; }
.dash-badge-name {
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--text-muted);
  line-height: var(--lh-snug);
}
.dash-badge-hint { font-size: var(--fs-2xs); color: var(--text-muted); line-height: var(--lh-snug); }
.dash-badge.is-earned {
  border-color: var(--primary-border);
  background: var(--primary-soft);
}
.dash-badge.is-earned .dash-badge-art {
  color: var(--text-on-brand);
  background: var(--grad-brand);
  border-color: transparent;
  box-shadow: var(--shadow-sm);
}
.dash-badge.is-earned .dash-badge-name { color: var(--primary-soft-text); }
.dash-badge.is-earned .dash-badge-hint { color: var(--primary-soft-text); opacity: 0.85; }
/* A locked medallion is already quiet — --text-subtle on --surface-2. The extra
   0.7 opacity pushed it under the 3:1 an icon needs, hardest to read in dark. */
.dash-badge-state {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-2xs);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--text-muted);
}
.dash-badge-state svg { width: 0.75rem; height: 0.75rem; }
.dash-badge.is-earned .dash-badge-state { color: var(--success-soft-text); }

/* --------------------------------------------------------------------------
   10 · RECOMMENDED
   -------------------------------------------------------------------------- */
.dash-recs-title { font-size: var(--fs-3xl); letter-spacing: var(--tracking-tight); }
.dash-rec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr));
  gap: var(--tile-gap);
}
/* The "you own the whole catalogue" state is a section-level message, not a
   card: without this it is squeezed into one 18rem column and its two buttons
   stack. */
.dash-rec-grid > .empty-state { grid-column: 1 / -1; }
.dash-rec-art {
  position: relative;
  display: grid;
  place-items: center;
  height: 6.5rem;
  overflow: hidden;
  color: var(--text-on-brand);
  background:
    linear-gradient(0deg, var(--art-scrim), var(--art-scrim)),
    linear-gradient(140deg, var(--dash-c1) 0%, var(--dash-c2) 100%);
}
.dash-rec-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../../assets/dash-texture.svg");
  background-size: 180px 180px;
  opacity: 0.3;
  mix-blend-mode: overlay;
}
.dash-rec-art svg { width: 2.25rem; height: 2.25rem; position: relative; }
/* Course titles and one-line summaries run to different depths. Pinning the
   price block to the foot of the card body lines the prices up across a row,
   which is the number people compare, without truncating anything above it. */
.dash-rec-pricing { margin-top: auto; }
.dash-rec-price {
  font-size: var(--fs-md);
  color: var(--text-muted);
}
.dash-rec-price strong {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.dash-rec-total { font-size: var(--fs-xs); color: var(--text-muted); font-variant-numeric: tabular-nums; }

/* --------------------------------------------------------------------------
   11 · ONBOARDING (brand-new account)
   -------------------------------------------------------------------------- */
.dash-onboard {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-10);
  padding: var(--space-10);
  border: 1px solid var(--border);
  border-radius: var(--radius-2xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.dash-onboard-copy { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.dash-onboard-title {
  font-size: var(--fs-3xl);
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-tight);
}
.dash-onboard-lead { color: var(--text-muted); font-size: var(--fs-lg); max-width: 48ch; }
.dash-steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  counter-reset: dash-step;
}
.dash-step {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-inset);
}
.dash-step-num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  font-variant-numeric: tabular-nums;
  color: var(--primary-contrast);
  background: var(--primary);
}
.dash-step-copy { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.dash-step-title { font-size: var(--fs-base); font-weight: var(--fw-bold); letter-spacing: var(--tracking-tight); }
.dash-step-text { font-size: var(--fs-md); color: var(--text-muted); line-height: var(--lh-base); }
.dash-onboard-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.dash-onboard-art { display: grid; place-items: center; min-width: 0; }
.dash-onboard-art svg { width: 100%; max-width: 24rem; height: auto; }
.dash-art-plate { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; }
.dash-art-rule { stroke: var(--border); stroke-width: 1.5; fill: none; }
.dash-art-soft { fill: var(--surface-3); }
.dash-art-brand { fill: var(--primary); }
.dash-art-brand-soft { fill: var(--primary-soft); stroke: var(--primary-border); stroke-width: 1.5; }
.dash-art-accent { fill: var(--accent); }
.dash-art-tick { stroke: var(--primary-contrast); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.dash-art-track { fill: none; stroke: var(--surface-3); stroke-width: 12; }
.dash-art-arc { fill: none; stroke: var(--primary); stroke-width: 12; stroke-linecap: round; }

/* --------------------------------------------------------------------------
   12 · RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .dash-layout { grid-template-columns: minmax(0, 1fr); }
  .dash-onboard { grid-template-columns: minmax(0, 1fr); gap: var(--space-8); padding: var(--space-8); }
  .dash-onboard-art { order: -1; }
  .dash-onboard-art svg { max-width: 20rem; }
}
@media (max-width: 860px) {
  .dash-resume { grid-template-columns: 8rem minmax(0, 1fr); }
  .dash-resume-side {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: var(--space-4);
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
    text-align: left;
  }
  .dash-resume-remaining { max-width: none; }
}
@media (max-width: 640px) {
  .dash-band { padding-block: var(--space-8) var(--space-6); }
  .dash-title { font-size: var(--fs-3xl); }
  .dash-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
  .dash-stat-spark svg { height: 1.75rem; }
  .dash-resume { grid-template-columns: minmax(0, 1fr); }
  .dash-resume-art { padding: var(--space-6); }
  .dash-resume-actions .btn { flex: 1 1 auto; }
  .dash-course-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-onboard { padding: var(--space-6); }
}
@media (max-width: 380px) {
  .dash-stat-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   CONTRAST BRIDGE — shared components that still carry --text-subtle

   --text-subtle resolves to #7c8598 in the light theme: 3.71:1 on --surface
   and 3.27:1 on --surface-2, both under the 4.5:1 AA bar for body text (it
   also lands at 4.43:1 on --surface-2 in dark). Every rule THIS file owns
   already uses --text-muted; what remains are shared components from
   css/components.css, which this page may not edit. These overrides are
   scoped to #main so they can never reach the site header or footer that
   css/layout.css owns. Delete this block once --text-subtle is retuned to
   clear AA in css/tokens.css — nothing here changes the design intent, only
   the tier of grey that carries it.
   ========================================================================== */
#main .field-hint,
#main .field-optional,
#main .checkbox-hint,
#main .radio-hint,
#main .switch-hint,
#main .stat-hint,
#main .accordion-meta,
#main .range-scale,
#main .range-scale > *,
#main .ring-text small,
#main .lecture-time {
  color: var(--text-muted);
}

/* A placeholder still has to read as a prompt rather than a value: --text-muted
   sits well clear of --text, so the two never look alike. */
#main .input::placeholder,
#main .textarea::placeholder,
#main textarea::placeholder,
#main input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

#main .setting-hint {
  color: var(--text-muted);
}
