:root {
    --color-primary: #0056a6;
    --color-primary-600: #005ca8;
    --color-primary-dark: #003f78;
    --color-primary-deep: #0a2540;

    --color-secondary: #00a86b;
    --color-secondary-dark: #00794d;

    --color-bg: #d9eaf7;
    --color-bg-soft: #edf6fc;
    --color-accent: #e8f2fb;

    --color-card: #ffffff;
    --color-card-soft: #f5fbff;

    --color-text: #16324a;
    --color-heading: #0a2540;
    --color-muted: #5e7286;
    --color-border: rgba(0, 86, 166, 0.16);
    --color-white: #ffffff;

    --shadow-xs: 0 6px 16px rgba(7, 42, 83, 0.06);
    --shadow-sm: 0 12px 28px rgba(7, 42, 83, 0.08);
    --shadow-md: 0 22px 48px rgba(7, 42, 83, 0.14);
    --shadow-card: 0 20px 44px rgba(7, 42, 83, 0.12);
    --shadow-field: 0 8px 20px rgba(7, 42, 83, 0.06);

    --radius-sm: 14px;
    --radius-md: 18px;
    --radius-lg: 24px;
    --radius-xl: 30px;

    --container: 1200px;
    --transition: 0.22s ease;
}

/* =========================================================
   RESET / BASE
========================================================= */

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

html {
    min-height: 100%;
    scroll-behavior: smooth;
    background: var(--color-bg);
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--color-text);
    font-family: "Inter", Arial, Helvetica, sans-serif;
    background: var(--color-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body.theme-blue-interface {
    background:
        radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.72), transparent 28%),
        radial-gradient(circle at 88% 18%, rgba(0, 86, 166, 0.10), transparent 32%),
        linear-gradient(180deg, #d7e9f7 0%, #edf6fc 46%, #d9eaf7 100%);
    background-attachment: fixed;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button {
    cursor: pointer;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--color-heading);
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    letter-spacing: -0.025em;
}

p {
    margin-top: 0;
}

::selection {
    background: rgba(0, 86, 166, 0.22);
    color: var(--color-primary-deep);
}

/* =========================================================
   ACESSIBILIDADE
========================================================= */

.skip-link {
    position: absolute;
    left: -999px;
    top: 12px;
    z-index: 9999;

    padding: 10px 14px;
    border-radius: 12px;

    background: var(--color-primary-deep);
    color: #ffffff;

    font-weight: 800;
    box-shadow: var(--shadow-md);
}

.skip-link:focus {
    left: 12px;
}

:focus-visible {
    outline: 3px solid rgba(0, 86, 166, 0.26);
    outline-offset: 3px;
}

/* =========================================================
   BARRA SUPERIOR
========================================================= */

.app-topbar {
    background: linear-gradient(90deg, var(--color-primary-deep), var(--color-primary-dark));
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.9rem;
}

.app-topbar__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 10px 22px;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.app-topbar__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-weight: 650;
    line-height: 1.2;
}

.app-topbar__item svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.4;
}

/* =========================================================
   CABEÇALHO
========================================================= */

.app-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(0, 86, 166, 0.16);

    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);

    box-shadow: 0 10px 30px rgba(7, 42, 83, 0.08);
}

