.exams-shell:has(.pec-page) {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.pec-page {
  --pec-ink: #142238;
  --pec-muted: #62738a;
  --pec-line: #dbe4ef;
  --pec-soft: #f3f7fc;
  --pec-blue: #0b70f5;
  --pec-blue-dark: #075bc8;
  --pec-green: #12835b;
  --pec-green-soft: #e9f8f1;
  --pec-yellow: #a86208;
  --pec-yellow-soft: #fff6de;
  --pec-red: #be3144;
  --pec-red-soft: #fff0f2;
  color: var(--pec-ink);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pec-page *,
.pec-page *::before,
.pec-page *::after {
  box-sizing: border-box;
}

.pec-hero,
.pec-panel,
.pec-help {
  border: 1px solid var(--pec-line);
  background: #fff;
}

.pec-hero {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 20px;
  margin-bottom: 14px;
}

.pec-hero-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: var(--pec-blue);
  background: #eaf3ff;
  font-size: 1.35rem;
}

.pec-hero-copy {
  min-width: 0;
}

.pec-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #54708f;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.pec-hero h1 {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

.pec-hero p {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  color: var(--pec-muted);
  font-size: .92rem;
  line-height: 1.6;
}

.pec-account {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 11px 12px;
  color: #405570;
  background: var(--pec-soft);
  border-left: 3px solid #aebccd;
}

.pec-account.is-connected {
  color: #145f47;
  background: var(--pec-green-soft);
  border-left-color: var(--pec-green);
}

.pec-account i {
  font-size: 1.1rem;
}

.pec-account span {
  display: grid;
  min-width: 0;
}

.pec-account strong,
.pec-account small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pec-account strong {
  font-size: .82rem;
}

.pec-account small {
  color: inherit;
  opacity: .78;
  font-size: .72rem;
}

.pec-grid {
  display: grid;
  gap: 14px;
}

.pec-panel {
  min-width: 0;
  overflow: hidden;
}

.pec-panel-heading {
  padding: 17px 18px;
  border-bottom: 1px solid var(--pec-line);
}

.pec-panel-heading > div {
  display: flex;
  gap: 10px;
  align-items: center;
}

.pec-panel-heading h2 {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -.015em;
}

.pec-panel-heading p {
  margin: 6px 0 0 36px;
  color: var(--pec-muted);
  font-size: .78rem;
  line-height: 1.45;
}

.pec-step {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  background: var(--pec-blue);
  font-size: .75rem;
  font-weight: 800;
}

.pec-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 13px;
  padding: 18px;
}

.pec-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.pec-field-wide {
  grid-column: 1 / -1;
}

.pec-field > span {
  color: #41556f;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.pec-field small {
  color: #7f8da1;
  font-weight: 600;
}

.pec-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cdd9e7;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: var(--pec-ink);
  font: inherit;
  font-size: .88rem;
  transition: border-color .16s ease, box-shadow .16s ease;
}

.pec-field input[readonly] {
  background: #f5f8fc;
  color: #51627a;
}

.pec-field input:focus-visible {
  border-color: var(--pec-blue);
  box-shadow: 0 0 0 3px rgba(11, 112, 245, .13);
}

.pec-primary,
.pec-secondary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border: 1px solid transparent;
  border-radius: 0;
  font: inherit;
  font-size: .83rem;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, opacity .16s ease;
}

.pec-primary {
  grid-column: 1 / -1;
  color: #fff;
  background: var(--pec-blue);
}

.pec-primary:hover {
  background: var(--pec-blue-dark);
}

.pec-primary:disabled {
  cursor: wait;
  opacity: .62;
}

.pec-secondary {
  color: #2d4665;
  background: #fff;
  border-color: #cdd9e7;
}

.pec-secondary:hover {
  background: var(--pec-soft);
}

.pec-link-button {
  text-decoration: none;
}

.pec-primary:focus-visible,
.pec-secondary:focus-visible,
.pec-disclosure summary:focus-visible {
  outline: 3px solid rgba(11, 112, 245, .25);
  outline-offset: 2px;
}

.pec-message {
  grid-column: 1 / -1;
  padding: 11px 12px;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.45;
}

.pec-message.is-error {
  color: #9e2034;
  background: var(--pec-red-soft);
  border-left: 3px solid var(--pec-red);
}

.pec-disclosure {
  margin: 0 18px 18px;
  padding-top: 13px;
  border-top: 1px solid var(--pec-line);
  color: var(--pec-muted);
  font-size: .76rem;
}

.pec-disclosure summary {
  color: #3d536f;
  font-weight: 800;
  cursor: pointer;
}

.pec-disclosure p {
  margin: 9px 0 0;
  line-height: 1.6;
}

.pec-run-panel {
  min-height: 420px;
}

.pec-idle {
  display: grid;
  min-height: 310px;
  place-content: center;
  justify-items: center;
  padding: 28px;
  text-align: center;
}

.pec-idle-visual {
  display: flex;
  align-items: center;
  color: var(--pec-blue);
}

.pec-idle-visual i {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  background: #edf5ff;
  font-size: 1.2rem;
}

.pec-idle-visual span {
  width: 38px;
  border-top: 2px dashed #b9cee8;
}

