/* Оголошення платформи: стос карток справа знизу (віджет із platform/ui/assets/announcements.js). */
.pa-stack {
    /* Відступ усередині - місце для тіні карток: інакше прокрутка її обрізає сірим прямокутником. */
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 420px;
    max-width: 100vw;
    max-height: 100vh;
    padding: 20px;
    overflow-y: auto;
    pointer-events: none;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.pa-card {
    --pa-accent: #4F7F91;
    --pa-soft: #DDE9EE;
    pointer-events: auto;
    position: relative;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding: 14px 14px 14px 16px;
    border-radius: 16px;
    border: 1px solid rgba(30, 39, 74, .1);
    border-left: 4px solid var(--pa-accent);
    background: #fff;
    color: #1D2228;
    box-shadow: 0 8px 18px rgba(30, 39, 74, .14);
    animation: pa-in .32s cubic-bezier(.2, .8, .2, 1) both;
}
.pa-card--warning { --pa-accent: #B07D1A; --pa-soft: #F5EBD6; }
.pa-card--critical { --pa-accent: #A33F3F; --pa-soft: #F3E1E1; }
.pa-card.is-leaving { animation: pa-out .22s ease-in both; }
.pa-icon {
    grid-row: span 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--pa-soft);
    color: var(--pa-accent);
}
.pa-icon svg { width: 18px; height: 18px; }
.pa-title { margin: 0; font-size: 14.5px; font-weight: 700; line-height: 1.3; align-self: center; }
.pa-actions { display: flex; gap: 2px; align-self: start; }
.pa-btn {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #65737E;
    cursor: pointer;
}
.pa-btn:hover { background: rgba(30, 39, 74, .07); color: #1D2228; }
.pa-btn:focus-visible { outline: 2px solid var(--pa-accent); outline-offset: 1px; }
.pa-btn svg { width: 16px; height: 16px; }
.pa-body {
    grid-column: 2 / 4;
    margin: 0;
    font-size: 13.5px;
    line-height: 1.5;
    color: #3B4650;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.pa-timing {
    grid-column: 2 / 4;
    justify-self: start;
    margin-top: 4px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--pa-soft);
    color: var(--pa-accent);
    font-size: 12.5px;
    font-weight: 700;
}
.pa-timing:empty { display: none; }
.pa-card.is-collapsed .pa-body,
.pa-card.is-collapsed .pa-timing { display: none; }
.pa-card.is-collapsed { padding-top: 10px; padding-bottom: 10px; }
@keyframes pa-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes pa-out { to { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) {
    .pa-card, .pa-card.is-leaving { animation: none; }
}
@media (max-width: 600px) {
    .pa-stack { padding: 12px; }
}
/* Сторінка входу: ті самі картки в потоці, над формою. */
.pa-stack--inline {
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    overflow: visible;
    margin-bottom: 18px;
}
.pa-stack--inline .pa-card { box-shadow: none; animation: none; }
