:root {
  --ink: #20352e;
  --muted: #65746e;
  --soft-ink: #40544c;
  --green: #196b55;
  --green-dark: #125240;
  --green-soft: #e7f3ed;
  --mint: #cfe8dc;
  --gold: #e6a13a;
  --gold-soft: #fff3dc;
  --rose: #b84b50;
  --rose-soft: #fff0f0;
  --paper: #fffefa;
  --canvas: #f5f3ec;
  --line: #d9ddd6;
  --line-strong: #bdc7bf;
  --white: #ffffff;
  --report-correct: #14735f;
  --report-correct-soft: #e4f3ed;
  --report-incorrect: #b85716;
  --report-incorrect-soft: #fff0e4;
  --report-unanswered: #a8b0ac;
  --report-unanswered-soft: #ecefec;
  --report-blue: #336f96;
  --report-blue-soft: #eaf2f8;
  --report-violet: #665a9e;
  --report-violet-soft: #f0edf8;
  --shadow: 0 18px 50px rgba(39, 54, 47, 0.09);
  --shadow-small: 0 7px 22px rgba(39, 54, 47, 0.08);
  --radius-large: 24px;
  --radius-medium: 16px;
  --radius-small: 10px;
  font-family:
    "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--canvas);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 85% 7%, rgba(220, 237, 226, 0.85), transparent 28rem),
    var(--canvas);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(230, 161, 58, 0.55);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 12px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(189, 199, 191, 0.7);
  background: rgba(255, 254, 250, 0.9);
  backdrop-filter: blur(15px);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: flex;
  gap: 3px;
  align-items: flex-end;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 13px;
  background: var(--ink);
}

.brand-mark span {
  display: block;
  width: 6px;
  border-radius: 8px;
  background: var(--mint);
}

.brand-mark span:nth-child(1) {
  height: 11px;
}

.brand-mark span:nth-child(2) {
  height: 20px;
  background: #f5c66d;
}

.brand-mark span:nth-child(3) {
  height: 15px;
}

.top-nav {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(245, 243, 236, 0.8);
}

.nav-button {
  min-height: 40px;
  padding: 8px 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--soft-ink);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.7);
}

.nav-button.is-active {
  background: var(--white);
  box-shadow: 0 2px 8px rgba(32, 53, 46, 0.08);
  color: var(--green-dark);
}

main {
  width: min(1420px, calc(100% - 40px));
  margin: 0 auto;
}

.view {
  min-height: 65vh;
  padding: clamp(44px, 6vw, 88px) 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
  width: min(1180px, 100%);
  margin: 0 auto clamp(34px, 5vw, 56px);
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.25;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 850px;
  margin-bottom: 16px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -0.047em;
  line-height: 1.02;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.hero-copy,
.page-heading p,
.large-copy {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--soft-ink);
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.hero-actions > span {
  color: var(--muted);
  font-size: 14px;
}

.hero-sample-link {
  width: fit-content;
}

.local-badge {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 255px;
  padding: 15px 18px;
  border: 1px solid #c8ded3;
  border-radius: 16px;
  background: rgba(231, 243, 237, 0.8);
  color: var(--soft-ink);
  font-size: 13px;
}

.local-badge span:last-child,
.local-badge strong {
  display: block;
}

.local-badge strong {
  color: var(--green-dark);
  font-size: 14px;
}

.local-badge-dot {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border: 3px solid #bde0ce;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(25, 107, 85, 0.08);
}

.builder-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 26px;
  align-items: start;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.builder-main {
  display: grid;
  gap: 22px;
}

.panel {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-large);
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow-small);
}

.step-number {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 28px;
  border-right: 1px solid var(--line);
  background: var(--green-soft);
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.panel-content {
  min-width: 0;
  padding: clamp(24px, 4vw, 38px);
}

.panel-heading {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
}

.objective-heading {
  margin-bottom: 4px;
}

.section-help {
  max-width: 700px;
  margin-bottom: 28px;
  color: var(--muted);
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 750;
}

.text-input,
.text-area {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease;
}

.text-input {
  height: 48px;
  padding: 0 14px;
}

.text-area {
  min-height: 190px;
  padding: 13px 14px;
  resize: vertical;
  line-height: 1.55;
}

.text-input:hover,
.text-area:hover {
  border-color: #9aaba1;
}

.text-input:focus,
.text-area:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(25, 107, 85, 0.1);
  outline: none;
}

.code-input {
  margin-bottom: 8px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 18px;
  font-weight: 750;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.text-button,
.back-button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--green);
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
}

.text-button:hover,
.back-button:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

.back-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
}

.loading-row {
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 90px;
  color: var(--muted);
}

.loading-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.2s ease infinite;
}

@keyframes pulse {
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

.strand-group + .strand-group {
  margin-top: 30px;
}

.mode-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 27px;
  padding: 5px 10px;
  border: 1px solid #d8b76f;
  border-radius: 999px;
  background: #fff3d8;
  color: #6f4a0f;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.03em;
}

.mode-badge[hidden] {
  display: none;
}

.fluency-objective-group {
  margin-bottom: 34px;
  padding: 18px;
  border: 2px solid #dfbd72;
  border-radius: 18px;
  background: linear-gradient(135deg, #fff9e9, #fffdf7);
}

.fluency-group-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 13px;
  align-items: start;
  margin-bottom: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #ead5a5;
}

.fluency-group-header h3 {
  margin: 0;
  color: #5f420f;
  font-size: 17px;
  line-height: 1.35;
}

.fluency-group-header p {
  margin: 4px 0 0;
  color: #78633d;
  font-size: 12px;
}

.fluency-objective-group .objective-row:hover {
  background: rgba(255, 255, 255, 0.72);
}

.fluency-objective-group .objective-row.is-selected {
  border-color: #dfbd72;
  background: #fff4d8;
}

.strand-header {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.strand-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 25px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--ink);
  color: white;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.strand-header h3 {
  margin: 0;
  font-size: 16px;
}

.objective-list {
  display: grid;
  gap: 8px;
}

.objective-row {
  display: grid;
  grid-template-columns: minmax(230px, 1fr) minmax(260px, 0.78fr);
  gap: 20px;
  align-items: center;
  padding: 15px 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.objective-row:hover {
  background: #faf9f4;
}

.objective-row.is-selected {
  border-color: #bdd9cd;
  background: #f0f8f4;
}

.objective-choice {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  cursor: pointer;
}

.objective-choice input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--green);
}

.objective-title,
.objective-code {
  display: block;
}

.objective-title {
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.35;
}

.objective-code {
  margin-top: 3px;
  color: var(--muted);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.03em;
}

.slider-wrap {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 54px;
  gap: 12px;
  align-items: center;
  opacity: 0.42;
  transition: opacity 140ms ease;
}

.objective-row.is-selected .slider-wrap {
  opacity: 1;
}

.slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--green);
  cursor: pointer;
}

.slider-wrap input[type="range"]:disabled {
  cursor: default;
}

.slider-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.low-count-note {
  grid-column: 1 / -1;
  margin: 1px 0 0;
  color: #8a6428;
  font-size: 12px;
  line-height: 1.4;
}

.selection-card {
  position: sticky;
  top: 104px;
  padding: 26px;
  border-radius: var(--radius-large);
  background: var(--ink);
  box-shadow: var(--shadow);
  color: white;
}

.selection-card .eyebrow {
  color: #b7decc;
}

.selection-total {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 4px 0 22px;
}

.selection-total strong {
  font-size: 54px;
  font-weight: 750;
  letter-spacing: -0.055em;
  line-height: 1;
}

.selection-total span {
  color: #cad7d1;
  font-size: 14px;
}

.summary-list {
  margin: 0 0 24px;
}

.summary-list div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.summary-list dt {
  color: #b8c8c0;
  font-size: 12px;
}

.summary-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 750;
}

.primary-button,
.secondary-button,
.danger-button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease;
}

.primary-button {
  border: 1px solid var(--green);
  background: var(--green);
  box-shadow: 0 5px 13px rgba(18, 82, 64, 0.16);
  color: white;
}

.primary-button:hover:not(:disabled) {
  background: var(--green-dark);
  box-shadow: 0 7px 17px rgba(18, 82, 64, 0.22);
  transform: translateY(-1px);
}

.selection-card .primary-button {
  border-color: #f1c067;
  background: #f1c067;
  box-shadow: none;
  color: #243830;
}

.selection-card .primary-button:hover:not(:disabled) {
  background: #ffd078;
}

.primary-button:disabled {
  border-color: #8b9993;
  background: #8b9993;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 0.62;
}

.secondary-button {
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--green-dark);
}

.secondary-button:hover {
  border-color: #98aea2;
  background: #f7faf8;
}

.danger-button {
  border: 1px solid #d8a1a3;
  background: transparent;
  color: #9f373c;
}

.danger-button:hover {
  border-color: var(--rose);
  background: var(--rose-soft);
}

.solid-danger {
  border-color: var(--rose);
  background: var(--rose);
  color: white;
}

.solid-danger:hover {
  background: #9f373c;
  color: white;
}

.full-width {
  width: 100%;
}

.summary-note,
.print-hint,
.form-note,
.grid-footnote {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.selection-card .summary-note {
  color: #aebfb7;
  text-align: center;
}

.narrow-view {
  width: min(850px, 100%);
  margin: 0 auto;
}

.success-panel {
  padding: clamp(36px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.success-panel h1 {
  margin-right: auto;
  margin-left: auto;
  font-size: clamp(38px, 6vw, 58px);
}

.success-panel .large-copy {
  margin-right: auto;
  margin-left: auto;
}

.success-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 27px;
  font-weight: 900;
}

.code-card {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 590px;
  margin: 32px auto;
  padding: 18px 20px;
  border: 1px dashed #9cb8aa;
  border-radius: 15px;
  background: #f5faf7;
  text-align: left;
}

.code-card span,
.code-card strong,
.code-card small {
  display: block;
}

.code-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.code-card strong {
  margin: 3px 0;
  color: var(--ink);
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: clamp(18px, 3vw, 25px);
  letter-spacing: 0.055em;
}

.code-card small {
  color: var(--muted);
  font-size: 11px;
}

.action-row,
.dialog-actions,
.report-actions,
.grid-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.print-hint {
  max-width: 570px;
  margin: 18px auto 0;
}

.page-heading {
  display: flex;
  gap: 32px;
  align-items: end;
  justify-content: space-between;
  width: min(1180px, 100%);
  margin: 0 auto 38px;
}

.page-heading h1 {
  font-size: clamp(38px, 5vw, 58px);
}

.compact-heading {
  margin-bottom: 28px;
}

.compact-heading h1 {
  font-size: clamp(34px, 5vw, 50px);
}

.two-column-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(1020px, 100%);
  margin: 0 auto;
}

.simple-panel {
  display: block;
}

.simple-panel .panel-content {
  height: 100%;
}

.simple-panel form .primary-button {
  margin-top: 16px;
}

.saved-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.saved-item {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.saved-item:hover {
  border-color: #9ab5a7;
  background: #f7fbf8;
}

.saved-item strong,
.saved-item small {
  display: block;
}

.saved-item strong {
  margin-bottom: 2px;
  font-size: 14px;
}

.saved-item small {
  color: var(--muted);
  font-size: 11px;
}

.saved-item .saved-meta {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.empty-state {
  padding: 22px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.field-error {
  margin: 6px 0 0;
  color: var(--rose);
  font-size: 13px;
  font-weight: 700;
}

.roster-view {
  width: min(760px, 100%);
}

.roster-view > .panel + .panel {
  margin-top: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.wide-view {
  width: min(100%, 1380px);
  margin: 0 auto;
}

.grid-page-header,
.report-screen-header {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 25px;
}

.grid-page-header h1,
.report-screen-header h1 {
  margin-bottom: 8px;
  font-size: clamp(34px, 4.4vw, 52px);
}

.grid-page-header p,
.report-screen-header p {
  margin-bottom: 0;
  color: var(--muted);
}

.grid-actions,
.report-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
}

.autosave-status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
}

.keyboard-help {
  margin-bottom: 12px;
  padding: 11px 15px;
  border: 1px solid #cbdcd3;
  border-radius: 11px;
  background: var(--green-soft);
  color: var(--soft-ink);
  font-size: 13px;
}

.mark-grid-shell {
  position: relative;
  overflow: auto;
  max-height: calc(100vh - 260px);
  border: 1px solid var(--line-strong);
  border-radius: 17px;
  background: white;
  box-shadow: var(--shadow-small);
  overscroll-behavior: contain;
}

.mark-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.mark-grid th,
.mark-grid td {
  border-right: 1px solid #e1e5df;
  border-bottom: 1px solid #e1e5df;
}

.mark-grid thead th {
  position: sticky;
  top: 0;
  z-index: 6;
  height: 54px;
  background: #f4f7f4;
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.mark-grid .student-heading {
  left: 0;
  z-index: 9;
  width: 190px;
  min-width: 190px;
  padding: 0 16px;
  background: #eef3ef;
  text-align: left;
}

.mark-grid .objective-band {
  top: 0;
  height: 31px;
  padding: 0 8px;
  border-bottom: 1px solid #d4ddd7;
  background: #e7f1eb;
  color: var(--green-dark);
  font-size: 10px;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.mark-grid .question-heading {
  top: 31px;
  width: 67px;
  min-width: 67px;
  height: 43px;
  background: #f7f8f5;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.mark-grid tbody th {
  position: sticky;
  left: 0;
  z-index: 4;
  width: 190px;
  min-width: 190px;
  padding: 10px 13px;
  background: #fbfcfa;
  text-align: left;
}

.student-cell-name {
  display: block;
  overflow: hidden;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 780;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.progress-track {
  overflow: hidden;
  height: 5px;
  border-radius: 10px;
  background: #e0e6e1;
}

.progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 140ms ease;
}

.progress-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.mark-grid td {
  width: 67px;
  min-width: 67px;
  height: 58px;
  padding: 4px;
  background: white;
}

.mark-grid tr:nth-child(even) td {
  background: #fdfdfb;
}

.answer-cell {
  display: grid;
  grid-template-columns: repeat(2, 25px);
  grid-template-rows: repeat(2, 22px);
  gap: 2px;
  align-content: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 7px;
}

.answer-cell:focus {
  box-shadow: inset 0 0 0 2px var(--gold);
  outline: none;
}

.answer-option {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0;
  border: 1px solid #d9ded9;
  border-radius: 5px;
  background: #fafbf9;
  color: #718079;
  cursor: pointer;
  font-size: 9px;
  font-weight: 850;
}

.answer-option:hover {
  border-color: #94ad9f;
  color: var(--green-dark);
}

.answer-option.is-selected {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.objective-end {
  border-right: 3px solid #aec5b9 !important;
}

.grid-footnote {
  margin-top: 12px;
}

.report-screen-header {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.preview-data-banner {
  display: flex;
  width: min(1180px, 100%);
  gap: 14px;
  align-items: flex-start;
  margin: 0 auto 18px;
  padding: 16px 18px;
  border: 1px solid #dfbd72;
  border-radius: 14px;
  background: #fff8e7;
  color: #5f420f;
}

.preview-data-banner strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}

.preview-data-banner p {
  margin: 0;
  color: #78633d;
  font-size: 13px;
}

#class-report-screen,
.profiles-preview {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.report-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  margin-bottom: 18px;
  padding: 25px 28px;
  border-radius: 18px;
  background: var(--ink);
  color: white;
}

.report-cover .eyebrow {
  color: #b6ddca;
}

.report-cover h2 {
  margin-bottom: 5px;
}

.report-cover p {
  margin: 0;
  color: #cbd8d2;
}

.report-cover-stat {
  text-align: right;
}

.report-cover-stat strong,
.report-cover-stat span {
  display: block;
}

.report-cover-stat strong {
  font-size: 34px;
  letter-spacing: -0.04em;
}

.report-cover-stat span {
  color: #cbd8d2;
  font-size: 11px;
}

.report-caveat {
  margin: 0 0 16px;
  padding: 10px 13px;
  border: 1px solid #ebd2a7;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #76531f;
  font-size: 12px;
}

.class-capabilities {
  margin: 0 0 20px;
  padding: 22px;
  border: 1px solid #c7d8d1;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(231, 243, 237, 0.96), rgba(250, 252, 250, 0.98));
  box-shadow: 0 7px 20px rgba(39, 54, 47, 0.05);
}

.priorities-heading {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.priorities-heading h3,
.priorities-heading p {
  margin: 0;
}

.priorities-heading h3 {
  font-size: 20px;
}

.priorities-heading p {
  max-width: 570px;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.5;
}

.priority-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 12px;
}

.priority-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 7px 12px;
  align-content: start;
  min-width: 0;
  padding: 16px;
  border: 1px solid #d6dfda;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 3px 10px rgba(39, 54, 47, 0.04);
}

.priority-card > .priority-number {
  grid-column: 1;
  grid-row: 1 / span 5;
}

.priority-card > :not(.priority-number) {
  grid-column: 2;
}

.priority-number {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.priority-card-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  min-width: 0;
}

.priority-card-header h4,
.priority-card-header strong {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.priority-reason {
  margin: 0;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.5;
}

.achievement-band {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 24px;
  padding: 3px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.015em;
  line-height: 1.2;
  white-space: nowrap;
}

.achievement-band.band-secure,
.achievement-band.band-fluent,
.band-fluent .achievement-band,
.band-secure .achievement-band {
  border-color: #a9d2c2;
  background: var(--report-correct-soft);
  color: #0d5b49;
}

.achievement-band.band-consolidating,
.band-consolidating .achievement-band {
  border-color: #b9cede;
  background: var(--report-blue-soft);
  color: #255b7e;
}

.achievement-band.band-developing,
.achievement-band.band-developing-fluency,
.band-developing-fluency .achievement-band,
.band-developing .achievement-band {
  border-color: #e6cd8a;
  background: #fff5d9;
  color: #765700;
}

.achievement-band.band-needs-support,
.achievement-band.band-needs-targeted-practice,
.band-needs-targeted-practice .achievement-band,
.band-needs-support .achievement-band {
  border-color: #e5b39d;
  background: var(--report-incorrect-soft);
  color: #8b3d0f;
}

.achievement-band.band-not-answered,
.band-not-answered .achievement-band {
  border-color: #cfd4d1;
  background: var(--report-unanswered-soft);
  color: #53615b;
}

.class-section-card {
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid #ced7d2;
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 7px 20px rgba(39, 54, 47, 0.055);
}

.class-section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.2fr);
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-bottom: 1px solid #dce2de;
  background: #f7faf8;
}

.class-section-heading h3 {
  margin-bottom: 4px;
  font-size: 21px;
  line-height: 1.25;
}

.class-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.facility-line {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.facility-line strong {
  display: block;
  color: var(--green-dark);
  font-size: 19px;
}

.performance-summary {
  display: grid;
  grid-template-columns: minmax(96px, auto) minmax(170px, 1fr);
  gap: 11px 16px;
  align-items: center;
  min-width: 0;
}

.performance-copy {
  min-width: 0;
}

.performance-copy strong,
.performance-copy span {
  display: block;
}

.performance-copy strong {
  color: var(--ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1.2;
}

.performance-copy span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.performance-bar {
  display: flex;
  width: 100%;
  height: 13px;
  overflow: hidden;
  border: 1px solid #c8cfcb;
  border-radius: 999px;
  background: var(--report-unanswered-soft);
  box-shadow: inset 0 1px 2px rgba(32, 53, 46, 0.08);
}

.performance-segment {
  display: block;
  height: 100%;
}

.performance-segment + .performance-segment {
  border-left: 1px solid rgba(255, 255, 255, 0.9);
}

.performance-bar-interactive {
  height: 17px;
  cursor: help;
}

.performance-bar-interactive .performance-segment {
  transition: filter 120ms ease, box-shadow 120ms ease;
}

.performance-bar-interactive:focus-visible {
  outline: 3px solid rgba(230, 161, 58, 0.65);
  outline-offset: 3px;
}

@media (hover: hover) {
  .performance-bar-interactive .performance-segment[data-outcome-key]:hover {
    filter: brightness(1.16) saturate(1.08);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
  }
}

.report-outcome-tooltip {
  position: fixed;
  z-index: 1100;
  width: min(420px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: hidden;
  padding: 15px 16px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: #172d26;
  box-shadow: 0 16px 44px rgba(18, 38, 31, 0.3);
  color: white;
  pointer-events: none;
}

.report-outcome-tooltip.tooltip-density-high {
  width: min(520px, calc(100vw - 24px));
}

.report-outcome-tooltip-heading {
  display: block;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.25;
}

.report-outcome-tooltip-summary {
  margin: 3px 0 10px;
  color: #c9d9d2;
  font-size: 11px;
}

.report-outcome-tooltip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  max-height: min(460px, calc(100vh - 170px));
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
}

.tooltip-density-high .report-outcome-tooltip-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.report-outcome-tooltip-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
}

.report-outcome-tooltip-list li span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.report-outcome-tooltip-list li strong {
  color: #ffdc9b;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.report-outcome-tooltip-note {
  margin: 10px 0 0;
  color: #abc4b9;
  font-size: 10px;
  line-height: 1.35;
}

@media (max-width: 480px) {
  .tooltip-density-high .report-outcome-tooltip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.segment-correct,
.segment-fluent,
.legend-swatch.segment-fluent,
.legend-swatch.segment-correct {
  background: var(--report-correct);
}

.segment-developing-fluency,
.legend-swatch.segment-developing-fluency {
  background: #dcae3f;
}

.segment-correct-not-automatic,
.legend-swatch.segment-correct-not-automatic {
  background: #dcae3f;
}

.segment-needs-targeted-practice,
.legend-swatch.segment-needs-targeted-practice {
  background:
    repeating-linear-gradient(
      135deg,
      var(--report-incorrect) 0,
      var(--report-incorrect) 5px,
      #d77b3d 5px,
      #d77b3d 8px
    );
}

.segment-incorrect,
.legend-swatch.segment-incorrect {
  background:
    repeating-linear-gradient(
      135deg,
      var(--report-incorrect) 0,
      var(--report-incorrect) 4px,
      #d77b3d 4px,
      #d77b3d 7px
    );
}

.segment-unanswered,
.legend-swatch.segment-unanswered {
  background:
    repeating-linear-gradient(
      90deg,
      var(--report-unanswered) 0,
      var(--report-unanswered) 3px,
      #c8cecb 3px,
      #c8cecb 6px
    );
}

.segment-timed-out,
.legend-swatch.segment-timed-out {
  background:
    repeating-linear-gradient(
      90deg,
      #9aa6a0 0,
      #9aa6a0 3px,
      #c5ccc8 3px,
      #c5ccc8 6px
    );
}

.fluency-median {
  color: var(--green-dark) !important;
  font-weight: 720;
}

.fluency-achievement-summary .performance-copy span {
  max-width: 34ch;
}

.fluency-achievement-bar {
  background: #edf1ef;
}

.fluency-response-detail {
  padding: 20px 24px;
  border-bottom: 1px solid #e1e6e3;
  background: #f7faf8;
}

.fluency-response-detail h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 14px;
}

.fluency-response-detail-intro,
.fluency-response-timeout-note {
  margin: 0;
  color: var(--soft-ink);
  font-size: 11px;
  line-height: 1.45;
}

.fluency-response-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 9px;
}

.fluency-response-stat {
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #d8e0dc;
  border-radius: 10px;
  background: white;
}

.fluency-response-stat strong,
.fluency-response-stat span {
  display: block;
}

.fluency-response-stat strong {
  color: var(--ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.fluency-response-stat span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.fluency-response-median {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin: 0 0 8px;
  color: var(--green-dark);
  font-size: 11px;
}

.fluency-response-median strong {
  font-weight: 760;
}

.fluency-response-median span {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.fluency-response-detail-print {
  margin: 10px 0 13px;
  padding: 11px 13px;
  border: 1px solid #d8e0dc;
  border-radius: 10px;
  break-inside: avoid;
}

.fluency-response-detail-print .fluency-response-stats {
  margin: 8px 0 6px;
}

.fluency-response-detail-print .fluency-response-stat {
  padding: 6px 8px;
}

.fluency-question-responses {
  margin: 18px 0 4px;
}

.fluency-question-responses h5,
.fluency-question-responses h3 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 13px;
}

.fluency-question-responses-intro {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.fluency-question-response-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.fluency-question-response-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 11px;
  line-height: 1.35;
}

.fluency-question-response-table th,
.fluency-question-response-table td {
  padding: 9px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.fluency-question-response-table thead th {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fluency-question-response-table tbody th {
  max-width: 250px;
  color: var(--ink);
  font-weight: 700;
}

.fluency-question-outcome,
.fluency-question-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 760;
}

.outcome-fluent .fluency-question-outcome {
  color: var(--green-dark);
}

.outcome-correct-not-automatic .fluency-question-outcome {
  color: var(--gold);
}

.outcome-incorrect .fluency-question-outcome {
  color: var(--rose);
}

.outcome-timed-out .fluency-question-outcome {
  color: var(--muted);
}

.fluency-question-responses-print {
  break-inside: auto;
}

.fluency-question-responses-print .fluency-question-response-table {
  min-width: 0;
  font-size: 8.5px;
}

.fluency-question-responses-print .fluency-question-response-table th,
.fluency-question-responses-print .fluency-question-response-table td {
  padding: 5px 6px;
}

.performance-legend {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 5px 13px;
  align-items: center;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
  list-style: none;
}

.legend-item {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 0;
}

.legend-item strong {
  color: var(--soft-ink);
  font-variant-numeric: tabular-nums;
  font-weight: 780;
}

.legend-swatch {
  display: inline-block;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(32, 53, 46, 0.2);
  border-radius: 3px;
}

.pattern-list {
  display: grid;
  gap: 0;
  background: white;
}

.pattern-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) minmax(190px, 0.4fr);
  gap: 18px;
  align-items: start;
  padding: 21px 24px;
  background: white;
}

.pattern-card + .pattern-card {
  border-top: 1px solid #e1e6e3;
}

.pattern-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #b9d6ca;
  border-radius: 10px;
  background: var(--report-correct-soft);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.pattern-copy {
  min-width: 0;
}

.pattern-copy strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 13px;
}

.pattern-copy p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.55;
}

.pattern-title-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 5px;
}

.pattern-title-row h4,
.pattern-title-row strong {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.pattern-summary {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.5;
}

.pattern-reach {
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #dbe2de;
  border-radius: 12px;
  background: #fafbf9;
}

.reach-copy {
  display: flex;
  gap: 8px;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.reach-copy strong {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.reach-bar {
  height: 8px;
  overflow: hidden;
  border: 1px solid #cbd4cf;
  border-radius: 999px;
  background: #e6ebe8;
}

.reach-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--report-blue);
}

.affected-students {
  margin-top: 8px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.affected-students strong {
  display: block;
  margin-bottom: 3px;
  color: var(--green-dark);
  font-size: 12px;
}

.report-example {
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid #d8d7c8;
  border-radius: 11px;
  background: #fbfaf4;
}

.report-example-label {
  display: block;
  margin-bottom: 7px;
  color: #6c6444;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.report-example-layout {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.report-example-layout > :not(.report-example-figure) {
  flex: 1 1 auto;
  min-width: 0;
}

.report-example-content {
  min-width: 0;
}

.report-example-figure {
  flex: 0 0 72px;
  width: 72px;
  height: 62px;
}

.report-example-figure .partition-figure,
.report-example-figure.partition-figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.report-example-figure svg,
.report-example-figure .partition-figure svg {
  width: 100%;
  height: 100%;
}

.report-example-prompt {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 720;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.report-example-maths-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  align-items: center;
  margin-top: 7px;
}

.report-example-maths-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
}

.report-example-maths {
  margin: 0;
}

.maths-expression {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid #d7d5c8;
  border-radius: 7px;
  background: white;
  color: #243b33;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 1.04em;
  font-variant-numeric: tabular-nums;
  font-weight: 780;
  letter-spacing: 0.01em;
}

.report-example-answer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.answer-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 23px;
  padding: 3px 8px;
  border: 1px solid #c6d7cf;
  border-radius: 999px;
  background: white;
  color: var(--green-dark);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.positive-empty {
  padding: 22px;
  background: white;
  color: var(--green-dark);
  font-size: 13px;
}

.profiles-preview {
  margin-top: 52px;
  padding-top: 42px;
  border-top: 1px solid var(--line-strong);
}

.section-title-row {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.count-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
}

#profiles-screen {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.profile-card {
  overflow: hidden;
  border: 1px solid #ced7d2;
  border-radius: 18px;
  background: white;
  box-shadow: 0 5px 16px rgba(39, 54, 47, 0.045);
}

.profile-card-header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid #dce4df;
  background: #f3f8f5;
}

.profile-card-header h3 {
  margin: 0;
  font-size: 19px;
}

.profile-card-meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.profile-score {
  color: var(--green-dark);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.profile-detail-list {
  display: grid;
}

.profile-detail-row {
  padding: 16px 19px;
  border-top: 1px solid #edf0ec;
}

.profile-detail-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}

.profile-detail-heading h4 {
  margin: 0;
  font-size: 13px;
}

.profile-detail-heading strong {
  color: var(--green-dark);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
}

.profile-performance {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px 12px;
  align-items: center;
  margin-top: 9px;
}

.profile-performance .performance-bar {
  height: 9px;
}

.profile-performance .performance-legend {
  grid-column: 1 / -1;
  gap: 4px 10px;
  font-size: 9px;
}

.profile-performance > .achievement-band {
  grid-column: 2;
  grid-row: 1;
}

.profile-detail-patterns {
  display: grid;
  gap: 8px;
  margin-top: 9px;
}

.profile-detail-patterns p,
.profile-detail-positive,
.profile-detail-caveat {
  margin: 7px 0 0;
  color: var(--soft-ink);
  font-size: 11px;
  line-height: 1.5;
}

.profile-detail-patterns p {
  margin: 0;
}

.profile-can-do,
.profile-pattern-detail {
  margin-top: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.45;
}

.profile-can-do {
  border: 1px solid #c6ddd3;
  background: var(--report-correct-soft);
  color: #174f40;
}

.profile-pattern-detail {
  border: 1px solid #c9d8e4;
  background: var(--report-blue-soft);
  color: #254f6b;
}

.profile-can-do strong,
.profile-pattern-detail strong {
  color: inherit;
}

.profile-pattern-label {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.35;
}

.profile-detail-row .report-example {
  margin-top: 9px;
  padding: 9px 10px;
}

.profile-detail-row .report-example-layout {
  gap: 9px;
}

.profile-detail-row .report-example-figure {
  flex-basis: 54px;
  width: 54px;
  height: 48px;
}

.profile-detail-row .report-example-prompt {
  font-size: 11px;
}

.profile-detail-row .report-example-answer,
.profile-detail-row .answer-chip {
  font-size: 9px;
}

.profile-detail-positive {
  color: var(--green-dark);
}

.profile-detail-caveat {
  color: #76531f;
  font-size: 10px;
}

/* Report layout alignment for the generated class and profile DOM. */
.report-intro {
  margin: 6px 0 2px !important;
  color: var(--soft-ink) !important;
  font-size: 14px !important;
}

.report-objectives-heading {
  margin-top: 34px;
}

.priorities-heading h2 {
  margin: 2px 0 3px;
  font-size: 22px;
  line-height: 1.2;
}

.priority-card {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.priority-card > .priority-number,
.priority-card > :not(.priority-number) {
  grid-column: auto;
  grid-row: auto;
}

.priority-card-header {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
}

.priority-card-header h3 {
  margin: 1px 0 0;
  font-size: 14px;
  line-height: 1.3;
}

.priority-card .performance-summary {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.priority-card .performance-legend {
  grid-column: auto;
}

.priority-reason {
  display: grid;
  gap: 2px;
}

.priority-reason strong {
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.class-section-heading {
  grid-template-columns: minmax(0, 1fr) auto;
}

.class-section-card > .performance-summary {
  padding: 17px 24px;
  border-bottom: 1px solid #e1e6e3;
}

.performance-copy .achievement-band {
  display: inline-flex;
  margin-top: 7px;
}

.pattern-card {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.36fr);
}

.pattern-title-row {
  justify-content: flex-start;
}

.class-section-card > .report-example {
  margin: 0 24px 20px;
}

.maths-expression {
  font-family: "Cambria Math", "STIX Two Math", "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: 0;
}

.answer-chip {
  gap: 6px;
}

.answer-chip small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.answer-chip .maths-expression {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.profile-status,
.profile-objective-score {
  display: flex;
  gap: 8px;
  align-items: center;
}

.profile-status {
  flex-direction: column;
  align-items: flex-end;
}

.profile-objective-score {
  justify-content: flex-end;
}

.profile-detail-row > .performance-summary {
  grid-template-columns: minmax(150px, auto) minmax(140px, 1fr);
  gap: 8px 13px;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #e0e5e2;
  border-radius: 10px;
  background: #fbfcfb;
}

.profile-detail-row > .performance-summary .performance-copy strong {
  font-size: 13px;
}

.profile-detail-row > .performance-summary .performance-bar {
  height: 10px;
}

.profile-pattern-summary {
  display: block;
  margin-top: 2px;
  color: var(--soft-ink);
  font-size: 10px;
  line-height: 1.4;
}

.profile-can-do {
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-can-do > .report-example {
  margin: 0;
  border-color: #c6ddd3;
  background: var(--report-correct-soft);
}

.profile-pattern-detail > .report-example {
  margin-top: 8px;
  background: white;
}

.priority-card .priority-example {
  margin: 0;
  padding: 10px 11px;
  border-color: #d7ddd4;
  background: #fbfaf4;
}

.priority-card .priority-example .report-example-figure {
  flex-basis: 56px;
  width: 56px;
  height: 48px;
}

.priority-card .priority-example .report-example-prompt {
  font-size: 11px;
  line-height: 1.35;
}

.class-section-card > .objective-example {
  margin: 0 24px 16px;
  border-color: #d7ddd4;
  box-shadow: 0 2px 7px rgba(39, 54, 47, 0.035);
}

.profile-detail-row > .objective-example {
  margin-top: 10px;
  border-color: #d7ddd4;
  background: #fbfaf4;
}

.report-detail-toggle-row {
  display: flex;
  justify-content: flex-end;
}

.class-section-card > .report-detail-toggle-row {
  padding: 0 24px 18px;
}

.profile-detail-row > .report-detail-toggle-row {
  margin-top: 10px;
}

.report-detail-toggle {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 13px;
  border: 1px solid #b9cdc4;
  border-radius: 10px;
  background: #f3f8f5;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 820;
  line-height: 1.2;
  cursor: pointer;
}

.report-detail-toggle:hover {
  border-color: #8db4a4;
  background: #e9f3ee;
}

.report-detail-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  font-size: 17px;
  line-height: 1;
  transition: transform 150ms ease;
}

.report-detail-toggle[aria-expanded="true"] .report-detail-toggle-icon {
  transform: rotate(180deg);
}

.class-section-card > .report-detail-panel {
  border-top: 1px solid #e1e6e3;
  background: white;
}

.profile-detail-row > .report-detail-panel {
  margin: 12px -19px -16px;
  padding: 13px 19px 16px;
  border-top: 1px solid #e3e8e5;
  background: #fbfcfb;
}

.profile-detail-row > .report-detail-panel > :first-child {
  margin-top: 0;
}

.report-detail-panel .other-response-summary {
  margin-top: 0;
}

@media (prefers-reduced-motion: reduce) {
  .report-detail-toggle-icon {
    transition: none;
  }
}

.autosave-status.storage-warning {
  color: #8a5c15;
}

.privacy-footer {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(20px, 4vw, 64px);
  border-top: 1px solid var(--line);
  background: #eceae2;
}

.privacy-footer div {
  max-width: 800px;
}

.privacy-footer strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.privacy-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.confirm-dialog {
  width: min(470px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 22px;
  box-shadow: 0 25px 90px rgba(20, 34, 29, 0.28);
}

.confirm-dialog::backdrop {
  background: rgba(26, 39, 34, 0.56);
  backdrop-filter: blur(2px);
}

.confirm-dialog form {
  padding: 34px;
  text-align: center;
}

.confirm-dialog h2 {
  margin-bottom: 10px;
}

.confirm-dialog p {
  color: var(--muted);
}

.dialog-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--rose-soft);
  color: var(--rose);
  font-size: 21px;
  font-weight: 900;
}

.dialog-actions {
  margin-top: 26px;
}

.student-qr-dialog {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #f4faf7;
  color: var(--ink);
}

.student-qr-dialog::backdrop {
  background: rgba(15, 37, 29, 0.72);
}

.student-qr-dialog-shell {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vh, 62px) clamp(18px, 5vw, 70px);
  text-align: center;
}

.student-qr-dialog-shell h2 {
  margin: 6px 0 8px;
  font-size: clamp(32px, 4.4vw, 60px);
  letter-spacing: -0.035em;
}

.qr-dialog-instructions {
  max-width: 740px;
  margin: 0 0 clamp(16px, 2.2vh, 26px);
  color: var(--soft-ink);
  font-size: clamp(16px, 1.7vw, 22px);
}

.qr-dialog-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: inline-flex;
  min-height: 46px;
  gap: 7px;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid #b8d7c9;
  border-radius: 999px;
  background: white;
  box-shadow: var(--shadow-small);
  color: var(--green-dark);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.qr-dialog-close span {
  font-size: 22px;
  line-height: 1;
}

.qr-dialog-close:hover {
  border-color: var(--green);
}

.qr-dialog-close:focus-visible {
  outline: 3px solid rgba(25, 107, 85, 0.25);
  outline-offset: 3px;
}

.student-qr-dialog .qr-code-full {
  width: min(68vmin, 680px);
  flex: 0 0 auto;
  border: 12px solid white;
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(16, 49, 37, 0.18);
}

.qr-dialog-link {
  max-width: min(780px, 92vw);
  margin: clamp(13px, 1.8vh, 22px) 0 15px;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: clamp(12px, 1.1vw, 15px);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 200;
  max-width: min(370px, calc(100% - 44px));
  padding: 13px 17px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.fallback-nav-button {
  margin-left: 3px;
  border-left: 1px solid var(--line);
  border-radius: 0 10px 10px 0;
  color: var(--muted);
}

.delivery-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  max-width: 680px;
  margin: 28px auto 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: left;
}

.online-delivery {
  border-color: #9bcbb8;
  background: linear-gradient(135deg, #eef8f3, #f9fcfa);
  box-shadow: 0 12px 32px rgba(25, 107, 85, 0.1);
}

.working-delivery {
  border-color: #ead3a8;
  background: #fffbf1;
}

.delivery-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-weight: 850;
}

.secondary-icon {
  background: var(--gold);
  color: #3b2b13;
}

.delivery-copy h2 {
  margin-bottom: 8px;
  font-size: 25px;
}

.delivery-copy > p:not(.eyebrow) {
  margin-bottom: 18px;
  color: var(--soft-ink);
}

.student-link-panel {
  grid-column: 1 / -1;
  margin-top: 4px;
  padding: 20px;
  border-radius: 15px;
  background: white;
}

.student-share-copy > p {
  margin: 10px 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.student-share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 164px;
  gap: 22px;
  align-items: start;
}

.student-share-copy {
  min-width: 0;
}

.student-qr-card {
  padding: 10px;
  border: 1px solid #c9dfd5;
  border-radius: 16px;
  background: #f3faf7;
  text-align: center;
}

.qr-card-label {
  margin: 0 0 7px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.qr-preview-button {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid #bad7ca;
  border-radius: 12px;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
}

.qr-preview-button:hover {
  border-color: var(--green);
  box-shadow: 0 7px 18px rgba(25, 107, 85, 0.12);
}

.qr-preview-button:focus-visible {
  outline: 3px solid rgba(25, 107, 85, 0.25);
  outline-offset: 3px;
}

.qr-code {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: white;
}

.qr-code svg {
  display: block;
  width: 100%;
  height: 100%;
}

.qr-expand-label {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.qr-unavailable {
  display: flex;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  padding: 12px;
  color: var(--rose);
  font-size: 12px;
  font-weight: 750;
}

.copy-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.copy-field .text-input {
  min-width: 0;
  font-size: 13px;
}

.fallback-panel {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  max-width: 680px;
  margin: 34px auto 0;
  padding: 23px 0 0;
  border-top: 1px solid var(--line);
  text-align: left;
}

.fallback-panel h2 {
  margin-bottom: 5px;
  font-size: 21px;
}

.fallback-panel p:not(.eyebrow) {
  max-width: 470px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.fallback-panel .action-row {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
}

.recovery-code-card {
  margin-top: 30px;
  background: #fafaf7;
  opacity: 0.88;
}

.online-page-heading {
  align-items: center;
}

.backup-route {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  width: min(1020px, 100%);
  margin: 24px auto 0;
  padding: 16px 19px;
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  color: var(--muted);
  font-size: 13px;
}

.backup-route p {
  margin: 0;
}

.session-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.session-status-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  justify-content: flex-end;
}

.session-open {
  background: var(--green-soft);
  color: var(--green-dark);
}

.session-closed {
  background: #efefeb;
  color: var(--muted);
}

.live-link-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  margin-bottom: 22px;
  padding: 24px 27px;
  border: 1px solid #b8d7c9;
  border-radius: 20px;
  background: var(--green-soft);
}

.live-link-card h2 {
  margin: 0;
  font-size: 24px;
}

.online-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.online-summary-card {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.online-summary-card strong {
  font-size: 34px;
  letter-spacing: -0.04em;
}

.online-summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.live-responses-panel {
  margin-top: 0;
}

.online-attempts {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.online-attempt-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(220px, 1fr);
  gap: 22px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.online-attempt-student {
  display: flex;
  gap: 10px;
  align-items: center;
}

.attempt-submitted,
.attempt-progress {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
}

.attempt-submitted {
  background: var(--green-soft);
  color: var(--green-dark);
}

.attempt-progress {
  background: var(--gold-soft);
  color: #825918;
}

.online-attempt-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  font-size: 12px;
}

.online-progress-track {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ece8;
}

.online-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.session-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
}

.other-response-summary {
  margin: 12px 18px 18px;
  padding: 13px 15px;
  border-radius: 11px;
  background: var(--gold-soft);
  color: var(--soft-ink);
  font-size: 12px;
}

.other-response-summary p,
.profile-detail-other {
  margin: 4px 0 0;
}

.profile-detail-other {
  color: #76531d;
  font-size: 12px;
}

/* Assessment launch choices */
.assessment-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto 26px;
}

.assessment-options-heading {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

.assessment-options-heading h2 {
  margin-bottom: 0;
  font-size: clamp(25px, 3vw, 34px);
}

.assessment-option-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow-small);
}

.adaptive-option-card {
  grid-column: 1 / -1;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
  border-color: #91c4b0;
  background:
    linear-gradient(135deg, rgba(231, 243, 237, 0.98), rgba(255, 254, 250, 0.98));
  box-shadow: 0 14px 34px rgba(25, 107, 85, 0.12);
}

.build-option-card {
  grid-column: 1 / -1;
}

.adaptive-section-launcher {
  display: grid;
  grid-column: 1 / -1;
  gap: 13px;
  margin-top: 2px;
  padding-top: 17px;
  border-top: 1px solid rgba(25, 107, 85, 0.18);
}

.adaptive-section-launcher-heading {
  display: flex;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--soft-ink);
  font-size: 13px;
}

