/* SPDX-License-Identifier: AGPL-3.0-or-later */
:root {
  color-scheme: light;
  --paper: #f5f6f2;
  --ink: #202725;
  --muted: #737a73;
  --border: #dfe3d9;
  --green: #c4ed98;
  --deep: #253729;
  --mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #74a552;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #8bb76b;
  outline-offset: 1px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 10;
  background: var(--green);
  padding: 12px;
}
.skip-link:focus {
  top: 10px;
}
.sidebar {
  width: 246px;
  height: 100dvh;
  position: fixed;
  inset: 0 auto 0 0;
  background: #202725;
  color: #d8ddd4;
  padding: 32px 23px;
  display: flex;
  flex-direction: column;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 11px;
  text-decoration: none;
  align-items: center;
}
.brand > span {
  font-size: 24px;
  letter-spacing: 1.5px;
  font-weight: 750;
  line-height: 1.2;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.6px;
  color: #929c93;
  margin-top: 4px;
}
.edition {
  margin: 30px 0 47px;
  border: 1px solid #424c42;
  align-self: flex-start;
  border-radius: 5px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b4c8a4;
  font: 9px var(--mono);
  letter-spacing: 1px;
}
.edition span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}
.nav-label {
  font: 9px var(--mono);
  letter-spacing: 1.6px;
  color: #8d988e;
  margin: 0 12px 16px;
}
.nav-item {
  width: 100%;
  border: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  margin: 5px 0;
  border-radius: 6px;
  background: transparent;
  color: #aeb8ad;
  text-align: left;
  font-size: 13px;
}
.nav-item > span:first-child {
  font-size: 18px;
  width: 22px;
  text-align: center;
  font-weight: 400;
}
.nav-item[aria-current] {
  background: var(--green);
  color: #233022;
  font-weight: 650;
}
.nav-item:hover:not([aria-current]) {
  background: #303b33;
  color: white;
}
.nav-arrow {
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
}
.local-note {
  border: 1px solid #414d42;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 23px;
}
.local-icon {
  display: block;
  color: var(--green);
  font-size: 24px;
  margin-bottom: 13px;
}
.local-note strong {
  font-size: 12px;
  font-weight: 500;
  color: #e7eee2;
}
.local-note p {
  font-size: 11px;
  line-height: 1.7;
  margin: 6px 0 0;
  color: #9ba899;
}
.sidebar-bottom > a {
  display: flex;
  justify-content: space-between;
  text-decoration: none;
  font-size: 11px;
  margin: 16px 4px;
  color: #b9c2b6;
}
.sidebar-bottom > a:hover {
  color: var(--green);
}
.sidebar-version {
  font: 8px var(--mono);
  letter-spacing: 0.8px;
  color: #81907f;
  margin: 28px 4px 0;
}
main {
  margin-left: 246px;
}
.topbar {
  height: 78px;
  border-bottom: 1px solid var(--border);
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.topbar > span:first-child {
  font: 9px var(--mono);
  letter-spacing: 1.8px;
  color: #7f877b;
}
.engine-badge {
  background: #e9eddf;
  border: 1px solid #d9e1ce;
  border-radius: 20px;
  padding: 7px 11px;
  display: flex;
  gap: 7px;
  align-items: center;
  font: 10px var(--mono);
  white-space: nowrap;
}
.engine-badge i {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #9a9a68;
}
.engine-badge[data-ready="true"] i {
  background: #5f8640;
}
.engine-badge[data-ready="false"] {
  background: #f6e2dd;
  color: #9d3623;
}
.workspace {
  max-width: 1500px;
  margin: auto;
  padding: 42px 42px 25px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.eyebrow {
  font: 10px var(--mono);
  letter-spacing: 1.5px;
  color: #7a8770;
  margin: 0 0 13px;
}
h1 {
  font-size: clamp(27px, 2.5vw, 40px);
  font-weight: 550;
  letter-spacing: -1.6px;
  margin: 0 0 12px;
  line-height: 1.2;
}
.page-heading p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.heading-symbol {
  font-size: 65px;
  color: #859777;
  margin-left: 20px;
  line-height: 1;
}
.stats {
  display: flex;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
  margin-bottom: 30px;
  align-items: center;
  gap: 30px;
}
.stats > div:not(.stats-note) {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 28px;
  border-right: 1px solid var(--border);
}
.stats strong {
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -1px;
}
.stats > div > span {
  font-size: 10px;
  color: #7a8178;
  line-height: 1.5;
  max-width: 76px;
}
.stats .stats-note {
  font: 10px var(--mono);
  color: #869080;
  line-height: 1.6;
  margin-left: auto;
  max-width: 175px;
  display: flex;
  gap: 12px;
}
.stats-note > span {
  font-size: 20px !important;
}
.workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 20px;
}
.form-panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 26px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 25px;
}
.section-heading h2 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.3px;
}
.small-badge {
  font: 9px var(--mono);
  color: #728366;
  background: #f1f5eb;
  border: 1px solid #e1e9d9;
  border-radius: 4px;
  padding: 5px 7px;
  white-space: nowrap;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 21px;
  min-width: 0;
}
label {
  font-size: 11px;
  font-weight: 550;
}
.label-note {
  font: 8px var(--mono);
  color: #98a08f;
  margin-left: 6px;
}
input:not([type="checkbox"]),
select,
textarea {
  width: 100%;
  border: 1px solid #dce1d5;
  border-radius: 5px;
  background: #fff;
  padding: 12px;
  color: #30382d;
  font-size: 12px;
  min-height: 42px;
}
select {
  padding-right: 25px;
  text-overflow: ellipsis;
}
input[type="number"] {
  font-family: var(--mono);
}
textarea {
  resize: vertical;
  line-height: 1.7;
  font-family: var(--mono);
}
textarea::placeholder,
input::placeholder {
  color: #959d8d;
}
input:disabled,
select:disabled,
textarea:disabled {
  background: #f4f4f0;
  color: #8a9084;
}
.hint {
  font-size: 10px;
  font-weight: 400;
  color: #8b9383;
  line-height: 1.6;
  margin: 0;
}
.field > .hint {
  margin-top: -1px;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
details {
  border-top: 1px solid #e6e9df;
  border-bottom: 1px solid #e6e9df;
  margin: 2px 0 19px;
}
summary {
  padding: 15px 0;
  list-style: none;
  font-size: 11px;
  color: #5e6857;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
summary::-webkit-details-marker {
  display: none;
}
summary > span {
  font-size: 16px;
  font-weight: 300;
}
details[open] summary > span {
  transform: rotate(45deg);
}
.advanced-content {
  padding: 4px 0 17px;
}
.advanced-content .field {
  margin-bottom: 8px;
}
.advanced-content > .check {
  margin-top: 16px;
}
.check {
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #727d68;
  cursor: pointer;
  line-height: 1.4;
}
.check input {
  accent-color: #668e44;
  width: 12px;
  height: 12px;
  margin: 0;
  flex-shrink: 0;
}
.form-options {
  margin-bottom: 18px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: var(--green);
  border: 1px solid #b6df88;
  color: #253020;
  border-radius: 5px;
  padding: 14px 17px;
  font-size: 12px;
  font-weight: 600;
  min-height: 46px;
  flex: 1;
}
.primary:hover:enabled {
  background: #b6e783;
}
.primary > span:last-child {
  font-size: 18px;
  font-weight: 400;
}
.actions {
  display: flex;
  gap: 10px;
}
.secondary {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 12px;
  font-size: 12px;
}
.form-footnote {
  color: #929a8b;
  font-size: 9px;
  line-height: 1.6;
  margin: 12px 0 0;
}
.error-message {
  background: #fff0e9;
  color: #a43e28;
  border: 1px solid #e7bfae;
  padding: 12px;
  margin-bottom: 15px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 5px;
}
.output-panel {
  background: #222b25;
  color: #e6edde;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 485px;
}
.output-header {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border-bottom: 1px solid #3c453c;
  gap: 10px;
}
.output-header h2 {
  font-size: 12px;
  font-weight: 500;
  margin: 0;
  display: flex;
  gap: 8px;
}
.output-header h2 span {
  font-family: var(--mono);
  color: #abbf98;
}
.output-header > span {
  font: 8px var(--mono);
  letter-spacing: 0.7px;
  color: #9ea995;
}
.empty-output {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
  text-align: center;
}
.empty-output svg {
  width: 64px;
  stroke: #b9ccaa;
  stroke-width: 1.3;
  fill: none;
  margin-bottom: 20px;
}
.empty-output h3 {
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 10px;
}
.empty-output p {
  font-size: 11px;
  color: #919f89;
  line-height: 1.8;
  margin: 0;
}
.empty-output > span {
  font: 7px var(--mono);
  letter-spacing: 1px;
  color: #75866b;
  margin-top: 38px;
}
.output-footer {
  margin-top: auto;
  border-top: 1px solid #3c453c;
  padding: 15px 19px;
  display: flex;
  flex-wrap: wrap;
  gap: 17px;
  justify-content: space-between;
  align-items: center;
}
.output-format {
  display: flex;
  gap: 12px;
}
.output-format .check {
  color: #9eae95;
  font: 9px var(--mono);
}
.output-actions {
  display: flex;
  gap: 9px;
}
.output-actions button {
  border: 1px solid #506047;
  color: #c1d0b6;
  background: transparent;
  font: 9px var(--mono);
  border-radius: 4px;
  padding: 8px;
}
.output-actions button:hover:enabled {
  background: #374b2d;
}
.output-actions button > span {
  margin-left: 7px;
}
#result-content {
  padding: 20px;
  min-width: 0;
}
.result-summary {
  font: 10px var(--mono);
  color: #b0c79e;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 17px;
  line-height: 1.6;
}
.text-button {
  background: transparent;
  border: 0;
  padding: 5px;
  color: #9eae92;
  font: 9px var(--mono);
}
.results {
  max-height: 480px;
  overflow: auto;
  scrollbar-color: #65735c transparent;
}
.result {
  padding: 16px 12px;
  background: #2c382d;
  border: 1px solid #44563a;
  border-radius: 5px;
  margin-bottom: 12px;
  min-width: 0;
}
.result-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 13px;
}
.result-label {
  font: 8px var(--mono);
  color: #9baf8a;
  line-height: 1.6;
}
.copy-one {
  border: 0;
  padding: 3px;
  background: transparent;
  color: #b9cdab;
  font: 10px var(--mono);
}
.key-value {
  font: clamp(10px, 1.05vw, 16px) var(--mono);
  color: #dcf9bf;
  line-height: 1.8;
  overflow-wrap: anywhere;
  user-select: all;
}
.result-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #94a785;
  font: 9px var(--mono);
  line-height: 1.7;
  margin-top: 12px;
}
.validity {
  margin: 0 0 13px;
  font-size: 12px;
  color: #cbf5a7;
}
.invalid {
  color: #ffc6ac;
}
.output-error {
  font-size: 12px;
  color: #ffbb9c;
  line-height: 1.7;
  padding: 14px;
  border: 1px solid #80503b;
  border-radius: 5px;
}
.output-panel details {
  border-color: #45503e;
  margin-top: 20px;
}
.output-panel summary {
  color: #a9bf98;
  font: 10px var(--mono);
}
pre {
  font: 9px/1.7 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #a4b695;
  max-height: 250px;
  overflow: auto;
}
.info-strip {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-top: 27px;
  padding: 21px 0;
}
.info-strip > div {
  padding: 0 23px;
  border-right: 1px solid var(--border);
  position: relative;
}
.info-strip > div:last-child {
  border: 0;
}
.info-number {
  font: 8px var(--mono);
  color: #8c9b7e;
  display: block;
  margin-bottom: 9px;
}
.info-strip h3 {
  font-size: 11px;
  font-weight: 550;
  margin: 0 0 8px;
}
.info-strip p {
  font-size: 10px;
  color: #8a9380;
  line-height: 1.7;
  margin: 0;
  max-width: 245px;
}
.inline-button {
  font: inherit;
  padding: 0;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: #5b7350;
}
.inline-button:disabled {
  opacity: 0.5;
}
.info-strip .hint {
  font-size: 8px;
  display: block;
  margin-top: 7px;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0 12px;
  font-size: 9px;
  color: #939b8b;
  line-height: 1.6;
}
.page-footer a {
  text-decoration: none;
}
.page-footer a:hover {
  text-decoration: underline;
}
.page-footer > span:last-child {
  display: flex;
  gap: 9px;
  white-space: nowrap;
}
.research-note {
  font-size: 9px;
  line-height: 1.8;
  color: #959d8d;
  margin: 6px 0 0;
  max-width: 930px;
}
.catalog-panel {
  background: white;
  border: 1px solid var(--border);
  padding: 25px;
  border-radius: 9px;
}
.catalog-toolbar {
  display: flex;
  gap: 15px;
}
.catalog-toolbar .field {
  flex: 1;
}
.catalog-toolbar > select {
  width: 190px;
  align-self: flex-start;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  margin-top: 15px;
}
th {
  color: #87917d;
  font: 9px var(--mono);
  padding: 13px 10px;
  background: #f4f6ef;
}
td {
  padding: 15px 10px;
  border-bottom: 1px solid #e8ecdf;
  line-height: 1.6;
}
td:nth-child(2) {
  font: 9px var(--mono);
  white-space: nowrap;
}
td:nth-child(3) {
  min-width: 100px;
}
td .inline-button {
  font-size: 10px;
  white-space: nowrap;
}
.profile-chip {
  font: 9px var(--mono);
  display: inline-block;
  padding: 3px 5px;
  background: #f0f5e8;
  border: 1px solid #dfe7d4;
  border-radius: 3px;
  margin: 2px;
  color: #718662;
}
.catalog-note {
  color: #8c9582;
  font-size: 10px;
  line-height: 1.8;
  margin: 20px 0 0;
}
body.busy .primary {
  background: #e1efd4;
}
noscript {
  position: fixed;
  inset: 20% 20% auto;
  background: white;
  border: 2px solid #344b25;
  padding: 30px;
  z-index: 20;
}
@media (min-width: 1550px) {
  .workspace {
    padding-top: 50px;
  }
  .workbench {
    gap: 26px;
  }
  .form-panel {
    padding: 30px;
  }
  .output-panel {
    min-height: 520px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 210px;
    padding: 27px 16px;
  }
  main {
    margin-left: 210px;
  }
  .workspace {
    padding: 32px 26px 24px;
  }
  .topbar {
    padding: 0 26px;
  }
  .stats {
    gap: 20px;
  }
  .stats > div:not(.stats-note) {
    padding-right: 18px;
  }
  .stats .stats-note {
    display: none;
  }
  .form-panel {
    padding: 21px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .section-heading {
    flex-wrap: wrap;
  }
  .key-value {
    font-size: 12px;
  }
  .output-footer {
    gap: 15px;
  }
  .info-strip > div {
    padding: 0 17px;
  }
}
@media (max-width: 900px) {
  .workbench {
    grid-template-columns: 1fr;
  }
  .output-panel {
    min-height: 340px;
  }
  .empty-output {
    padding: 40px 20px;
  }
  .key-value {
    font-size: 16px;
  }
  .output-footer {
    flex-wrap: nowrap;
  }
  .heading-symbol {
    font-size: 50px;
  }
  .stats > div:not(.stats-note) {
    gap: 7px;
    padding-right: 16px;
  }
  .stats {
    gap: 16px;
  }
  .stats > div:last-of-type {
    border: 0;
  }
  .stats strong {
    font-size: 21px;
  }
  .info-strip {
    grid-template-columns: 1fr;
  }
  .info-strip > div {
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 16px 22px;
  }
  .info-strip {
    padding: 0;
  }
  .info-strip p {
    max-width: none;
  }
  .info-number {
    float: left;
    margin-right: 13px;
    margin-top: 2px;
  }
  .page-footer {
    flex-direction: column;
    gap: 8px;
  }
  .local-note {
    padding: 13px;
  }
  .topbar > span:first-child {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
}
@media (max-width: 640px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 20px 20px 14px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  .brand > span {
    font-size: 20px;
  }
  .brand small {
    font-size: 6px;
  }
  .edition {
    position: absolute;
    right: 20px;
    top: 18px;
    margin: 0;
    font-size: 7px;
    padding: 7px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    gap: 5px;
    margin-top: 20px;
  }
  .nav-item {
    margin: 0;
    flex: 1;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    font-size: 9px;
    padding: 10px 3px;
    gap: 6px;
  }
  .nav-item > span:first-child {
    font-size: 17px;
  }
  .nav-arrow {
    display: none;
  }
  main {
    margin-left: 0;
  }
  .topbar {
    height: 52px;
    padding: 0 20px;
  }
  .topbar > span:first-child {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .engine-badge {
    font-size: 8px;
    padding: 6px 8px;
  }
  .workspace {
    padding: 27px 18px;
  }
  .page-heading {
    margin-bottom: 24px;
  }
  h1 {
    font-size: 28px;
    letter-spacing: -1px;
    max-width: 280px;
  }
  .page-heading p:last-child {
    font-size: 11px;
    max-width: 250px;
  }
  .heading-symbol {
    font-size: 41px;
    margin-left: 8px;
  }
  .eyebrow {
    font-size: 8px;
  }
  .stats {
    padding: 17px 0;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: space-between;
  }
  .stats > div:not(.stats-note) {
    gap: 7px;
    padding-right: 10px;
    flex: 1;
  }
  .stats > div:nth-child(3) {
    border: 0;
    padding-right: 0;
  }
  .stats strong {
    font-size: 21px;
  }
  .stats > div > span {
    font-size: 8px;
  }
  .form-panel {
    padding: 21px;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .two-columns {
    gap: 12px;
  }
  .workbench {
    gap: 18px;
  }
  .output-header {
    padding: 0 18px;
  }
  .output-header > span {
    font-size: 7px;
  }
  .output-footer {
    padding: 15px;
    gap: 12px;
    flex-wrap: wrap;
  }
  .key-value {
    font-size: 12px;
  }
  .info-strip {
    margin-top: 22px;
  }
  .catalog-panel {
    padding: 16px;
  }
  .catalog-toolbar {
    flex-direction: column;
    gap: 0;
  }
  .catalog-toolbar > select {
    width: 100%;
    margin-bottom: 17px;
  }
  td,
  th {
    padding: 12px 8px;
  }
  td {
    font-size: 10px;
  }
  .catalog-note {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background 0.15s,
      color 0.15s;
  }
  .result {
    animation: appear 0.2s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(3px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
