/* MindZ Home — estados operacionais premium sem partículas flutuantes. */
@layer modules {
    :root {
        --home-status-success: var(--color-success, #168c58);
        --home-status-danger: var(--danger, #d92d20);
        --home-status-warning: var(--warning, #b7791f);
        --home-status-primary: var(--color-primary, #5d6cb9);
    }

    html[data-theme="dark"] {
        --home-status-success: #74d8a4;
        --home-status-danger: #ff8b84;
        --home-status-warning: #f3c45f;
    }

    body.inicio-dashboard-v3 .home-card[data-card-status="success"],
    body.inicio-dashboard-v3 .home-card[data-card-status="pending"] {
        position: relative;
        overflow: hidden;
    }

    body.inicio-dashboard-v3 .home-card[data-card-status="success"] {
        border-color: color-mix(in srgb, var(--home-status-success) 18%, var(--border-subtle, #dbe3f3));
    }

    body.inicio-dashboard-v3 .home-card[data-card-status="pending"] {
        border-color: color-mix(in srgb, var(--home-status-danger) 18%, var(--border-subtle, #dbe3f3));
    }

    body.inicio-dashboard-v3 .home-card__header,
    body.inicio-dashboard-v3 .home-card__body {
        position: relative;
        z-index: 3;
    }

    body.inicio-dashboard-v3 .home-card__status-particles,
    body.inicio-dashboard-v3 .home-card__status-particle {
        display: none !important;
    }

    body.inicio-dashboard-v3 .home-card__status-accent {
        position: absolute;
        left: 0;
        top: 22px;
        bottom: 22px;
        z-index: 2;
        width: 4px;
        border-radius: 0 999px 999px 0;
        pointer-events: none;
        opacity: .92;
    }

    body.inicio-dashboard-v3 .home-card[data-card-status="success"] .home-card__status-accent {
        background: linear-gradient(180deg, var(--home-status-success), color-mix(in srgb, var(--home-status-success) 55%, white));
        box-shadow: 0 0 18px color-mix(in srgb, var(--home-status-success) 18%, transparent);
    }

    body.inicio-dashboard-v3 .home-card[data-card-status="pending"] .home-card__status-accent {
        background: linear-gradient(180deg, var(--home-status-danger), var(--home-status-warning));
        box-shadow: 0 0 18px color-mix(in srgb, var(--home-status-danger) 17%, transparent);
    }

    body.inicio-dashboard-v3 .home-card__status-glow {
        position: absolute;
        right: -80px;
        top: -80px;
        z-index: 1;
        width: 220px;
        height: 220px;
        border-radius: 999px;
        pointer-events: none;
        filter: blur(.2px);
        opacity: .84;
    }

    body.inicio-dashboard-v3 .home-card[data-card-status="success"] .home-card__status-glow {
        background: radial-gradient(circle, color-mix(in srgb, var(--home-status-success) 10%, transparent), transparent 70%);
    }

    body.inicio-dashboard-v3 .home-card[data-card-status="pending"] .home-card__status-glow {
        background: radial-gradient(circle, color-mix(in srgb, var(--home-status-danger) 9%, transparent), transparent 70%);
    }

    body.inicio-dashboard-v3 .home-card[data-card-status="informational"] .home-card__status-glow,
    body.inicio-dashboard-v3 .home-card[data-card-status="loading"] .home-card__status-glow,
    body.inicio-dashboard-v3 .home-card[data-card-status="error"] .home-card__status-glow,
    body.inicio-dashboard-v3 .home-card[data-card-status="informational"] .home-card__status-accent,
    body.inicio-dashboard-v3 .home-card[data-card-status="loading"] .home-card__status-accent,
    body.inicio-dashboard-v3 .home-card[data-card-status="error"] .home-card__status-accent {
        display: none;
    }

    .home-card-menu {
        max-height: none !important;
        overflow: visible !important;
    }

    body.inicio-dashboard-v3 .home-health-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    body.inicio-dashboard-v3 .home-health-metric__dot {
        width: 3px !important;
        height: 18px !important;
        border-radius: 999px !important;
        background: color-mix(in srgb, var(--home-status-primary) 70%, transparent) !important;
        box-shadow: none !important;
    }

    body.inicio-dashboard-v3 .home-health-metric--critical .home-health-metric__dot,
    body.inicio-dashboard-v3 .home-health-metric--attention .home-health-metric__dot {
        background: linear-gradient(180deg, var(--home-status-danger), var(--home-status-warning)) !important;
    }

    body.inicio-dashboard-v3 .home-health-metric--good .home-health-metric__dot {
        background: linear-gradient(180deg, var(--home-status-success), color-mix(in srgb, var(--home-status-success) 55%, white)) !important;
    }

    body.inicio-dashboard-v3 .home-health-metric--neutral .home-health-metric__dot {
        background: var(--text-tertiary, #98a2b3) !important;
    }

    body.inicio-dashboard-v3 .home-health-summary span[data-health-tone="attention"] {
        background: color-mix(in srgb, var(--home-status-warning) 13%, transparent);
        color: var(--warning-strong, #9a6700);
    }

    body.inicio-dashboard-v3 .home-health-summary span[data-health-tone="critical"] {
        background: color-mix(in srgb, var(--home-status-danger) 12%, transparent);
        color: var(--home-status-danger);
    }

    body.inicio-dashboard-v3 .home-score,
    body.inicio-dashboard-v3 .home-score-summary {
        --score-accent: var(--color-primary);
    }

    body.inicio-dashboard-v3 .home-score-summary progress,
    body.inicio-dashboard-v3 .home-health-summary progress {
        accent-color: var(--score-accent, var(--color-primary));
    }

    body.inicio-dashboard-v3 .home-score-summary progress::-webkit-progress-value,
    body.inicio-dashboard-v3 .home-health-summary progress::-webkit-progress-value {
        background: var(--color-primary);
    }

    body.inicio-dashboard-v3 .home-score-summary progress::-moz-progress-bar,
    body.inicio-dashboard-v3 .home-health-summary progress::-moz-progress-bar {
        background: var(--color-primary);
    }
}


/* MindZ 26684 — bloqueio final para bolhas antigas de status. */
.mz-status-orb,
.mz-floating-alert,
.mz-alert-orb,
.mz-pulse-orb,
.mz-red-orb,
.mz-green-orb,
.mz-warning-orb,
.mz-home-alert-bubble,
.mz-home-floating-status,
.mz-status-particle,
.mz-attention-particle,
.mz-pending-pulse,
.mz-pending-orb {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* =========================================================
   MindZ Home Premium 26685 - emotions premium + switch discreto
   Carregado por último para sobrepor inicio.css e inicio_final.css.
   ========================================================= */
body.inicio-premium-v2 .ph-home-manager-view-switch,
body.inicio-dashboard-v3 .ph-home-manager-view-switch {
    gap: 12px !important;
    margin-top: 18px !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__item,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__item {
    position: relative !important;
    min-height: 68px !important;
    padding: 15px 58px 15px 18px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(218, 226, 244, .96) !important;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,255,.93)) !important;
    box-shadow: 0 10px 24px rgba(31, 42, 68, .045) !important;
    transform: none !important;
    overflow: hidden !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__item:hover,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__item:hover,
body.inicio-premium-v2 .ph-home-manager-view-switch__item:focus-visible,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__item:focus-visible {
    transform: translateY(-1px) !important;
    border-color: rgba(93,108,185,.28) !important;
    box-shadow: 0 14px 28px rgba(31,42,68,.065) !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__item.is-active,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__item.is-active {
    border-color: rgba(93,108,185,.50) !important;
    background:
        radial-gradient(circle at top right, rgba(93,108,185,.12), transparent 34%),
        linear-gradient(180deg, rgba(247,249,255,.99), rgba(240,244,255,.96)) !important;
    box-shadow:
        inset 0 0 0 1px rgba(93,108,185,.10),
        0 14px 30px rgba(31,42,68,.075) !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__item.is-active::after,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__item.is-active::after {
    content: "" !important;
    position: absolute !important;
    left: 16px !important;
    right: 16px !important;
    bottom: 8px !important;
    height: 3px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #5f70d4, #94a4f3) !important;
    box-shadow: 0 6px 14px rgba(93,108,185,.20) !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__item:not(.is-active),
body.inicio-dashboard-v3 .ph-home-manager-view-switch__item:not(.is-active) {
    opacity: .88 !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__main,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__main {
    align-items: flex-start !important;
    justify-content: center !important;
    width: 100% !important;
    text-align: left !important;
    padding: 0 !important;
    gap: 3px !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__label,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__label {
    text-align: left !important;
    font-size: 14px !important;
    font-weight: 620 !important;
    letter-spacing: -0.01em !important;
    color: #2b3551 !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__item.is-active .ph-home-manager-view-switch__label,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__item.is-active .ph-home-manager-view-switch__label {
    color: #5364bf !important;
    font-weight: 700 !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__main small,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__main small,
body.inicio-premium-v2 .ph-home-manager-view-switch__item > small,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__item > small {
    text-align: left !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    color: #6d7894 !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__badge,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__badge {
    position: absolute !important;
    top: 10px !important;
    right: 12px !important;
    min-width: 22px !important;
    height: 22px !important;
    padding: 0 7px !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #ee5364, #d73b4d) !important;
    box-shadow: 0 8px 18px rgba(215,59,77,.18) !important;
    z-index: 5 !important;
    transform: none !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__selected-icon,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__selected-icon {
    position: absolute !important;
    top: 10px !important;
    right: 40px !important;
    width: 22px !important;
    height: 22px !important;
    margin: 0 !important;
    border-radius: 999px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #6371a7 !important;
    border: 1px solid rgba(93,108,185,.20) !important;
    background: rgba(255,255,255,.90) !important;
    box-shadow: 0 7px 14px rgba(31,42,68,.045) !important;
    z-index: 5 !important;
    transform: none !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch__selected-icon svg,
body.inicio-dashboard-v3 .ph-home-manager-view-switch__selected-icon svg {
    width: 13px !important;
    height: 13px !important;
}

body.inicio-dashboard-v3 .home-mood-checkin__options,
body.inicio-premium-v2 .home-mood-checkin__options,
body.inicio-dashboard-v3 .mz-mood-strip,
body.inicio-premium-v2 .mz-mood-strip {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 10px 0 0 !important;
    padding: 4px 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

body.inicio-dashboard-v3 .home-mood-card,
body.inicio-premium-v2 .home-mood-card,
body.inicio-dashboard-v3 .mz-mood-option,
body.inicio-premium-v2 .mz-mood-option {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 118px !important;
    box-sizing: border-box !important;
    padding: 10px 9px 9px !important;
    gap: 8px !important;
    border: 1px solid rgba(219,227,243,.98) !important;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,.96), transparent 32%),
        linear-gradient(180deg, rgba(255,255,255,.99), rgba(248,250,255,.95)) !important;
    box-shadow: 0 10px 22px rgba(31,42,68,.052) !important;
    transform: none !important;
}

body.inicio-dashboard-v3 .home-mood-card:hover,
body.inicio-premium-v2 .home-mood-card:hover,
body.inicio-dashboard-v3 .home-mood-card:focus-visible,
body.inicio-premium-v2 .home-mood-card:focus-visible,
body.inicio-dashboard-v3 .mz-mood-option:hover,
body.inicio-premium-v2 .mz-mood-option:hover,
body.inicio-dashboard-v3 .mz-mood-option:focus-visible,
body.inicio-premium-v2 .mz-mood-option:focus-visible {
    transform: translateY(-2px) !important;
    border-color: rgba(93,108,185,.30) !important;
    box-shadow: 0 16px 30px rgba(31,42,68,.085) !important;
}

body.inicio-dashboard-v3 .home-mood-card[aria-pressed="true"],
body.inicio-premium-v2 .home-mood-card[aria-pressed="true"],
body.inicio-dashboard-v3 .mz-mood-option[aria-pressed="true"],
body.inicio-premium-v2 .mz-mood-option[aria-pressed="true"] {
    border-color: rgba(93,108,185,.48) !important;
    background:
        radial-gradient(circle at 30% 18%, rgba(255,255,255,.98), transparent 34%),
        linear-gradient(180deg, rgba(247,249,255,.99), rgba(240,244,255,.96)) !important;
    box-shadow: 0 0 0 3px rgba(93,108,185,.10), 0 16px 30px rgba(93,108,185,.12) !important;
}

body.inicio-dashboard-v3 .home-mood-card::after,
body.inicio-premium-v2 .home-mood-card::after,
body.inicio-dashboard-v3 .mz-mood-option::after,
body.inicio-premium-v2 .mz-mood-option::after {
    inset: auto 22% 8px !important;
    height: 10px !important;
    filter: blur(8px) !important;
    opacity: .34 !important;
}

body.inicio-dashboard-v3 .home-mood-checkin .emotion,
body.inicio-premium-v2 .home-mood-checkin .emotion,
body.inicio-dashboard-v3 .home-mood-checkin .mz-mood-emoji,
body.inicio-premium-v2 .home-mood-checkin .mz-mood-emoji {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    overflow: visible !important;
    filter: drop-shadow(0 7px 11px rgba(111,77,16,.16)) !important;
    transform-origin: 50% 58% !important;
    shape-rendering: geometricPrecision !important;
    text-rendering: geometricPrecision !important;
}

body.inicio-dashboard-v3 .home-mood-checkin .emotion-premium,
body.inicio-premium-v2 .home-mood-checkin .emotion-premium {
    image-rendering: auto !important;
}

body.inicio-dashboard-v3 .home-mood-checkin .mood-name,
body.inicio-premium-v2 .home-mood-checkin .mood-name,
body.inicio-dashboard-v3 .home-mood-checkin .mz-mood-label,
body.inicio-premium-v2 .home-mood-checkin .mz-mood-label {
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    color: #25314a !important;
    letter-spacing: -0.01em !important;
}

body.inicio-dashboard-v3 .home-mood-checkin__title,
body.inicio-premium-v2 .home-mood-checkin__title {
    font-size: 15px !important;
    font-weight: 650 !important;
    margin-bottom: 10px !important;
}

body.inicio-dashboard-v3 .home-mood-checkin__privacy,
body.inicio-premium-v2 .home-mood-checkin__privacy {
    margin-top: 8px !important;
    font-size: 11.5px !important;
    opacity: .90 !important;
}

@media (max-width: 860px) {
    body.inicio-dashboard-v3 .home-mood-checkin__options,
    body.inicio-premium-v2 .home-mood-checkin__options,
    body.inicio-dashboard-v3 .mz-mood-strip,
    body.inicio-premium-v2 .mz-mood-strip {
        grid-template-columns: repeat(5, minmax(72px, 1fr)) !important;
        gap: 8px !important;
    }

    body.inicio-dashboard-v3 .home-mood-card,
    body.inicio-premium-v2 .home-mood-card,
    body.inicio-dashboard-v3 .mz-mood-option,
    body.inicio-premium-v2 .mz-mood-option {
        min-height: 108px !important;
        padding: 8px 6px !important;
    }

    body.inicio-dashboard-v3 .home-mood-checkin .emotion,
    body.inicio-premium-v2 .home-mood-checkin .emotion,
    body.inicio-dashboard-v3 .home-mood-checkin .mz-mood-emoji,
    body.inicio-premium-v2 .home-mood-checkin .mz-mood-emoji {
        width: 50px !important;
        height: 50px !important;
        max-width: 50px !important;
        max-height: 50px !important;
    }
}


/* MindZ Home Premium 26686 - overrides finais carregados por último */
body.inicio-dashboard-v3 .home-welcome__message h1,
body.inicio-premium-v2 .home-welcome__message h1 {
    display: block !important;
}

body.inicio-dashboard-v3 .home-welcome__message h1 .home-greeting-wave,
body.inicio-premium-v2 .home-welcome__message h1 .home-greeting-wave,
body.inicio-dashboard-v3 .home-welcome__message h1 .mz-home-greeting-wave,
body.inicio-premium-v2 .home-welcome__message h1 .mz-home-greeting-wave {
    display: none !important;
}

body.inicio-dashboard-v3 .ph-home-mood-modal__emotion .emotion-premium,
body.inicio-premium-v2 .ph-home-mood-modal__emotion .emotion-premium,
body.inicio-dashboard-v3 .ph-home-mood-modal__emotion .mz-mood-emoji,
body.inicio-premium-v2 .ph-home-mood-modal__emotion .mz-mood-emoji {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    filter: drop-shadow(0 7px 11px rgba(111,77,16,.16)) !important;
}


/* MindZ 26688 - ajuste seguro pós-recovery da Home */
.home-greeting-wave,
.mz-home-greeting-wave,
.inicio-greeting-wave,
.hero-greeting-wave,
.home-hero-hand { display: none !important; }
.home-welcome__message h1 .home-greeting-wave,
.ph-home-greeting-premium h1 .home-greeting-wave { display:none !important; }
.home-mood-checkin .emotion-premium,
.home-mood-checkin .mz-mood-emoji,
.ph-home-mood-modal__emotion .emotion-premium,
.ph-home-mood-modal__emotion .mz-mood-emoji {
  width: 58px !important;
  height: 58px !important;
  max-width: 58px !important;
  max-height: 58px !important;
  filter: drop-shadow(0 8px 12px rgba(111,77,16,.18));
}


/* =========================================================
   MindZ 26803 — tagbar compacta e 100% orientada pelo tema
   Carregada por último para eliminar as cores azuis fixas do legado.
   ========================================================= */
body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar {
    width: min(100%, 458px) !important;
    max-width: 458px !important;
    min-height: 0 !important;
    margin-top: 12px !important;
    padding: 4px !important;
    gap: 4px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    border: 1px solid color-mix(in srgb, var(--primary) 20%, var(--border)) !important;
    border-radius: 16px !important;
    background: color-mix(in srgb, var(--primary) 6%, var(--surface)) !important;
    box-shadow:
        inset 0 1px 0 color-mix(in srgb, var(--color-white) 40%, transparent),
        0 7px 20px color-mix(in srgb, var(--primary) 7%, transparent) !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item,
body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item:is(button),
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item:is(button) {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 30px 0 12px !important;
    gap: 8px !important;
    border: 1px solid transparent !important;
    border-radius: 12px !important;
    background: transparent !important;
    color: var(--primary) !important;
    box-shadow: none !important;
    opacity: .76 !important;
    transform: none !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item:hover,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item:hover,
body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item:focus-visible,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item:focus-visible {
    opacity: 1 !important;
    color: var(--primary) !important;
    border-color: color-mix(in srgb, var(--primary) 22%, var(--border)) !important;
    background: color-mix(in srgb, var(--primary) 8%, var(--surface)) !important;
    box-shadow: none !important;
    transform: none !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item.is-active,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item.is-active {
    opacity: 1 !important;
    color: var(--primary) !important;
    border-color: color-mix(in srgb, var(--primary) 48%, var(--border)) !important;
    background:
        radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--primary) 13%, transparent), transparent 48%),
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 13%, var(--surface)) 0%,
            color-mix(in srgb, var(--primary) 7%, var(--surface)) 100%
        ) !important;
    box-shadow:
        0 6px 16px color-mix(in srgb, var(--primary) 12%, transparent),
        inset 0 1px 0 color-mix(in srgb, var(--color-white) 46%, transparent) !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item.is-active::after,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item.is-active::after {
    content: "" !important;
    position: absolute !important;
    left: 12px !important;
    right: 12px !important;
    bottom: 2px !important;
    height: 2px !important;
    border-radius: 999px !important;
    background: var(--primary) !important;
    box-shadow: 0 3px 9px color-mix(in srgb, var(--primary) 28%, transparent) !important;
    opacity: 1 !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__icon,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__icon {
    width: 20px !important;
    height: 20px !important;
    flex: 0 0 20px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: var(--primary) !important;
    background: transparent !important;
    box-shadow: none !important;
    filter: none !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__icon svg,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__icon svg {
    width: 17px !important;
    height: 17px !important;
    color: var(--primary) !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.55 !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__icon svg *,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__icon svg * {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.55 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__main,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__main {
    width: auto !important;
    min-width: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__label,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__label {
    color: var(--primary) !important;
    font-size: 13px !important;
    font-weight: 570 !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item.is-active .ph-home-manager-view-switch__label,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item.is-active .ph-home-manager-view-switch__label {
    color: var(--primary) !important;
    font-weight: 700 !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__main small,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__main small {
    display: none !important;
}

body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__badge,
body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__badge {
    top: 5px !important;
    right: 6px !important;
    min-width: 17px !important;
    height: 17px !important;
    padding: 0 5px !important;
    font-size: 9px !important;
    box-shadow: none !important;
}

:root[data-theme="dark"] body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar,
:root[data-theme="dark"] body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar {
    background: color-mix(in srgb, var(--primary) 12%, var(--surface)) !important;
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border)) !important;
}

:root[data-theme="dark"] body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item.is-active,
:root[data-theme="dark"] body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar .ph-home-manager-view-switch__item.is-active {
    background: color-mix(in srgb, var(--primary) 19%, var(--surface)) !important;
    border-color: color-mix(in srgb, var(--primary) 52%, var(--border)) !important;
}

@media (max-width: 560px) {
    body.inicio-premium-v2 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar,
    body.inicio-dashboard-v3 .ph-home-manager-view-switch.ph-home-manager-view-switch--tagbar {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* =========================================================
   MindZ 27174 — Termômetro / Noite Executiva
   Cards escuros e emotions azuis no tema escuro.
   ========================================================= */
:root[data-theme="dark"] body.inicio-premium-v2 .home-mood-checkin {
    --face-light: #C9DBFF !important;
    --face-base: #78A2FF !important;
    --face-mid: #527FE2 !important;
    --face-deep: #315CBF !important;
    --rim-light: #DCE8FF !important;
    --rim-deep: #1F438F !important;
    --feature: #0C1B38 !important;
    --feature-soft: #173365 !important;
    --face-shadow: #07152F !important;
    --tear-light: #A9E7FF !important;
    --tear: #3EA6FF !important;
}

:root[data-theme="dark"] body.inicio-premium-v2 :is(
    .home-mood-card,
    .mood-card,
    .mz-mood-option,
    .ph-home-mood-option
) {
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border)) !important;
    background:
        radial-gradient(circle at 28% 16%, color-mix(in srgb, var(--primary) 10%, transparent), transparent 34%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-elevated) 94%, var(--primary) 6%), var(--surface)) !important;
    color: var(--title-color) !important;
    box-shadow: 0 12px 26px rgba(0, 0, 0, .22) !important;
}

:root[data-theme="dark"] body.inicio-premium-v2 :is(
    .home-mood-card,
    .mood-card,
    .mz-mood-option,
    .ph-home-mood-option
):is(:hover, :focus-visible, [aria-pressed="true"]) {
    border-color: color-mix(in srgb, var(--primary) 52%, var(--border)) !important;
    background:
        radial-gradient(circle at 28% 16%, color-mix(in srgb, var(--primary) 17%, transparent), transparent 36%),
        linear-gradient(180deg, color-mix(in srgb, var(--surface-elevated) 86%, var(--primary) 14%), color-mix(in srgb, var(--surface) 92%, var(--primary) 8%)) !important;
}

:root[data-theme="dark"] body.inicio-premium-v2 .home-mood-checkin :is(.emotion, .mz-mood-emoji) {
    filter: drop-shadow(0 7px 13px rgba(36, 92, 190, .34)) !important;
}

:root[data-theme="dark"] body.inicio-premium-v2 .home-mood-checkin :is(.mood-name, .mz-mood-label) {
    color: var(--text-soft) !important;
}
