/* Shared portal pages; the test runner keeps its existing layout. */
.portal-app {
  height: auto;
  min-height: 100dvh;
  overflow: visible
}

.portal-app a {
  text-decoration: none
}

.portal-app a:focus-visible {
  outline: 3px solid var(--cyan-deep);
  outline-offset: 4px
}

.portal-login {
  max-width: 620px;
  padding: 40px 48px
}

.portal-login h1 {
  font-size: 44px
}

.portal-login .lead {
  font-size: 21px;
  margin-bottom: 28px
}

.portal-form {
  text-align: left
}

.portal-field {
  margin-bottom: 22px
}

.portal-field label {
  display: block;
  font-size: 18px;
  font-weight: 650;
  margin-bottom: 10px
}

.portal-field input {
  display: block;
  width: 100%;
  min-height: 60px;
  padding: 12px 16px;
  border: 2px solid #b7cbd5;
  border-radius: 12px;
  color: var(--ink);
  background: #fbfdfe
}

.portal-header {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px max(32px, calc((100% - 1200px)/2));
  background: var(--paper);
  border-bottom: 1px solid var(--line)
}

.portal-brand {
  display: block;
  flex-shrink: 0;
  width: 220px;
  border-radius: 8px
}

.portal-brand img {
  display: block;
  width: 100%;
  height: auto
}

.portal-header-label {
  color: var(--muted);
  font-size: 18px;
  border-left: 1px solid var(--line);
  padding-left: 28px
}

.portal-header>.button {
  margin-left: auto;
  white-space: nowrap
}

.portal-content {
  width: min(1264px, 100%);
  margin: 0 auto;
  padding: 64px 32px;
  flex: 1
}

.portal-content h1 {
  font-size: 48px;
  line-height: 1.12;
  margin-bottom: 18px
}

.portal-content>.lead {
  max-width: 720px;
  font-size: 22px
}

.portal-tests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 400px));
  gap: 24px;
  margin-top: 38px
}

.portal-test-card {
  padding: 30px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow)
}

.portal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px
}

.portal-test-symbol {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: #e8f5fa;
  color: var(--cyan-deep);
  font-size: 44px;
  line-height: 1
}

.portal-card-top .pill {
  font-size: 14px;
  padding: 8px 12px
}

.portal-test-card h2 {
  font-size: 30px;
  line-height: 1.2;
  margin-bottom: 16px
}

.portal-test-card p {
  color: var(--muted);
  font-size: 18px;
  margin-bottom: 24px
}

.portal-test-detail {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5
}

.portal-help {
  font-size: 17px;
  color: var(--muted);
  margin: 28px 0 0
}

.portal-footer {
  padding: 0 24px 26px
}

@media(max-width:600px) {
  .portal-app .welcome-screen {
    padding: 24px 16px
  }

  .portal-login {
    padding: 30px 24px;
    border-radius: 22px
  }

  .portal-login h1 {
    font-size: 36px
  }

  .portal-login .welcome-logo {
    width: 210px
  }

  .portal-header {
    padding: 20px;
    gap: 16px;
    flex-wrap: wrap
  }

  .portal-brand {
    width: 180px
  }

  .portal-header-label {
    order: 3;
    width: 100%;
    border: 0;
    padding: 0;
    font-size: 16px
  }

  .portal-header>.button {
    font-size: 15px;
    padding: 10px 12px
  }

  .portal-content {
    padding: 38px 20px
  }

  .portal-content h1 {
    font-size: 38px
  }

  .portal-content>.lead {
    font-size: 20px
  }

  .portal-tests {
    margin-top: 28px
  }

  .portal-test-card {
    padding: 24px
  }
}
.portal-test-symbol img {
  display: block;
  width: 24px;
  height: 38px;
  object-fit: contain;
}
