.ped-page {
  background: var(--soft);
  color: var(--ink);
}
.ped-page [hidden] {
  display: none !important;
}
.ped-header {
  min-height: 68px;
  padding: 12px 4vw;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.ped-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 21px;
  font-weight: 600;
}
.ped-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
}
.ped-header [aria-current] {
  color: var(--blue-dark);
}
.ped-main {
  max-width: 1180px;
  margin: auto;
  padding: 36px 28px 70px;
}
.ped-eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.11em;
  font-weight: 600;
}
#study-intro > h1 {
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  margin: 24px 0;
  font-weight: 600;
}
.ped-lead {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.ped-schedule {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  margin: 30px 0 22px;
}
.ped-schedule > div {
  padding: 24px;
}
.ped-schedule > div + div {
  border-left: 1px solid var(--line);
}
.ped-schedule span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.1em;
}
.ped-schedule strong {
  display: block;
  font-size: 30px;
  margin: 12px 0;
  font-weight: 600;
}
.ped-schedule p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}
.ped-page button,
.ped-page select {
  border: 1px solid var(--line);
  border-radius: 7px;
  min-height: 42px;
  padding: 10px 14px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.ped-page button:hover:not(:disabled) {
  background: var(--soft);
  border-color: var(--muted-light);
}
.ped-page button:disabled {
  opacity: 0.55;
  cursor: default;
}
.ped-page .ped-primary {
  background: var(--accent, var(--blue-dark));
  border-color: var(--accent, var(--blue-dark));
  color: var(--on-accent, #fff);
}
.ped-page .ped-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent, var(--blue)) 90%, black);
  color: var(--on-accent, #fff);
}
.ped-page :focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.ped-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ped-small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 820px;
}
.ped-section-title {
  margin-top: 42px;
  font-size: 18px;
  font-weight: 600;
}
.ped-topics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 18px 0 30px;
  border-top: 1px solid var(--line);
}
.ped-topics > div {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.ped-topics strong,
.ped-topics span {
  display: block;
}
.ped-topics span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.ped-editorial {
  margin-top: 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.ped-editorial summary {
  cursor: pointer;
  color: var(--ink);
}
.ped-editorial a,
.ped-explanation a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.ped-toolbar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.ped-toolbar h1 {
  font-size: 21px;
  letter-spacing: -0.03em;
  margin: 6px 0;
}
.ped-clock {
  margin-left: auto;
  min-width: 100px;
}
.ped-clock span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.ped-clock strong {
  display: block;
  font-size: 25px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.ped-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 30px;
  margin-top: 24px;
  align-items: start;
}
.ped-map label {
  display: block;
  font-size: 12px;
  margin-bottom: 8px;
  color: var(--muted);
}
.ped-map select {
  width: 100%;
  padding-inline: 8px;
}
.ped-map > p {
  font-size: 12px;
  line-height: 1.6;
}
.ped-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
}
.ped-grid button {
  padding: 4px;
  min-width: 0;
  min-height: 42px;
  font-size: 12px;
}
.ped-grid button.is-answered {
  border-color: var(--blue);
}
.ped-grid button.is-correct {
  background: #edf7f1;
  color: #18623f;
  border-color: #96c4aa;
}
.ped-grid button.is-error {
  background: #fff1ed;
  color: #91331d;
  border-color: #dcb7ac;
}
.ped-grid button[aria-current] {
  outline: 2px solid var(--blue-dark);
  outline-offset: 1px;
}
.ped-question {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  min-width: 0;
}
.ped-question-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}
.ped-question-meta p {
  max-width: 65%;
  line-height: 1.6;
}
.ped-question-meta button {
  font-size: 12px;
}
.ped-question button[aria-pressed="true"] {
  color: var(--blue-dark);
  border-color: var(--blue);
  background: var(--soft);
}
.ped-question h2 {
  font-size: 20px;
  line-height: 1.65;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 20px 0 28px;
}
.ped-question h2:focus {
  outline: none;
}
#study-options {
  display: grid;
  gap: 10px;
}
.ped-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 15px;
  line-height: 1.55;
  cursor: pointer;
}
.ped-option:has(input:checked) {
  border-color: var(--blue);
  background: #f3f6ff;
}
.ped-option input {
  margin-top: 5px;
  accent-color: var(--blue-dark);
  flex: none;
}
.ped-option.is-correct {
  border-color: #438b65;
}
.ped-question .ped-text {
  border: 0;
  padding-left: 0;
  color: var(--muted);
}
.ped-question-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 22px;
}
.ped-finish {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--muted);
}
.ped-explanation {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  font-size: 14px;
  line-height: 1.7;
}
.ped-explanation h3 {
  font-size: 16px;
}
.ped-explanation li {
  margin-bottom: 12px;
}
.ped-reviewed {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 15px 0;
}
.ped-summary {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.ped-summary h2 {
  font-size: 20px;
  font-weight: 500;
}
.ped-score {
  font-size: 34px;
  letter-spacing: -0.04em;
  margin: 14px 0;
}
.ped-paused {
  min-height: 300px;
  display: grid;
  align-content: center;
  text-align: center;
}
.ped-notice:not(:empty) {
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  font-size: 13px;
  line-height: 1.6;
}
.ped-page dialog {
  max-width: 480px;
  width: calc(100% - 36px);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  color: var(--ink);
}
.ped-page dialog::backdrop {
  background: rgba(9, 9, 11, 0.45);
}
.ped-page dialog h2 {
  font-size: 22px;
  margin-top: 0;
}
.ped-page dialog p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}
.ped-footer {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.ped-history {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.ped-history-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ped-history-heading h2 {
  font-size: 19px;
  margin: 0;
}
.ped-history-row {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1fr 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.ped-history-row > div > span {
  display: block;
}
.ped-page .ped-history-dialog {
  max-width: 860px;
  max-height: 90vh;
  overflow: auto;
}
.ped-history-dialog .ped-history-heading {
  align-items: start;
}
.ped-history-options {
  list-style: none;
  padding: 0;
}
.ped-history-options li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.ped-history-options .is-selected {
  border-color: var(--blue);
}
@media (max-width: 760px) {
  .ped-history-row {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .ped-history-heading {
    flex-wrap: wrap;
  }
  .ped-page .ped-history-dialog {
    padding: 20px 16px;
  }
  .ped-main {
    padding: 24px 16px 50px;
  }
  .ped-header {
    align-items: flex-start;
  }
  .ped-header nav {
    gap: 12px;
    justify-content: flex-end;
    font-size: 12px;
  }
  .ped-topics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ped-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
  .ped-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }
  .ped-question {
    padding: 20px 16px;
  }
  .ped-toolbar {
    flex-wrap: wrap;
  }
  .ped-toolbar > div:first-child {
    flex: 1 1 60%;
  }
  .ped-clock {
    margin: 0;
  }
  .ped-toolbar h1 {
    font-size: 19px;
  }
  .ped-question h2 {
    font-size: 18px;
  }
  .ped-question-meta {
    flex-wrap: wrap;
  }
  .ped-question-meta p {
    max-width: none;
  }
  .ped-finish {
    flex-direction: column;
    align-items: stretch;
  }
}
@media (max-width: 420px) {
  .ped-schedule {
    grid-template-columns: 1fr;
  }
  .ped-schedule > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .ped-header nav {
    max-width: 215px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ped-page {
    scroll-behavior: auto;
  }
}
