@font-face {
    font-family: "Manrope";
    src: url("/app/fonts/manrope/Manrope-Variable.ttf") format("truetype");
    font-weight: 300 800;
    font-style: normal;
    font-display: swap;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--app-bg, var(--app-surface-soft));
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--tema-page-background, var(--app-bg, var(--app-surface-soft)));
    background-attachment: fixed;
    color: var(--app-text);
    font-family: var(--font);
    font-size: var(--fs-14);
    line-height: 1.5;
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--app-text-link, var(--app-primary, #1B3A5C));
    text-decoration: none;
    transition: color var(--ease);
}

a:hover {
    color: var(--app-text-link-hover, var(--app-primary-dark, #12283F));
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
.btn,
input[type="button"],
input[type="submit"],
input[type="reset"],
select,
textarea,
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="hidden"]):not([type="image"]) {
    border-radius: var(--r-control, var(--r-btn, 10px));
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: none;
    box-shadow: var(--ring);
}

::selection {
    background: color-mix(in srgb, var(--app-primary, #1B3A5C) 22%, transparent);
    color: inherit;
}

.ph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Barras de rolagem discretas dentro do shell. */
.ui-shell * {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--app-title) 18%, transparent) transparent;
}

.ui-shell *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.ui-shell *::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--app-title) 18%, transparent);
}

/* Utilitários de movimento compartilhados. */
@keyframes ui-fade-up {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ui-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ui-pop {
    from {
        opacity: 0;
        transform: translateY(6px) scale(.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes ui-grow-y {
    from { transform: scaleY(0); }
    to { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
