:root {
  font:
    16px/1.5 system-ui,
    sans-serif;
  color: #173236;
  background: #f4f6f3;
  --line: #dce4dd;
  --accent: #175e51;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #152c30;
  color: white;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px max(20px, calc((100vw - 1160px) / 2));
}
header a {
  color: inherit;
}
.brand {
  font-weight: 750;
  letter-spacing: 0.08em;
  margin-right: auto;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
  min-height: 44px;
  border: 1px solid #b5c6bc;
  border-radius: 10px;
  padding: 10px 14px;
  max-width: 100%;
}
button {
  cursor: pointer;
  background: white;
  color: #173236;
}
button:hover {
  background: #e7f0e9;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #c88b26;
  outline-offset: 3px;
}
main {
  max-width: 1160px;
  margin: auto;
  padding: 32px 20px 120px;
}
h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin: 8px 0 16px;
  letter-spacing: -0.035em;
}
h2 {
  font-size: 20px;
  margin: 0 0 14px;
}
h3 {
  font-size: 17px;
  margin: 0 0 8px;
}
p {
  margin: 8px 0;
}
.muted {
  color: #657971;
  font-size: 14px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.between {
  justify-content: space-between;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.tabs a {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: white;
  min-height: 44px;
}
.tabs a[aria-current="page"] {
  background: #175e51;
  color: white;
}
.badge {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 20px;
  background: #edf2ee;
}
.severity-4,
.severity-3 {
  border-left: 4px solid #b53e3e;
}
.severity-2 {
  border-left: 4px solid #bc832d;
}
.metric {
  font-size: 32px;
  font-weight: 700;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.actions a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: #edf3ee;
  border-radius: 10px;
}
#notice {
  max-width: 1160px;
  margin: auto;
  padding: 0 20px;
}
#notice:not(:empty) {
  padding: 14px 20px;
  color: #8d3026;
  background: #fff0df;
}
#bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  background: white;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
#bottom a {
  font-size: 13px;
  min-height: 48px;
  flex: 1;
  max-width: 160px;
  display: grid;
  place-items: center;
  text-align: center;
}
dialog {
  width: min(640px, calc(100% - 24px));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  max-height: 85vh;
}
dialog::backdrop {
  background: #142d35a6;
}
dialog input {
  width: 100%;
  margin: 12px 0;
}
#results a {
  display: block;
  min-height: 44px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
}
label {
  display: grid;
  gap: 6px;
  margin: 12px 0;
}
form {
  max-width: 600px;
}
textarea {
  min-height: 90px;
  width: 100%;
}
.heat {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  font-size: 12px;
}
.heat span,
.heat a {
  padding: 10px 3px;
  border-radius: 8px;
  background: #f0f2ef;
  text-align: center;
  overflow-wrap: anywhere;
}
.heat .red {
  background: #fbe6e2;
}
.heat .green {
  background: #def0df;
}
@media (max-width: 600px) {
  header {
    gap: 8px;
    padding: 12px;
  }
  .brand {
    font-size: 12px;
  }
  header > a:last-child {
    font-size: 12px;
  }
  header button {
    font-size: 12px;
    padding: 8px;
  }
  main {
    padding: 24px 14px 110px;
  }
  .card {
    padding: 16px;
  }
  .heat {
    font-size: 10px;
    gap: 3px;
  }
  #bottom {
    gap: 0;
    padding-left: 2px;
    padding-right: 2px;
  }
  #bottom a {
    font-size: 11px;
  }
  .tabs {
    gap: 5px;
  }
  .tabs a {
    font-size: 13px;
    padding: 10px;
  }
}

header > a,
main a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
#results a {
  display: flex;
  align-items: center;
}

[id^="quick-"] {
  scroll-margin-top: 90px;
}
@media (max-width: 600px) {
  .heat {
    grid-template-columns: 1fr 1fr;
    font-size: 13px;
    gap: 8px;
  }
  .heat a {
    text-align: left;
    padding: 12px;
  }
  .project-summary p {
    margin: 6px 0;
  }
  header {
    flex-wrap: wrap;
  }
}

.compact .card {padding:12px;margin-bottom:8px}.compact .card h2 {font-size:17px;margin-bottom:6px} details>summary{cursor:pointer;min-height:44px;padding:10px} details>form{display:grid;gap:8px;padding:12px}
