:root {
    --blue: #064da8;
    --blue-dark: #043d88;
    --blue-soft: #eaf3ff;
    --green: #16834a;
    --green-soft: #e9f8f0;
    --red: #c73535;
    --red-soft: #fff0f0;
    --text: #172033;
    --muted: #6d7789;
    --line: #e8ecf2;
    --surface: #ffffff;
    --background: #f4f6f9;
    --shadow: 0 12px 32px rgba(28, 45, 75, .08);
    --radius: 22px;
    --nav-height: 78px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--background);
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    -webkit-font-smoothing: antialiased;
}

button,
input {
    font: inherit;
}

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

svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.app-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding-top: env(safe-area-inset-top);
    background: rgba(244, 246, 249, .92);
    border-bottom: 1px solid rgba(232, 236, 242, .9);
    backdrop-filter: blur(18px);
}

.app-header__inner {
    width: min(100%, 760px);
    min-height: 66px;
    margin: 0 auto;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.app-brand__mark,
.login-brand__mark {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 8px 20px rgba(6, 77, 168, .2);
}

.app-brand__mark {
    width: 42px;
    height: 42px;
    font-size: 18px;
}

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

.app-brand__text strong {
    font-size: 16px;
    line-height: 1.15;
}

.app-brand__text small {
    max-width: 210px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-user-button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
}

.app-user-button__avatar,
.profile-card__avatar {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 900;
}

.app-user-button__avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
}

.app-main {
    width: min(100%, 760px);
    min-height: calc(100vh - 66px);
    margin: 0 auto;
    padding: 18px 16px calc(var(--nav-height) + 34px);
}

.welcome-card,
.profile-card {
    border-radius: var(--radius);
    background: var(--blue);
    color: #fff;
    box-shadow: 0 16px 40px rgba(6, 77, 168, .22);
}

