/* Impersonation banner — sticky neo-brutalist top bar.
   Visibile solo quando window.Impersonation.isActive(). */

#imp-banner {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fef3c7;
    border-bottom: 2px solid #0d0d0d;
    box-shadow: 0 3px 0 #0d0d0d;
    padding: 10px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: #0d0d0d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.3;
}

#imp-banner.expired {
    background: #fee2e2;
}

#imp-banner .imp-banner-msg {
    flex: 1;
    min-width: 0;
}

#imp-banner .imp-banner-msg strong {
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

#imp-banner .imp-banner-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

#imp-banner button {
    background: #0d0d0d;
    color: #fff;
    border: 2px solid #0d0d0d;
    padding: 4px 12px;
    font-family: inherit;
    font-weight: 800;
    font-size: 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.1s, box-shadow 0.1s;
}

#imp-banner button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 0 rgba(0, 0, 0, 0.3);
}

#imp-banner button:active {
    transform: translate(0, 0);
    box-shadow: none;
}

@media (max-width: 480px) {
    #imp-banner {
        font-size: 12px;
        padding: 8px 10px;
    }
    #imp-banner button {
        padding: 3px 8px;
        font-size: 11px;
    }
}
