/* O painel "Sua primeira requisição", o teste antes de cobrar, os eventos e os materiais: os mesmos blocos da
   documentação do portal, no tom desta página. Só apresentação. */
.dx-start { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(250px, 1fr); gap: 22px; align-items: start; margin: 28px 0 22px; scroll-margin-top: 24px; }
.dx-quick, .dx-panel { min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 1px 2px #0b1d3a0a, 0 12px 32px -18px #0b1d3a33; }
.dx-quick { overflow: hidden; }
.dx-quick code, .dx-panel code, .dx-steps code { font-family: "SFMono-Regular", Consolas, monospace; }

.dx-quick-heading { display: grid; gap: 16px; padding: 26px 26px 18px; }
.dx-quick-heading h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); }
.dx-quick-heading p { margin: 6px 0 0; font-size: 14px; line-height: 1.6; color: var(--muted); }
.dx-methods { display: flex; flex-wrap: wrap; gap: 6px; }
.dx-methods [role=tab] { min-height: 36px; padding: 0 14px; border: 1px solid #d5deec; border-radius: 999px; background: #f7f9fd; color: #34486b; font: 600 13px/1 Arial, Helvetica, sans-serif; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.dx-methods [role=tab]:hover { border-color: #a9c1f3; background: #eef3ff; color: #173e8a; }
.dx-methods [role=tab][aria-selected=true] { border-color: #246bfe; background: #246bfe; color: #fff; box-shadow: 0 6px 16px -8px #246bfe; }

.dx-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin: 0; padding: 0 26px 20px; }
.dx-facts > div { min-width: 0; }
.dx-facts dt { font-size: 12px; color: var(--muted); }
.dx-facts dt code { padding: 1px 5px; font-size: 11px; }
.dx-facts dd { display: flex; align-items: center; gap: 8px; min-width: 0; margin: 6px 0 0; }
.dx-facts dd > code { min-width: 0; padding: 5px 9px; border: 1px solid #d5deec; border-radius: 8px; background: #f5f8fd; color: var(--ink); font-size: 12.5px; overflow-wrap: anywhere; }
.dx-copy { flex-shrink: 0; min-height: 30px; padding: 0 10px; border: 1px solid #d5deec; border-radius: 8px; background: #fff; color: #34486b; font-size: 12px; font-weight: 600; cursor: pointer; }
.dx-copy:hover { border-color: #a9c1f3; color: #173e8a; }
.endpoint-tag { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 5px 10px; border: 1px solid #d5deec; border-radius: 8px; background: #f5f8fd; font: 12.5px/1.4 "SFMono-Regular", Consolas, monospace; color: var(--ink); overflow-wrap: anywhere; }
.endpoint-tag b { color: #137c3c; font-size: 11px; letter-spacing: .4px; }
.dx-facts [data-scope] code { font-size: 12.5px; }

.dx-code-tabs { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 48px; padding: 0 12px 0 18px; border-top: 1px solid #1f3457; background: #0e1f3b; }
.dx-languages { display: flex; align-items: stretch; flex-wrap: wrap; min-height: 48px; }
.dx-languages [role=tab] { position: relative; padding: 0 12px; border: 0; background: none; color: #9fb3d6; font: 600 13px/48px Arial, Helvetica, sans-serif; cursor: pointer; }
.dx-languages [role=tab]:hover { color: #fff; }
.dx-languages [role=tab][aria-selected=true] { color: #fff; }
.dx-languages [role=tab][aria-selected=true]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 2px; background: #6d9bff; }
.dx-language-picker { position: relative; }
.dx-language-picker > button { min-height: 32px; padding: 0 12px; border: 1px solid #2c4470; border-radius: 8px; background: #12264a; color: #c8d6f2; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dx-language-picker > button:hover, .dx-language-picker > button[aria-expanded=true] { border-color: #4f6fa7; color: #fff; }
.dx-language-menu { position: absolute; z-index: 10; top: calc(100% + 6px); left: 0; width: min(290px, calc(100vw - 48px)); padding: 6px; border: 1px solid #d5deec; border-radius: 12px; background: #fff; box-shadow: 0 18px 40px -12px #0b1d3a59; }
.dx-language-filter { display: flex; align-items: center; gap: 8px; height: 38px; margin-bottom: 5px; padding: 0 10px; border: 1px solid #d5deec; border-radius: 8px; color: #8392ab; }
.dx-language-filter:focus-within { border-color: #246bfe; box-shadow: 0 0 0 3px #246bfe26; }
.dx-language-filter input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 14px; color: var(--ink); }
.dx-language-menu [role=listbox] { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; }
.dx-language-menu [role=option] { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; border-radius: 7px; background: none; color: #2b3d5c; font-size: 14px; text-align: left; cursor: pointer; }
.dx-language-menu [role=option]:hover, .dx-language-menu [role=option]:focus-visible { background: #eef3ff; outline: none; }
.dx-language-menu [role=option][aria-selected=true] { background: #dfe9ff; color: #173e8a; font-weight: 600; }
.dx-language-menu [role=option] small { font-size: 12px; color: #71809a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-language-empty { margin: 0; padding: 12px 10px; font-size: 13px; color: var(--muted); }
.dx-code-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.dx-action { min-height: 32px; padding: 0 12px; border: 1px solid #2c4470; border-radius: 8px; background: #12264a; color: #c8d6f2; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dx-action:hover { border-color: #4f6fa7; color: #fff; }

pre.dx-code { margin: 0; min-height: 300px; max-height: 540px; padding: 22px 24px; overflow: auto; background: #0a1830; color: #c5d9fa; font: 13px/1.75 "SFMono-Regular", Consolas, monospace; white-space: pre; tab-size: 2; }
pre.dx-code code { padding: 0; background: none; color: #c5d9fa; font-size: 13px; overflow-wrap: normal; }
pre.dx-code:focus-visible { outline: 3px solid #6698ff; outline-offset: -3px; }

.dx-response { margin: 18px 26px 0; border: 1px solid var(--line); border-radius: 12px; background: #f7f9fd; }
.dx-response > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; }
.dx-response > summary::-webkit-details-marker { display: none; }
.dx-response > summary::before { content: "▸"; margin-right: -4px; color: #71809a; transition: transform .15s; }
.dx-response[open] > summary::before { transform: rotate(90deg); }
.dx-response > summary > span:first-of-type { flex: 1; }
.dx-response > summary b { color: #137c3c; }
.dx-response-format { font: 11px/1 "SFMono-Regular", Consolas, monospace; color: #71809a; }
pre.dx-response-code { min-height: 0; max-height: 320px; margin: 0 14px; border-radius: 10px; }
.dx-response-note { margin: 12px 14px 14px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.dx-scope-note { margin: 0; padding: 16px 26px 24px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

.dx-steps { min-width: 0; padding: 4px 0; }
.dx-steps h3 { margin: 4px 0 14px; font-size: 16px; font-weight: 700; letter-spacing: -.2px; color: var(--ink); }
.dx-steps ol, .dx-sandbox-steps { list-style: none; margin: 0; padding: 0; }
.dx-steps ol { display: flex; flex-direction: column; gap: 12px; }
.dx-steps li, .dx-sandbox-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.dx-steps li:hover, .dx-steps li:focus-within { border-color: #a9c1f3; box-shadow: 0 8px 22px -16px #0b1d3a66; }
.dx-step-number { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #e4ecff; color: #1a4fc0; font-size: 13px; font-weight: 700; }
.dx-steps h4, .dx-sandbox-steps h4 { margin: 2px 0 0; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.dx-steps p, .dx-sandbox-steps p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.dx-step-link { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 700; }

.dx-panel { margin: 0 0 22px; padding: 26px; scroll-margin-top: 24px; }
.dx-panel h2 { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.4px; color: var(--ink); }
.dx-panel p { font-size: 14px; line-height: 1.65; color: var(--muted); }
.dx-sandbox-heading { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 18px; align-items: start; }
.dx-sandbox-heading p { margin: 6px 0 0; max-width: 760px; }
.dx-section-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: #fff4e0; color: #b86a00; font-size: 20px; }
.dx-sandbox-heading .button { white-space: nowrap; }
.dx-sandbox-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-top: 22px; }
.dx-sandbox-steps li { background: #fbfcfe; }
.dx-sandbox-code { margin: 20px 0 0; }
.dx-sandbox-note { margin: 14px 0 0; font-size: 13.5px; }

.dx-events { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px 32px; align-items: center; }
.dx-events-copy p { margin: 10px 0 0; }
.dx-status-flow { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
.dx-status-flow li { padding: 0; }
.dx-status-flow > li:first-child, .dx-branch > div { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; background: #fbfcfe; }
.dx-status-flow b { font: 700 13px/1.4 "SFMono-Regular", Consolas, monospace; color: var(--ink); }
.dx-status-flow span, .dx-status-flow em { font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.dx-status-flow em { font-style: normal; color: #9a5b00; }
.dx-branch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dx-status-flow > li.tone-warning, .dx-branch > div.tone-warning { border-left-color: #f29102; }
.dx-status-flow > li.tone-success, .dx-branch > div.tone-success { border-left-color: #1f9d55; }
.dx-status-flow > li.tone-expired, .dx-branch > div.tone-expired { border-left-color: #8a96ab; }

.dx-resources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 34px 0 10px; }
.dx-resources a { display: grid; align-content: start; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.dx-resources a:hover { border-color: #a9c1f3; box-shadow: 0 10px 26px -18px #0b1d3a80; }
.dx-resource-icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; background: #e4ecff; color: #1a4fc0; font: 700 15px/1 "SFMono-Regular", Consolas, monospace; }
.dx-resources h3 { margin: 6px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.dx-resources p { margin: 0; font-size: 13px; line-height: 1.6; color: var(--muted); }

@media (max-width: 1280px) { .dx-resources { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1120px) {
  .dx-start { grid-template-columns: minmax(0, 1fr); }
  .dx-steps ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .dx-events { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .dx-quick-heading { padding: 20px 18px 14px; }
  .dx-facts { grid-template-columns: minmax(0, 1fr); padding: 0 18px 18px; }
  .dx-code-tabs { padding: 0 10px; }
  .dx-code-actions { margin-left: 0; padding-bottom: 8px; }
  pre.dx-code { min-height: 220px; padding: 18px; font-size: 12px; }
  .dx-response { margin: 16px 18px 0; }
  .dx-scope-note { padding: 14px 18px 20px; }
  .dx-panel { padding: 20px 18px; border-radius: 16px; }
  .dx-sandbox-heading { grid-template-columns: minmax(0, 1fr); }
  .dx-section-icon { display: none; }
  .dx-branch { grid-template-columns: minmax(0, 1fr); }
  .dx-resources { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  .dx-methods, .dx-code-tabs, .dx-copy, .dx-step-link { display: none !important; }
  pre.dx-code, pre.dx-code code { background: #f3f5f9; color: black; }
}