.welcome-card {
    padding: 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.welcome-card h1,
.page-title h1,
.profile-card h1,
.empty-state h1 {
    margin: 4px 0 0;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.welcome-card h1 {
    font-size: clamp(28px, 8vw, 38px);
}

.welcome-card p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 14px;
    line-height: 1.5;
}

.welcome-card .eyebrow {
    color: rgba(255, 255, 255, .72);
}

.eyebrow {
    display: block;
    color: var(--blue);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
}

.status-pill {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.status-pill__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #65e19a;
    box-shadow: 0 0 0 4px rgba(101, 225, 154, .14);
}

.section-block {
    margin-top: 26px;
}

.section-heading {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.section-heading h2 {
    margin: 4px 0 0;
    font-size: 21px;
    letter-spacing: -.025em;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.status-card {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(28, 45, 75, .04);
}

.status-card__icon,
.quick-card__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--blue-soft);
    color: var(--blue);
}

.status-card__icon {
    width: 42px;
    height: 42px;
    padding: 10px;
    border-radius: 14px;
}

.status-card div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.status-card strong,
.quick-card strong,
.menu-list__item strong {
    font-size: 14px;
}

.status-card span:last-child,
.quick-card small,
.menu-list__item small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.quick-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.quick-card {
    min-height: 78px;
    padding: 14px;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 13px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: 0 8px 20px rgba(28, 45, 75, .04);
    transition: transform .16s ease, border-color .16s ease;
}

.quick-card:active {
    transform: scale(.985);
}

.quick-card__icon {
    width: 46px;
    height: 46px;
    padding: 11px;
    border-radius: 15px;
}

.quick-card > span:nth-child(2) {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.quick-card__arrow {
    color: #9aa4b5;
    font-size: 27px;
    font-weight: 300;
}

.bottom-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 100;
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid rgba(219, 225, 234, .9);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 -12px 32px rgba(28, 45, 75, .08);
    backdrop-filter: blur(18px);
}

.bottom-nav__inner {
    width: min(100%, 760px);
    min-height: var(--nav-height);
    margin: 0 auto;
    padding: 7px 8px 8px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.bottom-nav__item {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    border-radius: 14px;
    color: #7b8595;
    font-size: 10px;
    font-weight: 750;
}

.bottom-nav__item.is-active {
    color: var(--blue);
}

.bottom-nav__icon {
    width: 24px;
    height: 24px;
}

.bottom-nav__item.is-active .bottom-nav__icon {
    transform: translateY(-1px);
}

.page-title {
    padding: 7px 2px 17px;
}

.page-title h1 {
    font-size: 32px;
}

.page-title p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.menu-list__item {
    min-height: 70px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.menu-list__item > span:first-child {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-list__item > span:last-child {
    color: #9aa4b5;
    font-size: 26px;
}

.menu-list__item--danger strong {
    color: var(--red);
}

.menu-list__item--static {
    justify-content: flex-start;
}

.profile-card {
    margin-bottom: 20px;
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.profile-card__avatar {
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    background: rgba(255, 255, 255, .16);
    color: #fff;
    font-size: 22px;
}

.profile-card h1 {
    font-size: 25px;
}

.profile-card p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .76);
    font-size: 13px;
}

.profile-card .eyebrow {
    color: rgba(255, 255, 255, .65);
}

.empty-state {
    min-height: calc(100vh - 190px);
    padding: 34px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.empty-state__icon {
    width: 74px;
    height: 74px;
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 24px;
    background: var(--blue-soft);
    color: var(--blue);
}

.empty-state h1 {
    margin-top: 7px;
    font-size: 32px;
}

.empty-state p {
    max-width: 390px;
    margin: 13px auto 22px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.button {
    min-height: 50px;
    padding: 0 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-weight: 850;
}

.button--block {
    width: 100%;
}

.button--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 10px 22px rgba(6, 77, 168, .2);
}

.button--danger {
    background: var(--red-soft);
    color: var(--red);
}

.login-page {
    min-height: 100vh;
    padding:
        max(28px, env(safe-area-inset-top))
        16px
        max(28px, env(safe-area-inset-bottom));
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 50% 15%,
            rgba(38, 125, 237, .95),
            var(--blue) 42%,
            var(--blue-dark) 100%
        );
}

.login-card {
    width: min(100%, 430px);
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 28px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 28px 70px rgba(0, 25, 70, .28);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.login-brand__mark {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

.login-brand > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.login-brand strong {
    font-size: 18px;
}

.login-brand span {
    color: var(--muted);
    font-size: 12px;
}

.login-copy {
    margin: 34px 0 23px;
}

.login-copy h1 {
    margin: 7px 0 0;
    font-size: clamp(29px, 8vw, 38px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.login-copy p {
    margin: 11px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.alert {
    margin-bottom: 17px;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border-radius: 15px;
    font-size: 13px;
    line-height: 1.45;
}

.alert--error {
    background: var(--red-soft);
    color: #972727;
}

.alert__icon {
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-field > span {
    font-size: 12px;
    font-weight: 850;
}

.form-field input {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1px solid #dfe4eb;
    border-radius: 16px;
    outline: none;
    background: #fff;
    color: var(--text);
    font-size: 16px;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.form-field input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(6, 77, 168, .1);
}

.login-footer {
    margin: 22px 0 0;
    color: #8a93a2;
    font-size: 11px;
    text-align: center;
}

@media (min-width: 620px) {
    .app-main {
        padding-right: 22px;
        padding-left: 22px;
    }

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

    .login-card {
        padding: 32px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}

/* ==================================================
   META — HOME EXECUTIVA
   ================================================== */

.app-main--home {
    padding-top: 14px;
}

.executive-hero {
    min-height: 150px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    border-radius: 26px;
    background:
        linear-gradient(
            145deg,
            #174ba5 0%,
            #3159ad 100%
        );
    color: #fff;
    box-shadow:
        0 18px 42px
        rgba(30, 72, 155, .2);
}

.executive-hero__content {
    min-width: 0;
}

.executive-hero__greeting {
    display: block;
    margin-bottom: 3px;
    color: rgba(255, 255, 255, .75);
    font-size: 13px;
    font-weight: 750;
}

.executive-hero h1 {
    margin: 0;
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1;
    letter-spacing: -.045em;
}

.executive-hero p {
    max-width: 440px;
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    line-height: 1.55;
}

.executive-hero__profile {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    background: rgba(255, 255, 255, .13);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
}

.home-section {
    margin-top: 26px;
}

.home-section__heading {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
}

.home-section__heading h2 {
    margin: 4px 0 0;
    font-size: 21px;
    line-height: 1.12;
    letter-spacing: -.025em;
}

.home-section__total {
    color: var(--blue);
    font-size: 18px;
}

.home-section__link {
    color: var(--blue);
    font-size: 12px;
    font-weight: 850;
}

.home-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 750;
}

.home-live span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #27ad69;
    box-shadow:
        0 0 0 4px
        rgba(39, 173, 105, .1);
}

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

.executive-kpi {
    min-height: 124px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow:
        0 9px 24px
        rgba(28, 45, 75, .045);
}

.executive-kpi strong {
    color: var(--text);
    font-size: clamp(25px, 8vw, 34px);
    line-height: 1;
    letter-spacing: -.045em;
}

.executive-kpi span {
    margin-top: 8px;
    color: var(--text);
    font-size: 12px;
    font-weight: 850;
}

.executive-kpi small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.chart-card {
    padding: 16px 14px 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow:
        0 10px 25px
        rgba(28, 45, 75, .045);
}

.chart-card__canvas {
    width: 100%;
    height: 180px;
    color: var(--blue);
}

.chart-card__canvas svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-grid-line {
    stroke: #edf0f5;
    stroke-width: 1;
}

.chart-area {
    fill: url(#metaAreaGradient);
    stroke: none;
}

.chart-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-point {
    fill: #fff;
    stroke: currentColor;
    stroke-width: 3;
}

.chart-card__labels {
    margin-top: 2px;
    display: grid;
    grid-template-columns:
        repeat(7, minmax(0, 1fr));
}

.chart-card__labels span {
    color: #929bab;
    font-size: 9px;
    font-weight: 800;
    text-align: center;
}

.next-event-card {
    min-height: 110px;
    padding: 16px;
    display: grid;
    grid-template-columns:
        60px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow:
        0 10px 25px
        rgba(28, 45, 75, .045);
}

.next-event-card--empty {
    grid-template-columns:
        60px minmax(0, 1fr);
}

.next-event-card__date {
    width: 60px;
    min-height: 68px;
    padding: 8px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 17px;
    background: var(--blue-soft);
    color: var(--blue);
}

.next-event-card__date strong {
    font-size: 25px;
    line-height: 1;
    letter-spacing: -.04em;
}

.next-event-card__date span {
    margin-top: 4px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
}

.next-event-card__content {
    min-width: 0;
}

.next-event-card__tag {
    color: var(--blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.next-event-card h3 {
    margin: 6px 0 0;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.next-event-card p {
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.next-event-card__arrow,
.operation-alert__arrow {
    color: #a1a9b7;
    font-size: 26px;
}

.alert-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.operation-alert {
    min-height: 72px;
    padding: 13px 15px;
    display: grid;
    grid-template-columns:
        8px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
}

.operation-alert__indicator {
    width: 8px;
    height: 34px;
    border-radius: 999px;
    background: #b7bfca;
}

.operation-alert--urgente
.operation-alert__indicator {
    background: #d84040;
}

.operation-alert--evento
.operation-alert__indicator {
    background: #ef9e2f;
}

.operation-alert--positivo
.operation-alert__indicator {
    background: #28a964;
}

.operation-alert--neutro
.operation-alert__indicator {
    background: #91a0b2;
}

.operation-alert__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.operation-alert__content strong {
    font-size: 13px;
}

.operation-alert__content small {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.4;
}

.home-politician {
    margin: 28px 0 4px;
    padding: 15px 17px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-radius: 18px;
    background: #edf1f7;
}

.home-politician span {
    color: var(--muted);
    font-size: 10px;
}

.home-politician strong {
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (min-width: 620px) {
    .executive-kpis {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

    .executive-kpi {
        min-height: 132px;
    }

    .executive-hero {
        padding: 28px;
    }
}

/* ==================================================
   META — HERO EXECUTIVO COMPACTO
   ================================================== */

.executive-hero {
    min-height: 0;
    padding: 18px 20px;
    align-items: center;
    border-radius: 22px;
}

.executive-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.executive-hero__greeting {
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.2;
}

.executive-hero h1 {
    font-size: clamp(27px, 7vw, 34px);
    line-height: 1;
    letter-spacing: -.04em;
}

.executive-hero p {
    margin-top: 11px;
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.executive-hero__profile {
    width: 40px;
    height: 40px;
    font-size: 13px;
}

@media (max-width: 390px) {
    .executive-hero {
        padding: 16px 17px;
    }

    .executive-hero h1 {
        font-size: 27px;
    }

    .executive-hero p {
        max-width: 260px;
        font-size: 10px;
    }

    .executive-hero__profile {
        width: 38px;
        height: 38px;
    }
}

/* ==================================================
   META HOME — PAINEL GERENCIADOR
   ================================================== */

.manager-header {
    margin-bottom: 25px;
    padding: 18px 20px;
    border-radius: 22px;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 14px 34px rgba(6, 77, 168, .2);
}

.manager-header__label {
    display: block;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, .7);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.manager-header__politician {
    display: block;
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.manager-header p {
    margin: 9px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 12px;
    line-height: 1.45;
}

.manager-header p strong {
    color: #fff;
}

.home-section--first {
    margin-top: 0;
}

.home-section__heading--live {
    align-items: flex-end;
}

.home-live--realtime {
    max-width: 190px;
    justify-content: flex-end;
    line-height: 1.25;
    text-align: right;
}

.home-live--realtime > span {
    animation: metaLivePulse 1.35s infinite;
}

@keyframes metaLivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(42, 177, 108, .42);
    }

    70% {
        box-shadow: 0 0 0 7px rgba(42, 177, 108, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(42, 177, 108, 0);
    }
}

.manager-kpis {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.manager-kpi {
    min-height: 68px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    box-shadow: 0 7px 18px rgba(28, 45, 75, .035);
}

.manager-kpi__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manager-kpi__content strong {
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
}

.manager-kpi__content small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.manager-kpi__value {
    flex: 0 0 auto;
    color: var(--blue);
    font-size: 25px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.035em;
}

.chart-card--manager {
    padding-top: 10px;
}

.manager-event-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 10px 25px rgba(28, 45, 75, .05);
}

.manager-event-card__main {
    min-height: 102px;
    padding: 14px;
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 13px;
}

.manager-event-actions {
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid var(--line);
    background: #f8faff;
}

.manager-link-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.manager-link-group > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.manager-link-group > div {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 8px;
}

.manager-action-button {
    min-height: 42px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 850;
    text-align: center;
}

.manager-action-button--copy {
    background: var(--blue-soft);
    color: var(--blue);
}

.manager-action-button--whatsapp {
    background: #e6f8ed;
    color: #148347;
}

.manager-empty-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.manager-operational-actions {
    margin-top: 13px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.manager-primary-action,
.manager-secondary-action {
    min-height: 68px;
    padding: 13px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-radius: 17px;
}

.manager-primary-action {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 11px 24px rgba(6, 77, 168, .2);
}

.manager-secondary-action {
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
}

.manager-primary-action > span,
.manager-secondary-action > span {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manager-primary-action strong,
.manager-secondary-action strong {
    font-size: 14px;
}

.manager-primary-action small {
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
}

.manager-secondary-action small {
    color: var(--muted);
    font-size: 11px;
}

.manager-primary-action b,
.manager-secondary-action b {
    flex: 0 0 auto;
    font-size: 24px;
    line-height: 1;
}

@media (max-width: 390px) {
    .manager-header {
        padding: 16px 17px;
    }

    .manager-header__politician {
        font-size: 20px;
    }

    .home-live--realtime {
        max-width: 145px;
        font-size: 10px;
    }

    .manager-kpi {
        min-height: 64px;
        padding: 12px 13px;
    }

    .manager-kpi__value {
        font-size: 22px;
    }

    .manager-link-group > div {
        grid-template-columns: 1fr;
    }
}


/* ==================================================
   META — GRÁFICO ANIMADO EM PORTUGUÊS
   ================================================== */

.chart-heading {
    align-items: flex-end;
}

.chart-heading__description {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
}

.chart-heading__summary {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 3px;
}

.chart-heading__summary strong {
    color: var(--blue);
    font-size: 23px;
    line-height: 1;
    letter-spacing: -.035em;
}

.chart-heading__summary small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}

.chart-insights {
    margin-bottom: 10px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.chart-insight {
    min-height: 51px;
    padding: 10px 13px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
}

.chart-insight small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 750;
}

.chart-insight strong {
    margin-top: 3px;
    color: var(--blue);
    font-size: 16px;
    line-height: 1;
}

.chart-insight--best {
    background: #eef9f3;
    border-color: #d5f0e1;
}

.chart-insight--best strong {
    color: #16834a;
}

.chart-card--animated {
    position: relative;
    overflow: hidden;
}

.chart-card--animated::before {
    content: "";
    position: absolute;
    top: 0;
    left: -50%;
    width: 35%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255, 255, 255, .62),
            transparent
        );
    transform: skewX(-14deg);
    animation: chartCardShine 4.8s ease-in-out infinite;
}

.chart-card--animated
.chart-card__canvas,
.chart-card--animated
.chart-card__labels,
.chart-card--animated
.chart-card__footer {
    position: relative;
    z-index: 1;
}

.chart-line--animated {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation:
        chartDrawLine
        1.15s
        cubic-bezier(.22, .8, .3, 1)
        .15s
        forwards;
}

.chart-area--animated {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center bottom;
    animation:
        chartRevealArea
        .85s
        ease-out
        .55s
        forwards;
}

.chart-data-point {
    opacity: 0;
    transform-box: fill-box;
    transform-origin: center;
    animation:
        chartShowPoint
        .38s
        cubic-bezier(.2, 1.3, .4, 1)
        var(--chart-delay)
        forwards;
}

.chart-point-halo {
    fill: rgba(6, 77, 168, .10);
    stroke: none;
    opacity: 0;
}

.chart-data-point:hover
.chart-point-halo,
.chart-data-point.is-best
.chart-point-halo {
    opacity: 1;
}

.chart-data-point.is-best
.chart-point-halo {
    fill: rgba(39, 173, 105, .16);
    animation:
        chartBestPulse
        1.8s
        ease-out
        infinite;
}

.chart-data-point.is-best
.chart-point {
    stroke: #16834a;
}

.chart-point-value {
    fill: var(--blue);
    stroke: none;
    font-size: 16px;
    font-weight: 900;
    paint-order: stroke;
    stroke: #fff;
    stroke-width: 4px;
    stroke-linejoin: round;
}

.chart-data-point.is-best
.chart-point-value {
    fill: #16834a;
}

.chart-card__labels--pt span {
    opacity: 0;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 3px;
    animation:
        chartShowLabel
        .35s
        ease-out
        var(--label-delay)
        forwards;
}

.chart-card__labels--pt strong {
    color: #778295;
    font-size: 9px;
    line-height: 1;
}

.chart-card__labels--pt small {
    color: #9aa3b2;
    font-size: 8px;
    line-height: 1;
}

.chart-card__labels--pt span.is-best strong {
    color: #16834a;
}

.chart-card__labels--pt span.is-best small {
    color: #4e9670;
}

.chart-card__footer {
    margin: 13px 2px 0;
    padding-top: 11px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 9px;
}

.chart-card__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.chart-card__status i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #27ad69;
    animation:
        chartStatusPulse
        1.5s
        ease-out
        infinite;
}

@keyframes chartDrawLine {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes chartRevealArea {
    from {
        opacity: 0;
        transform: scaleY(.2);
    }

    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

@keyframes chartShowPoint {
    from {
        opacity: 0;
        transform: scale(.2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes chartShowLabel {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes chartBestPulse {
    0% {
        opacity: .65;
        transform: scale(.7);
    }

    70% {
        opacity: 0;
        transform: scale(1.75);
    }

    100% {
        opacity: 0;
        transform: scale(1.75);
    }
}

@keyframes chartStatusPulse {
    0% {
        box-shadow:
            0 0 0 0
            rgba(39, 173, 105, .45);
    }

    70% {
        box-shadow:
            0 0 0 7px
            rgba(39, 173, 105, 0);
    }

    100% {
        box-shadow:
            0 0 0 0
            rgba(39, 173, 105, 0);
    }
}

@keyframes chartCardShine {
    0%,
    68% {
        left: -50%;
        opacity: 0;
    }

    72% {
        opacity: .55;
    }

    88% {
        left: 120%;
        opacity: 0;
    }

    100% {
        left: 120%;
        opacity: 0;
    }
}

@media (max-width: 390px) {
    .chart-heading__summary strong {
        font-size: 20px;
    }

    .chart-point-value {
        font-size: 14px;
    }

    .chart-card__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chart-line--animated {
        stroke-dashoffset: 0;
        animation: none;
    }

    .chart-area--animated,
    .chart-data-point,
    .chart-card__labels--pt span {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .chart-card--animated::before,
    .chart-data-point.is-best
    .chart-point-halo,
    .chart-card__status i {
        animation: none;
    }
}
