:root {
  --ink: #182f2b;
  --muted: #64756f;
  --line: #dde4dc;
  --green: #285d49;
  --paper: #fff;
  --bg: #f3f5ef;
  --red: #a53428;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 4%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
  color: var(--ink);
}
.brand-icon {
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  width: 34px;
  height: 34px;
  border-radius: 8px;
}
.brand-sub {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  border-left: 1px solid var(--line);
  padding-left: 12px;
}
.user {
  display: flex;
  gap: 16px;
  align-items: center;
  font-size: 13px;
}
.user form {
  margin: 0;
}
nav {
  display: flex;
  gap: 32px;
  padding: 16px 4%;
  border-bottom: 1px solid var(--line);
  background: white;
}
nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
}
nav a:hover {
  color: var(--green);
}
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 36px 4% 70px;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin: 6px 0 12px;
  font-weight: 650;
}
h2 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 18px;
}
h3 {
  font-size: 16px;
  margin: 10px 0;
}
p {
  margin: 10px 0 18px;
}
a {
  color: var(--green);
  text-underline-offset: 3px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 2px 3px #182f2b03;
}
.heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 10px 0 24px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--green);
  margin: 0 0 8px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.strong {
  font-weight: 650;
}
.badge,
.env {
  display: inline-block;
  background: #eaf0e8;
  border: 1px solid #dae4d7;
  border-radius: 6px;
  font-size: 12px;
  padding: 3px 9px;
  white-space: nowrap;
}
.env {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 10px;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(270px, 1fr);
  gap: 24px;
}
.columns > *,
aside {
  min-width: 0;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 15px;
}
input,
select,
textarea {
  display: block;
  width: 100%;
  border: 1px solid #cbd5cd;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 400;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #86ad91;
  outline-offset: 1px;
}
textarea {
  resize: vertical;
}
button,
.button {
  display: inline-block;
  border: 1px solid var(--green);
  background: var(--green);
  color: white;
  border-radius: 6px;
  padding: 10px 18px;
  font: 600 13px/1.5 inherit;
  text-decoration: none;
  cursor: pointer;
}
button:hover,
.button:hover {
  filter: brightness(0.95);
}
.secondary {
  background: white;
  color: var(--green);
}
.quiet {
  background: none;
  color: var(--green);
  border: 0;
  padding: 2px 0;
  font-size: 12px;
}
.danger {
  color: var(--red);
}
.danger-button {
  background: var(--red);
  border-color: var(--red);
}
.filters {
  display: flex;
  gap: 20px;
  align-items: end;
}
.filters label {
  flex: 1;
  margin: 0;
}
.filters label:first-child {
  flex: 2;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
}
th,
td {
  padding: 14px 12px;
  border-bottom: 1px solid #e7ece5;
  vertical-align: top;
}
tr:last-child td {
  border-bottom: 0;
}
.table-wrap {
  overflow: auto;
  padding: 12px 18px;
}
.empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 24px;
}
.metrics .card {
  color: var(--muted);
  font-size: 13px;
}
.metric {
  display: block;
  color: var(--ink);
  font-size: 40px;
  letter-spacing: -2px;
  font-weight: 650;
}
.notice {
  border: 1px solid #e2cd92;
  background: #fff7dd;
  padding: 22px;
  border-radius: 10px;
  margin: 20px 0;
}
details {
  margin-top: 20px;
}
summary {
  color: var(--green);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 14px;
}
article {
  border-bottom: 1px solid var(--line);
  padding: 10px 0 18px;
  margin-bottom: 16px;
}
article:last-child {
  border-bottom: 0;
}
.timeline {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}
.prewrap {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
code {
  font-size: 11px;
  overflow-wrap: anywhere;
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
}
.check input {
  width: auto;
  margin: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.auth {
  max-width: 440px;
  margin: 70px auto;
}
.auth h1 {
  font-size: 30px;
}
.auth button {
  width: 100%;
  margin: 6px 0 20px;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0;
}
footer {
  padding: 20px 4% 35px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
  border-top: 1px solid var(--line);
}
.paper {
  background: white;
  max-width: 850px;
  margin: 30px auto;
  padding: 60px;
}
.no-print {
  padding: 20px;
  display: flex;
  gap: 30px;
  align-items: center;
}
.print {
  background: #e8ece6;
}
@media (max-width: 800px) {
  .columns {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  header {
    align-items: start;
  }
  .brand-sub {
    display: none;
  }
  .user {
    flex-wrap: wrap;
    justify-content: end;
    gap: 8px;
  }
  nav {
    gap: 20px;
    overflow: auto;
    font-size: 13px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters label {
    min-width: 130px;
  }
  .heading {
    align-items: start;
  }
  h1 {
    font-size: 28px;
  }
  .card {
    padding: 20px;
  }
  .paper {
    padding: 25px;
  }
}
@media print {
  @page {
    size: letter;
    margin: 16mm;
  }
  body.print {
    background: white;
  }
  .paper {
    margin: 0;
    padding: 0;
    max-width: none;
    border: 0;
  }
  .no-print {
    display: none;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 17px;
    break-after: avoid;
  }
  p {
    orphans: 3;
    widows: 3;
  }
  .notice {
    border: 2px solid #555;
  }
  a {
    color: inherit;
  }
}

label small { display:block; font-weight:400; color:var(--muted,#52635c); font-size:0.8rem; margin:0.15rem 0 0.3rem; }
button:disabled { opacity:0.45; cursor:not-allowed; }
.signing-page { max-width:760px; margin:40px auto; }
.signing-steps { padding-left:1.4rem; line-height:1.7; margin:1.5rem 0; }
.signing-primary { max-width:900px; margin:0 auto 24px; }
.signing-primary input[readonly] { width:100%; }
.signing-secondary { max-width:900px; margin:0 auto 24px; }
@media(max-width:600px) { .signing-page { margin:16px; padding:24px; } }
