/* Fuentes: styles_2024/typography.css (cargar en el layout) */

/* --- API console panels (request + response) --- */
:root {
    --api-surface: #0d1117;
    --api-surface-elevated: #161b22;
    --api-border: rgba(240, 246, 252, 0.1);
    --api-text: #e6edf3;
    --api-muted: #8b949e;
    --api-param: #79c0ff;
    --api-get: #3fb950;
    --api-json: #a371f7;
    --api-radius: 12px;
    --api-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 0 0 1px var(--api-border);
    --api-font-mono: var(--font-mono, "JetBrains Mono", ui-monospace, Menlo, Monaco, Consolas, monospace);
    --api-font-size-code: 15px;
    --api-font-size-input: 15px;
    --api-font-size-label: 14px;
    --brand-primary: #1a73e8;
    --brand-primary-dark: #1552a3;
    --brand-primary-soft: rgba(26, 115, 232, 0.1);
    --brand-primary-border: rgba(26, 115, 232, 0.22);
}

.fontJakarta {
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.dashTitle {
    font-size: clamp(1.625rem, 0.2663rem + 5.4348vw, 2.875rem);
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.dashSecondTitle {
    font-size: clamp(1rem, 0.1663rem + 4.4348vw, 1.6rem);
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.dashSecondTitleWhite {
    font-size: clamp(1rem, 0.1663rem + 4.4348vw, 1.6rem);
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    line-height: 1.5;
    color: #1a1a2e;
}

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

.dashSubtitle {
    font-size: clamp(0.6rem, 0.1663rem + 4.3478vw, 1.2rem);
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.dashItem {
    font-size: 16px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-weight: 600;
}

.codeWhite {
    color: var(--api-text);
}

.responseCode {
    font-family: var(--api-font-mono);
    font-size: var(--api-font-size-code);
    font-weight: 400;
    line-height: 1.6;
    color: var(--api-text);
}

.tableTitle {
    font-size: 17px !important;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif !important;
    font-weight: bold !important;
}

.tableKey {
    background-color: #1552a3;
    color: white;
    padding: 5px 10px;
    font-size: 13px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-weight: bold;
    border-radius: 5px !important;
}

.requiredTable {
    padding: 3px 12px;
    color: #ff0000;
    border-radius: 5px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.optionalTable {
    color: #506690;
    padding: 3px 12px;
    border-radius: 5px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-weight: bold;
}

.descriptionTable {
    font-size: 16px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-weight: 500;
}

.content-wrapper {
    background: white;
}

.codeParams {
    color: var(--api-param);
}

.codeBlue {
    color: #58a6ff;
}

a:hover {
    color: #1a73e8;
}

/* Panel contenedor (request + response) */
.api-panel {
    width: 100%;
    margin: 0.75rem 0 1.25rem;
    border-radius: var(--api-radius);
    border: 1px solid var(--api-border);
    background: var(--api-surface);
    box-shadow: var(--api-shadow);
    overflow: hidden;
}

.api-panel__toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px 0 14px;
    background: var(--api-surface-elevated);
    border-bottom: 1px solid var(--api-border);
}

.api-panel__method {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--api-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--api-get);
    background: rgba(63, 185, 80, 0.12);
    border: 1px solid rgba(63, 185, 80, 0.28);
}

.api-panel__method--json {
    color: var(--api-json);
    background: rgba(163, 113, 247, 0.12);
    border-color: rgba(163, 113, 247, 0.28);
}

.api-panel__method--curl {
    color: #79c0ff;
    background: rgba(121, 192, 255, 0.12);
    border-color: rgba(121, 192, 255, 0.28);
}

.api-panel__title {
    flex: 1;
    min-width: 0;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: var(--api-font-size-label);
    font-weight: 600;
    color: var(--api-muted);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.api-panel__meta,
.api-response-live__meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
}

.api-response-live__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    padding: 2px 9px;
    font-family: var(--api-font-mono);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 6px;
    border: 1px solid transparent;
    letter-spacing: 0.02em;
}

.api-response-live__badge--time {
    color: #8b949e;
    background: rgba(139, 148, 158, 0.12);
    border-color: rgba(139, 148, 158, 0.22);
    font-weight: 500;
}

.api-response-live__badge--success {
    color: #3fb950;
    background: rgba(63, 185, 80, 0.14);
    border-color: rgba(63, 185, 80, 0.32);
}

.api-response-live__badge--redirect {
    color: #79c0ff;
    background: rgba(121, 192, 255, 0.14);
    border-color: rgba(121, 192, 255, 0.32);
}

.api-response-live__badge--client {
    color: #d29922;
    background: rgba(210, 153, 34, 0.14);
    border-color: rgba(210, 153, 34, 0.32);
}

.api-response-live__badge--server,
.api-response-live__badge--error {
    color: #ff7b72;
    background: rgba(255, 123, 114, 0.14);
    border-color: rgba(255, 123, 114, 0.32);
}

.api-panel__body {
    margin: 0;
    padding: 14px 16px;
    background: var(--api-surface);
    border: none;
    border-radius: 0;
}

.api-panel--request .api-panel__body {
    padding: 0;
}

.codeParamsContainer {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    overflow-x: auto;
    padding: 14px 16px;
    font-family: var(--api-font-mono);
    font-size: var(--api-font-size-code);
    font-weight: 400;
    line-height: 1.6;
    color: var(--api-text);
    white-space: nowrap;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.codeParamsContainer::-webkit-scrollbar {
    height: 6px;
}

.codeParamsContainer::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 3px;
}

/* Botón copiar en toolbar */
.api-panel__toolbar [data-copy-endpoint],
.btn-copy-endpoint {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 0 0 auto !important;
    padding: 6px 12px !important;
    height: 32px !important;
    min-height: 32px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: var(--api-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--api-border);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.api-panel__toolbar [data-copy-endpoint]:hover,
.btn-copy-endpoint:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(240, 246, 252, 0.2);
    color: #fff;
}

.api-panel__toolbar [data-copy-endpoint]:focus,
.btn-copy-endpoint:focus {
    outline: 2px solid rgba(88, 166, 255, 0.5);
    outline-offset: 2px;
}

.api-panel__toolbar [data-copy-endpoint] i,
.btn-copy-endpoint i {
    font-size: 13px;
    opacity: 0.9;
}

.api-panel__toolbar [data-copy-endpoint].is-copied,
.btn-copy-endpoint.is-copied {
    color: #aff5b4;
    background: rgba(63, 185, 80, 0.18);
    border-color: rgba(63, 185, 80, 0.35);
}

.btn-copy-endpoint__label {
    display: inline;
}

/* Respuesta JSON (live + ejemplo) */
.api-panel--response pre.api-panel__body,
#apiResponseContainer pre.api-panel__body,
#apiResponseContainer2 pre.api-panel__body,
pre#example_api_response.api-panel__body,
.api-response-live pre.responsePre,
.api-response-live pre.api-panel__body {
    font-family: var(--api-font-mono);
    font-size: var(--api-font-size-code);
    line-height: 1.6;
    max-height: 520px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px 20px !important;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.api-panel--response pre.api-panel__body code,
.api-response-live pre.responsePre code,
#apiResponseContainer pre.responsePre code,
#apiResponseContainer2 pre.responsePre code,
.responseCode,
.responseCode * {
    white-space: inherit;
    word-break: inherit;
    overflow-wrap: inherit;
}

.api-panel--response pre.api-panel__body::-webkit-scrollbar,
pre#example_api_response.api-panel__body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.api-panel--response pre.api-panel__body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

#apiResponseContainer.api-panel,
#apiResponseContainer2.api-panel {
    background: var(--api-surface);
    border: 1px solid var(--api-border);
    border-radius: var(--api-radius);
    box-shadow: var(--api-shadow);
    padding: 0 !important;
    overflow: hidden;
}

#apiResponseContainer.api-panel .responsePre,
#apiResponseContainer2.api-panel .responsePre {
    background: transparent;
    color: var(--api-text);
    font-family: var(--api-font-mono);
    font-size: var(--api-font-size-code);
    line-height: 1.6;
    padding: 16px 20px !important;
    margin: 0;
    border-radius: 0;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow-x: hidden;
}

.api-response-live {
    width: 100%;
}

/* Syntax highlight JSON */
.responseCode .string {
    color: #a5d6ff;
}

.responseCode .number {
    color: #ffa657;
}

.responseCode .boolean {
    color: #ff7b72;
}

.responseCode .null {
    color: #8b949e;
}

.responseCode .key {
    color: #7ee787;
}

/* --- Try it out (parámetros interactivos) --- */
.api-try-it-out {
    margin: 1rem 0 1.5rem;
    padding: 1.25rem 1.35rem 1.35rem;
    background: #fff;
    border: 1px solid #e8ecf1;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
}

.api-try-it-out__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e8ecf1;
}

