:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --surface: #ffffff;
  --text: #161a1d;
  --muted: #66717c;
  --line: #d9e0e7;
  --accent: #0f766e;
  --accent-dark: #0b5f59;
  --soft: #eef7f6;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.tool {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(20, 32, 44, 0.08);
}

.heading {
  margin-bottom: 28px;
}

.profile-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.profile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 13px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  background: #fff;
}

.profile-nav a.active {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: var(--soft);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.05;
}

h2 {
  font-size: 1rem;
}

.audit-form {
  display: grid;
  gap: 10px;
  margin-bottom: 28px;
}

label {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 650;
}

.input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  outline: none;
}

input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16);
}

button {
  min-height: 48px;
  border: 0;
  border-radius: 6px;
  padding: 0 18px;
  color: #fff;
  background: var(--accent);
  font-weight: 750;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.report {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--soft);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
  white-space: nowrap;
}

.report-output {
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 16px;
  color: var(--muted);
  line-height: 1.55;
  background: #fbfcfd;
}

.download-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 14px;
}

.download-button {
  min-height: 38px;
  border: 1px solid var(--line);
  padding: 0 14px;
  color: var(--accent-dark);
  background: var(--soft);
}

.download-button:hover {
  color: #fff;
  background: var(--accent);
}

.score-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  margin-bottom: 18px;
  background: #fff;
}

.score-line strong {
  display: block;
  color: var(--text);
  font-size: 2.2rem;
  line-height: 1;
}

.score-label {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.rating {
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--soft);
  color: var(--accent-dark);
  font-weight: 750;
}

.report-section {
  margin-top: 18px;
}

.report-section h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 1rem;
}

.report-section p {
  margin: 0 0 10px;
}

.report-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-section li {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: #fff;
}

.report-section li strong,
.report-section li span {
  display: block;
}

.report-section li strong {
  color: var(--text);
  margin-bottom: 3px;
}

@media (max-width: 680px) {
  .page {
    width: min(100% - 20px, 980px);
    padding: 24px 0;
  }

  .tool {
    padding: 18px;
  }

  .input-row {
    grid-template-columns: 1fr;
  }

  button {
    width: 100%;
  }
}
