:root {
  --p2-ink: #172033;
  --p2-muted: #64748b;
  --p2-line: #d8e2ee;
  --p2-soft: #f5f8fc;
  --p2-panel: #ffffff;
  --p2-blue: #1f5b99;
  --p2-green: #197a67;
  --p2-gold: #a76f1b;
  --p2-red: #b94a48;
  --p2-shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
}

html.resources-test-locked body {
  overflow: hidden;
}

html.resources-test-locked .p2-test-app,
html.resources-test-locked .p2-source-content {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
}

body.p2-full-test {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden;
  background: #ffffff !important;
  color: var(--p2-ink) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif !important;
  font-size: 17px !important;
}

.p2-test-topbar {
  position: sticky;
  top: 0;
  z-index: 9990;
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(216, 226, 238, 0.92);
  background: rgba(255, 255, 255, 0.96);
  padding: 0 max(18px, calc((100vw - 1380px) / 2));
  backdrop-filter: blur(14px);
}

.p2-test-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--p2-ink);
  font-weight: 850;
  text-decoration: none;
}

.p2-test-brand span:first-child {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--p2-blue);
  color: #ffffff;
}

.p2-test-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.p2-test-tabs a,
.p2-test-button,
.p2-test-chip,
.p2-test-mini button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--p2-line);
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 11px;
  color: var(--p2-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.p2-test-tabs a[aria-current="page"],
.p2-test-button.primary,
.p2-test-chip.active,
.p2-test-mini button.active {
  border-color: rgba(31, 91, 153, 0.28);
  background: #eaf3ff;
  color: var(--p2-blue);
}

.p2-test-button.primary {
  background: var(--p2-blue);
  color: #ffffff;
}

.p2-test-app {
  box-sizing: border-box;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(245, 248, 252, 0.95), rgba(255, 255, 255, 0) 460px),
    #ffffff;
}

body[data-p2-variant="c"].p2-section-nav-open .p2-test-app {
  padding-left: 0;
}

.p2-section-nav-toggle {
  position: fixed;
  top: 84px;
  left: 14px;
  z-index: 10040;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(31, 91, 153, 0.28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 41, 74, 0.16);
  color: var(--p2-blue);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  padding: 7px 12px;
}

body[data-p2-variant="c"].p2-section-nav-open .p2-section-nav-toggle {
  left: 300px;
}

.p2-section-drawer {
  position: fixed;
  top: 66px;
  bottom: 0;
  left: 0;
  z-index: 10030;
  width: 286px;
  border-right: 1px solid var(--p2-line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 18px 0 42px rgba(15, 41, 74, 0.13);
  box-sizing: border-box;
  overflow-y: auto;
  padding: 14px;
  transform: translateX(-105%);
  transition: transform 0.18s ease;
}

body.p2-section-nav-open .p2-section-drawer {
  transform: translateX(0);
}

.p2-section-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.p2-section-drawer-head strong {
  color: var(--p2-ink);
  font-size: 16px;
}

.p2-section-drawer-head button {
  min-height: 32px;
  border: 1px solid var(--p2-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--p2-blue);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  padding: 5px 9px;
}

.p2-section-nav {
  display: grid;
  gap: 6px;
}

.p2-section-nav a {
  display: block;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--p2-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.26;
  padding: 8px 9px;
  text-decoration: none;
}

.p2-section-nav a:hover,
.p2-section-nav a.active {
  border-color: rgba(31, 91, 153, 0.16);
  background: #eaf3ff;
  color: var(--p2-blue);
}

.p2-section-nav-backdrop {
  display: none;
}

.p2-test-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
  gap: 22px;
  align-items: end;
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 18px;
}

@media (min-width: 1181px) {
  body[data-p2-variant="c"].p2-section-nav-open .p2-test-hero,
  body[data-p2-variant="c"].p2-section-nav-open .p2-test-layout {
    width: min(1380px, calc(100vw - 322px));
    margin-left: 304px;
    margin-right: 18px;
  }
}