.api-try-it-out__endpoint {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
}

.api-try-it-out__path {
    font-family: var(--api-font-mono);
    font-size: 15px;
    font-weight: 600;
    color: #1a1a2e;
    background: transparent;
    padding: 0;
    letter-spacing: -0.01em;
}

.api-try-it-out__toggle-params {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    margin: 0;
    padding: 6px 10px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #57606a;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.api-try-it-out__toggle-params:hover {
    color: #1a1a2e;
    background: #f6f8fa;
}

.api-try-it-out__toggle-params[aria-expanded="true"] {
    color: #0969da;
    background: rgba(9, 105, 218, 0.06);
}

.api-try-it-out__toggle-icon {
    font-size: 11px;
    color: #8c959f;
    transition: transform 0.2s ease, color 0.15s ease;
}

.api-try-it-out__toggle-params:hover .api-try-it-out__toggle-icon,
.api-try-it-out__toggle-params[aria-expanded="true"] .api-try-it-out__toggle-icon {
    color: #0969da;
}

.api-try-it-out__toggle-params[aria-expanded="true"] .api-try-it-out__toggle-icon {
    transform: rotate(180deg);
}

.api-try-it-out__toggle-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #0969da;
    background: rgba(9, 105, 218, 0.1);
    border-radius: 10px;
}

