:root {
  color-scheme: light;
  --bg: #f8f9f6;
  --ink: #23382f;
  --muted: #69766d;
  --line: #e3e8e0;
  --accent: #407859;
  --soft: #eff4ec;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "PingFang SC",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.65;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  border: 0;
  border-radius: 9px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  display: inline-block;
}
button:hover,
.button:hover {
  filter: brightness(0.94);
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.quiet {
  background: transparent;
  color: var(--muted);
  padding: 7px 12px;
}
.danger {
  background: #fbf0e9;
  color: #914b36;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
textarea:focus-visible {
  outline: 3px solid #83ae91;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  width: 240px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 35px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.7px;
}
.brand span {
  font-size: 19px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 2px;
}
nav {
  margin-top: 65px;
  display: grid;
  gap: 9px;
}
nav a {
  display: flex;
  gap: 15px;
  border-radius: 8px;
  padding: 12px 15px;
  color: var(--muted);
}
nav a:first-child {
  background: var(--soft);
  color: var(--accent);
  font-weight: 600;
}
.sidebar-note {
  margin-top: auto;
  font-size: 12px;
  color: var(--muted);
}
.sidebar-note p {
  margin: 4px 0 0 16px;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #7c9c68;
  border-radius: 50%;
  margin-right: 6px;
}
main {
  margin-left: 240px;
  padding: 0 44px;
  max-width: 1760px;
}
header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 15px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
  font-weight: 600;
}
.account {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 36px;
  font-weight: 580;
  letter-spacing: -1.3px;
  margin: 8px 0;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.5px;
}
h2 .muted {
  font-size: 13px;
  font-weight: 400;
  margin-left: 8px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
.title-dot {
  color: #94b486;
  margin-left: 2px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
section {
  padding-top: 34px;
  scroll-margin-top: 20px;
}
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.compact {
  margin-bottom: 18px;
}
.connection {
  padding: 11px 16px;
  background: var(--soft);
  border: 1px solid #e2eadc;
  border-radius: 8px;
  font-size: 12px;
  color: #56764e;
  margin-bottom: 24px;
}
.connection.error {
  background: #fff4e8;
  border-color: #efdfc9;
  color: #93633a;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 24px 0;
  margin-bottom: 35px;
}
.stats article {
  padding: 0 26px;
  border-right: 1px solid var(--line);
}
.stats article:last-child {
  border: 0;
}
.stats span,
.stats small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.stats strong {
  display: block;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -1px;
}
.stats .time {
  font-size: 22px;
  line-height: 2.18;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 23px;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}
.card h3 {
  overflow-wrap: anywhere;
}
.badge {
  display: inline-block;
  border-radius: 5px;
  background: var(--soft);
  padding: 3px 8px;
  font-size: 10px;
  color: #5b7d50;
  white-space: nowrap;
}
.badge.attention {
  background: #fff1d8;
  color: #916b27;
}
.badge.stale {
  background: #f1f0ec;
  color: #716b60;
}
.card-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 15px;
  overflow-wrap: anywhere;
}
.snippet {
  border-top: 1px solid #edf0ea;
  padding-top: 13px;
  margin-top: 13px;
}
.snippet strong {
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
}
.snippet p,
.memory-text {
  margin-top: 5px;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.snippet button,
.evidence-link {
  padding: 5px 0;
  background: transparent;
  color: var(--accent);
  font-size: 11px;
  font-weight: 500;
}
.empty {
  grid-column: 1/-1;
  border: 1px dashed #d8dfd2;
  border-radius: 12px;
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  background: #fcfdfb;
}
#search {
  margin-bottom: 20px;
}
label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 7px;
}
.search-row {
  display: flex;
  gap: 10px;
}
input,
textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  color: var(--ink);
  min-width: 0;
}
input {
  flex: 1;
}
.setup {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 25px;
  gap: 27px;
}
.setup p {
  color: var(--muted);
  font-size: 12px;
  margin: 10px 0 15px;
}
.setup h3 {
  margin-top: 10px;
}
.step {
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  width: 27px;
  height: 27px;
  border-radius: 50%;
  font-size: 12px;
  color: var(--accent);
}
.download-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  margin-bottom: 15px;
}
textarea {
  width: 100%;
  font-family: monospace;
  font-size: 11px;
  resize: vertical;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 12px;
  line-height: 1.8;
}
#pair-command {
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
}
.coverage {
  margin: 25px 0;
  color: var(--muted);
  font-size: 12px;
}
.coverage summary {
  cursor: pointer;
}
.coverage ul {
  padding-left: 18px;
}
.coverage p {
  margin-top: 10px;
}
footer {
  border-top: 1px solid var(--line);
  padding: 23px 0;
  color: #788574;
  font-size: 9px;
  letter-spacing: 2px;
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}
footer span {
  letter-spacing: 0;
  font-size: 11px;
}
.welcome {
  padding-top: 72px;
}
.welcome h1 {
  font-size: 48px;
  line-height: 1.45;
  margin: 18px 0;
  letter-spacing: -1.8px;
}
.welcome h1 span {
  color: #718d68;
}
.welcome > p {
  color: var(--muted);
  line-height: 2;
}
.welcome .button {
  margin: 26px 0 12px;
  padding: 13px 22px;
}
.button span {
  margin-left: 24px;
}
.welcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 65px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}
.welcome-grid span {
  color: #617c56;
  font-size: 11px;
}
.welcome-grid h3 {
  margin: 12px 0 10px;
}
.welcome-grid p {
  color: var(--muted);
  font-size: 13px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 25px;
  width: min(850px, 94vw);
  max-height: 85vh;
  color: var(--ink);
}
dialog::backdrop {
  background: #122b2055;
}
#evidence-text {
  padding: 18px;
  background: var(--soft);
  max-height: 50vh;
  overflow: auto;
}
#gaps {
  overflow-wrap: anywhere;
}
#global-error {
  color: #914b36;
  margin-top: 16px;
}
@media (min-width: 1600px) {
  main {
    padding: 0 64px;
  }
  .cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 18px;
  }
  .brand span {
    font-size: 16px;
  }
  main {
    margin-left: 200px;
    padding: 0 25px;
  }
  .setup {
    grid-template-columns: 1fr;
  }
  .stats article {
    padding: 0 14px;
  }
  .stats small {
    font-size: 10px;
  }
}
@media (max-width: 720px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand small {
    display: none;
  }
  nav {
    display: flex;
    margin-top: 15px;
    gap: 4px;
  }
  nav a {
    padding: 8px 12px;
    font-size: 12px;
  }
  .sidebar-note {
    display: none;
  }
  main {
    margin: 0;
    padding: 0 18px;
  }
  header {
    height: 60px;
  }
  .eyebrow {
    letter-spacing: 1px;
    font-size: 9px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .stats article:nth-child(2) {
    border: 0;
  }
  .cards,
  .welcome-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    gap: 10px;
  }
  .compact {
    align-items: flex-start;
  }
  .compact > span {
    font-size: 10px;
  }
  h1 {
    font-size: 30px;
  }
  .welcome {
    padding-top: 40px;
  }
  .welcome h1 {
    font-size: 37px;
  }
  .welcome-grid {
    gap: 24px;
    margin-top: 35px;
  }
  footer span {
    max-width: 145px;
    text-align: right;
  }
  .search-row {
    flex-wrap: wrap;
  }
  .search-row input {
    flex-basis: 100%;
  }
  .setup {
    padding: 20px;
  }
  .account {
    gap: 3px;
  }
}