.p2-test-eyebrow {
  margin: 0 0 8px;
  color: var(--p2-blue);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.p2-test-hero h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.14;
}

.p2-test-hero p {
  margin: 12px 0 0;
  color: var(--p2-muted);
  font-size: 17px;
}

.p2-test-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.p2-test-metric {
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: var(--p2-panel);
  padding: 12px;
}

.p2-test-metric strong {
  display: block;
  font-size: 24px;
  line-height: 1.1;
}

.p2-test-metric span {
  color: var(--p2-muted);
  font-size: 12px;
  font-weight: 800;
}

.p2-test-layout {
  display: grid;
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: 10px 0 64px;
  gap: 20px;
}

body[data-p2-variant="a"] .p2-test-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

body[data-p2-variant="b"] .p2-test-layout {
  grid-template-columns: 360px minmax(0, 1fr);
}

body[data-p2-variant="c"] .p2-test-layout {
  grid-template-columns: minmax(0, 1fr) clamp(340px, 26vw, 390px);
}

.p2-test-side,
.p2-test-panel,
.p2-test-results {
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: var(--p2-panel);
  box-shadow: var(--p2-shadow);
}

.p2-test-side {
  position: sticky;
  top: 86px;
  align-self: start;
  max-height: calc(100vh - 106px);
  overflow: auto;
  padding: 12px;
}

.p2-test-side h2,
.p2-test-panel h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.p2-test-toc {
  display: grid;
  gap: 6px;
}

