.active-filter-bar.active-filter-bar-v2 {
    display: flex;
    align-items: center;
    gap: .6rem;
    width: 100%;
    min-height: 42px;
    margin: .75rem 0 1rem;
    padding: .45rem .55rem;
    border: 0;
    border-top: 1px solid color-mix(in srgb, var(--border-color, #303842) 68%, transparent);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.dashboard-hero-toolbar + .active-filter-bar-v2 {
    margin-top: .85rem;
    margin-bottom: 0;
}

.active-filter-bar-v2 .active-filter-symbol {
    display: inline-grid;
    place-items: center;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    border: 1px solid rgba(255, 139, 31, .25);
    border-radius: 8px;
    color: var(--accent, #ff8b1f);
    background: rgba(255, 139, 31, .07);
}

.active-filter-bar-v2 .active-filter-symbol svg {
    width: 13px;
    height: 13px;
}

.active-filter-bar-v2 .active-filter-label {
    margin-right: .15rem;
    color: var(--text-muted, #98a2af);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .09em;
    white-space: nowrap;
}

.active-filter-bar-v2 .active-filter-chips {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: .4rem;
    min-width: 0;
    flex-wrap: wrap;
}

.active-filter-bar-v2 .active-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: .48rem;
    min-height: 29px;
    padding: .28rem .38rem .28rem .62rem;
    border: 1px solid color-mix(in srgb, var(--border-color, #3a424c) 82%, var(--accent, #ff8b1f));
    border-radius: 8px;
    background: color-mix(in srgb, var(--surface-secondary, #171c22) 94%, var(--accent, #ff8b1f));
    color: var(--text-primary, #eef1f4);
    font-size: .72rem;
    font-weight: 650;
    line-height: 1;
    box-shadow: none;
}

.active-filter-bar-v2 .active-filter-chip:hover {
    border-color: rgba(255, 139, 31, .48);
    background: rgba(255, 139, 31, .09);
}

.active-filter-bar-v2 .active-filter-chip b {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    color: var(--text-muted, #98a2af);
    font-size: .88rem;
    font-weight: 500;
}

.active-filter-bar-v2 .active-filter-chip:hover b {
    color: #fff;
    background: rgba(255, 139, 31, .2);
}

.active-filter-bar-v2 .active-filter-clear {
    padding: .3rem .45rem;
    border: 0;
    background: transparent;
    color: var(--text-muted, #98a2af);
    font-size: .7rem;
    font-weight: 750;
    white-space: nowrap;
}

.active-filter-bar-v2 .active-filter-clear:hover {
    color: var(--accent, #ff8b1f);
}

.divergence-period-presets {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    padding-top: .2rem;
}

.divergence-period-presets::before {
    content: "Períodos rápidos";
    margin-right: .15rem;
    color: var(--text-muted, #98a2af);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.divergence-period-preset {
    min-height: 36px;
    padding: .45rem .72rem;
    border: 1px solid var(--border-color, #39414b);
    border-radius: 9px;
    background: transparent;
    color: var(--text-primary, #eef1f4);
    font-size: .75rem;
    font-weight: 700;
}

.divergence-period-preset:hover {
    border-color: rgba(255, 139, 31, .5);
    color: var(--accent, #ff8b1f);
}

.divergence-period-preset.is-active {
    border-color: var(--accent, #ff8b1f);
    background: linear-gradient(135deg, #ff7a00, #ffad4d);
    color: #16100a;
    box-shadow: 0 8px 20px rgba(255, 122, 0, .2);
}

@media (max-width: 720px) {
    .active-filter-bar-v2 {
        align-items: flex-start;
    }
    .active-filter-bar-v2 .active-filter-label {
        display: none;
    }
    .active-filter-bar-v2 .active-filter-clear {
        align-self: center;
    }
    .divergence-period-presets::before {
        width: 100%;
    }
}