.api-try-it-out__toggle-summary:not(:empty)::before {
    content: "·";
    margin: 0 8px 0 2px;
    color: #d0d7de;
    font-weight: 700;
}

.api-try-it-out__toggle-summary {
    font-family: var(--api-font-mono);
    font-size: 12px;
    font-weight: 400;
    color: #8c959f;
    max-width: min(42vw, 360px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-try-it-out__toggle-params[aria-expanded="true"] .api-try-it-out__toggle-summary {
    display: none;
}

@media (max-width: 720px) {
    .api-try-it-out__toggle-summary {
        display: none;
    }

    .api-try-it-out__header {
        flex-direction: column;
        align-items: stretch;
    }

    .api-try-it-out__toggle-params {
        align-self: flex-start;
    }
}

.api-try-it-out__params-panel {
    overflow: hidden;
    max-height: 2000px;
    transition: max-height 0.35s ease, opacity 0.25s ease, margin 0.25s ease;
    opacity: 1;
    margin-bottom: 0.5rem;
}

.api-try-it-out__params-panel--collapsed {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    pointer-events: none;
}

.api-try-it-out__actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 1rem;
}

.api-try-it-out__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    padding: 1rem 1.1rem;
    background: #fafbfc;
    border: 1px solid #e8ecf1;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .api-try-it-out__fields {
        grid-template-columns: 1fr;
    }
}

.api-try-it-out__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.api-try-it-out__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: var(--api-font-size-label);
    font-weight: 600;
    color: #1a1a2e;
}

.api-try-it-out__param-name {
    font-family: var(--api-font-mono);
    font-size: var(--api-font-size-label);
    font-weight: 500;
}

.api-try-it-out__badge {
    font-size: 12px;
    font-weight: 600;
    text-transform: lowercase;
    letter-spacing: 0.02em;
}

.api-try-it-out__badge--required {
    color: #cf222e;
}

.api-try-it-out__badge--optional {
    color: #8b949e;
}

.api-try-it-out__hint {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #656d76;
}

/* Inputs alineados en la misma fila del grid (hint debajo del campo) */
.api-try-it-out__field .api-try-it-out__label + .api-try-it-out__input,
.api-try-it-out__field .api-try-it-out__label + .api-try-it-out__input--locked {
    margin-top: 0;
}

.api-try-it-out__input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.api-try-it-out__input[type="number"]::-webkit-outer-spin-button,
.api-try-it-out__input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.api-try-it-out__input {
    width: 100%;
    padding: 11px 14px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: var(--api-font-size-input);
    line-height: 1.45;
    color: #1a1a2e;
    background: #ffffff;
    border: 1px solid #8c959f;
    border-radius: 8px;
    box-shadow: inset 0 1px 2px rgba(27, 31, 36, 0.06);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.api-try-it-out__input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.15);
}

.api-try-it-out__input::placeholder {
    color: #8b949e;
}

.api-try-it-out__input--locked {
    color: #656d76;
    background: #f6f8fa;
    border-color: #d8dee4;
    cursor: not-allowed;
    user-select: none;
}

.api-try-it-out__subscribe-hint {
    margin: 6px 0 0;
    font-size: var(--api-font-size-label);
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}

.api-try-it-out__subscribe-hint a {
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
}

.api-try-it-out__subscribe-hint a:hover {
    text-decoration: underline;
}

.api-try-it-out__recaptcha {
    margin: 0.75rem 0 0;
}

.api-try-it-out__recaptcha + .api-try-it-out__actions-row {
    margin-top: 1.25rem;
}

.api-try-it-out__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.api-try-it-out__send {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: #1a73e8;
    border: none;
    border-radius: var(--fl-btn-radius, 8px);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
}

.api-try-it-out__send:hover:not(:disabled) {
    background: #1558b8;
}

.api-try-it-out__send:disabled {
    opacity: 0.75;
    cursor: wait;
}

.api-try-it-out__postman {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    background: #ff6c37 !important;
    border-radius: var(--fl-btn-radius, 8px) !important;
    text-decoration: none !important;
    border: none !important;
}

.api-try-it-out__postman:hover {
    background: #ff844a !important;
    color: #fff !important;
}

.api-try-it-out__code-wrap {
    margin-top: 0.25rem;
}

.api-try-it-out .api-panel {
    margin: 0;
}

.api-try-it-out__preview-body {
    padding: 14px 16px !important;
    overflow-x: auto;
}