.adaptive-section-launcher-heading strong {
  color: var(--ink);
  font-size: 15px;
}

.adaptive-section-options {
  display: grid;
  gap: 14px;
}

.adaptive-section-group {
  display: grid;
  gap: 9px;
}

.adaptive-section-group-heading {
  display: flex;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.adaptive-section-group-heading strong {
  color: var(--ink);
  font-size: 13px;
}

.adaptive-section-button-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.adaptive-section-group.is-timed {
  padding: 13px;
  border: 1px solid #e4c886;
  border-radius: 15px;
  background: rgba(255, 240, 203, 0.42);
}

.adaptive-section-group.is-timed .adaptive-section-button-grid {
  grid-template-columns: 1fr;
}

.adaptive-section-button,
.adaptive-comprehensive-button {
  display: grid;
  gap: 5px;
  min-width: 0;
  min-height: 126px;
  padding: 15px;
  border: 1px solid #acd1c1;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--soft-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.adaptive-section-button strong,
.adaptive-comprehensive-button strong {
  color: var(--green-dark);
  font-size: 14px;
  line-height: 1.25;
}

.adaptive-section-button span,
.adaptive-comprehensive-button span {
  font-size: 12px;
  line-height: 1.4;
}

.adaptive-section-button small {
  align-self: end;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.adaptive-section-button.is-timed {
  grid-template-columns: minmax(145px, 0.75fr) minmax(220px, 1.5fr) auto;
  min-height: 0;
  align-items: center;
  border-color: #d7b967;
  background: rgba(255, 253, 245, 0.94);
}

.adaptive-section-button.is-timed strong {
  color: #76531d;
}

.adaptive-section-button.is-timed small {
  align-self: center;
}

.adaptive-section-button:hover:not(:disabled),
.adaptive-section-button:focus-visible,
.adaptive-comprehensive-button:hover:not(:disabled),
.adaptive-comprehensive-button:focus-visible {
  transform: translateY(-2px);
  border-color: var(--green);
  box-shadow: 0 9px 20px rgba(25, 107, 85, 0.13);
}

.adaptive-section-button.is-selected,
.adaptive-comprehensive-button.is-selected {
  border-color: var(--green-dark);
  background: #f4fbf7;
  box-shadow:
    0 0 0 2px rgba(25, 107, 85, 0.16),
    0 9px 20px rgba(25, 107, 85, 0.1);
}

.adaptive-section-button.is-timed.is-selected {
  border-color: #88611f;
  background: #fffaf0;
  box-shadow:
    0 0 0 2px rgba(136, 97, 31, 0.16),
    0 9px 20px rgba(118, 83, 29, 0.1);
}

.adaptive-section-button:disabled,
.adaptive-comprehensive-button:disabled {
  cursor: wait;
  opacity: 0.58;
}

.adaptive-comprehensive-button {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 0;
  align-items: center;
  padding: 12px 15px;
  background: rgba(255, 254, 250, 0.78);
}

.adaptive-comprehensive-button span {
  color: var(--muted);
}

.adaptive-section-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.28fr);
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid #91c4b0;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(25, 107, 85, 0.09);
}

.adaptive-section-preview:empty {
  display: none;
}

.adaptive-section-preview-copy {
  min-width: 0;
}

.adaptive-section-preview-copy .eyebrow {
  margin-bottom: 4px;
}

.adaptive-section-preview-copy h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 18px;
}

.adaptive-section-preview-description {
  margin: 6px 0 13px;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.adaptive-section-skill-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.adaptive-section-skill-list.is-short {
  grid-template-columns: 1fr;
}

.adaptive-section-skill-list li {
  position: relative;
  padding-left: 16px;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.4;
}

.adaptive-section-skill-list li::before {
  position: absolute;
  top: 0.45em;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  content: "";
}

.adaptive-section-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.adaptive-section-preview-chip {
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 800;
}

.adaptive-section-preview-chip.is-timed {
  background: var(--gold-soft);
  color: #76531d;
}

.adaptive-section-preview-actions {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.adaptive-section-start {
  width: 100%;
  min-height: 48px;
}

.adaptive-section-preview-actions small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  text-align: center;
}

.assessment-option-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 14px;
  background: var(--green);
  color: white;
  font-size: 22px;
  font-weight: 900;
}

.build-option-icon {
  background: var(--gold-soft);
  color: #7b5111;
}

.assessment-option-copy {
  min-width: 0;
}

.assessment-option-copy .mode-badge {
  margin-bottom: 8px;
}

.assessment-option-copy h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 20px;
}

.assessment-option-copy p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
}

.assessment-option-card > .primary-button,
.assessment-option-link {
  min-width: 154px;
  text-align: center;
  white-space: nowrap;
}

.assessment-option-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.adaptive-mode-badge {
  border-color: #9bcbb8;
  background: var(--green-soft);
  color: var(--green-dark);
}

/* Adaptive live matrix */
.online-attempts.is-adaptive,
.online-attempts.adaptive-online-attempts {
  display: block;
}

.adaptive-matrix-intro {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 13px;
  color: var(--muted);
  font-size: 12px;
}

.adaptive-matrix-intro p {
  margin: 0;
}

.adaptive-matrix-shell {
  position: relative;
  max-width: 100%;
  max-height: min(68vh, 720px);
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: white;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.adaptive-matrix {
  width: max-content;
  min-width: 100%;
  border-spacing: 0;
  border-collapse: separate;
  color: var(--ink);
  font-size: 11px;
}

.adaptive-matrix th,
.adaptive-matrix td {
  min-width: 124px;
  padding: 6px;
  border-right: 1px solid #e3e7e4;
  border-bottom: 1px solid #e3e7e4;
  background: white;
  text-align: center;
  vertical-align: middle;
}

.adaptive-matrix thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 88px;
  background: #eff5f2;
  box-shadow: inset 0 -1px #c8d2cd;
  color: var(--green-dark);
  font-weight: 850;
  line-height: 1.25;
}

.adaptive-matrix thead th strong,
.adaptive-matrix thead th small {
  display: block;
}

.adaptive-matrix thead th small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.adaptive-matrix thead th:first-child,
.adaptive-matrix .adaptive-matrix-student-heading {
  left: 0;
  z-index: 8;
  min-width: 230px;
  text-align: left;
}

.adaptive-matrix tbody th,
.adaptive-matrix .adaptive-matrix-student-cell {
  position: sticky;
  left: 0;
  z-index: 4;
  min-width: 230px;
  max-width: 230px;
  padding: 10px 12px;
  background: #fbfcfa;
  box-shadow: inset -1px 0 #cdd5d1;
  text-align: left;
}

.adaptive-matrix tbody tr:nth-child(even) td,
.adaptive-matrix tbody tr:nth-child(even) th {
  background-color: #fafbf9;
}

.adaptive-matrix-student-cell strong,
.adaptive-matrix-student-cell span {
  display: block;
}

.adaptive-matrix-student-cell strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.adaptive-matrix-student-cell span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.35;
}

.adaptive-matrix-student-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.adaptive-status-cell,
.adaptive-matrix-cell button {
  display: inline-flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 6px 7px;
  border: 1px solid #cfd5d2;
  border-radius: 9px;
  background: var(--report-unanswered-soft);
  color: #53615b;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.adaptive-status-cell:hover,
.adaptive-matrix-cell button:hover {
  border-color: #779b8b;
  box-shadow: 0 3px 10px rgba(32, 53, 46, 0.1);
}

.adaptive-status-cell:disabled,
.adaptive-matrix-cell button:disabled {
  cursor: default;
  box-shadow: none;
}

.adaptive-status-cell.status-secure,
.adaptive-status-cell.status-fluent,
[data-adaptive-cell][data-status-key="secure"],
[data-adaptive-cell][data-status-key="fluent"] {
  border-color: #9ecbbb;
  background: var(--report-correct-soft);
  color: #0d5b49;
}

.adaptive-status-cell.status-developing,
.adaptive-status-cell.status-accurate-not-automatic,
[data-adaptive-cell][data-status-key="developing"],
[data-adaptive-cell][data-status-key="accurate-not-automatic"] {
  border-color: #e2c576;
  background: #fff5d9;
  color: #715400;
}

.adaptive-status-cell.status-misconception,
[data-adaptive-cell][data-status-key="misconception"] {
  border-color: #b9add8;
  background: var(--report-violet-soft);
  color: #51447f;
}

.adaptive-status-cell.status-not-secure,
[data-adaptive-cell][data-status-key="not-secure"] {
  border-color: #e3ae9a;
  background: var(--report-incorrect-soft);
  color: #873b0e;
}

.adaptive-status-cell.status-in-progress,
[data-adaptive-cell][data-status-key="in-progress"] {
  border-color: #abc6d8;
  background: var(--report-blue-soft);
  color: #255b7e;
}

.adaptive-status-cell.status-not-reached,
[data-adaptive-cell][data-status-key="not-reached"] {
  border-color: #d6dbd8;
  background: #f2f3f1;
  color: #68736e;
}

.adaptive-handoff-button,
[data-action="issue-adaptive-handoff"] {
  min-height: 32px;
  padding: 5px 9px;
  border: 1px solid #9dbcae;
  border-radius: 8px;
  background: white;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
}

/* Adaptive evidence and new-device dialogs */
.adaptive-dialog {
  width: min(940px, calc(100% - 28px));
  max-height: min(88vh, 900px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 28px 90px rgba(22, 38, 31, 0.3);
  color: var(--ink);
}

.adaptive-dialog::backdrop {
  background: rgba(20, 34, 28, 0.62);
  backdrop-filter: blur(3px);
}

.adaptive-dialog-shell {
  position: relative;
  max-height: min(88vh, 900px);
  padding: clamp(25px, 5vw, 44px);
  overflow: auto;
}

.adaptive-dialog-shell > .eyebrow {
  padding-right: 90px;
}

.adaptive-dialog-shell > h2 {
  max-width: 720px;
  margin-bottom: 18px;
}

.adaptive-dialog-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  gap: 6px;
  min-height: 38px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: white;
  color: var(--soft-ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.adaptive-dialog-close span {
  font-size: 18px;
  line-height: 1;
}

.adaptive-evidence-body {
  display: grid;
  gap: 14px;
}

.adaptive-evidence-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #c9d9d1;
  border-radius: 12px;
  background: #f1f7f4;
}

.adaptive-evidence-summary p,
.adaptive-evidence-summary span {
  margin: 0;
  color: var(--soft-ink);
  font-size: 12px;
}

.adaptive-evidence-list {
  display: grid;
  gap: 10px;
}

.adaptive-evidence-item,
.adaptive-evidence-row {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
}

.adaptive-evidence-item-header,
.adaptive-evidence-row-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 9px;
}

.adaptive-evidence-question {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 780;
}

.adaptive-evidence-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.adaptive-evidence-option,
.adaptive-evidence-answer {
  padding: 7px 9px;
  border-radius: 8px;
  background: #f4f5f3;
  color: var(--soft-ink);
  font-size: 11px;
}

.adaptive-evidence-option.is-selected,
.adaptive-evidence-answer.is-selected {
  background: var(--gold-soft);
  color: #6c4a16;
  font-weight: 800;
}

.adaptive-evidence-meta,
.adaptive-evidence-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 10px;
}

