.notice-stack {
    position: fixed;
    right: 24px;
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(380px, calc(100vw - 48px));
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    pointer-events: none;
    text-align: left;
}

.notice {
    --notice-color: #aaa2d3;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 17px 12px 17px 17px;
    border: 1px solid #ffffff20;
    border-left: 3px solid var(--notice-color);
    border-radius: 11px;
    background: #211e29;
    box-shadow: 0 12px 45px #0008;
    color: #eee7f4;
    pointer-events: auto;
    animation: notice-enter .2s ease-out;
}

.notice-success { --notice-color: #89c9a4; }
.notice-error { --notice-color: #f17b89; }
.notice-loading { --notice-color: #cfb27b; }

.notice-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 25px;
    height: 25px;
    border: 1px solid var(--notice-color);
    border-radius: 50%;
    color: var(--notice-color);
    font-size: 13px;
}

.notice-content {
    min-width: 0;
    flex: 1;
}

.notice-content strong {
    display: block;
    font: 600 13px var(--font-b);
    color: #f3edf7;
    margin: 2px 0 6px;
}

.notice-content p {
    font: 400 12px/1.7 var(--font-b);
    color: #bdb2c8;
    overflow-wrap: anywhere;
    margin: 0;
}

.notice-close {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    color: #a99ab6;
    font-size: 21px;
    border-radius: 5px;
}

.notice-close:hover { background: #ffffff0b; }

.favorite-list-item {
    min-width: 0;
}

.favorite-remove {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    margin-top: 13px;
    padding: 9px;
    border: 1px solid #e579892b;
    border-radius: 7px;
    background: #b02b4410;
    color: #de9faa;
    font-size: 11px;
}

.favorite-remove:hover { background: #b02b4424; }
.favorite-remove:disabled { opacity: .5; cursor: wait; }

@keyframes notice-enter {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
    .notice-stack {
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        width: auto;
        gap: 8px;
    }
}

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