.pmc-demo {
  box-sizing: border-box;
  --pmc-purple: #6f48a8;
  --pmc-dark: #2f2347;
  --pmc-lilac: #f3ecff;
  --pmc-background: #f6f3fb;
  --pmc-border: #e4deec;
  --pmc-muted: #6b6278;
  --pmc-green: #23694c;
  --pmc-red: #a3424a;
  width: 100%;
  max-width: 1800px;
  min-width: 0;
  margin: 0 auto;
  color: var(--pmc-dark);
  background: var(--pmc-background);
  border: 1px solid var(--pmc-border);
  border-radius: 20px;
  overflow: clip;
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-align: left;
  box-shadow: 0 12px 48px #382b5010;
  isolation: isolate;
}
.pmc-demo *, .pmc-demo *::before, .pmc-demo *::after { box-sizing: border-box; }
.pmc-demo h1, .pmc-demo h2, .pmc-demo h3, .pmc-demo h4, .pmc-demo p, .pmc-demo ul { margin: 0; padding: 0; color: inherit; font-family: inherit; }
.pmc-demo h1, .pmc-demo h2, .pmc-demo h3, .pmc-demo h4 { font-weight: 650; line-height: 1.25; letter-spacing: -.025em; }
.pmc-demo h1 { max-width: 760px; font-size: clamp(25px, 2.5vw, 36px); }
.pmc-demo h2 { font-size: 28px; }
.pmc-demo h3 { font-size: 19px; }
.pmc-demo h4 { font-size: 15px; }
.pmc-demo button, .pmc-demo input, .pmc-demo select { font: inherit; letter-spacing: normal; text-transform: none; }
.pmc-demo button { margin: 0; min-height: 42px; padding: 8px 12px; color: var(--pmc-dark); border: 1px solid transparent; border-radius: 8px; background: transparent; box-shadow: none; cursor: pointer; line-height: 1.3; }
.pmc-demo button:hover { color: var(--pmc-purple); background: #f0ebf8; }
.pmc-demo :is(button, input, select, a, summary, [tabindex]):focus-visible { outline: 3px solid #8a60bb; outline-offset: 3px; }
.pmc-demo a { color: var(--pmc-purple); text-decoration: none; }
.pmc-demo a:hover { color: var(--pmc-dark); text-decoration: underline; }
.pmc-demo small { font-size: 12px; line-height: 1.4; }
.pmc-demo strong { font-weight: 650; }
.pmc-demo [hidden] { display: none !important; }
.pmc-demo .pmc-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 32px; background: white; border-bottom: 1px solid var(--pmc-border); }
.pmc-demo .pmc-brand { display: flex; align-items: center; gap: 14px; color: var(--pmc-dark); font-size: 20px; font-weight: 700; line-height: 1.3; }
.pmc-demo .pmc-brand:hover { text-decoration: none; }
.pmc-demo .pmc-brand img { display: block; width: 290px; max-width: 100%; height: auto; flex-shrink: 0; object-fit: contain; border-radius: 0; }
.pmc-demo .pmc-brand small { display: block; color: var(--pmc-muted); font-size: 12px; font-weight: 400; margin-top: 4px; }
.pmc-demo.pmc-demo--host-branded .pmc-brand { display: none; }
.pmc-demo.pmc-demo--host-branded .pmc-header { padding: 7px 24px; justify-content: flex-end; }
.pmc-demo.pmc-demo--host-branded .pmc-home-link { min-height: 44px; padding: 6px 0; }
.pmc-demo .pmc-home-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; white-space: nowrap; padding: 10px 0; }
.pmc-demo .pmc-home-link span { font-size: 20px; }
.pmc-demo .pmc-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px 32px; background: linear-gradient(110deg, #f2ebfc, #fbf9fe); border-bottom: 1px solid var(--pmc-border); }
.pmc-demo .pmc-eyebrow { color: var(--pmc-purple); font-size: 10px; line-height: 1.5; letter-spacing: .13em; font-weight: 750; margin-bottom: 7px; }
.pmc-demo .pmc-demo-banner { padding: 12px 24px; border-bottom: 1px solid #d8c7ee; background: #eee5f8; color: #51316f; font-size: 14px; font-weight: 600; text-align: center; }
.pmc-demo .pmc-subtitle { margin-top: 10px; color: #625476; font-size: 14px; }
.pmc-demo .pmc-demo-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid #d8c7ee; border-radius: 30px; color: #684692; background: #ffffff99; font-size: 11px; font-weight: 600; white-space: nowrap; }
.pmc-demo .pmc-demo-badge i { width: 6px; height: 6px; border-radius: 50%; background: #8a60bb; }
.pmc-demo .pmc-layout { display: grid; grid-template-columns: 218px minmax(0, 1fr); align-items: stretch; min-height: 660px; }
.pmc-demo .pmc-sidebar { background: #fff; border-right: 1px solid var(--pmc-border); padding: 25px 14px; }
.pmc-demo .pmc-sidebar nav { display: flex; flex-direction: column; gap: 7px; }
.pmc-demo .pmc-nav-group { padding: 2px 10px 6px; font-size: 9px; font-weight: 650; color: #75697e; letter-spacing: .09em; text-transform: uppercase; }
.pmc-demo .pmc-nav-group--support { margin-top: 17px; padding-top: 18px; border-top: 1px solid var(--pmc-border); }
.pmc-demo .pmc-nav-button { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 50px; text-align: left; font-size: 13px; font-weight: 550; padding: 12px 10px; border-radius: 10px; color: #62566f; }
.pmc-demo .pmc-nav-button--active { background: var(--pmc-purple); color: white; box-shadow: 0 5px 12px #6f48a81a; }
.pmc-demo .pmc-nav-button--active:hover { color: white; background: #603d93; }
.pmc-demo .pmc-nav-number { font-size: 10px; letter-spacing: .02em; opacity: .72; }
.pmc-demo .pmc-nav-arrow { margin-left: auto; font-size: 22px; line-height: 1; opacity: .65; }
.pmc-demo .pmc-sidebar-note { margin: 28px 8px 0; padding-top: 23px; border-top: 1px solid var(--pmc-border); font-size: 12px; }
.pmc-demo .pmc-sidebar-note strong { font-size: 13px; }
.pmc-demo .pmc-sidebar-note p { margin: 7px 0 14px; color: var(--pmc-muted); line-height: 1.7; }
.pmc-demo .pmc-reset { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; border-color: #d9cde9; background: white; color: #684692; font-size: 12px; font-weight: 650; }
.pmc-demo .pmc-reset span { font-size: 20px; }
.pmc-demo .pmc-sidebar-note small { display: block; margin-top: 10px; color: var(--pmc-muted); font-size: 10px; }
.pmc-demo .pmc-workspace { min-width: 0; padding: 25px 28px 34px; }
.pmc-demo .pmc-controls { display: flex; align-items: flex-end; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--pmc-border); }
.pmc-demo .pmc-year-filter { min-width: 120px; }
.pmc-demo .pmc-select-field { display: flex; flex-direction: column; gap: 6px; min-width: 180px; max-width: 100%; }
.pmc-demo .pmc-select-field label { display: block; font-size: 11px; font-weight: 650; color: #6a5e76; margin: 0; }
.pmc-demo select { display: block; width: 100%; height: 42px; padding: 8px 30px 8px 12px; background-color: white; border: 1px solid #d8d1e2; border-radius: 7px; color: var(--pmc-dark); font-size: 12px; box-shadow: 0 2px 4px #37214e04; }
.pmc-demo select:disabled { background-color: #eeebf2; color: #77707e; }
.pmc-demo .pmc-context-note { margin-left: auto; padding-bottom: 11px; color: var(--pmc-muted); font-size: 11px; text-align: right; }
.pmc-demo .pmc-feedback { min-height: 35px; padding: 11px 0 3px; color: #675875; font-size: 11px; }
.pmc-demo .pmc-feedback--error { color: #922e39; font-weight: 600; }
.pmc-demo .pmc-unsaved { margin: 12px 0 3px; padding: 10px 13px; color: #805a17; background: #fff4d9; border: 1px solid #eedcaf; border-radius: 8px; font-size: 12px; }
.pmc-demo .pmc-main { display: block; min-width: 0; background: transparent; margin: 0; padding: 0; }
.pmc-demo .pmc-page-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 20px 0 23px; }
.pmc-demo .pmc-page-heading p:last-child { margin-top: 6px; color: var(--pmc-muted); font-size: 13px; }
.pmc-demo .pmc-page-heading h2:focus { outline: none; }
.pmc-demo .pmc-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 140px; min-height: 43px; padding: 11px 17px; font-size: 12px; font-weight: 650; }
.pmc-demo .pmc-button--primary { color: white; background: var(--pmc-purple); border-color: var(--pmc-purple); box-shadow: 0 3px 8px #6f48a818; }
.pmc-demo .pmc-button--primary:hover { color: white; background: #5c3a8c; }
.pmc-demo .pmc-text-button { min-height: 38px; padding: 7px 0; color: var(--pmc-purple); font-size: 12px; font-weight: 650; white-space: nowrap; }
.pmc-demo .pmc-text-button:hover { background: transparent; color: #422564; text-decoration: underline; }
.pmc-demo .pmc-panel { min-width: 0; margin: 0 0 22px; background: white; border: 1px solid var(--pmc-border); border-radius: 12px; box-shadow: 0 3px 8px #36214d03; overflow: clip; }
.pmc-demo .pmc-panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 19px 21px; }
.pmc-demo .pmc-panel-heading p:not(.pmc-eyebrow) { color: var(--pmc-muted); font-size: 12px; margin-top: 5px; }
.pmc-demo .pmc-panel-body { padding: 0 21px 22px; }
.pmc-demo .pmc-panel-body > p + div { margin-top: 18px; }
.pmc-demo .pmc-mark-legend { display: flex; gap: 12px; font-size: 10px; color: var(--pmc-muted); }
.pmc-demo .pmc-mark-legend span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.pmc-demo .pmc-dot { width: 7px; height: 7px; border-radius: 50%; background: #d7d1dd; }
.pmc-demo .pmc-dot--correct { background: #5b987b; }
.pmc-demo .pmc-dot--incorrect { background: #ca7880; }
.pmc-demo .pmc-table-scroll { width: 100%; max-width: 100%; overflow: auto; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: #c4b6d8 #f5f1f9; }
.pmc-demo table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; background: white; color: var(--pmc-dark); font-size: 12px; text-align: left; }
.pmc-demo th, .pmc-demo td { padding: 13px 15px; border: 0; border-bottom: 1px solid #eee9f3; vertical-align: middle; }
.pmc-demo thead th { color: #6a5c79; background: #f6f3fa; font-size: 10px; font-weight: 650; line-height: 1.5; border-top: 1px solid #eee9f3; }
.pmc-demo tbody th { text-align: left; font-weight: 550; }
.pmc-demo tbody tr:last-child > * { border-bottom: 0; }
.pmc-demo .pmc-entry-table { min-width: 1190px; table-layout: fixed; }
.pmc-demo .pmc-entry-table th, .pmc-demo .pmc-entry-table td { padding: 11px 4px; text-align: center; }
.pmc-demo .pmc-entry-table .pmc-sticky-name { width: 165px; text-align: left; padding-left: 20px; padding-right: 12px; }
.pmc-demo .pmc-entry-table .pmc-sticky-score { width: 90px; }
.pmc-demo .pmc-sticky-name { position: sticky; left: 0; z-index: 1; background: white; box-shadow: 2px 0 0 #eee9f3; }
.pmc-demo thead .pmc-sticky-name { z-index: 2; background: #f6f3fa; }
.pmc-demo .pmc-sticky-score { position: sticky; right: 0; z-index: 1; background: white; box-shadow: -2px 0 0 #eee9f3; }
.pmc-demo thead .pmc-sticky-score { z-index: 2; background: #f6f3fa; }
.pmc-demo .pmc-pupil-name { display: block; font-size: 11px; line-height: 1.4; }
.pmc-demo .pmc-question-heading { min-height: 34px; padding: 5px 3px; font-size: 10px; color: #756784; }
.pmc-demo .pmc-mark-input { display: block; width: 33px; height: 36px; min-height: 36px; margin: 0 auto; padding: 5px 2px; color: var(--pmc-dark); background: #faf8fc; border: 1px solid #e1dbe8; border-radius: 6px; font-size: 13px; font-weight: 550; text-align: center; box-shadow: none; }
.pmc-demo .pmc-mark-input--correct { background: #edf5f0; color: #286444; border-color: #d2e6d9; }
.pmc-demo .pmc-mark-input--incorrect { background: #fcf0ef; color: #a03d49; border-color: #efd8d9; }
.pmc-demo .pmc-mark-input[aria-invalid="true"] { color: #942734; background: #ffedef; border-color: #b23a4a; }
.pmc-demo .pmc-sticky-score output { color: #564171; font-size: 14px; font-weight: 650; }
.pmc-demo .pmc-denominator { font-size: .6em; font-weight: 450; color: var(--pmc-muted); white-space: nowrap; }
.pmc-demo .pmc-table-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 20px; border-top: 1px solid #eee9f3; color: var(--pmc-muted); font-size: 10px; }
.pmc-demo .pmc-question-card { display: flex; gap: 20px; align-items: flex-start; background: #eee7f7; border: 1px solid #e0d5ee; border-radius: 12px; padding: 22px; }
.pmc-demo .pmc-question-number { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 48px; height: 48px; background: white; border: 1px solid #e0d5ee; border-radius: 11px; color: var(--pmc-purple); font-size: 17px; font-weight: 700; }
.pmc-demo .pmc-question-card h3 { font-size: 23px; }
.pmc-demo .pmc-question-meta { margin-top: 11px; font-size: 12px; }
.pmc-demo .pmc-question-meta span { margin: 0 9px; color: #a08db8; }
.pmc-demo .pmc-question-card small { display: block; margin-top: 7px; font-size: 10px; color: #6b5b7d; }
.pmc-demo .pmc-hint { color: var(--pmc-muted); font-size: 11px; line-height: 1.65; margin-top: 10px; }
.pmc-demo .pmc-padded { padding: 0 20px 15px; }
.pmc-demo .pmc-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 23px; }
.pmc-demo .pmc-metric { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; gap: 9px; padding: 17px 18px; background: white; border: 1px solid var(--pmc-border); border-radius: 11px; }
.pmc-demo .pmc-metric > span { font-size: 11px; color: var(--pmc-muted); }
.pmc-demo .pmc-metric > strong { font-size: 28px; line-height: 1.2; color: #5e3f88; letter-spacing: -.04em; }
.pmc-demo .pmc-metric > small { color: #75697e; font-size: 10px; }
.pmc-demo .pmc-overview-table { min-width: 670px; }
.pmc-demo .pmc-overview-table td strong { font-size: 15px; }
.pmc-demo .pmc-selected-row > * { background: #f8f4fd; }
.pmc-demo .pmc-cell-note { display: block; margin-top: 4px; color: var(--pmc-muted); font-size: 10px; font-weight: 400; }
.pmc-demo .pmc-score-history { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; }
.pmc-demo .pmc-score-history > div { min-width: 135px; padding: 13px 16px; background: #f6f2fb; border-radius: 8px; }
.pmc-demo .pmc-score-history small { display: block; color: var(--pmc-muted); font-size: 10px; }
.pmc-demo .pmc-score-history strong { display: block; font-size: 22px; margin-top: 6px; }
.pmc-demo .pmc-findings { display: grid; gap: 12px; }
.pmc-demo .pmc-finding { padding: 16px; border: 1px solid var(--pmc-border); border-radius: 9px; background: #fff; }
.pmc-demo .pmc-finding-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 11px; }
.pmc-demo .pmc-finding-title h4 { font-size: 13px; font-weight: 600; }
.pmc-demo .pmc-finding > p { font-size: 12px; }
.pmc-demo .pmc-tag { display: inline-block; padding: 5px 8px; border-radius: 6px; font-size: 9px; font-weight: 600; line-height: 1.3; white-space: nowrap; }
.pmc-demo .pmc-tag--active { color: #a0414b; background: #fbecee; }
.pmc-demo .pmc-tag--improving { color: #826018; background: #fbf1d8; }
.pmc-demo .pmc-tag--redeemed, .pmc-demo .pmc-tag--secure { color: #276346; background: #e9f5ed; }
.pmc-demo .pmc-tag--monitoring { color: #76621b; background: #f6f1df; }
.pmc-demo .pmc-tag--current_learning, .pmc-demo .pmc-tag--neutral { color: #6d4b94; background: #f1ebf9; }
.pmc-demo .pmc-evidence-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--pmc-muted); font-size: 11px !important; }
.pmc-demo .pmc-evidence-counts > span { margin-left: 15px; }
.pmc-demo details { margin-top: 13px; }
.pmc-demo summary { cursor: pointer; padding: 6px 0; color: var(--pmc-purple); font-size: 11px; font-weight: 600; }
.pmc-demo .pmc-evidence-table { min-width: 520px; margin-top: 10px; }
.pmc-demo .pmc-evidence-table th, .pmc-demo .pmc-evidence-table td { font-size: 10px; padding: 9px; }
.pmc-demo .pmc-select-field--small { min-width: 190px; }
.pmc-demo .pmc-heatmap-legend { display: flex; align-items: center; gap: 10px; padding: 0 21px 20px; color: var(--pmc-muted); font-size: 10px; flex-wrap: wrap; }
.pmc-demo .pmc-hub-gradient { padding: 7px 10px; color: #172233; border: 1px solid #17223330; border-radius: 6px; background: linear-gradient(90deg, #e36a67, #f1c453, #4ca86b); font-weight: 550; }
.pmc-demo .pmc-no-evidence-key { margin-left: auto; padding: 4px 7px; background: #f2eff5; border-radius: 4px; }
.pmc-demo .pmc-heatmap-controls { display: flex; gap: 15px; flex-wrap: wrap; padding: 0 21px 20px; }
.pmc-demo .pmc-heatmap-explanation { padding: 0 21px 20px; font-size: 12px; color: #655772; }
.pmc-demo .pmc-heatmap { width: max-content; min-width: 100%; table-layout: auto; }
.pmc-demo .pmc-heatmap th:first-child { width: 250px; min-width: 250px; max-width: 250px; }
.pmc-demo .pmc-heatmap th:not(:first-child), .pmc-demo .pmc-heatmap td { min-width: 150px; width: 150px; max-width: 150px; padding: 7px; }
.pmc-demo .pmc-heatmap thead th:not(:first-child) { text-align: left; padding-left: 16px; }
.pmc-demo .pmc-concept-link { display: flex; justify-content: space-between; gap: 12px; width: 100%; padding: 4px 0; color: #554266; font-size: 12px; font-weight: 550; line-height: 1.5; text-align: left; }
.pmc-demo .pmc-concept-link:hover { background: transparent; color: var(--pmc-purple); }
.pmc-demo .pmc-concept-link span { opacity: .55; }
.pmc-demo .pmc-heat-cell { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; text-align: left; width: 100%; min-height: 88px; gap: 5px; border-radius: 9px; padding: 10px; }
.pmc-demo .pmc-heat-cell strong { font-size: 18px; letter-spacing: -.03em; }
.pmc-demo .pmc-heat-cell small { font-size: 10px; line-height: 1.5; }
.pmc-demo .pmc-heat-cell > span { font-size: 10px; line-height: 1.4; }
.pmc-demo .pmc-heat-cell--continuous { border-color: #17223330; }
.pmc-demo .pmc-heat-cell--none { background: #edf0f3; border-color: #d6dde5; color: #526172; }
.pmc-demo .pmc-heat-cell--none strong { font-size: 12px; }
.pmc-demo .pmc-heat-cell:hover { color: inherit; background: #eee6f8; box-shadow: inset 0 0 0 2px #b89bd9; }
.pmc-demo .pmc-chart-scroll { width: 100%; overflow: auto; overscroll-behavior-x: contain; padding: 0 10px; scrollbar-width: thin; scrollbar-color: #c4b6d8 #f5f1f9; }
.pmc-demo .pmc-chart { width: 100%; min-width: 640px; height: auto; display: block; overflow: visible; background: #fff; }
.pmc-demo .pmc-chart text { fill: #655772; font-size: 12px; font-family: inherit; }
.pmc-demo .pmc-chart .pmc-axis-title { fill: #4d3d60; font-size: 13px; font-weight: 600; }
.pmc-demo .pmc-chart-grid { stroke: #e6e0ec; stroke-width: 1; }
.pmc-demo .pmc-chart-week { stroke: #f1edf5; stroke-width: 1; }
.pmc-demo .pmc-chart-midpoint { stroke: #b9a8cd; stroke-dasharray: 5 5; }
.pmc-demo .pmc-chart-zero { stroke: #a18bb9; stroke-width: 1.5; }
.pmc-demo .pmc-concept-point, .pmc-demo .pmc-progress-point { cursor: pointer; }
.pmc-demo .pmc-point-hit { fill: transparent; stroke: none; }
.pmc-demo .pmc-point-dot { fill: #8660b8; stroke: #fff; stroke-width: 2.5; }
.pmc-demo .pmc-concept-point:hover .pmc-point-dot, .pmc-demo .pmc-concept-point:focus .pmc-point-dot, .pmc-demo .pmc-concept-point--selected .pmc-point-dot { fill: #6f48a8; stroke: #352146; stroke-width: 3; }
.pmc-demo .pmc-chart-readout { min-height: 85px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 19px; padding: 17px 20px; margin: 0 22px 15px; border: 1px solid #e4d9ef; border-radius: 9px; background: #f6f0fc; font-size: 12px; }
.pmc-demo .pmc-chart-readout > strong { color: #563876; }
.pmc-demo .pmc-chart-readout > small { width: 100%; color: #75697e; font-size: 11px; }
.pmc-demo .pmc-chart-readout > p { color: #75697e; }
.pmc-demo .pmc-chart-readout .pmc-text-button { padding-top: 0; padding-bottom: 0; min-height: 28px; }
.pmc-demo .pmc-chart-note { padding: 0 22px 20px; font-size: 11px; color: #6b6278; line-height: 1.7; }
.pmc-demo .pmc-endpoints { display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: 14px; }
.pmc-demo .pmc-endpoint { padding: 17px; border: 1px solid #e5ddee; border-radius: 9px; background: #faf7fd; }
.pmc-demo .pmc-endpoint > span { display: block; color: #75697e; font-size: 11px; }
.pmc-demo .pmc-endpoint > strong { display: block; margin: 7px 0; color: #68418f; font-size: 29px; line-height: 1.25; letter-spacing: -.04em; }
.pmc-demo .pmc-endpoint > p { color: #675875; font-size: 11px; }
.pmc-demo .pmc-endpoint > small { display: block; margin-top: 5px; color: #75697e; font-size: 10px; }
.pmc-demo .pmc-endpoint--change { background: #eee6f8; }
.pmc-demo .pmc-concept-values { min-width: 650px; }
.pmc-demo .pmc-concept-values th:first-child { width: 35%; }
.pmc-demo .pmc-domain-options { margin: 0; border: 0; padding: 0 22px 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.pmc-demo .pmc-domain-options legend { padding: 0; margin-bottom: 11px; font-size: 12px; font-weight: 600; }
.pmc-demo .pmc-domain-options label { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 8px 10px; margin: 0; border: 1px solid #ded4ea; border-radius: 7px; background: #faf7fd; color: #5f4c70; font-size: 11px; cursor: pointer; }
.pmc-demo .pmc-domain-options input { width: 17px; height: 17px; accent-color: var(--pmc-purple); margin: 0; }
.pmc-demo .pmc-domain-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 23px; padding: 3px 22px 12px; }
.pmc-demo .pmc-domain-legend > span { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; color: #5f4c70; }
.pmc-demo .pmc-series-key { display: inline-block; width: 10px; height: 10px; background: var(--pmc-series-colour); flex-shrink: 0; }
.pmc-demo .pmc-series-key--circle { border-radius: 50%; }
.pmc-demo .pmc-series-key--square { border-radius: 1px; }
.pmc-demo .pmc-series-key--diamond { transform: rotate(45deg); }
.pmc-demo .pmc-domain-line { fill: none; stroke: var(--pmc-series-colour); stroke-width: 2.7; stroke-linecap: round; stroke-linejoin: round; }
.pmc-demo .pmc-progress-dot { fill: var(--pmc-series-colour); stroke: #fff; stroke-width: 2; }
.pmc-demo .pmc-progress-point:hover .pmc-progress-dot, .pmc-demo .pmc-progress-point:focus .pmc-progress-dot, .pmc-demo .pmc-progress-point--selected .pmc-progress-dot { stroke: #2f2347; stroke-width: 3; }
.pmc-demo .pmc-progress-values { min-width: 540px; }
.pmc-demo .pmc-progress-value { padding: 4px 0; color: #5d3e80; text-align: left; }
.pmc-demo .pmc-progress-value > strong { display: block; font-size: 14px; }
.pmc-demo .pmc-progress-value > small { display: block; font-size: 10px; color: #75697e; margin-top: 4px; }
.pmc-demo .pmc-quality-note { padding: 12px 17px; border: 1px solid #dfd5eb; border-radius: 8px; font-size: 12px; background: #f5effb; margin-bottom: 20px; }
.pmc-demo .pmc-quality-note ul { margin: 10px 0 0; padding-left: 20px; }
.pmc-demo .pmc-pathway-toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 22px; margin-bottom: 22px; }
.pmc-demo .pmc-pathway-toolbar .pmc-select-field { min-width: 250px; max-width: 70%; flex: 1; }
.pmc-demo .pmc-concept-intro { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: #ede4f8; border: 1px solid #dfd1ee; border-radius: 12px; padding: 24px; margin-bottom: 16px; }
.pmc-demo .pmc-concept-intro h3 { font-size: 23px; }
.pmc-demo .pmc-concept-intro p:last-child { color: #705e83; font-size: 11px; margin-top: 8px; }
.pmc-demo .pmc-concept-rate { text-align: right; flex-shrink: 0; }
.pmc-demo .pmc-concept-rate strong { display: block; color: var(--pmc-purple); font-size: 34px; letter-spacing: -.05em; }
.pmc-demo .pmc-concept-rate span { color: #705e83; font-size: 10px; }
.pmc-demo .pmc-investigation-note { padding: 14px 17px; border-left: 3px solid #a184c5; background: #efebf5; border-radius: 0 7px 7px 0; font-size: 12px; color: #655373; margin-bottom: 22px; }
.pmc-demo .pmc-pathway-questions { min-width: 550px; }
.pmc-demo .pmc-pathway-questions th:first-child { width: 24%; }
.pmc-demo .pmc-two-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
.pmc-demo .pmc-two-columns .pmc-panel-heading { align-items: flex-start; }
.pmc-demo .pmc-two-columns .pmc-panel-heading h3 { font-size: 17px; }
.pmc-demo .pmc-two-columns table { min-width: 320px; }
.pmc-demo .pmc-two-columns td, .pmc-demo .pmc-two-columns th { padding: 11px 14px; font-size: 11px; }
.pmc-demo .pmc-guidance p, .pmc-demo .pmc-guidance li { font-size: 12px; line-height: 1.75; color: #655772; }
.pmc-demo .pmc-guidance ul { padding-left: 18px; }
.pmc-demo .pmc-guidance li + li { margin-top: 8px; }
.pmc-demo .pmc-guidance h4 { font-size: 13px; margin: 20px 0 10px; }
.pmc-demo .pmc-cpa-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 22px 0; }
.pmc-demo .pmc-cpa-grid article { padding: 17px; border: 1px solid #e5daef; border-radius: 9px; background: #f9f6fd; }
.pmc-demo .pmc-cpa-label { display: block; color: var(--pmc-purple); font-size: 13px; font-weight: 700; margin-bottom: 13px; }
.pmc-demo .pmc-cpa-grid li { font-size: 11px; }
.pmc-demo .pmc-procedure { padding: 4px 18px 18px; border-radius: 8px; background: #f1f4ee; }
.pmc-demo .pmc-response-options { border-top: 1px solid var(--pmc-border); padding-top: 10px; margin-top: 20px; }
.pmc-demo .pmc-response-options article { padding: 0 0 13px; }
.pmc-demo .pmc-response-options article p + p { margin-top: 7px; }
.pmc-demo .pmc-guidance-source { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--pmc-border); }
.pmc-demo .pmc-guidance-source p, .pmc-demo .pmc-guidance-source a { font-size: 11px; }
.pmc-demo .pmc-guidance-source a { display: inline-block; margin-top: 9px; }
.pmc-demo .pmc-school-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pmc-demo .pmc-year-card { margin-bottom: 0; }
.pmc-demo .pmc-year-symbol { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; color: #8055af; background: #eee5f9; font-size: 22px; font-weight: 600; }
.pmc-demo .pmc-year-scores { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pmc-demo .pmc-year-scores .pmc-metric { background: #faf8fd; padding: 13px; gap: 8px; }
.pmc-demo .pmc-year-scores .pmc-metric strong { font-size: 24px; }
.pmc-demo .pmc-comparison-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 10px; padding: 16px 0 0; color: var(--pmc-muted); }
.pmc-demo .pmc-comparison-line strong { color: #634581; font-size: 12px; }
.pmc-demo .pmc-year-card h4 { margin: 20px 0 10px; font-size: 12px; }
.pmc-demo .pmc-pattern-list { list-style: none; margin: 0; padding: 0; }
.pmc-demo .pmc-pattern-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid #eee9f3; padding: 10px 0; font-size: 11px; }
.pmc-demo .pmc-pattern-list strong { flex-shrink: 0; color: var(--pmc-purple); }
.pmc-demo .pmc-pattern-list small { font-weight: 400; font-size: 10px; }
.pmc-demo .pmc-empty { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 35px 20px; color: #7d7188; background: #fbf9fd; font-size: 12px; text-align: center; }
.pmc-demo .pmc-empty > span { font-size: 24px; opacity: .55; }
.pmc-demo .pmc-footer { display: flex; justify-content: space-between; gap: 16px; padding: 17px 30px; background: white; border-top: 1px solid var(--pmc-border); color: #75697e; font-size: 10px; }
.pmc-demo .pmc-fixture-note { display: flex; gap: 14px; padding: 13px 30px; border-top: 1px solid var(--pmc-border); color: #746581; background: #f0eaf7; font-size: 10px; }
.pmc-demo .pmc-fixture-note strong { flex-shrink: 0; }
.pmc-demo .pmc-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1150px) {
  .pmc-demo .pmc-layout { grid-template-columns: 188px minmax(0, 1fr); }
  .pmc-demo .pmc-workspace { padding: 23px 20px 30px; }
  .pmc-demo .pmc-nav-button { font-size: 12px; gap: 8px; }
  .pmc-demo .pmc-intro { align-items: flex-start; }
  .pmc-demo .pmc-demo-badge { display: none; }
  .pmc-demo .pmc-mark-legend { display: none; }
  .pmc-demo .pmc-context-note { display: none; }
  .pmc-demo .pmc-metric { padding: 14px; }
  .pmc-demo .pmc-metric > strong { font-size: 24px; }
  .pmc-demo .pmc-two-columns { grid-template-columns: 1fr; gap: 0; }
  .pmc-demo .pmc-cpa-grid { grid-template-columns: 1fr; }
}
@media (max-width: 880px) {
  .pmc-demo { border-radius: 12px; }
  .pmc-demo .pmc-layout { grid-template-columns: minmax(0, 1fr); }
  .pmc-demo .pmc-sidebar { display: flex; flex-direction: column; padding: 12px 18px; border-right: 0; border-bottom: 1px solid var(--pmc-border); }
  .pmc-demo .pmc-sidebar nav { flex-direction: row; overflow-x: auto; padding: 2px 1px 6px; }
  .pmc-demo .pmc-nav-group { display: none; }
  .pmc-demo .pmc-nav-button { width: auto; min-height: 42px; padding: 10px 14px; white-space: nowrap; flex-shrink: 0; }
  .pmc-demo .pmc-nav-number, .pmc-demo .pmc-nav-arrow { display: none; }
  .pmc-demo .pmc-sidebar-note { display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 0; padding: 4px 1px 0; margin: 0; }
  .pmc-demo .pmc-sidebar-note > strong, .pmc-demo .pmc-sidebar-note > p { display: none; }
  .pmc-demo .pmc-sidebar-note small { order: -1; margin: 0; font-size: 10px; }
  .pmc-demo .pmc-reset { width: auto; padding: 5px 10px; min-height: 36px; font-size: 11px; }
  .pmc-demo .pmc-header { padding: 17px 22px; }
  .pmc-demo .pmc-intro { padding: 24px 22px; }
  .pmc-demo .pmc-page-heading { margin-top: 15px; }
  .pmc-demo h2 { font-size: 25px; }
  .pmc-demo .pmc-school-grid { gap: 14px; }
}
@media (max-width: 600px) {
  .pmc-demo { border-radius: 8px; font-size: 14px; }
  .pmc-demo .pmc-header { padding: 14px 16px; gap: 8px; flex-wrap: wrap; }
  .pmc-demo .pmc-brand { gap: 9px; font-size: 15px; max-width: 100%; }
  .pmc-demo .pmc-brand img { width: 290px; height: auto; }
  .pmc-demo .pmc-brand small { display: none; }
  .pmc-demo .pmc-home-link { font-size: 10px; gap: 5px; margin-left: auto; }
  .pmc-demo .pmc-intro { padding: 22px 18px; }
  .pmc-demo h1 { font-size: 24px; }
  .pmc-demo .pmc-subtitle { font-size: 11px; }
  .pmc-demo .pmc-sidebar { padding: 10px 13px; }
  .pmc-demo .pmc-workspace { padding: 18px 14px 25px; }
  .pmc-demo .pmc-controls { gap: 10px; flex-wrap: wrap; }
  .pmc-demo .pmc-controls .pmc-select-field { flex: 1; min-width: 0; }
  .pmc-demo .pmc-controls .pmc-select-field:last-child { min-width: 100%; }
  .pmc-demo select { font-size: 12px; min-height: 44px; padding-left: 9px; }
  .pmc-demo .pmc-page-heading { flex-wrap: wrap; gap: 15px; }
  .pmc-demo .pmc-page-heading p:last-child { font-size: 12px; }
  .pmc-demo .pmc-page-heading .pmc-button { width: 100%; min-height: 44px; }
  .pmc-demo .pmc-matrix-detail .pmc-panel-heading .pmc-button { width: 100%; }
  .pmc-demo h2 { font-size: 24px; }
  .pmc-demo h3 { font-size: 17px; }
  .pmc-demo .pmc-panel-heading { flex-wrap: wrap; gap: 12px; padding: 17px 15px; }
  .pmc-demo .pmc-panel-body { padding: 0 15px 18px; }
  .pmc-demo .pmc-entry-table { min-width: 1160px; }
  .pmc-demo .pmc-entry-table .pmc-sticky-name { width: 135px; padding-left: 12px; }
  .pmc-demo .pmc-entry-table .pmc-sticky-score { width: 75px; }
  .pmc-demo .pmc-mark-input { height: 40px; }
  .pmc-demo .pmc-table-footer { align-items: flex-start; flex-direction: column; gap: 6px; padding: 12px 15px; }
  .pmc-demo .pmc-question-card { padding: 17px 15px; gap: 13px; }
  .pmc-demo .pmc-question-number { width: 39px; height: 39px; font-size: 14px; }
  .pmc-demo .pmc-question-card h3 { font-size: 20px; }
  .pmc-demo .pmc-question-meta { font-size: 11px; }
  .pmc-demo .pmc-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pmc-demo .pmc-metric { padding: 14px 12px; }
  .pmc-demo .pmc-metric > span { min-height: 28px; font-size: 10px; }
  .pmc-demo .pmc-metric > strong { font-size: 25px; }
  .pmc-demo .pmc-finding-title { align-items: flex-start; gap: 10px; }
  .pmc-demo .pmc-finding { padding: 13px; }
  .pmc-demo .pmc-score-history { gap: 9px; }
  .pmc-demo .pmc-score-history > div { min-width: 0; flex: 1; padding: 11px; }
  .pmc-demo .pmc-score-history small { font-size: 9px; }
  .pmc-demo .pmc-heatmap-legend { padding: 0 15px 16px; font-size: 9px; gap: 6px; }
  .pmc-demo .pmc-no-evidence-key { margin-left: 0; }
  .pmc-demo .pmc-heatmap-controls { padding: 0 15px 16px; gap: 11px; }
  .pmc-demo .pmc-heatmap-controls .pmc-select-field { width: 100%; min-width: 0; }
  .pmc-demo .pmc-heatmap-explanation { padding: 0 15px 16px; font-size: 11px; }
  .pmc-demo .pmc-heatmap th:first-child { width: 180px; min-width: 180px; max-width: 180px; }
  .pmc-demo .pmc-chart-scroll { padding: 0; }
  .pmc-demo .pmc-chart-readout { margin: 0 15px 13px; padding: 13px 14px; gap: 7px; flex-direction: column; align-items: flex-start; }
  .pmc-demo .pmc-chart-note { padding: 0 15px 17px; }
  .pmc-demo .pmc-endpoints { grid-template-columns: 1fr 1fr; gap: 10px; }
  .pmc-demo .pmc-endpoint { padding: 12px; }
  .pmc-demo .pmc-endpoint--change { grid-column: 1 / -1; }
  .pmc-demo .pmc-endpoint > strong { font-size: 25px; }
  .pmc-demo .pmc-endpoint .pmc-text-button { white-space: normal; font-size: 10px; }
  .pmc-demo .pmc-domain-options { padding: 0 15px 15px; gap: 7px; }
  .pmc-demo .pmc-domain-options label { min-height: 42px; }
  .pmc-demo .pmc-domain-legend { padding: 0 15px 14px; gap: 10px 17px; }
  .pmc-demo .pmc-select-field--small { min-width: 100%; }
  .pmc-demo .pmc-pathway-toolbar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .pmc-demo .pmc-pathway-toolbar .pmc-select-field { min-width: 100%; max-width: 100%; }
  .pmc-demo .pmc-concept-intro { align-items: flex-start; flex-direction: column; gap: 15px; padding: 18px; }
  .pmc-demo .pmc-concept-intro h3 { font-size: 21px; }
  .pmc-demo .pmc-concept-rate { text-align: left; }
  .pmc-demo .pmc-school-grid { grid-template-columns: 1fr; }
  .pmc-demo .pmc-year-scores .pmc-metric > span { min-height: 0; }
  .pmc-demo .pmc-footer { flex-direction: column; gap: 5px; padding: 16px; font-size: 9px; }
  .pmc-demo .pmc-fixture-note { flex-direction: column; gap: 4px; padding: 13px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .pmc-demo *, .pmc-demo *::before, .pmc-demo *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Diagnostic Pathways: summaries first; complete source evidence on demand. */
.pmc-demo .pmc-pathway-view { position: relative; min-width: 0; }
.pmc-demo .pmc-pathway-overview { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin: 0 0 14px; padding: 20px 22px; border-left: 4px solid var(--pmc-purple); background: var(--pmc-lilac); border-radius: 0 9px 9px 0; }
.pmc-demo .pmc-pathway-overview h3 { font-size: 23px; }
.pmc-demo .pmc-pathway-overview p:last-child { margin-top: 5px; color: var(--pmc-muted); font-size: 12px; }
.pmc-demo .pmc-pathway-revision { color: var(--pmc-muted); font-size: 10px; white-space: nowrap; }
.pmc-demo .pmc-pathway-jumps { display: flex; flex-wrap: wrap; gap: 7px 22px; margin-bottom: 20px; font-size: 12px; font-weight: 650; }
.pmc-demo .pmc-pathway-jumps a { display: inline-flex; min-height: 40px; align-items: center; border-bottom: 1px solid #cdbbdf; }
.pmc-demo .pmc-pathway-section { scroll-margin-top: 22px; }
.pmc-demo .pmc-pathway-values { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px 20px; margin: 0 0 16px; }
.pmc-demo .pmc-pathway-values > div { min-width: 0; padding: 12px 14px; border: 1px solid var(--pmc-border); border-radius: 8px; }
.pmc-demo .pmc-pathway-values dt { font-size: 11px; color: var(--pmc-muted); }
.pmc-demo .pmc-pathway-values dd { margin: 5px 0 0; font-size: 16px; font-weight: 650; line-height: 1.3; }
.pmc-demo .pmc-pathway-summary dd { font-size: 27px; }
.pmc-demo .pmc-pathway-summary dt { min-height: 38px; font-size: 12px; font-weight: 600; }
.pmc-demo .pmc-pathway-summary p { margin-top: 9px; font-size: 13px; line-height: 1.5; }
.pmc-demo .pmc-pathway-values small { display: block; margin-top: 5px; font-size: 10px; color: var(--pmc-muted); }
.pmc-demo .pmc-pathway-summary small { margin-top: 9px; font-size: 12px; }
.pmc-demo .pmc-pathway-endpoints { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 24px; margin: 14px 0 6px; font-size: 12px; }
.pmc-demo .pmc-pathway-endpoints strong { display: inline-block; margin-bottom: 5px; }
.pmc-demo .pmc-pathway-subheading { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 16px; margin: 22px 0 8px; }
.pmc-demo .pmc-pathway-subheading span { color: var(--pmc-muted); font-size: 10px; }
.pmc-demo .pmc-pathway-view table { font-size: 12px; }
.pmc-demo .pmc-pathway-view table th, .pmc-demo .pmc-pathway-view table td { padding: 10px 12px; vertical-align: top; white-space: normal; }
.pmc-demo .pmc-pathway-view table thead th { font-size: 10px; color: var(--pmc-muted); background: #f8f6fb; }
.pmc-demo .pmc-pathway-question-list { min-width: 535px; }
.pmc-demo .pmc-pathway-pupil-list { min-width: 660px; }
.pmc-demo .pmc-pathway-pupil-list td:nth-child(3) { max-width: 170px; }
.pmc-demo .pmc-pathway-history { min-width: 700px; }
.pmc-demo .pmc-cell-note { display: block; margin-top: 4px; color: var(--pmc-muted); font-size: 10px; font-weight: 400; line-height: 1.45; }
.pmc-demo .pmc-pathway-status { display: block; margin: 0 0 3px; color: var(--pmc-purple); font-size: 11px; font-weight: 600; }
.pmc-demo .pmc-pathway-disclosure { padding: 0; margin: 14px 0 0; border-top: 1px solid var(--pmc-border); font-size: 12px; }
.pmc-demo .pmc-pathway-disclosure > summary { padding: 13px 2px; min-height: 44px; color: var(--pmc-purple); font-size: 12px; font-weight: 650; cursor: pointer; }
.pmc-demo .pmc-pathway-disclosure[open] > summary { margin-bottom: 5px; }
.pmc-demo .pmc-pathway-disclosure > p, .pmc-demo .pmc-pathway-disclosure > ul { margin: 9px 0 13px; }
.pmc-demo .pmc-pathway-disclosure > h4 { margin-top: 18px; }
.pmc-demo .pmc-pathway-view ul { padding-left: 20px; }
.pmc-demo .pmc-pathway-disclosure ul li + li { margin-top: 7px; }
.pmc-demo .pmc-pathway-note, .pmc-demo .pmc-pathway-mapping { margin: 12px 0 16px; padding: 12px 14px; border-left: 3px solid #bba3d5; background: #f8f5fc; font-size: 12px; }
.pmc-demo .pmc-pathway-interpretation { margin-top: 14px; color: var(--pmc-muted); font-size: 11px; }
.pmc-demo .pmc-pathway-empty { margin: 12px 0; padding: 15px; color: var(--pmc-muted); border: 1px dashed #cdbfdd; border-radius: 7px; font-size: 12px; }
.pmc-demo .pmc-pathway-pupil-summary { margin-bottom: 8px; font-size: 12px; }
.pmc-demo .pmc-pathway-list-explanation { margin: 10px 0; font-size: 13px; }
.pmc-demo .pmc-pathway-no-active { margin: 10px 0 13px; font-size: 12px; color: var(--pmc-muted); }
.pmc-demo .pmc-pathway-scroll-hint { display: none; }
.pmc-demo .pmc-pathway-detail { margin: 20px 0 4px; padding: 18px; border: 1px solid #bfa5da; border-radius: 9px; background: #fdfbff; scroll-margin-top: 22px; }
.pmc-demo .pmc-pathway-detail-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.pmc-demo .pmc-pathway-detail-title h4 { font-size: 19px; }
.pmc-demo .pmc-pathway-detail-title p:last-child { margin-top: 7px; font-size: 12px; }
.pmc-demo .pmc-pathway-view h5 { margin: 20px 0 8px; font-family: inherit; font-size: 14px; font-weight: 650; line-height: 1.4; color: var(--pmc-dark); letter-spacing: normal; }
.pmc-demo .pmc-pathway-detail-body { padding: 0 2px 10px; }
.pmc-demo .pmc-source-fields { margin: 10px 0; font-size: 11px; overflow-wrap: anywhere; }
.pmc-demo .pmc-source-fields > div { display: grid; grid-template-columns: minmax(100px,1fr) minmax(0,2fr); gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--pmc-border); }
.pmc-demo .pmc-source-fields dt { color: var(--pmc-muted); font-weight: 500; }
.pmc-demo .pmc-source-fields dd { min-width: 0; margin: 0; }
.pmc-demo .pmc-source-list { margin: 0; padding-left: 18px; }
.pmc-demo .pmc-pathway-prompts { padding: 0; margin: 0 0 22px; list-style: none; }
.pmc-demo .pmc-pathway-prompts li { display: grid; grid-template-columns: 100px minmax(0,1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--pmc-border); font-size: 13px; }
.pmc-demo .pmc-pathway-prompts strong { color: var(--pmc-purple); }
.pmc-demo .pmc-pathway-next { margin: 10px 0; }
.pmc-demo .pmc-pathway-next > div { display: grid; grid-template-columns: 160px minmax(0,1fr); gap: 16px; padding: 10px 0; font-size: 12px; }
.pmc-demo .pmc-pathway-next dt { font-weight: 650; }
.pmc-demo .pmc-pathway-next dd { margin: 0; color: var(--pmc-muted); }
.pmc-demo .pmc-pathway-method { padding: 0 4px; }
/* The Astra control stays functional, in the page flow, only on demo pages. */
body:has(.pmc-demo) #ast-scroll-top { position: static; inset: auto; transform: none; width: 44px; height: 44px; line-height: 44px; margin: 12px 20px 20px auto; }
@media (max-width: 700px) {
  .pmc-demo.pmc-demo--host-branded .pmc-header { padding: 7px 16px; justify-content: flex-end; }
  .pmc-demo .pmc-pathway-overview { padding: 16px; flex-direction: column; gap: 8px; }
  .pmc-demo .pmc-pathway-overview h3 { font-size: 21px; }
  .pmc-demo .pmc-pathway-jumps { gap: 6px 16px; font-size: 11px; }
  .pmc-demo .pmc-pathway-values { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }
  .pmc-demo .pmc-pathway-summary > div:last-child { grid-column: 1 / -1; }
  .pmc-demo .pmc-pathway-values > div { padding: 11px; }
  .pmc-demo .pmc-pathway-summary dd { font-size: 23px; }
  .pmc-demo .pmc-pathway-summary .pmc-pathway-unavailable { font-size: 18px; }
  .pmc-demo .pmc-pathway-summary > div:last-child dt { min-height: 0; }
  .pmc-demo .pmc-pathway-summary p, .pmc-demo .pmc-pathway-summary small { font-size: 12px; }
  .pmc-demo .pmc-pathway-section .pmc-panel-heading h3 { font-size: 19px; }
  .pmc-demo .pmc-pathway-scroll-hint { display: block; margin: 12px 0 8px; color: var(--pmc-purple); font-size: 12px; }
  .pmc-demo .pmc-pathway-question-list { display: block; min-width: 0; width: 100%; }
  .pmc-demo .pmc-pathway-question-list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pmc-demo .pmc-pathway-question-list tbody { display: block; width: 100%; }
  .pmc-demo .pmc-pathway-question-list tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 12px; padding: 15px 0; border-bottom: 1px solid var(--pmc-border); }
  .pmc-demo .pmc-pathway-view .pmc-pathway-question-list td { display: block; min-width: 0; padding: 0; border: 0; }
  .pmc-demo .pmc-pathway-question-list .pmc-question-period { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 12px; font-size: 12px; }
  .pmc-demo .pmc-pathway-question-list .pmc-question-expression { grid-column: 1 / -1; font-size: 15px; }
  .pmc-demo .pmc-pathway-question-list .pmc-cell-note { font-size: 12px; }
  .pmc-demo .pmc-pathway-question-list .pmc-question-count { align-self: center; font-size: 14px; }
  .pmc-demo .pmc-pathway-question-list .pmc-question-action { align-self: center; }
  .pmc-demo .pmc-pathway-question-list .pmc-question-action button { font-size: 13px; }
  .pmc-demo .pmc-pathway-endpoints { display: block; }
  .pmc-demo .pmc-pathway-endpoints span { display: block; margin: 7px 0; }
  .pmc-demo .pmc-pathway-detail { padding: 12px; }
  .pmc-demo .pmc-pathway-detail-title { flex-direction: column; gap: 5px; }
  .pmc-demo .pmc-pathway-detail .pmc-pathway-values { grid-template-columns: 1fr; }
  .pmc-demo .pmc-pathway-prompts li, .pmc-demo .pmc-pathway-next > div { grid-template-columns: 1fr; gap: 5px; }
  .pmc-demo .pmc-source-fields > div { grid-template-columns: 1fr; gap: 3px; }
  .pmc-demo .pmc-pathway-view .pmc-text-button { min-height: 44px; }
}

/* Guided demonstration: inline, non-modal and scoped to this application. */
.pmc-demo .pmc-tour-entry { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 18px 28px; background: #fff; border-bottom: 1px solid var(--pmc-border); }
.pmc-demo .pmc-tour-entry-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.pmc-demo .pmc-tour-entry-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 20px; font-size: 12px; }
.pmc-demo .pmc-tour-entry-links small { flex-basis: 100%; color: var(--pmc-muted); text-align: right; font-size: 11px; }
.pmc-demo .pmc-tour-coach { min-width: 0; margin: 0 0 24px; padding: 22px 24px 15px; border: 1px solid #b69acb; border-left: 5px solid var(--pmc-purple); border-radius: 12px; background: linear-gradient(115deg, #f8f3ff, #fff); box-shadow: 0 6px 18px #382b500b; scroll-margin-top: 20px; }
.pmc-demo .pmc-tour-topline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 5px 12px; }
.pmc-demo .pmc-tour-topline > div { display: flex; gap: 8px; }
.pmc-demo .pmc-tour-topline .pmc-eyebrow { margin: 0; }
.pmc-demo .pmc-tour-topline button { min-height: 38px; }
.pmc-demo .pmc-tour-coach h2 { margin: 8px 0 14px; max-width: 900px; font-size: clamp(20px, 2vw, 25px); }
.pmc-demo .pmc-tour-copy { max-width: 950px; font-size: 14px; }
.pmc-demo .pmc-tour-copy ul { list-style: none; }
.pmc-demo .pmc-tour-copy li + li { margin-top: 9px; }
.pmc-demo .pmc-tour-evidence { margin-top: 17px; padding: 14px 17px; background: #fff; border: 1px solid var(--pmc-border); border-radius: 9px; font-size: 13px; }
.pmc-demo .pmc-tour-evidence h4 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin-bottom: 8px; }
.pmc-demo .pmc-tour-evidence h4 small { color: var(--pmc-muted); font-weight: 400; letter-spacing: normal; }
.pmc-demo .pmc-tour-evidence ul { padding-left: 19px; }
.pmc-demo .pmc-tour-evidence li + li { margin-top: 5px; }
.pmc-demo .pmc-tour-evidence summary { cursor: pointer; min-height: 32px; }
.pmc-demo .pmc-tour-evidence details[open] summary { margin-bottom: 8px; }
.pmc-demo .pmc-tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-top: 14px; }
.pmc-demo .pmc-tour-actions a.pmc-button { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid var(--pmc-border); border-radius: 8px; background: #fff; text-decoration: none; font-size: 13px; font-weight: 600; }
.pmc-demo .pmc-tour-actions a.pmc-button:hover { background: var(--pmc-lilac); }
.pmc-demo .pmc-tour-navigation { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--pmc-border); }
.pmc-demo .pmc-tour-navigation .pmc-text-button { margin-left: auto; }
.pmc-demo .pmc-tour-coach button:disabled { opacity: .5; cursor: default; }
.pmc-demo .pmc-tour-keyboard { margin-top: 10px; color: var(--pmc-muted); font-size: 11px; }
.pmc-demo .pmc-tour-fallback, .pmc-demo .pmc-tour-exploring, .pmc-demo .pmc-tour-edit-target { margin-top: 14px; font-size: 13px; }
.pmc-demo .pmc-tour-edit-target strong { display: block; margin-bottom: 4px; }
.pmc-demo .pmc-tour-exploring { color: var(--pmc-muted); }
.pmc-demo .pmc-tour-return { margin: -6px 0 16px; }
.pmc-demo .pmc-tour-highlight { outline: 3px solid #7950a5; outline-offset: 3px; scroll-margin: 24px; }
.pmc-demo tr.pmc-tour-highlight { outline-offset: -3px; }
.pmc-demo .pmc-mark-input.pmc-tour-highlight { outline-width: 4px; outline-offset: 1px; }
@media (max-width: 700px) {
  .pmc-demo .pmc-tour-entry { padding: 15px 16px; align-items: flex-start; }
  .pmc-demo .pmc-tour-entry-buttons { width: 100%; }
  .pmc-demo .pmc-tour-entry-buttons button { flex: 1; min-width: 120px; min-height: 44px; white-space: normal; }
  .pmc-demo .pmc-tour-entry-links { justify-content: flex-start; }
  .pmc-demo .pmc-tour-entry-links small { text-align: left; }
  .pmc-demo .pmc-tour-coach { padding: 15px 14px 12px; border-left-width: 4px; }
  .pmc-demo .pmc-tour-coach h2 { font-size: 21px; }
  .pmc-demo .pmc-tour-copy { font-size: 13px; }
  .pmc-demo .pmc-tour-evidence { padding: 12px; }
  .pmc-demo .pmc-tour-actions { align-items: stretch; }
  .pmc-demo .pmc-tour-actions .pmc-button { min-height: 44px; white-space: normal; }
  .pmc-demo .pmc-tour-navigation button { min-height: 44px; }
  .pmc-demo .pmc-tour-navigation .pmc-text-button { margin-left: 0; }
  .pmc-demo .pmc-tour-keyboard { line-height: 1.5; }
}

/* Class Overview: original Hub score bands; scope remains inside the demo. */
.pmc-demo .pmc-class-overview { --pmc-overview-name-width: 190px; position: relative; min-width: 0; max-width: 100%; container-type: inline-size; container-name: pmc-overview; }
.pmc-demo .pmc-class-overview .pmc-panel { min-width: 0; max-width: 100%; margin-bottom: 22px; }
.pmc-demo .pmc-class-overview .pmc-panel-body { min-width: 0; }
.pmc-demo .pmc-class-overview .score-red { background: #fdeaea; color: #842e32; }
.pmc-demo .pmc-class-overview .score-amber { background: #fff4dd; color: #704700; }
.pmc-demo .pmc-class-overview .score-green { background: #e7f5ec; color: #205437; }
.pmc-demo .pmc-class-overview .score-purple { background: #eadcf8; color: #503274; }
.pmc-demo .pmc-class-overview .score-empty { background: #f3f5f7; color: #64748b; }
.pmc-demo .pmc-class-overview .score-unchanged { background: #f1f5f8; color: #435468; }
.pmc-demo .pmc-class-overview .pmc-overview-legend { display: flex; flex-wrap: wrap; gap: 8px 17px; margin: 0 0 12px; font-size: 12px; color: #435468; }
.pmc-demo .pmc-class-overview .pmc-overview-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.pmc-demo .pmc-class-overview .pmc-overview-legend i { width: 16px; height: 16px; border: 1px solid #0002; border-radius: 4px; }
.pmc-demo .pmc-class-overview .pmc-overview-scroll-hint { margin: 0 0 11px; color: var(--pmc-muted); font-size: 12px; line-height: 1.6; }
.pmc-demo .pmc-class-overview .pmc-overview-score-scroll { max-height: 650px; margin: 0; border: 1px solid #d9d2e2; border-radius: 9px; scroll-padding-left: calc(var(--pmc-overview-name-width) + 5px); }
.pmc-demo .pmc-class-overview .pmc-overview-score-scroll:focus-visible { outline: 3px solid #7950a5; outline-offset: 3px; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table { min-width: 0; max-width: none; table-layout: fixed; border-collapse: separate; font-variant-numeric: tabular-nums; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table th,
.pmc-demo .pmc-class-overview .pmc-overview-score-table td { padding: 8px 6px; text-align: center; height: 48px; border-bottom: 1px solid #e7edf2; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table thead th { position: sticky; top: 0; z-index: 2; height: 65px; background: #f1f5f8; color: #435468; font-size: 11px; line-height: 1.4; font-weight: 700; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table thead th small { display: block; margin-bottom: 3px; font-size: 10px; font-weight: 500; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table .pmc-overview-name { position: sticky; left: 0; z-index: 1; text-align: left; background: #fff; box-shadow: 1px 0 #d9d2e2; padding: 8px 12px; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table thead .pmc-overview-name { z-index: 3; background: #f1f5f8; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table .pmc-overview-score { font-size: 16px; font-weight: 700; border-right: 1px solid #fff; border-bottom: 1px solid #fff; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table .pmc-overview-change { position: sticky; right: 0; z-index: 2; border-left: 3px solid #c4ced8; box-shadow: -3px 0 5px #43546816; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table td.pmc-overview-change { font-size: 20px; font-weight: 800; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table thead .pmc-overview-change { z-index: 4; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table .pmc-overview-diagnostic-heading { font-size: 10px; overflow-wrap: anywhere; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table .pmc-overview-diagnostic-total { background: #fff; border-left: 1px solid #e7edf2; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table tfoot th,
.pmc-demo .pmc-class-overview .pmc-overview-score-table tfoot td { border-top: 2px solid #a3b6c8; font-weight: 800; height: 58px; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table tfoot .pmc-overview-name { background: #f1f5f8; font-size: 12px; }
.pmc-demo .pmc-class-overview .pmc-overview-score-table .pmc-overview-selected .pmc-overview-name { background: #f5eefc; box-shadow: inset 4px 0 #7950a5, 1px 0 #d9d2e2; }
.pmc-demo .pmc-class-overview .pmc-overview-week-button { display: block; width: 100%; padding: 6px 1px; min-height: 44px; border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.pmc-demo .pmc-class-overview .pmc-overview-week-button:hover { color: var(--pmc-purple); text-decoration: underline; }
.pmc-demo .pmc-class-overview .pmc-overview-week-button:focus-visible { outline: 3px solid #7950a5; outline-offset: -1px; border-radius: 4px; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-link { min-height: 36px; line-height: 1.4; padding: 5px 2px; font-size: 12px; text-align: left; white-space: normal; }
.pmc-demo .pmc-class-overview .pmc-overview-diagnostic-total .pmc-overview-pupil-link { text-align: center; }
.pmc-demo .pmc-class-overview .pmc-overview-diagnostic-count { display: inline-grid; place-items: center; min-width: 29px; min-height: 29px; border-radius: 7px; color: #435468; font-size: 13px; }
.pmc-demo .pmc-class-overview .pmc-overview-diagnostic-count.has-diagnostics { color: #842e32; background: #fdeaea; font-weight: 800; }
.pmc-demo .pmc-class-overview .pmc-overview-no-evidence { color: #64748b; }
.pmc-demo .pmc-class-overview .pmc-overview-footnote { margin: 15px 0 0; font-size: 11px; line-height: 1.7; color: var(--pmc-muted); }
.pmc-demo .pmc-class-overview .pmc-overview-section-note { margin: 0 0 16px; max-width: 900px; color: var(--pmc-muted); font-size: 12px; line-height: 1.7; }
.pmc-demo .pmc-class-overview .pmc-overview-pattern-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; align-items: start; }
.pmc-demo .pmc-class-overview .pmc-overview-pattern-card { min-width: 0; border: 1px solid #ded4e8; border-radius: 10px; padding: 17px; background: #fff; }
.pmc-demo .pmc-class-overview .pmc-overview-pattern-card h4 { font-size: 14px; line-height: 1.5; margin: 0 0 8px; overflow-wrap: anywhere; }
.pmc-demo .pmc-class-overview .pmc-overview-pattern-count { margin: 0 0 14px; color: var(--pmc-muted); font-size: 11px; }
.pmc-demo .pmc-class-overview .pmc-overview-watch-card { border-top: 3px solid #b99a55; }
.pmc-demo .pmc-class-overview .pmc-overview-disclosure { margin: 9px 0 0; border-top: 1px solid #ece6f1; }
.pmc-demo .pmc-class-overview .pmc-overview-disclosure > summary,
.pmc-demo .pmc-class-overview .pmc-overview-more > summary { display: list-item; min-height: 44px; padding: 12px 0; color: var(--pmc-purple); font-size: 12px; font-weight: 600; line-height: 1.6; cursor: pointer; }
.pmc-demo .pmc-class-overview .pmc-overview-disclosure > summary:focus-visible,
.pmc-demo .pmc-class-overview .pmc-overview-more > summary:focus-visible { outline: 3px solid #7950a5; outline-offset: 2px; border-radius: 3px; }
.pmc-demo .pmc-class-overview .pmc-overview-disclosure-body { padding: 0 0 12px; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.pmc-demo .pmc-class-overview .pmc-overview-disclosure-body p { margin: 9px 0; }
.pmc-demo .pmc-class-overview .pmc-overview-disclosure-body h5 { margin: 15px 0 5px; font-size: 12px; line-height: 1.6; }
.pmc-demo .pmc-class-overview .pmc-overview-disclosure-body ul { list-style: disc; padding-left: 19px; margin: 8px 0; }
.pmc-demo .pmc-class-overview .pmc-overview-disclosure-body li + li { margin-top: 7px; }
.pmc-demo .pmc-class-overview .pmc-overview-disclosure-body .pmc-overview-pupil-list { list-style: none; padding: 0; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-list > li { padding: 9px 0; border-bottom: 1px solid #eee8f3; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-list > li:last-child { border-bottom: 0; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-list .pmc-cell-note { font-size: 11px; line-height: 1.5; }
.pmc-demo .pmc-class-overview .pmc-overview-concept-links { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 12px; margin-top: 10px; }
.pmc-demo .pmc-class-overview .pmc-overview-concept-links .pmc-text-button { min-height: 36px; text-align: left; white-space: normal; overflow-wrap: anywhere; font-size: 11px; line-height: 1.6; }
.pmc-demo .pmc-class-overview .pmc-overview-guidance-label { font-weight: 700; color: var(--pmc-purple); }
.pmc-demo .pmc-class-overview .pmc-overview-more { margin-top: 16px; border-top: 1px solid var(--pmc-border); }
.pmc-demo .pmc-class-overview .pmc-overview-more > summary { padding: 14px 0; }
.pmc-demo .pmc-class-overview .pmc-overview-empty { margin: 12px 0; color: var(--pmc-muted); font-size: 12px; line-height: 1.7; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-panel { scroll-margin-top: 20px; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-panel .pmc-select-field { max-width: 360px; margin-bottom: 17px; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-latest { font-size: 13px; margin: 12px 0 20px; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-columns > section { min-width: 0; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-columns h4 { font-size: 14px; margin: 0 0 12px; }
.pmc-demo .pmc-class-overview .pmc-overview-pupil-finding { padding: 14px; margin-bottom: 12px; border: 1px solid var(--pmc-border); border-radius: 8px; }
.pmc-demo .pmc-class-overview .pmc-overview-finding-heading { display: flex; flex-wrap: wrap; align-items: start; gap: 9px; margin-bottom: 10px; }
.pmc-demo .pmc-class-overview .pmc-overview-finding-heading h5 { flex: 1 1 180px; font-size: 12px; line-height: 1.6; margin: 0; }
.pmc-demo .pmc-class-overview .pmc-overview-finding-heading .pmc-tag { white-space: normal; max-width: 100%; }
.pmc-demo .pmc-class-overview .pmc-overview-finding-metrics { font-size: 11px; line-height: 1.8; margin: 0; color: var(--pmc-muted); }
.pmc-demo .pmc-class-overview .pmc-overview-evidence-table { min-width: 650px; font-size: 11px; }
.pmc-demo .pmc-class-overview .pmc-overview-evidence-table p { margin: 5px 0; }
@media (max-width: 900px) {
  .pmc-demo .pmc-class-overview .pmc-overview-pattern-grid,
  .pmc-demo .pmc-class-overview .pmc-overview-pupil-columns { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pmc-demo .pmc-class-overview { --pmc-overview-name-width: 140px; }
  .pmc-demo .pmc-class-overview .pmc-panel-heading { flex-wrap: wrap; }
  .pmc-demo .pmc-class-overview .pmc-panel-body { padding-left: 14px; padding-right: 14px; }
  .pmc-demo .pmc-class-overview .pmc-overview-pattern-card { padding: 14px; }
  .pmc-demo .pmc-class-overview .pmc-overview-pupil-link,
  .pmc-demo .pmc-class-overview .pmc-overview-concept-links .pmc-text-button { min-height: 44px; }
  .pmc-demo .pmc-class-overview .pmc-overview-score-table th,
  .pmc-demo .pmc-class-overview .pmc-overview-score-table td { height: 54px; }
  .pmc-demo .pmc-class-overview .pmc-overview-pupil-panel .pmc-select-field { min-width: 0; max-width: 100%; }
}

@media (max-width: 360px) {
  .pmc-demo .pmc-class-overview { --pmc-overview-name-width: 100px; }
}

/* Keep each pupil's signed change visible without duplicating any values.
   Wide table regions can also retain names and the diagnostic count. */
@container pmc-overview (min-width: 550px) {
  .pmc-demo .pmc-class-overview .pmc-overview-score-scroll { scroll-padding-right: 207px; }
  .pmc-demo .pmc-class-overview .pmc-overview-score-table .pmc-overview-change { right: 112px; }
  .pmc-demo .pmc-class-overview .pmc-overview-diagnostic-heading,
  .pmc-demo .pmc-class-overview .pmc-overview-diagnostic-total { position: sticky; right: 0; z-index: 2; }
  .pmc-demo .pmc-class-overview .pmc-overview-score-table thead .pmc-overview-diagnostic-heading { z-index: 4; }
}
@container pmc-overview (max-width: 549px) {
  .pmc-demo .pmc-class-overview .pmc-overview-score-scroll { --pmc-overview-name-width: 100px; scroll-padding-left: 0; scroll-padding-right: 95px; }
  .pmc-demo .pmc-class-overview .pmc-overview-score-table .pmc-overview-name { left: auto; box-shadow: none; }
}