.adaptive-evidence-meta span,
.adaptive-evidence-tags span {
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef1ef;
}

.adaptive-handoff-warning {
  margin: 0 0 20px;
  padding: 11px 13px;
  border: 1px solid #e4c98d;
  border-radius: 10px;
  background: var(--gold-soft);
  color: #674915;
  font-size: 13px;
}

.adaptive-verification-warning {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 2px solid #a4482d;
  border-radius: 10px;
  background: #fff2ec;
  color: #712f1e;
  font-weight: 700;
}

.adaptive-handoff-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: start;
}

.adaptive-handoff-copy {
  min-width: 0;
}

.adaptive-handoff-expiry {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.adaptive-handoff-qr-card {
  width: 100%;
}

/* Adaptive reports and profiles */
.adaptive-report-matrix {
  margin-bottom: 24px;
}

.adaptive-report-matrix .adaptive-matrix-shell {
  max-height: none;
}

.adaptive-report-section,
.adaptive-pattern-summary {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #cad7d1;
  border-radius: 17px;
  background: var(--paper);
  box-shadow: var(--shadow-small);
}

.adaptive-pattern-list {
  display: grid;
  gap: 11px;
}

.adaptive-pattern-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 16px;
  border: 1px solid #d9d2e9;
  border-radius: 12px;
  background: #faf8fd;
}

.adaptive-pattern-card h3,
.adaptive-pattern-card h4 {
  margin-bottom: 5px;
}

.adaptive-pattern-card p {
  margin-bottom: 7px;
  color: var(--soft-ink);
  font-size: 12px;
}

.adaptive-pattern-count {
  color: #51447f;
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.adaptive-objective-facility {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  padding: 9px 0;
  border-top: 1px solid #e5e9e6;
  color: var(--soft-ink);
  font-size: 12px;
}

.adaptive-profile-card {
  overflow: hidden;
  border: 1px solid #ced7d2;
  border-radius: 18px;
  background: white;
  box-shadow: 0 5px 16px rgba(39, 54, 47, 0.045);
}

.adaptive-profile-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.adaptive-profile-overview-item {
  min-width: 0;
  padding: 7px;
  border: 1px solid #d9dfdc;
  border-radius: 8px;
  background: #f8faf8;
  font-size: 9px;
  line-height: 1.25;
}

.adaptive-profile-overview-item strong,
.adaptive-profile-overview-item span {
  display: block;
}

.adaptive-profile-overview-item span {
  margin-top: 3px;
  color: var(--muted);
}

.adaptive-profile-objectives {
  display: grid;
}

.adaptive-profile-objective {
  padding: 14px 17px;
  border-top: 1px solid #edf0ec;
}

.adaptive-profile-objective-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.adaptive-profile-objective h4 {
  margin: 0;
  font-size: 13px;
}

.adaptive-based-on {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.adaptive-profile-meaning {
  margin: 9px 0 0;
  padding: 9px 11px;
  border-left: 3px solid var(--report-violet);
  background: var(--report-violet-soft);
  color: #4f4772;
  font-size: 11px;
  line-height: 1.45;
}

.adaptive-status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 25px;
  padding: 4px 8px;
  border: 1px solid #cfd5d2;
  border-radius: 999px;
  background: var(--report-unanswered-soft);
  color: #53615b;
  font-size: 9px;
  font-weight: 850;
  line-height: 1.2;
  text-align: center;
}

.adaptive-status-badge.status-secure,
.adaptive-status-badge.status-fluent {
  border-color: #9ecbbb;
  background: var(--report-correct-soft);
  color: #0d5b49;
}

.adaptive-status-badge.status-developing,
.adaptive-status-badge.status-accurate-not-automatic {
  border-color: #e2c576;
  background: #fff5d9;
  color: #715400;
}

.adaptive-status-badge.status-misconception {
  border-color: #b9add8;
  background: var(--report-violet-soft);
  color: #51447f;
}

.adaptive-status-badge.status-not-secure {
  border-color: #e3ae9a;
  background: var(--report-incorrect-soft);
  color: #873b0e;
}

.adaptive-status-badge.status-in-progress {
  border-color: #abc6d8;
  background: var(--report-blue-soft);
  color: #255b7e;
}

/* Hybrid adaptive results: open tables, restrained panels, and one clear drill-down. */
#reports-view.is-adaptive-results .report-screen-header,
#reports-view.is-adaptive-results #class-report-screen,
#reports-view.is-adaptive-results .profiles-preview {
  width: min(1340px, 100%);
}

#reports-view.is-adaptive-results .report-screen-header {
  align-items: flex-end;
  margin-bottom: 28px;
}

#reports-view.is-adaptive-results .report-screen-header .eyebrow,
#reports-view.is-adaptive-results #reports-mode-badge {
  display: none;
}

#reports-view.is-adaptive-results .report-screen-header h1 {
  margin: 18px 0 8px;
  color: var(--green-dark);
  font-size: clamp(40px, 4.6vw, 58px);
  line-height: 0.98;
}

#reports-view.is-adaptive-results .report-screen-header .report-intro {
  margin: 0 0 5px !important;
  color: var(--ink) !important;
  font-size: 22px !important;
  font-weight: 760;
}

#reports-view.is-adaptive-results #reports-subheading {
  color: var(--soft-ink);
  font-size: 14px;
}

.adaptive-class-results-page {
  color: var(--ink);
}

.adaptive-class-overview,
.adaptive-student-overview {
  display: grid;
  grid-template-columns: minmax(190px, 1.25fr) repeat(3, minmax(120px, 1fr));
  width: min(865px, 100%);
  min-height: 116px;
  align-items: stretch;
  margin-bottom: 30px;
  border: 1px solid #c9d4ce;
  border-radius: 9px;
  background: #eff4f0;
}

.adaptive-class-overview h2,
.adaptive-student-overview h2 {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 22px 28px;
  color: var(--green-dark);
  font-size: 17px;
}

.adaptive-overview-metric {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  gap: 0 11px;
  align-content: center;
  justify-content: center;
  min-width: 0;
  padding: 18px;
  border-left: 1px solid #cbd2ce;
  font-variant-numeric: tabular-nums;
}

.adaptive-overview-metric .adaptive-overview-dot {
  grid-row: 1;
  align-self: center;
}

.adaptive-overview-metric strong {
  grid-column: 2;
  color: var(--green-dark);
  font-size: 38px;
  font-weight: 520;
  line-height: 1;
}

.adaptive-overview-label {
  grid-column: 2;
  color: var(--ink);
  font-size: 13px;
}

.adaptive-overview-metric.tone-attention strong {
  color: #e65f4b;
}

.adaptive-overview-dot,
.adaptive-results-status::before,
.adaptive-profile-status-label::before,
.adaptive-profile-priority-status::before {
  display: inline-block;
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #0d5b49;
  content: "";
}

.adaptive-overview-metric.tone-developing .adaptive-overview-dot,
.status-developing.adaptive-overview-dot,
.status-accurate-not-automatic.adaptive-overview-dot,
.adaptive-results-status.status-developing::before,
.adaptive-results-status.status-accurate-not-automatic::before,
.adaptive-profile-status-label.status-developing::before,
.adaptive-profile-status-label.status-accurate-not-automatic::before,
.adaptive-profile-priority-status.status-developing::before,
.adaptive-profile-priority-status.status-accurate-not-automatic::before {
  background: #e5a913;
}

.adaptive-overview-metric.tone-attention .adaptive-overview-dot,
.status-misconception.adaptive-overview-dot,
.status-not-secure.adaptive-overview-dot,
.adaptive-results-status.status-misconception::before,
.adaptive-results-status.status-not-secure::before,
.adaptive-profile-status-label.status-misconception::before,
.adaptive-profile-status-label.status-not-secure::before,
.adaptive-profile-priority-status.status-misconception::before,
.adaptive-profile-priority-status.status-not-secure::before {
  background: #ef604c;
}

.status-in-progress.adaptive-overview-dot,
.adaptive-results-status.status-in-progress::before,
.adaptive-profile-status-label.status-in-progress::before,
.adaptive-profile-priority-status.status-in-progress::before {
  background: #4b8eb4;
}

.status-not-reached.adaptive-overview-dot,
.adaptive-results-status.status-not-reached::before,
.adaptive-profile-status-label.status-not-reached::before,
.adaptive-profile-priority-status.status-not-reached::before {
  background: #a9b2ad;
}

.adaptive-class-workspace,
.adaptive-profile-workspace {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(300px, 1fr);
  gap: 44px;
  align-items: start;
}

.adaptive-results-tabs {
  display: flex;
  gap: 38px;
  width: max-content;
  margin-bottom: 22px;
  border-bottom: 1px solid #cfd5d1;
}

.adaptive-results-tabs button {
  position: relative;
  min-height: 44px;
  padding: 0 0 11px;
  border: 0;
  background: transparent;
  color: var(--soft-ink);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
}

.adaptive-results-tabs button.is-active {
  color: var(--green-dark);
  font-weight: 820;
}

.adaptive-results-tabs button.is-active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--green-dark);
  content: "";
}

.adaptive-results-panel[hidden] {
  display: none;
}

.adaptive-student-matrix-report {
  min-width: 0;
}

.adaptive-student-matrix-controls {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(220px, 1fr);
  gap: 7px 22px;
  align-items: end;
  margin-bottom: 18px;
}

.adaptive-student-matrix-controls label {
  grid-column: 1;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 820;
}

.adaptive-student-focus-select {
  grid-column: 1;
  width: 100%;
  min-height: 42px;
  padding: 8px 34px 8px 11px;
  border: 1px solid #bfc9c3;
  border-radius: 7px;
  background: #fffefa;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 720;
}

.adaptive-student-focus-select:focus-visible {
  border-color: var(--green);
  outline: 3px solid rgba(27, 107, 76, 0.16);
  outline-offset: 1px;
}

.adaptive-student-focus-description {
  grid-column: 2;
  grid-row: 2;
  margin: 0;
  align-self: center;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.45;
}

.adaptive-student-matrix-host {
  min-width: 0;
}

.adaptive-results-matrix-shell {
  max-height: min(64vh, 700px);
  border: 0;
  border-radius: 0;
  background: transparent;
}

.adaptive-results-matrix {
  width: 100%;
  font-size: 12px;
}

.adaptive-results-matrix-shell.is-focused .adaptive-results-matrix th,
.adaptive-results-matrix-shell.is-focused .adaptive-results-matrix td {
  min-width: 126px;
}

.adaptive-results-matrix-shell.is-focused .adaptive-results-matrix thead th:first-child,
.adaptive-results-matrix-shell.is-focused .adaptive-results-matrix .adaptive-matrix-student-heading,
.adaptive-results-matrix-shell.is-focused .adaptive-results-matrix tbody th,
.adaptive-results-matrix-shell.is-focused .adaptive-results-matrix .adaptive-matrix-student-cell {
  min-width: 174px;
}

.adaptive-results-matrix th,
.adaptive-results-matrix td {
  min-width: 150px;
  height: 58px;
  padding: 10px 12px;
  border-right: 0;
  border-bottom: 1px solid #d4d8d5;
  background: transparent;
  text-align: left;
}

.adaptive-results-matrix thead th {
  height: 52px;
  background: #f7f5ee;
  box-shadow: inset 0 -2px var(--green-dark);
  color: var(--ink);
}

.adaptive-results-matrix thead th:not(:first-child) strong {
  display: none;
}

.adaptive-results-matrix thead th small {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.adaptive-results-matrix thead th:first-child,
.adaptive-results-matrix .adaptive-matrix-student-heading,
.adaptive-results-matrix tbody th,
.adaptive-results-matrix .adaptive-matrix-student-cell {
  min-width: 190px;
  max-width: 220px;
  background: #f7f5ee;
  box-shadow: inset -1px 0 #e0e2df;
}

.adaptive-results-matrix tbody tr:nth-child(even) td,
.adaptive-results-matrix tbody tr:nth-child(even) th {
  background: rgba(239, 244, 240, 0.34);
}

.adaptive-results-student-link {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
}

.adaptive-results-student-link:hover,
.adaptive-results-student-link:focus-visible {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.adaptive-results-matrix .adaptive-matrix-student-cell > span {
  font-size: 10px;
  font-weight: 620;
}

.adaptive-results-matrix .adaptive-results-status {
  display: inline-flex;
  width: auto;
  min-height: 38px;
  gap: 9px;
  justify-content: flex-start;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: var(--ink);
  font-size: 12px;
  font-weight: 620;
}

.adaptive-results-matrix .adaptive-results-status:hover,
.adaptive-results-matrix .adaptive-results-status:focus-visible {
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.adaptive-attention-panel,
.adaptive-profile-teaching-panel {
  min-height: 250px;
  padding: 27px 28px;
  border: 1.5px solid #ef6958;
  border-radius: 12px;
  background: rgba(255, 254, 250, 0.74);
}

.adaptive-attention-panel h2,
.adaptive-profile-teaching-panel h2 {
  margin: 0 0 18px;
  color: #e85d4b;
  font-size: 20px;
}

.adaptive-attention-list {
  display: grid;
}

.adaptive-attention-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid #d9d9d4;
}

.adaptive-attention-row:first-child {
  border-top: 0;
}

.adaptive-attention-copy {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: center;
  color: var(--soft-ink);
  font-size: 13px;
}

.adaptive-attention-copy strong {
  color: var(--ink);
  font-size: 14px;
}

.adaptive-attention-copy .adaptive-overview-dot {
  width: 12px;
  height: 12px;
}

.adaptive-attention-action,
.adaptive-profile-review {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 780;
  white-space: nowrap;
}

.adaptive-attention-empty {
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.5;
}

#reports-view.is-adaptive-results .adaptive-pattern-summary {
  margin: 42px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#reports-view.is-adaptive-results .adaptive-pattern-summary > .eyebrow {
  margin-bottom: 5px;
}

#reports-view.is-adaptive-results .adaptive-pattern-summary > h2 {
  margin-bottom: 6px;
}

#reports-view.is-adaptive-results .adaptive-pattern-list {
  margin-top: 18px;
  border-top: 2px solid var(--green-dark);
}

#reports-view.is-adaptive-results .adaptive-pattern-card {
  grid-template-columns: minmax(0, 1fr) minmax(160px, auto);
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #d4d8d5;
  border-radius: 0;
  background: transparent;
}

#reports-view.is-adaptive-results .adaptive-pattern-count {
  color: var(--green-dark);
}

#adaptive-results-objective-panel .adaptive-report-section {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#adaptive-results-objective-panel .adaptive-objective-facility {
  min-height: 54px;
  align-items: center;
  border-top-color: #d4d8d5;
  font-size: 12px;
}

#adaptive-results-objective-panel .adaptive-objective-facility-title {
  color: var(--ink);
  font-size: 13px;
}

#adaptive-results-objective-panel .adaptive-objective-facility-percent {
  flex: 0 0 auto;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 850;
}

#reports-view.is-adaptive-results .profiles-preview {
  margin-top: 46px;
  padding-top: 32px;
}

#reports-view.is-adaptive-results #profiles-screen {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 2px solid var(--green-dark);
}

.adaptive-profile-directory-card {
  overflow: visible;
  border: 0;
  border-bottom: 1px solid #d4d8d5;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.adaptive-profile-directory-card .profile-card-header {
  padding: 18px 4px;
  border: 0;
  background: transparent;
}

.adaptive-profile-directory-card .profile-card-header h3 {
  color: var(--green-dark);
}

.adaptive-profile-subtitle {
  display: block;
  margin-top: 2px;
  color: var(--ink);
  font-size: 12px;
}

.adaptive-profile-open {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.adaptive-profile-breadcrumb,
.adaptive-profile-overview-index {
  display: none;
}

.adaptive-profile-body[hidden],
.adaptive-profile-objective-detail[hidden] {
  display: none;
}

#reports-view.is-adaptive-profile-focus .report-screen-header,
#reports-view.is-adaptive-profile-focus #class-report-screen,
#reports-view.is-adaptive-profile-focus .profiles-preview > .section-title-row,
#reports-view.is-adaptive-profile-focus .adaptive-profile-card:not(.is-focused) {
  display: none;
}

#reports-view.is-adaptive-profile-focus .profiles-preview {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