.api-try-it-out__url-preview {
    display: block;
    flex: none;
    font-family: var(--api-font-mono);
    font-size: var(--api-font-size-code);
    line-height: 1.6;
    color: var(--api-text);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Evita que .codeParamsContainer (flex) rompa el preview si se reutiliza la clase */
.api-try-it-out__url-preview.codeParamsContainer {
    display: block;
    flex: none;
    white-space: pre-wrap;
    padding: 0;
}

.api-try-it-out__url-preview .codeParams {
    color: var(--api-param);
}

/* Layout example-first (como flights-with-callSign + formulario bajo demanda) */
.api-try-it-out--example-first {
    margin: 0.5rem 0 1.25rem;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    text-align: left;
}

.api-try-it-out__request-stack {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.api-try-it-out--example-first .api-try-it-out__form {
    margin: 0;
}

.api-try-it-out--example-first .api-try-it-out__code-wrap--lead {
    margin: 0 0 0.75rem;
}

/* Toolbar: Edit parameters izquierda; selector + Copy derecha */
.api-try-it-out--example-first .api-panel__toolbar--example,
.api-try-it-out--example-first .api-panel__toolbar {
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.api-try-it-out--example-first .api-panel__toolbar--example > .api-try-it-out__edit-params {
    flex-shrink: 0;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.api-try-it-out--example-first .api-panel__toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.api-try-it-out--example-first .api-panel__toolbar-actions [data-copy-endpoint] {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.api-try-it-out--example-first .api-try-it-out__url-preview,
.api-try-it-out--example-first .api-try-it-out__preview-body {
    text-align: left;
}

.api-try-it-out--example-first .api-try-it-out__actions-row {
    justify-content: flex-start;
}

/* Selector de formato (nativo) en toolbar oscuro */
.api-try-it-out__format-select-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
    max-width: min(100%, 280px);
}

.api-try-it-out__format-select {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 220px;
    height: 30px;
    padding: 0 28px 0 10px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    color: #e6edf3;
    background-color: rgba(255, 255, 255, 0.08);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    border: 1px solid var(--api-border);
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.api-try-it-out__format-select:hover {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: rgba(240, 246, 252, 0.2);
}

.api-try-it-out__format-select:focus {
    outline: none;
    border-color: rgba(121, 192, 255, 0.45);
    box-shadow: 0 0 0 2px rgba(121, 192, 255, 0.15);
}

.api-try-it-out__format-select option {
    font-size: 13px;
    font-weight: 500;
    color: #24292f;
    background: #fff;
}

@media (max-width: 640px) {
    .api-try-it-out--example-first .api-panel__toolbar--example {
        flex-wrap: wrap;
    }

    .api-try-it-out--example-first .api-panel__toolbar-actions {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
    }

    .api-try-it-out__format-select-wrap {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
    }

    .api-try-it-out__format-select {
        max-width: none;
        width: 100%;
    }
}

.api-try-it-out__snippet {
    margin: 0;
    padding: 0;
    font-family: var(--api-font-mono);
    font-size: var(--api-font-size-code);
    line-height: 1.6;
    color: #e6edf3 !important;
    background: transparent !important;
    border: none;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.api-try-it-out__request-stack:has(.api-try-it-out__params-panel:not(.api-try-it-out__params-panel--collapsed)) .api-try-it-out__params-panel {
    margin-bottom: 0;
    border: 1px solid #e8ecf1;
    border-bottom: none;
    border-radius: 12px 12px 0 0;
    background: #fafbfc;
}

.api-try-it-out__request-stack:has(.api-try-it-out__params-panel:not(.api-try-it-out__params-panel--collapsed)) .api-try-it-out__code-wrap--lead .api-panel {
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.api-panel__toolbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-shrink: 0;
}

.api-panel__toolbar-actions [data-copy-endpoint],
.api-panel__toolbar-actions .api-try-it-out__edit-params {
    margin-left: 0 !important;
}

.api-try-it-out__edit-params {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px !important;
    height: 32px !important;
    min-height: 32px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: var(--api-text);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--api-border);
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.api-try-it-out__edit-params:hover,
.api-try-it-out__edit-params:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(240, 246, 252, 0.2);
    color: #fff;
    outline: none;
}

.api-try-it-out__edit-params.is-active,
.api-try-it-out__edit-params[aria-expanded="true"] {
    color: #79c0ff;
    background: rgba(121, 192, 255, 0.12);
    border-color: rgba(121, 192, 255, 0.35);
}

/* Iconos toolbar API (SVG, sin Font Awesome) */
.api-toolbar-icon {
    display: inline-block;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 15px 15px;
}

/* Sliders horizontales = editar parámetros */
.api-toolbar-icon--edit {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cline x1='2' y1='4.5' x2='14' y2='4.5' stroke='%23c9d1d9' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='6' cy='4.5' r='1.75' fill='%23c9d1d9'/%3E%3Cline x1='2' y1='8' x2='14' y2='8' stroke='%23c9d1d9' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='8' r='1.75' fill='%23c9d1d9'/%3E%3Cline x1='2' y1='11.5' x2='14' y2='11.5' stroke='%23c9d1d9' stroke-width='1.5' stroke-linecap='round'/%3E%3Ccircle cx='5' cy='11.5' r='1.75' fill='%23c9d1d9'/%3E%3C/svg%3E");
}

/* Dos hojas superpuestas = copiar */
.api-toolbar-icon--copy {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='5.5' y='5.5' width='8' height='9' rx='1.25' stroke='%2379c0ff' stroke-width='1.5'/%3E%3Cpath d='M3.5 11V3.75A1.25 1.25 0 0 1 4.75 2.5H11.5' stroke='%2379c0ff' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
}

.api-toolbar-icon--copy.api-toolbar-icon--code {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Crect x='5.5' y='5.5' width='8' height='9' rx='1.25' stroke='%237ee787' stroke-width='1.5'/%3E%3Cpath d='M3.5 11V3.75A1.25 1.25 0 0 1 4.75 2.5H11.5' stroke='%237ee787' stroke-width='1.5' stroke-linecap='round'/%3E%3Cpath d='M6 8.5h4M8 6.5v4' stroke='%237ee787' stroke-width='1.25' stroke-linecap='round'/%3E%3C/svg%3E");
}

.btn-copy-endpoint.is-copied .api-toolbar-icon--copy,
.api-toolbar-icon--copy.is-copied {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5 6.5 11.5 12.5 4.5' stroke='%23aff5b4' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.api-try-it-out--example-first .api-try-it-out__params-panel {
    margin-bottom: 1rem;
}

.api-try-it-out__params-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 1rem 1.1rem 0.65rem;
    border-bottom: 1px solid #e8ecf1;
    background: #fafbfc;
    border-radius: 10px 10px 0 0;
}

.api-try-it-out__params-intro {
    flex: 1;
    min-width: 0;
    margin: 0;
    padding: 0;
    font-size: var(--api-font-size-label);
    line-height: 1.55;
    color: #57606a;
    border-bottom: none;
}

.api-try-it-out__collapse-params {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: -2px 0 0;
    padding: 0;
    color: #57606a;
    background: #fff;
    border: 1px solid #d8dee4;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.api-try-it-out__collapse-params:hover,
.api-try-it-out__collapse-params:focus {
    color: #1a73e8;
    background: #f0f6ff;
    border-color: #b6d4fe;
    outline: none;
}

.api-try-it-out__collapse-params i {
    font-size: 12px;
    line-height: 1;
}

.api-try-it-out__params-panel:has(.api-try-it-out__params-header) .api-try-it-out__fields {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.api-try-it-out__request-stack:has(.api-try-it-out__params-panel:not(.api-try-it-out__params-panel--collapsed)) .api-try-it-out__params-header {
    border-radius: 12px 12px 0 0;
}

.api-try-it-out--example-first .api-try-it-out__actions-row {
    margin-top: 1rem;
}

.api-try-it-out--example-first .api-try-it-out__recaptcha + .api-try-it-out__actions-row {
    margin-top: 1.35rem;
}

.api-try-it-out__curl {
    margin: 0;
    padding: 0;
    font-family: var(--api-font-mono);
    font-size: 13px;
    line-height: 1.65;
    color: #e6edf3 !important;
    background: transparent !important;
    border: none;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* --- API response schema (tabla de campos JSON) --- */
.api-schema {
    margin: 2.25rem 0 1.5rem;
}

.api-schema__header {
    margin-bottom: 1rem;
}

.api-schema__title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.api-schema__badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 4px 8px;
    border-radius: 6px;
    font-family: var(--api-font-mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--brand-primary-dark);
    background: var(--brand-primary-soft);
    border: 1px solid var(--brand-primary-border);
}

.api-schema__title {
    margin: 0;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: clamp(1rem, 0.2rem + 1.2vw, 1.35rem);
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

.api-schema__subtitle {
    margin: 0.5rem 0 0;
    max-width: 52rem;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: #57606a;
}

.api-schema__table-wrap {
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    overflow: hidden;
}

.api-schema__table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
}

.api-schema__table thead {
    background: linear-gradient(180deg, #f6f8fa 0%, #f0f3f6 100%);
    border-bottom: 1px solid #e8ecf1;
}

.api-schema__table th {
    padding: 11px 16px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #57606a;
    text-align: left;
    white-space: nowrap;
}

.api-schema__table th:first-child {
    width: 28%;
    min-width: 140px;
}

.api-schema__table tbody tr {
    border-bottom: 1px solid #e8ecf1;
    transition: background-color 0.12s ease;
}

.api-schema__table tbody tr:last-child {
    border-bottom: none;
}

.api-schema__table tbody tr:nth-child(even) {
    background: #fafbfc;
}

.api-schema__table tbody tr:hover {
    background: rgba(26, 115, 232, 0.06);
}

.api-schema__field-cell,
.api-schema__desc-cell {
    padding: 11px 16px;
    vertical-align: top;
}

.api-schema__field {
    display: inline-block;
    font-family: var(--api-font-mono);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--brand-primary-dark);
    background: var(--brand-primary-soft);
    border: 1px solid var(--brand-primary-border);
    padding: 3px 8px;
    border-radius: 6px;
    white-space: nowrap;
}

.api-schema__desc {
    display: block;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.55;
    color: #424a53;
}

@media (max-width: 640px) {
    .api-schema__table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .api-schema__table {
        min-width: 480px;
    }

    .api-schema__field-cell,
    .api-schema__desc-cell {
        padding: 10px 12px;
    }
}

/* Dashboard — API access key */
.api-access-key {
    margin-bottom: 1.25rem;
}

.api-access-key__title {
    margin-bottom: 0.35rem;
}

.api-access-key__accent {
    color: var(--brand-primary, #1a73e8);
}

.api-access-key__hint {
    margin: 0 0 0.85rem;
    font-size: 14px;
    line-height: 1.5;
    color: #57606a;
}

.api-access-key__hint code {
    font-family: var(--api-font-mono);
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f0f3f6;
    color: #1552a3;
}

.api-access-key__note {
    margin: 0.75rem 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #656d76;
}

.api-access-key__panel {
    display: block;
    border: 1px solid #e8ecf1;
    border-radius: 12px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(27, 31, 36, 0.04);
}

.api-access-key__field {
    display: block;
    width: 100%;
    min-height: 72px;
    max-height: 160px;
    margin: 0;
    padding: 14px 16px;
    font-family: var(--api-font-mono) !important;
    font-size: 12.5px;
    font-weight: 400;
    line-height: 1.65;
    color: #1a1a2e;
    background: #f6f8fa;
    border: none;
    border-bottom: 1px solid #e8ecf1;
    border-radius: 0;
    resize: vertical;
    word-break: break-all;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.api-access-key__field:focus {
    outline: none;
    background: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(26, 115, 232, 0.35);
}

.api-access-key__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    padding: 12px 14px;
    background: #ffffff;
}

.api-access-key__actions-group {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.api-access-key__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 16px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    border: 1px solid transparent;
    border-radius: var(--fl-btn-radius, 8px);
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.api-access-key__btn--copy {
    color: #ffffff;
    background: var(--brand-primary, #1a73e8);
    border-color: var(--brand-primary, #1a73e8);
}

.api-access-key__btn--copy:hover,
.api-access-key__btn--copy:focus {
    color: #ffffff;
    background: var(--brand-primary-dark, #1552a3);
    border-color: var(--brand-primary-dark, #1552a3);
    text-decoration: none;
}

.api-access-key__btn--reset {
    color: #cf222e;
    background: #ffffff;
    border-color: #cf222e;
}

.api-access-key__btn--reset:hover,
.api-access-key__btn--reset:focus {
    color: #a40e26;
    background: #fff5f5;
    border-color: #a40e26;
}

.api-access-key--empty .api-access-key__btn--copy {
    margin-top: 0.25rem;
}

@media (max-width: 480px) {
    .api-access-key__actions {
        justify-content: stretch;
    }

    .api-access-key__actions-group {
        flex-direction: column;
        width: 100%;
    }

    .api-access-key__btn {
        width: 100%;
    }
}

/* Dashboard page: onboarding + API reference */
.dashboard-page {
    scroll-behavior: smooth;
}

.dashboard-page__body {
    padding-top: 1.5rem;
}

.dashboard-page__hero {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e8ecf0;
}

.dashboard-page__eyebrow {
    margin: 0 0 0.35rem;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #1a73e8;
}

.dashboard-page__title {
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.dashboard-page__title-accent {
    color: #1a73e8;
}

.dashboard-page__lead {
    width: 100%;
    max-width: 42rem;
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #4b5563;
}

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

.dashboard-page__lead--single-line,
.dashboard-onboarding__step-lead--single-line,
.dashboard-endpoints-catalog__intro--single-line {
    display: block;
    width: 100%;
    max-width: none;
    white-space: nowrap;
}

#dashboard-step-try-it .documentation-try-it-block.pt-4 {
    padding-top: 0 !important;
}

.dashboard-try-it-picker__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.dashboard-try-it-picker__label-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

.dashboard-try-it-picker__label {
    margin: 0;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a1a2e;
}

.dashboard-try-it-picker__select {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    padding: 0 36px 0 12px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a2e;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%234b5563' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    border: 1px solid #c8d1da;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(27, 31, 36, 0.04);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.dashboard-try-it-picker__select:hover {
    border-color: #1a73e8;
}

.dashboard-try-it-picker__select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.dashboard-try-it-picker__docs-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-try-it-picker__docs-link:hover,
.dashboard-try-it-picker__docs-link:focus {
    color: #1552a3;
    text-decoration: none;
}

.dashboard-try-it-picker__docs-link:hover .dashboard-try-it-picker__docs-icon,
.dashboard-try-it-picker__docs-link:focus .dashboard-try-it-picker__docs-icon {
    transform: translate(1px, -1px);
}

.dashboard-try-it-picker__docs-icon {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.dashboard-try-it-picker__panels--loading {
    opacity: 0.55;
    pointer-events: none;
}

.dashboard-try-it-picker__error {
    margin: 1rem 0;
    color: #b42318;
    font-size: 14px;
}

.dashboard-try-it-panel[hidden] {
    display: none !important;
}

.dashboard-page__divider {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid #e8ecf0;
}

.dashboard-onboarding {
    margin-bottom: 0.5rem;
}

.dashboard-onboarding__steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 2rem minmax(0, 1fr) 2rem minmax(0, 1fr);
    align-items: center;
    gap: 0 6px;
    margin: 0 0 2rem;
    padding: 0;
    background: transparent;
    border: none;
}

.dashboard-onboarding__step-connector {
    display: block;
    height: 2px;
    background: linear-gradient(90deg, #d8dee4 0%, #e8ecf0 100%);
    border-radius: 1px;
}

.dashboard-onboarding__step-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 14px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #4b5563;
    background: #ffffff;
    border: 1px solid #d8dee4;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(27, 31, 36, 0.04);
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-onboarding__step-indicator-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    border-radius: 50%;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.dashboard-onboarding__step-indicator-label {
    white-space: nowrap;
}

.dashboard-onboarding__step-indicator:hover,
.dashboard-onboarding__step-indicator:focus {
    color: #1552a3;
    background: #eef5ff;
    border-color: #1a73e8;
    text-decoration: none;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.18);
}

.dashboard-onboarding:not(:has(.dashboard-onboarding__step:target)) .dashboard-onboarding__step-indicator:first-child,
.dashboard-onboarding:has(#dashboard-step-key:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-key"],
.dashboard-onboarding:has(#dashboard-step-try-it:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-try-it"],
.dashboard-onboarding:has(#dashboard-step-next:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-next"] {
    color: #ffffff;
    background: #1a73e8;
    border-color: #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.28);
}

.dashboard-onboarding:not(:has(.dashboard-onboarding__step:target)) .dashboard-onboarding__step-indicator:first-child .dashboard-onboarding__step-indicator-num,
.dashboard-onboarding:has(#dashboard-step-key:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-key"] .dashboard-onboarding__step-indicator-num,
.dashboard-onboarding:has(#dashboard-step-try-it:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-try-it"] .dashboard-onboarding__step-indicator-num,
.dashboard-onboarding:has(#dashboard-step-next:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-next"] .dashboard-onboarding__step-indicator-num {
    color: #1a73e8;
    background: #ffffff;
}

.dashboard-onboarding:not(:has(.dashboard-onboarding__step:target)) .dashboard-onboarding__step-indicator:first-child:hover,
.dashboard-onboarding:not(:has(.dashboard-onboarding__step:target)) .dashboard-onboarding__step-indicator:first-child:focus,
.dashboard-onboarding:has(#dashboard-step-key:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-key"]:hover,
.dashboard-onboarding:has(#dashboard-step-key:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-key"]:focus,
.dashboard-onboarding:has(#dashboard-step-try-it:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-try-it"]:hover,
.dashboard-onboarding:has(#dashboard-step-try-it:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-try-it"]:focus,
.dashboard-onboarding:has(#dashboard-step-next:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-next"]:hover,
.dashboard-onboarding:has(#dashboard-step-next:target) .dashboard-onboarding__step-indicator[href="#dashboard-step-next"]:focus {
    color: #ffffff;
    background: #1552a3;
    border-color: #1552a3;
}

.dashboard-onboarding__step {
    scroll-margin-top: 6rem;
    margin-bottom: 1.5rem;
    padding: 1.35rem 1.35rem 1.5rem;
    background: #ffffff;
    border: 1px solid #e8ecf0;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(27, 31, 36, 0.04);
}

.dashboard-onboarding__step:last-child {
    margin-bottom: 0;
}

.dashboard-onboarding__step--featured {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 48%);
    border-color: var(--brand-primary-border);
    box-shadow: 0 4px 18px rgba(26, 115, 232, 0.08);
}

.dashboard-onboarding__guest-card {
    padding: 1rem 1.1rem;
    background: var(--brand-primary-soft);
    border: 1px solid var(--brand-primary-border);
    border-radius: 10px;
}

.dashboard-onboarding__guest-card .dashboard-onboarding__step-lead {
    margin-bottom: 0.85rem;
}

.dashboard-onboarding__trial-note {
    margin: 0 0 1rem;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    color: #1a1a2e;
}

.dashboard-onboarding__trial-note strong {
    font-weight: 700;
    color: #1552a3;
}

.dashboard-onboarding__step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 0.65rem;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #1a1a2e;
}

.dashboard-onboarding__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    background: #1a73e8;
    border-radius: 50%;
}

.dashboard-onboarding__step-lead {
    margin: 0 0 1rem;
    width: 100%;
    max-width: none;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}

.dashboard-onboarding__guest-card .dashboard-onboarding__cta {
    margin-top: 0;
}

.dashboard-onboarding__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.5rem;
    padding: 12px 28px;
    min-height: 46px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    color: #ffffff !important;
    text-decoration: none !important;
    background: #1a73e8 !important;
    border: none;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.32);
    transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.dashboard-onboarding__cta:hover,
.dashboard-onboarding__cta:focus {
    color: #ffffff !important;
    text-decoration: none !important;
    background: #1552a3 !important;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.38);
    transform: translateY(-1px);
}

.dashboard-onboarding__cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.28);
}

.dashboard-onboarding__cta-icon {
    flex-shrink: 0;
}

.dashboard-onboarding__cta-note {
    margin: 10px 0 0;
    max-width: 36rem;
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
}

.dashboard-onboarding__cta-note strong {
    font-weight: 700;
    color: #1a73e8;
}

#dashboard-step-try-it .pt-4 {
    padding-top: 0 !important;
}

#dashboard-step-try-it .dashSecondTitle:first-of-type {
    font-size: 1rem;
    margin-top: 0.25rem;
}

.dashboard-next-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 0.5rem;
}

.dashboard-next-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px 16px;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.dashboard-next-card:hover,
.dashboard-next-card:focus {
    text-decoration: none;
    background: #fff;
    border-color: rgba(26, 115, 232, 0.35);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.08);
}

.dashboard-next-card__title {
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #1a73e8;
}

.dashboard-next-card__desc {
    font-size: 12px;
    line-height: 1.45;
    color: #656d76;
}

.dashboard-endpoints-catalog__intro {
    margin: 0 0 1.25rem;
    max-width: 42rem;
    font-size: 14px;
    line-height: 1.55;
    color: #4b5563;
}

.dashboard-endpoints-catalog__intro--single-line {
    max-width: none;
}

.dashboard-endpoints-catalog__group {
    margin-bottom: 1.5rem;
}

.dashboard-endpoints-catalog__group:last-child {
    margin-bottom: 0;
}

.dashboard-endpoints-catalog__group-title {
    margin: 0 0 0.65rem;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
}

.dashboard-endpoints-catalog__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
}

.dashboard-endpoints-catalog__list > li {
    display: contents;
}

.dashboard-endpoints-catalog__item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 100%;
    min-height: calc(24px + 4px + (14px * 1.35) + (12px * 1.45 * 2));
    padding: 12px 14px;
    box-sizing: border-box;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    border-radius: 8px;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.dashboard-endpoints-catalog__item:hover,
.dashboard-endpoints-catalog__item:focus {
    border-color: rgba(26, 115, 232, 0.28);
    box-shadow: 0 2px 6px rgba(26, 115, 232, 0.06);
    color: inherit;
    text-decoration: none;
}

.dashboard-endpoints-catalog__item:hover .dashboard-endpoints-catalog__item-title,
.dashboard-endpoints-catalog__item:focus .dashboard-endpoints-catalog__item-title {
    color: #1a73e8;
}

.dashboard-endpoints-catalog__item-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.dashboard-endpoints-catalog__item-title {
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    color: #1a1a2e;
}

.dashboard-endpoints-catalog__item-link {
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    white-space: nowrap;
}

.dashboard-endpoints-catalog__item:hover .dashboard-endpoints-catalog__item-link,
.dashboard-endpoints-catalog__item:focus .dashboard-endpoints-catalog__item-link {
    color: #1552a3;
    text-decoration: underline;
}

.dashboard-endpoints-catalog__item-summary {
    display: block;
    flex: 1 1 auto;
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    min-height: calc(12px * 1.45 * 2);
    color: #656d76;
}

.dashboard-next-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 1.25rem;
    padding-top: 1.15rem;
    border-top: 1px solid #e8ecf0;
}

.dashboard-next-actions__link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #1a73e8;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid var(--brand-primary-border);
    border-radius: 8px;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.dashboard-next-actions__link:hover,
.dashboard-next-actions__link:focus {
    color: #1552a3;
    background: var(--brand-primary-soft);
    border-color: #1a73e8;
    text-decoration: none;
}

.api-reference-groups {
    margin-top: 0.5rem;
}

.api-reference-groups__title {
    margin-bottom: 0.35rem;
}

.api-reference-groups__intro {
    max-width: 42rem;
    margin-bottom: 1.5rem;
}

.api-reference-group {
    margin-bottom: 1.75rem;
}

.api-reference-group:last-child {
    margin-bottom: 0;
}

.api-reference-group__title {
    margin: 0 0 0.65rem;
    font-family: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #1a1a2e;
}

.api-reference-group__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.api-reference-group__item {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
}

.api-reference-group__item.is-active .api-reference-group__link {
    color: #1a73e8;
    font-weight: 600;
}

.api-reference-group__arrow {
    flex-shrink: 0;
    opacity: 0.85;
}

.api-reference-group__link {
    display: inline-block;
    padding: 6px 0;
    font-size: 14px;
    color: #24292f;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.api-reference-group__link:hover,
.api-reference-group__link:focus {
    color: #1a73e8;
}

@media (max-width: 1100px) {
    .dashboard-page__lead--single-line,
    .dashboard-onboarding__step-lead--single-line,
    .dashboard-endpoints-catalog__intro--single-line {
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .dashboard-onboarding__steps {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .dashboard-onboarding__step-connector {
        display: none;
    }

    .dashboard-onboarding__step-indicator {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-onboarding__step-indicator-label {
        white-space: normal;
    }
}

@media (max-width: 640px) {

    .dashboard-next-cards {
        grid-template-columns: 1fr;
    }

    .dashboard-endpoints-catalog__list {
        grid-template-columns: 1fr;
    }
}