/* design_system/flash.css — Flash toast notifications */

.flash-stack {
    position: fixed;
    top: max(1rem, env(safe-area-inset-top, 0px));
    left: 50%;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 28rem;
    padding: 0 1rem;
    transform: translateX(-50%);
    pointer-events: none;
}
.flash {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: var(--radius-surface);
    border: 1px solid transparent;
    box-shadow: 0 10px 30px rgba(15, 36, 52, 0.12);
    pointer-events: auto;
    transform: translateY(-4px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.flash__icon {
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}
.flash__body {
    flex: 1;
    min-width: 0;
}
.flash__text {
    margin: 0;
    font-size: var(--text-ui);
    font-weight: 500;
    line-height: 1.4;
}
.flash__close {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    color: inherit;
    opacity: 0.75;
    transition: opacity 0.15s ease;
}
.flash__close:hover {
    opacity: 1;
}
.flash__close svg {
    width: 1.25rem;
    height: 1.25rem;
}
.flash--notice {
    background: #edf8f2;
    border-color: var(--green-border);
    color: var(--green);
}
.flash--notice .flash__text {
    color: #166534;
}
.flash--alert {
    background: #fdf2f1;
    border-color: var(--red-border);
    color: var(--red);
}
.flash--alert .flash__text {
    color: #991b1b;
}

/* Stat grid - responsive */
