﻿    :root {
        --shadow-card: var(--shadow-sm);
        --shadow-card-hover: var(--shadow-md);
        --db-gap: 1.25rem;
        --db-bg-a: #e4ebf6;
        --db-bg-b: #eef4fc;
        --db-bg-c: #ebe7f4;
        --db-surface: #ffffff;
        --db-radius: 18px;
        --db-shadow: 0 14px 44px rgba(16, 0, 19, 0.07);
        --db-shadow-tight: 0 8px 28px rgba(16, 0, 19, 0.06);
        --db-rail-w: 58px;
    }

    .db-canvas {
        background: linear-gradient(152deg, var(--db-bg-a) 0%, var(--db-bg-b) 45%, var(--db-bg-c) 100%);
        width: 100%;
        margin: 0;
        padding: 1rem 0.75rem 2.75rem;
        box-sizing: border-box;
    }

    @media (min-width: 640px) {
        .db-canvas { padding: 1.25rem 1.25rem 3rem; }
    }

    /* Duas colunas: rail | Ã¡rea (topbar + conteÃºdo + ranking) */
    .db-workbench--2col {
        width: 100%;
        max-width: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: var(--db-gap);
        min-height: 0;
    }

    @media (min-width: 1100px) {
        .db-workbench--2col {
            display: grid;
            grid-template-columns: var(--db-rail-w) minmax(0, 1fr);
            grid-template-rows: auto;
            gap: 0 1.25rem;
            align-items: start;
        }
    }

    .db-rail {
        width: var(--db-rail-w);
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 14px 0 12px;
        border-radius: var(--db-radius);
        background: linear-gradient(180deg, #3a0d55 0%, #1f0630 100%);
        box-shadow: var(--db-shadow-tight);
        border: 1px solid rgba(255, 255, 255, 0.06);
    }

    @media (min-width: 1100px) {
        .db-workbench--2col .db-rail {
            border-radius: 0 var(--db-radius) var(--db-radius) 0;
            margin-left: 0;
            align-self: stretch;
        }
    }

    @media (max-width: 1099px) {
        .db-rail {
            width: 100%;
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            padding: 10px 12px;
            gap: 6px;
            border-radius: var(--db-radius);
        }
    }

    .db-rail-brand {
        width: 36px;
        height: 36px;
        border-radius: 11px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        font-size: 0.95rem;
        background: linear-gradient(135deg, var(--orange) 0%, var(--magenta) 100%);
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    }

    .db-rail-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin-top: 12px;
        flex: 1;
    }

    @media (max-width: 1099px) {
        .db-rail-nav {
            flex-direction: row;
            flex-wrap: wrap;
            justify-content: center;
            margin-top: 0;
            flex: 1 1 auto;
        }
    }

    .db-rail-footer {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 6px;
        margin-top: auto;
        padding-top: 8px;
    }

    @media (max-width: 1099px) {
        .db-rail-footer {
            flex-direction: row;
            margin-top: 0;
            padding-top: 0;
        }
    }

    .db-rail-link {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255, 255, 255, 0.82);
        text-decoration: none;
        font-size: 0.95rem;
        transition: background 0.2s, color 0.2s, transform 0.15s;
    }

    .db-rail-link:hover {
        background: rgba(255, 255, 255, 0.1);
        color: var(--white);
        transform: translateY(-1px);
    }

    .db-rail-link--active {
        background: rgba(255, 131, 0, 0.22);
        color: #ffb347;
    }

    .db-page-wrap {
        flex: 1;
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: var(--db-gap);
    }

    @media (min-width: 1200px) {
        .db-page-wrap {
            display: grid;
            grid-template-columns: minmax(0, 1fr) minmax(400px, 38vw);
            grid-template-rows: auto auto;
            gap: var(--db-gap);
            align-items: start;
        }

        .db-topbar {
            grid-column: 1 / -1;
        }

        .db-main {
            grid-column: 1;
            grid-row: 2;
        }

        .db-aside {
            grid-column: 2;
            grid-row: 2;
            align-self: start;
        }

        .db-aside .db-ranking-card {
            height: auto;
            max-height: none;
        }

        .db-aside .ranking-table-wrap {
            flex: 1 1 auto;
            max-height: none;
            min-height: 12rem;
        }
    }

    @media (min-width: 1500px) {
        .db-page-wrap {
            grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
        }
    }

    .db-topbar {
        position: relative;
        overflow: hidden;
        border-radius: var(--db-radius);
        box-shadow: var(--db-shadow);
        border: 1px solid rgba(255, 255, 255, 0.9);
        background: linear-gradient(128deg, #ffffff 0%, #faf8fc 42%, #f3eef9 100%);
    }

    .db-topbar::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 5px;
        background: linear-gradient(180deg, var(--orange) 0%, var(--magenta) 55%, var(--purple-dark) 100%);
        border-radius: var(--db-radius) 0 0 var(--db-radius);
    }

    .db-topbar__glow {
        position: absolute;
        right: -8%;
        top: -40%;
        width: min(320px, 45%);
        height: 140%;
        background: radial-gradient(ellipse at center, rgba(147, 3, 159, 0.12) 0%, transparent 68%);
        pointer-events: none;
    }

    .db-topbar__inner {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        align-items: flex-end;
        justify-content: space-between;
        gap: 1.25rem 1.5rem;
        padding: 1.35rem 1.5rem 1.35rem 1.65rem;
    }

    .db-topbar__copy {
        flex: 1 1 16rem;
        min-width: 0;
    }

    .db-topbar__eyebrow {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem 0.65rem;
        margin-bottom: 0.65rem;
    }

    .db-topbar-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        font-family: var(--font-titles);
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--white);
        background: linear-gradient(135deg, var(--purple-dark) 0%, var(--magenta) 100%);
        padding: 0.35rem 0.75rem;
        border-radius: 999px;
        box-shadow: 0 4px 14px rgba(93, 5, 140, 0.25);
    }

    .db-topbar-badge i {
        font-size: 0.7rem;
        opacity: 0.95;
    }

    .db-topbar-dot {
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: var(--gray-medium);
        flex-shrink: 0;
    }

    .db-topbar-region {
        display: inline-flex;
        align-items: center;
        gap: 0.35rem;
        font-family: var(--font-titles);
        font-size: 0.78rem;
        font-weight: 600;
        letter-spacing: 0.06em;
        text-transform: uppercase;
        color: var(--purple-dark);
    }

    .db-topbar-region i {
        color: var(--orange);
        font-size: 0.75rem;
    }

    .db-topbar__title {
        font-family: var(--font-titles);
        font-size: clamp(1.45rem, 3.2vw, 1.85rem);
        font-weight: 700;
        line-height: 1.15;
        color: var(--black);
        margin: 0;
        letter-spacing: 0.01em;
    }

    .db-topbar__accent-word {
        display: inline-block;
        margin-left: 0.15em;
        background: linear-gradient(120deg, var(--purple-dark) 0%, var(--magenta) 45%, var(--orange) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }

    .db-topbar-lead {
        font-size: 0.92rem;
        color: var(--gray-dark);
        max-width: 40rem;
        margin: 0.65rem 0 0;
        line-height: 1.55;
    }

    .db-topbar__aside {
        display: flex;
        flex-wrap: wrap;
        align-items: stretch;
        gap: 0.65rem;
        flex-shrink: 0;
    }

    .db-topbar-chip {
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-width: 5.5rem;
        padding: 0.65rem 1rem;
        border-radius: 14px;
        background: var(--white);
        border: 1px solid #e4eaf2;
        box-shadow: 0 6px 20px rgba(16, 0, 19, 0.05);
        text-align: center;
    }

    .db-topbar-chip--accent {
        border-color: rgba(147, 3, 159, 0.2);
        background: linear-gradient(160deg, #fff 0%, rgba(235, 229, 244, 0.9) 100%);
    }

    .db-topbar-chip__value {
        font-family: var(--font-titles);
        font-size: 1.5rem;
        font-weight: 700;
        line-height: 1.1;
        color: var(--purple-dark);
        font-variant-numeric: tabular-nums;
    }

    .db-topbar-chip--accent .db-topbar-chip__value {
        color: var(--magenta);
    }

    .db-topbar-chip__label {
        font-size: 0.68rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--gray-dark);
        margin-top: 0.2rem;
    }

    .db-topbar-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.45rem;
        align-self: center;
        padding: 0.7rem 1rem;
        font-family: var(--font-titles);
        font-size: 0.75rem;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        text-decoration: none;
        color: var(--white);
        background: linear-gradient(135deg, var(--orange) 0%, #e67300 100%);
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(255, 131, 0, 0.35);
        transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
        white-space: nowrap;
    }

    .db-topbar-link:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 20px rgba(255, 131, 0, 0.45);
        background: linear-gradient(135deg, var(--magenta) 0%, var(--purple-dark) 100%);
        color: var(--white);
    }

    @media (max-width: 720px) {
        .db-topbar__inner {
            padding: 1.15rem 1.15rem 1.15rem 1.35rem;
        }

        .db-topbar__aside {
            width: 100%;
        }

        .db-topbar-chip {
            flex: 1 1 calc(50% - 0.35rem);
            min-width: 0;
        }

        .db-topbar-link {
            width: 100%;
        }
    }

    .db-card {
        background: var(--db-surface);
        border-radius: var(--db-radius);
        box-shadow: var(--db-shadow);
        border: 1px solid rgba(232, 236, 244, 0.95);
        padding: 1.35rem 1.45rem;
    }

    .db-card--accent-purple { border-left: 4px solid var(--purple-dark); }
    .db-card--accent-magenta { border-left: 4px solid var(--magenta); }
    .db-card--accent-orange { border-left: 4px solid var(--orange); }
    .db-card--accent-red { border-left: 4px solid #b91c1c; }

    .db-card .db-section-head {
        border-bottom-color: #e4e9f2;
    }

    .db-kpi-grid .lbc-kpi {
        border-radius: 14px;
        border: 1px solid #e4eaf2;
        box-shadow: 0 6px 22px rgba(16, 0, 19, 0.045);
    }

    .db-main {
        display: flex;
        flex-direction: column;
        gap: var(--db-gap);
        min-width: 0;
        min-height: 0;
    }

    .db-aside {
        min-width: 0;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }

    .db-aside .db-ranking-card {
        display: flex;
        flex-direction: column;
        overflow: hidden;
        min-height: 0;
        flex: 1 1 auto;
    }

    .db-ranking-head {
        margin-bottom: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .db-aside #ranking-titulo {
        font-size: 1.15rem;
    }

    .db-aside .ranking-table-wrap {
        flex: 1 1 auto;
        min-height: 0;
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .db-aside .lbc-table {
        font-size: 0.9rem;
    }

    .db-aside .lbc-table th,
    .db-aside .lbc-table td {
        padding: 0.55rem 0.65rem;
    }

    .db-aside .lbc-table th {
        font-size: 0.72rem;
        white-space: nowrap;
    }

    @media (min-width: 1100px) and (max-width: 1199px) {
        .db-aside .ranking-table-wrap {
            max-height: min(72vh, 720px);
        }
        .db-aside .db-ranking-card {
            min-height: 420px;
        }
    }

    @media (max-width: 1099px) {
        .db-aside .db-ranking-card {
            min-height: 380px;
        }
        .db-aside .ranking-table-wrap {
            max-height: min(65vh, 640px);
        }
    }

    .db-section {
        margin: 0;
    }

    .db-section-head {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        justify-content: space-between;
        gap: 0.5rem 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid var(--gray-medium);
    }

    .db-section-kicker {
        font-family: var(--font-titles);
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--magenta);
    }

    .db-section-title {
        font-family: var(--font-titles);
        font-size: 1.15rem;
        font-weight: 700;
        color: var(--purple-dark);
        margin: 0.1rem 0 0;
        letter-spacing: 0.02em;
    }

    .db-section-lead {
        font-size: 0.85rem;
        color: var(--gray-dark);
        margin: 0.35rem 0 0;
        max-width: 48rem;
        line-height: 1.5;
    }

    .db-filters-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem 1.25rem;
    }

    @media (min-width: 768px) {
        .db-filters-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    .db-filter-actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem 1rem;
        margin-top: 1.25rem;
        padding-top: 1rem;
        border-top: 1px dashed var(--gray-medium);
    }

    .db-filter-echo {
        font-size: 0.8rem;
        color: var(--gray-dark);
        flex: 1;
        min-width: 12rem;
        text-align: right;
    }

    @media (max-width: 640px) {
        .db-filter-echo { text-align: left; width: 100%; }
    }

    .db-kpi-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1rem;
    }

    @media (min-width: 900px) {
        .db-kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    .db-kpi-grid .lbc-kpi { height: 100%; }

    .db-kpi-grid .lbc-kpi:nth-child(2) { border-left-color: var(--magenta); }
    .db-kpi-grid .lbc-kpi:nth-child(3) { border-left-color: var(--purple-dark); }
    .db-kpi-grid .lbc-kpi:nth-child(4) { border-left-color: var(--orange); }

    .db-section--contexto .db-section-head {
        margin-bottom: 1rem;
    }

    .db-insights-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
        align-items: stretch;
    }

    @media (min-width: 900px) {
        .db-insights-grid {
            grid-template-columns: 1.15fr 1fr 1fr;
        }
    }

    .db-insight {
        display: flex;
        flex-direction: column;
        min-height: 100%;
        padding: 1.25rem 1.3rem 1.2rem;
        border-radius: var(--db-radius);
        background: var(--white);
        border: 1px solid #e4eaf2;
        box-shadow: 0 8px 28px rgba(16, 0, 19, 0.05);
        position: relative;
        overflow: hidden;
    }

    .db-insight::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
    }

    .db-insight--stats::before {
        background: linear-gradient(90deg, var(--purple-dark), var(--magenta));
    }

    .db-insight--best::before {
        background: linear-gradient(90deg, var(--magenta), #c026d3);
    }

    .db-insight--warn::before {
        background: linear-gradient(90deg, #dc2626, var(--orange));
    }

    .db-insight__header {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .db-insight__icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        color: var(--white);
        background: linear-gradient(135deg, var(--purple-dark), var(--magenta));
        box-shadow: 0 4px 12px rgba(93, 5, 140, 0.25);
        flex-shrink: 0;
    }

    .db-insight__icon--best {
        background: linear-gradient(135deg, #059669, #10b981);
        box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
    }

    .db-insight__icon--warn {
        background: linear-gradient(135deg, #dc2626, #f97316);
        box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
    }

    .db-insight__title {
        font-family: var(--font-titles);
        font-size: 0.95rem;
        font-weight: 700;
        color: var(--purple-dark);
        margin: 0;
        letter-spacing: 0.02em;
        line-height: 1.25;
    }

    .db-stat-list {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        flex: 1;
    }

    .db-stat-item {
        padding: 0.65rem 0.75rem;
        border-radius: 12px;
        background: var(--gray-light);
        border: 1px solid transparent;
    }

    .db-stat-item--neutral {
        background: linear-gradient(135deg, rgba(93, 5, 140, 0.06), rgba(147, 3, 159, 0.04));
        border-color: rgba(93, 5, 140, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 0.75rem;
    }

    .db-stat-item__label {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--gray-dark);
        line-height: 1.3;
    }

    .db-stat-item__value {
        font-family: var(--font-titles);
        font-size: 1.35rem;
        font-weight: 700;
        font-variant-numeric: tabular-nums;
        color: var(--purple-dark);
        line-height: 1;
    }

    .db-stat-item--neutral .db-stat-item__value {
        font-size: 1.5rem;
    }

    .db-stat-item__track {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        margin-top: 0.35rem;
    }

    .db-stat-item--up .db-stat-item__value { color: #059669; font-size: 1.2rem; }
    .db-stat-item--down .db-stat-item__value { color: #dc2626; font-size: 1.2rem; }
    .db-stat-item--mid .db-stat-item__value { color: var(--magenta); font-size: 1.2rem; }

    .db-stat-item--up { background: rgba(5, 150, 105, 0.08); border-color: rgba(5, 150, 105, 0.15); }
    .db-stat-item--down { background: rgba(220, 38, 38, 0.06); border-color: rgba(220, 38, 38, 0.12); }
    .db-stat-item--mid { background: rgba(147, 3, 159, 0.06); border-color: rgba(147, 3, 159, 0.12); }

    .db-stat-bar {
        flex: 1;
        height: 6px;
        border-radius: 999px;
        background: rgba(16, 0, 19, 0.08);
        overflow: hidden;
        min-width: 3rem;
    }

    .db-stat-bar__fill {
        display: block;
        height: 100%;
        border-radius: 999px;
        width: 0;
        transition: width 0.35s ease;
    }

    .db-stat-item--up .db-stat-bar__fill { background: linear-gradient(90deg, #10b981, #059669); }
    .db-stat-item--down .db-stat-bar__fill { background: linear-gradient(90deg, #f87171, #dc2626); }
    .db-stat-item--mid .db-stat-bar__fill { background: linear-gradient(90deg, var(--magenta), var(--purple-dark)); }

    .db-insight__eixo {
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--gray-dark);
        line-height: 1.45;
        margin: 0 0 0.5rem;
        flex: 1;
    }

    .db-insight__hero {
        font-family: var(--font-titles);
        font-size: clamp(2rem, 4vw, 2.65rem);
        font-weight: 700;
        line-height: 1;
        margin: 0;
        font-variant-numeric: tabular-nums;
    }

    .db-insight__hero--magenta {
        color: var(--magenta);
        text-shadow: 0 2px 12px rgba(147, 3, 159, 0.15);
    }

    .db-insight__hero--alert {
        color: #dc2626;
        text-shadow: 0 2px 12px rgba(220, 38, 38, 0.12);
    }

    .db-insight__hint {
        font-size: 0.72rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--gray-dark);
        margin: 0.65rem 0 0;
        opacity: 0.85;
    }

    @media (max-width: 899px) {
        .db-insight__hero { font-size: 2rem; }
    }

    .charts-row {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    @media (min-width: 900px) {
        .charts-row { grid-template-columns: 1fr 1fr; }
    }

    .chart-container {
        position: relative;
        height: 220px;
        width: 100%;
    }

    #chartNiveisContainer {
        position: relative;
        min-height: 220px;
    }

    .chart-radar-eixos-wrap {
        position: relative;
        height: min(340px, 48vh);
        width: 100%;
        max-width: 560px;
        margin-left: auto;
        margin-right: auto;
    }

    .stat-card {
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .stat-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-card-hover);
    }

    .card {
        background: var(--white);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        border: 1px solid var(--gray-medium);
    }

    .btn-primary {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.5rem 1rem;
        font-family: var(--font-titles);
        font-size: 0.78rem;
        letter-spacing: 0.05em;
        font-weight: 600;
        color: var(--white);
        background: var(--orange);
        border-radius: var(--radius-sm);
        transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
        text-decoration: none;
    }

    .btn-primary:hover {
        background: var(--magenta);
        box-shadow: 0 6px 16px rgba(147, 3, 159, 0.35);
        transform: translateY(-1px);
    }

    .section-title {
        font-family: var(--font-titles);
        font-size: 1rem;
        font-weight: 700;
        color: var(--purple-dark);
        margin: 0;
    }

    .db-radar-placeholder {
        border-radius: var(--radius-md);
        border: 2px dashed var(--gray-medium);
        background: rgba(235, 229, 244, 0.65);
        color: var(--gray-dark);
    }

    .db-radar-placeholder strong { color: var(--purple-dark); }

    /*
     * Painel público: rolagem natural — sem sticky que sobreponha seções ao descer a página.
     */
    body.lbc-body--dashboard-app {
        overflow-x: hidden;
        overflow-y: auto;
        min-height: 100dvh;
    }

    body.lbc-body--dashboard-app .lbc-header {
        display: none;
    }

    body.lbc-body--dashboard-app .lbc-footer {
        display: none;
    }

    body.lbc-body--dashboard-app .lbc-main {
        padding-top: 0;
        padding-bottom: 0;
        overflow: visible;
        min-height: auto;
    }

    body.lbc-body--dashboard-app .db-topbar {
        position: relative;
        z-index: 1;
    }

    body.lbc-body--dashboard-app .db-canvas {
        overflow: visible;
        min-height: auto;
        padding: 0.65rem 0.75rem 2rem;
    }

    @media (min-width: 640px) {
        body.lbc-body--dashboard-app .db-canvas {
            padding: 0.75rem 1rem 2.5rem;
        }
    }

    body.lbc-body--dashboard-app .db-workbench--2col {
        overflow: visible;
        min-height: auto;
        align-items: start;
    }

    body.lbc-body--dashboard-app .db-rail {
        align-self: start;
    }

    body.lbc-body--dashboard-app .db-page-wrap {
        overflow: visible;
        min-height: auto;
    }

    body.lbc-body--dashboard-app .db-main,
    body.lbc-body--dashboard-app .db-aside {
        min-width: 0;
        overflow: visible;
        position: relative;
        z-index: auto;
    }

    body.lbc-body--dashboard-app .db-section {
        position: relative;
        z-index: auto;
    }

    body.lbc-body--dashboard-app .db-card {
        position: relative;
        background: var(--db-surface);
    }

/* Utilitários (substituem Tailwind no dashboard) */
.db-hidden { display: none !important; }
.db-tabular { font-variant-numeric: tabular-nums; }
.db-flex { display: flex; }
.db-flex-col { flex-direction: column; }
.db-flex-wrap { flex-wrap: wrap; }
.db-items-center { align-items: center; }
.db-items-start { align-items: flex-start; }
.db-justify-between { justify-content: space-between; }
.db-justify-center { justify-content: center; }
.db-gap-2 { gap: 0.5rem; }
.db-shrink-0 { flex-shrink: 0; }
.db-overflow-hidden { overflow: hidden; }
.db-relative { position: relative; }
.db-absolute { position: absolute; }
.db-inset-0 { inset: 0; }
.db-text-center { text-align: center; }
.db-text-xs { font-size: 0.75rem; }
.db-text-sm { font-size: 0.875rem; }
.db-font-semibold { font-weight: 600; }
.db-font-bold { font-weight: 700; }
.db-mb-0 { margin-bottom: 0; }
.db-mb-2 { margin-bottom: 0.5rem; }
.db-mb-3 { margin-bottom: 0.75rem; }
.db-mt-1 { margin-top: 0.25rem; }
.db-mt-2 { margin-top: 0.5rem; }
.db-px-4 { padding-left: 1rem; padding-right: 1rem; }
.db-py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.db-pt-2 { padding-top: 0.5rem; }
.db-max-w-md { max-width: 28rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.shrink-0 { flex-shrink: 0; }
.overflow-hidden { overflow: hidden; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.hidden { display: none !important; }

.db-chart-empty {
    padding: 1.5rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-dark);
    line-height: 1.5;
}

.db-section--filtros {
    margin-bottom: 0.25rem;
}

body.lbc-body--dashboard-app .db-section--filtros .db-card {
    box-shadow: var(--db-shadow);
}

@media (prefers-reduced-motion: reduce) {
    .parceiros-track { animation: none !important; }
    .chart-radar-eixos-wrap canvas { transition: none; }
}

/* —— Visualização pública de maturidade (v6) —— */
:root {
    --nivel-1: #ef4444;
    --nivel-2: #ff8300;
    --nivel-3: #ca8a04;
    --nivel-4: #5d058c;
    --nivel-5: #059669;
}

.db-section-head--compact { margin-bottom: 0.75rem; }
.db-filters-grid--public { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) {
    .db-filters-grid--public { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.db-panorama-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.db-panorama-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
}

.db-panorama-kpi {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding: 0.65rem 1rem;
    border-radius: 14px;
    background: var(--db-surface);
    box-shadow: var(--db-shadow-tight);
    border: 1px solid rgba(93, 5, 140, 0.08);
    min-width: 7rem;
}

.db-panorama-kpi--muted {
    opacity: 0.72;
    background: rgba(255, 255, 255, 0.65);
}

.db-panorama-kpi__value {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--purple-dark);
    font-variant-numeric: tabular-nums;
}

.db-panorama-kpi__label {
    font-size: 0.72rem;
    color: var(--gray-dark);
    text-align: right;
    margin-top: 0.15rem;
}

.db-nivel-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-bottom: 1rem;
}

@media (min-width: 720px) {
    .db-nivel-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.db-nivel-strip__item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 2px solid transparent;
    background: var(--db-surface);
    box-shadow: var(--db-shadow-tight);
    cursor: pointer;
    text-align: left;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
}

.db-nivel-strip__item:hover {
    transform: translateY(-2px);
    box-shadow: var(--db-shadow);
}

.db-nivel-strip__item--n1 { border-color: rgba(239, 68, 68, 0.35); }
.db-nivel-strip__item--n2 { border-color: rgba(255, 131, 0, 0.4); }
.db-nivel-strip__item--n3 { border-color: rgba(202, 138, 4, 0.4); }
.db-nivel-strip__item--n4 { border-color: rgba(93, 5, 140, 0.35); }
.db-nivel-strip__item--n5 { border-color: rgba(5, 150, 105, 0.4); }

.db-nivel-strip__badge {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    color: #fff;
}

.db-nivel-strip__item--n1 .db-nivel-strip__badge { background: var(--nivel-1); }
.db-nivel-strip__item--n2 .db-nivel-strip__badge { background: var(--nivel-2); }
.db-nivel-strip__item--n3 .db-nivel-strip__badge { background: var(--nivel-3); }
.db-nivel-strip__item--n4 .db-nivel-strip__badge { background: var(--nivel-4); }
.db-nivel-strip__item--n5 .db-nivel-strip__badge { background: var(--nivel-5); }

.db-nivel-strip__name {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--purple-dark);
    line-height: 1.2;
}

.db-nivel-strip__count {
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    color: var(--text);
}

.db-nivel-legend-details {
    margin-top: 0.5rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(93, 5, 140, 0.1);
    padding: 0.5rem 1rem;
}

.db-nivel-legend-details__summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-dark);
    padding: 0.35rem 0;
}

.db-nivel-legend-grid {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem 0 0.5rem;
}

@media (min-width: 900px) {
    .db-nivel-legend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.db-nivel-legend-card {
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #fff;
    border-left: 4px solid var(--gray-medium);
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--gray-dark);
}

.db-nivel-legend-card--n1 { border-left-color: var(--nivel-1); }
.db-nivel-legend-card--n2 { border-left-color: var(--nivel-2); }
.db-nivel-legend-card--n3 { border-left-color: var(--nivel-3); }
.db-nivel-legend-card--n4 { border-left-color: var(--nivel-4); }
.db-nivel-legend-card--n5 { border-left-color: var(--nivel-5); }

.db-nivel-legend-card header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.db-nivel-legend-card__num {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    background: var(--purple-dark);
}

.db-nivel-legend-card--n1 .db-nivel-legend-card__num { background: var(--nivel-1); }
.db-nivel-legend-card--n2 .db-nivel-legend-card__num { background: var(--nivel-2); }
.db-nivel-legend-card--n3 .db-nivel-legend-card__num { background: var(--nivel-3); }
.db-nivel-legend-card--n4 .db-nivel-legend-card__num { background: var(--nivel-4); }
.db-nivel-legend-card--n5 .db-nivel-legend-card__num { background: var(--nivel-5); }

.db-nivel-legend-card h3 {
    margin: 0;
    font-size: 0.9rem;
    color: var(--purple-dark);
}

.db-mun-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
    gap: 0.65rem;
}

@media (min-width: 1200px) {
    .db-mun-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

.db-mun-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    padding: 0.75rem 0.85rem 0.65rem;
    border-radius: 14px;
    border: 2px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 4px 16px rgba(16, 0, 19, 0.05);
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
    position: relative;
    overflow: hidden;
}

.db-mun-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--gray-medium);
}

.db-mun-card--n1::before { background: var(--nivel-1); }
.db-mun-card--n2::before { background: var(--nivel-2); }
.db-mun-card--n3::before { background: var(--nivel-3); }
.db-mun-card--n4::before { background: var(--nivel-4); }
.db-mun-card--n5::before { background: var(--nivel-5); }

.db-mun-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--db-shadow-tight);
}

