:root {
    font-size: 95%;
    --ap-ink: #101010;
    --ap-paper: #fff;
    --ap-button-light: linear-gradient(168deg, #f2f2f2 0%, #dedede 47%, #acacac 100%);
    --ap-button-dark: linear-gradient(170deg, #303030 0%, #171717 54%, #0b0b0b 100%);
}

:is(a, button, [role="button"]):focus-visible {
    outline: 2px solid #939393;
    outline-offset: 4px;
}

:is(a, button, [role="button"]).bg-neon,
.editorial-home a.violet-button,
.editorial-home a.white-pulse-btn,
.brand-action-button,
button[style*="background: var(--brand-primary)"] {
    background: var(--ap-button-light) !important;
    border: 1px solid #d8d8d8 !important;
    color: var(--ap-ink) !important;
    box-shadow: inset 0 1px 0 #fff, 0 4px 9px #0004, 0 0 20px #fff2 !important;
    transition: box-shadow .2s ease, translate .2s ease;
}

:is(a, button, [role="button"]).bg-neon:hover,
.editorial-home a.violet-button:hover,
.editorial-home a.white-pulse-btn:hover,
.brand-action-button:hover,
button[style*="background: var(--brand-primary)"]:hover {
    box-shadow: inset 0 1px 0 #fff, 0 7px 16px #0005, 0 0 27px #fff5 !important;
    translate: 0 -1px;
}

.editorial-home a.quiet-button {
    background: var(--ap-button-dark);
    border-color: #656565;
    color: var(--ap-paper);
    box-shadow: inset 0 1px 0 #fff2, 0 4px 12px #0005;
}

.editorial-home a.quiet-button:hover {
    border-color: #bbb;
    box-shadow: inset 0 1px 0 #fff3, 0 0 22px #fff2;
}

@media (prefers-reduced-motion: reduce) {
    :is(a, button, [role="button"]).bg-neon,
    html:not([data-landing-motion="on"]) .editorial-home :is(a.violet-button, a.white-pulse-btn, a.quiet-button) {
        animation: none !important;
        transition: none;
        translate: none;
    }
}
html[data-theme="white"] :is(.text-neon, .brand-action-button.text-white),
html[data-theme="white"] :is(.bg-neon, .brand-action-button) .text-white {
    color: #202020 !important;
}
.ap-panel-banner,
.ap-rewards-banner {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid #505050;
    border-radius: 1rem;
    background: #101010;
    box-shadow: inset 0 1px 0 #fff2, 0 12px 24px #0003;
}
.ap-panel-banner-media { display: flex; align-items: center; min-height: clamp(142px, 14vw, 186px); position: relative; }
.ap-panel-banner picture,
.ap-rewards-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.ap-panel-banner picture img,
.ap-rewards-banner > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ap-panel-banner::after,
.ap-rewards-banner::after {
    position: absolute;
    content: "";
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(90deg, #080808f5 0%, #080808dc 28%, #08080860 53%, transparent 74%);
}
.ap-panel-banner-copy,
.ap-rewards-banner-copy { color: #fff; padding: 1.4rem clamp(1rem, 4vw, 4rem); }
.ap-panel-banner-copy h2 { font-size: clamp(1.25rem, 2.55vw, 2.5rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 800; }
.ap-panel-banner-copy p { margin-top: .45rem; color: #d5d5d5; font-size: clamp(.8rem, 1.3vw, 1rem); }
.ap-rewards-banner-copy { position: relative; padding-block: 1.75rem; }
.ap-rewards-banner-copy :is(h1, h1 span) { color: #fff !important; }
.ap-rewards-banner-copy p { color: #d5d5d5 !important; }
@media (max-width: 640px) {
    .ap-panel-banner-media { min-height: 132px; }
    .ap-panel-banner-copy { max-width: 74%; }
    .ap-rewards-banner > img { object-position: 67% center; }
    .ap-rewards-banner::after { background: linear-gradient(90deg, #080808f5, #080808b0 67%, #08080865); }
}
html[data-theme="black"] .dashboard-shell {
    color-scheme: dark;
}
html[data-theme="black"] .dashboard-shell :is(.dash-card,.dashboard-card,.ap-panel-banner) {
    border-color: #3b3b3b;
    background-color: #101010;
    box-shadow: inset 0 1px 0 #e2e2e212, 0 12px 28px #0005;
}
.ap-chrome-card {
    isolation: isolate;
    border: 1px solid transparent;
    background:
        radial-gradient(ellipse at 0 0, #343434, transparent 56%) padding-box,
        linear-gradient(145deg, #1c1c1c, #090909 64%, #1a1a1a) padding-box,
        linear-gradient(138deg, #eee 0%, #878787 19%, #353535 47%, #aaa 80%, #484848 100%) border-box;
    box-shadow: inset 0 0 0 1px #ffffff0d, 0 8px 20px #0008;
    color: #eee;
    font-variant-numeric: tabular-nums;
}
.ap-chrome-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: repeating-linear-gradient(115deg, #fff 0 1px, transparent 1px 5px);
    opacity: .025;
    pointer-events: none;
}
.ap-chrome-card :is(.text-gray-300,.text-gray-400) { color: #bdbdbd !important; }
.ap-chrome-card .text-gray-100, .ap-chrome-value { color: #efefef !important; }
.ap-chrome-badge {
    color: #141414;
    border: 1px solid #d0d0d0;
    background: linear-gradient(167deg, #f2f2f2, #c8c8c8 52%, #969696);
    box-shadow: inset 0 1px 0 #fff9, 0 1px 8px #fff2;
}
.ap-chrome-track {
    background: #080808;
    border: 1px solid #444;
    box-shadow: inset 0 1px 3px #000;
}
.ap-chrome-fill {
    background: linear-gradient(#eee 0%, #b6b6b6 50%, #858585 52%, #d6d6d6);
}
html[data-theme="black"] .dashboard-shell :is(.dashboard-panel, .dashboard-action, .dashboard-secondary-card) {
    background: linear-gradient(142deg, #151515, #0b0b0b 70%);
    border-color: #383838;
    box-shadow: inset 0 1px 0 #fff0f00e, 0 8px 20px #0003;
}
html[data-theme="black"] .dashboard-shell .dashboard-action:hover {
    border-color: #969696;
    background: linear-gradient(142deg, #242424, #111 70%);
}
html[data-theme="black"] .dashboard-shell .dashboard-icon {
    color: #f0f0f0;
    background: linear-gradient(148deg, #3f3f3f, #202020 50%, #121212);
    border: 1px solid #616161;
    box-shadow: inset 0 1px 0 #ffffff36;
}
/* Paleta das páginas de acesso, documentação e cobrança pública. */
html[data-theme="black"] body.ap-access { background-color: #090909 !important; color: #ededed !important; }
body.ap-api-doc { background: #090909; color: #ededed; }
.ap-api-doc :is(.bg-white,.bg-slate-50,.bg-slate-100) { background-color: #101010; }
.ap-api-doc :is(.border-slate-100,.border-slate-200,.border-slate-800) { border-color: #343434; }
.ap-api-doc :is(.text-slate-900,.text-slate-800,.text-slate-700) { color: #e8e8e8; }
.ap-api-doc :is(.text-slate-600,.text-slate-500,.text-slate-400) { color: #bcbcbc; }
.ap-api-doc .hover\:bg-slate-100:hover { background-color: #242424; }
.ap-public-payment .site-header { background: linear-gradient(155deg,#242424,#090909); }
.ap-public-payment .btn-submit:not(:disabled):not(.btn-gpay-disabled) {
    background: var(--ap-button-light); color: #101010; border: 1px solid #bcbcbc;
}
html[data-theme="white"] .ap-client-sidebar :is(.ap-sidebar-surface,.ap-sidebar-brand) {
    background: #fafafa !important;
    border-color: #dedede !important;
}
html[data-theme="white"] .ap-client-sidebar .sidebar-menu-scroll :is(a,button) {
    color: #252525 !important;
}
html[data-theme="white"] .ap-client-sidebar .sidebar-menu-scroll :is(a,button):is(.text-neon,:hover) {
    background: #e7e7e7 !important;
    color: #141414 !important;
}
html[data-theme="white"] .ap-client-sidebar .brand-action-button,
html[data-theme="white"] .ap-client-sidebar .brand-action-button .text-white {
    color: #181818 !important;
}
html[data-theme="white"] .ap-client-sidebar .ap-chrome-card {
    background: linear-gradient(145deg,#fff,#e9e9e9 67%,#fafafa) padding-box,
        linear-gradient(140deg,#bababa,#f1f1f1,#a4a4a4) border-box;
    color: #282828;
    box-shadow: inset 0 1px 0 #fff, 0 4px 12px #0001;
}
html[data-theme="white"] .ap-client-sidebar .ap-chrome-card :is(.text-gray-100,.text-gray-300,.text-gray-400,.ap-chrome-value) {
    color: #303030 !important;
}
html[data-theme="white"] .ap-client-sidebar .ap-chrome-track {
    background: #dedede;
    border-color: #b8b8b8;
    box-shadow: inset 0 1px 3px #0002;
}
html[data-theme="white"] .ap-client-sidebar .ap-chrome-fill {
    background: linear-gradient(#777,#414141);
}
html[data-theme="white"] .dashboard-shell .dashboard-prize-caption :is(.text-white,.text-neon) {
    color: #f2f2f2 !important;
}
html[data-theme="white"] .dashboard-shell .dashboard-filter.is-active {
    color: #242424 !important;
    border-color: #929292 !important;
}
/* Contrast for the client interface in White mode. */
html[data-ap-client][data-theme="white"] {
    --mode-text: #181818 !important;
    --mode-text-muted: #555555 !important;
}
html[data-ap-client][data-theme="white"] body :is(input, textarea)::placeholder {
    color: #595959 !important;
}
html[data-ap-client][data-theme="white"] body :is(.brand-action-button, .bg-neon):is(a, button, [role="button"]),
html[data-ap-client][data-theme="white"] body :is(.brand-action-button, .bg-neon):is(a, button, [role="button"]) .text-white {
    color: #151515 !important;
}
html[data-ap-client][data-theme="white"] body .ap-client-sidebar .sidebar-menu-scroll :is(a,button).text-neon {
    background: #202020 !important;
    color: #fff !important;
}
html[data-ap-client][data-theme="white"] .dashboard-shell .dashboard-filter.is-active {
    background: #202020 !important;
    border-color: #202020 !important;
    color: #fff !important;
}
html[data-ap-client][data-theme="white"] .dashboard-empty-description {
    color: #555 !important;
}
html[data-ap-client][data-theme="white"] .dashboard-shell .apexcharts-legend-text {
    color: #555 !important;
}
html[data-ap-client][data-theme="white"]:has(.ap-client-sidebar) {
    --mode-page: #e9e9e9 !important;
    --mode-surface: #f4f4f4 !important;
    --mode-surface-subtle: #ededed !important;
    --mode-surface-raised: #e4e4e4 !important;
    --mode-border: #d3d3d3 !important;
}
html[data-ap-client][data-theme="white"] .ap-client-sidebar :is(.ap-sidebar-surface,.ap-sidebar-brand),
html[data-ap-client][data-theme="white"]:has(.ap-client-sidebar) header.sticky {
    background: #f0f0f0 !important;
    border-color: #d3d3d3 !important;
}
html[data-ap-client][data-theme="white"] .dashboard-shell :is(.dashboard-panel,.dashboard-secondary-card,.dashboard-action) {
    background: #f4f4f4 !important;
    border-color: #d3d3d3 !important;
}
html[data-ap-client][data-theme="white"] .dashboard-shell .dashboard-action:hover {
    background: #e9e9e9 !important;
    border-color: #aaa !important;
}
html[data-ap-client][data-theme="white"] body .ap-client-sidebar :is(.brand-action-button,.ap-store-action),
html[data-ap-client][data-theme="white"] body .user-content :is(a,button).bg-neon {
    background: var(--ap-button-dark) !important;
    border-color: #474747 !important;
    color: #f7f7f7 !important;
    box-shadow: inset 0 1px 0 #ffffff30, 0 3px 7px #0003 !important;
}
html[data-ap-client][data-theme="white"] body .ap-client-sidebar :is(.brand-action-button,.ap-store-action) .text-white,
html[data-ap-client][data-theme="white"] body .user-content :is(a,button).bg-neon .text-white {
    color: #f7f7f7 !important;
}
html[data-ap-client][data-theme="white"] body .ap-client-sidebar :is(.brand-action-button,.ap-store-action):hover,
html[data-ap-client][data-theme="white"] body .user-content :is(a,button).bg-neon:hover {
    background: linear-gradient(170deg,#404040,#1a1a1a) !important;
    border-color: #737373 !important;
}