.app-header__container {
    position: relative;

    max-width: var(--container);
    min-height: 84px;
    margin: 0 auto;
    padding: 10px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.app-brand {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    flex-shrink: 0;
}

.app-brand--horizontal {
    width: 226px;
    height: 58px;
    justify-content: flex-start;
}

.app-brand__logo-mask {
    display: block;
    flex-shrink: 0;

    background-color: var(--color-primary-600);

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;

    -webkit-mask-position: left center;
    mask-position: left center;

    -webkit-mask-size: contain;
    mask-size: contain;

    transition:
        transform var(--transition),
        background-color var(--transition),
        filter var(--transition);
}

.app-brand__logo-mask--horizontal {
    width: 226px;
    height: 58px;

    -webkit-mask-image: url("../img/logo-horizontal.png");
    mask-image: url("../img/logo-horizontal.png");

    filter: drop-shadow(0 8px 14px rgba(0, 63, 120, 0.12));
}

.app-brand:hover .app-brand__logo-mask--horizontal,
.app-brand:focus-visible .app-brand__logo-mask--horizontal {
    background-color: var(--color-primary-dark);
    transform: translateY(-1px);
    filter: drop-shadow(0 12px 18px rgba(0, 63, 120, 0.18));
}

/* Compatibilidade para templates que ainda utilizem imagem direta */
.app-brand__logo {
    width: auto;
    height: auto;
    object-fit: contain;
}

/* =========================================================
   MENU PRINCIPAL
========================================================= */

.app-header__mobile-actions {
    display: none;
}

.app-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    border: 1px solid rgba(0, 84, 158, 0.12);
    border-radius: 15px;

    background: linear-gradient(135deg, #eaf5ff, #dcebfa);
    color: #0a579c;

    box-shadow: 0 8px 18px rgba(0, 67, 132, 0.12);

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.app-menu-toggle:hover {
    background: linear-gradient(135deg, #eef8ff, #d7ebfb);
    box-shadow: 0 12px 24px rgba(0, 67, 132, 0.16);
}

.app-menu-toggle:active {
    transform: scale(0.98);
}

.app-menu-toggle svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.6;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.app-nav__mobile-head {
    display: none;
}

.app-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 42px;
    padding: 10px 14px;

    border-radius: 999px;

    color: var(--color-primary-deep);
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;

    transition:
        transform var(--transition),
        background var(--transition),
        color var(--transition),
        box-shadow var(--transition);
}

.app-nav a svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.45;
    flex-shrink: 0;
}

.app-nav a:hover,
.app-nav a:focus-visible {
    background: var(--color-accent);
    color: var(--color-primary-dark);
    outline: none;
}

.app-nav a.is-active:not(.app-nav__button) {
    background: var(--color-accent);
    color: var(--color-primary-dark);
}

.app-nav .app-nav__button,
.app-nav a.app-nav__button {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-dark)) !important;
    border: 1px solid rgba(0, 92, 168, 0.28);
    box-shadow: 0 12px 26px rgba(0, 92, 168, 0.22);
}

.app-nav .app-nav__button:hover,
.app-nav a.app-nav__button:hover,
.app-nav .app-nav__button:focus-visible,
.app-nav a.app-nav__button:focus-visible {
    color: #ffffff !important;
    background: linear-gradient(135deg, #004b8d, #062b50) !important;
    box-shadow: 0 16px 34px rgba(0, 92, 168, 0.30);
    transform: translateY(-1px);
}

.app-nav .app-nav__button.is-active,
.app-nav a.app-nav__button.is-active {
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--color-primary-600), var(--color-primary-dark)) !important;
    box-shadow: 0 14px 30px rgba(0, 92, 168, 0.26);
}

.app-nav .app-nav__button svg,
.app-nav a.app-nav__button svg {
    color: #ffffff;
    stroke: currentColor;
}

.app-mobile-home {
    display: none !important;
}

/* =========================================================
   CONTEÚDO PRINCIPAL
========================================================= */

.app-main {
    position: relative;
    min-height: calc(100vh - 190px);
}

body.theme-blue-interface .app-main {
    background: transparent;
}

/* =========================================================
   CARDS GLOBAIS
========================================================= */

body.theme-blue-interface .app-main .card,
body.theme-blue-interface .app-main .service-card,
body.theme-blue-interface .app-main .servico-card,
body.theme-blue-interface .app-main .consulta-card,
body.theme-blue-interface .app-main .info-card,
body.theme-blue-interface .app-main .content-card,
body.theme-blue-interface .app-main .section-card,
body.theme-blue-interface .app-main .form-card,
body.theme-blue-interface .app-main .admin-card,
body.theme-blue-interface .app-main .dashboard-card,
body.theme-blue-interface .app-main .panel-card,
body.theme-blue-interface .app-main .data-card,
body.theme-blue-interface .app-main .auth-card,
body.theme-blue-interface .app-main .login-card,
body.theme-blue-interface .app-main .protocolo-card,
body.theme-blue-interface .app-main .solicitacao-card,
body.theme-blue-interface .app-main .solicitation-card,
body.theme-blue-interface .app-main .dados-card,
body.theme-blue-interface .app-main .wrapper-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(234, 245, 253, 0.94));
    border: 1px solid rgba(0, 86, 166, 0.20);
    box-shadow: var(--shadow-card);

    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.theme-blue-interface .app-main form:not(.no-global-style):not(.request-form):not(.protocol-form) {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(234, 245, 253, 0.88));
    border-color: rgba(0, 86, 166, 0.18);
}

