/* Announcements — Windows 10 toast-стиль (ТЗ Announcements §6.2).
   Правый нижний угол; стек column-reverse (последнее — снизу); 1 тост = 344 px. */

.ann-container {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: flex;
    flex-direction: column-reverse;
    gap: 8px;
    max-width: 360px;
    pointer-events: none; /* клики проходят, пока нет тостов */
}

.ann-toast {
    pointer-events: auto;
    position: relative;
    width: 344px;
    max-width: calc(100vw - 32px);
    padding: 12px 40px 12px 16px;
    border-radius: 4px;
    background: var(--ann-bg, #2b2b2b);
    color: var(--ann-fg, #ffffff);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
    font: 13px/1.45 system-ui, 'Segoe UI', sans-serif;
    animation: toast-in .2s ease-out;
}

/* Светлая тема (Layout data-theme="light") — светлая карточка ТЗ §6.2. */
html[data-theme="light"] .ann-toast {
    --ann-bg: #ffffff;
    --ann-fg: #222222;
}
html[data-theme="light"] .ann-toast .ann-body { color: #444444; }
html[data-theme="light"] .ann-toast .ann-x:hover { background: rgba(0, 0, 0, .08); }
html[data-theme="light"] .ann-toast .ann-link { color: #0078d4; }

.ann-toast .ann-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--ann-fg, #ffffff);
}

.ann-toast .ann-body { color: var(--ann-body-fg, #cbd5e1); }
html[data-theme="light"] .ann-toast .ann-body { color: #444444; }

.ann-toast .ann-body a { color: inherit; font-weight: 600; text-decoration: underline; }

/* Крестик закрытия (×, U+00D7) — справа-вверху тоста. */
.ann-toast .ann-x {
    position: absolute;
    top: 6px;
    right: 8px;
    width: 20px;
    height: 20px;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    border-radius: 2px;
    padding: 0;
}
.ann-toast .ann-x:hover { background: rgba(255, 255, 255, .15); }

.ann-toast .ann-ic { vertical-align: -2px; margin-right: 8px; }

.ann-toast .ann-link {
    color: #ffffff;
    font-weight: 600;
    margin-top: 6px;
    display: inline-block;
    text-decoration: underline;
}
html[data-theme="light"] .ann-toast .ann-link { color: #0078d4; }

/* Win10-палитра по Kind (ТЗ §6.2: Info #6cb6ff / Warning #ffb900 / Danger #ff6e6e). */
.ann-toast.info    .ann-ic, .ann-toast.info    .ann-link { color: #6cb6ff; }
.ann-toast.warning .ann-ic { color: #ffb900; }
.ann-toast.danger  .ann-ic { color: #ff6e6e; }
html[data-theme="light"] .ann-toast.info    .ann-ic { color: #0078d4; }
html[data-theme="light"] .ann-toast.warning .ann-ic { color: #9d5d00; }
html[data-theme="light"] .ann-toast.danger  .ann-ic { color: #d13438; }

@keyframes toast-in {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes toast-out {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(20px); opacity: 0; }
}
.ann-toast.ann-out { animation: toast-out .2s ease-in forwards; }