.pec-idle h3 {
  margin: 18px 0 7px;
  font-size: 1rem;
  font-weight: 800;
}

.pec-idle p {
  max-width: 390px;
  margin: 0;
  color: var(--pec-muted);
  font-size: .8rem;
  line-height: 1.6;
}

.pec-running {
  padding: 22px 18px;
}

.pec-progress-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 10px;
  font-size: .8rem;
}

.pec-progress-copy strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pec-progress-copy span {
  color: var(--pec-blue);
  font-weight: 800;
}

.pec-progress {
  height: 8px;
  overflow: hidden;
  background: #e6edf6;
}

.pec-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--pec-blue);
  transition: width .28s ease;
}

.pec-running > p {
  margin: 10px 0 0;
  color: var(--pec-muted);
  font-size: .74rem;
}

.pec-results {
  padding: 18px;
}

.pec-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
  margin-bottom: 12px;
  border-left: 4px solid var(--pec-yellow);
  background: var(--pec-yellow-soft);
  color: #6f470d;
}

.pec-summary[data-status="green"] {
  color: #145f47;
  background: var(--pec-green-soft);
  border-left-color: var(--pec-green);
}

.pec-summary[data-status="red"] {
  color: #98263a;
  background: var(--pec-red-soft);
  border-left-color: var(--pec-red);
}

.pec-summary-icon {
  font-size: 1.18rem;
}

.pec-summary-label {
  display: block;
  font-size: .67rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pec-summary h3 {
  margin: 2px 0 0;
  font-size: .95rem;
  font-weight: 800;
}

.pec-summary p {
  margin: 3px 0 0;
  color: inherit;
  opacity: .84;
  font-size: .72rem;
  line-height: 1.4;
}

.pec-summary > strong {
  font-size: 1.15rem;
  font-weight: 800;
}

.pec-previous {
  padding: 9px 11px;
  margin-bottom: 12px;
  color: #4e617b;
  background: var(--pec-soft);
  font-size: .72rem;
}

.pec-check-list {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
  border: 1px solid var(--pec-line);
}

.pec-check-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  padding: 12px;
  border-bottom: 1px solid var(--pec-line);
}

.pec-check-item:last-child {
  border-bottom: 0;
}

.pec-check-dot {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #fff;
  background: var(--pec-yellow);
  font-size: .7rem;
}

.pec-check-item[data-status="green"] .pec-check-dot {
  background: var(--pec-green);
}

.pec-check-item[data-status="red"] .pec-check-dot {
  background: var(--pec-red);
}

.pec-check-copy {
  min-width: 0;
}

.pec-check-title {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.pec-check-title strong {
  font-size: .78rem;
  font-weight: 800;
}

.pec-check-badge {
  padding: 2px 6px;
  color: #7b500e;
  background: var(--pec-yellow-soft);
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pec-check-item[data-status="green"] .pec-check-badge {
  color: #17654c;
  background: var(--pec-green-soft);
}

.pec-check-item[data-status="red"] .pec-check-badge {
  color: #a1273b;
  background: var(--pec-red-soft);
}

.pec-check-copy p {
  margin: 4px 0 0;
  color: var(--pec-muted);
  font-size: .7rem;
  line-height: 1.5;
}

.pec-check-copy small {
  display: block;
  margin-top: 4px;
  color: #8290a3;
  font-size: .62rem;
}

.pec-result-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 9px;
  margin-top: 14px;
}

.pec-result-actions .pec-primary {
  grid-column: auto;
}

.pec-help {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 15px 17px;
  margin-top: 14px;
  color: #405570;
}

.pec-help > i {
  color: var(--pec-blue);
}

.pec-help div {
  display: grid;
  gap: 3px;
}

.pec-help strong {
  font-size: .76rem;
}

.pec-help span {
  color: var(--pec-muted);
  font-size: .7rem;
  line-height: 1.5;
}

@media (min-width: 720px) {
  .pec-hero {
    grid-template-columns: auto minmax(0, 1fr) minmax(220px, auto);
    padding: 24px;
  }

  .pec-hero p {
    grid-column: 2;
  }

  .pec-account {
    grid-column: 3;
    grid-row: 1 / span 2;
    max-width: 330px;
  }

  .pec-form {
    padding: 22px;
  }

  .pec-panel-heading {
    padding: 20px 22px;
  }

  .pec-disclosure {
    margin-inline: 22px;
    margin-bottom: 22px;
  }

  .pec-results,
  .pec-running {
    padding: 22px;
  }

  .pec-check-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 13px 14px;
  }
}

@media (min-width: 1040px) {
  .pec-grid {
    grid-template-columns: minmax(330px, .78fr) minmax(0, 1.22fr);
    align-items: start;
  }

  .pec-access-panel {
    position: sticky;
    top: 12px;
  }
}

@media (max-width: 420px) {
  .pec-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .pec-field,
  .pec-field-wide {
    grid-column: 1;
  }

  .pec-summary {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .pec-summary > strong {
    grid-column: 2;
  }

  .pec-result-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pec-page *,
  .pec-page *::before,
  .pec-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media (prefers-contrast: more) {
  .pec-hero,
  .pec-panel,
  .pec-help,
  .pec-field input,
  .pec-check-list {
    border-color: #7e8da1;
  }
}
