/* src/style.css */
@font-face {
  font-family: Aeonik;
  src: url(/assets/Aeonik-Light.woff2) format("woff2");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: Aeonik;
  src: url(/assets/Aeonik-Regular.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Aeonik;
  src: url(/assets/Aeonik-Medium.woff2) format("woff2");
  font-weight: 500 700;
  font-display: swap;
}
:root {
  font-family:
    Aeonik,
    system-ui,
    sans-serif;
  color: #1f2927;
  background: #fff;
  font-synthesis: none;
  line-height: 1.35;
  --accent:#318f4e;
  --muted:#67716d;
  --border:#e2e7e3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
main {
  max-width: 650px;
  margin: auto;
  padding: 12px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 22px;
  line-height: 1.15;
  font-weight: 500;
  color: var(--accent);
  margin: 12px 0 10px;
}
h2 {
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}
h3 {
  font-size: 13px;
  line-height: 1.25;
  font-weight: 500;
}
p {
  font-size: 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
p + p {
  margin-top: 5px;
}
section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
button,
input {
  font: inherit;
}
button {
  width: 100%;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
button:hover:enabled {
  filter: brightness(.96);
}
button:disabled {
  background: #f0f2f0;
  color: #78817b;
  border-color: var(--border);
  cursor: not-allowed;
}
button.secondary {
  background: white;
  color: var(--muted);
  border-color: var(--border);
  margin-top: 8px;
}
input {
  width: 100%;
  min-height: 30px;
  padding: 6px 8px;
  background: white;
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
}
label {
  display: block;
  font-size: 12px;
  margin: 8px 0 5px;
}
input:focus-visible,
button:focus-visible,
summary:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
ul {
  padding-left: 15px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
li + li {
  margin-top: 6px;
}
strong {
  font-weight: 500;
}
.muted,
.eyebrow {
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
[hidden] {
  display: none !important;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -.02em;
  color: #1f2927;
  margin: 4px 0 22px;
  line-height: 1.3;
}
.brand-product {
  color: var(--accent);
  font-weight: 400;
}
.overview {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.status {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.status:before {
  content: "";
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.status[data-phase=error]:before {
  background: #b04332;
}
.status[data-phase=connecting]:before,
.status[data-phase=stale]:before {
  background: #b38725;
}
.project-name {
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}
.notice {
  background: #fff8e9;
  color: #796125;
  border-radius: 4px;
  padding: 6px;
  font-size: 10px;
  margin-bottom: 8px;
}
.error {
  background: #fff5f2;
  color: #9c3629;
  border: 1px solid #efc8bf;
  border-radius: 4px;
  padding: 8px;
  margin-top: 8px;
  font-size: 12px;
}
.error p {
  font-size: 11px;
  margin: 4px 0;
}
.error code {
  font-size: 10px;
  overflow-wrap: anywhere;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.count {
  font-size: 11px;
  color: var(--muted);
}
.catalog > .muted {
  margin: 3px 0 7px;
}
.filters {
  display: flex;
  gap: 4px;
  margin: 5px 0;
}
.filters button {
  width: auto;
  min-height: 24px;
  padding: 3px 7px;
  background: white;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
}
.filters button[aria-pressed=true] {
  background: #ebf5ed;
  color: #26733e;
  font-weight: 500;
}
.module-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 170px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d2dbd3 transparent;
  padding: 2px;
}
.module-option {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: white;
  color: inherit;
  text-align: left;
  padding: 6px 7px;
  flex-shrink: 0;
}
.module-option[aria-pressed=true] {
  background: #f2f8f3;
  border-color: var(--accent);
}
.module-name {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.25;
}
.module-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.binding-inline {
  color: #7b6844;
}
.module-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.module-detail h2 {
  font-size: 14px;
  line-height: 1.3;
}
.module-detail > p {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.module-detail > .muted {
  font-size: 10px;
}
.source-state {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.inspector {
  padding: 14px 0 8px;
}
.inspector > button {
  margin: 10px 0;
}
details {
  font-size: 11px;
  color: var(--muted);
}
summary {
  cursor: pointer;
  padding: 6px 0;
  color: #46524b;
  font-weight: 400;
}
details p {
  font-size: 11px;
}
.evidence {
  padding: 5px 0;
  overflow-wrap: anywhere;
}
.evidence > p {
  white-space: pre-line;
  margin: 6px 0;
}
.evidence a {
  display: inline-block;
  margin: 5px 0;
}
.measurements article {
  padding: 9px;
  background: #f7faf7;
  border: 1px solid #dce8dd;
  border-radius: 4px;
  margin: 0 0 6px;
}
.measurements article h3 {
  font-size: 24px;
  font-weight: 500;
  margin: 4px 0;
}
.measurements details {
  margin-top: 4px;
}
.forma-panel aside {
  padding-top: 16px;
}
.forma-panel aside button {
  margin-bottom: 5px;
}
#entries button {
  margin-top: 6px;
}
#warnings {
  overflow-wrap: anywhere;
}
@media (max-width: 280px) {
  main {
    padding: 10px;
  }
  .module-list {
    max-height: 154px;
  }
}
.geometry-report {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 10px;
  max-height: 220px;
  overflow: auto;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 0;
  font-size: 11px;
  border-bottom: 1px solid var(--border);
}
.fact-row strong {
  font-weight: 500;
  text-align: right;
}
.native-rows {
  max-height: 220px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 6px;
}
.building-card,
.area-list {
  margin: 8px 0;
}
.evidence-count {
  font-size: 12px;
  font-weight: 500;
  margin: 8px 0;
}
.measurements article h3 {
  font-size: 18px;
}
.brand-mark {
  width: 20px;
  height: 20px;
  object-fit: contain;
  align-self: center;
  flex: 0 0 20px;
  margin-right: 3px;
}
.development-controls {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}
.development-badge {
  font-size: 10px;
  color: #796125;
  margin: 4px 0;
}
.criterion-error {
  color: #9c3629;
  font-size: 11px;
  margin-top: 5px;
}
.run-verdict {
  font-size: 13px;
  font-weight: 500;
  color: #26733e;
  margin: 8px 0;
}
.run-verdict[data-verdict=fail],
.run-verdict[data-verdict=not-evaluable] {
  color: #9c3629;
}
.assessment-results {
  overflow-wrap: anywhere;
}
.finding {
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}
.finding p {
  font-size: 11px;
  margin-top: 4px;
}
.module-brief {
  border-top: 1px solid var(--border);
  padding-top: 6px;
  overflow-wrap: anywhere;
}
.module-brief > summary {
  font-weight: 500;
}
.module-inputs {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.limit-field {
  margin: 10px 0;
}
.limit-field label {
  font-weight: 500;
  margin-bottom: 4px;
}
.limit-field details p {
  font-size: 11px;
}
.limit-field summary {
  font-size: 10px;
  padding: 3px 0;
}
.criterion-error:empty {
  display: none;
}
textarea {
  font: inherit;
  width: 100%;
  font-size: 12px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 7px;
  resize: vertical;
}
.draft-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.module-purpose {
  font-size: 12px;
}
.run-blocker {
  font-size: 11px;
  color: #7b6844;
}
.input-help {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
  line-height: 1.4;
}
.development-checks {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: inherit;
}
.development-checks > summary {
  font-weight: 500;
  color: #796125;
}
.development-checks > button {
  margin: 8px 0;
}
.auto-read {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  margin: 7px 0;
}
.auto-read input {
  width: 14px;
  min-height: 14px;
  height: 14px;
  accent-color: var(--accent);
}
.graph-summary,
.native-metrics {
  padding: 10px 0;
  margin-top: 10px;
  border-top: 1px solid var(--border);
}
.graph-summary > .muted,
.native-metrics > .muted {
  margin-top: 6px;
}
.module-commercial {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  overflow-wrap: anywhere;
}
.module-commercial img {
  object-fit: contain;
  vertical-align: middle;
  margin-right: 5px;
}
.module-commercial p {
  font-size: 10px;
  margin: 5px 0;
}
.catalog-explanation {
  font-size: 11px;
  color: #46524b;
  margin: 8px 0 10px;
}
.module-detail > p {
  color: #46524b;
}
.goal-requirement {
  padding: 8px 0;
}
.readiness > h3 {
  margin-top: 10px;
}