/* =========================================================
   CAMPOS EDITÁVEIS
========================================================= */

body.theme-blue-interface .app-main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.theme-blue-interface .app-main textarea,
body.theme-blue-interface .app-main select {
    min-height: 48px;

    border-radius: 14px;
    border: 1px solid rgba(0, 86, 166, 0.24);

    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 246, 252, 0.96));
    color: var(--color-text);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.90),
        var(--shadow-field);

    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        background var(--transition);
}

body.theme-blue-interface .app-main textarea {
    min-height: 112px;
    resize: vertical;
    line-height: 1.5;
}

body.theme-blue-interface .app-main input::placeholder,
body.theme-blue-interface .app-main textarea::placeholder {
    color: rgba(94, 114, 134, 0.78);
}

body.theme-blue-interface .app-main input:hover:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.theme-blue-interface .app-main textarea:hover,
body.theme-blue-interface .app-main select:hover {
    border-color: rgba(0, 86, 166, 0.42);
    background: #ffffff;
}

body.theme-blue-interface .app-main input:focus:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
body.theme-blue-interface .app-main textarea:focus,
body.theme-blue-interface .app-main select:focus {
    outline: none;
    border-color: rgba(0, 86, 166, 0.62);
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(0, 86, 166, 0.14),
        0 14px 28px rgba(7, 42, 83, 0.10);
}

body.theme-blue-interface .app-main input:disabled,
body.theme-blue-interface .app-main textarea:disabled,
body.theme-blue-interface .app-main select:disabled,
body.theme-blue-interface .app-main input[readonly],
body.theme-blue-interface .app-main textarea[readonly] {
    background: rgba(207, 228, 245, 0.72);
    color: rgba(22, 50, 74, 0.70);
    cursor: not-allowed;
}

body.theme-blue-interface .app-main label {
    color: #0d2f4f;
    font-weight: 800;
}

/* =========================================================
   TABELAS / ADMIN
========================================================= */

body.theme-blue-interface .app-main table {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(0, 86, 166, 0.18);
    box-shadow: 0 14px 34px rgba(7, 42, 83, 0.08);
}

body.theme-blue-interface .app-main thead {
    background: linear-gradient(135deg, rgba(207, 228, 245, 0.94), rgba(237, 246, 252, 0.94));
}

body.theme-blue-interface .app-main th {
    color: var(--color-primary-deep);
    font-weight: 800;
}

body.theme-blue-interface .app-main td {
    color: var(--color-text);
}

/* =========================================================
   MAPAS — PRESERVA FUNDO E CONTROLES
========================================================= */

body.theme-blue-interface .app-main .ol-viewport,
body.theme-blue-interface .app-main .ol-layer,
body.theme-blue-interface .app-main .ol-overlaycontainer,
body.theme-blue-interface .app-main .ol-overlaycontainer-stopevent,
body.theme-blue-interface .app-main #map,
body.theme-blue-interface .app-main #mapa,
body.theme-blue-interface .app-main .leaflet-container {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
}

/* =========================================================
   BOTÕES GLOBAIS
========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    min-height: 50px;
    padding: 0 22px;

    border-radius: 999px;
    border: 0;

    font-weight: 800;
    line-height: 1;

    transition:
        transform var(--transition),
        background var(--transition),
        box-shadow var(--transition),
        color var(--transition);

    cursor: pointer;
    white-space: nowrap;
}

.btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
}

.btn-primary {
    background: var(--color-secondary);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 168, 107, 0.22);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--color-secondary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    outline: none;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.22);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    outline: none;
}

/* =========================================================
   CHIPS / SELOS
========================================================= */

.section-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 8px 14px;

    border-radius: 999px;

    background: var(--color-accent);
    color: var(--color-primary-dark);

    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
}

.section-chip svg {
    width: 15px;
    height: 15px;
}

.section-chip--light {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* =========================================================
   TOPO DE RETORNO PADRÃO
========================================================= */

.services-page__topline {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin-bottom: 22px;
}

.request-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: #003f78;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1;

    text-decoration: none;
    background: transparent;
    border: 0;
    box-shadow: none;

    transition:
        color 0.18s ease,
        transform 0.18s ease;
}

