:root {
    --vz-bg: #07111f;
    --vz-panel: rgba(12, 20, 34, 0.74);
    --vz-line: rgba(148, 163, 184, 0.16);
    --vz-text: #f8fafc;
    --vz-muted: rgba(226, 232, 240, 0.66);
    --vz-cyan: #67e8f9;
    --vz-blue: #60a5fa;
    --vz-violet: #a78bfa;
    --bg: var(--vz-bg);
    --panel: var(--vz-panel);
    --panel-strong: rgba(18, 28, 44, 0.92);
    --line: var(--vz-line);
    --line-strong: rgba(103, 232, 249, 0.28);
    --text: var(--vz-text);
    --muted: var(--vz-muted);
    --soft: rgba(248, 250, 252, 0.42);
    --cyan: var(--vz-cyan);
    --blue: var(--vz-blue);
    --green: #86efac;
    --amber: #fcd34d;
    --violet: var(--vz-violet);
    --danger: #fca5a5;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 15% 8%, rgba(103, 232, 249, 0.16), transparent 24rem),
        radial-gradient(circle at 80% 18%, rgba(96, 165, 250, 0.13), transparent 28rem),
        radial-gradient(circle at 55% 0%, rgba(167, 139, 250, 0.1), transparent 30rem),
        linear-gradient(135deg, #07111f 0%, #0b1627 48%, #0f172a 100%);
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
}

.shell {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow);
}

.brand strong {
    display: block;
    font-size: 15px;
    letter-spacing: 0;
}