.p2-test-toc a {
  display: block;
  border-radius: 7px;
  padding: 8px 9px;
  color: var(--p2-muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.p2-test-toc a:hover,
.p2-test-toc a.active {
  background: #eaf3ff;
  color: var(--p2-blue);
}

.p2-test-content {
  min-width: 0;
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: var(--p2-panel);
  padding: 26px;
  box-shadow: var(--p2-shadow);
}

.p2-test-content > *:first-child {
  margin-top: 0 !important;
}

.p2-test-content h1,
.p2-test-content h2,
.p2-test-content h3 {
  scroll-margin-top: 88px;
}

.p2-test-content h1 {
  font-size: 30px !important;
}

.p2-test-content h2 {
  border-top: 0 !important;
  border-radius: 8px !important;
  background: #234a7c !important;
  padding: 12px 14px !important;
  color: #ffffff !important;
  font-size: 24px !important;
  line-height: 1.18 !important;
}

.p2-test-content table {
  width: 100% !important;
  max-width: 100%;
  font-size: 15px !important;
  line-height: 1.45 !important;
}

.p2-table-scroll {
  width: 100%;
  max-width: 100%;
  margin: 0 0 14px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.p2-table-scroll > table {
  display: table !important;
  min-width: 820px;
  max-width: none !important;
  margin: 0 !important;
}

.p2-table-scroll > table.p2-source-table,
.p2-table-scroll > table.p2-mechanism-table,
.p2-table-scroll > table:has(th:nth-child(6)) {
  min-width: 960px;
}

.p2-table-scroll > table.p2-has-weak-column {
  min-width: 1020px;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) {
  min-width: 1000px;
  table-layout: fixed !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(7)) {
  min-width: 1040px;
  table-layout: fixed !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) col:nth-child(1) {
  width: 96px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) col:nth-child(2) {
  width: 84px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) col:nth-child(3) {
  width: 150px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) col:nth-child(4) {
  width: 400px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) col:nth-child(5) {
  width: 170px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) col:nth-child(6) {
  width: 100px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(7)) col:nth-child(1) {
  width: 96px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(7)) col:nth-child(2) {
  width: 84px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(7)) col:nth-child(3) {
  width: 66px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(7)) col:nth-child(4) {
  width: 60px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(7)) col:nth-child(5) {
  width: 210px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(7)) col:nth-child(6) {
  width: 390px !important;
}

.p2-table-scroll > table.p2-has-weak-column:has(th:nth-child(7)) col:nth-child(7) {
  width: 134px !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(2),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(2) {
  width: 84px !important;
  text-align: right !important;
  white-space: normal !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(3),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(3) {
  width: 150px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(4),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(4) {
  width: 400px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(5),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(5) {
  width: 170px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) th:nth-child(6),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(6)):not(:has(th:nth-child(7))) td:nth-child(6) {
  width: 100px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) th:nth-child(2),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) td:nth-child(2) {
  width: 84px !important;
  text-align: right !important;
  white-space: normal !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) th:nth-child(3),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) td:nth-child(3) {
  width: 66px !important;
  text-align: right !important;
  white-space: normal !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) th:nth-child(4),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) td:nth-child(4) {
  width: 60px !important;
  text-align: right !important;
  white-space: normal !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) th:nth-child(5),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) td:nth-child(5) {
  width: 210px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) th:nth-child(6),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) td:nth-child(6) {
  width: 390px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) th:nth-child(7),
.p2-test-content table.p2-has-weak-column:has(th:nth-child(7)) td:nth-child(7) {
  width: 134px !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

.p2-test-content .cie-formula {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}

.p2-equation-note {
  display: block;
  margin-top: 10px;
  border: 1px solid #b9d4ee;
  border-radius: 8px;
  background: #f8fbff;
}

.p2-equation-note summary {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  padding: 8px 10px;
  color: var(--p2-blue);
  font-weight: 900;
  line-height: 1.25;
}

.p2-equation-note summary::-webkit-details-marker {
  display: none;
}

.p2-equation-note summary::before {
  content: "+";
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: #eaf3ff;
  color: var(--p2-blue);
  font-size: 15px;
  line-height: 1;
}

.p2-equation-note[open] summary::before {
  content: "-";
}

.p2-equation-note summary span {
  flex: 1 1 auto;
}

.p2-equation-note summary em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eef6ff;
  padding: 3px 8px;
  color: #52657f;
  font-size: 12px;
  font-style: normal;
  white-space: nowrap;
}

.p2-equation-note-body,
.p2-equation-note-when {
  border-top: 1px solid #d8e8f7;
  padding: 9px 10px;
  color: #1c2a3d;
  font-size: 14px;
  line-height: 1.5;
}

.p2-equation-note-when {
  background: #ffffff;
  color: #40516b;
}

.p2-equation-note[data-equation-kind="cross-reference"] {
  border-color: #d7bd7f;
  background: #fffaf0;
}

.p2-equation-note[data-equation-kind="cross-reference"] summary {
  color: #8a5a11;
}

.p2-equation-note[data-equation-kind="cross-reference"] summary::before,
.p2-equation-note[data-equation-kind="cross-reference"] summary em {
  background: #fff1cc;
  color: #8a5a11;
}

.p2-weak-col-def {
  width: 96px !important;
}

.p2-test-content th.p2-weak-head,
.p2-test-content td.p2-weak-cell {
  width: 96px !important;
  min-width: 96px !important;
  max-width: 96px !important;
  text-align: center !important;
  vertical-align: middle !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

.p2-test-content th.p2-weak-head {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #eaf3ff !important;
  color: var(--p2-blue);
}

.p2-test-content td.p2-weak-cell {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #ffffff;
}

.p2-test-content tr:nth-child(even) td.p2-weak-cell {
  background: #f8fbff;
}

.p2-test-content tr.weak-selected td.p2-weak-cell {
  background: #fff7ed !important;
}

.p2-test-content tr.mastered-selected td.p2-weak-cell {
  background: #f3fbf8 !important;
}

.p2-weak-cell .weak-marker {
  display: none !important;
}

.p2-status-control {
  display: grid;
  gap: 5px;
}

.p2-status-control button {
  min-height: 28px;
  border: 1px solid var(--p2-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--p2-muted);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.p2-status-control button[data-row-status="weak"].active {
  border-color: rgba(185, 74, 72, 0.34);
  background: #fff1f0;
  color: var(--p2-red);
}

.p2-status-control button[data-row-status="mastered"].active {
  border-color: rgba(25, 122, 103, 0.34);
  background: #eaf8f3;
  color: var(--p2-green);
}

.p2-test-content th,
.p2-test-content td {
  border: 1px solid var(--p2-line) !important;
  padding: 10px !important;
  font-size: inherit !important;
  line-height: 1.45 !important;
  vertical-align: top;
}

.p2-test-content th {
  background: var(--p2-soft);
}

.p2-test-content td code,
.p2-test-content th code {
  font-size: 0.95em !important;
}

.p2-test-content img {
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #ffffff;
}

.p2-test-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.p2-test-search {
  width: 100%;
  min-height: 42px;
  border: 1px solid #b9cfe8;
  border-radius: 8px;
  background: #f8fbff;
  padding: 9px 12px;
  color: var(--p2-ink);
  font: inherit;
}

.p2-test-results {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
  padding: 10px;
}

.p2-test-result {
  display: block;
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  color: var(--p2-ink);
  text-decoration: none;
}

.p2-test-result strong {
  display: block;
  margin-bottom: 4px;
}

.p2-test-result span {
  color: var(--p2-muted);
  font-size: 13px;
}

.p2-test-mark {
  border-radius: 4px;
  background: #fff0b8;
  padding: 0 3px;
  color: #4a3510;
  font-weight: 900;
}

.p2-mark-breakdown {
  margin-top: 12px;
  border: 1px solid #bdd7f4;
  border-radius: 10px;
  background: #f8fbff;
  color: #17345d;
  font-size: 14px;
  line-height: 1.45;
}

.p2-mark-breakdown summary {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  cursor: pointer;
  list-style: none;
  font-weight: 850;
}

.p2-mark-breakdown summary::-webkit-details-marker {
  display: none;
}

.p2-mark-breakdown summary span {
  color: #1f5b9e;
}

.p2-mark-breakdown summary strong,
.p2-mark-breakdown summary em {
  border-radius: 999px;
  padding: 4px 8px;
  background: #e6f0ff;
  color: #18457b;
  font-style: normal;
  white-space: nowrap;
}

.p2-mark-breakdown summary em {
  background: #fff7df;
  color: #6d4a00;
}

.p2-mark-breakdown ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 10px 10px;
  list-style: none;
}

.p2-mark-breakdown li {
  display: grid;
  grid-template-columns: 42px 64px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border-top: 1px solid #d9e6f5;
  padding-top: 8px;
}

.p2-mark-breakdown li strong,
.p2-mark-breakdown li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  border-radius: 999px;
  background: #245892;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.p2-mark-breakdown li span {
  background: #e9f2ff;
  color: #245892;
}

.p2-mark-breakdown li p {
  margin: 2px 0 0;
  min-width: 0;
  color: #14233a;
}

.p2-test-board {
  display: grid;
  gap: 12px;
}

.p2-test-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7edf6;
}

