:root {
    --bg: #f4f6f8;
    --surf: #ffffff;
    --ink: #0d1117;
    --ink-2: #3c4656;
    --mut: #667085;
    --line: #e4e8ee;
    --sig: #0066ff;
    --sig-ink: #0047d6;
    --sig-soft: #e8f1ff;
    --lado: #0c1220;
    --lado-2: #141b2d;
    --lado-ink: #e8edf5;
    --lado-mut: #93a0b5;
    --codigo: #0d1117;
    --sombra: 0 1px 2px rgba(13, 17, 23, .04), 0 16px 40px -28px rgba(13, 17, 23, .45);
    --f: "Plus Jakarta Sans", system-ui, sans-serif;
    --fm: "JetBrains Mono", ui-monospace, Consolas, monospace;
    --lado-w: 300px;
    --topo: 60px;
    --scroll: color-mix(in srgb, var(--mut) 78%, #fff);
    --scroll-hover: var(--sig);
    --scroll-escuro: rgba(255, 255, 255, .28);
    --scroll-escuro-hover: rgba(255, 255, 255, .52);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--f);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}
a { color: var(--sig-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.casca { min-height: 100vh; }
.lado {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--lado-w);
    background: var(--lado);
    color: var(--lado-ink);
    display: flex;
    flex-direction: column;
    z-index: 30;
    border-right: 1px solid rgba(255, 255, 255, .06);
}
.marca {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 18px 8px;
    text-decoration: none;
    color: inherit;
}
.marca:hover,
.marca:focus {
    text-decoration: none;
    color: inherit;
}
.marca img { width: 36px; height: 36px; display: block; border-radius: 10px; }
.marca-textos { display: flex; flex-direction: column; line-height: 1.1; }
.marca-nome { color: #fff; font-weight: 800; font-size: 18.5px; letter-spacing: -.03em; }
.marca-nome span { color: #4d8bff; }
.marca-sub { margin-top: 3px; color: var(--lado-mut); font-size: 12px; font-weight: 600; }
.busca {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 14px 12px;
    padding: 0 10px;
    height: 38px;
    border-radius: 10px;
    background: var(--lado-2);
    border: 1px solid rgba(255, 255, 255, .08);
}
.busca-ico {
    width: 14px;
    height: 14px;
    border: 1.5px solid var(--lado-mut);
    border-radius: 50%;
    position: relative;
    flex: none;
}
.busca-ico::after {
    content: "";
    position: absolute;
    width: 6px;
    height: 1.5px;
    background: var(--lado-mut);
    right: -4px;
    bottom: -1px;
    transform: rotate(40deg);
}
.busca input {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--lado-ink);
    font: 500 13px/1 var(--f);
    outline: none;
}
.busca input::placeholder { color: var(--lado-mut); }
.menu { overflow: auto; padding: 4px 10px 18px; flex: 1; }
.menu-bloco + .menu-bloco { margin-top: 4px; }
.menu-grupo {
    margin: 14px 8px 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lado-mut);
}
.menu-bloco:first-child .menu-grupo { margin-top: 6px; }
.menu-link {
    display: block;
    margin: 1px 0;
    padding: 7px 10px;
    border-radius: 8px;
    color: #c9d3e3;
    font-size: 13.5px;
    font-weight: 650;
    text-decoration: none;
}
.menu-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.menu-link.ativo { background: rgba(0, 102, 255, .22); color: #fff; }
.menu-link-pai { font-weight: 750; color: #e8edf5; }
.menu-link-ancora {
    padding-left: 18px;
    font-size: 12.5px;
    font-weight: 600;
    color: #9aa8bd;
}
.menu-link-ancora::before {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin-right: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .25);
    vertical-align: middle;
}
.menu a[hidden],
.menu-subgrupo[hidden] { display: none !important; }

.menu-api-grupos {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}
.api-voltar { margin: 0 0 16px; color: var(--mut, #64748b); font-size: 13px; font-weight: 650; }
.api-voltar a { font-weight: 750; }
.api-voltar span { margin: 0 6px; opacity: .5; }
.menu-subgrupo:not(.aberto) .menu-rotas { display: none; }
.menu-bloco.buscando .menu-subgrupo:not([hidden]) .menu-rotas { display: flex; }
.verbo-tool { background: #f3e8ff; color: #6b21a8; }
.menu-subgrupo { margin: 1px 0; }
.menu-subgrupo:last-child { margin-bottom: 0; }
.menu-subgrupo-cabeca {
    display: block;
    margin: 1px 0;
    padding: 7px 10px;
    border-radius: 8px;
    color: #c9d3e3;
    font-size: 13.5px;
    font-weight: 650;
    text-decoration: none;
}
.menu-subgrupo-cabeca::after { content: none; }
.menu-subgrupo-cabeca:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
}
.menu-subgrupo-cabeca.ativo {
    background: rgba(0, 102, 255, .22);
    color: #fff;
}
.menu-subgrupo-nome {
    display: inline;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: 0;
}
.menu-subgrupo-desc { display: none; }
.menu-rotas {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0 0 2px;
}
.menu-rota {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 1px 0;
    padding: 6px 10px 6px 18px;
    border-radius: 8px;
    text-decoration: none;
    color: #9aa8bd;
    font-size: 12.5px;
    font-weight: 600;
}
.menu-rota:hover {
    background: rgba(255, 255, 255, .06);
    color: #fff;
    text-decoration: none;
}
.menu-rota.ativo {
    background: rgba(0, 102, 255, .2);
    color: #fff;
}
.menu-rota .verbo {
    flex: none;
    min-width: 46px;
    margin-top: 1px;
    font-size: 9px;
    padding: 2px 5px;
}
.menu-rota-txt { min-width: 0; }
.menu-rota-label { line-height: 1.3; }
.menu-rota-path { display: none; }

.lado-rodape {
    padding: 12px 14px 16px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.lado-rodape a {
    color: var(--lado-mut);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}
.lado-rodape a:hover { color: #fff; }

.miolo { margin-left: var(--lado-w); min-height: 100vh; display: flex; flex-direction: column; }
.barra {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--topo);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    background: rgba(244, 246, 248, .9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.menu-botao { display: none; }
.barra-marca { margin: 0; font-weight: 700; letter-spacing: -.02em; display: none; }
.barra-marca span { color: var(--sig); }
.barra-acoes { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.barra-acoes a {
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 650;
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 999px;
}
.barra-acoes a:hover { background: #fff; text-decoration: none; }
.barra-acoes a[target="_blank"] {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.barra-acoes a[target="_blank"]::after {
    content: "";
    width: 12px;
    height: 12px;
    flex: none;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M11 13 20 4'/%3E%3Cpath d='M15 4h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 6H6a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2v-6'/%3E%3Cpath d='M11 13 20 4'/%3E%3Cpath d='M15 4h5v5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.barra-painel { background: var(--sig) !important; color: #fff !important; }

.corpo {
    display: grid;
    grid-template-columns: minmax(0, 820px) 200px;
    gap: 28px;
    justify-content: center;
    padding: 36px 40px 64px;
    flex: 1;
}
.corpo-largo {
    grid-template-columns: minmax(0, 1080px) 200px;
}
.trilha { margin: 0 0 10px; color: var(--mut); font-size: 13px; font-weight: 600; }
.trilha span { margin: 0 6px; }
.artigo h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 3vw, 2.6rem);
    letter-spacing: -.04em;
    line-height: 1.1;
}
.lede { margin: 0 0 28px; font-size: 1.125rem; color: var(--ink-2); max-width: 62ch; }
.prosa > :first-child { margin-top: 0; }
.prosa h2 {
    margin: 36px 0 10px;
    font-size: 1.35rem;
    letter-spacing: -.03em;
    scroll-margin-top: 80px;
}
.prosa h3 { margin: 22px 0 8px; font-size: 1.05rem; }
.prosa p, .prosa li { color: var(--ink-2); }
.prosa p { max-width: 68ch; }
.prosa ul { padding-left: 1.15rem; }
.prosa code {
    font-family: var(--fm);
    font-size: .86em;
    background: var(--sig-soft);
    color: #123;
    padding: .1em .35em;
    border-radius: 6px;
}
.codigo { margin: 16px 0 22px; border-radius: 14px; overflow: hidden; box-shadow: var(--sombra); }
.codigo-barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: #161d2c;
    color: #9aa8bd;
    font-size: 12px;
    font-weight: 600;
}
.codigo-barra button {
    border: 0;
    background: transparent;
    color: #d5deea;
    font: 600 12px var(--f);
    cursor: pointer;
}
.prosa pre {
    margin: 0;
    padding: 16px 18px;
    background: var(--codigo);
    color: #e8edf5;
    overflow: auto;
    font-family: var(--fm);
    font-size: 13px;
    line-height: 1.55;
}
.prosa pre code { background: transparent; color: inherit; padding: 0; }

.prosa table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--sombra);
    margin: 16px 0 24px;
}
.prosa th, .prosa td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    font-size: 14px;
}
.prosa tr:last-child td { border-bottom: 0; }
.prosa th {
    background: #f8fafc;
    color: var(--mut);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.caminho { background: transparent !important; color: var(--ink) !important; font-weight: 500; }

.campos { margin-top: 8px; }
.obrig {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #fff1f0;
    color: #b42318;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    vertical-align: middle;
}

.verbo, .http {
    display: inline-block;
    min-width: 58px;
    text-align: center;
    font-family: var(--fm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    padding: 3px 8px;
    border-radius: 999px;
}
.verbo-get, .http-200, .http-202 { background: #e7f8ef; color: #067647; }
.verbo-post { background: #e8f1ff; color: #0047d6; }
.verbo-delete, .http-401, .http-402, .http-403, .http-404, .http-409, .http-422, .http-429 { background: #fff1f0; color: #b42318; }
.http-202 { background: #eef2ff; color: #3730a3; }

.grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 28px; }
.grade-2 { grid-template-columns: repeat(2, 1fr); }
.grade-4 { grid-template-columns: repeat(4, 1fr); }
.cartao {
    display: block;
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px 16px 14px;
    box-shadow: var(--sombra);
    text-decoration: none;
    color: inherit;
}
.cartao:hover { border-color: #b9d4ff; text-decoration: none; transform: translateY(-1px); }
.cartao-kicker { display: block; color: var(--sig); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.cartao strong { display: block; margin: 6px 0 4px; letter-spacing: -.02em; }
.cartao p { margin: 0; color: var(--mut); font-size: 14px; }
.chamada {
    background: var(--sig-soft);
    border-radius: 14px;
    padding: 14px 16px;
    margin: 16px 0;
}
.chamada p { margin: 0; }
.ferramentas { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.ferramentas li { margin: 0; }
.ferramentas code { background: #fff; border: 1px solid var(--line); padding: 6px 8px; border-radius: 8px; }

/* —— Referência API —— */
.api-faixa {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px;
    margin: 0 0 22px;
    padding: 14px;
    background: linear-gradient(135deg, #0c1220 0%, #152238 100%);
    border-radius: 16px;
    box-shadow: var(--sombra);
}
.api-faixa-item:first-child { grid-column: 1 / -1; }
.api-faixa-item {
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .08);
    min-width: 0;
}
.api-faixa-item span {
    display: block;
    margin-bottom: 4px;
    color: #93a0b5;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.api-faixa-item strong {
    display: block;
    color: #fff;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: -.01em;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
}
.api-faixa-item a { color: #9ec1ff; text-decoration: none; }
.api-faixa-item a:hover { color: #fff; text-decoration: underline; }
.api-faixa-item code {
    background: rgba(255, 255, 255, .1) !important;
    color: #dbe7ff !important;
    font-size: 12px;
}

.api-ancoras {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 28px;
}
.api-ancoras a {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--surf);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 650;
    text-decoration: none;
}
.api-ancoras a:hover {
    border-color: #b9d4ff;
    color: var(--sig-ink);
    background: var(--sig-soft);
    text-decoration: none;
}

.fluxo-api {
    margin: 12px 0 8px;
    padding: 0;
    list-style: none;
    counter-reset: fluxo;
}
.fluxo-api li {
    position: relative;
    margin: 0 0 10px;
    padding: 14px 16px 14px 52px;
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--sombra);
}
.fluxo-api li::before {
    counter-increment: fluxo;
    content: counter(fluxo);
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--sig);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.indice-rotas td:first-child { width: 88px; white-space: nowrap; }
.indice-rotas a { text-decoration: none; }
.indice-rotas a:hover .caminho { color: var(--sig-ink) !important; }

.grupo-api {
    margin: 48px 0 8px;
    scroll-margin-top: 80px;
}
.grupo-api-cabeca {
    margin: 0 0 8px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--surf);
    border: 1px solid var(--line);
    box-shadow: var(--sombra);
}
.grupo-api-cabeca h2 {
    margin: 0 0 4px;
    font-size: 1.4rem;
    letter-spacing: -.03em;
}
.grupo-api-cabeca p {
    margin: 0;
    color: var(--mut);
    font-size: 14px;
    max-width: none;
}

.op {
    margin: 18px 0 28px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surf);
    box-shadow: var(--sombra);
    overflow: hidden;
}
.op:first-of-type { border-top: 1px solid var(--line); }
.op-topo {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.op-topo-esq { min-width: 0; flex: 1; }
.op-topo-dir {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex: none;
}
.op-linha {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 8px;
}
.op h3 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    letter-spacing: -.02em;
    scroll-margin-top: 88px;
}
.op-resumo {
    margin: 0;
    color: var(--mut);
    font-size: 14px;
    max-width: 68ch;
}
.op-mime {
    margin: 0;
    padding: 10px 18px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    color: var(--ink-2);
    background: #fafbfc;
}
.chip-escopo, .chip-http {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 650;
    color: var(--ink-2);
    white-space: nowrap;
}
.chip-escopo code {
    background: var(--sig-soft) !important;
    color: var(--sig-ink) !important;
    font-size: 11px;
}
.chip-http .http { min-width: 42px; }

.op-grade {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}
.op-col {
    padding: 14px 16px 16px;
    min-width: 0;
}
.op-col + .op-col { border-left: 1px solid var(--line); }
.op-col-titulo {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--mut);
}
.op-col .op-col-titulo:not(:first-child) { margin-top: 18px; }
.bloco-campos { margin: 0 0 12px; }
.bloco-campos h4 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-2);
}
.bloco-campos table,
.op-col table.campos {
    margin: 0 0 8px;
    box-shadow: none;
    border-radius: 10px;
}
.bloco-campos th,
.bloco-campos td,
.op-col table.campos th,
.op-col table.campos td {
    padding: 8px 10px;
    font-size: 13px;
}
.op-vazio {
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px dashed var(--line);
    color: var(--mut);
    font-size: 13px;
}
.op-col .codigo { margin: 8px 0 12px; box-shadow: none; }
.op-col pre { font-size: 12px; max-height: 320px; }
.op .chamada {
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid #c9dbff;
}

.endpoint-grade { display: grid; gap: 10px; margin: 8px 0 28px; }
.endpoint-link {
    display: grid;
    grid-template-columns: 88px 1fr;
    gap: 2px 16px;
    align-items: center;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surf);
    box-shadow: var(--sombra);
    text-decoration: none;
    color: inherit;
}
.endpoint-link:hover { border-color: #b9d4ff; text-decoration: none; }
.endpoint-link .verbo { justify-self: start; }
.endpoint-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.endpoint-txt strong { font-size: 15px; letter-spacing: -.02em; }
.endpoint-txt code { font-size: 12px; color: var(--mut); background: transparent; padding: 0; }
.endpoint-txt em { font-style: normal; color: var(--mut); font-size: 13px; }
.op-pagina {
    margin: 8px 0 20px;
    border: 1px solid var(--line);
    box-shadow: var(--sombra);
}
.op-pagina .caminho { font-size: 15px; }
.op-irmaos {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    margin: 8px 0 24px;
}
.op-irmaos a, .op-irmaos span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--surf);
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    font-size: 14px;
}
.op-irmaos a span, .op-irmaos-sec { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.op-irmaos-prox { text-align: right; align-items: flex-end; }
.op-irmaos-sec { align-items: center; justify-content: center; text-align: center; }
.secao-intro { margin: 0 0 12px; }
.secao-intro > p { max-width: 74ch; }
.op-exemplo {
    border-top: 1px solid var(--line);
    background: #f8fafc;
    padding: 14px 16px 4px;
}
.op-exemplo-rotulo {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--mut);
}
.op-exemplo .codigo { margin: 0 0 16px; }
.op-col { overflow-x: auto; }
.op-curl {
    border-top: 1px solid var(--line);
    background: #f8fafc;
}
.op-curl summary {
    cursor: pointer;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
    list-style: none;
}
.op-curl summary::-webkit-details-marker { display: none; }
.op-curl summary::before {
    content: "▸";
    display: inline-block;
    margin-right: 8px;
    color: var(--sig);
    transition: transform .15s ease;
}
.op-curl[open] summary::before { transform: rotate(90deg); }
.op-curl .codigo { margin: 0 16px 16px; }

.op-get { border-left: 3px solid #067647; }
.op-post { border-left: 3px solid #0047d6; }
.op-delete { border-left: 3px solid #b42318; }

.api-rodape-doc {
    margin-top: 40px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--mut);
    font-size: 14px;
    max-width: none !important;
}

.nesta { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.nesta p { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--mut); }
.nesta a { display: block; padding: 4px 0 4px 10px; border-left: 2px solid var(--line); color: var(--mut); font-size: 13px; text-decoration: none; }
.nesta a:hover, .nesta a.ativo { color: var(--ink); border-color: var(--sig); }
.op-col-titulo, .op-exemplo-rotulo, .op h3, .prosa h2 { scroll-margin-top: 88px; }
.rodape {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 40px 28px;
    color: var(--mut);
    font-size: 13px;
    border-top: 1px solid var(--line);
}
.velo { position: fixed; inset: 0; background: rgba(8, 12, 20, .45); z-index: 25; }

@media (max-width: 1180px) {
    .corpo-largo { grid-template-columns: minmax(0, 1fr) 180px; }
    .grade-4 { grid-template-columns: repeat(2, 1fr); }
    .api-faixa { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
    .corpo, .corpo-largo { grid-template-columns: minmax(0, 1fr) 180px; padding: 28px 22px 48px; }
    .grade, .grade-2, .grade-4 { grid-template-columns: 1fr; }
    .op-grade { grid-template-columns: 1fr; }
    .op-col + .op-col { border-left: 0; border-top: 1px solid var(--line); }
    .op-topo { flex-direction: column; }
    .op-topo-dir { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
    .api-faixa { grid-template-columns: 1fr; padding: 10px; }
}
@media (max-width: 860px) {
    .corpo, .corpo-largo { grid-template-columns: minmax(0, 1fr); }
    .nesta { display: none; }
    .lado { transform: translateX(-105%); transition: transform .2s ease; }
    .lado.aberto { transform: none; }
    .miolo { margin-left: 0; }
    .menu-botao {
        display: inline-flex;
        align-items: center;
        border: 1px solid var(--line);
        background: #fff;
        border-radius: 999px;
        padding: 6px 12px;
        font: 700 13px var(--f);
        cursor: pointer;
    }
    .barra { padding: 0 14px; }
    .barra-marca { display: block; }
    .rodape { padding: 16px; }
}

@supports (-moz-appearance: none) {
    html,
    body,
    .nesta,
    .op-col {
        scrollbar-width: thin;
        scrollbar-color: var(--scroll) transparent;
    }
    .menu,
    .prosa pre {
        scrollbar-width: thin;
        scrollbar-color: var(--scroll-escuro) transparent;
    }
}
::-webkit-scrollbar,
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.menu::-webkit-scrollbar,
.nesta::-webkit-scrollbar,
.prosa pre::-webkit-scrollbar,
.op-col::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-button,
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
.menu::-webkit-scrollbar-button,
.nesta::-webkit-scrollbar-button,
.prosa pre::-webkit-scrollbar-button,
.op-col::-webkit-scrollbar-button {
    width: 0;
    height: 0;
    display: none;
}
::-webkit-scrollbar-track,
html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
.menu::-webkit-scrollbar-track,
.nesta::-webkit-scrollbar-track,
.prosa pre::-webkit-scrollbar-track,
.op-col::-webkit-scrollbar-track,
html::-webkit-scrollbar-corner,
.menu::-webkit-scrollbar-corner,
.prosa pre::-webkit-scrollbar-corner {
    background: transparent;
}
::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
.nesta::-webkit-scrollbar-thumb,
.op-col::-webkit-scrollbar-thumb {
    background-color: var(--scroll);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
.nesta::-webkit-scrollbar-thumb:hover,
.op-col::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-hover);
}
.menu::-webkit-scrollbar-thumb,
.prosa pre::-webkit-scrollbar-thumb {
    background-color: var(--scroll-escuro);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}
.menu::-webkit-scrollbar-thumb:hover,
.prosa pre::-webkit-scrollbar-thumb:hover {
    background-color: var(--scroll-escuro-hover);
}

/* —— Conta / login —— */
.form-entrar label, .conta-form label {
    display: block;
    margin: 16px 0 6px;
    font-size: 13px;
    font-weight: 750;
    color: var(--ink);
}
.form-entrar input, .conta-form input, .conta-form select, .conta-form textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: 500 15px/1.45 var(--f);
    color: var(--ink);
    background: #fff;
}
.conta-form textarea { font-family: var(--fm); font-size: 13px; min-height: 110px; resize: vertical; }
.form-acoes { display: flex; gap: 12px; margin-top: 16px; align-items: center; }
.btn {
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--sig);
    color: #fff;
    font: 700 14px var(--f);
    text-decoration: none;
    cursor: pointer;
}
.btn:hover { text-decoration: none; color: #fff; }
.btn-claro { background: #fff; color: var(--ink-2); border: 1px solid var(--line); }
.btn-claro:hover { color: var(--ink); }
.btn-perigo { background: #fff; color: #b42318; border: 1px solid #fecdca; }
.btn-sm { padding: 6px 10px; font-size: 12px; }
.aviso-erro { color: #b42318; font-weight: 650; }
.conta-nota { margin-top: 18px; color: var(--mut); font-size: 14px; }

.conta-console { max-width: none; }
.conta-bloco {
    margin: 0 0 28px;
    padding: 20px 22px;
    background: var(--surf);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--sombra);
}
.conta-bloco h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: -.02em; }
.conta-bloco > p { margin: 0 0 14px; color: var(--ink-2); max-width: 70ch; }
.conta-kpi { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.conta-kpi-card {
    min-width: 180px;
    padding: 14px 16px;
    border-radius: 12px;
    background: var(--sig-soft);
    border: 1px solid color-mix(in srgb, var(--sig) 18%, var(--line));
}
.conta-kpi-card span { display: block; font-size: 12px; font-weight: 700; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
.conta-kpi-card strong { font-size: 28px; letter-spacing: -.03em; color: var(--ink); }
.conta-tabela {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 14px;
    font-size: 13.5px;
}
.conta-tabela th, .conta-tabela td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.conta-tabela th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); }
.conta-acoes { text-align: right; white-space: nowrap; }
.conta-acoes .btn { margin-left: 4px; }
.conta-checks { display: flex; flex-wrap: wrap; gap: 12px 18px; margin: 10px 0 14px; }
.conta-check { display: inline-flex !important; align-items: center; gap: 6px; margin: 0 !important; font-weight: 600 !important; }
.conta-check input { width: auto; margin: 0; }
.conta-form .btn { margin-top: 8px; }
.conta-segredo {
    margin: 14px 0;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff8e6;
    border: 1px solid #f5d78e;
}
.conta-segredo-valor {
    display: block;
    margin: 8px 0 10px;
    padding: 10px 12px;
    background: #0d1117;
    color: #e8edf5;
    border-radius: 8px;
    font-family: var(--fm);
    font-size: 12.5px;
    word-break: break-all;
}
.conta-confirma {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    margin: 8px 0 12px !important;
    font-weight: 650 !important;
    color: #b42318;
}
.conta-confirma input { width: auto; margin-top: 3px; }
.conta-resposta {
    margin-top: 14px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.conta-resposta p { margin: 0; padding: 10px 14px; background: #f8fafc; font-size: 13px; }
.conta-resposta pre {
    margin: 0;
    padding: 14px 16px;
    background: var(--codigo);
    color: #e8edf5;
    overflow: auto;
    max-height: 360px;
    font-family: var(--fm);
    font-size: 12.5px;
}
.conta-msg { min-height: 1.2em; margin: 12px 0 0; font-weight: 650; color: var(--mut); }
.conta-msg.ok { color: #067647; }
.conta-msg.erro { color: #b42318; }
.conta-vazio, .conta-vazio-row td { color: var(--mut); font-size: 14px; }
.text-break { word-break: break-all; }