.brand small {
    display: block;
    margin-top: 2px;
    color: var(--soft);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.nav-tabs {
    display: flex;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.nav-tab,
.ghost-button {
    border: 1px solid transparent;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    transition: 160ms ease;
}

.nav-tab {
    min-height: 36px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
}

.nav-tab:hover,
.nav-tab.is-active {
    border-color: rgba(103, 232, 249, 0.25);
    color: #e0fbff;
    background: rgba(103, 232, 249, 0.11);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
    gap: 28px;
    align-items: end;
    padding: 74px 0 34px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 920px;
    margin-bottom: 20px;
    font-size: clamp(42px, 7vw, 92px);
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-text {
    max-width: 720px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.65;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.stat-card,
.toolbar,
.document-card,
.institution-card,
.skill-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.stat-card {
    min-height: 116px;
    padding: 18px;
    background:
        linear-gradient(145deg, rgba(96, 165, 250, 0.1), rgba(103, 232, 249, 0.04)),
        var(--panel);
}

.stat-card strong {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.stat-card span {
    display: block;
    margin-top: 10px;
    color: var(--soft);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.section-panel {
    display: none;
    padding: 26px 0 80px;
}

.section-panel.is-visible {
    display: block;
}

.toolbar {
    position: sticky;
    top: 86px;
    z-index: 10;
    padding: 16px;
    margin-bottom: 22px;
    background: var(--panel-strong);
}

.search-field {
    position: relative;
    display: block;
    margin-bottom: 14px;
}

.search-field i {
    position: absolute;
    left: 14px;
    bottom: 13px;
    color: var(--soft);
}

label span {
    display: block;
    margin-bottom: 7px;
    color: var(--soft);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

input,
select {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    outline: none;
    background: rgba(0, 0, 0, 0.28);
}

input {
    padding: 0 14px 0 40px;
}

select {
    padding: 0 12px;
}

input:focus,
select:focus {
    border-color: var(--line-strong);
}

option {
    color: #0f172a;
}

.filters {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.toolbar-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--soft);
    font-size: 13px;
}

.toolbar-footer p {
    margin: 0;
}

.toolbar-footer strong {
    color: var(--text);
}

.ghost-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 0 12px;
    border-color: var(--line);
    border-radius: 10px;
}

.ghost-button:hover {
    border-color: var(--line-strong);
    color: var(--cyan);
    background: rgba(103, 232, 249, 0.08);
}

.document-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.document-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    padding: 20px;
    overflow: hidden;
}

.card-header,
.card-meta,
.card-actions,
.chip-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.card-header {
    justify-content: space-between;
    margin-bottom: 18px;
}

.icon-box {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(255, 255, 255, 0.06);
}

.status {
    padding: 6px 9px;
    border: 1px solid rgba(134, 239, 172, 0.22);
    border-radius: 999px;
    color: #dcfce7;
    background: rgba(34, 197, 94, 0.12);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.status.pending {
    border-color: rgba(252, 211, 77, 0.24);
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.13);
}

.document-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    line-height: 1.2;
}

.card-meta {
    margin-bottom: 12px;
    color: var(--soft);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.area-line {
    margin-bottom: 12px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 700;
}

.description {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.chip-row {
    margin-top: auto;
    padding-top: 18px;
}

.chip {
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    font-size: 11px;
    font-weight: 700;
}

.card-actions {
    margin-top: 16px;
}

.action-link,
.inline-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.action-link.primary {
    border-color: var(--line-strong);
    color: #dffbff;
    background: rgba(103, 232, 249, 0.1);
}

.action-link:hover,
.inline-toggle:hover {
    border-color: var(--line-strong);
    color: var(--cyan);
}

.notice {
    margin-top: 16px;
    padding: 11px 12px;
    border: 1px solid rgba(252, 211, 77, 0.24);
    border-radius: 12px;
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.12);
    font-size: 12px;
    line-height: 1.45;
}

.details-box {
    display: none;
    margin-top: 12px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
}

.details-box.is-open {
    display: block;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.section-heading h2 {
    margin-bottom: 10px;
    font-family: "Montserrat", Inter, system-ui, sans-serif;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1;
    font-weight: 900;
}

.section-heading p:not(.eyebrow) {
    color: var(--muted);
    line-height: 1.6;
}

.insight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.insight-grid.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.institution-card,
.skill-card {
    padding: 20px;
}

.institution-card h3,
.skill-card h3 {
    margin-bottom: 6px;
    font-size: 19px;
}

.institution-card p,
.skill-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.mini-stat {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0;
    color: var(--cyan);
    font-size: 13px;
    font-weight: 900;
}

.empty-state {
    grid-column: 1 / -1;
    padding: 44px;
    border: 1px dashed var(--line);
    border-radius: 16px;
    color: var(--muted);
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 1100px) {
    .hero,
    .document-grid,
    .insight-grid,
    .insight-grid.two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hero-copy {
        grid-column: 1 / -1;
    }

    .stats-grid,
    .filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .shell {
        width: min(100% - 20px, 1440px);
    }

    .topbar {
        align-items: stretch;
        flex-direction: column;
        padding-top: 12px;
    }

    .nav-tabs {
        overflow-x: auto;
    }

    .hero,
    .document-grid,
    .insight-grid,
    .insight-grid.two-columns,
    .stats-grid,
    .filters {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: 44px;
    }

    .toolbar {
        position: static;
    }

    .toolbar-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .document-card {
        min-height: 0;
    }
}

.top-actions,
.hero-actions,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    transition: 160ms ease;
}

.top-link:hover {
    border-color: var(--line-strong);
    color: var(--cyan);
    background: rgba(103, 232, 249, 0.08);
}

.hero-actions {
    margin-top: 24px;
}

code {
    font-family: "Fira Code", Consolas, monospace;
    color: var(--cyan);
}

.document-card.is-featured {
    border-color: rgba(103, 232, 249, 0.34);
    background:
        linear-gradient(140deg, rgba(103, 232, 249, 0.11), transparent 34%),
        var(--panel);
}

.document-card.is-featured h3 {
    color: #ecfeff;
}

.featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px;
    border: 1px solid rgba(103, 232, 249, 0.25);
    border-radius: 999px;
    color: #cffafe;
    background: rgba(103, 232, 249, 0.12);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 28px 0 44px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer p {
    max-width: 720px;
    margin: 0;
    line-height: 1.6;
}

.footer a {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}


.top-actions {
    justify-content: flex-end;
}

.nav-tabs {
    flex-shrink: 0;
}

@media (max-width: 980px) {
    .topbar {
        display: grid;
        grid-template-columns: 1fr;
    }

    .top-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 760px) {
    .brand {
        align-items: flex-start;
    }

    .brand strong {
        font-size: 14px;
    }

    .top-actions,
    .hero-actions,
    .footer-links {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .top-link,
    .hero-actions .action-link,
    .footer-links a {
        justify-content: center;
        width: 100%;
    }

    .footer {
        align-items: stretch;
        flex-direction: column;
    }
}


/* Ecossistema Vezetiv.dev visual pass: aproxima o Acervo do portfolio OS-like. */
:root {
    --vz-bg: #06111f;
    --vz-panel: rgba(13, 22, 38, 0.58);
    --vz-line: rgba(187, 212, 255, 0.18);
    --vz-muted: rgba(226, 232, 240, 0.7);
    --vz-cyan: #5ee7ff;
    --vz-blue: #4f6dff;
    --vz-violet: #8b5cf6;
    --vz-magenta: #8b245f;
    --os-glass: rgba(121, 132, 168, 0.18);
    --os-glass-strong: rgba(17, 27, 48, 0.76);
    --os-highlight: rgba(94, 231, 255, 0.32);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html {
    background: #06111f;
}

body {
    min-height: 100vh;
    padding-bottom: 120px;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 9% 3%, rgba(36, 211, 238, 0.56), transparent 34rem),
        radial-gradient(ellipse at 62% 6%, rgba(83, 111, 255, 0.38), transparent 38rem),
        radial-gradient(ellipse at 94% 20%, rgba(139, 92, 246, 0.42), transparent 38rem),
        radial-gradient(ellipse at 96% 96%, rgba(122, 30, 82, 0.44), transparent 34rem),
        linear-gradient(135deg, #0c3440 0%, #223f68 36%, #513d86 67%, #6f214f 100%);
    background-attachment: scroll;
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

body::before {
    z-index: -2;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 22%, rgba(255, 255, 255, 0.04) 44%, transparent 70%),
        radial-gradient(circle at 50% 30%, rgba(255, 255, 255, 0.1), transparent 20rem);
    opacity: 0.72;
}

body::after {
    z-index: -1;
    background: rgba(4, 10, 20, 0.52);
    backdrop-filter: saturate(118%);
}

.shell {
    width: min(1380px, calc(100% - 44px));
}

.topbar {
    position: sticky;
    top: 18px;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    align-items: center;
    gap: 16px;
    margin: 14px auto 0;
    padding: 10px 12px;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(9, 15, 31, 0.42);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(145%);
}

.brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    border-color: rgba(255, 255, 255, 0.14);
    color: #e8fbff;
    background:
        radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.28), transparent 32%),
        linear-gradient(145deg, rgba(94, 231, 255, 0.32), rgba(79, 109, 255, 0.28));
    box-shadow: 0 16px 44px rgba(27, 47, 96, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.brand strong {
    font-size: 15px;
    font-weight: 900;
}

.brand small {
    color: rgba(226, 232, 240, 0.68);
    letter-spacing: 0.18em;
}

.top-actions {
    justify-content: flex-end;
}

.top-link,
.action-link,
.inline-toggle,
.ghost-button {
    min-height: 38px;
    border-color: rgba(226, 232, 240, 0.14);
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
        rgba(13, 22, 38, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.top-link:hover,
.action-link:hover,
.inline-toggle:hover,
.ghost-button:hover {
    transform: translateY(-1px);
    border-color: rgba(94, 231, 255, 0.36);
    color: #f8fdff;
    background:
        linear-gradient(135deg, rgba(94, 231, 255, 0.18), rgba(79, 109, 255, 0.16)),
        rgba(13, 22, 38, 0.58);
}

.action-link.primary {
    border-color: rgba(94, 231, 255, 0.42);
    color: #ffffff;
    background: linear-gradient(135deg, rgba(79, 109, 255, 0.92), rgba(10, 186, 220, 0.9));
    box-shadow: 0 16px 38px rgba(15, 84, 180, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.nav-tabs {
    position: fixed;
    left: 50%;
    bottom: 22px;
    z-index: 40;
    transform: translateX(-50%);
    display: flex;
    width: min(720px, calc(100% - 36px));
    justify-content: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid rgba(226, 232, 240, 0.16);
    border-radius: 24px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06)),
        rgba(20, 25, 44, 0.64);
    box-shadow: 0 26px 90px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(24px) saturate(150%);
}

.nav-tab {
    display: grid;
    grid-template-rows: 24px auto;
    min-width: 116px;
    min-height: 58px;
    place-items: center;
    padding: 7px 12px;
    border-radius: 16px;
    color: rgba(226, 232, 240, 0.74);
    font-size: 11px;
    letter-spacing: 0;
}

.nav-tab i {
    font-size: 18px;
}

.nav-tab:hover,
.nav-tab.is-active {
    border-color: rgba(94, 231, 255, 0.3);
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(79, 109, 255, 0.44), rgba(94, 231, 255, 0.16)),
        rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 -3px 0 rgba(94, 231, 255, 0.78), 0 10px 32px rgba(79, 109, 255, 0.18);
}

.hero {
    min-height: calc(100vh - 120px);
    grid-template-columns: minmax(0, 1fr) minmax(340px, 520px);
    align-items: center;
    gap: clamp(28px, 5vw, 76px);
    padding: clamp(92px, 13vh, 160px) 0 70px;
}

.hero-copy {
    max-width: 900px;
}

.eyebrow {
    color: #7ff3ff;
    text-shadow: 0 0 26px rgba(94, 231, 255, 0.34);
}

h1 {
    max-width: 950px;
    margin-bottom: 24px;
    font-size: clamp(56px, 8vw, 122px);
    line-height: 0.88;
    font-weight: 950;
    color: #f8fbff;
    text-shadow: 0 20px 70px rgba(0, 0, 0, 0.36);
}

.hero-text {
    max-width: 760px;
    color: rgba(235, 244, 255, 0.84);
    font-size: clamp(16px, 1.35vw, 19px);
}

.hero-actions {
    margin-top: 28px;
}

.stats-grid {
    position: relative;
    gap: 12px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
        rgba(8, 14, 28, 0.38);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(24px) saturate(145%);
}

.stats-grid::before {
    content: "";
    position: absolute;
    top: 13px;
    left: 16px;
    width: 42px;
    height: 8px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff5f57 0 8px, transparent 8px 14px, #ffbd2e 14px 22px, transparent 22px 28px, #28c840 28px 36px);
    opacity: 0.74;
}

.stat-card {
    position: relative;
    min-height: 124px;
    padding: 26px 18px 18px;
    border-color: rgba(226, 232, 240, 0.13);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(94, 231, 255, 0.11), rgba(79, 109, 255, 0.08) 48%, rgba(255, 255, 255, 0.035)),
        rgba(9, 16, 31, 0.58);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.stat-card strong {
    font-size: 40px;
    font-weight: 950;
}

.stat-card span {
    color: rgba(226, 232, 240, 0.56);
    letter-spacing: 0.13em;
}

.section-panel {
    padding: 34px 0 96px;
}

.section-heading {
    max-width: 860px;
    margin-bottom: 28px;
}

.section-heading h2 {
    font-size: clamp(42px, 5vw, 72px);
    font-weight: 950;
    text-shadow: 0 18px 60px rgba(0, 0, 0, 0.32);
}

.toolbar {
    top: 104px;
    padding: 18px;
    border-radius: 22px;
    border-color: rgba(226, 232, 240, 0.14);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
        rgba(9, 16, 31, 0.72);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

input,
select {
    border-color: rgba(226, 232, 240, 0.14);
    border-radius: 14px;
    background: rgba(4, 10, 20, 0.44);
}

.document-grid,
.insight-grid {
    gap: 20px;
}

.document-card,
.institution-card,
.skill-card {
    position: relative;
    border-color: rgba(94, 231, 255, 0.22);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.022)),
        rgba(7, 13, 27, 0.7);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px) saturate(138%);
}

.document-card::before,
.institution-card::before,
.skill-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, rgba(94, 231, 255, 0.9), rgba(79, 109, 255, 0.62), rgba(139, 92, 246, 0.7));
    opacity: 0.46;
}

.document-card {
    min-height: 440px;
    padding: 24px;
}

.document-card:hover,
.institution-card:hover,
.skill-card:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 231, 255, 0.42);
    box-shadow: 0 28px 96px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(94, 231, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.document-card,
.institution-card,
.skill-card,
.stat-card,
.top-link,
.action-link,
.inline-toggle,
.nav-tab {
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.icon-box {
    border-color: rgba(255, 255, 255, 0.13);
    border-radius: 14px;
    color: #77efff;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.22), transparent 34%),
        rgba(94, 231, 255, 0.1);
}

.status,
.featured-badge,
.chip {
    border-color: rgba(226, 232, 240, 0.14);
    background: rgba(255, 255, 255, 0.065);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.status {
    color: #d9fff1;
    background: rgba(16, 185, 129, 0.18);
}

.featured-badge {
    color: #ecfeff;
    border-color: rgba(94, 231, 255, 0.38);
    background: rgba(94, 231, 255, 0.14);
}

.document-card.is-featured {
    border-color: rgba(94, 231, 255, 0.5);
    background:
        radial-gradient(circle at 18% 0%, rgba(94, 231, 255, 0.2), transparent 16rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025)),
        rgba(7, 13, 27, 0.74);
}

.card-meta {
    color: rgba(226, 232, 240, 0.52);
}

.area-line,
code,
.mini-stat {
    color: #68efff;
}

.description,
.section-heading p:not(.eyebrow),
.institution-card p,
.skill-card p {
    color: rgba(226, 232, 240, 0.72);
}

.notice {
    border-color: rgba(252, 211, 77, 0.32);
    border-radius: 16px;
    background: rgba(92, 65, 16, 0.34);
}

.details-box {
    border-color: rgba(226, 232, 240, 0.12);
    border-radius: 16px;
    background: rgba(3, 8, 18, 0.38);
}

.footer {
    margin-bottom: 28px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.13);
    border-radius: 22px;
    background: rgba(9, 16, 31, 0.46);
    backdrop-filter: blur(18px);
}

@media (max-width: 1100px) {
    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-top: 92px;
    }

    .stats-grid {
        max-width: 760px;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 102px;
    }

    .shell {
        width: min(100% - 22px, 1380px);
    }

    .topbar {
        top: 10px;
        grid-template-columns: 1fr;
        border-radius: 18px;
    }

    .top-actions {
        justify-content: flex-start;
    }

    .hero {
        padding-top: 62px;
    }

    h1 {
        font-size: clamp(46px, 17vw, 72px);
    }

    .nav-tabs {
        width: calc(100% - 20px);
        bottom: 10px;
        overflow-x: auto;
        justify-content: flex-start;
        border-radius: 20px;
    }

    .nav-tab {
        min-width: 92px;
        min-height: 54px;
        font-size: 10px;
    }

    .stats-grid {
        padding: 12px;
    }

    .stat-card {
        min-height: 104px;
    }

    .document-card {
        padding: 20px;
    }
}


/* Home/dock structural pass */
body {
    padding-bottom: 132px;
}

.topbar {
    grid-template-columns: minmax(240px, 1fr) auto;
    max-width: 980px;
    opacity: 0.92;
}

.top-actions .top-link {
    min-height: 34px;
    padding: 0 11px;
    font-size: 11px;
}

.section-panel {
    min-height: calc(100vh - 110px);
    padding: 92px 0 132px;
}

.home-screen {
    display: none;
    min-height: calc(100vh - 92px);
    padding: 0 0 128px;
}

.home-screen.is-visible {
    display: grid;
    align-items: center;
}

.home-screen .hero {
    min-height: calc(100vh - 146px);
    padding: clamp(72px, 10vh, 132px) 0 clamp(84px, 10vh, 132px);
}

.hero-subtitle {
    margin: -10px 0 22px;
    color: rgba(226, 232, 240, 0.88);
    font-size: clamp(18px, 2.2vw, 30px);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-screen h1 {
    max-width: 1040px;
    margin-bottom: 18px;
}

.nav-tabs {
    width: min(780px, calc(100% - 36px));
}

.nav-tab {
    min-width: 118px;
}

.featured-window,
.contact-window {
    position: relative;
    border: 1px solid rgba(226, 232, 240, 0.15);
    border-radius: 26px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)),
        rgba(7, 13, 27, 0.62);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px) saturate(142%);
}

