.account-page {
  background: #f7f8f4;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.account-main {
  width: min(100% - 48px, 1000px);
  margin: 64px auto 100px;
  flex: 1;
}
.account-main h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.04em;
  margin: 8px 0 16px;
  line-height: 1.1;
}
.account-main h2 {
  font-size: 23px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.account-main .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-size: 11px;
  font-weight: 700;
  color: var(--forest);
}
.account-section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  margin-top: 32px;
}
.account-form {
  display: grid;
  gap: 16px;
  max-width: 520px;
}
.account-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
}
.account-form input {
  width: 100%;
  min-height: 46px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  font: inherit;
}
.account-form .button {
  justify-self: start;
}
.account-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.account-row p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 13px;
}
.account-row strong {
  overflow-wrap: anywhere;
}
.account-code {
  padding: 20px;
  background: #e6efe3;
  border-radius: 10px;
  overflow-wrap: anywhere;
  margin: 16px 0;
}
.account-code code {
  display: block;
  font-size: 17px;
  margin: 12px 0;
}
.account-main pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.7;
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
}
.account-main .code-step {
  max-width: 850px;
  margin: 24px 0;
}
.account-main .code-step h3 {
  font-size: 16px;
  margin-bottom: 8px;
}
.account-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.account-main .error {
  min-height: 1.4em;
}
.account-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.account-main .preview-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
}
.account-main .preview-status {
  margin: 0 0 8px;
  font-size: 14px;
}
.device-reports h3 {
  font-size: 16px;
  margin: 28px 0 8px;
}
.device-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 8px 0 0;
}
.device-stats div {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}
.device-stats dt {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}
.device-stats dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.device-browsers {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.8;
}
.device-report > div:first-child {
  min-width: 0;
}
.account-row .device-note {
  color: var(--ink);
  border-left: 3px solid var(--line);
  padding-left: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
/* Verdict colours each keep at least 6:1 contrast against their fill. */
.verdict {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  vertical-align: 1px;
}
.verdict-works {
  background: #e3f0e6;
  color: #1f5a3a;
}
.verdict-issues {
  background: #fbeed5;
  color: #7a4a00;
}
.verdict-blocked {
  background: #f9e3e4;
  color: #9b2530;
}
@media (max-width: 600px) {
  .account-main {
    width: calc(100% - 36px);
    margin-top: 40px;
  }
  .account-row {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .account-actions {
    justify-content: flex-start;
  }
  .device-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    padding: 20px 18px;
  }
  .toplinks {
    gap: 14px;
  }
  .account-main pre {
    padding: 14px;
  }
  .account-section {
    margin-top: 24px;
  }
}

.account-page .research-header {
  width: 100%;
}
.account-page .research-header nav > a {
  display: inline-flex;
}
