.app-notifications {
    position: fixed;
    inset: max(82px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) auto auto;
    z-index: 2147483000;
    width: min(390px, calc(100vw - 32px));
    max-height: calc(100dvh - 110px);
    margin: 0;
    padding: 4px;
    border: 0;
    background: transparent;
    overflow: visible;
    color: #243b35;
    font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
    pointer-events: none;
    box-sizing: border-box;
}

.app-notifications[hidden], .app-notifications [hidden],
.app-notice-source--relocated { display: none !important; }
.app-notifications::backdrop { background: transparent; pointer-events: none; }
.app-notifications__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: calc(100dvh - 160px);
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px 4px 16px;
    scrollbar-width: thin;
    pointer-events: auto;
}
.app-notifications__clear {
    display: block;
    margin: 0 4px 6px auto;
    min-height: 36px;
    padding: 5px 13px;
    border: 1px solid #dce5e0;
    border-radius: 20px;
    background: #fff;
    color: #405a51;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 12px #1c42300d;
    pointer-events: auto;
}
.app-notice {
    --notice-accent: #26715a;
    --notice-tint: #eaf5ef;
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    gap: 12px;
    align-items: start;
    flex: 0 0 auto;
    padding: 17px 12px 17px 16px;
    border: 1px solid #dbe5df;
    border-left: 4px solid var(--notice-accent);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 22px #163a271a, 0 2px 5px #163a2708;
    animation: app-notice-enter 180ms ease-out;
    text-align: left;
    pointer-events: auto;
}
.app-notice--error { --notice-accent: #b43c44; --notice-tint: #fceef0; }
.app-notice--warning { --notice-accent: #956119; --notice-tint: #fff5df; }
.app-notice--info { --notice-accent: #326c96; --notice-tint: #edf4fb; }
.app-notice__icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: var(--notice-tint);
    color: var(--notice-accent);
    font-size: 20px;
}
.app-notice__title { display: block; margin: 0 0 3px; font-size: 14px; font-weight: 700; color: #243b35; }
.app-notice__message { margin: 0; color: #53665f; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; max-height: 32dvh; overflow: auto; }
.app-notice__close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-top: -5px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    color: #718079;
    background: transparent;
    font-size: 13px;
    cursor: pointer;
}
.app-notice__close:hover, .app-notifications__clear:hover { background: #f0f5f2; color: #244c3e; }
.app-notifications button:focus-visible { outline: 3px solid #508776; outline-offset: 2px; }
.app-notifications__announcer { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes app-notice-enter { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: translateX(0); } }
@media (max-width: 600px) {
    .app-notifications { inset: max(72px, env(safe-area-inset-top)) 8px auto 8px; width: auto; }
    .app-notice { grid-template-columns: 34px minmax(0, 1fr) 40px; gap: 9px; padding: 14px 8px 14px 12px; }
    .app-notice__close { width: 40px; height: 40px; }
    .app-notifications__clear { min-height: 40px; }
}
@media (prefers-reduced-motion: reduce) { .app-notice { animation: none; } }
@media print { .app-notifications { display: none !important; } }
