:root {
  color-scheme: light;
  --ink: #18322e;
  --muted: #65746c;
  --paper: #f4f4ed;
  --line: #d9ded3;
  --green: #17674e;
  --acid: #d7ed87;
  --white: #fffef9;
  --orange: #a64b2d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    15px/1.6 system-ui,
    -apple-system,
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 7px 13px;
  border-radius: 6px;
  color: var(--ink);
}
button:hover {
  background: var(--acid);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #518bde;
  outline-offset: 3px;
}
header {
  height: 78px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 34px;
  background: var(--white);
  gap: 16px;
}
.brand {
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  font-size: 30px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 14px;
}
.shell {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  max-width: 1660px;
  margin: auto;
}
aside {
  padding: 32px 22px;
  border-right: 1px solid var(--line);
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 1.8px;
  color: var(--muted);
  margin: 0 0 16px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 11px;
  border-radius: 6px;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
nav a.active {
  background: var(--ink);
  color: var(--white);
}
nav b {
  font-size: 11px;
  opacity: 0.65;
}
nav span {
  margin-left: auto;
}
.aside-note {
  border-top: 1px solid var(--line);
  margin-top: 46px;
  padding: 24px 10px;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  margin-right: 5px;
}
main {
  padding: 42px 48px;
  min-height: calc(100vh - 140px);
  min-width: 0;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(32px, 3.6vw, 51px);
  font-weight: 400;
  letter-spacing: -1.5px;
  line-height: 1.13;
  margin: 0 0 20px;
  max-width: 880px;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  margin: 0 0 14px;
}
h3 {
  font-size: 16px;
  margin: 0 0 8px;
}
p {
  margin: 0 0 16px;
}
.intro {
  font-size: 17px;
  color: var(--muted);
  max-width: 790px;
}
.pill,
.tag {
  display: inline-block;
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.3px;
  background: #e5ebdf;
  color: var(--green);
}
.warn {
  background: #f6e4d7;
  color: var(--orange);
}
.pill {
  white-space: nowrap;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 28px 0;
}
.metric {
  border: 1px solid var(--line);
  padding: 20px;
  background: var(--white);
  border-radius: 8px;
}
.metric strong {
  display: block;
  font:
    34px/1.25 Georgia,
    serif;
}
.metric span {
  font-size: 12px;
  color: var(--muted);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  padding: 24px;
  margin: 22px 0;
}
.green-panel {
  background: var(--ink);
  color: var(--white);
  padding: 30px;
  border-radius: 9px;
  margin: 28px 0;
}
.green-panel p {
  color: #d5e2d6;
}
.green-panel a {
  color: var(--acid);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 25px 0;
}
.step {
  border-top: 3px solid var(--green);
  padding: 17px 12px 10px;
  text-decoration: none;
  color: var(--ink);
}
.step span {
  font-size: 11px;
  color: var(--muted);
}
.step h3 {
  margin-top: 8px;
}
.step p {
  font-size: 13px;
  color: var(--muted);
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 25px 0 18px;
}
.toolbar input {
  flex: 1;
  min-width: 200px;
}
input,
select {
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 10px 13px;
}
.small {
  font-size: 12px;
  color: var(--muted);
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 23px;
  min-width: 0;
}
.card p {
  font-size: 14px;
}
.card .meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.card .actions {
  display: flex;
  gap: 8px;
  margin-top: 15px;
  align-items: center;
  flex-wrap: wrap;
}
.card .actions button {
  font-size: 12px;
}
.rule {
  color: var(--muted);
  font-size: 13px;
}
.empty {
  padding: 40px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 650;
}
td,
th {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
code {
  font:
    12px ui-monospace,
    monospace;
  background: #e9ece2;
  padding: 2px 5px;
  border-radius: 4px;
  overflow-wrap: anywhere;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #edf0e7;
  padding: 18px;
  font:
    12px/1.6 ui-monospace,
    monospace;
  border-radius: 6px;
  max-height: 480px;
  overflow: auto;
}
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.graph {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  margin: 22px 0;
  flex-wrap: wrap;
}
.node {
  padding: 13px;
  border: 1px solid var(--green);
  background: #eef4db;
  border-radius: 7px;
  flex: 1;
  min-width: 110px;
  font-size: 13px;
  text-align: center;
}
.node.bridge {
  background: var(--ink);
  color: var(--acid);
}
.edge {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.badge-row {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.evidence {
  border-left: 3px solid #a9bd83;
  padding: 0 0 0 15px;
  margin: 18px 0;
}
blockquote {
  font-family: Georgia, serif;
  font-size: 16px;
  margin: 12px 0;
  color: #40564b;
}
.progress {
  height: 7px;
  background: var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 14px 0;
}
.progress div {
  height: 100%;
  background: var(--green);
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  max-width: 900px;
  width: calc(100% - 32px);
  max-height: 88vh;
  color: var(--ink);
  background: var(--white);
}
dialog::backdrop {
  background: #0c201dbb;
}
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.dialog-head .eyebrow {
  margin: 0;
}
details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
footer {
  border-top: 1px solid var(--line);
  padding: 18px 30px;
  color: var(--muted);
  font-size: 11px;
}
.loadmore {
  display: block;
  margin: 25px auto;
}
.status-error {
  color: var(--orange);
}
ol,
ul {
  padding-left: 23px;
}
li {
  margin: 6px 0;
}
@media (max-width: 1050px) {
  main {
    padding: 30px 24px;
  }
  .shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }
  .metrics,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .cards,
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  header {
    padding: 12px 16px;
    height: auto;
    flex-wrap: wrap;
  }
  .brand {
    font-size: 13px;
  }
  .shell {
    display: block;
  }
  aside {
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  aside .eyebrow,
  .aside-note {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
  }
  nav a {
    white-space: nowrap;
    padding: 8px 12px;
  }
  main {
    padding: 28px 18px;
  }
  h1 {
    font-size: 36px;
  }
  .metrics {
    gap: 8px;
  }
  .metric {
    padding: 14px;
  }
  .graph {
    flex-direction: column;
  }
  .edge {
    transform: rotate(90deg);
  }
  .steps {
    gap: 8px;
  }
  .pill {
    font-size: 10px;
  }
}