.db-mun-card--selected {
    border-color: var(--magenta);
    box-shadow: 0 0 0 2px rgba(147, 3, 159, 0.2), var(--db-shadow-tight);
}

.db-mun-card__nivel {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.db-mun-card--n1 .db-mun-card__nivel { color: var(--nivel-1); }
.db-mun-card--n2 .db-mun-card__nivel { color: var(--nivel-2); }
.db-mun-card--n3 .db-mun-card__nivel { color: var(--nivel-3); }
.db-mun-card--n4 .db-mun-card__nivel { color: var(--nivel-4); }
.db-mun-card--n5 .db-mun-card__nivel { color: var(--nivel-5); }

.db-mun-card__nome {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--purple-dark);
    line-height: 1.2;
    width: 100%;
}

.db-mun-card__media {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.1;
}

.db-mun-card__rotulo {
    font-size: 0.68rem;
    color: var(--gray-dark);
}

.db-mun-card__bar {
    width: 100%;
    height: 4px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.06);
    margin-top: 0.25rem;
    overflow: hidden;
}

.db-mun-card__bar span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--magenta), var(--orange));
}

.db-mun-card--n1 .db-mun-card__bar span { background: var(--nivel-1); }
.db-mun-card--n2 .db-mun-card__bar span { background: var(--nivel-2); }
.db-mun-card--n3 .db-mun-card__bar span { background: var(--nivel-3); }
.db-mun-card--n4 .db-mun-card__bar span { background: var(--nivel-4); }
.db-mun-card--n5 .db-mun-card__bar span { background: var(--nivel-5); }

