:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #18332f;
  background: #f5f7f3;
  font-synthesis: none;
  --green: #196a50;
  --border: #dbe3da;
  --muted: #66776d;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  max-width: 1200px;
  margin: auto;
  padding: 28px 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.wordmark {
  font-size: 26px;
  font-weight: 750;
  letter-spacing: -1.2px;
  text-decoration: none;
  color: inherit;
}
.mark {
  color: var(--green);
  margin-left: 5px;
}
.environment,
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--muted);
}
main {
  max-width: 1000px;
  margin: auto;
  padding: 48px 32px 22px;
}
.intro {
  max-width: 740px;
  margin-bottom: 30px;
}
.eyebrow {
  color: var(--green);
}
h1 {
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -2px;
  line-height: 1.08;
  margin: 18px 0;
}
h1 span {
  color: #809084;
}
.lede {
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 610px;
}
.workspace {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 35px #18332f06;
}
form {
  padding: 26px;
}
form > label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 12px;
}
#client {
  width: 100%;
  max-width: 100%;
  font-size: 15px;
}
#scope-note {
  margin: 10px 0 24px;
}
.client-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.client-label label {
  font-size: 14px;
  font-weight: 650;
}
#selection-count {
  font-size: 11px;
  color: var(--muted);
  background: #edf2e9;
  border-radius: 20px;
  padding: 4px 9px;
}
.client-picker .ts-wrapper {
  font: inherit;
}
.client-picker .ts-control {
  min-height: 58px;
  padding: 12px 36px 12px 13px !important;
  border: 1px solid #cddace;
  border-radius: 10px;
  background: #fafcf8 !important;
  box-shadow: none;
  gap: 7px;
  align-items: center;
}
.client-picker .ts-wrapper.focus .ts-control {
  border-color: #4d9775;
  box-shadow: 0 0 0 3px #196a5017;
}
.client-picker .ts-control input {
  font: inherit;
  font-size: 14px;
  color: #18332f;
  min-width: 180px;
  margin: 3px 0 !important;
}
.client-picker .ts-control input::placeholder {
  color: #7a8d80;
}
.client-picker .ts-wrapper.multi .ts-control > .item {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  background: #e4efe4;
  background-image: none;
  color: #18553e;
  border: 1px solid #cfdfce;
  border-radius: 7px;
  box-shadow: none;
  text-shadow: none;
  padding: 6px 9px;
  margin: 0;
  font-size: 13px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.client-picker .ts-wrapper.plugin-remove_button .item .remove {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  color: #46745a;
  border-left: 1px solid #bed3bd;
  padding: 0;
  margin-left: 9px;
  font-size: 17px;
  text-decoration: none;
}
.client-picker .ts-wrapper.plugin-remove_button .item .remove:hover {
  background: transparent;
  color: #122e1f;
}
.client-picker .ts-dropdown {
  border: 1px solid #d5e0d2;
  border-radius: 12px;
  box-shadow: 0 12px 36px #18332f20;
  margin-top: 7px;
  padding: 6px;
  overflow: hidden;
  background: white;
}
.client-picker .ts-dropdown-content {
  max-height: 295px;
}
.client-picker .ts-dropdown .client-option {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border-radius: 7px;
  color: #18332f;
}
.client-picker .ts-dropdown .active {
  background: #edf4e9;
  color: #18332f;
}
.client-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #eef2e9;
  color: #55755a;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.5px;
}
.client-option-detail {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.client-option-name {
  font-size: 14px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.client-option-meta {
  font-size: 11px;
  color: #73816f;
}
.client-picker .ts-dropdown .highlight {
  background: #d6e8cc;
  border-radius: 2px;
}
.client-picker .no-results {
  padding: 16px;
  color: var(--muted);
  font-size: 13px;
}
.client-picker .clear-button {
  color: #688270;
  font-size: 21px;
  right: 12px !important;
  width: 24px;
  height: 24px;
  padding: 0;
  line-height: 1;
}
.client-picker .clear-button:focus-visible {
  opacity: 1;
}
.client-picker .ts-wrapper.disabled {
  opacity: 0.65;
}
textarea {
  display: block;
  width: 100%;
  resize: vertical;
  min-height: 100px;
  font: inherit;
  font-size: 17px;
  line-height: 1.6;
  color: inherit;
  background: #fafbf8;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px;
}
textarea::placeholder {
  color: #849188;
}
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8dc5a9;
  outline-offset: 3px;
}
.controls {
  display: flex;
  align-items: end;
  gap: 16px;
  margin-top: 18px;
}
.field label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 7px;
}
select {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: white;
  color: inherit;
  padding: 10px;
  font: inherit;
  font-size: 13px;
}
button {
  cursor: pointer;
  font: inherit;
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  background: var(--green);
  color: white;
  transition: background 0.15s;
}
button:hover {
  background: #12543e;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
#submit {
  margin-left: auto;
  min-height: 40px;
}
#submit span {
  margin-left: 20px;
}
#cancel {
  background: #e8eee7;
  color: #294c3b;
}
.connection {
  border-top: 1px solid var(--border);
  padding: 13px 26px;
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
  background: #b7bfb4;
  flex-shrink: 0;
}
.dot.ready {
  background: #2e8a59;
}
.dot.error {
  background: #b46f30;
}
#refresh {
  margin-left: auto;
  padding: 3px 0;
  color: var(--green);
  background: transparent;
  font-size: 12px;
}
#feedback {
  font-size: 14px;
  line-height: 1.6;
  min-height: 22px;
  margin: 18px 0;
  color: var(--green);
}
#feedback.error {
  color: #a23830;
}
.empty {
  text-align: center;
  padding: 20px 0 55px;
  color: var(--muted);
}
.document-icon {
  display: inline-grid;
  place-items: center;
  border: 1px solid #cdd8ca;
  border-radius: 10px;
  width: 42px;
  height: 49px;
  font-size: 30px;
  color: #8b9c89;
  background: #edf1e9;
}
.empty h2 {
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.3px;
  color: #4c6456;
  margin: 16px 0 8px;
}
.empty p {
  font-size: 13px;
  line-height: 1.7;
  margin: 0;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 12px;
}
.section-heading h2 {
  font-size: 20px;
  letter-spacing: -0.5px;
  margin: 0;
}
.section-heading span {
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
}
.answer {
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  background: #eaf0e6;
  padding: 24px;
  border-radius: 12px;
}
.answer a {
  color: var(--green);
  font-weight: 700;
}
.muted {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.source {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-top: 12px;
  scroll-margin-top: 20px;
}
.source:target {
  border-color: var(--green);
}
.source-head {
  display: flex;
  align-items: start;
  gap: 12px;
}
.source-number {
  font-size: 12px;
  display: grid;
  place-items: center;
  background: #eef3ea;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.source a {
  font-size: 13px;
  color: var(--green);
  overflow-wrap: anywhere;
}
.source-meta {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0;
}
.source pre {
  font: inherit;
  font-size: 14px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #354d40;
  margin: 16px 0 0;
}
.source details summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--green);
  margin-top: 12px;
}
footer {
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: #7b8a7f;
  font-size: 10px;
  padding-top: 20px;
  margin-top: 26px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 650px) {
  header {
    padding: 20px;
  }
  .environment {
    font-size: 8px;
    letter-spacing: 1px;
  }
  main {
    padding: 30px 18px;
  }
  .controls {
    flex-wrap: wrap;
    gap: 12px;
  }
  form {
    padding: 18px;
  }
  #submit {
    margin-left: 0;
    flex: 1;
  }
  .connection {
    padding: 12px 18px;
    font-size: 11px;
  }
  footer {
    flex-direction: column;
  }
  .section-heading span {
    max-width: 45%;
    text-align: right;
  }
}

