:root {
  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #192b26;
  background: #f6f5ef;
  --ink: #192b26;
  --muted: #56665e;
  --line: #ccd2c8;
  --paper: #fffefa;
  --green: #175e42;
  --soft: #e6ede2;
  font-synthesis: none;
  line-height: 1.55;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
a:hover {
  text-decoration-thickness: 2px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.button {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  min-height: 46px;
  border: 1px solid var(--green);
  border-radius: 5px;
  background: var(--green);
  color: white;
  text-decoration: none;
  font-weight: 650;
}
button.secondary,
.button.secondary {
  background: transparent;
  color: var(--green);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
:focus-visible {
  outline: 3px solid #bb701a;
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: 20px;
  top: -100px;
  z-index: 10;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.wrap {
  max-width: 1224px;
  margin: auto;
  padding-inline: 40px;
}
.site-header {
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  align-items: center;
  min-height: 90px;
}
.brand {
  font-weight: 850;
  color: var(--ink);
  font-size: 21px;
  letter-spacing: -0.055em;
  text-decoration: none;
  white-space: nowrap;
}
.brand b {
  color: var(--green);
}
nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}
nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}
nav a[aria-current="page"] {
  color: var(--green);
  text-decoration: underline;
}
main {
  min-height: 68vh;
  padding-block: 52px 76px;
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 32px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.75fr);
  gap: 64px;
  align-items: center;
  padding-block: 20px 66px;
  border-bottom: 1px solid var(--line);
}
h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}
h1 {
  font-size: clamp(34px, 4.8vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 750;
  max-width: 860px;
  margin: 0 0 24px;
}
h2 {
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.2;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
}
h3 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 9px;
}
p {
  margin: 0 0 18px;
}
.lead {
  font-size: 20px;
  color: var(--muted);
  max-width: 720px;
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.desk {
  border-top: 4px solid var(--green);
  padding: 25px 0 0;
}
.desk-title {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}
.workflow {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.workflow li {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: baseline;
  font-size: 19px;
}
.workflow li:before {
  counter-increment: step;
  content: "0" counter(step);
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
}
.section {
  margin-top: 50px;
}
.section-heading {
  display: flex;
  gap: 24px;
  align-items: baseline;
  justify-content: space-between;
}
.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.tool-list li {
  border-bottom: 1px solid var(--line);
}
.tool-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) minmax(160px, 0.6fr) 30px;
  align-items: center;
  gap: 24px;
  padding: 25px 0;
  color: var(--ink);
  text-decoration: none;
}
.tool-link:hover h3 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.tool-index {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tool-link p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.tool-output {
  font-size: 14px;
  color: var(--muted);
}
.tool-arrow {
  font-size: 25px;
  color: var(--green);
}
.split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
}
.note {
  border-left: 3px solid var(--green);
  padding: 4px 0 4px 20px;
  color: var(--muted);
  font-size: 14px;
  max-width: 780px;
}
.note p:last-child {
  margin-bottom: 0;
}
.page-intro {
  margin-bottom: 36px;
}
.page-intro h1 {
  font-size: clamp(34px, 4vw, 52px);
}
.page-intro .lead {
  font-size: 18px;
}
.workspace {
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.field label {
  font-size: 14px;
  font-weight: 650;
}
.field small {
  font-size: 13px;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #8d9e92;
  border-radius: 4px;
  color: var(--ink);
  background: white;
  min-height: 46px;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
.wide {
  grid-column: 1/-1;
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.status {
  font-size: 15px;
  min-height: 24px;
  margin-top: 16px;
}
.status.error {
  color: #9a2b25;
}
.results {
  margin-top: 32px;
}
.results:empty {
  display: none;
}
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  margin: 0 0 24px;
}
.result-grid div {
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
dt {
  font-size: 13px;
  color: var(--muted);
}
dd {
  font-size: 27px;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 6px 0 0;
  font-variant-numeric: tabular-nums;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
  margin-bottom: 20px;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
}
th,
td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}
th {
  font-weight: 650;
  white-space: nowrap;
}
.media-row {
  border: 0;
  border-top: 1px solid var(--line);
  padding: 24px 0;
  margin: 0;
}
.media-row legend {
  padding-right: 12px;
  font-weight: 700;
}
.row-head {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.row-head button {
  padding: 4px 10px;
  min-height: 36px;
  font-size: 13px;
}
.media-fields {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.article {
  max-width: 800px;
}
.article h2 {
  font-size: 27px;
  margin-top: 38px;
}
.article ul,
.article ol {
  padding-left: 24px;
}
.article li {
  margin-bottom: 12px;
}
.article p {
  font-size: 17px;
}
.article .source {
  font-size: 14px;
  color: var(--muted);
}
.article table {
  margin-block: 24px;
}
.output-text {
  white-space: pre-wrap;
  background: var(--soft);
  padding: 20px;
  overflow-wrap: anywhere;
  font-size: 15px;
  line-height: 1.6;
}
.formula {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-size: 14px;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 30px 40px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer p {
  margin: 0;
}
.site-footer a {
  color: var(--muted);
}
noscript p {
  padding: 16px;
  background: #fff0d7;
}
.empty {
  padding: 24px 0;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (min-width: 1700px) {
  .wrap {
    max-width: 1280px;
  }
}
@media (max-width: 850px) {
  .wrap {
    padding-inline: 28px;
  }
  .hero {
    gap: 36px;
    grid-template-columns: 1.35fr 1fr;
  }
  .media-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tool-link {
    grid-template-columns: 30px 1fr 28px;
    gap: 18px;
  }
  .tool-output {
    display: none;
  }
  .split {
    gap: 30px;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding-inline: 20px;
  }
  .header-inner {
    padding-block: 20px;
    align-items: flex-start;
    gap: 16px;
    flex-direction: column;
    min-height: 0;
  }
  nav {
    gap: 18px;
  }
  .hero {
    display: block;
    padding-block: 0 36px;
  }
  .hero .desk {
    margin-top: 36px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .lead {
    font-size: 18px;
  }
  main {
    padding-block: 32px 48px;
  }
  .fields,
  .media-fields,
  .split {
    grid-template-columns: 1fr;
  }
  .media-fields {
    gap: 14px;
  }
  .workspace {
    padding: 20px 16px;
  }
  .section {
    margin-top: 36px;
  }
  .section-heading {
    display: block;
  }
  .tool-link {
    padding-block: 20px;
    gap: 12px;
    grid-template-columns: 24px 1fr 22px;
  }
  .tool-link h3 {
    font-size: 19px;
  }
  .tool-link p {
    font-size: 14px;
  }
  .tool-link .tool-arrow {
    font-size: 22px;
  }
  .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .result-grid div {
    padding: 15px 12px;
  }
  dd {
    font-size: 23px;
  }
  .crumb {
    margin-bottom: 24px;
  }
  .row-head {
    gap: 12px;
  }
  .footer-inner {
    display: block;
  }
  .footer-inner p {
    margin-top: 12px;
  }
  .split > div + div {
    margin-top: 24px;
  }
}
@media print {
  nav,
  .site-footer,
  .form-actions,
  button,
  .actions {
    display: none;
  }
  body {
    background: white;
    color: black;
  }
  .wrap {
    padding: 0;
    max-width: none;
  }
  .workspace {
    border: 0;
    padding: 0;
  }
  main {
    padding: 0;
  }
  .hero {
    display: block;
  }
  .desk {
    display: none;
  }
  .table-scroll {
    overflow: visible;
  }
  a {
    color: inherit;
  }
  .result-grid {
    break-inside: avoid;
  }
}

.experiment-preview {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  max-width: 760px;
}
.experiment-preview h3 {
  font-size: 16px;
  margin: 22px 0 6px;
}
.experiment-preview p {
  white-space: pre-wrap;
}

.tool-link h2 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 0 0 9px;
}
.tool-link:hover h2 {
  text-decoration: underline;
  text-underline-offset: 5px;
}
@media (max-width: 600px) {
  .tool-link h2 {
    font-size: 19px;
  }
}

.result-grid dd {
  overflow-wrap: anywhere;
}

.result-grid dd.text-value { font-size: 18px; letter-spacing: 0; overflow-wrap: normal; }