.p2-test-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--p2-green);
  transition: width 0.18s ease;
}

.p2-review-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.p2-review-head h2 {
  margin: 0 0 4px;
}

.p2-review-head p {
  margin: 0;
  color: var(--p2-muted);
  font-size: 12px;
  line-height: 1.45;
}

.p2-review-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.p2-review-shell-toggle {
  min-height: 32px;
  border: 1px solid var(--p2-line);
  border-radius: 7px;
  background: #ffffff;
  padding: 6px 10px;
  color: var(--p2-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.p2-review-shell-toggle:hover,
.p2-review-rail:hover {
  border-color: #9ec5fe;
  background: #edf5ff;
}

.p2-review-rail {
  display: none;
  width: 100%;
  min-height: 220px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #bdd8ff;
  border-radius: 8px;
  background: #ffffff;
  color: var(--p2-blue);
  font: inherit;
  font-weight: 950;
  cursor: pointer;
  writing-mode: vertical-rl;
}

.p2-review-rail strong {
  color: var(--p2-muted);
  font-size: 12px;
}

body[data-p2-variant="c"].p2-review-panel-collapsed .p2-test-layout {
  grid-template-columns: minmax(0, 1fr) 58px;
}

body[data-p2-variant="c"].p2-review-panel-collapsed .p2-test-review-side {
  overflow: visible;
  padding: 8px;
}

body[data-p2-variant="c"].p2-review-panel-collapsed .p2-test-review-side .p2-test-board {
  display: none;
}

body[data-p2-variant="c"].p2-review-panel-collapsed .p2-review-rail {
  display: flex;
}

.p2-review-progress-line {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--p2-muted);
  font-size: 13px;
  font-weight: 850;
}

.p2-weak-progress span {
  background: var(--p2-blue);
}

.p2-review-count-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.p2-review-count-grid span {
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
  color: var(--p2-muted);
  font-size: 12px;
  font-weight: 900;
}

.p2-review-count-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--p2-ink);
  font-size: 18px;
}