.db-mun-grid-empty {
    text-align: center;
    padding: 2rem;
    color: var(--gray-dark);
    font-size: 0.9rem;
}

.db-mapa-tools { flex-shrink: 0; }
.lbc-select--sm { font-size: 0.8rem; padding: 0.35rem 0.5rem; }

.db-chart-single .chart-container--bar {
    min-height: 280px;
    height: 300px;
}

.db-detalhe-municipio {
    margin-bottom: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(93, 5, 140, 0.12);
}

.db-detalhe-municipio__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
}

.db-detalhe-municipio__nome {
    margin: 0;
    font-size: 1.15rem;
    color: var(--purple-dark);
    flex: 1 1 auto;
}

.db-detalhe-municipio__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--gray-dark);
    width: 100%;
}

.db-btn-sm {
    font-size: 0.75rem;
    padding: 0.45rem 0.85rem;
}

.db-nivel-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid transparent;
}

.db-nivel-pill--n1 { background: rgba(239, 68, 68, 0.12); color: #b91c1c; border-color: rgba(239, 68, 68, 0.3); }
.db-nivel-pill--n2 { background: rgba(255, 131, 0, 0.12); color: #c2410c; border-color: rgba(255, 131, 0, 0.35); }
.db-nivel-pill--n3 { background: rgba(234, 179, 8, 0.15); color: #a16207; border-color: rgba(202, 138, 4, 0.35); }
.db-nivel-pill--n4 { background: rgba(93, 5, 140, 0.1); color: var(--purple-dark); border-color: rgba(93, 5, 140, 0.25); }
.db-nivel-pill--n5 { background: rgba(5, 150, 105, 0.12); color: #047857; border-color: rgba(5, 150, 105, 0.3); }

.db-ranking-lead {
    font-size: 0.78rem;
    color: var(--gray-dark);
    margin: 0 0 0.75rem;
}

.db-ranking-badge { font-size: 0.72rem; }

.db-ranking-wrap {
    max-height: min(72vh, 900px);
    overflow: auto;
}

.db-ranking-table tbody tr {
    cursor: pointer;
}

.db-ranking-table tbody tr:hover {
    background: rgba(147, 3, 159, 0.04);
}

.db-rank-pos {
    width: 2rem;
    font-weight: 700;
    color: var(--gray-dark);
    font-variant-numeric: tabular-nums;
}

.db-rank-mun {
    font-weight: 600;
    min-width: 6rem;
}

.db-rank-score {
    min-width: 5.5rem;
}

.db-score-bar {
    height: 5px;
    border-radius: 99px;
    background: rgba(0, 0, 0, 0.07);
    margin-bottom: 0.2rem;
    overflow: hidden;
}

.db-score-bar__fill {
    display: block;
    height: 100%;
    border-radius: 99px;
}

.db-score-bar__fill--n1 { background: var(--nivel-1); }
.db-score-bar__fill--n2 { background: var(--nivel-2); }
.db-score-bar__fill--n3 { background: var(--nivel-3); }
.db-score-bar__fill--n4 { background: var(--nivel-4); }
.db-score-bar__fill--n5 { background: var(--nivel-5); }

.db-score-value {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--purple-dark);
}

.db-rank-action { white-space: nowrap; }