.answer > :first-child {
  margin-top: 0;
}
.answer > :last-child {
  margin-bottom: 0;
}
.answer p {
  margin: 0 0 1em;
}
.answer h1,
.answer h2,
.answer h3,
.answer h4,
.answer h5,
.answer h6 {
  font-size: 1.12em;
  line-height: 1.35;
  letter-spacing: -0.3px;
  margin: 1.4em 0 0.65em;
}
.answer ul,
.answer ol {
  padding-left: 1.5em;
  margin: 0.6em 0 1.2em;
}
.answer li {
  padding-left: 0.2em;
  margin: 0.4em 0;
}
.answer li > p {
  margin: 0.35em 0;
}
.answer li ul,
.answer li ol {
  margin: 0.3em 0;
}
.answer strong {
  font-weight: 650;
}
.answer .citation {
  font-size: 0.9em;
  white-space: nowrap;
}
.answer blockquote {
  margin: 1em 0;
  border-left: 3px solid #96ad96;
  padding-left: 1em;
  color: #52634e;
}
.answer code {
  background: #dce6d8;
  padding: 0.12em 0.3em;
  border-radius: 4px;
  font-size: 0.88em;
}
.answer pre {
  white-space: pre;
  overflow-x: auto;
  background: #dce6d8;
  padding: 1em;
  border-radius: 8px;
  line-height: 1.5;
}
.answer pre code {
  padding: 0;
}
.answer table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
  margin: 1em 0;
  font-size: 0.9em;
}
.answer th,
.answer td {
  text-align: left;
  border: 1px solid #c6d5bf;
  padding: 0.55em 0.8em;
}
.answer th {
  background: #dce6d8;
  font-weight: 650;
}
.answer hr {
  border: 0;
  border-top: 1px solid #c6d5bf;
  margin: 1.5em 0;
}