.p2-review-count-grid .is-weak strong {
  color: var(--p2-red);
}

.p2-review-count-grid .is-mastered strong {
  color: var(--p2-green);
}

.p2-review-control-title {
  color: var(--p2-muted);
  font-size: 12px;
  font-weight: 900;
}

.p2-collapse {
  display: grid;
  gap: 8px;
  border-top: 1px solid var(--p2-line);
  padding-top: 10px;
}

.p2-collapse:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.p2-collapse-toggle {
  display: flex;
  width: 100%;
  min-height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 0;
  border-radius: 7px;
  background: #edf5ff;
  padding: 8px 10px;
  color: var(--p2-blue);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.p2-collapse-toggle [data-collapse-label] {
  color: var(--p2-muted);
  font-size: 12px;
}

.p2-collapse-body {
  display: grid;
  gap: 10px;
}

.p2-collapse.is-collapsed .p2-collapse-body {
  display: none;
}

.p2-test-task {
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.p2-test-task strong {
  display: block;
}

.p2-test-task a {
  color: var(--p2-ink);
  text-decoration: none;
}

.p2-test-task span {
  color: var(--p2-muted);
  font-size: 13px;
}

.p2-test-task.is-weak {
  border-color: rgba(185, 74, 72, 0.34);
  background: #fff8f7;
}

.p2-test-task.is-saved {
  border-color: rgba(167, 111, 27, 0.34);
  background: #fffbf1;
}

.p2-test-task.is-mastered {
  border-color: rgba(25, 122, 103, 0.34);
  background: #f3fbf8;
}

.p2-test-floating-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.p2-test-floating-actions button {
  cursor: pointer;
}

body[data-p2-variant="a"] .p2-test-mini,
body[data-p2-variant="b"] .p2-test-mini {
  display: none;
}

.p2-test-mini {
  position: sticky;
  top: 66px;
  z-index: 9980;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--p2-line);
  background: rgba(255, 255, 255, 0.96);
  padding: 8px max(18px, calc((100vw - 1380px) / 2));
}

.p2-test-review-side .p2-test-mini {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  overflow: visible;
  border-bottom: 0;
  background: transparent;
  padding: 0;
}

.p2-test-review-side .p2-test-mini button {
  min-height: 42px;
  padding: 6px 8px;
}

.p2-test-review-side .p2-test-mini span {
  margin-left: 5px;
}

.p2-content-filter,
.p2-state-filter {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.p2-state-filter {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p2-content-filter button,
.p2-state-filter button {
  min-height: 38px;
  border: 1px solid var(--p2-line);
  border-radius: 7px;
  background: #ffffff;
  color: var(--p2-muted);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.p2-content-filter button.active,
.p2-state-filter button.active {
  border-color: rgba(31, 91, 153, 0.28);
  background: #eaf3ff;
  color: var(--p2-blue);
}

.p2-review-summary {
  display: grid;
  gap: 7px;
  max-height: 36vh;
  overflow: auto;
}

.p2-review-empty {
  border: 1px dashed #c7d7ea;
  border-radius: 8px;
  background: #f8fbff;
  padding: 10px;
  color: var(--p2-muted);
  font-size: 13px;
  line-height: 1.45;
}

.p2-review-summary-item {
  display: block;
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #ffffff;
  padding: 9px 10px;
  color: var(--p2-ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.35;
  text-decoration: none;
}

.p2-review-summary-item.is-weak {
  border-color: rgba(185, 74, 72, 0.26);
  background: #fff8f7;
}

.p2-review-summary-item.is-mastered {
  border-color: rgba(25, 122, 103, 0.26);
  background: #f3fbf8;
}

.p2-review-summary-item.is-unmarked {
  background: #ffffff;
}

.p2-review-group {
  display: grid;
  gap: 6px;
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.p2-review-group h3 {
  margin: 0;
  color: var(--p2-blue);
  font-size: 13px;
  line-height: 1.3;
}

.p2-review-list-head {
  border-top: 1px solid var(--p2-line);
  padding-top: 12px;
  color: var(--p2-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

#p2ReviewList {
  display: grid;
  gap: 8px;
}

.p2-review-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 850;
  vertical-align: middle;
}

.p2-review-badge-weak {
  background: #fff1f0;
  color: var(--p2-red);
}

.p2-review-badge-saved {
  background: #fff6dc;
  color: var(--p2-gold);
}

.p2-review-badge-mastered {
  background: #eaf8f3;
  color: var(--p2-green);
}

.p2-section-search-hidden {
  display: none !important;
}

.p2-review-row-hidden,
.p2-section-review-hidden,
body[data-p2-variant="c"] .weak-summary-panel {
  display: none !important;
}

.p2-lowfreq-heading {
  margin-top: 14px !important;
  color: var(--p2-blue) !important;
}

.p2-lowfreq-table {
  border-left: 4px solid #9fbce0;
}

.resources-gate {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(245, 248, 252, 0.86);
  backdrop-filter: blur(10px);
}

.resources-gate-card {
  width: min(420px, 100%);
  border: 1px solid var(--p2-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--p2-shadow);
  padding: 22px;
}

.resources-gate-card h1 {
  margin: 0 0 8px;
  font-size: 24px;
}

.resources-gate-card p {
  color: var(--p2-muted);
}

.resources-gate-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.resources-gate-form input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #bdd2ee;
  border-radius: 6px;
  padding: 9px 11px;
}

.resources-gate-error {
  min-height: 20px;
  color: var(--p2-red);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  body[data-p2-variant] .p2-test-layout,
  .p2-test-hero {
    grid-template-columns: 1fr;
  }

  .p2-test-side {
    position: static;
    max-height: none;
  }

  .p2-test-toc {
    display: flex;
    overflow-x: auto;
  }

  .p2-test-toc a {
    white-space: nowrap;
  }
}

@media (max-width: 1280px) {
  body[data-p2-variant="c"] .p2-test-layout {
    grid-template-columns: 1fr;
  }

  body[data-p2-variant="c"].p2-review-panel-collapsed .p2-test-layout {
    grid-template-columns: 1fr;
  }

  body[data-p2-variant="c"] .p2-test-review-side {
    order: -1;
    position: static;
    max-height: none;
  }

  body[data-p2-variant="c"].p2-review-panel-collapsed .p2-review-rail {
    min-height: 44px;
    flex-direction: row;
    writing-mode: horizontal-tb;
  }

  body[data-p2-variant="c"] .p2-review-summary {
    max-height: 260px;
  }
}

@media (max-width: 1180px) {
  body[data-p2-variant="c"].p2-section-nav-open .p2-test-app {
    padding-left: 0;
  }

  .p2-section-nav-toggle {
    top: 12px;
    left: 12px;
    min-height: 36px;
  }

  body[data-p2-variant="c"].p2-section-nav-open .p2-section-nav-toggle {
    left: min(calc(86vw + 10px), 328px);
  }

  .p2-section-drawer {
    top: 0;
    width: min(86vw, 320px);
    padding-top: 58px;
  }

  body[data-p2-variant="c"].p2-section-nav-open .p2-section-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: block;
    background: rgba(15, 23, 42, 0.28);
  }
}

@media (max-width: 680px) {
  body.p2-full-test {
    font-size: 15px !important;
  }

  .p2-test-app {
    overflow-x: hidden;
  }

  .p2-test-topbar {
    position: static;
    display: grid;
    gap: 8px;
    min-height: 0;
    padding: 8px;
  }

  .p2-test-brand {
    gap: 7px;
    font-size: 12px;
  }

  .p2-test-brand span:first-child {
    width: 28px;
    height: 28px;
    border-radius: 6px;
  }

  .p2-test-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    overflow-x: auto;
    gap: 5px;
  }

  .p2-test-tabs a {
    min-height: 28px;
    padding: 4px 6px;
    font-size: 11px;
    white-space: normal;
  }

  .p2-section-nav-toggle {
    min-height: 34px;
    padding: 6px 10px;
    font-size: 12px;
  }

  body[data-p2-variant="c"].p2-section-nav-open .p2-section-nav-toggle {
    left: min(calc(86vw + 8px), 316px);
  }

  .p2-section-drawer-head strong {
    font-size: 15px;
  }

  .p2-section-nav a {
    font-size: 12px;
    padding: 7px 8px;
  }

  .p2-test-hero,
  .p2-test-layout {
    width: 100%;
    padding-left: 6px;
    padding-right: 6px;
    box-sizing: border-box;
  }

  .p2-test-hero {
    padding-top: 18px;
    padding-bottom: 10px;
    gap: 10px;
  }

  .p2-test-eyebrow {
    font-size: 11px;
  }

  .p2-test-hero h1 {
    font-size: 22px;
  }

  .p2-test-hero p {
    font-size: 14px;
  }

  .p2-test-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .p2-test-metric {
    padding: 9px;
  }

  .p2-test-metric strong {
    font-size: 18px;
  }

  .p2-test-content {
    padding: 10px;
    font-size: 14px;
  }

  .p2-test-content h1 {
    font-size: 23px !important;
    line-height: 1.16 !important;
  }

  .p2-test-content h2 {
    padding: 9px 10px !important;
    font-size: 18px !important;
  }

  .p2-equation-note summary {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .p2-equation-note-body,
  .p2-equation-note-when {
    font-size: 13px;
  }

  .p2-mark-breakdown {
    font-size: 13px;
  }

  .p2-mark-breakdown summary {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .p2-mark-breakdown summary strong,
  .p2-mark-breakdown summary em {
    width: fit-content;
  }

  .p2-mark-breakdown li {
    grid-template-columns: 38px 58px minmax(0, 1fr);
    gap: 6px;
  }

  .p2-test-content th,
  .p2-test-content td {
    padding: 7px !important;
  }

  .p2-test-review-side {
    padding: 8px;
  }

  .p2-review-head {
    align-items: stretch;
  }

  .p2-review-head h2 {
    font-size: 18px;
  }

  .p2-review-summary {
    max-height: 190px;
  }

  .p2-table-scroll > table {
    min-width: 760px;
  }

  .p2-table-scroll > table.p2-has-weak-column {
    min-width: 850px;
  }

  .p2-test-content th.p2-weak-head,
  .p2-test-content td.p2-weak-cell {
    width: 96px !important;
    min-width: 96px !important;
    max-width: 96px !important;
    padding: 6px 4px !important;
  }

  .p2-status-control button {
    min-height: 27px;
    font-size: 12px;
  }
}
