:root {
  --ink: #1c3036;
  --muted: #5b7077;
  --line: #d8e2e4;
  --canvas: #f4f7f7;
  --paper: #fff;
  --accent: #087763;
  --accent-dark: #055c4e;
  --warm: #ac681f;
  --danger: #a53e43;
}

body { background: var(--canvas); }
.shell { width: min(1280px, calc(100% - 48px)); }
.topbar { position: relative; z-index: 2; box-shadow: 0 1px 3px #122b3210; }
.topbar-inner { min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 16px; }
.brand::before { content: "T"; display: grid; place-items: center; width: 29px; height: 29px; background: var(--accent); color: #fff; font-size: 15px; border-radius: 5px; }
.topbar nav a.current { position: relative; }
.topbar nav a.current::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: -24px; background: var(--accent); }
.langs { background: #f2f5f5; border-radius: 5px; }
.langs a.selected { background: #233a42; border-radius: 3px; }
.page-head { padding: 34px 0 25px; align-items: center; }
.page-head h1 { font-size: 27px; font-weight: 730; }
.eyebrow { color: #697f86; }
.section { padding: 31px 0 37px; scroll-margin-top: 22px; }
.section-heading { margin-bottom: 17px; }
.section h3 { margin: 25px 0 15px; }
.section h3:first-child { margin-top: 0; }
.service-tabs { gap: 5px; padding-top: 0; border-bottom: 1px solid var(--line); }
.service-tabs a { padding: 13px 18px 11px; border-bottom: 2px solid transparent; color: var(--muted); }
.service-tabs a:hover, .service-tabs a.selected { color: var(--accent); border-bottom-color: var(--accent); text-decoration: none; }
.service-metrics { gap: 0; margin: 0 0 24px; padding: 15px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-metrics div { min-width: 150px; padding: 0 28px; border-right: 1px solid var(--line); }
.service-metrics div:first-child { padding-left: 0; }
.service-metrics div:last-child { border-right: 0; }
.service-metrics strong { font-size: 22px; line-height: 1.1; color: #253b42; }
.service-metrics span { font-size: 12px; }
.create-form { padding: 2px 0 6px; }
.create-form > div:first-of-type { max-width: 310px; }
.create-form > div { min-width: 170px; }
input { border-color: #becdd1; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #8a9ca1; }
.button { transition: background .15s, border-color .15s, color .15s; }
.button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #56ad9b; outline-offset: 2px; }
.button.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.button.danger:hover { background: #87343a; border-color: #87343a; }
.button.danger-link { border-color: transparent; color: var(--danger); background: transparent; }
.button.danger-link:hover { border-color: #e7c5c7; background: #fcf0f0; }
.table-wrap { border: 1px solid var(--line); border-radius: 5px; background: var(--paper); }
table { border-collapse: separate; border-spacing: 0; }
thead th { background: #eef3f3; color: #50666e; border-bottom: 1px solid #cfdbde; }
tbody tr:hover { background: #f8fbfa; }
th, td { padding: 11px 12px; }
.actions { min-width: 0; flex-wrap: wrap; }
.actions form { flex: 0 0 auto; }
.status { min-width: 40px; justify-content: center; }
.count { background: #e3ecec; color: #36545b; }
.key-heading { margin: 29px 0 14px; }
.key-notice { background: #fffaf0; border-color: #e8c78c; border-radius: 5px; }
.notice { border-radius: 0 4px 4px 0; }
.checkbox-row { font-weight: 500; color: var(--muted); }
.confirm-wrap { display: grid; place-items: start center; padding: 70px 0; }
.confirm-panel { width: min(480px, 100%); background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 30px; box-shadow: 0 9px 24px #15343b0c; }
.confirm-panel h1 { font-size: 23px; margin-bottom: 20px; }
.confirm-name { padding: 12px 14px; background: #f2f6f6; border: 1px solid var(--line); border-radius: 4px; font-weight: 700; overflow-wrap: anywhere; }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }

.docs-head .eyebrow a { color: var(--muted); }
.service-directory { margin: 23px 0 70px; border-top: 1px solid var(--line); }
.directory-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) minmax(220px, auto) 30px; align-items: center; gap: 18px; padding: 24px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.directory-row:hover { background: #ecf2f1; text-decoration: none; }
.directory-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 5px; font-weight: 800; }
.hcaptcha-mark { background: #dff0e9; color: #08705c; }
.coinbase-mark { background: #e6ebf6; color: #355a9a; }
.directory-main, .directory-meta { display: grid; gap: 3px; min-width: 0; }
.directory-main strong { font-size: 18px; }
.directory-main small, .directory-meta small { color: var(--muted); font-size: 13px; }
.directory-meta code { font-size: 12px; color: #354e55; overflow-wrap: anywhere; }
.directory-arrow { justify-self: end; color: var(--accent); font-size: 23px; }
.docs-tabs { margin-top: 0; }
.docs-intro { padding: 18px 0 5px; color: var(--muted); }
.docs-intro p { margin-bottom: 0; }
.docs-jump { display: flex; flex-wrap: wrap; gap: 18px; padding: 12px 0 4px; }
.docs-jump a { font-size: 13px; font-weight: 650; color: #3e626a; }
.docs-jump a:hover { color: var(--accent); }
.docs-workspace { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(330px, .8fr); gap: 36px; align-items: start; padding-bottom: 70px; }
.docs-requests { min-width: 0; }
.docs-section { padding: 27px 0 31px; }
.docs-section h2 { margin: 16px 0 20px; font-size: 19px; }
.endpoint-heading { display: flex; align-items: center; gap: 10px; min-width: 0; }
.endpoint-heading code { overflow-wrap: anywhere; font-size: 13px; }
.method.get { color: #315d99; background: #e4ecf7; }
.api-form .field { min-width: 0; }
.api-form input { width: 100%; }
.api-form label .optional { color: var(--muted); font-weight: 450; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 14px; }
.docs-show-key { margin: 10px 0 2px; }
.api-form .checkbox-row input { width: 16px; flex: 0 0 16px; }
.docs-actions { display: flex; align-items: center; gap: 16px; margin-top: 23px; }
.docs-actions p { margin: 0; font-size: 12px; color: var(--muted); }
.response-panel { position: sticky; top: 22px; margin-top: 27px; border: 1px solid #cbd9dc; border-radius: 5px; background: #17282e; color: #dcebe8; overflow: hidden; }
.response-toolbar { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 13px; background: #263b42; color: #eef6f4; }
.response-toolbar strong { font-size: 13px; margin-right: auto; }
.response-toolbar span { font-size: 12px; color: #a8d8c9; }
.response-toolbar span.response-error { color: #f2b1ad; }
.response-toolbar .button { border-color: #526b73; color: #e3f1ee; }
.response-toolbar .button:hover { background: #355059; }
.response-panel pre { min-height: 240px; max-height: 650px; margin: 0; padding: 18px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.65 ui-monospace, SFMono-Regular, Consolas, monospace; }
.docs-reference { border-top: 1px solid var(--line); padding-bottom: 80px; }
.docs-reference-section { padding: 32px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.docs-reference-section h2 { font-size: 20px; margin: 0 0 12px; }
.docs-reference-section .muted { max-width: 820px; margin-bottom: 18px; }
.reference-table { max-width: 100%; }
.reference-table th:first-child { width: 170px; }
.reference-table th:nth-child(2) { width: 100px; }
.reference-table td { line-height: 1.55; }
.reference-table code, .error-list code { font: 12px ui-monospace, SFMono-Regular, Consolas, monospace; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.example-grid > div { min-width: 0; }
.example-grid h3 { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.example-grid pre { min-height: 118px; margin: 0; padding: 17px; border-radius: 4px; background: #17282e; color: #e1eeeb; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.6 ui-monospace, SFMono-Regular, Consolas, monospace; }
.error-list { display: flex; flex-wrap: wrap; gap: 10px; }
.error-list span { display: inline-flex; gap: 9px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; background: #fff; color: var(--muted); font-size: 12px; }
.error-list code { color: #ab462f; font-weight: 700; }
.empty-row { padding: 25px; color: var(--muted); text-align: center; }

@media (max-width: 900px) {
  .docs-workspace { grid-template-columns: 1fr; gap: 0; }
  .response-panel { position: static; margin-top: 0; }
  .docs-workspace { padding-bottom: 34px; }
}
@media (max-width: 760px) {
  .shell { width: min(100% - 28px, 1280px); }
  .topbar nav { flex: 0 0 100%; overflow: visible; }
  .topbar nav a.current::after { bottom: -7px; }
  .page-head { padding: 29px 0 22px; }
  .page-head h1 { font-size: 23px; }
  .service-tabs a { padding: 12px 13px 10px; }
  .service-metrics { justify-content: space-between; }
  .service-metrics div { min-width: 0; padding: 0 12px; }
  .service-metrics strong { font-size: 19px; }
  .directory-row { grid-template-columns: 40px minmax(0, 1fr) 22px; gap: 12px; padding: 18px 4px; }
  .directory-meta { grid-column: 2; grid-row: 2; }
  .directory-arrow { grid-column: 3; grid-row: 1 / span 2; }
  .field-grid { grid-template-columns: 1fr; gap: 13px; }
  .docs-actions { align-items: flex-start; flex-direction: column; }
  .docs-jump { gap: 8px 15px; }
  .docs-reference-section { padding: 27px 0; }
  .example-grid { grid-template-columns: 1fr; gap: 18px; }
  .reference-table th:first-child { width: 115px; }
  .reference-table th:nth-child(2) { width: 70px; }
  .reference-table th, .reference-table td { padding: 10px 7px; font-size: 12px; }
  .service-metrics { gap: 0; }
  .service-metrics div { flex: 1; }
  .table-wrap { border: 0; background: transparent; overflow: visible; }
  .table-wrap table, .table-wrap tbody { display: block; background: transparent; }
  .table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .table-wrap tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; margin-bottom: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
  .table-wrap td { display: grid; gap: 2px; min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
  .table-wrap td .status { justify-self: start; }
  .table-wrap td::before { content: attr(data-label); color: var(--muted); font-size: 11px; font-weight: 500; }
  .table-wrap td.user-name, .table-wrap td.actions, .table-wrap td.empty-row { grid-column: 1 / -1; }
  .table-wrap td.user-name { font-size: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
  .table-wrap td.actions { display: flex; align-items: center; flex-wrap: wrap; min-width: 0; border-top: 1px solid var(--line); padding-top: 10px; margin-top: 3px; }
  .table-wrap td.actions::before { flex: 0 0 100%; }
  .table-wrap td.empty-row { text-align: center; }
  .table-wrap td.empty-row::before { display: none; }
  .confirm-wrap { padding: 40px 0; }
}