.featured-window {
    padding: 44px 18px 18px;
    margin-bottom: 24px;
}

.featured-window > p {
    margin: 0 0 18px;
    color: rgba(226, 232, 240, 0.72);
}

.window-titlebar {
    position: absolute;
    top: 15px;
    left: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.window-titlebar span {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
}

.window-titlebar span:nth-child(1) { background: #ff5f57; }
.window-titlebar span:nth-child(2) { background: #ffbd2e; }
.window-titlebar span:nth-child(3) { background: #28c840; }
.window-titlebar strong {
    margin-left: 8px;
}

.contact-screen {
    display: none;
    place-items: center;
}

.contact-screen.is-visible {
    display: grid;
}

.contact-window {
    width: min(780px, 100%);
    padding: 58px clamp(20px, 5vw, 46px) 36px;
}

.contact-content h2 {
    margin-bottom: 12px;
    font-family: "Montserrat", Inter, system-ui, sans-serif;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 0.95;
    font-weight: 900;
}

.contact-content p:not(.eyebrow) {
    max-width: 620px;
    color: rgba(226, 232, 240, 0.74);
    line-height: 1.65;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 0 18px;
    border: 1px solid rgba(226, 232, 240, 0.14);
    border-radius: 18px;
    color: rgba(248, 250, 252, 0.9);
    background: rgba(255, 255, 255, 0.055);
    text-decoration: none;
    font-weight: 900;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: 180ms ease;
}

.contact-card:hover {
    transform: translateY(-2px);
    border-color: rgba(94, 231, 255, 0.42);
    background: linear-gradient(135deg, rgba(94, 231, 255, 0.16), rgba(79, 109, 255, 0.14));
}

.contact-card i {
    color: #77efff;
    font-size: 20px;
}

.contact-card-wide {
    grid-column: 1 / -1;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (max-width: 920px) {
    .topbar {
        max-width: none;
        grid-template-columns: 1fr;
    }

    .top-actions {
        justify-content: flex-start;
    }

    .section-panel {
        padding-top: 70px;
    }
}

@media (max-width: 760px) {
    body {
        padding-bottom: 116px;
    }

    .home-screen .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .top-actions {
        display: none;
    }

    .nav-tabs {
        width: calc(100% - 18px);
        gap: 6px;
        padding: 8px;
    }

    .nav-tab {
        min-width: 76px;
        padding: 6px 8px;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .contact-card-wide {
        grid-column: auto;
    }
}

/* Remove a barra superior: navegação principal agora é somente dock inferior. */
.topbar {
    position: static !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.topbar > .brand,
.topbar > .top-actions {
    display: none !important;
}

.nav-tabs {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: 26px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    margin: 0 !important;
}

@media (max-width: 760px) {
    .nav-tabs {
        top: auto !important;
        bottom: 12px !important;
    }
}

/* Ajustes finais de enquadramento, cor e camada da dock. */
:root {
    --vz-bg: #071526;
    --vz-panel: rgba(10, 18, 34, 0.68);
    --vz-line: rgba(164, 205, 255, 0.18);
    --vz-cyan: #5ee7ff;
    --vz-blue: #4f8cff;
    --vz-violet: #6657d9;
    --vz-magenta: #5a255d;
}

html,
body {
    background-color: #071526;
}

body {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(32, 211, 238, 0.56), transparent 36rem),
        radial-gradient(ellipse at 52% 8%, rgba(74, 128, 255, 0.42), transparent 40rem),
        radial-gradient(ellipse at 92% 22%, rgba(102, 87, 217, 0.36), transparent 38rem),
        radial-gradient(ellipse at 92% 100%, rgba(90, 37, 93, 0.34), transparent 34rem),
        linear-gradient(135deg, #0c3440 0%, #25466e 42%, #4a4286 72%, #5a255d 100%);
}

body::after {
    background: rgba(4, 10, 20, 0.42);
}

.shell {
    isolation: isolate;
}

.nav-tabs {
    z-index: 2147483000 !important;
    bottom: max(24px, env(safe-area-inset-bottom)) !important;
    box-shadow:
        0 28px 100px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.stats-grid,
.featured-window,
.contact-window {
    padding-top: 54px !important;
}

.stats-grid::before {
    top: 22px !important;
    left: 22px !important;
    width: 38px !important;
    height: 8px !important;
    background: none !important;
    box-shadow:
        0 0 0 4px #ff5f57,
        15px 0 0 4px #ffbd2e,
        30px 0 0 4px #28c840;
    opacity: 0.95 !important;
}

.window-titlebar {
    top: 20px !important;
    left: 24px !important;
    right: 24px !important;
    height: 12px;
    gap: 11px !important;
}

.window-titlebar span {
    width: 8px !important;
    height: 8px !important;
    flex: 0 0 8px;
}

.window-titlebar strong {
    margin-left: 8px !important;
    line-height: 1;
}

.featured-window > p {
    margin-top: 0 !important;
}

.document-card,
.institution-card,
.skill-card,
.stat-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
        rgba(7, 14, 29, 0.78) !important;
}

.document-card.is-featured {
    background:
        radial-gradient(circle at 14% 0%, rgba(94, 231, 255, 0.16), transparent 15rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.024)),
        rgba(7, 14, 29, 0.8) !important;
}

@media (max-width: 760px) {
    .nav-tabs {
        bottom: max(12px, env(safe-area-inset-bottom)) !important;
        z-index: 2147483000 !important;
    }

    .stats-grid,
    .featured-window,
    .contact-window {
        padding-top: 50px !important;
    }
}

.nav-tabs {
    pointer-events: auto !important;
    isolation: isolate !important;
}

.nav-tabs::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: inherit;
    box-shadow: inherit;
    backdrop-filter: inherit;
}

.nav-tab {
    position: relative;
    z-index: 1;
}

/* Override definitivo: a dock nunca participa do fluxo do topo. */
body .topbar .nav-tabs,
html body .topbar nav.nav-tabs {
    position: fixed !important;
    top: auto !important;
    left: 50% !important;
    right: auto !important;
    bottom: 24px !important;
    z-index: 2147483647 !important;
    transform: translate3d(-50%, 0, 0) !important;
    display: flex !important;
    width: min(780px, calc(100% - 36px)) !important;
    margin: 0 !important;
    pointer-events: auto !important;
    isolation: isolate !important;
}

@media (max-width: 760px) {
    body .topbar .nav-tabs,
    html body .topbar nav.nav-tabs {
        bottom: 12px !important;
        width: calc(100% - 18px) !important;
    }
}

/* Correção estrutural final: dock global, transições estáveis e enquadramento. */
html {
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    padding-bottom: 132px !important;
}

body::after {
    pointer-events: none;
}

.topbar {
    display: contents !important;
    position: static !important;
    width: 0 !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

.topbar > .brand,
.topbar > .top-actions {
    display: none !important;
}

.nav-tabs,
.vz-dock,
body > .nav-tabs,
body > .vz-dock {
    position: fixed !important;
    inset: auto auto max(22px, env(safe-area-inset-bottom)) 50% !important;
    transform: translate3d(-50%, 0, 0) !important;
    z-index: 2147483647 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: min(760px, calc(100vw - 36px)) !important;
    height: auto !important;
    min-height: 68px !important;
    margin: 0 !important;
    padding: 8px 10px !important;
    overflow: visible !important;
    border: 1px solid rgba(218, 231, 255, 0.18) !important;
    border-radius: 22px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
        rgba(24, 29, 51, 0.86) !important;
    box-shadow:
        0 26px 90px rgba(0, 0, 0, 0.68),
        0 0 0 1px rgba(255, 255, 255, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
    backdrop-filter: blur(26px) saturate(155%) !important;
    -webkit-backdrop-filter: blur(26px) saturate(155%) !important;
    isolation: isolate !important;
    pointer-events: auto !important;
    contain: none !important;
}

.nav-tabs::before,
.vz-dock::before {
    content: none !important;
}

.nav-tab {
    position: relative !important;
    z-index: 1 !important;
    display: inline-flex !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    min-height: 50px !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 8px 10px !important;
    border-radius: 15px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
    transform: none !important;
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease !important;
}

.nav-tab:hover,
.nav-tab.is-active {
    transform: none !important;
    border-color: rgba(94, 231, 255, 0.42) !important;
    background: linear-gradient(135deg, rgba(79, 140, 255, 0.34), rgba(94, 231, 255, 0.18)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 10px 26px rgba(33, 150, 243, 0.22) !important;
}

.nav-tab i {
    flex: 0 0 auto !important;
    font-size: 17px !important;
}

.nav-tab span {
    display: inline-block !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

.section-panel {
    display: none !important;
    position: relative !important;
    z-index: 1 !important;
    min-height: calc(100vh - 1px) !important;
    padding: clamp(56px, 7vh, 90px) 0 150px !important;
}

.section-panel.is-visible {
    display: block !important;
    animation: vz-section-enter 160ms ease-out both;
}

.home-screen.is-visible,
.contact-screen.is-visible {
    display: grid !important;
}

.home-screen .hero {
    min-height: calc(100vh - 154px) !important;
    padding-top: clamp(58px, 8vh, 104px) !important;
    padding-bottom: 142px !important;
}

@keyframes vz-section-enter {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-grid,
.featured-window,
.contact-window {
    overflow: hidden !important;
    padding-top: 58px !important;
}

.stats-grid::before {
    top: 24px !important;
    left: 24px !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 999px !important;
    background: #ff5f57 !important;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #28c840 !important;
    opacity: 1 !important;
}

.window-titlebar {
    top: 24px !important;
    left: 26px !important;
    right: 26px !important;
    height: 12px !important;
    gap: 8px !important;
    overflow: visible !important;
}

.window-titlebar span {
    width: 9px !important;
    height: 9px !important;
    flex: 0 0 9px !important;
    box-shadow: none !important;
}

.document-grid {
    align-items: stretch !important;
}

.document-card,
.institution-card,
.skill-card,
.stat-card {
    overflow: hidden !important;
    min-width: 0 !important;
}

.document-card h3,
.institution-card h3,
.skill-card h3 {
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    line-height: 1.18 !important;
}

.card-meta,
.area-line,
.description,
.chip-row,
.card-actions {
    min-width: 0 !important;
}

.chip-row,
.card-actions {
    flex-wrap: wrap !important;
}

.chip,
.action-link,
.inline-toggle,
.ghost-button {
    max-width: 100% !important;
    overflow-wrap: anywhere !important;
}

@media (max-width: 760px) {
    body {
        padding-bottom: 118px !important;
    }

    .nav-tabs,
    .vz-dock,
    body > .nav-tabs,
    body > .vz-dock {
        inset: auto auto max(12px, env(safe-area-inset-bottom)) 50% !important;
        width: calc(100vw - 16px) !important;
        min-height: 66px !important;
        gap: 4px !important;
        padding: 7px !important;
        border-radius: 20px !important;
    }

    .nav-tab {
        min-height: 52px !important;
        padding: 6px 5px !important;
        font-size: 9px !important;
        flex-direction: column !important;
    }

    .nav-tab i {
        font-size: 16px !important;
    }

    .section-panel {
        padding-top: 42px !important;
        padding-bottom: 124px !important;
    }

    .home-screen .hero {
        min-height: auto !important;
        padding-top: 48px !important;
        padding-bottom: 124px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .section-panel.is-visible {
        animation: none !important;
    }
}

/* Ajuste final: paleta mais proxima do portfolio e menos custo visual. */
:root {
    --vz-bg: #070d1c;
    --vz-panel: rgba(10, 16, 32, 0.78);
    --vz-line: rgba(180, 196, 255, 0.16);
    --vz-text: #f8fbff;
    --vz-muted: rgba(226, 232, 240, 0.68);
    --vz-cyan: #74d7ff;
    --vz-blue: #4f7cff;
    --vz-violet: #7c5cff;
    --vz-magenta: #65295f;
    --cyan: var(--vz-cyan);
    --blue: var(--vz-blue);
    --violet: var(--vz-violet);
    --line: var(--vz-line);
    --panel: var(--vz-panel);
    --muted: var(--vz-muted);
}

html,
body {
    background-color: #070d1c !important;
}

body {
    background:
        radial-gradient(ellipse at 14% 4%, rgba(47, 102, 190, 0.48), transparent 34rem),
        radial-gradient(ellipse at 72% 10%, rgba(98, 73, 201, 0.38), transparent 36rem),
        radial-gradient(ellipse at 94% 86%, rgba(101, 41, 95, 0.34), transparent 32rem),
        linear-gradient(135deg, #070d1c 0%, #111c37 44%, #292356 72%, #4a1f49 100%) !important;
    background-attachment: scroll !important;
}

body::before {
    display: none !important;
}

body::after {
    background: rgba(4, 8, 18, 0.30) !important;
    backdrop-filter: none !important;
}

.eyebrow,
.area-line,
code,
.mini-stat {
    color: #9edfff !important;
    text-shadow: none !important;
}

.hero-text,
.section-heading p:not(.eyebrow),
.description,
.institution-card p,
.skill-card p {
    color: rgba(226, 232, 240, 0.74) !important;
}

.stats-grid,
.toolbar,
.contact-window {
    border-color: rgba(190, 202, 255, 0.14) !important;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.028)),
        rgba(9, 14, 30, 0.66) !important;
    box-shadow: 0 22px 62px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(16px) saturate(120%) !important;
    -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
}

.document-card,
.institution-card,
.skill-card,
.stat-card {
    border-color: rgba(178, 192, 255, 0.14) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
        rgba(8, 13, 28, 0.82) !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.055) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.document-card::before,
.institution-card::before,
.skill-card::before {
    background: linear-gradient(90deg, rgba(116, 135, 255, 0.75), rgba(124, 92, 255, 0.58), rgba(160, 80, 170, 0.45)) !important;
    opacity: 0.34 !important;
}

.document-card:hover,
.institution-card:hover,
.skill-card:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(150, 170, 255, 0.30) !important;
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

.document-card.is-featured {
    border-color: rgba(145, 158, 255, 0.34) !important;
    background:
        radial-gradient(circle at 18% 0%, rgba(95, 107, 220, 0.16), transparent 14rem),
        linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
        rgba(8, 13, 28, 0.84) !important;
}

.featured-badge {
    color: #eef2ff !important;
    border-color: rgba(145, 158, 255, 0.30) !important;
    background: rgba(92, 82, 180, 0.20) !important;
}

.status {
    color: #d7ffe9 !important;
    border-color: rgba(74, 222, 128, 0.20) !important;
    background: rgba(21, 128, 91, 0.16) !important;
}

.status.pending {
    color: #fff1c2 !important;
    border-color: rgba(252, 211, 77, 0.28) !important;
    background: rgba(146, 98, 18, 0.22) !important;
}

.action-link.primary {
    border-color: rgba(120, 140, 255, 0.42) !important;
    background: linear-gradient(135deg, rgba(76, 110, 245, 0.94), rgba(96, 78, 190, 0.88)) !important;
    box-shadow: 0 12px 26px rgba(34, 64, 160, 0.20), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
}

.icon-box {
    color: #a9dfff !important;
    background:
        radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.18), transparent 32%),
        rgba(92, 104, 190, 0.16) !important;
}

.chip,
.inline-toggle,
.ghost-button,
.action-link:not(.primary) {
    border-color: rgba(190, 202, 255, 0.13) !important;
    background: rgba(255, 255, 255, 0.052) !important;
}

.nav-tabs,
.vz-dock,
body > .nav-tabs,
body > .vz-dock {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.052)),
        rgba(24, 27, 48, 0.90) !important;
    backdrop-filter: blur(24px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(145%) !important;
}

.nav-tab:hover,
.nav-tab.is-active {
    border-color: rgba(150, 166, 255, 0.42) !important;
    background: linear-gradient(135deg, rgba(76, 110, 245, 0.34), rgba(124, 92, 255, 0.20)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 10px 24px rgba(76, 80, 190, 0.20) !important;
}

.featured-window {
    display: none !important;
}

@media (max-width: 760px) {
    body {
        background:
            radial-gradient(ellipse at 18% 0%, rgba(47, 102, 190, 0.38), transparent 26rem),
            radial-gradient(ellipse at 82% 18%, rgba(98, 73, 201, 0.32), transparent 28rem),
            linear-gradient(135deg, #070d1c 0%, #121b35 52%, #322657 100%) !important;
        background-attachment: scroll !important;
    }

    .stats-grid,
    .toolbar,
    .contact-window {
        backdrop-filter: blur(12px) saturate(115%) !important;
        -webkit-backdrop-filter: blur(12px) saturate(115%) !important;
    }
}

/* Ajuste final pre-deploy: dock compacta e relacoes navegaveis. */
body {
    padding-bottom: 104px !important;
}

.nav-tabs,
.vz-dock,
body > .nav-tabs,
body > .vz-dock {
    width: min(560px, calc(100vw - 32px)) !important;
    min-height: 58px !important;
    gap: 5px !important;
    padding: 7px 8px !important;
    border-radius: 18px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.052)),
        rgba(22, 25, 45, 0.92) !important;
    box-shadow:
        0 18px 60px rgba(0, 0, 0, 0.58),
        inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(22px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(140%) !important;
}

.nav-tab {
    min-height: 42px !important;
    padding: 5px 7px !important;
    border-radius: 13px !important;
    gap: 4px !important;
    font-size: 9.5px !important;
    letter-spacing: 0 !important;
    flex-direction: column !important;
}

.nav-tab i {
    font-size: 15px !important;
}

.nav-tab span {
    font-size: 9.5px !important;
    line-height: 1.05 !important;
}

.section-panel {
    padding-bottom: 116px !important;
}

.document-card {
    min-height: 390px !important;
}

.card-section {
    margin-top: auto !important;
    padding-top: 14px !important;
}

.card-section .chip-row {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.card-section-label,
.details-label {
    margin: 0 0 8px !important;
    color: rgba(226, 232, 240, 0.54) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.12em !important;
    text-transform: uppercase !important;
}

.card-actions-secondary {
    margin-top: 10px !important;
}

.details-box {
    padding: 12px !important;
    background: rgba(2, 6, 18, 0.34) !important;
}

.details-list {
    display: grid !important;
    gap: 7px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.details-list li,
.details-list a {
    min-width: 0 !important;
}

.details-list li {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 8px 10px !important;
    border: 1px solid rgba(190, 202, 255, 0.12) !important;
    border-radius: 10px !important;
    color: rgba(241, 245, 249, 0.82) !important;
    background: rgba(255, 255, 255, 0.035) !important;
    font-size: 12px !important;
    font-weight: 750 !important;
}

.details-list a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    width: 100% !important;
    color: #dfe6ff !important;
    text-decoration: none !important;
}

.details-list small {
    flex: 0 0 auto !important;
    color: rgba(226, 232, 240, 0.50) !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
}

.visible-list {
    margin-bottom: 14px !important;
}

.link-stat {
    border: 1px solid rgba(150, 166, 255, 0.24) !important;
    border-radius: 999px !important;
    padding: 8px 11px !important;
    background: rgba(255, 255, 255, 0.045) !important;
    cursor: pointer !important;
}

.link-stat:hover,
.institution-card:hover .link-stat {
    border-color: rgba(150, 166, 255, 0.42) !important;
    color: #dfe6ff !important;
    background: rgba(124, 92, 255, 0.13) !important;
}

.institution-card[data-filter-institution] {
    cursor: pointer !important;
}

.institution-card[data-filter-institution]:focus-visible,
.link-stat:focus-visible,
.inline-toggle:focus-visible,
.nav-tab:focus-visible {
    outline: 2px solid rgba(150, 166, 255, 0.72) !important;
    outline-offset: 3px !important;
}

@media (max-width: 760px) {
    body {
        padding-bottom: 96px !important;
    }

    .nav-tabs,
    .vz-dock,
    body > .nav-tabs,
    body > .vz-dock {
        width: calc(100vw - 14px) !important;
        min-height: 56px !important;
        bottom: max(10px, env(safe-area-inset-bottom)) !important;
        padding: 6px !important;
        gap: 3px !important;
        border-radius: 17px !important;
    }

    .nav-tab {
        min-height: 42px !important;
        padding: 5px 3px !important;
        font-size: 8.5px !important;
    }

    .nav-tab i {
        font-size: 14px !important;
    }

    .nav-tab span {
        font-size: 8.5px !important;
    }

    .section-panel {
        padding-bottom: 102px !important;
    }

    .filters {
        grid-template-columns: 1fr !important;
    }

    .toolbar {
        padding: 13px !important;
    }

    .details-list li {
        align-items: flex-start !important;
        flex-direction: column !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .nav-tab,
    .document-card,
    .institution-card,
    .skill-card,
    .action-link,
    .inline-toggle {
        transition: none !important;
    }
}

/* Hotfix pos-deploy: home minimalista, dock menor e estatisticas discretas. */
.home-screen .hero {
    grid-template-columns: minmax(0, 1fr) !important;
    align-content: center !important;
    justify-items: center !important;
    min-height: calc(100vh - 112px) !important;
    padding-top: clamp(44px, 8vh, 88px) !important;
    padding-bottom: 140px !important;
    text-align: center !important;
}

.home-screen .hero-copy {
    grid-column: auto !important;
    width: min(760px, 100%) !important;
    margin: -34px auto 0 !important;
}

.home-screen h1 {
    max-width: none !important;
    margin-bottom: 10px !important;
    font-family: "Montserrat", Inter, system-ui, sans-serif !important;
    font-size: clamp(58px, 12vw, 148px) !important;
    line-height: 0.88 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
    font-kerning: normal !important;
    text-rendering: geometricPrecision !important;
}

.home-screen .hero-subtitle {
    margin: 0 0 18px !important;
    color: rgba(248, 250, 252, 0.90) !important;
    font-size: clamp(18px, 3vw, 28px) !important;
    font-weight: 800 !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
}

.home-screen .hero-text {
    max-width: 620px !important;
    margin: 0 auto !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
}

.home-screen .stats-grid {
    width: min(760px, 100%) !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin-top: clamp(36px, 6vh, 56px) !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.home-screen .stats-grid::before,
.home-screen .window-titlebar {
    display: none !important;
}

.home-screen .stat-card {
    min-height: 66px !important;
    padding: 12px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 14px !important;
    opacity: 0.88 !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015)),
        rgba(10, 16, 32, 0.56) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        0 10px 24px rgba(0, 0, 0, 0.12) !important;
}

.home-screen .stat-card strong {
    font-size: 24px !important;
}

.home-screen .stat-card span {
    margin-top: 5px !important;
    font-size: 9px !important;
    letter-spacing: 0.06em !important;
    color: rgba(226, 232, 240, 0.7) !important;
}

.nav-tabs,
.vz-dock,
body > .nav-tabs,
body > .vz-dock {
    width: min(430px, calc(100vw - 28px)) !important;
    min-height: 48px !important;
    padding: 5px 6px !important;
    gap: 3px !important;
    border-radius: 16px !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045)),
        rgba(34, 38, 58, 0.91) !important;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.13) !important;
    backdrop-filter: blur(20px) saturate(135%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(135%) !important;
}

.nav-tab {
    min-height: 38px !important;
    padding: 4px 5px !important;
    border-radius: 11px !important;
    gap: 2px !important;
}

.nav-tab i {
    font-size: 14px !important;
}

.nav-tab span {
    max-width: 54px !important;
    font-size: 7.5px !important;
    line-height: 1 !important;
    opacity: 0.72 !important;
}

.nav-tab[data-section-button="inicio"] span {
    width: 0 !important;
    max-width: 0 !important;
    opacity: 0 !important;
    overflow: hidden !important;
}

.nav-tab:hover,
.nav-tab.is-active {
    transform: none !important;
}

.card-actions-secondary:empty {
    display: none !important;
}

@media (max-width: 900px) {
    .home-screen .stats-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        width: min(620px, 100%) !important;
    }
}

@media (max-width: 760px) {
    .home-screen .hero {
        min-height: auto !important;
        padding-top: clamp(56px, 10vh, 88px) !important;
        padding-bottom: 104px !important;
    }

    .home-screen h1 {
        font-size: clamp(52px, 18vw, 82px) !important;
    }

    .home-screen .hero-text {
        font-size: 14px !important;
    }

    .home-screen .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 8px !important;
        margin-top: 28px !important;
    }

    .home-screen .stat-card {
        min-height: 64px !important;
        padding: 10px !important;
    }

    .nav-tabs,
    .vz-dock,
    body > .nav-tabs,
    body > .vz-dock {
        width: calc(100vw - 18px) !important;
        min-height: 50px !important;
        padding: 5px !important;
    }

    .nav-tab {
        min-height: 39px !important;
        padding: 4px 2px !important;
    }

    .nav-tab i {
        font-size: 13px !important;
    }

    .nav-tab span {
        max-width: 50px !important;
        font-size: 7px !important;
    }
}

/* Hotfix Acervo 05: resumo restrito ao Inicio e dock mais compacta. */
.section-panel:not(.home-screen) .stats-grid-wrapper,
.section-panel:not(.home-screen) .stats-grid {
    display: none !important;
}

.home-screen:not(.is-visible) .stats-grid-wrapper,
.home-screen:not(.is-visible) .stats-grid {
    display: none !important;
}

.home-screen .stats-grid-wrapper {
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin: 0 auto clamp(24px, 5vh, 48px) !important;
    padding: 0 0 24px !important;
}

.nav-tabs,
.vz-dock,
body > .nav-tabs,
body > .vz-dock {
    width: auto !important;
    max-width: calc(100vw - 32px) !important;
    min-height: 62px !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    border-radius: 17px !important;
    border-color: rgba(218, 231, 255, 0.14) !important;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.04)),
        rgba(24, 29, 44, 0.84) !important;
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.11) !important;
    backdrop-filter: blur(14px) saturate(125%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(125%) !important;
}

.nav-tab {
    position: relative !important;
    flex: 0 0 50px !important;
    width: 50px !important;
    min-width: 50px !important;
    min-height: 46px !important;
    display: grid !important;
    place-items: center !important;
    padding: 0 !important;
    gap: 0 !important;
    border-radius: 11px !important;
}

.nav-tab i {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    display: block !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    transform: translate(-50%, -50%) !important;
}

.nav-tab span,
.nav-tab[data-section-button="inicio"] span {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    max-width: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
    opacity: 0 !important;
}

.nav-tab:hover,
.nav-tab.is-active {
    border-color: rgba(94, 231, 255, 0.26) !important;
    color: #e9fdff !important;
    background: rgba(45, 212, 191, 0.16) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(20, 184, 166, 0.16) !important;
}

@media (max-width: 760px) {
    body {
        padding-bottom: 104px !important;
    }

    .section-panel {
        padding-bottom: 112px !important;
    }

    .nav-tabs,
    .vz-dock,
    body > .nav-tabs,
    body > .vz-dock {
        bottom: max(9px, env(safe-area-inset-bottom)) !important;
        max-width: calc(100vw - 20px) !important;
        min-height: 58px !important;
        padding: 7px 8px !important;
        gap: 6px !important;
        border-radius: 16px !important;
    }

    .nav-tab {
        flex-basis: 46px !important;
        width: 46px !important;
        min-width: 46px !important;
        min-height: 42px !important;
    }

    .nav-tab i {
        font-size: 16px !important;
    }

    .contact-screen.is-visible {
        align-items: start !important;
        padding-top: 28px !important;
    }

    .contact-window {
        padding: 50px 14px 24px !important;
        border-radius: 20px !important;
    }

    .contact-content h2 {
        margin-bottom: 10px !important;
        font-size: clamp(34px, 12vw, 46px) !important;
        line-height: 0.98 !important;
    }

    .contact-content p:not(.eyebrow) {
        font-size: 13px !important;
        line-height: 1.45 !important;
    }

    .contact-grid {
        gap: 8px !important;
        margin-top: 18px !important;
    }

    .contact-card {
        min-height: 50px !important;
        gap: 9px !important;
        padding: 0 11px !important;
        border-radius: 14px !important;
        font-size: 13px !important;
    }

    .contact-card i {
        font-size: 17px !important;
    }

    .contact-card-wide {
        font-size: 12px !important;
    }
}

/* --- OVERRIDES MOBILE (at 768px) --- */
@media (max-width: 768px) {
    /* 1. Hero Mobile Acervo */
    .home-screen .hero {
        min-height: 100svh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding-top: 0 !important;
        padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    }

    /* 2. Stats Grid pushed below the fold */
    .home-screen .stats-grid-wrapper {
        margin-top: 5vh !important;
        padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    }
    .home-screen .stats-grid {
        width: 100% !important;
        margin-top: 0 !important;
    }

    /* 3. Dock Mobile Acervo (Padronizada com Vitrine) */
    .nav-tabs,
    .vz-dock,
    body > .nav-tabs,
    body > .vz-dock {
        position: fixed !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        bottom: calc(12px + env(safe-area-inset-bottom)) !important;
        width: min(calc(100vw - 28px), 520px) !important;
        max-width: calc(100vw - 28px) !important;
        box-sizing: border-box !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        justify-content: center !important;
        padding: 6px !important;
        border-radius: 16px !important;
        gap: 4px !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }
    .nav-tabs::-webkit-scrollbar,
    .vz-dock::-webkit-scrollbar {
        display: none !important;
    }

    .nav-tab {
        padding: 8px 12px !important;
        flex: 0 0 auto !important;
        width: auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .nav-tab i {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        font-size: 1.1rem !important;
        margin: 0 !important;
    }

    .nav-tab span {
        display: none !important;
    }

    .nav-tab.is-active,
    .nav-tab:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        box-shadow: none !important;
        border-color: transparent !important;
    }

    /* Prevent bottom overlap on other sections */
    body {
        padding-bottom: calc(110px + env(safe-area-inset-bottom)) !important;
    }
}
