body { font-family: 'Inter', system-ui, sans-serif; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0d12; }
::-webkit-scrollbar-thumb { background: #1f2630; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #2a3340; }

.card-glow {
    position: relative;
    background: #12161d;
}
.card-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(
        circle at var(--glow-x, 50%) var(--glow-y, 0%),
        var(--glow-color, transparent) 0%,
        transparent 60%
    );
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.9;
}
.card-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        ellipse at var(--glow-x, 50%) var(--glow-y, 0%),
        var(--glow-color-soft, transparent) 0%,
        transparent 50%
    );
    pointer-events: none;
    opacity: 0.18;
}
.card-glow > * { position: relative; z-index: 1; }

.delta-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}
.delta-badge.pos { background: rgba(16, 217, 160, 0.12); color: #10d9a0; }
.delta-badge.neg { background: rgba(239, 68, 68, 0.12);  color: #f87171; }

[data-title], [data-baseline], [data-baseline-label],
[data-baseline-budget], [data-baseline-budget-label],
[data-comment], [data-delta], [data-delta-budget], [data-value] { opacity: 0; }

@keyframes titleSlideIn {
    from { opacity: 0; transform: translateX(-8px); }
    to   { opacity: 1; transform: translateX(0); }
}
.anim-title { animation: titleSlideIn 0.3s ease-out forwards; }

@keyframes baselineFade { from { opacity: 0; } to { opacity: 1; } }
.anim-baseline { animation: baselineFade 0.3s ease-out 0.4s forwards; }

@keyframes badgePopShake {
    0%   { opacity: 0; transform: scale(0.3) rotate(-8deg); }
    55%  { opacity: 1; transform: scale(1.15) rotate(4deg); }
    70%  { transform: scale(0.96) rotate(-2deg); }
    85%  { transform: scale(1.04) rotate(1deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}
.anim-badge { animation: badgePopShake 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.55s forwards; }

@keyframes commentFade {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-comment { animation: commentFade 0.4s ease-out 0.9s forwards; }
.anim-value { opacity: 1; }