#reports-view.is-adaptive-profile-focus #profiles-screen {
  display: block;
  border-top: 0;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-card.is-focused {
  border-bottom: 0;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-breadcrumb {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 13px;
}

.adaptive-profile-breadcrumb button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 780;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-page-header {
  display: block;
  padding: 0;
  margin-bottom: 18px;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-page-header h3 {
  margin-bottom: 3px;
  color: var(--green-dark);
  font-size: clamp(30px, 3.6vw, 42px);
  line-height: 1.08;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-subtitle {
  margin-bottom: 7px;
  color: var(--soft-ink);
  font-size: 15px;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-open {
  display: none;
}

/* Focused adaptive profile: compact quick snapshot with one selected skill. */
#reports-view.is-adaptive-profile-focus .adaptive-profile-quick-snapshot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  width: 100%;
  margin-bottom: 20px;
  padding: 13px 16px;
  border: 1px solid #c9d4ce;
  border-radius: 11px;
  background: #eff4f0;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-quick-snapshot > div {
  display: grid;
  gap: 1px;
  min-width: 0;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-quick-snapshot .eyebrow {
  margin: 0 0 2px;
  font-size: 9px;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-quick-snapshot > div > strong {
  color: var(--green-dark);
  font-size: 16px;
  line-height: 1.25;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-quick-snapshot > div > span:not(.eyebrow) {
  color: var(--soft-ink);
  font-size: 11px;
  line-height: 1.4;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-quick-snapshot > .adaptive-profile-percent {
  width: 66px;
  min-height: 34px;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-master-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.74fr) minmax(0, 1fr);
  gap: clamp(24px, 3.2vw, 44px);
  align-items: start;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list,
#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host {
  min-width: 0;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list {
  overflow: hidden;
  border: 1px solid #cbd3ce;
  border-radius: 13px;
  background: rgba(255, 254, 250, 0.82);
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list > h2 {
  margin: 0;
  padding: 13px 15px 2px;
  color: var(--green-dark);
  font-size: 14px;
  line-height: 1.25;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list > p {
  margin: 0;
  padding: 0 15px 11px;
  border-bottom: 2px solid var(--green-dark);
  color: var(--soft-ink);
  font-size: 10px;
  line-height: 1.4;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-rows {
  display: grid;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 76px;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid #dce1de;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row:last-child {
  border-bottom: 0;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row:hover {
  background: #f5f6f4;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row:focus-visible {
  position: relative;
  z-index: 1;
  outline-color: rgba(230, 161, 58, 0.7);
  outline-offset: -3px;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row.is-selected,
#reports-view.is-adaptive-profile-focus
  .adaptive-profile-skill-row[aria-selected="true"],
#reports-view.is-adaptive-profile-focus
  .adaptive-profile-skill-row[aria-pressed="true"] {
  background: #eef1ef;
  box-shadow: inset 4px 0 #64756e;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-skill-row.is-selected:hover,
#reports-view.is-adaptive-profile-focus
  .adaptive-profile-skill-row[aria-selected="true"]:hover,
#reports-view.is-adaptive-profile-focus
  .adaptive-profile-skill-row[aria-pressed="true"]:hover {
  background: #e9edeb;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-copy,
#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-copy strong,
#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-tested {
  display: block;
  min-width: 0;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-copy strong {
  color: var(--ink);
  font-size: 14px;
  font-weight: 820;
  line-height: 1.3;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-skill-tested {
  margin-top: 4px;
  color: var(--soft-ink);
  font-size: 11px;
  font-weight: 520;
  line-height: 1.4;
}

/* JS assigns tones at >=80, 60-79, <60, or no answered questions. */
#reports-view.is-adaptive-profile-focus .adaptive-profile-percent {
  display: inline-flex;
  width: 70px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  justify-self: end;
  padding: 6px 8px;
  border: 1px solid #c8cfcb;
  border-radius: 999px;
  background: var(--report-unanswered-soft);
  color: #53615b;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-good {
  border-color: #98c7b6;
  background: var(--report-correct-soft);
  color: #0d5b49;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-warning {
  border-color: #dcc16f;
  background: #fff4d2;
  color: #654c00;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-low {
  border-color: #dfa68e;
  background: var(--report-incorrect-soft);
  color: #7b3518;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-none {
  border-color: #c8cfcb;
  background: var(--report-unanswered-soft);
  color: #53615b;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  align-items: center;
  margin: 0;
  padding: 11px 14px 12px;
  border-top: 1px solid #dce1de;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
  list-style: none;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend li,
#reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid #c8cfcb;
  border-radius: 50%;
  background: var(--report-unanswered-soft);
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend i {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border: 1px solid #c8cfcb;
  border-radius: 50%;
  background: var(--report-unanswered-soft);
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-score-legend-dot.tone-good,
#reports-view.is-adaptive-profile-focus
  .adaptive-profile-score-legend i.tone-good {
  border-color: #78b49e;
  background: var(--report-correct);
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-score-legend-dot.tone-warning,
#reports-view.is-adaptive-profile-focus
  .adaptive-profile-score-legend i.tone-warning {
  border-color: #c39620;
  background: #e5a913;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-score-legend-dot.tone-low,
#reports-view.is-adaptive-profile-focus
  .adaptive-profile-score-legend i.tone-low {
  border-color: #c65b43;
  background: #df604c;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host {
  position: sticky;
  top: 96px;
  min-height: 360px;
  padding: clamp(20px, 2.5vw, 30px);
  border: 1px solid #cbd3ce;
  border-radius: 15px;
  background: rgba(255, 254, 250, 0.92);
  box-shadow: 0 8px 24px rgba(39, 54, 47, 0.06);
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host[hidden],
#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host > [hidden] {
  display: none;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 7px;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h2,
#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: clamp(21px, 2.2vw, 27px);
  line-height: 1.18;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-definition {
  max-width: 680px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.55;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-definition strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 820;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-definition p {
  margin: 0;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0;
  margin: 18px 0;
  padding: 11px 0;
  border-top: 1px solid #d8dedb;
  border-bottom: 1px solid #d8dedb;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta > * {
  min-width: 0;
  margin: 0;
  padding: 0 12px;
  border-left: 1px solid #d8dedb;
  color: var(--soft-ink);
  font-size: 11px;
  line-height: 1.3;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-meta > :first-child {
  padding-left: 0;
  border-left: 0;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  font-weight: 820;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta small {
  display: block;
  color: var(--soft-ink);
  font-size: 10px;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example {
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px solid #d8d7c8;
  border-radius: 11px;
  background: #fbfaf4;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-example > .report-example {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-example .report-example-label {
  margin-bottom: 8px;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-example .report-example-prompt {
  font-size: 14px;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-example .report-example-answer {
  margin-top: 10px;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-example .adaptive-profile-no-evidence {
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 520;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example > h3,
#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example > h4 {
  margin: 0 0 8px;
  color: #6c6444;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example > p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 1.45;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 13px 0 0;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example dl > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d8dedb;
  border-radius: 8px;
  background: white;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 760;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example dd {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 820;
  overflow-wrap: anywhere;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-disclosure {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d8dedb;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-disclosure summary {
  width: max-content;
  max-width: 100%;
  color: var(--green-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-disclosure summary:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-disclosure summary:focus-visible {
  border-radius: 3px;
  outline: 3px solid rgba(230, 161, 58, 0.55);
  outline-offset: 3px;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-misconception {
  margin-top: 11px;
  padding: 12px 14px;
  border-left: 3px solid var(--report-violet);
  border-radius: 0 9px 9px 0;
  background: var(--report-violet-soft);
  color: #4f4772;
  font-size: 12px;
  line-height: 1.5;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-misconception > h3 {
  margin: 0 0 8px;
  color: #443b70;
  font-size: 13px;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-pattern +
  .adaptive-profile-detail-pattern {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #d6cfea;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-pattern-fact {
  margin: 0;
  color: #443b70;
  font-size: 11px;
  font-weight: 760;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-misconception strong {
  display: block;
  margin-bottom: 3px;
  color: #443b70;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-misconception p {
  margin: 0;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-disclosure > div {
  margin-top: 8px;
  color: #4f4772;
  font-size: 11px;
}

#reports-view.is-adaptive-profile-focus
  .adaptive-profile-detail-disclosure > div > p + p {
  margin-top: 5px;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-action {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 9px 15px;
  border: 1px solid var(--green-dark);
  border-radius: 9px;
  background: var(--green-dark);
  color: white;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
}

#reports-view.is-adaptive-profile-focus .adaptive-profile-detail-action:hover {
  border-color: var(--green);
  background: var(--green);
}

.adaptive-student-overview {
  margin-bottom: 22px;
}

.adaptive-profile-results > h2 {
  margin: 0 0 12px 8px;
  color: var(--green-dark);
  font-size: 17px;
}

.adaptive-profile-column-headings,
.adaptive-profile-objective-trigger {
  display: grid;
  grid-template-columns: minmax(260px, 1.7fr) minmax(125px, 0.8fr) minmax(105px, 0.7fr) 24px;
  gap: 16px;
  align-items: center;
}

.adaptive-profile-column-headings {
  min-height: 40px;
  padding: 0 12px;
  border-bottom: 2px solid var(--green-dark);
  color: var(--ink);
  font-size: 12px;
}

.adaptive-profile-objectives {
  display: block;
}

.adaptive-profile-objective {
  padding: 0;
  border-top: 0;
  border-bottom: 1px solid #d4d8d5;
}

.adaptive-profile-objective.is-priority {
  border-left: 4px solid var(--green-dark);
  background: rgba(220, 232, 224, 0.44);
}

.adaptive-profile-objective-trigger {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.adaptive-profile-objective-title span,
.adaptive-profile-objective-title small {
  display: block;
}

.adaptive-profile-objective-title span {
  font-size: 13px;
}

.adaptive-profile-objective-title small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 650;
}

.adaptive-profile-status-label,
.adaptive-profile-priority-status {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  color: var(--ink);
  font-size: 12px;
  font-weight: 650;
}

.adaptive-profile-status-label::before,
.adaptive-profile-priority-status::before {
  width: 11px;
  height: 11px;
}

.adaptive-profile-evidence-count {
  color: var(--soft-ink);
  font-size: 12px;
}

.adaptive-profile-objective-chevron {
  color: var(--green-dark);
  font-size: 17px;
  text-align: center;
}

.adaptive-profile-objective-detail {
  padding: 14px 30px 20px;
  background: rgba(255, 254, 250, 0.68);
}

.adaptive-profile-basis,
.adaptive-profile-stop-reason,
.adaptive-profile-positive {
  margin: 0 0 7px;
  color: var(--soft-ink);
  font-size: 11px;
}

#reports-view.is-adaptive-results .adaptive-profile-objective-detail .adaptive-profile-meaning {
  margin: 0 0 13px;
  padding: 0;
  border-left: 0;
  background: transparent;
  color: var(--ink);
}

.adaptive-profile-objective-detail .adaptive-profile-meaning strong,
.adaptive-profile-objective-detail .adaptive-profile-meaning span {
  display: block;
}

.adaptive-profile-pattern-count {
  margin-top: 3px;
  color: var(--soft-ink);
  font-size: 11px;
}

.adaptive-profile-objective-detail .adaptive-profile-meaning p {
  margin: 8px 0 0;
}

.adaptive-profile-objective-detail .report-example {
  max-width: 660px;
  margin-top: 10px;
  border-radius: 6px;
}

.adaptive-profile-teaching-panel {
  margin-top: 29px;
}

.adaptive-profile-teaching-panel h3 {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 18px;
}

.adaptive-profile-priority-count {
  margin: 8px 0 18px;
  color: var(--soft-ink);
  font-size: 12px;
}

.adaptive-profile-priority-copy {
  margin: 0;
  padding-top: 18px;
  border-top: 1px solid #d4d8d5;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
}

.adaptive-profile-priority-note {
  margin: 10px 0 21px;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .adaptive-class-workspace,
  .adaptive-profile-workspace {
    grid-template-columns: 1fr;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-master-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host {
    position: static;
    order: -1;
    min-height: 0;
    scroll-margin-top: 18px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list {
    order: 0;
  }

  .adaptive-class-overview,
  .adaptive-student-overview {
    width: 100%;
  }

  .adaptive-attention-panel,
  .adaptive-profile-teaching-panel {
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .adaptive-student-matrix-controls {
    grid-template-columns: 1fr;
  }

  .adaptive-student-matrix-controls label,
  .adaptive-student-focus-select,
  .adaptive-student-focus-description {
    grid-column: 1;
  }

  .adaptive-student-focus-description {
    grid-row: auto;
  }

  .adaptive-class-overview,
  .adaptive-student-overview {
    grid-template-columns: 1fr 1fr;
  }

  .adaptive-class-overview h2,
  .adaptive-student-overview h2 {
    grid-column: 1 / -1;
    padding-bottom: 8px;
  }

  .adaptive-overview-metric {
    border-top: 1px solid #cbd2ce;
    border-left: 0;
  }

  .adaptive-overview-metric:last-child {
    grid-column: 1 / -1;
  }

  .adaptive-profile-column-headings {
    display: none;
  }

  .adaptive-profile-objective-trigger {
    grid-template-columns: minmax(0, 1fr) auto 20px;
    gap: 10px;
  }

  .adaptive-profile-evidence-count {
    display: none;
  }

  .adaptive-profile-objective-detail {
    padding-right: 16px;
    padding-left: 16px;
  }

  .adaptive-attention-panel,
  .adaptive-profile-teaching-panel {
    padding: 21px 18px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-page-header h3 {
    font-size: clamp(28px, 9vw, 36px);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-quick-snapshot {
    gap: 10px;
    padding: 12px;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot > div > strong {
    font-size: 15px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row {
    grid-template-columns: minmax(0, 1fr) 64px;
    gap: 11px;
    min-height: 70px;
    padding: 11px 12px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent {
    width: 64px;
    min-height: 34px;
    font-size: 12px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend {
    gap: 6px 11px;
    padding-right: 12px;
    padding-left: 12px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host {
    padding: 18px 16px;
    border-radius: 12px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header {
    gap: 10px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h2,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h3 {
    font-size: 21px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta > * {
    padding-right: 8px;
    padding-left: 8px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta strong {
    font-size: 16px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example dl {
    grid-template-columns: minmax(0, 1fr);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-action {
    width: 100%;
  }
}

/* Adaptive child controls */
#student-app-root[data-session-mode="adaptive"] .student-brand strong {
  color: var(--green-dark);
}

[data-adaptive-progress] {
  grid-template-columns: minmax(0, 1fr) auto;
}

[data-adaptive-question] {
  animation: adaptive-question-enter 170ms ease-out;
}

@keyframes adaptive-question-enter {
  from {
    opacity: 0.25;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.adaptive-question-nav {
  justify-content: flex-end;
}

.adaptive-question-nav .adaptive-no-answer {
  margin-right: auto;
}

.adaptive-no-answer {
  border-color: #c0c9c4;
  color: var(--soft-ink);
}

[data-adaptive-transition] {
  border-color: #bdd9cd;
  background:
    linear-gradient(145deg, rgba(255, 254, 250, 0.98), rgba(231, 243, 237, 0.96));
}

[data-adaptive-pause],
[data-adaptive-finish] {
  border-color: #acd1c1;
}

@media (prefers-reduced-motion: reduce) {
  [data-adaptive-question] {
    animation: none;
  }
}

@media (max-width: 920px) {
  .assessment-option-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .assessment-option-card > .primary-button,
  .assessment-option-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .adaptive-option-card {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .adaptive-section-button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .adaptive-section-button.is-timed {
    grid-template-columns: minmax(130px, 0.75fr) minmax(190px, 1.5fr) auto;
  }
}

@media (max-width: 780px) {
  .assessment-option-grid {
    grid-template-columns: 1fr;
  }

  .assessment-option-card {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding: 18px;
  }

  .adaptive-option-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .assessment-option-card > .primary-button,
  .assessment-option-link {
    grid-column: auto;
    width: auto;
  }

  .adaptive-handoff-layout {
    grid-template-columns: 1fr;
  }

  .adaptive-handoff-qr-card {
    width: min(240px, 100%);
    justify-self: center;
  }

  .adaptive-pattern-card {
    grid-template-columns: 1fr;
  }

  .adaptive-section-preview {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .adaptive-section-preview-actions {
    justify-items: start;
  }

  .adaptive-section-start {
    width: auto;
  }
}

@media (max-width: 600px) {
  .assessment-option-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .assessment-option-card > .primary-button,
  .assessment-option-link {
    grid-column: 1 / -1;
    width: 100%;
  }

  .adaptive-section-launcher-heading {
    display: grid;
  }

  .adaptive-section-button-grid {
    grid-template-columns: 1fr;
  }

  .adaptive-section-group-heading {
    display: grid;
  }

  .adaptive-section-button.is-timed {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .adaptive-section-button {
    min-height: 0;
  }

  .adaptive-comprehensive-button {
    grid-template-columns: 1fr;
  }

  .adaptive-section-skill-list {
    grid-template-columns: 1fr;
  }

  .adaptive-section-start {
    width: 100%;
  }

  .adaptive-dialog {
    width: calc(100% - 16px);
    max-height: 94vh;
    border-radius: 17px;
  }

  .adaptive-dialog-shell {
    max-height: 94vh;
    padding: 62px 17px 22px;
  }

  .adaptive-dialog-close {
    top: 12px;
    right: 12px;
  }

  .adaptive-evidence-options {
    grid-template-columns: 1fr;
  }

  .adaptive-profile-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .adaptive-question-nav {
    flex-direction: column;
  }

  .adaptive-question-nav .adaptive-no-answer {
    margin-right: 0;
  }
}

/* Child-facing assessment */
.student-mode {
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 229, 179, 0.75), transparent 23rem),
    radial-gradient(circle at 88% 12%, rgba(199, 233, 217, 0.9), transparent 26rem),
    #f7f5ee;
}

.student-app {
  width: min(100% - 30px, 1050px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 48px;
}

.student-loading {
  display: flex;
  gap: 13px;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  color: var(--soft-ink);
}

.student-shell {
  width: 100%;
}

.student-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 62px;
  margin-bottom: 22px;
  padding: 8px 3px;
}

.student-brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.student-brand strong,
.student-brand small {
  display: block;
}

.student-brand strong {
  font-size: 17px;
}

.student-brand small {
  max-width: 60vw;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-start-card {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
  padding: clamp(30px, 7vw, 72px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 254, 250, 0.96);
  box-shadow: var(--shadow);
}

.student-eyebrow {
  margin-bottom: 9px;
  color: var(--green);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.student-start-copy h1,
.student-review-heading h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 6vw, 62px);
}

.student-start-copy > p:not(.student-eyebrow),
.student-review-heading > p:not(.student-eyebrow) {
  color: var(--soft-ink);
  font-size: 18px;
}

.student-start-steps {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.student-start-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.student-start-step > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 850;
}

.student-start-step p {
  margin: 0;
  font-weight: 650;
}

.student-name-form {
  padding: 26px;
  border: 1px solid #bfd9cd;
  border-radius: 20px;
  background: #eff8f3;
}

.student-field-label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
}

.student-name-input,
.student-other-input {
  width: 100%;
  min-height: 58px;
  padding: 10px 15px;
  border: 2px solid #9fbaad;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font-size: 19px;
}

.student-name-input:focus,
.student-other-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 5px rgba(25, 107, 85, 0.12);
  outline: none;
}

.student-privacy-note {
  margin: 10px 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.student-form-error {
  margin: 12px 0;
  color: var(--rose);
  font-size: 14px;
  font-weight: 700;
}

.student-primary-button,
.student-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  min-height: 58px;
  padding: 12px 24px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 17px;
  font-weight: 850;
}

.student-primary-button {
  border: 2px solid var(--green);
  background: var(--green);
  box-shadow: 0 6px 16px rgba(18, 82, 64, 0.18);
  color: white;
}

.student-secondary-button {
  border: 2px solid #aebcb5;
  background: white;
  color: var(--green-dark);
}

.student-primary-button:disabled,
.student-secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.student-name-form .student-primary-button {
  width: 100%;
}

.student-question-page,
.student-review-page {
  width: min(880px, 100%);
  margin: 0 auto;
}

.student-question-progress {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 18px;
  align-items: end;
  margin-bottom: 16px;
}

.student-progress-copy strong,
.student-progress-copy span {
  display: block;
}

.student-progress-copy strong {
  font-size: 16px;
}

.student-progress-copy span,
.student-save-status {
  color: var(--muted);
  font-size: 12px;
}

.student-main-progress-track {
  grid-column: 1 / -1;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(32, 53, 46, 0.11);
}

.student-main-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.student-question-card {
  width: 100%;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid var(--line);
  border-radius: 27px;
  background: rgba(255, 254, 250, 0.98);
  box-shadow: var(--shadow);
}

.student-question-instruction {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.student-question-prompt {
  max-width: none;
  margin-bottom: 28px;
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  text-align: center;
}

.student-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.student-option {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 82px;
  padding: 12px 18px;
  border: 2px solid #bdc8c1;
  border-radius: 18px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition:
    border-color 120ms ease,
    background 120ms ease,
    transform 120ms ease;
}

.student-option:hover {
  border-color: #7fa997;
  transform: translateY(-1px);
}

.student-option.is-selected {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: inset 0 0 0 1px var(--green);
}

.student-option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-size: 21px;
  font-weight: 900;
}

.student-option.is-selected .student-option-letter {
  background: var(--green);
}

.student-option-value {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(18px, 2.5vw, 23px);
  font-weight: 750;
  line-height: 1.2;
}

.student-other-option {
  grid-column: 1 / -1;
}

.student-other-entry {
  margin-top: 16px;
  padding: 18px;
  border-radius: 16px;
  background: var(--gold-soft);
}

.student-question-nav,
.student-review-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 18px;
}

.student-partition-figure {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  margin: -8px auto 22px;
}

.student-partition-figure svg {
  width: min(280px, 70vw);
  height: min(210px, 52vw);
}

.student-review-heading {
  margin-bottom: 24px;
  text-align: center;
}

.student-review-list {
  display: grid;
  gap: 9px;
}

.student-review-item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 10px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
}

.student-review-item.is-unanswered {
  border-color: #e0b96f;
  background: var(--gold-soft);
}

.student-review-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  font-weight: 850;
}

.student-review-answer {
  min-width: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.student-review-edit {
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.student-message-card {
  width: min(620px, 100%);
  margin: 10vh auto 0;
  padding: clamp(38px, 8vw, 72px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.student-message-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.student-message-mark.is-error {
  background: var(--rose-soft);
  color: var(--rose);
}

.student-message-card h1 {
  margin-bottom: 12px;
  font-size: clamp(38px, 7vw, 56px);
}

.student-message-card p {
  margin-bottom: 24px;
  color: var(--soft-ink);
  font-size: 18px;
}

#student-app-root[data-session-mode="fluency"] .student-brand strong {
  color: #6f4a0f;
}

.student-fluency-card {
  padding: clamp(30px, 5vw, 52px);
  border-color: #dcc488;
  background: #fffdf7;
}

.student-fluency-instruction {
  display: flex;
  gap: 11px;
  align-items: center;
  justify-content: center;
  margin-bottom: 17px;
  color: var(--soft-ink);
  text-align: center;
}

.student-fluency-instruction p {
  margin: 0;
  font-size: 15px;
  font-weight: 750;
}

.practice-badge {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #6f4a0f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.student-fluency-card .student-question-prompt {
  margin-bottom: 34px;
  font-size: clamp(48px, 8vw, 76px);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.student-fluency-option {
  min-height: 98px;
  border-width: 3px;
}

.student-fluency-option .student-option-value {
  font-size: clamp(25px, 3.5vw, 34px);
}

.student-fluency-option:disabled {
  cursor: default;
  opacity: 0.72;
  transform: none;
}

.student-fluency-ready-page {
  display: grid;
  min-height: min(620px, 72vh);
  place-items: center;
}

.student-fluency-ready-card {
  width: min(600px, 100%);
  padding: clamp(38px, 8vw, 72px);
  border: 1px solid #c7d9d0;
  border-radius: 30px;
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
}

.student-fluency-ready-card .ready-mark {
  display: grid;
  width: 68px;
  height: 68px;
  margin: 0 auto 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 30px;
  font-weight: 900;
}

.student-fluency-ready-card h1 {
  margin-bottom: 12px;
  font-size: clamp(48px, 8vw, 70px);
}

.student-fluency-ready-card > p:not(.student-form-error) {
  max-width: 470px;
  margin: 0 auto 28px;
  color: var(--soft-ink);
  font-size: 18px;
}

.student-fluency-next {
  width: min(360px, 100%);
  min-height: 72px;
  font-size: 21px;
}

.print-root {
  display: none;
}

@media (max-width: 940px) {
  .builder-layout {
    grid-template-columns: 1fr;
  }

  .selection-card {
    position: sticky;
    bottom: 12px;
    top: auto;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 17px 20px;
  }

  .selection-card > .eyebrow,
  .selection-card .summary-note {
    display: none;
  }

  .selection-total {
    margin: 0;
  }

  .selection-total strong {
    font-size: 36px;
  }

  .summary-list {
    display: flex;
    gap: 18px;
    margin: 0;
  }

  .summary-list div {
    display: block;
    padding: 0;
    border: 0;
  }

  .summary-list dd {
    margin-top: 2px;
  }

  .selection-card .full-width {
    width: auto;
  }

  .two-column-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .preview-data-banner {
    display: grid;
  }

  .site-header {
    position: relative;
    align-items: flex-start;
    padding: 14px 18px;
  }

  .brand small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    padding: 7px;
  }

  .top-nav {
    padding: 3px;
  }

  .nav-button {
    min-height: 36px;
    padding: 7px 10px;
    font-size: 12px;
  }

  main {
    width: min(100% - 26px, 1420px);
  }

  .view {
    padding: 40px 0 58px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
  }

  .local-badge {
    min-width: 0;
  }

  .panel {
    grid-template-columns: 42px minmax(0, 1fr);
    border-radius: 18px;
  }

  .panel-content {
    padding: 22px 17px;
  }

  .step-number {
    padding-top: 24px;
  }

  .objective-row {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px 10px;
  }

  .fluency-objective-group {
    padding: 14px 10px;
  }

  .slider-wrap {
    margin-left: 32px;
  }

  .selection-card {
    grid-template-columns: auto 1fr;
    gap: 10px 18px;
  }

  .selection-card .primary-button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .summary-list {
    justify-content: flex-end;
  }

  .code-card,
  .privacy-footer,
  .grid-page-header,
  .report-screen-header {
    align-items: stretch;
    flex-direction: column;
  }

  .code-card {
    text-align: center;
  }

  .privacy-footer {
    display: flex;
  }

  .privacy-footer .danger-button {
    align-self: flex-start;
  }

  .grid-page-header,
  .report-screen-header {
    display: flex;
  }

  .grid-actions,
  .report-actions {
    justify-content: flex-start;
  }

  .mark-grid-shell {
    max-height: 68vh;
  }

  .priorities-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .priority-grid {
    grid-template-columns: 1fr;
  }

  .class-section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pattern-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .pattern-reach,
  .affected-students {
    grid-column: auto;
  }

  #profiles-screen {
    grid-template-columns: 1fr;
  }

  .report-cover {
    grid-template-columns: 1fr;
  }

  .report-cover-stat {
    text-align: left;
  }
}

@media (max-width: 780px) {
  .delivery-card {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 20px;
  }

  .fallback-panel,
  .backup-route,
  .session-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .fallback-panel .action-row {
    align-items: flex-start;
  }

  .copy-field,
  .live-link-card,
  .online-attempt-row {
    grid-template-columns: 1fr;
  }

  .online-summary-cards {
    grid-template-columns: 1fr;
  }

  .student-start-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .site-header {
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .report-cover,
  .class-capabilities {
    padding: 18px;
    border-radius: 15px;
  }

  .class-section-heading {
    padding: 18px;
  }

  .class-section-card > .performance-summary {
    padding-right: 18px;
    padding-left: 18px;
  }

  .class-section-card > .objective-example {
    margin-right: 18px;
    margin-left: 18px;
  }

  .class-section-card > .report-detail-toggle-row {
    padding-right: 18px;
    padding-left: 18px;
  }

  .priority-card-header {
    grid-template-columns: 32px minmax(0, 1fr);
  }

  .priority-card-header .achievement-band {
    grid-column: 2;
    justify-self: start;
  }

  .performance-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .performance-legend {
    grid-column: 1;
  }

  .pattern-card {
    gap: 13px;
    padding: 18px;
  }

  .pattern-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .pattern-reach {
    padding: 10px 11px;
  }

  .report-example-layout {
    align-items: flex-start;
  }

  .report-example-figure {
    flex-basis: 58px;
    width: 58px;
    height: 52px;
  }

  .profile-card-header {
    align-items: flex-start;
  }

  .profile-detail-row {
    padding: 15px 16px;
  }

  .profile-detail-heading {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .profile-objective-score {
    justify-content: flex-start;
  }

  .profile-detail-row > .report-detail-panel {
    margin-right: -16px;
    margin-bottom: -15px;
    margin-left: -16px;
    padding-right: 16px;
    padding-bottom: 15px;
    padding-left: 16px;
  }

  .report-detail-toggle {
    width: 100%;
    min-height: 44px;
  }

  .nav-button {
    padding-right: 6px;
    padding-left: 6px;
  }

  .student-app {
    width: min(100% - 20px, 1050px);
    padding-top: 10px;
  }

  .fluency-group-header {
    grid-template-columns: 1fr;
  }

  .student-header {
    margin-bottom: 10px;
  }

  .student-start-card,
  .student-question-card,
  .student-message-card {
    padding: 24px 18px;
    border-radius: 21px;
  }

  .student-options {
    grid-template-columns: 1fr;
  }

  .student-other-option {
    grid-column: auto;
  }

  .student-option {
    min-height: 72px;
  }

  .student-fluency-card {
    padding: 24px 16px;
  }

  .student-fluency-instruction {
    align-items: center;
    flex-direction: column;
  }

  .student-fluency-option {
    min-height: 82px;
  }

  .student-fluency-ready-card {
    padding: 34px 20px;
    border-radius: 22px;
  }

  .student-question-nav,
  .student-review-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .student-question-nav button,
  .student-review-actions button {
    width: 100%;
  }

  .student-review-item {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .student-review-edit {
    display: none;
  }

  .student-share-layout {
    grid-template-columns: 1fr;
  }

  .student-qr-card {
    width: min(240px, 100%);
    justify-self: center;
  }

  .student-qr-dialog-shell {
    justify-content: flex-start;
    padding-top: 76px;
  }

  .student-qr-dialog .qr-code-full {
    width: min(72vw, 58vh);
    border-width: 8px;
  }
}

/* Print layouts */
@page {
  size: A4 portrait;
  margin: 13mm 13mm 17mm;
}

@media print {
  :root {
    color: #18251f;
    background: white;
  }

  html,
  body {
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    background: white !important;
    color: #18251f;
    font-family: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .screen-app,
  .student-app,
  .skip-link,
  .toast,
  .report-outcome-tooltip,
  .confirm-dialog,
  .student-qr-dialog {
    display: none !important;
  }

  body[data-print-target="student"] #student-print-root,
  body[data-print-target="working"] #working-print-root,
  body[data-print-target="class"] #class-print-root,
  body[data-print-target="profiles"] #profiles-print-root {
    display: block !important;
  }

  .print-root {
    width: 100%;
    color: #18251f;
  }

  .student-paper {
    counter-reset: paper-question;
    padding-bottom: 9mm;
    font-size: 11pt;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  .paper-front-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12mm;
    align-items: start;
    margin-bottom: 9mm;
    padding-bottom: 6mm;
    border-bottom: 1.4pt solid #2a493d;
  }

  .paper-kicker {
    margin: 0 0 2mm;
    color: #196b55;
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .paper-front-header h1 {
    max-width: 130mm;
    margin: 0;
    color: #20352e;
    font-size: 24pt;
    font-weight: 750;
    letter-spacing: -0.025em;
    line-height: 1.05;
  }

  .paper-year-badge {
    min-width: 24mm;
    padding: 3mm;
    border: 1pt solid #a9c1b5;
    border-radius: 3mm;
    background: #eaf4ef;
    color: #174f40;
    font-size: 10pt;
    font-weight: 800;
    text-align: center;
  }

  .student-details {
    display: grid;
    grid-template-columns: 1fr 62mm;
    gap: 10mm;
    margin-bottom: 9mm;
  }

  .detail-line {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3mm;
    align-items: end;
    font-size: 10pt;
    font-weight: 700;
  }

  .detail-rule {
    height: 7mm;
    border-bottom: 1pt solid #40564d;
  }

  .paper-intro {
    margin: 0 0 8mm;
    padding: 4mm 5mm;
    border-left: 2.5mm solid #e8b55e;
    background: #fff7e7;
    color: #3c4b45;
    font-size: 10pt;
  }

  .paper-section {
    margin: 0;
  }

  .paper-section + .paper-section {
    margin-top: 7mm;
  }

  .paper-section-header {
    display: grid;
    grid-template-columns: 11mm minmax(0, 1fr) auto;
    gap: 3mm;
    align-items: center;
    margin: 0 0 4mm;
    padding: 3mm 4mm;
    border: 0.7pt solid #acc2b7;
    border-radius: 3mm;
    background: #edf6f1;
    break-after: avoid;
    page-break-after: avoid;
  }

  .section-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 9mm;
    height: 9mm;
    border-radius: 50%;
    background: #1b6b55;
    color: white;
    font-size: 8.5pt;
    font-weight: 850;
  }

  .paper-section-header h2 {
    margin: 0;
    color: #20352e;
    font-size: 13pt;
    letter-spacing: -0.01em;
    line-height: 1.18;
  }

  .paper-section-header small {
    color: #5b6e65;
    font-size: 7.5pt;
    font-weight: 700;
  }

  .paper-question {
    position: relative;
    margin: 0 0 3.5mm;
    padding: 3.5mm 3.5mm 3mm 14mm;
    border: 0.7pt solid #c8d0ca;
    border-radius: 3mm;
    background: white;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .paper-question-number {
    position: absolute;
    top: 3.5mm;
    left: 3.5mm;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 7.5mm;
    height: 7.5mm;
    border-radius: 50%;
    background: #20352e;
    color: white;
    font-size: 9pt;
    font-weight: 850;
  }

  .paper-prompt {
    min-height: 7mm;
    margin: 0 0 3mm;
    color: #17241e;
    font-size: 12.5pt;
    font-weight: 700;
    line-height: 1.34;
  }

  .question-compact .paper-prompt {
    font-size: 14pt;
  }

  .partition-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 34mm;
    margin: -1mm 0 2mm;
  }

  .partition-figure svg {
    width: 43mm;
    height: 31mm;
    overflow: visible;
  }

  .paper-options {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5mm;
    width: 100%;
    height: 19mm;
  }

  .paper-option {
    display: grid;
    grid-template-rows: 6mm minmax(0, 1fr);
    align-items: start;
    justify-items: center;
    min-width: 0;
    height: 19mm;
    padding: 1.2mm 1mm;
    border: 0.8pt solid #87968f;
    border-radius: 4mm;
    background: white;
    text-align: center;
  }

  .paper-option-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5.4mm;
    height: 5.4mm;
    border: 0.8pt solid #3d5048;
    border-radius: 50%;
    color: #20352e;
    font-size: 7.6pt;
    font-weight: 850;
    line-height: 1;
  }

  .paper-option-value {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 10mm;
    overflow: hidden;
    color: #18251f;
    font-size: 8.5pt;
    font-weight: 650;
    line-height: 1.12;
    overflow-wrap: anywhere;
  }

  .paper-working {
    position: relative;
    margin-top: 2.5mm;
    border: 0.6pt dashed #c1c9c4;
    border-radius: 2mm;
    background:
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 7mm,
        rgba(122, 139, 130, 0.17) 7.2mm,
        rgba(122, 139, 130, 0.17) 7.5mm
      );
  }

  .paper-working::before {
    position: absolute;
    top: 1mm;
    left: 1.5mm;
    padding: 0 1mm;
    background: white;
    color: #7b8882;
    content: "Working";
    font-size: 6.5pt;
    font-weight: 700;
  }

  .question-compact .paper-working {
    height: 5mm;
    border-style: solid;
    background: transparent;
  }

  .question-compact .paper-working::before {
    content: "";
  }

  .question-medium .paper-working {
    height: 14mm;
  }

  .question-large .paper-working {
    height: 22mm;
  }

  .question-visual .paper-working {
    display: none;
  }

  .working-paper .paper-question {
    margin-bottom: 4.5mm;
  }

  .working-paper .paper-working {
    border: 0;
    border-radius: 0;
    background: none;
  }

  .working-paper .paper-working::before {
    display: none;
    content: none;
  }

  .working-paper .question-compact .paper-working {
    height: 21mm;
  }

  .working-paper .question-medium .paper-working {
    height: 36mm;
  }

  .working-paper .question-large .paper-working {
    height: 54mm;
  }

  .working-paper .question-visual .paper-working {
    display: block;
    height: 20mm;
  }

  .working-paper .question-visual .partition-figure {
    justify-content: flex-start;
    height: 23mm;
    margin: 0 0 1.5mm;
  }

  .working-paper .question-visual .partition-figure svg {
    width: 28mm;
    height: 22mm;
  }

  .paper-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 8mm;
    padding: 1mm 0 0;
    border-top: 0.6pt solid #aeb9b3;
    background: white;
    color: #44574f;
    font-size: 7.5pt;
    overflow: hidden;
  }

  .paper-footer strong {
    color: #20352e;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8pt;
    letter-spacing: 0.045em;
  }

  /* Printable class report */
  .print-report {
    font-size: 9.5pt;
  }

  .print-report .class-capabilities {
    margin: 0 0 5mm;
    padding: 3.5mm;
    border: 0.7pt solid #b9ccc4;
    border-radius: 2.5mm;
    background: #f1f7f4;
    box-shadow: none;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-report .priorities-heading {
    display: flex;
    align-items: baseline;
    flex-direction: row;
    margin-bottom: 2.5mm;
  }

  .print-report .priorities-heading h3 {
    font-size: 11pt;
  }

  .print-report .priorities-heading p {
    max-width: 105mm;
    font-size: 7pt;
    line-height: 1.3;
    text-align: right;
  }

  .print-report .priority-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.5mm;
  }

  .print-report .priority-card {
    grid-template-columns: 7mm minmax(0, 1fr);
    gap: 1mm 2mm;
    padding: 2.5mm;
    border: 0.6pt solid #c8d4cf;
    border-radius: 2mm;
    box-shadow: none;
  }

  .print-report .priority-number {
    width: 6mm;
    height: 6mm;
    border-radius: 1.6mm;
    font-size: 7pt;
  }

  .print-report .priority-card-header {
    gap: 1.5mm;
  }

  .print-report .priority-card-header h4,
  .print-report .priority-card-header strong {
    font-size: 7.7pt;
    line-height: 1.25;
  }

  .print-report .priority-reason {
    font-size: 6.5pt;
    line-height: 1.3;
  }

  .print-report .achievement-band,
  .student-profile-page .achievement-band {
    min-height: 0;
    padding: 0.7mm 1.6mm;
    border-width: 0.5pt;
    font-size: 6.2pt;
    line-height: 1.1;
  }

  .print-report-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10mm;
    align-items: end;
    margin-bottom: 7mm;
    padding-bottom: 5mm;
    border-bottom: 1.4pt solid #25473a;
  }

  .print-report-header h1 {
    margin: 0 0 1.5mm;
    font-size: 22pt;
    line-height: 1.08;
  }

  .print-report-header p {
    margin: 0;
    color: #53635c;
    font-size: 8.5pt;
  }

  .print-report-code {
    color: #1b5b49;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 8pt;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-align: right;
  }

  .print-class-section {
    margin-bottom: 5mm;
    border: 0.7pt solid #bdc8c2;
    border-radius: 2.5mm;
    break-inside: auto;
    page-break-inside: auto;
  }

  .print-other-responses,
  .profile-other-line {
    margin: 2mm 4mm 3mm;
    color: #6b4c1d;
    font-size: 7.3pt;
    line-height: 1.35;
  }

  .print-class-section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(56mm, 0.85fr);
    gap: 6mm;
    align-items: center;
    padding: 3.5mm 4mm;
    border-bottom: 0.6pt solid #c8d1cc;
    background: #edf5f1;
  }

  .print-class-section-header h2 {
    margin: 0 0 1mm;
    font-size: 13pt;
  }

  .print-class-section-header p {
    margin: 0;
    color: #5c6c65;
    font-size: 7.5pt;
  }

  .print-facility {
    text-align: right;
  }

  .print-facility strong {
    display: block;
    color: #174f40;
    font-size: 12pt;
  }

  .print-report .performance-summary {
    grid-template-columns: minmax(20mm, auto) minmax(30mm, 1fr);
    gap: 1.5mm 2.5mm;
  }

  .print-report .performance-copy strong {
    font-size: 9pt;
  }

  .print-report .performance-copy span {
    margin-top: 0.5mm;
    font-size: 6.2pt;
    line-height: 1.2;
  }

  .print-report .performance-bar {
    height: 3mm;
    border-width: 0.5pt;
    box-shadow: none;
  }

  .print-report .performance-legend {
    gap: 0.8mm 2.2mm;
    font-size: 6.2pt;
    line-height: 1.15;
  }

  .print-report .legend-item {
    gap: 0.8mm;
  }

  .print-report .legend-swatch {
    width: 2.2mm;
    height: 2.2mm;
    border-radius: 0.5mm;
  }

  .print-pattern {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 45mm;
    gap: 6mm;
    padding: 3.5mm 4mm;
    border-top: 0.5pt solid #e0e5e2;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .print-pattern:first-child {
    border-top: 0;
  }

  .print-pattern strong {
    display: block;
    margin-bottom: 1mm;
    color: #1f3d32;
    font-size: 8.5pt;
  }

  .print-pattern p,
  .print-pattern div:last-child {
    margin: 0;
    color: #47584f;
    font-size: 7.8pt;
    line-height: 1.4;
  }

  .print-pattern .pattern-title-row {
    gap: 2mm;
    margin-bottom: 1mm;
  }

  .print-pattern .pattern-title-row h3,
  .print-pattern .pattern-title-row h4,
  .print-pattern .pattern-title-row strong,
  .print-pattern .profile-pattern-label {
    margin: 0;
    color: #1f3d32;
    font-size: 8.4pt;
    line-height: 1.25;
  }

  .print-pattern .pattern-summary {
    color: #47584f;
    font-size: 7.4pt;
    line-height: 1.35;
  }

  .print-pattern .pattern-reach {
    padding: 2mm;
    border-width: 0.5pt;
    border-radius: 1.8mm;
    background: #fafbf9;
  }

  .print-pattern .reach-copy {
    margin-bottom: 1.2mm;
    font-size: 6.4pt;
    line-height: 1.2;
  }

  .print-pattern .reach-copy strong {
    font-size: 8pt;
  }

  .print-pattern .reach-bar {
    height: 2mm;
    border-width: 0.5pt;
  }

  .print-pattern .affected-students {
    margin-top: 1.4mm;
    font-size: 6.5pt;
    line-height: 1.3;
  }

  .print-report .report-example {
    margin-top: 2mm;
    padding: 2mm;
    border-width: 0.5pt;
    border-radius: 1.7mm;
    background: #fbfaf4;
  }

  .print-report .report-example-label {
    margin-bottom: 1mm;
    font-size: 5.8pt;
    letter-spacing: 0.08em;
  }

  .print-report .report-example-layout {
    gap: 2mm;
  }

  .print-report .report-example-figure {
    flex-basis: 14mm;
    width: 14mm;
    height: 12mm;
  }

  .print-report .report-example-prompt {
    font-size: 7pt;
    line-height: 1.3;
  }

  .print-report .report-example-maths-line {
    gap: 0.8mm 1.2mm;
    margin-top: 1mm;
  }

  .print-report .report-example-maths-label {
    font-size: 5.6pt;
  }

  .print-report .maths-expression {
    padding: 0.8mm 1.4mm;
    border-width: 0.5pt;
    border-radius: 1mm;
  }

  .print-report .report-example-answer {
    gap: 1mm;
    margin-top: 1mm;
    font-size: 6.2pt;
    line-height: 1.2;
  }

  .print-report .answer-chip {
    min-height: 0;
    padding: 0.6mm 1.3mm;
    border-width: 0.5pt;
    font-size: 6.2pt;
  }

  .print-positive {
    margin: 0;
    padding: 4mm;
    color: #174f40;
    font-size: 8.5pt;
  }

  .print-caveat {
    margin: 0 0 5mm;
    padding: 2.5mm 3mm;
    border: 0.6pt solid #e3c58f;
    border-radius: 2mm;
    background: #fff6e5;
    color: #6d501e;
    font-size: 7.5pt;
  }

  /* Exactly one printable profile page per student. */
  .student-profile-page {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 255mm;
    min-height: 0;
    padding: 0;
    box-sizing: border-box;
    break-after: page;
    page-break-after: always;
  }

  .student-profile-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .profile-print-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10mm;
    align-items: end;
    margin-bottom: 6mm;
    padding-bottom: 4.5mm;
    border-bottom: 1.4pt solid #26473a;
  }

  .profile-print-header h1 {
    margin: 0 0 1mm;
    font-size: 22pt;
  }

  .profile-print-header p {
    margin: 0;
    color: #53635c;
    font-size: 8.5pt;
  }

  .profile-overall {
    text-align: right;
  }

  .profile-overall strong {
    display: block;
    color: #174f40;
    font-size: 19pt;
  }

  .profile-overall span {
    color: #5c6c65;
    font-size: 7.5pt;
  }

  .profile-objective {
    margin-bottom: 4mm;
    padding: 3.5mm 4mm;
    border: 0.7pt solid #c3cdc7;
    border-radius: 2.5mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .profile-objective-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6mm;
    align-items: baseline;
    margin-bottom: 2mm;
  }

  .profile-objective-heading h2 {
    margin: 0;
    font-size: 11.5pt;
  }

  .profile-objective-heading strong {
    color: #174f40;
    font-size: 10pt;
  }

  .profile-objective p {
    margin: 1.4mm 0 0;
    color: #43544c;
    font-size: 8pt;
    line-height: 1.42;
  }

  .profile-objective .profile-performance {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1mm 2mm;
    margin-top: 1.6mm;
  }

  .profile-objective .performance-bar {
    height: 2.2mm;
    border-width: 0.5pt;
    box-shadow: none;
  }

  .profile-objective .performance-legend {
    gap: 0.7mm 1.8mm;
    font-size: 5.8pt;
    line-height: 1.1;
  }

  .profile-objective .legend-item {
    gap: 0.6mm;
  }

  .profile-objective .legend-swatch {
    width: 1.8mm;
    height: 1.8mm;
    border-radius: 0.4mm;
  }

  .profile-objective .profile-detail-patterns {
    gap: 1.2mm;
    margin-top: 1.5mm;
  }

  .profile-objective .profile-pattern-label {
    margin: 0;
    color: #263e35;
    font-size: 7.6pt;
    line-height: 1.25;
  }

  .profile-objective .profile-can-do,
  .profile-objective .profile-pattern-detail {
    margin-top: 1.5mm;
    padding: 1.5mm 1.8mm;
    border-width: 0.5pt;
    border-radius: 1.5mm;
    font-size: 7.2pt;
    line-height: 1.3;
  }

  .profile-objective .report-example {
    margin-top: 1.5mm;
    padding: 1.5mm 1.8mm;
    border-width: 0.5pt;
    border-radius: 1.5mm;
    background: #fbfaf4;
  }

  .profile-objective .report-example-label {
    margin-bottom: 0.8mm;
    font-size: 5.5pt;
    letter-spacing: 0.07em;
  }

  .profile-objective .report-example-layout {
    gap: 1.5mm;
  }

  .profile-objective .report-example-figure {
    flex-basis: 11mm;
    width: 11mm;
    height: 9mm;
  }

  .profile-objective .report-example-prompt {
    margin: 0;
    font-size: 6.8pt;
    line-height: 1.25;
  }

  .profile-objective .maths-expression {
    padding: 0.5mm 1mm;
    border-width: 0.5pt;
    border-radius: 0.8mm;
  }

  .profile-objective .report-example-answer {
    gap: 0.8mm;
    margin-top: 0.8mm;
    font-size: 5.8pt;
    line-height: 1.15;
  }

  .profile-objective .answer-chip {
    min-height: 0;
    padding: 0.4mm 1mm;
    border-width: 0.5pt;
    font-size: 5.8pt;
  }

  .profile-objective .profile-positive {
    color: #174f40;
  }

  .profile-objective .profile-caveat-line {
    color: #76531f;
    font-size: 7.2pt;
  }

  .profile-objectives {
    min-height: 0;
  }

  .profile-density-medium .profile-objectives,
  .profile-density-high .profile-objectives,
  .profile-density-max .profile-objectives {
    column-gap: 2.5mm;
    column-rule: 0.4pt solid #e1e6e3;
  }

  .profile-density-medium .profile-objectives {
    column-count: 2;
  }

  .profile-density-high .profile-objectives {
    column-count: 3;
  }

  .profile-density-max .profile-objectives {
    column-count: 4;
  }

  .profile-density-medium .profile-objective,
  .profile-density-high .profile-objective,
  .profile-density-max .profile-objective {
    display: inline-block;
    width: 100%;
    margin: 0 0 2.5mm;
    padding: 2.5mm 3mm;
    box-sizing: border-box;
  }

  .profile-density-medium .profile-objective-heading h2 {
    font-size: 9pt;
  }

  .profile-density-medium .profile-objective p {
    font-size: 6.8pt;
    line-height: 1.3;
  }

  .profile-density-medium .profile-objective .profile-performance {
    gap: 0.8mm 1.2mm;
    margin-top: 1mm;
  }

  .profile-density-medium .profile-objective .profile-can-do,
  .profile-density-medium .profile-objective .profile-pattern-detail,
  .profile-density-medium .profile-objective .report-example {
    margin-top: 1mm;
    padding: 1mm 1.3mm;
    font-size: 6pt;
    line-height: 1.22;
  }

  .profile-density-medium .profile-objective .report-example-figure {
    flex-basis: 8mm;
    width: 8mm;
    height: 7mm;
  }

  .profile-density-medium .profile-objective .report-example-prompt {
    font-size: 5.8pt;
    line-height: 1.18;
  }

  .profile-density-high .profile-objective,
  .profile-density-max .profile-objective {
    margin-bottom: 2mm;
    padding: 2mm 2.3mm;
  }

  .profile-density-high .profile-objective-heading,
  .profile-density-max .profile-objective-heading {
    gap: 2mm;
    margin-bottom: 1mm;
  }

  .profile-density-high .profile-objective-heading h2 {
    font-size: 7.3pt;
  }

  .profile-density-high .profile-objective-heading strong {
    font-size: 7.3pt;
  }

  .profile-density-high .profile-objective p {
    margin-top: 0.8mm;
    font-size: 5.8pt;
    line-height: 1.22;
  }

  .profile-density-high .profile-objective .performance-legend,
  .profile-density-max .profile-objective .performance-legend,
  .profile-density-high .profile-objective .report-example-label,
  .profile-density-max .profile-objective .report-example-label,
  .profile-density-high .profile-objective .report-example-maths-line,
  .profile-density-max .profile-objective .report-example-maths-line {
    display: none;
  }

  .profile-density-high .profile-objective .profile-performance,
  .profile-density-max .profile-objective .profile-performance {
    gap: 0.6mm 1mm;
    margin-top: 0.7mm;
  }

  .profile-density-high .profile-objective .performance-bar,
  .profile-density-max .profile-objective .performance-bar {
    height: 1.4mm;
  }

  .profile-density-high .profile-objective .achievement-band,
  .profile-density-max .profile-objective .achievement-band {
    padding: 0.35mm 0.8mm;
    font-size: 4.7pt;
  }

  .profile-density-high .profile-objective .profile-can-do,
  .profile-density-high .profile-objective .profile-pattern-detail,
  .profile-density-high .profile-objective .report-example,
  .profile-density-max .profile-objective .profile-can-do,
  .profile-density-max .profile-objective .profile-pattern-detail,
  .profile-density-max .profile-objective .report-example {
    margin-top: 0.7mm;
    padding: 0.7mm 0.9mm;
    border-radius: 0.8mm;
    font-size: 5pt;
    line-height: 1.15;
  }

  .profile-density-high .profile-objective .report-example-layout,
  .profile-density-max .profile-objective .report-example-layout {
    gap: 0.8mm;
  }

  .profile-density-high .profile-objective .report-example-figure,
  .profile-density-max .profile-objective .report-example-figure {
    flex-basis: 6mm;
    width: 6mm;
    height: 5.5mm;
  }

  .profile-density-high .profile-objective .report-example-prompt,
  .profile-density-high .profile-objective .report-example-answer,
  .profile-density-high .profile-objective .answer-chip,
  .profile-density-max .profile-objective .report-example-prompt,
  .profile-density-max .profile-objective .report-example-answer,
  .profile-density-max .profile-objective .answer-chip {
    font-size: 4.7pt;
    line-height: 1.12;
  }

  .profile-density-max .profile-objective-heading h2,
  .profile-density-max .profile-objective-heading strong {
    font-size: 6.2pt;
  }

  .profile-density-max .profile-objective p {
    margin-top: 0.6mm;
    font-size: 5pt;
    line-height: 1.16;
  }

  .profile-density-max .profile-objective .profile-pattern-label {
    font-size: 4.9pt;
    line-height: 1.12;
  }

  .profile-density-max .profile-objective .profile-can-do,
  .profile-density-max .profile-objective .profile-pattern-detail,
  .profile-density-max .profile-objective .report-example {
    margin-top: 0.5mm;
    padding: 0.55mm 0.7mm;
  }

  .profile-density-high .profile-objective .profile-caveat-line,
  .profile-density-max .profile-objective .profile-caveat-line {
    font-size: 4.8pt;
  }

  .print-curriculum-heading {
    margin: 7mm 0 3mm;
  }

  .print-curriculum-heading h2 {
    margin: 0;
    font-size: 15pt;
  }

  .print-report .priorities-heading h2 {
    margin: 0;
    font-size: 11pt;
  }

  .print-report .priority-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4mm;
  }

  .print-report .priority-card > * {
    grid-column: auto;
  }

  .print-report .priority-card-header {
    display: grid;
    grid-template-columns: 6mm minmax(0, 1fr);
    gap: 1.2mm;
    align-items: start;
  }

  .print-report .priority-card-header h3 {
    margin: 0;
    font-size: 7.7pt;
    line-height: 1.25;
  }

  .print-report .priority-card-header .achievement-band {
    grid-column: 2;
    justify-self: start;
  }

  .print-report .priority-card .performance-summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 1mm;
  }

  .print-report .priority-card .performance-legend {
    grid-column: auto;
  }

  .print-report .priority-card .performance-copy strong {
    font-size: 7.6pt;
  }

  .print-report .priority-card .performance-copy span,
  .print-report .priority-card .performance-legend {
    font-size: 5.4pt;
  }

  .print-report .priority-card .performance-bar {
    height: 2.2mm;
  }

  .print-report .priority-card .priority-example {
    margin: 0;
    padding: 1.2mm 1.4mm;
    border-radius: 1.3mm;
  }

  .print-report .priority-card .priority-example .report-example-label {
    margin-bottom: 0.5mm;
    font-size: 4.9pt;
  }

  .print-report .priority-card .priority-example .report-example-layout {
    gap: 1.2mm;
  }

  .print-report .priority-card .priority-example .report-example-figure {
    flex-basis: 9mm;
    width: 9mm;
    height: 8mm;
  }

  .print-report .priority-card .priority-example .report-example-prompt {
    font-size: 6.2pt;
  }

  .print-report .priority-card .priority-example .report-example-answer {
    margin-top: 0.6mm;
    font-size: 5.2pt;
  }

  .print-report .priority-card .priority-example .answer-chip {
    padding: 0.35mm 0.7mm;
    font-size: 5.2pt;
  }

  .print-class-section-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .print-class-section > .performance-summary {
    padding: 2.5mm 4mm;
    border-bottom: 0.5pt solid #dce2de;
  }

  .print-class-section > .report-example {
    margin: 2.5mm 4mm 3.5mm;
  }

  .print-pattern-copy {
    position: relative;
    min-width: 0;
  }

  .print-pattern-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5mm;
    height: 5mm;
    margin: 0 1.4mm 1mm 0;
    border: 0.5pt solid #b9d6ca;
    border-radius: 1.2mm;
    background: #e4f3ed;
    color: #174f40;
    font-size: 6.5pt;
    font-weight: 850;
  }

  .print-pattern-copy > strong {
    display: inline;
  }

  .profile-overall .achievement-band {
    display: inline-flex;
    margin: 0.8mm 0;
    color: inherit;
    font-size: 6.2pt;
  }

  .profile-print-result {
    display: flex;
    gap: 1.5mm;
    align-items: center;
    justify-content: flex-end;
  }

  .profile-print-result .achievement-band {
    font-size: 5.8pt;
  }

  .student-profile-page .profile-objective > .performance-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1mm;
    margin-top: 1.3mm;
  }

  .student-profile-page .profile-objective > .performance-summary .performance-copy {
    display: none;
  }

  .student-profile-page .profile-objective > .performance-summary .performance-bar,
  .student-profile-page .profile-objective > .performance-summary .performance-legend {
    grid-column: 1;
  }

  .profile-print-patterns {
    display: grid;
    gap: 0.8mm;
    margin-top: 1.2mm;
  }

  .profile-objective .profile-print-pattern-detail {
    margin: 0;
    color: #344d43;
    font-size: 7.2pt;
    line-height: 1.28;
  }

  .profile-density-medium .profile-objective > .performance-summary {
    margin-top: 0.9mm;
  }

  .profile-density-high .profile-objective > .performance-summary,
  .profile-density-max .profile-objective > .performance-summary {
    gap: 0.5mm;
    margin-top: 0.5mm;
  }

  .profile-density-high .profile-print-patterns,
  .profile-density-max .profile-print-patterns {
    gap: 0.35mm;
    margin-top: 0.5mm;
  }

  .profile-density-high .profile-objective .profile-print-pattern-detail,
  .profile-density-max .profile-objective .profile-print-pattern-detail {
    margin: 0;
    font-size: 4.7pt;
    line-height: 1.12;
  }

  .profile-print-footer {
    position: static;
    display: flex;
    justify-content: space-between;
    padding-top: 2.5mm;
    border-top: 0.5pt solid #bac5bf;
    color: #58675f;
    font-size: 7pt;
  }

  .adaptive-dialog {
    display: none !important;
  }

  /* One-page generic Adaptive Check working sheet. */
  .adaptive-working-paper {
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    width: 100%;
    height: 255mm;
    min-height: 0;
    padding-bottom: 8mm;
  }

  .adaptive-working-paper .paper-front-header {
    margin-bottom: 5mm;
    padding-bottom: 4mm;
  }

  .adaptive-working-paper .student-details {
    margin-bottom: 5mm;
  }

  .adaptive-working-paper .paper-intro {
    margin-bottom: 4mm;
    padding: 3mm 4mm;
    font-size: 8.5pt;
  }

  .adaptive-working-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, minmax(0, 1fr));
    gap: 3.5mm;
    min-height: 0;
  }

  .adaptive-working-box {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    padding: 3mm;
    border: 0.7pt solid #aebbb4;
    border-radius: 2.5mm;
    background: white;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .adaptive-working-label {
    display: block;
    margin-bottom: 2mm;
    color: #20352e;
    font-size: 9pt;
    font-weight: 800;
  }

  .adaptive-working-box .paper-working {
    height: auto;
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background:
      repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 8mm,
        rgba(122, 139, 130, 0.2) 8.2mm,
        rgba(122, 139, 130, 0.2) 8.5mm
      );
  }

  .adaptive-working-box .paper-working::before {
    display: none;
    content: none;
  }

  /* Adaptive class matrices print in readable blocks of eight objectives. */
  .adaptive-print-matrix-block,
  .adaptive-matrix-print-block {
    margin: 0 0 5mm;
    break-inside: auto;
    page-break-inside: auto;
  }

  .adaptive-print-matrix-block h2,
  .adaptive-matrix-print-block h2 {
    margin: 0 0 2mm;
    font-size: 11pt;
  }

  .adaptive-print-matrix,
  .adaptive-matrix-print {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 5.8pt;
  }

  .adaptive-print-matrix thead,
  .adaptive-matrix-print thead {
    display: table-header-group;
  }

  .adaptive-print-matrix th,
  .adaptive-print-matrix td,
  .adaptive-matrix-print th,
  .adaptive-matrix-print td {
    padding: 1.3mm 0.8mm;
    border: 0.45pt solid #bfc9c3;
    overflow-wrap: anywhere;
    text-align: center;
    vertical-align: middle;
  }

  .adaptive-print-matrix th:first-child,
  .adaptive-matrix-print th:first-child {
    width: 31mm;
    text-align: left;
  }

  .adaptive-print-status,
  .adaptive-print-matrix .adaptive-status-badge,
  .adaptive-matrix-print .adaptive-status-badge {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #263a32;
    font-size: 5.4pt;
    font-weight: 800;
    line-height: 1.15;
    white-space: normal;
  }

  .adaptive-print-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1mm 3mm;
    margin: 2mm 0 4mm;
    color: #52635b;
    font-size: 6pt;
  }

  .adaptive-print-pattern,
  .adaptive-print-facility {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  /* Adaptive profile overview pages and optional evidence continuation pages. */
  .adaptive-profile-print-page {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%;
    min-height: 255mm;
    break-after: page;
    page-break-after: always;
  }

  .adaptive-profile-print-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .adaptive-profile-print-overview {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2mm;
    align-content: start;
  }

  .adaptive-profile-print-objective {
    padding: 2mm 2.3mm;
    border: 0.55pt solid #c7d0cb;
    border-radius: 1.5mm;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .adaptive-profile-print-objective h2,
  .adaptive-profile-print-objective h3 {
    margin: 0 0 0.8mm;
    font-size: 7pt;
    line-height: 1.2;
  }

  .adaptive-profile-print-objective p {
    margin: 0.6mm 0 0;
    color: #485951;
    font-size: 5.8pt;
    line-height: 1.25;
  }

  .adaptive-profile-detail-page {
    min-height: 255mm;
    break-after: page;
    page-break-after: always;
  }

  .adaptive-profile-detail-page:last-child {
    break-after: auto;
    page-break-after: auto;
  }
}

/* ========================================================================== */
/* Site-wide screenshot theme · screen only · 2026-08-04                     */
/* ========================================================================== */

@media screen {
  :root {
    --ink: #19211c;
    --muted: #606b64;
    --soft-ink: #606b64;
    --green: #336a4a;
    --green-dark: #28583e;
    --green-soft: #e9f3ee;
    --mint: #e9f3ee;
    --gold: #745519;
    --gold-soft: #fdf2cc;
    --rose: #983834;
    --rose-soft: #fae9e8;
    --paper: #ffffff;
    --canvas: #f5f7f5;
    --line: #dbe3de;
    --line-strong: #c9d4ce;
    --white: #ffffff;
    --report-correct: #336a4a;
    --report-correct-soft: #e7f3eb;
    --report-incorrect: #983834;
    --report-incorrect-soft: #fae9e8;
    --report-unanswered: #a3ada7;
    --report-unanswered-soft: #f2f3f2;
    --report-blue: #336a4a;
    --report-blue-soft: #e9f3ee;
    --report-violet: #745519;
    --report-violet-soft: #fdf2cc;
    --shadow: none;
    --shadow-small: none;
    --radius-large: 20px;
    --radius-medium: 16px;
    --radius-small: 12px;
    color: var(--ink);
    background: var(--canvas);
    font-family:
      "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
      sans-serif;
  }

  html,
  body,
  .screen-app {
    background: var(--canvas);
  }

  body {
    color: var(--ink);
    background-image: none;
    font-size: 16px;
    line-height: 1.5;
  }

  h1,
  h2,
  h3,
  h4,
  strong,
  button,
  input,
  select,
  textarea {
    font-synthesis: none;
  }

  h1,
  h2,
  h3,
  h4 {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.025em;
  }

  h1 {
    margin-bottom: 12px;
    font-size: clamp(32px, 3.7vw, 42px);
    line-height: 1.08;
  }

  h2 {
    margin-bottom: 9px;
    font-size: clamp(24px, 2.5vw, 30px);
    line-height: 1.18;
  }

  h3 {
    margin-bottom: 7px;
    font-size: 20px;
    line-height: 1.28;
  }

  h4 {
    line-height: 1.35;
  }

  .eyebrow,
  .student-eyebrow,
  .report-example-label,
  .priority-reason strong,
  .code-card span,
  .practice-badge {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
  }

  .hero-copy,
  .page-heading p,
  .large-copy,
  .grid-page-header p,
  .report-screen-header p {
    color: var(--muted);
  }

  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid rgba(51, 106, 74, 0.34);
    outline-offset: 3px;
  }

  /* Shell and global navigation. */
  .site-header {
    min-height: 72px;
    padding: 10px clamp(20px, 3.5vw, 48px);
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: none;
  }

  .brand {
    color: var(--ink);
  }

  .brand strong {
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .brand small {
    color: var(--muted);
    font-size: 12px;
  }

  .brand-mark {
    border-radius: 12px;
    background: var(--green);
  }

  .brand-mark span,
  .brand-mark span:nth-child(2) {
    background: #ffffff;
  }

  .top-nav {
    gap: 4px;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--canvas);
  }

  .nav-button {
    border-radius: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
  }

  .nav-button:hover {
    background: #ffffff;
    color: var(--ink);
  }

  .nav-button.is-active {
    background: #ffffff;
    box-shadow: none;
    color: var(--green);
  }

  .fallback-nav-button {
    border-left-color: var(--line);
    color: var(--muted);
  }

  .view {
    padding-top: clamp(34px, 5vw, 64px);
  }

  .hero,
  .page-heading {
    margin-bottom: clamp(28px, 4vw, 42px);
  }

  .hero h1,
  .page-heading h1,
  .compact-heading h1,
  .grid-page-header h1,
  .report-screen-header h1,
  .success-panel h1 {
    color: var(--ink);
    font-size: clamp(32px, 3.7vw, 42px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.08;
  }

  .hero-copy,
  .page-heading p,
  .large-copy {
    font-size: clamp(16px, 1.45vw, 18px);
    line-height: 1.5;
  }

  .local-badge {
    border-color: var(--line);
    border-radius: 16px;
    background: var(--green-soft);
    color: var(--muted);
  }

  .local-badge strong {
    color: var(--ink);
    font-weight: 600;
  }

  .local-badge-dot {
    border-color: #c9dfd2;
    background: var(--green);
    box-shadow: none;
  }

  /* Shared surfaces and controls. */
  .panel,
  .assessment-option-card,
  .selection-card,
  .success-panel,
  .delivery-card,
  .code-card,
  .saved-item,
  .live-link-card,
  .online-summary-card,
  .online-attempt-row,
  .mark-grid-shell,
  .report-cover,
  .class-capabilities,
  .class-section-card,
  .profile-card,
  .adaptive-dialog,
  .confirm-dialog,
  .adaptive-report-section,
  .adaptive-pattern-summary,
  .adaptive-profile-card,
  .student-start-card,
  .student-question-card,
  .student-message-card,
  .student-fluency-ready-card {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
  }

  .panel,
  .assessment-option-card,
  .selection-card,
  .success-panel,
  .delivery-card,
  .live-link-card,
  .class-section-card,
  .profile-card,
  .adaptive-report-section,
  .adaptive-pattern-summary,
  .adaptive-profile-card,
  .student-start-card,
  .student-question-card,
  .student-message-card,
  .student-fluency-ready-card {
    border-radius: 18px;
  }

  .text-input,
  .text-area,
  .student-name-input,
  .student-other-input,
  .adaptive-student-focus-select {
    border-color: var(--line-strong);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    box-shadow: none;
  }

  .text-input:hover,
  .text-area:hover,
  .student-name-input:hover,
  .student-other-input:hover,
  .adaptive-student-focus-select:hover {
    border-color: #9dafa4;
  }

  .text-input:focus,
  .text-area:focus,
  .student-name-input:focus,
  .student-other-input:focus,
  .adaptive-student-focus-select:focus-visible {
    border-color: var(--green);
    box-shadow: 0 0 0 4px rgba(51, 106, 74, 0.11);
    outline: none;
  }

  .field-label,
  .student-field-label,
  .adaptive-student-matrix-controls label {
    color: var(--ink);
    font-weight: 600;
  }

  .primary-button,
  .secondary-button,
  .danger-button,
  .student-primary-button,
  .student-secondary-button,
  .adaptive-profile-detail-action {
    border-radius: 12px;
    box-shadow: none;
    font-weight: 600;
    transform: none;
  }

  .primary-button,
  .student-primary-button,
  .adaptive-profile-detail-action,
  .selection-card .primary-button {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
  }

  .primary-button:hover:not(:disabled),
  .student-primary-button:hover:not(:disabled),
  .adaptive-profile-detail-action:hover,
  .selection-card .primary-button:hover:not(:disabled) {
    border-color: var(--green-dark);
    background: var(--green-dark);
    box-shadow: none;
    transform: none;
  }

  .secondary-button,
  .student-secondary-button {
    border-color: var(--line-strong);
    background: #ffffff;
    color: var(--ink);
  }

  .secondary-button:hover,
  .student-secondary-button:hover:not(:disabled) {
    border-color: var(--green);
    background: var(--green-soft);
    box-shadow: none;
    color: var(--green-dark);
    transform: none;
  }

  .danger-button {
    border-color: #d7aaa7;
    background: #ffffff;
    color: var(--rose);
  }

  .danger-button:hover,
  .solid-danger,
  .solid-danger:hover {
    border-color: var(--rose);
    background: var(--rose-soft);
    color: var(--rose);
  }

  .primary-button:disabled,
  .student-primary-button:disabled,
  .student-secondary-button:disabled {
    border-color: var(--line);
    background: #e7ebe8;
    box-shadow: none;
    color: #7a857f;
    opacity: 1;
  }

  .text-button,
  .back-button,
  .adaptive-profile-breadcrumb button {
    color: var(--green);
    font-weight: 600;
  }

  .mode-badge,
  .count-badge,
  .session-status,
  .attempt-submitted,
  .attempt-progress,
  .achievement-band,
  .answer-chip,
  .adaptive-status-badge,
  .adaptive-section-preview-chip,
  .practice-badge {
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: 0;
  }

  .mode-badge,
  .count-badge,
  .adaptive-mode-badge,
  .session-open,
  .attempt-submitted,
  .adaptive-section-preview-chip {
    border-color: #9bbca9;
    background: var(--report-correct-soft);
    color: var(--green-dark);
  }

  .session-closed {
    background: var(--report-unanswered-soft);
    color: var(--muted);
  }

  .attempt-progress,
  .practice-badge,
  .adaptive-section-preview-chip.is-timed {
    border-color: #d6bd72;
    background: var(--gold-soft);
    color: var(--gold);
  }

  /* Builder and assessment setup. */
  .step-number {
    border-right-color: var(--line);
    background: var(--green-soft);
    color: var(--green);
    font-weight: 600;
  }

  .assessment-options-heading h2 {
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 600;
  }

  .assessment-option-card,
  .adaptive-option-card {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
  }

  .adaptive-option-card {
    border-color: #b8cfc2;
  }

  .assessment-option-icon {
    border-radius: 12px;
    background: var(--green);
    color: #ffffff;
  }

  .build-option-icon {
    background: var(--green-soft);
    color: var(--green);
  }

  .assessment-option-copy h3,
  .adaptive-section-preview-copy h3,
  .adaptive-section-launcher-heading strong,
  .adaptive-section-group-heading strong {
    color: var(--ink);
    font-weight: 600;
  }

  .adaptive-section-launcher {
    border-top-color: var(--line);
  }

  .adaptive-section-group.is-timed,
  .fluency-objective-group {
    border-color: #ddc985;
    background: var(--gold-soft);
  }

  .adaptive-section-button,
  .adaptive-comprehensive-button,
  .adaptive-section-button.is-timed,
  .adaptive-section-preview {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
  }

  .adaptive-section-button,
  .adaptive-comprehensive-button {
    border-radius: 14px;
  }

  .adaptive-section-preview {
    border-radius: 16px;
  }

  .adaptive-section-button:hover:not(:disabled),
  .adaptive-section-button:focus-visible,
  .adaptive-comprehensive-button:hover:not(:disabled),
  .adaptive-comprehensive-button:focus-visible {
    border-color: #9bbca9;
    background: var(--canvas);
    box-shadow: none;
    transform: none;
  }

  .adaptive-section-button.is-selected,
  .adaptive-comprehensive-button.is-selected,
  .adaptive-section-button.is-timed.is-selected {
    border-color: #aebbb4;
    background: #f6f8f6;
    box-shadow: inset 4px 0 #323b36;
  }

  .objective-row {
    border-color: transparent;
    border-radius: 12px;
    background: transparent;
  }

  .objective-row:hover {
    background: #f6f8f6;
  }

  .objective-row.is-selected,
  .fluency-objective-group .objective-row.is-selected {
    border-color: var(--line);
    background: #f6f8f6;
    box-shadow: inset 4px 0 #323b36;
  }

  .strand-code {
    border-radius: 7px;
    background: var(--green);
    color: #ffffff;
  }

  .slider-value {
    border-color: var(--line);
    border-radius: 10px;
    background: #ffffff;
    color: var(--green-dark);
    font-weight: 600;
  }

  .selection-card {
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
  }

  .selection-card .eyebrow,
  .selection-total span,
  .summary-list dt,
  .selection-card .summary-note {
    color: var(--muted);
  }

  .selection-total strong,
  .summary-list dd {
    color: var(--ink);
  }

  .summary-list div {
    border-top-color: var(--line);
  }

  /* Generated, sharing, online-home and live-dashboard states. */
  .success-panel {
    border: 1px solid var(--line);
  }

  .success-mark {
    background: var(--report-correct-soft);
    color: var(--green);
  }

  .online-delivery {
    border-color: #b8cfc2;
    background: var(--green-soft);
    box-shadow: none;
  }

  .working-delivery {
    border-color: #ddc985;
    background: var(--gold-soft);
  }

  .delivery-icon {
    border-radius: 12px;
    background: var(--green);
    color: #ffffff;
  }

  .secondary-icon {
    background: #ffffff;
    color: var(--gold);
  }

  .student-link-panel,
  .student-qr-card,
  .qr-preview-button {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
  }

  .student-link-panel {
    border: 1px solid var(--line);
  }

  .qr-preview-button:hover {
    border-color: var(--green);
    box-shadow: none;
  }

  .code-card,
  .recovery-code-card {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #f6f8f6;
    opacity: 1;
  }

  .backup-route,
  .empty-state {
    border-color: var(--line-strong);
    border-style: solid;
    border-radius: 14px;
    background: #ffffff;
  }

  .saved-item:hover {
    border-color: #9bbca9;
    background: #f6f8f6;
  }

  .live-link-card {
    border-color: var(--line);
    background: var(--green-soft);
  }

  .online-summary-card {
    border-color: var(--line);
    border-radius: 16px;
    background: #ffffff;
  }

  .online-summary-card strong {
    color: var(--ink);
    font-weight: 600;
  }

  .online-attempt-row {
    border-color: var(--line);
    background: #ffffff;
  }

  .online-progress-track,
  .progress-track,
  .student-main-progress-track {
    background: #e2e7e3;
  }

  .online-progress-fill,
  .progress-fill,
  .student-main-progress-fill {
    background: var(--green);
  }

  .other-response-summary,
  .keyboard-help,
  .preview-data-banner,
  .adaptive-handoff-warning {
    border-color: #ddc985;
    background: var(--gold-soft);
    color: var(--gold);
  }

  /* Roster, fast marking, data grids and tables. */
  .mark-grid-shell,
  .adaptive-matrix-shell {
    border-color: var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
  }

  .mark-grid th,
  .mark-grid td,
  .adaptive-matrix th,
  .adaptive-matrix td {
    border-color: var(--line);
  }

  .mark-grid thead th,
  .mark-grid .question-heading,
  .adaptive-matrix thead th {
    background: #f6f8f6;
    box-shadow: none;
    color: var(--ink);
  }

  .mark-grid .student-heading,
  .mark-grid .objective-band,
  .adaptive-matrix thead th:first-child,
  .adaptive-matrix .adaptive-matrix-student-heading {
    background: var(--green-soft);
    color: var(--ink);
  }

  .mark-grid tbody th,
  .adaptive-matrix tbody th,
  .adaptive-matrix .adaptive-matrix-student-cell {
    background: #ffffff;
    box-shadow: inset -1px 0 var(--line);
  }

  .mark-grid tr:nth-child(even) td,
  .adaptive-matrix tbody tr:nth-child(even) td,
  .adaptive-matrix tbody tr:nth-child(even) th {
    background: #f6f8f6;
  }

  .answer-cell:focus {
    box-shadow: inset 0 0 0 2px var(--green);
  }

  .answer-option {
    border-color: var(--line);
    background: #ffffff;
    color: var(--muted);
  }

  .answer-option:hover {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green-dark);
  }

  .answer-option.is-selected {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
  }

  .objective-end {
    border-right-color: #b6c7bd !important;
  }

  /* Class reports and individual profiles. */
  .report-cover {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--green-soft);
    box-shadow: none;
    color: var(--ink);
  }

  .report-cover h2,
  .report-cover-stat strong,
  .profile-score,
  .profile-detail-heading strong,
  .affected-students strong {
    color: var(--ink);
  }

  .report-cover .eyebrow,
  .report-cover p,
  .report-cover-stat span {
    color: var(--muted);
  }

  .report-caveat {
    border-color: #ddc985;
    background: var(--gold-soft);
    color: var(--gold);
  }

  .preview-data-banner p {
    color: var(--gold);
  }

  .class-capabilities,
  .class-section-card,
  .profile-card {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
  }

  .priority-card,
  .pattern-card,
  .profile-detail-row,
  .profile-card-header {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
  }

  .class-section-heading {
    border-bottom-color: var(--line);
    background: #f6f8f6;
  }

  .class-section-card > .performance-summary,
  .pattern-card + .pattern-card,
  .fluency-response-detail {
    border-color: var(--line);
  }

  .priority-number,
  .pattern-rank {
    border-color: #a9c5b5;
    border-radius: 10px;
    background: var(--report-correct-soft);
    color: var(--green-dark);
  }

  .achievement-band.band-secure,
  .achievement-band.band-fluent,
  .band-fluent .achievement-band,
  .band-secure .achievement-band {
    border-color: #78a88e;
    background: var(--report-correct-soft);
    color: var(--green-dark);
  }

  .achievement-band.band-consolidating,
  .band-consolidating .achievement-band,
  .achievement-band.band-developing,
  .achievement-band.band-developing-fluency,
  .band-developing-fluency .achievement-band,
  .band-developing .achievement-band {
    border-color: #c8a849;
    background: var(--gold-soft);
    color: var(--gold);
  }

  .achievement-band.band-needs-support,
  .achievement-band.band-needs-targeted-practice,
  .band-needs-targeted-practice .achievement-band,
  .band-needs-support .achievement-band {
    border-color: #c97874;
    background: var(--rose-soft);
    color: var(--rose);
  }

  .achievement-band.band-not-answered,
  .band-not-answered .achievement-band {
    border-color: var(--line-strong);
    background: var(--report-unanswered-soft);
    color: var(--muted);
  }

  .performance-bar,
  .reach-bar,
  .fluency-achievement-bar {
    border-color: var(--line);
    background: #e5e9e6;
    box-shadow: none;
  }

  .segment-correct,
  .segment-fluent,
  .legend-swatch.segment-fluent,
  .legend-swatch.segment-correct {
    background: var(--report-correct);
  }

  .segment-developing-fluency,
  .legend-swatch.segment-developing-fluency,
  .segment-correct-not-automatic,
  .legend-swatch.segment-correct-not-automatic {
    background: #c69a27;
  }

  .segment-needs-targeted-practice,
  .legend-swatch.segment-needs-targeted-practice,
  .segment-incorrect,
  .legend-swatch.segment-incorrect {
    background: var(--report-incorrect);
  }

  .segment-unanswered,
  .legend-swatch.segment-unanswered,
  .segment-timed-out,
  .legend-swatch.segment-timed-out {
    background: var(--report-unanswered);
  }

  .report-example,
  .priority-card .priority-example,
  .class-section-card > .objective-example,
  .profile-detail-row > .objective-example,
  .profile-detail-row > .performance-summary,
  .pattern-reach,
  .fluency-response-detail,
  .fluency-response-stat {
    border-color: var(--line);
    background: #f6f8f6;
    box-shadow: none;
  }

  .report-example {
    border-radius: 12px;
  }

  .report-example-label,
  .priority-reason strong {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
  }

  .maths-expression,
  .answer-chip {
    border-color: var(--line);
    background: #ffffff;
    color: var(--ink);
  }

  .profile-can-do > .report-example,
  .profile-can-do {
    border-color: #a9c5b5;
    background: var(--report-correct-soft);
    color: var(--green-dark);
  }

  .profile-detail-caveat {
    color: var(--gold);
  }

  .profile-pattern-detail,
  .profile-pattern-detail > .report-example,
  .adaptive-profile-meaning {
    border-color: #d5bc72;
    background: var(--gold-soft);
    color: var(--gold);
  }

  .report-detail-toggle {
    border-color: var(--line-strong);
    border-radius: 10px;
    background: #ffffff;
    color: var(--green-dark);
    font-weight: 600;
  }

  .report-detail-toggle:hover {
    border-color: var(--green);
    background: var(--green-soft);
  }

  .class-section-card > .report-detail-panel,
  .profile-detail-row > .report-detail-panel {
    border-color: var(--line);
    background: #ffffff;
  }

  .positive-empty {
    background: var(--report-correct-soft);
    color: var(--green-dark);
  }

  .report-outcome-tooltip {
    border: 1px solid #456353;
    border-radius: 12px;
    background: #263a30;
    box-shadow: none;
    color: #ffffff;
  }

  .privacy-footer {
    border-top-color: var(--line);
    background: #f6f8f6;
  }

  /* Adaptive reports, matrices and the focused student profile. */
  #reports-view.is-adaptive-results .report-screen-header h1 {
    color: var(--ink);
    font-size: clamp(32px, 3.7vw, 42px);
    font-weight: 600;
    line-height: 1.08;
  }

  #reports-view.is-adaptive-results .report-screen-header .report-intro {
    color: var(--ink) !important;
    font-size: 18px !important;
    font-weight: 500;
  }

  .adaptive-class-overview,
  .adaptive-student-overview {
    border-color: var(--line);
    border-radius: 18px;
    background: var(--green-soft);
  }

  .adaptive-class-overview h2,
  .adaptive-student-overview h2,
  .adaptive-overview-metric strong {
    color: var(--ink);
    font-weight: 600;
  }

  .adaptive-overview-metric {
    border-color: var(--line);
  }

  .adaptive-overview-metric.tone-attention strong {
    color: var(--rose);
  }

  .adaptive-overview-dot,
  .adaptive-results-status::before,
  .adaptive-profile-status-label::before,
  .adaptive-profile-priority-status::before {
    background: var(--green);
  }

  .adaptive-overview-metric.tone-developing .adaptive-overview-dot,
  .status-developing.adaptive-overview-dot,
  .status-accurate-not-automatic.adaptive-overview-dot,
  .adaptive-results-status.status-developing::before,
  .adaptive-results-status.status-accurate-not-automatic::before,
  .adaptive-profile-status-label.status-developing::before,
  .adaptive-profile-status-label.status-accurate-not-automatic::before,
  .adaptive-profile-priority-status.status-developing::before,
  .adaptive-profile-priority-status.status-accurate-not-automatic::before {
    background: #b88713;
  }

  .adaptive-overview-metric.tone-attention .adaptive-overview-dot,
  .status-misconception.adaptive-overview-dot,
  .status-not-secure.adaptive-overview-dot,
  .adaptive-results-status.status-misconception::before,
  .adaptive-results-status.status-not-secure::before,
  .adaptive-profile-status-label.status-misconception::before,
  .adaptive-profile-status-label.status-not-secure::before,
  .adaptive-profile-priority-status.status-misconception::before,
  .adaptive-profile-priority-status.status-not-secure::before {
    background: var(--rose);
  }

  .status-in-progress.adaptive-overview-dot,
  .adaptive-results-status.status-in-progress::before,
  .adaptive-profile-status-label.status-in-progress::before,
  .adaptive-profile-priority-status.status-in-progress::before {
    background: var(--green);
  }

  .status-not-reached.adaptive-overview-dot,
  .adaptive-results-status.status-not-reached::before,
  .adaptive-profile-status-label.status-not-reached::before,
  .adaptive-profile-priority-status.status-not-reached::before {
    background: var(--report-unanswered);
  }

  .adaptive-results-tabs {
    border-bottom-color: var(--line);
  }

  .adaptive-results-tabs button {
    color: var(--muted);
    font-weight: 500;
  }

  .adaptive-results-tabs button.is-active {
    color: var(--green-dark);
    font-weight: 600;
  }

  .adaptive-results-tabs button.is-active::after {
    background: var(--green);
  }

  .adaptive-results-matrix thead th,
  .adaptive-results-matrix thead th:first-child,
  .adaptive-results-matrix .adaptive-matrix-student-heading,
  .adaptive-results-matrix tbody th,
  .adaptive-results-matrix .adaptive-matrix-student-cell {
    background: #f6f8f6;
    box-shadow: none;
  }

  .adaptive-results-matrix th,
  .adaptive-results-matrix td,
  #adaptive-results-objective-panel .adaptive-objective-facility {
    border-color: var(--line);
  }

  .adaptive-results-matrix tbody tr:nth-child(even) td,
  .adaptive-results-matrix tbody tr:nth-child(even) th {
    background: #f6f8f6;
  }

  .adaptive-attention-panel,
  .adaptive-profile-teaching-panel {
    border: 1px solid #ddc985;
    border-left: 6px solid var(--gold);
    border-radius: 14px;
    background: var(--gold-soft);
  }

  .adaptive-attention-panel h2,
  .adaptive-profile-teaching-panel h2 {
    color: var(--ink);
    font-weight: 600;
  }

  .adaptive-attention-row {
    border-color: rgba(116, 85, 25, 0.22);
  }

  .adaptive-pattern-card,
  #reports-view.is-adaptive-results .adaptive-pattern-card {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
  }

  .adaptive-pattern-count,
  #reports-view.is-adaptive-results .adaptive-pattern-count {
    color: var(--green-dark);
  }

  .adaptive-status-cell,
  .adaptive-matrix-cell button,
  .adaptive-status-badge {
    border-color: var(--line-strong);
    background: var(--report-unanswered-soft);
    box-shadow: none;
    color: var(--muted);
  }

  .adaptive-status-cell:hover,
  .adaptive-matrix-cell button:hover {
    border-color: var(--green);
    box-shadow: none;
  }

  .adaptive-status-cell.status-secure,
  .adaptive-status-cell.status-fluent,
  [data-adaptive-cell][data-status-key="secure"],
  [data-adaptive-cell][data-status-key="fluent"],
  .adaptive-status-badge.status-secure,
  .adaptive-status-badge.status-fluent {
    border-color: #78a88e;
    background: var(--report-correct-soft);
    color: var(--green-dark);
  }

  .adaptive-status-cell.status-developing,
  .adaptive-status-cell.status-accurate-not-automatic,
  [data-adaptive-cell][data-status-key="developing"],
  [data-adaptive-cell][data-status-key="accurate-not-automatic"],
  .adaptive-status-badge.status-developing,
  .adaptive-status-badge.status-accurate-not-automatic {
    border-color: #c8a849;
    background: var(--gold-soft);
    color: var(--gold);
  }

  .adaptive-status-cell.status-misconception,
  .adaptive-status-cell.status-not-secure,
  [data-adaptive-cell][data-status-key="misconception"],
  [data-adaptive-cell][data-status-key="not-secure"],
  .adaptive-status-badge.status-misconception,
  .adaptive-status-badge.status-not-secure {
    border-color: #c97874;
    background: var(--rose-soft);
    color: var(--rose);
  }

  .adaptive-status-cell.status-in-progress,
  [data-adaptive-cell][data-status-key="in-progress"],
  .adaptive-status-badge.status-in-progress {
    border-color: #9bbca9;
    background: var(--green-soft);
    color: var(--green-dark);
  }

  .adaptive-status-cell.status-not-reached,
  [data-adaptive-cell][data-status-key="not-reached"] {
    border-color: var(--line);
    background: var(--report-unanswered-soft);
    color: var(--muted);
  }

  .adaptive-profile-directory-card {
    border-color: var(--line);
    background: transparent;
  }

  .adaptive-profile-directory-card .profile-card-header {
    background: transparent;
  }

  .adaptive-profile-page-header h3,
  .adaptive-profile-directory-card .profile-card-header h3,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-page-header h3 {
    color: var(--ink);
    font-weight: 600;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-page-header h3 {
    font-size: clamp(30px, 3.3vw, 38px);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-breadcrumb {
    color: var(--muted);
    font-size: 15px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-quick-snapshot {
    border-color: transparent;
    border-radius: 18px;
    background: var(--green-soft);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot > div > strong {
    color: var(--ink);
    font-weight: 600;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list {
    border-radius: 18px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host {
    border-radius: 18px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list > h2,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h2,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h3 {
    color: var(--ink);
    font-weight: 600;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list > p {
    border-bottom: 1px solid var(--line);
    color: var(--muted);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row {
    border-bottom-color: var(--line);
    background: #ffffff;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row:hover {
    background: #f6f8f6;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row.is-selected,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row[aria-selected="true"],
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row[aria-pressed="true"] {
    background: #f6f8f6;
    box-shadow: inset 4px 0 #323b36;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row.is-selected:hover,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row[aria-selected="true"]:hover,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row[aria-pressed="true"]:hover {
    background: #f6f8f6;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row:focus-visible {
    outline-color: rgba(51, 106, 74, 0.34);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-copy strong {
    color: var(--ink);
    font-weight: 600;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent {
    border-color: var(--line-strong);
    background: var(--report-unanswered-soft);
    color: var(--muted);
    font-weight: 600;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-none {
    border-color: var(--line-strong);
    background: var(--report-unanswered-soft);
    color: var(--muted);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-good {
    border-color: #78a88e;
    background: var(--report-correct-soft);
    color: var(--green-dark);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-warning {
    border-color: #c8a849;
    background: var(--gold-soft);
    color: var(--gold);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-low {
    border-color: #c97874;
    background: var(--rose-soft);
    color: var(--rose);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend-dot,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend i {
    border-color: var(--line-strong);
    background: var(--report-unanswered-soft);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend-dot.tone-good,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend i.tone-good {
    border-color: #78a88e;
    background: var(--report-correct);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend-dot.tone-warning,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend i.tone-warning {
    border-color: #c8a849;
    background: var(--gold);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend-dot.tone-low,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend i.tone-low {
    border-color: #c97874;
    background: var(--rose);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta > *,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-disclosure {
    border-color: var(--line);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example dl > div {
    border-color: var(--line);
    background: #f6f8f6;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example dl > div {
    background: #ffffff;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example > h3,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example > h4 {
    color: var(--muted);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-misconception {
    border-left-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-misconception > h3,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-misconception strong,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-pattern-fact {
    color: var(--gold);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-pattern + .adaptive-profile-detail-pattern {
    border-top-color: rgba(116, 85, 25, 0.22);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-disclosure summary,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-disclosure > div {
    color: var(--gold);
  }

  /* Dialogs, QR, evidence, notifications and destructive confirmations. */
  .confirm-dialog,
  .adaptive-dialog {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(25, 33, 28, 0.18);
  }

  .confirm-dialog::backdrop,
  .adaptive-dialog::backdrop,
  .student-qr-dialog::backdrop {
    background: rgba(25, 33, 28, 0.5);
    backdrop-filter: none;
  }

  .dialog-icon,
  .student-message-mark.is-error {
    background: var(--rose-soft);
    color: var(--rose);
  }

  .student-qr-dialog {
    background: var(--canvas);
  }

  .student-qr-dialog .qr-code-full,
  .qr-dialog-close {
    border-color: var(--line);
    background: #ffffff;
    box-shadow: none;
  }

  .adaptive-dialog-close,
  .qr-dialog-close {
    border-color: var(--line-strong);
    border-radius: 12px;
    background: #ffffff;
    color: var(--ink);
    font-weight: 600;
  }

  .adaptive-evidence-summary {
    border-color: var(--line);
    background: var(--green-soft);
  }

  .adaptive-evidence-item,
  .adaptive-evidence-row,
  .adaptive-evidence-option,
  .adaptive-evidence-answer {
    border-color: var(--line);
    background: #f6f8f6;
  }

  .adaptive-evidence-option.is-selected,
  .adaptive-evidence-answer.is-selected {
    background: var(--gold-soft);
    color: var(--gold);
  }

  .adaptive-evidence-meta span,
  .adaptive-evidence-tags span {
    background: var(--report-unanswered-soft);
  }

  .adaptive-verification-warning {
    border: 1px solid #c97874;
    border-left: 6px solid var(--rose);
    background: var(--rose-soft);
    color: var(--rose);
  }

  .toast {
    border: 1px solid #456353;
    border-radius: 12px;
    background: #263a30;
    box-shadow: none;
    color: #ffffff;
    font-weight: 600;
  }

  /* Every child-facing state: start, question, review, adaptive and fluency. */
  .student-mode {
    background: var(--canvas);
    background-image: none;
  }

  .student-header {
    border-bottom: 1px solid var(--line);
  }

  .student-brand strong {
    color: var(--ink);
    font-weight: 600;
  }

  #student-app-root[data-session-mode="adaptive"] .student-brand strong,
  #student-app-root[data-session-mode="fluency"] .student-brand strong {
    color: var(--ink);
  }

  .student-start-card,
  .student-question-card,
  .student-message-card,
  .student-fluency-ready-card,
  [data-adaptive-transition],
  [data-adaptive-pause],
  [data-adaptive-finish] {
    border-color: var(--line);
    border-radius: 20px;
    background: #ffffff;
    background-image: none;
    box-shadow: none;
  }

  .student-start-copy h1,
  .student-review-heading h1,
  .student-message-card h1,
  .student-fluency-ready-card h1 {
    color: var(--ink);
    font-size: clamp(34px, 5vw, 46px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.1;
  }

  .student-name-form {
    border-color: var(--line);
    border-radius: 16px;
    background: var(--green-soft);
  }

  .student-start-step > span,
  .student-message-mark,
  .student-fluency-ready-card .ready-mark {
    background: var(--report-correct-soft);
    color: var(--green);
  }

  .student-primary-button,
  .student-secondary-button {
    min-height: 58px;
    border-radius: 14px;
    font-size: 17px;
  }

  .student-question-card {
    border-radius: 20px;
  }

  .student-question-prompt {
    color: var(--ink);
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .student-option {
    border-color: var(--line-strong);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: none;
    transform: none;
  }

  .student-option:hover {
    border-color: var(--green);
    background: #f6f8f6;
    transform: none;
  }

  .student-option.is-selected {
    border-color: var(--green);
    background: var(--green-soft);
    box-shadow: inset 0 0 0 1px var(--green);
  }

  .student-option-letter,
  .student-review-number {
    background: #323b36;
    color: #ffffff;
  }

  .student-option.is-selected .student-option-letter {
    background: var(--green);
  }

  .student-other-entry,
  .student-review-item.is-unanswered,
  .student-fluency-instruction {
    border-color: #ddc985;
    background: var(--gold-soft);
    color: var(--gold);
  }

  .student-review-item {
    border-color: var(--line);
    border-radius: 14px;
    background: #ffffff;
  }

  .student-review-item:hover {
    border-color: var(--green);
    background: #f6f8f6;
  }

  .student-fluency-card {
    border-color: #ddc985;
    background: #ffffff;
  }

  .adaptive-no-answer {
    border-color: var(--line-strong);
    background: #ffffff;
    color: var(--muted);
  }
}

/* ========================================================================== */
/* Open Paper · whole-site screen system · 2026-08-09                        */
/* ========================================================================== */

@media screen {
  :root {
    --ink: #19211c;
    --muted: #606b64;
    --soft-ink: #606b64;
    --green: #336a4a;
    --green-dark: #28583e;
    --green-soft: #e9f3ee;
    --mint: #e9f3ee;
    --gold: #745519;
    --gold-soft: #fdf2cc;
    --rose: #983834;
    --rose-soft: #fae9e8;
    --paper: #ffffff;
    --neutral-paper: #f6f8f6;
    --canvas: #f5f7f5;
    --line: #dbe3de;
    --line-strong: #c9d4ce;
    --control-line: #6b7f73;
    --focus-ring: #174f35;
    --selection-rail: #323b36;
    --control-radius: 9px;
    --major-radius: 18px;
    --content-wide: 1180px;
    --content-reading: 760px;
  }

  html {
    scroll-padding-top: 96px;
  }

  body {
    color: var(--ink);
    background: var(--canvas);
    font-size: 17px;
    font-weight: 400;
    line-height: 1.55;
  }

  h1,
  h2,
  h3,
  h4 {
    color: var(--ink);
    font-weight: 600;
    letter-spacing: -0.025em;
  }

  h1 {
    font-size: clamp(38px, 4.2vw, 46px);
    line-height: 1.08;
  }

  h2 {
    font-size: clamp(27px, 2.7vw, 31px);
    line-height: 1.18;
  }

  h3 {
    font-size: 20px;
    line-height: 1.3;
  }

  p {
    text-wrap: pretty;
  }

  .eyebrow,
  .student-eyebrow,
  .report-example-label,
  .priority-reason strong,
  .code-card span,
  .practice-badge {
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
  }

  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible,
  [tabindex]:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 3px;
  }

  .site-header {
    min-height: 72px;
    padding: 0 clamp(20px, 3.5vw, 48px);
    border-bottom: 1px solid var(--line);
    background: #ffffff;
  }

  .brand {
    min-height: 56px;
  }

  .brand strong {
    font-size: 17px;
    font-weight: 600;
  }

  .brand small {
    color: var(--muted);
    font-size: 12px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--green);
  }

  .top-nav {
    align-self: stretch;
    gap: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .nav-button {
    position: relative;
    min-height: 56px;
    padding: 8px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    font-weight: 500;
  }

  .nav-button:hover,
  .nav-button.is-active {
    background: transparent;
    color: var(--ink);
  }

  .nav-button.is-active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 3px;
    background: var(--green);
    content: "";
  }

  .fallback-nav-button {
    margin-left: 0;
    border-left: 0;
  }

  #teacher-app > main {
    width: min(1244px, calc(100% - 64px));
  }

  .view {
    padding: clamp(44px, 5.5vw, 72px) 0 80px;
  }

  .wide-view {
    width: min(var(--content-wide), 100%);
  }

  .narrow-view {
    width: min(860px, 100%);
  }

  .hero,
  .page-heading,
  .grid-page-header,
  .report-screen-header {
    width: min(var(--content-wide), 100%);
  }

  .hero {
    grid-template-columns: minmax(0, 1.45fr) minmax(250px, 0.55fr);
    gap: clamp(48px, 7vw, 92px);
    align-items: center;
    margin-bottom: 46px;
  }

  .hero h1 {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(46px, 5.3vw, 60px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.04;
  }

  .hero-copy {
    max-width: 700px;
    color: var(--muted);
    font-size: clamp(17px, 1.7vw, 19px);
    line-height: 1.58;
  }

  .hero-actions {
    gap: 16px;
    margin-top: 28px;
  }

  .hero-actions > span {
    max-width: 260px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
  }

  .hero-sample-link {
    border-color: var(--control-line);
  }

  .local-badge {
    position: relative;
    min-width: 0;
    padding: 18px 0 18px 26px;
    border: 0;
    border-left: 5px solid var(--green);
    border-radius: 0;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.5;
  }

  .local-badge strong {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
  }

  .local-badge-dot {
    position: absolute;
    top: 24px;
    left: 9px;
    width: 7px;
    height: 7px;
    border: 0;
    background: var(--green);
    box-shadow: none;
  }

  .open-paper-proof {
    display: grid;
    grid-template-columns: minmax(260px, 1.35fr) repeat(3, minmax(130px, 0.65fr));
    width: min(var(--content-wide), 100%);
    min-height: 112px;
    margin: 0 auto 70px;
    overflow: hidden;
    border-radius: var(--major-radius);
    background: var(--green-soft);
  }

  .open-paper-proof > div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    padding: 23px 28px;
  }

  .open-paper-proof > div + div {
    border-left: 1px solid #cbdcd2;
  }

  .open-paper-proof strong,
  .open-paper-proof span {
    display: block;
  }

  .open-paper-proof-intro strong {
    margin-bottom: 4px;
    color: var(--ink);
    font-size: 19px;
    font-weight: 600;
  }

  .open-paper-proof-intro span,
  .open-paper-proof-stat span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.4;
  }

  .open-paper-proof-stat strong {
    margin-bottom: 3px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.15;
  }

  .primary-button,
  .secondary-button,
  .danger-button,
  .student-primary-button,
  .student-secondary-button,
  .adaptive-profile-detail-action {
    min-height: 46px;
    border-radius: var(--control-radius);
    box-shadow: none;
    font-weight: 600;
    transform: none;
  }

  .primary-button:hover:not(:disabled),
  .secondary-button:hover:not(:disabled),
  .danger-button:hover:not(:disabled),
  .student-primary-button:hover:not(:disabled),
  .student-secondary-button:hover:not(:disabled) {
    box-shadow: none;
    transform: none;
  }

  .secondary-button,
  .student-secondary-button {
    border-color: var(--control-line);
    background: #ffffff;
    color: var(--ink);
  }

  .secondary-button:hover:not(:disabled),
  .student-secondary-button:hover:not(:disabled) {
    border-color: var(--green);
    background: var(--green-soft);
    color: var(--green-dark);
  }

  .text-input,
  .text-area,
  .student-name-input,
  .student-other-input,
  .adaptive-student-focus-select {
    border-color: var(--control-line);
    border-radius: var(--control-radius);
    box-shadow: none;
  }

  .text-input:focus,
  .text-area:focus,
  .student-name-input:focus,
  .student-other-input:focus,
  .adaptive-student-focus-select:focus-visible {
    border-color: var(--focus-ring);
    box-shadow: 0 0 0 2px var(--focus-ring);
    outline: none;
  }

  .field-label,
  .student-field-label,
  .adaptive-student-matrix-controls label {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
  }

  .assessment-option-grid {
    width: min(var(--content-wide), 100%);
    margin: 0 auto 84px;
  }

  .assessment-options-heading {
    max-width: 760px;
    margin-bottom: 28px;
  }

  .assessment-options-heading h2 {
    margin-bottom: 0;
    font-size: clamp(30px, 3vw, 36px);
    font-weight: 600;
  }

  .assessment-option-card {
    position: relative;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    gap: 22px;
    align-items: start;
    padding: 26px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .assessment-option-card:last-child {
    border-bottom: 1px solid var(--line);
  }

  .assessment-option-card.adaptive-option-card {
    grid-template-columns: 66px minmax(0, 1fr);
    padding-left: 18px;
    border-left: 5px solid var(--green);
  }

  .assessment-option-icon,
  .build-option-icon {
    width: auto;
    height: auto;
    padding: 2px 0 0;
    border-radius: 0;
    background: transparent;
    color: var(--green);
    font-size: 30px;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  .build-option-icon {
    color: var(--muted);
  }

  .assessment-option-copy h3 {
    margin: 8px 0 6px;
    font-size: 24px;
    font-weight: 600;
  }

  .assessment-option-copy p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 16px;
  }

  .assessment-option-link {
    align-self: center;
  }

  .adaptive-section-launcher {
    grid-column: 2;
    margin-top: 22px;
    padding-top: 23px;
    border-top: 1px solid var(--line);
  }

  .adaptive-section-launcher-heading {
    margin-bottom: 16px;
  }

  .adaptive-section-launcher-heading strong,
  .adaptive-section-launcher-heading span {
    display: block;
  }

  .adaptive-section-launcher-heading strong {
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 600;
  }

  .adaptive-section-launcher-heading span {
    color: var(--muted);
    font-size: 14px;
  }

  .adaptive-section-options {
    gap: 0;
  }

  .adaptive-section-group {
    padding: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .adaptive-section-group.is-timed {
    padding-left: 18px;
    border: 0;
    border-top: 1px solid #dcc982;
    border-left: 5px solid var(--gold);
    border-radius: 0;
    background: transparent;
  }

  .adaptive-section-group-heading {
    padding: 18px 0 10px;
  }

  .adaptive-section-button-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .adaptive-section-button,
  .adaptive-comprehensive-button,
  .adaptive-section-button.is-timed {
    min-height: 62px;
    margin: 0;
    padding: 14px 14px 14px 18px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
  }

  .adaptive-section-button:hover:not(:disabled),
  .adaptive-comprehensive-button:hover:not(:disabled),
  .adaptive-section-button:focus-visible,
  .adaptive-comprehensive-button:focus-visible {
    border-color: var(--line);
    background: var(--neutral-paper);
    box-shadow: none;
    transform: none;
  }

  .adaptive-section-button.is-selected,
  .adaptive-comprehensive-button.is-selected,
  .adaptive-section-button.is-timed.is-selected {
    padding-left: 24px;
    border-color: var(--line);
    background: var(--green-soft);
    box-shadow: inset 5px 0 var(--green);
  }

  .adaptive-section-preview {
    margin-bottom: 22px;
    padding: 22px 24px;
    border: 0;
    border-radius: var(--major-radius);
    background: var(--green-soft);
    box-shadow: none;
  }

  .adaptive-section-preview h3 {
    font-size: 22px;
  }

  .adaptive-section-skill-list {
    gap: 0 24px;
  }

  .adaptive-section-skill-list li {
    padding: 7px 0;
    border-bottom: 1px solid #cbdcd2;
  }

  .builder-layout {
    grid-template-columns: minmax(0, 1fr) 286px;
    gap: 34px;
    width: min(var(--content-wide), 100%);
  }

  .builder-main {
    gap: 34px;
  }

  .panel {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .step-number {
    display: block;
    padding: 31px 18px 0 22px;
    border: 0;
    border-left: 5px solid var(--green);
    background: transparent;
    color: var(--green);
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
  }

  .panel-content {
    padding: 30px 30px 34px 8px;
  }

  .intro-panel .panel-content {
    padding-bottom: 38px;
  }

  .panel-heading {
    margin-bottom: 22px;
  }

  .section-help {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
  }

  .strand-group + .strand-group {
    margin-top: 34px;
  }

  .strand-header {
    gap: 14px;
    margin-bottom: 0;
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .strand-code {
    min-width: 42px;
    height: 24px;
    border-radius: 6px;
    background: var(--green);
    font-weight: 600;
  }

  .objective-list {
    gap: 0;
  }

  .objective-row,
  .fluency-objective-group .objective-row {
    min-height: 72px;
    padding: 15px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .objective-row:hover,
  .fluency-objective-group .objective-row:hover {
    background: var(--neutral-paper);
  }

  .objective-row.is-selected,
  .fluency-objective-group .objective-row.is-selected {
    padding-left: 20px;
    border-color: var(--line);
    background: var(--green-soft);
    box-shadow: inset 5px 0 var(--green);
  }

  .objective-title {
    font-size: 15px;
    font-weight: 600;
  }

  .fluency-objective-group {
    margin-bottom: 34px;
    padding: 0 0 0 18px;
    border: 0;
    border-left: 5px solid var(--gold);
    border-radius: 0;
    background: transparent;
  }

  .fluency-group-header {
    padding: 14px 0;
    border-top: 1px solid #dcc982;
    border-bottom: 1px solid #dcc982;
  }

  .selection-card {
    top: 96px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--green-soft);
    box-shadow: none;
    color: var(--ink);
  }

  .selection-card .eyebrow,
  .selection-total span,
  .summary-list dt,
  .selection-card .summary-note {
    color: var(--muted);
  }

  .selection-total {
    margin-bottom: 20px;
  }

  .selection-total strong {
    color: var(--ink);
    font-size: 48px;
    font-weight: 600;
  }

  .summary-list div {
    border-color: #cbdcd2;
  }

  .summary-list dd {
    color: var(--ink);
    font-weight: 600;
  }

  .selection-card .summary-note {
    text-align: left;
  }
}

@media screen {
  /* Generated assessment and sharing: one open sequence, not a stack of cards. */
  .success-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: left;
  }

  .success-panel > .success-mark {
    width: 46px;
    height: 46px;
    margin: 0 0 20px;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green);
    font-size: 22px;
  }

  .success-panel > h1,
  .success-panel > .large-copy {
    max-width: 720px;
    margin-right: 0;
    margin-left: 0;
  }

  .success-panel > h1 {
    font-size: clamp(39px, 4.5vw, 50px);
  }

  .delivery-card {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 20px;
    max-width: none;
    margin: 38px 0 0;
    padding: 28px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .online-delivery {
    padding-left: 20px;
    border-left: 5px solid var(--green);
  }

  .working-delivery {
    padding-left: 20px;
    border-color: #dcc982;
    border-left: 5px solid var(--gold);
    background: transparent;
  }

  .delivery-icon,
  .secondary-icon {
    width: auto;
    height: auto;
    align-items: flex-start;
    justify-content: flex-start;
    border-radius: 0;
    background: transparent;
    color: var(--green);
    font-size: 28px;
    font-weight: 500;
  }

  .secondary-icon {
    color: var(--gold);
  }

  .delivery-copy h2 {
    font-size: 28px;
  }

  .student-link-panel {
    margin-top: 22px;
    padding: 24px;
    border: 0;
    border-radius: var(--major-radius);
    background: var(--green-soft);
  }

  .student-qr-card {
    border-color: #b5cbbf;
    border-radius: 10px;
    background: #ffffff;
  }

  .qr-preview-button {
    border-color: var(--control-line);
    border-radius: 8px;
  }

  .fallback-panel {
    max-width: none;
    margin-top: 34px;
    padding-top: 28px;
  }

  .code-card,
  .recovery-code-card {
    max-width: none;
    margin: 30px 0;
    padding: 20px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    opacity: 1;
  }

  /* Lists and supporting teacher workflows become ledgers. */
  .page-heading {
    gap: 36px;
    align-items: end;
    margin-bottom: 34px;
  }

  .page-heading h1,
  .grid-page-header h1,
  .report-screen-header h1 {
    max-width: 780px;
    font-size: clamp(38px, 4.2vw, 46px);
  }

  .page-heading p,
  .grid-page-header p,
  .report-screen-header p {
    max-width: 700px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
  }

  .simple-panel,
  #saved-rosters-panel {
    display: block;
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .simple-panel .panel-content,
  #saved-rosters-panel .panel-content {
    padding: 28px 30px;
  }

  .saved-list,
  .online-attempts {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .saved-item,
  .online-attempt-row {
    min-height: 68px;
    margin: 0;
    padding: 16px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .saved-item:hover,
  .online-attempt-row:hover {
    border-color: var(--line);
    background: var(--neutral-paper);
  }

  .online-saved-item::after {
    margin-left: 14px;
    color: var(--green);
    content: "›";
    font-size: 26px;
    font-weight: 300;
  }

  .backup-route {
    width: min(1020px, 100%);
    padding: 18px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .two-column-cards {
    gap: 36px;
  }

  .roster-view .simple-panel + .simple-panel {
    margin-top: 34px;
  }

  .grid-page-header,
  .report-screen-header {
    align-items: end;
    margin-bottom: 30px;
  }

  .grid-actions,
  .report-actions {
    align-items: flex-end;
  }

  .keyboard-help,
  .preview-data-banner,
  .other-response-summary,
  .adaptive-handoff-warning {
    padding: 16px 18px;
    border: 0;
    border-left: 5px solid var(--gold);
    border-radius: 0;
    background: var(--gold-soft);
    color: var(--gold);
  }

  .live-link-card {
    grid-template-columns: minmax(220px, 0.7fr) minmax(360px, 1.3fr);
    gap: 34px;
    margin-bottom: 0;
    padding: 28px;
    border: 0;
    border-radius: var(--major-radius) var(--major-radius) 0 0;
    background: var(--green-soft);
  }

  .online-summary-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-bottom: 32px;
    overflow: hidden;
    border-radius: 0 0 var(--major-radius) var(--major-radius);
    background: var(--green-soft);
  }

  .online-summary-card {
    min-height: 88px;
    margin: 0;
    padding: 20px 28px;
    border: 0;
    border-top: 1px solid #cbdcd2;
    border-left: 1px solid #cbdcd2;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .online-summary-card:first-child {
    border-left: 0;
  }

  .online-summary-card strong {
    color: var(--ink);
    font-size: 34px;
    font-weight: 600;
  }

  .live-responses-panel {
    margin-top: 0;
  }

  .session-controls {
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  /* Data tools stay precise and square-edged. */
  .mark-grid-shell,
  .adaptive-matrix-shell,
  .adaptive-results-matrix-shell {
    border: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .mark-grid th,
  .mark-grid td,
  .adaptive-matrix th,
  .adaptive-matrix td,
  .adaptive-results-matrix th,
  .adaptive-results-matrix td {
    border-color: var(--line);
  }

  .mark-grid thead th,
  .mark-grid .question-heading,
  .adaptive-matrix thead th,
  .adaptive-results-matrix thead th {
    background: var(--neutral-paper);
    box-shadow: none;
  }

  .mark-grid .student-heading,
  .mark-grid .objective-band,
  .adaptive-matrix .adaptive-matrix-student-heading,
  .adaptive-results-matrix .adaptive-matrix-student-heading {
    background: var(--green-soft);
  }

  /* Standard and fluency class reports: summary band plus ruled evidence. */
  .report-cover {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
    gap: 30px;
    align-items: center;
    margin-bottom: 34px;
    padding: 28px 30px;
    border: 0;
    border-radius: var(--major-radius);
    background: var(--green-soft);
    box-shadow: none;
  }

  .report-cover h2 {
    font-size: 30px;
  }

  .report-cover-stat {
    padding-left: 28px;
    border-left: 1px solid #cbdcd2;
  }

  .report-caveat,
  .fluency-report-note {
    border: 0;
    border-left: 5px solid var(--gold);
    border-radius: 0;
    background: var(--gold-soft);
    color: var(--gold);
  }

  .class-capabilities {
    padding: 24px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .priority-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .priority-card {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 20px;
    margin: 0;
    padding: 24px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .priority-number,
  .pattern-rank {
    width: auto;
    min-width: 0;
    height: auto;
    padding: 1px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--green);
    font-size: 25px;
    font-weight: 500;
  }

  .class-section-card {
    margin: 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .class-section-card:last-child {
    border-bottom: 1px solid var(--line);
  }

  .class-section-heading {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .class-section-card > .performance-summary,
  .class-section-card > .objective-example,
  .class-section-card > .report-detail-toggle-row,
  .class-section-card > .report-detail-panel {
    margin-right: 0;
    margin-left: 0;
  }

  .report-detail-toggle {
    min-height: 44px;
    border-color: var(--control-line);
    border-radius: var(--control-radius);
  }

  .pattern-list {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .pattern-card {
    margin: 0;
    padding: 22px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .profiles-preview {
    margin-top: 68px;
    padding-top: 30px;
    border-top: 1px solid var(--line);
  }

  #profiles-screen {
    display: grid;
    gap: 0;
    border-top: 1px solid var(--line);
  }

  #profiles-screen > .profile-card:not(.adaptive-profile-directory-card),
  .adaptive-profile-directory-card:not(.is-focused) {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #profiles-screen > .profile-card:not(.adaptive-profile-directory-card) > .profile-card-header,
  .adaptive-profile-directory-card:not(.is-focused) > .profile-card-header {
    min-height: 78px;
    padding: 20px 4px;
    border: 0;
    background: transparent;
  }

  .adaptive-profile-directory-card:not(.is-focused) > .profile-card-header::after {
    align-self: center;
    margin-left: 14px;
    color: var(--green);
    content: "›";
    font-size: 28px;
    font-weight: 300;
  }

  .adaptive-profile-directory-card:not(.is-focused) .adaptive-profile-overview-index {
    margin: 0 0 20px;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  /* Adaptive class results use the same open summary / ledger hierarchy. */
  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus) .report-screen-header {
    align-items: end;
    margin-bottom: 30px;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .report-screen-header h1 {
    margin: 16px 0 8px;
    color: var(--ink);
    font-size: clamp(38px, 4.2vw, 46px);
    line-height: 1.08;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .report-screen-header .report-intro {
    color: var(--muted) !important;
    font-size: 17px !important;
    font-weight: 400;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-class-overview {
    grid-template-columns: minmax(210px, 1.25fr) repeat(3, minmax(120px, 1fr));
    width: 100%;
    min-height: 116px;
    margin-bottom: 36px;
    border: 0;
    border-radius: var(--major-radius);
    background: var(--green-soft);
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-class-overview h2 {
    padding: 22px 28px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-overview-metric {
    border-left-color: #cbdcd2;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-class-workspace {
    grid-template-columns: minmax(0, 2.2fr) minmax(290px, 0.8fr);
    gap: 38px;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-results-tabs {
    gap: 34px;
    margin-bottom: 24px;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-results-tabs button {
    font-weight: 500;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-results-tabs button.is-active {
    color: var(--green);
    font-weight: 600;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-results-matrix-shell {
    border: 0;
    background: transparent;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-attention-panel {
    min-height: 0;
    padding: 24px 26px;
    border: 0;
    border-left: 6px solid var(--gold);
    border-radius: 0;
    background: var(--gold-soft);
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-attention-panel h2 {
    color: var(--ink);
    font-size: 22px;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-pattern-summary {
    margin-top: 48px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-pattern-list {
    border-top: 1px solid var(--line);
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-pattern-card {
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-report-section {
    padding: 26px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  /* Overlays are the one place a raised surface is meaningful. */
  .confirm-dialog,
  .adaptive-dialog {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(25, 33, 28, 0.2);
  }

  .adaptive-dialog-close,
  .qr-dialog-close {
    border-color: var(--control-line);
    border-radius: var(--control-radius);
  }

  .adaptive-evidence-summary {
    border: 0;
    border-radius: var(--major-radius);
    background: var(--green-soft);
  }

  .adaptive-evidence-list {
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .adaptive-evidence-item {
    margin: 0;
    padding: 20px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .privacy-footer {
    padding-top: 28px;
    padding-bottom: 30px;
    border-top: 1px solid var(--line);
    background: #ffffff;
  }
}

@media screen {
  /* Child-facing checks read like one calm sheet of paper. */
  body.student-mode {
    background: var(--canvas);
  }

  .student-app {
    width: min(calc(100% - 40px), var(--content-reading));
    padding: 18px 0 48px;
  }

  .student-header {
    min-height: 62px;
    margin-bottom: 26px;
    padding: 6px 0 12px;
    border-bottom: 1px solid var(--line);
  }

  .student-brand strong {
    color: var(--ink);
    font-weight: 600;
  }

  .student-brand small {
    color: var(--muted);
  }

  .student-start-card,
  .student-question-card,
  .student-message-card,
  .student-fluency-ready-card,
  [data-adaptive-transition],
  [data-adaptive-pause],
  [data-adaptive-finish] {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .student-start-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding: 34px 0 0;
  }

  .student-start-copy h1,
  .student-review-heading h1,
  .student-message-card h1,
  .student-fluency-ready-card h1 {
    font-size: clamp(38px, 6vw, 50px);
    font-weight: 600;
    line-height: 1.08;
  }

  .student-start-copy > p:not(.student-eyebrow),
  .student-review-heading > p:not(.student-eyebrow) {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
  }

  .student-start-steps {
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid var(--line);
  }

  .student-start-step {
    min-height: 60px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .student-start-step > span {
    border-radius: 0;
    background: transparent;
    color: var(--green);
    font-size: 20px;
    font-weight: 500;
  }

  .student-name-form {
    padding: 24px 26px;
    border: 0;
    border-left: 5px solid var(--green);
    border-radius: 0;
    background: var(--green-soft);
  }

  .student-name-input,
  .student-other-input {
    min-height: 56px;
    border-width: 1px;
    font-size: 18px;
  }

  .student-primary-button,
  .student-secondary-button {
    min-height: 56px;
    border-width: 1px;
    border-radius: 9px;
    font-size: 17px;
  }

  .student-question-page,
  .student-review-page {
    width: min(var(--content-reading), 100%);
  }

  .student-question-progress {
    gap: 10px 18px;
    margin-bottom: 30px;
  }

  .student-progress-copy strong {
    font-size: 17px;
    font-weight: 600;
  }

  .student-progress-copy span,
  .student-save-status {
    color: var(--muted);
    font-size: 13px;
  }

  .student-main-progress-track {
    height: 3px;
    border-radius: 0;
    background: var(--line);
  }

  .student-main-progress-fill {
    border-radius: 0;
    background: var(--green);
  }

  .student-question-card {
    padding: 12px 0 0;
  }

  .student-question-instruction {
    margin-bottom: 18px;
    color: var(--muted);
    font-size: 15px;
    font-weight: 500;
  }

  .student-question-prompt {
    max-width: 720px;
    margin: 0 0 32px;
    color: var(--ink);
    font-size: clamp(32px, 5vw, 40px);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    text-align: left;
  }

  .student-partition-figure {
    min-height: 190px;
    margin: 0 0 28px;
    border-radius: 10px;
    background: var(--neutral-paper);
  }

  .student-options,
  .student-fluency-options {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .student-option,
  .student-fluency-option {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    min-height: 68px;
    padding: 12px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: none;
  }

  .student-option:hover,
  .student-fluency-option:hover {
    border-color: var(--line);
    background: var(--neutral-paper);
    transform: none;
  }

  .student-option.is-selected,
  .student-fluency-option.is-selected {
    padding-left: 20px;
    border-color: var(--line);
    border-radius: 8px;
    background: var(--green-soft);
    box-shadow: inset 5px 0 var(--green);
  }

  .student-option-letter,
  .student-review-number {
    width: 40px;
    height: 40px;
    border: 1px solid var(--control-line);
    border-radius: 50%;
    background: #ffffff;
    color: var(--ink);
    font-size: 18px;
    font-weight: 600;
  }

  .student-option.is-selected .student-option-letter {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
  }

  .student-option.is-selected .student-option-letter::after {
    margin-left: 3px;
    content: "✓";
    font-size: 13px;
  }

  .student-option-value {
    font-size: clamp(18px, 2.4vw, 22px);
    font-weight: 500;
    line-height: 1.35;
  }

  .student-other-option {
    grid-column: auto;
  }

  .student-other-entry {
    margin-top: 18px;
    padding: 20px;
    border: 0;
    border-left: 5px solid var(--gold);
    border-radius: 0;
    background: var(--gold-soft);
  }

  .student-question-nav,
  .student-review-actions {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
  }

  .adaptive-no-answer {
    border-color: var(--control-line);
    border-radius: 9px;
  }

  .student-review-heading {
    margin-bottom: 30px;
    text-align: left;
  }

  .student-review-list {
    gap: 0;
    border-top: 1px solid var(--line);
  }

  .student-review-item {
    min-height: 64px;
    padding: 11px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .student-review-item:hover {
    border-color: var(--line);
    background: var(--neutral-paper);
  }

  .student-review-item.is-unanswered {
    padding-left: 12px;
    border-left: 5px solid var(--gold);
    background: var(--gold-soft);
  }

  .student-message-card,
  .student-fluency-ready-card {
    width: min(620px, 100%);
    margin: 9vh auto 0;
    padding: 42px 0;
  }

  .student-message-mark,
  .student-fluency-ready-card .ready-mark {
    margin-right: 0;
    margin-left: 0;
    background: var(--green-soft);
    color: var(--green);
  }

  .student-message-card {
    text-align: left;
  }

  .student-fluency-card {
    padding-top: 12px;
    border: 0;
    background: transparent;
  }

  .student-fluency-instruction {
    padding: 14px 18px;
    border: 0;
    border-left: 5px solid var(--gold);
    border-radius: 0;
    background: var(--gold-soft);
    color: var(--gold);
  }

}

@media screen and (max-width: 1100px) {
  .hero {
    grid-template-columns: minmax(0, 1.3fr) minmax(220px, 0.7fr);
    gap: 48px;
  }

  .open-paper-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .open-paper-proof-intro {
    grid-column: 1 / -1;
    border-bottom: 1px solid #cbdcd2;
  }

  .open-paper-proof > .open-paper-proof-stat:first-of-type {
    border-left: 0;
  }
}

@media screen and (max-width: 980px) {
  #teacher-app > main {
    width: min(100% - 48px, 920px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .local-badge {
    max-width: 520px;
  }

  .builder-layout,
  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-class-workspace {
    grid-template-columns: minmax(0, 1fr);
  }

  .selection-card {
    position: static;
    display: grid;
    grid-template-columns: minmax(130px, 0.55fr) minmax(220px, 1fr);
    gap: 16px 28px;
    align-items: center;
  }

  .selection-card .eyebrow,
  .selection-card .selection-total {
    grid-column: 1;
  }

  .selection-card .summary-list,
  .selection-card .primary-button,
  .selection-card .summary-note {
    grid-column: 2;
  }

  .selection-card .summary-list {
    grid-row: 1 / span 2;
    margin: 0;
  }

  .selection-card .primary-button {
    grid-row: 3;
  }

  .selection-card .summary-note {
    grid-row: 4;
    margin: 0;
  }

  .two-column-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-attention-panel {
    margin-top: 10px;
  }
}

@media screen and (max-width: 780px) {
  .assessment-option-card,
  .assessment-option-card.adaptive-option-card {
    grid-template-columns: 52px minmax(0, 1fr);
  }

  .assessment-option-link {
    grid-column: 2;
    justify-self: start;
  }

  .adaptive-section-launcher {
    grid-column: 2;
  }

  .objective-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .live-link-card,
  .student-share-layout,
  .report-cover {
    grid-template-columns: minmax(0, 1fr);
  }

  .report-cover-stat {
    padding: 20px 0 0;
    border-top: 1px solid #cbdcd2;
    border-left: 0;
  }

  .online-summary-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .online-summary-card,
  .online-summary-card:first-child {
    border-top: 1px solid #cbdcd2;
    border-left: 0;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-class-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-class-overview h2 {
    grid-column: 1 / -1;
    border-bottom: 1px solid #cbdcd2;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-overview-metric:first-of-type {
    border-left: 0;
  }
}

@media screen and (max-width: 720px) {
  body {
    font-size: 16px;
  }

  .site-header {
    flex-wrap: wrap;
    min-height: 0;
    padding: 8px 20px 0;
  }

  .brand {
    width: 100%;
    min-height: 54px;
  }

  .top-nav {
    width: calc(100% + 40px);
    min-width: calc(100% + 40px);
    margin: 0 -20px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }

  .nav-button {
    min-width: max-content;
    flex: 1 0 auto;
    padding: 10px 16px;
  }

  #teacher-app > main {
    width: calc(100% - 40px);
  }

  .view {
    padding: 38px 0 60px;
  }

  .hero h1 {
    font-size: clamp(40px, 11vw, 52px);
  }

  .open-paper-proof > div {
    padding: 20px;
  }

  .assessment-option-card.adaptive-option-card {
    padding-left: 12px;
  }

  .panel {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .step-number {
    padding: 28px 12px 0 14px;
  }

  .panel-content {
    padding: 27px 20px 30px 4px;
  }

  .selection-card {
    display: block;
  }

  .selection-card .summary-list {
    margin-bottom: 20px;
  }

  .selection-card .summary-note {
    margin-top: 12px;
  }

  .grid-page-header,
  .report-screen-header,
  .page-heading,
  .fallback-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .grid-actions,
  .report-actions {
    width: 100%;
    align-items: stretch;
  }

  .student-app {
    width: min(calc(100% - 30px), var(--content-reading));
  }
}

@media screen and (max-width: 600px) {
  .open-paper-proof {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 14px;
  }

  .open-paper-proof-intro,
  .open-paper-proof > div,
  .open-paper-proof > div + div {
    grid-column: auto;
    border: 0;
    border-bottom: 1px solid #cbdcd2;
  }

  .open-paper-proof > div:last-child {
    border-bottom: 0;
  }

  .assessment-option-card,
  .assessment-option-card.adaptive-option-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .assessment-option-icon,
  .assessment-option-copy,
  .assessment-option-link,
  .adaptive-section-launcher {
    grid-column: 1;
  }

  .adaptive-section-launcher {
    margin-top: 8px;
  }

  .panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .step-number {
    padding: 18px 18px 0;
    border-left-width: 5px;
  }

  .panel-content {
    padding: 16px 18px 28px;
  }

  .panel-heading,
  .section-title-row,
  .copy-field,
  .fallback-panel,
  .session-controls {
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr);
    flex-direction: column;
  }

  .delivery-card,
  .online-delivery,
  .working-delivery {
    grid-template-columns: minmax(0, 1fr);
    padding-left: 18px;
  }

  .student-link-panel,
  .live-link-card,
  .report-cover {
    padding: 20px;
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-class-overview {
    grid-template-columns: minmax(0, 1fr);
  }

  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-overview-metric,
  #reports-view.is-adaptive-results:not(.is-adaptive-profile-focus)
    .adaptive-overview-metric:first-of-type {
    min-height: 82px;
    border-top: 1px solid #cbdcd2;
    border-left: 0;
  }

  .student-start-card {
    padding-top: 18px;
  }

  .student-name-form {
    padding: 21px 18px;
  }

  .student-question-prompt {
    font-size: clamp(29px, 9vw, 36px);
  }

  .student-option,
  .student-fluency-option {
    grid-template-columns: 44px minmax(0, 1fr);
    min-height: 64px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .student-option.is-selected,
  .student-fluency-option.is-selected {
    padding-left: 14px;
  }

  .student-question-nav,
  .student-review-actions,
  .adaptive-question-nav {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .student-primary-button,
  .student-secondary-button,
  .adaptive-no-answer {
    width: 100%;
  }

  .confirm-dialog,
  .adaptive-dialog {
    width: calc(100% - 16px);
    max-height: 94vh;
    border-radius: 10px;
  }
}

@media screen {
  /* Keep the dense evidence readable without rebuilding a card inside every row. */
  .class-section-card > .performance-summary {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
  }

  .class-section-card > .objective-example,
  .class-section-card > .report-example {
    margin: 0 0 20px;
  }

  .class-section-card > .report-detail-toggle-row {
    padding: 0 0 20px;
  }

  .class-section-card > .report-detail-panel {
    border-top: 1px solid var(--line);
    background: transparent;
  }

  .fluency-response-detail {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
  }

  .fluency-response-stats {
    gap: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .fluency-response-stat {
    padding: 12px 14px;
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .fluency-response-stat:first-child {
    border-left: 0;
  }

  .pattern-reach {
    padding: 8px 0 8px 18px;
    border: 0;
    border-left: 4px solid var(--green);
    border-radius: 0;
    background: transparent;
  }

  .positive-empty {
    padding: 15px 18px;
    border-left: 5px solid var(--green);
    background: var(--green-soft);
  }

  .report-example,
  .priority-card .priority-example,
  .class-section-card > .objective-example,
  .profile-detail-row > .objective-example,
  .profile-can-do > .report-example,
  .profile-pattern-detail > .report-example {
    border: 0;
    border-radius: 10px;
    background: var(--neutral-paper);
    box-shadow: none;
  }

  #profiles-screen {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .profile-detail-row {
    padding: 20px 4px;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .profile-detail-row > .performance-summary {
    margin-top: 12px;
    padding: 12px 0;
    border: 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
  }

  .profile-can-do,
  .profile-pattern-detail {
    padding: 14px 16px;
    border: 0;
    border-left: 5px solid var(--green);
    border-radius: 0;
    background: var(--green-soft);
  }

  .profile-pattern-detail {
    border-left-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
  }

  .profile-detail-row > .report-detail-panel {
    margin: 14px 0 -20px;
    padding: 16px 0 20px;
    border-top: 1px solid var(--line);
    background: transparent;
  }
}

@media screen and (max-width: 600px) {
  .fluency-response-stats {
    grid-template-columns: minmax(0, 1fr);
  }

  .fluency-response-stat,
  .fluency-response-stat:first-child {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .fluency-response-stat:first-child {
    border-top: 0;
  }
}

@media screen {
  .priority-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .priority-card > * {
    grid-column: 1;
  }

  .priority-card-header {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .priority-card .performance-summary {
    grid-template-columns: minmax(120px, auto) minmax(180px, 1fr);
  }
}

@media screen and (max-width: 600px) {
  .priority-card-header {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .priority-card-header .achievement-band {
    grid-column: 2;
    justify-self: start;
  }

  .priority-card .performance-summary {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ========================================================================== */
/* Individual student report · approved 1026px reference · 2026-08-09         */
/* ========================================================================== */

@media screen {
  .adaptive-profile-result-label,
  .adaptive-profile-more,
  .adaptive-profile-focus-heading {
    display: none;
  }

  body.is-adaptive-profile-focused {
    background: var(--canvas);
  }

  body.is-adaptive-profile-focused .site-header {
    position: relative;
    min-height: 33px;
    height: 33px;
    overflow: hidden;
    padding: 0;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
  }

  body.is-adaptive-profile-focused .site-header .brand {
    position: absolute;
    top: -32px;
    left: 29px;
  }

  body.is-adaptive-profile-focused .site-header .brand > span:last-child {
    display: none;
  }

  body.is-adaptive-profile-focused .site-header .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--green);
  }

  body.is-adaptive-profile-focused .site-header .top-nav {
    position: absolute;
    top: -36px;
    right: 35px;
    display: block;
    width: 48px;
    height: 48px;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--canvas);
  }

  body.is-adaptive-profile-focused .site-header .top-nav > * {
    display: none;
  }

  body.is-adaptive-profile-focused #teacher-app > main {
    width: 100%;
    max-width: none;
  }

  body.is-adaptive-profile-focused .privacy-footer {
    display: none;
  }

  #reports-view.is-adaptive-profile-focus {
    width: min(1026px, 100%);
    min-height: calc(100vh - 72px);
    margin: 0 auto;
    padding: 36px 35px 40px 30px;
  }

  #reports-view.is-adaptive-profile-focus .profiles-preview,
  #reports-view.is-adaptive-profile-focus #profiles-screen,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-card.is-focused,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-body {
    width: 100%;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-card.is-focused {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-breadcrumb {
    display: flex;
    gap: 13px;
    align-items: center;
    margin: 0 0 34px;
    color: var(--green);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-breadcrumb button {
    display: inline-flex;
    width: 22px;
    min-height: 28px;
    align-items: center;
    justify-content: flex-start;
    color: var(--green);
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-breadcrumb strong {
    color: var(--green);
    font-weight: 500;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 20px;
    align-items: start;
    margin: 0 0 19px;
    padding: 0;
    border: 0;
    background: transparent;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-page-header > div:first-child {
    min-width: 0;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-result-label {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-directory-heading {
    display: none;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-focus-heading,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-page-header h3 {
    display: block;
    margin: 1px 0 2px;
    color: var(--ink);
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-subtitle,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-page-header
    .profile-card-meta:not(.adaptive-profile-result-meta),
  #reports-view.is-adaptive-profile-focus .adaptive-profile-open {
    display: none;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-result-meta {
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-more {
    position: relative;
    display: block;
    margin-top: -7px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-more > summary {
    display: inline-flex;
    min-width: 116px;
    min-height: 57px;
    gap: 13px;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    list-style: none;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-more
    > summary::-webkit-details-marker {
    display: none;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-more > summary span {
    position: relative;
    top: -2px;
    font-size: 12px;
    letter-spacing: 2px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-more-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 20;
    display: grid;
    width: 224px;
    padding: 7px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(25, 33, 28, 0.13);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-more-menu button {
    min-height: 44px;
    padding: 9px 11px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    font-size: 15px;
    text-align: left;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-more-menu button:hover {
    background: #f6f8f6;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-quick-snapshot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    min-height: 108px;
    margin: 0 0 25px;
    padding: 21px 25px;
    border: 0;
    border-radius: 18px;
    background: var(--green-soft);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-quick-snapshot > div:first-child {
    display: grid;
    gap: 0;
    min-width: 0;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot
    > div:first-child
    > span:not(.eyebrow) {
    display: none;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot
    .eyebrow {
    margin: 0 0 1px;
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot
    > div:first-child
    > strong {
    color: var(--ink);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.3;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-overall,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-overall.tone-good,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-overall.tone-warning,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-overall.tone-low,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-overall.tone-none {
    display: grid;
    width: auto;
    min-height: 0;
    gap: 3px;
    justify-items: end;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    text-align: right;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-overall strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-overall span {
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot
    > .adaptive-profile-overall {
    width: auto;
    min-height: 0;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot
    > .adaptive-profile-overall
    > strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot
    > .adaptive-profile-overall
    > span:not(.eyebrow) {
    display: block;
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-master-detail {
    display: grid;
    grid-template-columns: 430px minmax(0, 1fr);
    gap: 25px;
    align-items: start;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: none;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list > h2 {
    margin: 0;
    padding: 24px 25px 0;
    color: var(--ink);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list > p {
    margin: 0;
    padding: 1px 25px 26px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.45;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px 20px;
    gap: 16px;
    align-items: center;
    width: 100%;
    min-height: 134px;
    padding: 21px 23px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #ffffff;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
    text-align: left;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row::after {
    color: var(--ink);
    content: "›";
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    text-align: right;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row:last-child {
    border-bottom: 0;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row:hover {
    background: #f6f8f6;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row.is-selected,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row[aria-selected="true"],
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row[aria-pressed="true"],
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row.is-selected:hover,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row[aria-selected="true"]:hover,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-skill-row[aria-pressed="true"]:hover {
    background: #f6f8f6;
    box-shadow: inset 6px 0 #323b36;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-copy,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-copy strong,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-tested {
    display: block;
    min-width: 0;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-copy strong {
    color: var(--ink);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.35;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-tested {
    margin-top: 5px;
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.48;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent {
    display: inline-flex;
    width: 82px;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    padding: 8px 10px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--report-unanswered-soft);
    color: var(--muted);
    font-size: 20px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-good {
    border-color: #336a4a;
    background: var(--report-correct-soft);
    color: #306342;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-warning {
    border-color: var(--gold);
    background: var(--gold-soft);
    color: var(--gold);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-low {
    border-color: var(--rose);
    background: var(--rose-soft);
    color: var(--rose);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent.tone-none {
    border-color: var(--line-strong);
    background: var(--report-unanswered-soft);
    color: var(--muted);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend {
    display: flex;
    min-height: 60px;
    flex-wrap: wrap;
    gap: 9px 18px;
    align-items: center;
    margin: 0;
    padding: 14px 36px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend span {
    display: inline-flex;
    gap: 10px;
    align-items: center;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend-dot,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend i {
    width: 11px;
    height: 11px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 50%;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend-dot.tone-good,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend
    i.tone-good {
    background: var(--green);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend-dot.tone-warning,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend
    i.tone-warning {
    background: var(--gold);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend-dot.tone-low,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-score-legend
    i.tone-low {
    background: var(--rose);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host {
    position: sticky;
    top: 24px;
    min-height: 0;
    padding: 0;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header {
    display: flex;
    min-height: 117px;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0;
    padding: 25px 25px 24px;
    border-bottom: 1px solid var(--line);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header .eyebrow {
    margin: 0 0 1px;
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
    text-transform: none;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h2,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h3 {
    margin: 0;
    color: var(--ink);
    font-size: 29px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-definition {
    max-width: none;
    margin: 0;
    padding: 24px 25px 0;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.5;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-definition strong {
    display: block;
    margin: 0 0 10px;
    color: var(--ink);
    font-size: 25px;
    font-weight: 600;
    line-height: 1.3;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-definition p {
    margin: 0;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 18px 25px 24px;
    padding: 17px;
    border: 0;
    border-radius: 12px;
    background: #f6f8f6;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta strong,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta span {
    display: block;
    margin: 0;
    padding: 0;
    border: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.45;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta span {
    color: var(--muted);
    font-weight: 400;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-misconception {
    position: relative;
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 0 15px;
    margin: 47px 25px 0;
    padding: 18px 18px 17px;
    border: 0;
    border-left: 6px solid var(--gold);
    border-radius: 14px;
    background: var(--gold-soft);
    color: var(--ink);
    font-size: 20px;
    line-height: 1.45;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-misconception::before {
    position: absolute;
    top: -24px;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--line);
    content: "";
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-misconception-icon {
    grid-column: 1;
    grid-row: 1;
    width: 22px;
    color: var(--gold);
    font-size: 0;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-misconception-icon::before {
    content: "⚠";
    font-family: Arial, sans-serif;
    font-size: 22px;
    font-weight: 400;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-pattern {
    display: grid;
    grid-column: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-pattern
    + .adaptive-profile-detail-pattern {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(116, 85, 25, 0.22);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-pattern-copy
    h3 {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-pattern-fact {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 500;
    line-height: 1.45;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-disclosure {
    margin: 0;
    padding: 0;
    border: 0;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-disclosure
    summary {
    display: inline-flex;
    width: auto;
    max-width: none;
    gap: 8px;
    align-items: center;
    color: var(--gold);
    cursor: pointer;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    list-style: none;
    white-space: nowrap;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-disclosure
    summary::-webkit-details-marker {
    display: none;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-disclosure
    summary::after {
    content: "⌄";
    font-size: 20px;
    line-height: 0.8;
    transform: translateY(-2px);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-disclosure[open]
    summary::after {
    transform: translateY(2px) rotate(180deg);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-disclosure
    > div {
    min-width: min(360px, 70vw);
    margin-top: 10px;
    color: var(--gold);
    font-size: 16px;
    line-height: 1.45;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example {
    margin: 24px 25px 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-meta
    + .adaptive-profile-detail-example {
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    > .report-example {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .report-example-heading {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 17px;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .report-example-label {
    margin: 0;
    color: var(--ink);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-transform: none;
  }

  #reports-view.is-adaptive-profile-focus .report-example-outcome {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
  }

  #reports-view.is-adaptive-profile-focus .report-example-outcome.is-incorrect {
    background: var(--rose-soft);
    color: var(--rose);
  }

  #reports-view.is-adaptive-profile-focus .report-example-outcome.is-correct {
    background: var(--report-correct-soft);
    color: var(--green-dark);
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .report-example-layout {
    display: block;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .report-example-prompt {
    margin: 0;
    color: var(--ink);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .report-example-answer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin: 17px 0 0;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .answer-chip {
    display: grid;
    min-height: 100px;
    gap: 6px;
    align-content: start;
    padding: 17px;
    border: 0;
    border-radius: 12px;
    background: #f6f8f6;
    color: var(--ink);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .answer-chip
    small {
    color: var(--muted);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .answer-chip
    .maths-expression {
    display: block;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: inherit;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-action {
    position: relative;
    display: inline-flex;
    min-height: 57px;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin: 23px 25px 25px;
    padding: 12px 20px 12px 52px;
    border: 1px solid var(--green);
    border-radius: 14px;
    background: var(--green);
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-action::before {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 18px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-radius: 50%;
    content: "";
    transform: translateY(-50%);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-action::after {
    position: absolute;
    top: 50%;
    left: 26px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    content: "";
    transform: translateY(-50%);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-action:hover {
    border-color: var(--green-dark);
    background: var(--green-dark);
  }
}

@media screen and (max-width: 980px) {
  #reports-view.is-adaptive-profile-focus {
    width: min(760px, 100%);
    padding: 32px 20px 40px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-master-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-host {
    position: static;
    order: 0;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list {
    order: 0;
  }
}

@media screen and (max-width: 620px) {
  #reports-view.is-adaptive-profile-focus {
    padding: 24px 13px 32px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-breadcrumb {
    margin-bottom: 25px;
    font-size: 17px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-page-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-result-label,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-result-meta,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot
    .eyebrow,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-overall strong,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-overall span {
    font-size: 17px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-focus-heading,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-page-header h3 {
    font-size: 32px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-more > summary {
    min-width: 54px;
    min-height: 52px;
    padding: 10px;
    font-size: 0;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-more > summary span {
    font-size: 12px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-quick-snapshot {
    gap: 12px;
    min-height: 96px;
    padding: 18px;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-quick-snapshot
    > div:first-child
    > strong {
    font-size: 22px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list > h2 {
    padding: 21px 20px 0;
    font-size: 27px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-list > p {
    padding: 2px 20px 21px;
    font-size: 17px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-row {
    grid-template-columns: minmax(0, 1fr) 70px 15px;
    gap: 10px;
    min-height: 112px;
    padding: 18px 17px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-copy strong,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-skill-tested,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend {
    font-size: 17px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-percent {
    width: 70px;
    min-height: 46px;
    font-size: 17px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-score-legend {
    padding: 14px 20px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-definition {
    padding-right: 18px;
    padding-left: 18px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header .eyebrow,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-definition,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta strong,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta span,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-pattern-copy
    h3,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-pattern-fact,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-disclosure
    summary,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .report-example-prompt,
  #reports-view.is-adaptive-profile-focus .report-example-outcome,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .answer-chip,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .answer-chip
    small,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .answer-chip
    .maths-expression,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-action {
    font-size: 17px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h2,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-header h3 {
    font-size: 26px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-definition strong,
  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .report-example-label {
    font-size: 23px;
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-meta,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-misconception,
  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-example {
    margin-right: 18px;
    margin-left: 18px;
  }

  #reports-view.is-adaptive-profile-focus
    .adaptive-profile-detail-example
    .report-example-answer {
    grid-template-columns: minmax(0, 1fr);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-pattern {
    grid-template-columns: minmax(0, 1fr);
  }

  #reports-view.is-adaptive-profile-focus .adaptive-profile-detail-action {
    width: calc(100% - 36px);
    margin-right: 18px;
    margin-left: 18px;
  }
}
