:root {
  --paper: #f6f3ea;
  --surface: #fffdf8;
  --ink: #14221c;
  --muted: #59645e;
  --line: #d7d8cf;
  --lime: #c7f464;
  --blue: #3157d5;
  --coral: #e8664a;
  --white: #ffffff;
  --shadow: 6px 6px 0 var(--ink);
  --radius: 6px;
  --shell: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 234, 0.96);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  min-height: 72px;
  align-items: center;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 2px solid var(--ink);
  background: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: -0.08em;
  transform: rotate(-3deg);
}

.build-status,
.status-badge {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.status-badge.status-succeeded,
.status-badge.status-available { color: #166534; background: #dcfce7; border-color: #86efac; }
.status-badge.status-running,
.status-badge.status-expired { color: #854d0e; background: #fef3c7; border-color: #fcd34d; }
.status-badge.status-failed,
.status-badge.status-unavailable { color: #991b1b; background: #fee2e2; border-color: #fca5a5; }
.status-badge.status-queued { color: #1e40af; background: #dbeafe; border-color: #93c5fd; }
.status-badge.status-cancelled,
.status-badge.status-deleted { color: #374151; background: #e5e7eb; border-color: #9ca3af; }

.build-status span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--coral);
}

.site-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.nav-form {
  display: flex;
  margin: 0;
}

.nav-button {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.message-stack {
  display: grid;
  gap: 10px;
  padding-top: 20px;
}

.message {
  margin: 0;
  padding: 12px 15px;
  border: 1px solid var(--ink);
  background: var(--surface);
}

.message.success {
  border-left: 6px solid var(--blue);
}

.message.error {
  border-left: 6px solid var(--coral);
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  min-height: 500px;
  align-items: center;
  padding-block: 86px 96px;
}

.hero-copy {
  max-width: 840px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
}

.hero h1 {
  max-width: 820px;
  font-size: clamp(3.4rem, 8vw, 6.4rem);
}

.hero-lede {
  max-width: 650px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 19px;
  border: 2px solid var(--ink);
  border-radius: 3px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.button:hover {
  transform: translate(-2px, -2px);
}

.button-primary {
  background: var(--ink);
  color: var(--white);
  box-shadow: 4px 4px 0 var(--lime);
}

.button-secondary:hover {
  box-shadow: 4px 4px 0 var(--ink);
}

.button-danger {
  background: var(--coral);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section {
  padding-block: 84px;
}

.section h2 {
  max-width: 720px;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.section-heading {
  max-width: 680px;
}

.tools-section {
  background: var(--surface);
}

.public-tool-card {
  display: flex;
  max-width: 760px;
  margin-top: 42px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  padding: 30px;
  border: 2px solid var(--ink);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.tool-card h3,
.steps-list h3,
.dashboard-card h2,
.dashboard-card h3,
.promise-card h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

.tool-card p,
.steps-list p,
.dashboard-card p,
.promise-card p {
  margin: 7px 0 0;
  color: var(--muted);
}

.status-unavailable {
  flex: 0 0 auto;
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
}

.how-section {
  border-top: 1px solid var(--line);
}

.compact-grid {
  display: grid;
  gap: 48px;
}

.steps-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.steps-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.steps-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.steps-list > li > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--surface);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.pricing-section {
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.pricing-card {
  padding: 30px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--lime);
}

.pricing-facts {
  margin: 0;
}

.pricing-facts div {
  display: grid;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.pricing-facts div:first-child {
  padding-top: 0;
}

.pricing-facts dt {
  color: #dce4ff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pricing-facts dd {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.pricing-card > p {
  margin: 22px 0 0;
  color: #eef1ff;
}

/* Account and dashboard building blocks */
.auth-card {
  width: min(100%, 560px);
  margin-inline: auto;
  padding: clamp(26px, 5vw, 42px);
  border: 2px solid var(--ink);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin-top: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.auth-card > p:not(.section-kicker) {
  color: var(--muted);
}

.auth-card form .button {
  margin-top: 24px;
}

.account-section {
  min-height: 62vh;
}

.account-layout {
  display: grid;
  gap: 24px;
  align-items: start;
}

.account-card {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
}

.account-nav {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.account-nav .section-kicker {
  margin-bottom: 10px;
}

.account-nav ul {
  display: flex;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  list-style: none;
}

.account-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.account-nav a:hover,
.account-nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.account-links {
  margin-bottom: 0;
}

.account-facts {
  display: grid;
  gap: 0;
  margin-block: 28px;
  border-block: 1px solid var(--line);
}

.account-facts div {
  display: grid;
  gap: 4px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}

.account-facts div:last-child {
  border-bottom: 0;
}

.account-facts dt {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.account-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-help {
  color: var(--muted);
  font-size: 0.88rem;
}

.form-help ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.form-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  margin-top: 20px;
  align-items: start;
}

.form-check input {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}

.form-check label {
  font-weight: 700;
}

.form-check .errorlist {
  grid-column: 1 / -1;
}

.form-fieldset {
  margin: 24px 0 0;
  padding: 0;
  border: 0;
}

.form-fieldset legend {
  margin-bottom: 4px;
  font-weight: 750;
}

.account-subsection {
  margin-top: 38px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.secret-notice {
  margin-block: 24px;
  padding: 18px;
  border: 2px solid var(--blue);
  background: #eef1ff;
}

.secret-notice h2,
.secret-notice p {
  margin-top: 0;
}

.secret-value {
  display: block;
  min-width: 0;
  padding: 12px;
  overflow-wrap: anywhere;
  border: 1px solid var(--ink);
  background: var(--white);
  user-select: all;
}

.secret-value-row {
  display: grid;
  gap: 12px;
}

.copy-secret-button {
  justify-self: start;
  background: var(--white);
}

.copy-secret-button[hidden] {
  display: none;
}

.copy-secret-button.is-copied {
  background: var(--lime);
}

.copy-secret-icon {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.secret-notice .copy-secret-status {
  min-height: 1.6em;
  margin: 8px 0 0;
  color: var(--ink);
  font-weight: 700;
}

.danger-notice {
  margin-block: 24px;
  padding: 18px;
  border: 2px solid var(--coral);
  background: #fff0ec;
}

.danger-notice p {
  margin: 0 0 10px;
}

.danger-notice p:last-child {
  margin-bottom: 0;
}

.hidden-form {
  display: none;
}

.session-table td:nth-child(3) {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.form-row {
  display: grid;
  gap: 7px;
  margin-top: 20px;
}

.form-row label {
  font-weight: 750;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.organize-preview {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
}

.form-errors,
.errorlist {
  margin: 8px 0;
  padding: 10px 14px;
  border-left: 4px solid var(--coral);
  background: #fff0ec;
  color: #702415;
}

.dashboard-grid,
.promise-grid {
  display: grid;
  gap: 20px;
}

.dashboard-grid {
  margin-block: 36px 20px;
}

.dashboard-card,
.promise-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.dashboard-card > .button,
.tool-card > .button,
.tool-card > div + .button {
  margin-top: 20px;
}

.wallet-balance,
.credit-rate {
  padding: 28px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--lime);
}

.dashboard-card .wallet-balance {
  margin-top: 10px;
  color: var(--white);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  letter-spacing: -0.04em;
  line-height: 1;
}

.wallet-balance strong,
.credit-rate strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 8vw, 5rem);
  line-height: 1;
}

.ledger-table-wrap {
  overflow-x: auto;
}

.ledger-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.ledger-table th,
.ledger-table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.ledger-table th {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tool-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dashboard-card .tool-list {
  margin-top: 22px;
}

.tool-list .tool-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.purchase-summary {
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.tool-workspace {
  display: grid;
  gap: 30px;
}

.tool-summary-grid {
  margin: 0;
}

.merge-card {
  max-width: 840px;
}

.merge-order {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.merge-order h3,
.merge-order p {
  margin-top: 0;
}

.merge-file-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: merge-files;
}

.merge-file-list li {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
  counter-increment: merge-files;
}

.merge-file-details {
  display: grid;
  min-width: 0;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 12px;
  align-items: baseline;
}

.merge-file-details::before {
  content: counter(merge-files) ".";
  grid-row: 1 / 3;
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 800;
}

.merge-file-details strong {
  overflow-wrap: anywhere;
}

.merge-file-details small {
  color: var(--muted);
}

.merge-file-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.merge-order-button {
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 750;
  cursor: pointer;
}

.merge-order-button:hover:not(:disabled) {
  background: var(--lime);
}

.merge-order-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.merge-status {
  min-height: 1.6em;
  margin: 18px 0 0;
  color: #702415;
  font-weight: 750;
}

.merge-status:empty {
  margin-top: 0;
}

.purchase-summary strong {
  font-size: 1.35rem;
}

/* Public developer API documentation */
.api-docs-hero {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.api-docs-hero-grid {
  display: grid;
  gap: 36px;
  padding-block: 58px;
  align-items: end;
}

.api-docs-hero h1,
.api-docs-content h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.045em;
  line-height: 1;
}

.api-docs-hero h1 {
  max-width: 800px;
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.api-docs-lede {
  max-width: 700px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.api-base-card {
  min-width: 0;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--blue);
  color: var(--white);
  box-shadow: 6px 6px 0 var(--lime);
}

.api-base-card > span,
.docs-fact-grid-three article > span {
  display: block;
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-base-card code {
  display: block;
  overflow-wrap: anywhere;
  font-size: clamp(0.88rem, 2vw, 1rem);
  font-weight: 750;
}

.api-base-card p {
  margin: 14px 0 0;
  color: #e8edff;
  font-size: 0.82rem;
}

.api-docs-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
  padding-block: 44px 96px;
  align-items: start;
}

.api-docs-nav {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.api-docs-nav .section-kicker {
  margin-bottom: 9px;
}

.api-docs-nav nav {
  display: grid;
  min-width: 0;
  gap: 16px;
}

.api-docs-nav-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.api-docs-nav-group > span {
  flex-basis: 100%;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.api-docs-nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.api-docs-nav-group a {
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-bright);
  white-space: nowrap;
}

.api-docs-contract-link {
  margin-top: 10px;
}

.api-docs-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--lime);
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.api-docs-content {
  min-width: 0;
}

.api-docs-section {
  scroll-margin-top: 105px;
  padding-block: 0 62px;
}

.api-docs-section + .api-docs-section {
  padding-top: 62px;
  border-top: 1px solid var(--line);
}

.api-docs-content h2 {
  max-width: 720px;
  font-size: clamp(2.35rem, 5vw, 4rem);
}

.api-docs-content h3 {
  margin: 36px 0 12px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.api-docs-content h2 + p,
.api-docs-content p {
  max-width: 780px;
}

.api-docs-content h2 + p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 1.04rem;
}

.api-docs-content code,
.endpoint-heading code,
.docs-limit-list span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.api-docs-content p code,
.docs-table code {
  padding: 0.12em 0.35em;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.docs-steps {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.docs-steps li {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-steps li > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--ink);
  background: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.docs-steps p,
.endpoint-card p {
  margin: 5px 0 0;
  color: var(--muted);
}

.docs-workflow {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.docs-workflow li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-workflow li > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--lime);
  font-weight: 800;
}

.docs-workflow strong,
.docs-workflow code {
  display: block;
}

.docs-workflow code {
  margin-top: 9px;
  overflow-wrap: anywhere;
  font-size: 0.8rem;
}

.docs-workflow p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.docs-language-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.docs-language-card {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-language-card h3 {
  margin: 0 0 12px;
}

.docs-language-card > p {
  margin: 0 0 20px;
}

.docs-language-card .button {
  min-height: 44px;
}

.docs-tool-directory {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.docs-tool-directory > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-tool-directory h3 {
  margin: 0 0 14px;
}

.docs-tool-directory ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-tool-directory a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--green-dark);
  font-weight: 750;
  text-underline-offset: 4px;
}

.docs-tool-guides {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.docs-tool-guide {
  min-width: 0;
  padding: 22px;
  scroll-margin-top: 105px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-tool-guide-heading {
  display: flex;
  gap: 8px 18px;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
}

.docs-tool-guide-heading h3 {
  margin: 0;
}

.docs-tool-guide-heading > code {
  color: var(--muted);
  font-size: 0.78rem;
}

.docs-tool-guide > p {
  margin: 12px 0 0;
}

.docs-tool-guide .docs-limit-list {
  margin-top: 14px;
}

.docs-tool-guide .code-block {
  margin-top: 10px;
  box-shadow: none;
}

.docs-tool-note {
  padding-left: 12px;
  border-left: 3px solid var(--green);
}

.docs-advanced {
  max-width: 100%;
  margin-top: 22px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.docs-advanced summary {
  min-height: 48px;
  padding-block: 13px;
  color: var(--green-dark);
  font-weight: 800;
  cursor: pointer;
}

.docs-advanced[open] {
  padding-bottom: 18px;
}

.docs-advanced summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.docs-tool-routes {
  margin-top: 16px;
}

.docs-tool-routes p {
  overflow-wrap: anywhere;
}

.code-block {
  position: relative;
  max-width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 2px solid var(--ink);
  background: #14221c;
  color: #f7faed;
  box-shadow: 4px 4px 0 var(--lime);
}

.code-block:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.code-block pre {
  min-width: max-content;
  margin: 0;
  padding: 22px;
}

.code-block.docs-command pre {
  min-width: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.docs-command-flag {
  white-space: nowrap;
}

.code-block.has-copy-button pre {
  padding-top: 66px;
}

.docs-copy-button {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 44px;
  padding: 5px 12px;
  border: 1px solid #c7d7ca;
  border-radius: 4px;
  background: #eef7ee;
  color: #17351e;
  font: inherit;
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
}

.docs-copy-button:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 2px;
}

.code-block code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.7;
}

.code-block-response {
  border-color: #293d96;
  background: #17234f;
  box-shadow: none;
}

.docs-callout {
  max-width: 780px;
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 6px solid var(--blue);
  background: #eef1ff;
}

.docs-callout p {
  margin: 5px 0 0;
}

.docs-fact-grid {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.docs-fact-grid article {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.docs-fact-grid h3 {
  margin: 0;
}

.docs-fact-grid p {
  margin: 6px 0 0;
  color: var(--muted);
}

.docs-fact-grid-three article {
  border: 2px solid var(--ink);
}

.docs-fact-grid-three article > strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.7rem;
  line-height: 1;
}

.docs-table-wrap {
  max-width: 100%;
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  text-align: left;
}

.docs-table th,
.docs-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.docs-table th {
  background: var(--ink);
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-table tr:last-child td {
  border-bottom: 0;
}

.error-table {
  min-width: 720px;
}

.error-table td:first-child {
  width: 68px;
}

.error-table td:nth-child(2) {
  min-width: 330px;
}

.status-flow,
.docs-limit-list {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.status-flow span,
.docs-limit-list span {
  padding: 7px 11px;
  border: 1px solid var(--ink);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 800;
}

.status-flow span:last-child {
  background: var(--lime);
}

.endpoint-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.endpoint-heading {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
  flex-wrap: wrap;
}

.endpoint-card .endpoint-heading {
  margin-top: 0;
}

.endpoint-heading code {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 0.9rem;
  font-weight: 750;
}

.method-badge {
  display: inline-flex;
  min-width: 68px;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.method-get {
  background: var(--lime);
}

.method-post {
  background: #dce4ff;
}

.method-delete {
  background: #ffd9cf;
}

.api-docs-finish {
  padding-bottom: 0;
}

.site-footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.footer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.footer-brand {
  margin-bottom: 8px;
}

.footer-row p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-note {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

@media (min-width: 800px) {
  .secret-value-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
  }

  .compact-grid {
    grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
    gap: 80px;
  }

  .dashboard-grid,
  .promise-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-docs-hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.55fr);
  }

  .docs-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-steps,
  .docs-workflow,
  .docs-language-grid,
  .docs-tool-directory {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-fact-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .account-layout {
    grid-template-columns: minmax(190px, 230px) minmax(0, 760px);
    justify-content: center;
    gap: 34px;
  }

  .account-nav ul {
    display: grid;
    gap: 2px;
  }

  .account-card {
    margin-inline: 0;
  }
}

@media (min-width: 980px) {
  .api-docs-layout {
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 58px;
  }

  .api-docs-nav {
    position: sticky;
    top: 96px;
    max-height: calc(100dvh - 112px);
    overflow-y: auto;
  }

  .api-docs-nav nav {
    display: grid;
    gap: 14px;
    overflow: visible;
  }

  .api-docs-nav-group {
    display: grid;
    gap: 0;
  }

  .api-docs-nav-group > span {
    flex-basis: auto;
    margin: 0 0 4px;
  }

  .api-docs-nav-group a {
    padding: 0 0 0 8px;
    border: 0;
    border-left: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    white-space: normal;
  }

  .api-docs-nav-group a:hover,
  .api-docs-nav-group a:focus-visible {
    border-left-color: var(--green);
  }
}

@media (min-width: 1200px) {
  .docs-tool-guides {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 719px) {
  .site-header {
    position: static;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding-block: 14px;
  }

  .build-status {
    margin-left: auto;
  }

  .site-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 20px;
    overflow-x: auto;
    border-top: 1px solid var(--line);
  }

  .hero-grid {
    min-height: auto;
    padding-block: 64px 72px;
  }

  .hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .section {
    padding-block: 68px;
  }

  .public-tool-card,
  .footer-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .api-docs-hero-grid {
    padding-block: 42px 50px;
  }

  .api-docs-layout {
    width: min(calc(100% - 28px), var(--shell));
    padding-block: 36px 72px;
  }

  .api-docs-section {
    padding-bottom: 48px;
  }

  .api-docs-section + .api-docs-section {
    padding-top: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

.converter-section > summary { padding: .85rem 0; cursor: pointer; }
.converter-section > summary h2 { display: inline; margin: 0; font-size: 1.3rem; }
.converter-section > summary .form-help { margin-left: .5rem; }
.workspace-start-grid > .workspace-wallet { grid-column: 1 / -1; }

/* Inline quote progress stays beside the unified output selector. */
.upload-spinner { display:inline-block; width:1rem; height:1rem; margin-inline-start:.4rem; border:2px solid currentColor; border-inline-end-color:transparent; border-radius:50%; animation:upload-spin .8s linear infinite; }
.upload-spinner[hidden] { display:none; }
@keyframes upload-spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion:reduce) { .upload-spinner { animation:none; border-style:dotted; } }
[data-quote-result] { overflow-x:auto; }
[data-quote-result] th, [data-quote-result] td { padding:.6rem; text-align:start; overflow-wrap:anywhere; }
[data-upload-list] li { margin-block:.75rem; overflow-wrap:anywhere; }

.output-format-control { display:flex; align-items:center; gap:.5rem; }
.output-format-control select { flex:1; min-width:0; }

[data-image-drop] { min-height:0; padding:1rem; cursor:pointer; }
[data-image-drop] span { display:block; margin-block-start:.6rem; }
[data-upload-list] button { min-height:44px; padding:.4rem .7rem; }

/* Keep long API examples and result actions usable on narrow screens. */
.api-docs-layout > *, .api-docs-content, .api-docs-hero-grid > *, .api-docs-section, .dashboard-card { min-width: 0; }
.api-docs-section pre, .api-docs-section .table-scroll { max-width: 100%; overflow-x: auto; }
.api-docs-section code, .api-docs-section td { overflow-wrap: anywhere; }
.api-docs-section pre code { overflow-wrap: normal; }
@media (max-width: 640px) {
  .api-docs-section table { display: block; max-width: 100%; overflow-x: auto; }
  .results-table .button { display: inline-flex; margin-block: .25rem; white-space: normal; }
  .dashboard-card select, .dashboard-card textarea { max-width: 100%; }
}

.shell :not(pre) > code { overflow-wrap: anywhere; }
