.operation-notice-layer {
    position: fixed;
    top: 150px;
    left: 50%;
    z-index: 12000;
    display: grid;
    width: min(440px, calc(100vw - 32px));
    gap: 12px;
    pointer-events: none;
    transform: translateX(-50%);
}

.operation-notice {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 32px;
    gap: 14px;
    align-items: start;
    min-height: 92px;
    padding: 20px 18px;
    color: #182026;
    background: #fff;
    border: 1px solid #dce3e7;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(22, 33, 41, 0.2), 0 4px 14px rgba(22, 33, 41, 0.08);
    pointer-events: auto;
    animation: operation-notice-enter 180ms ease-out both;
}

.operation-notice.success {
    border-top: 4px solid #17865f;
}

.operation-notice.error {
    border-top: 4px solid #c83d4d;
}

.operation-notice.is-leaving {
    animation: operation-notice-leave 180ms ease-in both;
}

.operation-notice-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    font-size: 23px;
    font-weight: 800;
    line-height: 1;
    background: #17865f;
    border-radius: 50%;
}

.operation-notice.error .operation-notice-icon {
    background: #c83d4d;
}

.operation-notice-content {
    min-width: 0;
    padding-top: 1px;
}

.operation-notice-content strong {
    display: block;
    margin: 0 0 6px;
    color: #162129;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
}

.operation-notice-content p {
    margin: 3px 0 0;
    color: #56636c;
    font-size: 14px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.operation-notice-close {
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    color: #748089;
    font: inherit;
    font-size: 24px;
    line-height: 1;
    background: transparent;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
}

.operation-notice-close:hover {
    color: #182026;
    background: #f0f3f5;
}

.operation-notice-close:focus-visible {
    outline: 2px solid #2877c7;
    outline-offset: 2px;
}

@keyframes operation-notice-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes operation-notice-leave {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}

@media (max-width: 560px) {
    .operation-notice-layer {
        width: calc(100vw - 24px);
    }

    .operation-notice {
        grid-template-columns: 36px minmax(0, 1fr) 30px;
        gap: 11px;
        min-height: 84px;
        padding: 17px 14px;
    }

    .operation-notice-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .operation-notice,
    .operation-notice.is-leaving {
        animation: none;
    }
}