.request-back svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.4;
    flex-shrink: 0;
}

.request-back:hover,
.request-back:focus-visible {
    color: #005ca8;
    transform: translateX(-2px);
    outline: none;
}

.services-page__topline--hero .request-back {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 31, 63, 0.45);
}

.services-page__topline--hero .request-back svg {
    stroke: #ffffff;
}

.services-page__topline--hero .request-back:hover {
    color: #eaf5ff;
}

/* =========================================================
   RODAPÉ INSTITUCIONAL / SINALTECH
========================================================= */

.app-footer {
    margin-top: 0;
    padding: 0;

    background:
        radial-gradient(circle at 12% 0%, rgba(255, 255, 255, 0.10), transparent 34%),
        linear-gradient(135deg, var(--color-primary-deep), var(--color-primary-dark));
    color: rgba(255, 255, 255, 0.90);

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.app-footer__container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 22px 10px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.app-footer__top {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.app-footer__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.app-footer__logo {
    width: auto;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
}

.app-footer__logo--platform {
    width: 72px;
    max-width: 72px;
    height: 66px;

    object-fit: contain;
    opacity: 1;

    transition:
        transform var(--transition),
        opacity var(--transition);
}

.app-footer__brand:hover .app-footer__logo--platform {
    transform: translateY(-1px);
    opacity: 0.94;
}

.app-footer__brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.app-footer__brand-text strong {
    color: #ffffff;

    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-size: 0.92rem;
    font-weight: 850;
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.app-footer__brand-text span {
    color: rgba(255, 255, 255, 0.74);

    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.25;
}

.app-footer__developer {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-width: max-content;
    padding: 5px 11px;

    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);

    background: rgba(255, 255, 255, 0.075);
    box-shadow:
        0 10px 22px rgba(0, 0, 0, 0.10),
        inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.app-footer__developer-label {
    color: rgba(255, 255, 255, 0.86);

    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.app-footer__developer-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    line-height: 0;
    text-decoration: none;

    transition:
        transform 0.22s ease,
        opacity 0.22s ease,
        filter 0.22s ease;
}

.app-footer__developer-link:hover,
.app-footer__developer-link:focus-visible {
    opacity: 0.92;
    transform: translateY(-1px);
    filter: drop-shadow(0 0 10px rgba(0, 132, 255, 0.30));
    outline: none;
}

.app-footer__developer-logo {
    display: block;

    width: 118px;
    max-width: 32vw;
    height: auto;

    object-fit: contain;
}

.app-footer__bottom {
    width: 100%;
    padding-top: 8px;

    border-top: 1px solid rgba(255, 255, 255, 0.10);

    color: rgba(255, 255, 255, 0.70);

    font-size: 0.70rem;
    font-weight: 550;
    line-height: 1.3;
    text-align: center;
}

.app-footer__bottom span {
    display: inline-block;
}

.app-footer__meta {
    display: contents;
}

/* =========================================================
   RESPONSIVO — TABLET / MENU MOBILE
========================================================= */

@media (max-width: 980px) {
    .app-header {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid rgba(0, 82, 155, 0.12);
        box-shadow: 0 10px 28px rgba(0, 49, 102, 0.12);
    }

    .app-header__container {
        min-height: 74px;
        padding: 9px 18px;
        gap: 12px;
    }

    .app-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .app-brand--horizontal {
        width: 198px;
        height: 51px;
        max-width: calc(100vw - 86px);
    }

    .app-brand__logo-mask--horizontal {
        width: 198px;
        height: 51px;
        max-width: calc(100vw - 86px);
    }

    .app-header__mobile-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 8px;
        flex: 0 0 auto;
        margin-left: auto;
    }

    .app-menu-toggle {
        display: inline-flex;
        flex-shrink: 0;
    }

    .app-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 18px;
        right: 18px;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;

        width: auto;
        max-width: none;
        padding: 14px;

        border-radius: 22px;
        border: 1px solid rgba(0, 91, 170, 0.16);

        background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(238, 247, 255, 0.98));

        -webkit-backdrop-filter: blur(16px);
        backdrop-filter: blur(16px);

        box-shadow:
            0 22px 50px rgba(0, 41, 88, 0.24),
            0 2px 0 rgba(255, 255, 255, 0.86) inset;

        opacity: 0;
        visibility: hidden;
        pointer-events: none;

        transform: translateY(-8px) scale(0.985);
        transform-origin: top right;

        transition:
            opacity 0.2s ease,
            visibility 0.2s ease,
            transform 0.2s ease;

        z-index: 1200;
    }

    .app-nav.is-open,
    .app-nav.open,
    .app-nav.show,
    .app-nav.active,
    .app-nav.menu-open,
    .app-nav.app-nav--open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .app-nav__mobile-head {
        display: block;

        padding: 4px 4px 10px;
        margin-bottom: 2px;

        border-bottom: 1px solid rgba(0, 91, 170, 0.12);
    }

    .app-nav__mobile-head strong {
        display: block;

        color: #073b69;

        font-size: 0.94rem;
        font-weight: 900;
        letter-spacing: -0.01em;
    }

    .app-nav__mobile-head span {
        display: block;

        margin-top: 3px;

        color: #4d6f8d;

        font-size: 0.78rem;
        font-weight: 600;
        line-height: 1.25;
    }

    .app-nav a {
        justify-content: flex-start;

        width: 100%;
        min-height: 49px;
        padding: 0 13px;

        border-radius: 15px;
        border: 1px solid rgba(0, 91, 170, 0.12);

        background: rgba(255, 255, 255, 0.88);
        color: #0b355f !important;

        font-size: 0.92rem;
        font-weight: 800;

        box-shadow: 0 8px 18px rgba(0, 65, 130, 0.07);
    }

    .app-nav a:hover,
    .app-nav a:focus-visible {
        background: #eef7ff;
        border-color: rgba(0, 91, 170, 0.28);
        transform: translateY(-1px);
        box-shadow: 0 12px 24px rgba(0, 65, 130, 0.12);
        outline: none;
    }

    .app-nav a.is-active:not(.app-nav__button) {
        background: linear-gradient(135deg, #e7f3ff, #ffffff);
        border-color: rgba(0, 91, 170, 0.32);
        color: #064f8f !important;
    }

    .app-nav a svg {
        width: 19px;
        height: 19px;
        color: #0a65b3;
        stroke: currentColor;
    }

    .app-nav__home {
        display: flex !important;
    }

    .app-nav__button {
        justify-content: center !important;

        min-height: 52px !important;
        margin-top: 2px;

        border: 0 !important;

        background: linear-gradient(135deg, #075da8, #0878d8) !important;
        color: #ffffff !important;

        box-shadow: 0 14px 28px rgba(0, 91, 170, 0.28) !important;
    }

    .app-nav__button svg {
        color: #ffffff !important;
        stroke: currentColor !important;
    }

    .app-nav__button:hover,
    .app-nav__button:focus-visible {
        background: linear-gradient(135deg, #064f8f, #076ec7) !important;
        box-shadow: 0 16px 34px rgba(0, 91, 170, 0.34) !important;
    }
}

/* =========================================================
   RESPONSIVO — MOBILE
========================================================= */

@media (max-width: 768px) {
    body.theme-blue-interface {
        background:
            radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.68), transparent 30%),
            linear-gradient(180deg, #d7e9f7 0%, #edf6fc 48%, #d9eaf7 100%);
        background-attachment: scroll;
    }

    .app-topbar {
        display: none;
    }

    .app-header__container {
        min-height: 68px;
        padding: 8px 14px;
    }

    .app-brand--horizontal {
        width: 172px;
        height: 45px;
        max-width: calc(100vw - 74px);
    }

    .app-brand__logo-mask--horizontal {
        width: 172px;
        height: 45px;
        max-width: calc(100vw - 74px);
    }

    .app-menu-toggle {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .app-nav {
        left: 14px;
        right: 14px;
        border-radius: 22px;
    }

    body.theme-blue-interface .app-main .card,
    body.theme-blue-interface .app-main .service-card,
    body.theme-blue-interface .app-main .servico-card,
    body.theme-blue-interface .app-main .consulta-card,
    body.theme-blue-interface .app-main .info-card,
    body.theme-blue-interface .app-main .content-card,
    body.theme-blue-interface .app-main .section-card,
    body.theme-blue-interface .app-main .form-card,
    body.theme-blue-interface .app-main .admin-card,
    body.theme-blue-interface .app-main .dashboard-card,
    body.theme-blue-interface .app-main .panel-card,
    body.theme-blue-interface .app-main .data-card,
    body.theme-blue-interface .app-main .auth-card,
    body.theme-blue-interface .app-main .login-card,
    body.theme-blue-interface .app-main .protocolo-card,
    body.theme-blue-interface .app-main .solicitacao-card,
    body.theme-blue-interface .app-main .solicitation-card,
    body.theme-blue-interface .app-main .dados-card,
    body.theme-blue-interface .app-main .wrapper-card {
        border-radius: 20px;
        box-shadow: 0 14px 34px rgba(7, 42, 83, 0.10);
    }

    .services-page__topline {
        gap: 10px;
        margin-bottom: 18px;
    }

    .request-back {
        font-size: 0.9rem;
    }

    .request-back svg {
        width: 17px;
        height: 17px;
    }

    .app-footer {
        width: 100% !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .app-footer.app-footer--compact {
        padding: 8px 0 7px !important;
    }

    .app-footer__container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 8px 10px 6px !important;

        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;

        text-align: center !important;
    }

    .app-footer__top {
        width: 100% !important;

        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        flex-wrap: nowrap !important;

        gap: 8px !important;
    }

    .app-footer__brand {
        width: auto !important;
        min-width: 0 !important;

        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 5px !important;
        flex: 0 1 auto !important;
    }

    .app-footer__logo--platform {
        width: 42px !important;
        max-width: 42px !important;
        height: 39px !important;
        min-width: 42px !important;
        margin: 0 !important;
        flex-shrink: 0 !important;
    }

    .app-footer__brand-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        gap: 0 !important;
        min-width: 0 !important;
    }

    .app-footer__brand-text strong {
        font-size: 0.66rem !important;
        line-height: 1.1 !important;
        white-space: nowrap !important;
    }

    .app-footer__brand-text span {
        display: none !important;
    }

    .app-footer__developer {
        width: auto !important;

        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;

        gap: 5px !important;
        margin: 0 !important;
        padding: 5px 8px !important;

        border-radius: 999px !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;

        flex: 0 0 auto !important;
        white-space: nowrap !important;
    }

    .app-footer__developer-label {
        font-size: 0.58rem !important;
        line-height: 1 !important;
        font-weight: 800 !important;
        color: rgba(255, 255, 255, 0.9) !important;
        white-space: nowrap !important;
    }

    .app-footer__developer-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        line-height: 0 !important;
    }

    .app-footer__developer-logo {
        width: 76px !important;
        max-width: 76px !important;
        height: auto !important;
        margin: 0 !important;
        object-fit: contain !important;
    }

    .app-footer__bottom {
        width: 100% !important;
        padding-top: 5px !important;
        margin-top: 1px !important;

        border-top: 1px solid rgba(255, 255, 255, 0.10) !important;
        text-align: center !important;
    }

    .app-footer__bottom span {
        display: block !important;
        font-size: 0.58rem !important;
        line-height: 1.15 !important;
        font-weight: 600 !important;
        color: rgba(255, 255, 255, 0.74) !important;
    }
}

/* =========================================================
   RESPONSIVO — CELULAR PEQUENO
========================================================= */

@media (max-width: 540px) {
    .app-brand--horizontal,
    .app-brand__logo-mask--horizontal {
        width: 156px;
        height: 41px;
    }

    .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .services-page__topline {
        gap: 8px;
        margin-bottom: 16px;
    }

    .request-back {
        font-size: 0.86rem;
    }
}

@media (max-width: 390px) {
    .app-brand--horizontal,
    .app-brand__logo-mask--horizontal {
        width: 144px;
        height: 38px;
    }

    .app-menu-toggle {
        width: 43px;
        height: 43px;
    }
}

@media (max-width: 360px) {
    .app-header__container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .app-brand--horizontal,
    .app-brand__logo-mask--horizontal {
        width: 132px;
        height: 35px;
    }

    .app-nav {
        left: 12px;
        right: 12px;
        padding: 12px;
    }

    .app-footer__brand {
        display: none !important;
    }

    .app-footer__developer-logo {
        width: 68px !important;
        max-width: 68px !important;
    }

    .app-footer__bottom span {
        font-size: 0.55rem !important;
    }
}