.global-notice-stack {
    position: fixed;
    top: 88px;
    right: 22px;
    z-index: 20000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: min(420px, calc(100vw - 30px));
    pointer-events: none;
}
.global-notice-stack .global-notice {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 0;
    padding: 15px 42px 16px 17px;
    pointer-events: auto;
    animation: noticeIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.notice-icon {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 50%;
    background: currentColor;
    position: relative;
}
.notice-icon:after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}
.global-notice.error .notice-icon:after {
    content: "!";
}
.global-notice.warning .notice-icon:after {
    content: "!";
}
.global-notice.loading .notice-icon {
    border: 3px solid #dce9df;
    border-top-color: currentColor;
    background: transparent;
    animation: noticeSpin 0.8s linear infinite;
}
.global-notice.loading .notice-icon:after {
    display: none;
}
.notice-content {
    display: grid;
    gap: 2px;
    min-width: 0;
}
.notice-content strong {
    font-size: 14px;
}
.notice-message {
    color: #64756b;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.notice-progress {
    height: 3px !important;
    background: currentColor !important;
    animation: noticeTimer 5s linear forwards !important;
}
.global-notice.loading .notice-progress {
    display: none;
}
.global-notice.notice-hide {
    animation: noticeOut 0.28s ease forwards !important;
}
.button-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 2px solid #ffffff66;
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: -2px;
    animation: noticeSpin 0.7s linear infinite;
}
@keyframes noticeSpin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes noticeOut {
    to {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
}
@media (max-width: 600px) {
    .global-notice-stack {
        top: 76px;
        right: 10px;
        width: calc(100vw - 20px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .global-notice-stack .global-notice,
    .notice-icon,
    .button-spinner {
        animation: none !important;
    }
}
/* Standalone rules: this file can be used without global.css (including login). */
.global-notice {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 20000;
    width: min(420px, calc(100vw - 32px));
    box-sizing: border-box;
    border: 1px solid #dce9df;
    border-left: 5px solid #087b50;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 45px #063a0a2e;
    color: #176229;
    overflow: hidden;
    animation: noticeIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.global-notice.error {
    border-left-color: #d94343;
    color: #8d2020;
}
.global-notice.warning {
    border-left-color: #d89118;
    color: #8a5b08;
}
.global-notice.info {
    border-left-color: #2778c7;
    color: #1d5c97;
}
.global-notice > .notice-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    font: 700 20px/1 system-ui;
    cursor: pointer;
    z-index: 2;
}
.global-notice > .notice-close:hover {
    background: #eef5ef;
}
.global-notice > .notice-icon {
    display: block;
    position: absolute;
    top: 16px;
    left: 16px;
}
.global-notice > .notice-content {
    display: grid;
    gap: 2px;
    padding: 15px 42px 16px 52px;
}
.global-notice > .notice-progress {
    display: block;
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: currentColor;
    animation: noticeTimer 6s linear forwards;
}
@media (max-width: 600px) {
    .global-notice {
        top: 16px;
        right: 16px;
        width: calc(100vw - 32px);
    }
}
