/* Native notices remain the no-JavaScript fallback; only adapted sources are hidden. */
body .cv-notice-source { display: none !important; }
.cv-toasts { position: fixed; z-index: 100000; top: max(24px, env(safe-area-inset-top)); right: max(24px, env(safe-area-inset-right)); display: flex; flex-direction: column; gap: 12px; width: min(420px, calc(100vw - 48px)); max-height: calc(100dvh - 48px); margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; pointer-events: none; outline: none; }
.admin-bar .cv-toasts { top: calc(48px + env(safe-area-inset-top)); max-height: calc(100dvh - 72px); }
.cv-toasts:empty { display: none; }
.cv-toast { --cv-toast-accent: #376b52; --cv-toast-tint: #eaf3ed; display: grid; grid-template-columns: 30px minmax(0, 1fr) 32px; align-items: start; gap: 12px; flex: none; min-width: 0; padding: 18px 14px 18px 18px; border: 1px solid #e4dfd9; border-left: 3px solid var(--cv-toast-accent); border-radius: 12px; background: #fff; color: var(--hv-ink); box-shadow: 0 10px 32px #22201e1a; font-family: var(--hv-body); text-align: start; pointer-events: auto; animation: cv-toast-enter 180ms ease-out both; }
.cv-toast[data-type="error"] { --cv-toast-accent: #a63c32; --cv-toast-tint: #fbece9; }
.cv-toast[data-type="warning"] { --cv-toast-accent: #8a5c20; --cv-toast-tint: #fbf2e2; }
.cv-toast[data-type="info"] { --cv-toast-accent: #42657c; --cv-toast-tint: #edf3f7; }
.cv-toast-icon { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: var(--cv-toast-tint); color: var(--cv-toast-accent); }
.cv-toast svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cv-toast-body { min-width: 0; padding-top: 2px; }
.cv-toast .cv-toast-title { margin: 0 0 5px; color: var(--hv-ink); font-size: 0.86rem; font-weight: 750; line-height: 1.4; }
.cv-toast .cv-toast-content { color: var(--hv-muted); font-size: 0.82rem; line-height: 1.65; overflow-wrap: anywhere; }
.cv-toast-content > :first-child { margin-top: 0; }
.cv-toast-content > :last-child { margin-bottom: 0; }
.cv-toast-content p { margin: 0 0 8px; }
.cv-toast-content :is(ul, ol) { margin: 0; padding-inline-start: 18px; }
.cv-toast-content li + li { margin-top: 6px; }
.cv-toast-content a { color: var(--hv-rust); font-weight: 650; text-underline-offset: 3px; }
.cv-toast-content :is(a.button, a.restore-item, button) { display: table; float: none; width: fit-content; max-width: 100%; min-height: 36px; margin: 10px 0 0; padding: 7px 12px; border: 1px solid #e5d4c6; border-radius: 7px; background: #f6eee6; color: var(--hv-rust); font: 650 0.78rem/1.5 var(--hv-body); text-decoration: none; white-space: normal; cursor: pointer; }
.cv-toast-content :is(a.button, a.restore-item, button):hover { background: #eee0d4; color: var(--hv-ink); }
.cv-toast .cv-toast-close { display: grid; width: 32px; height: 32px; min-height: 32px; margin: -3px -3px 0 0; padding: 6px; border: 0; border-radius: 7px; background: transparent; color: #756d65; cursor: pointer; }
.cv-toast .cv-toast-close:hover { background: #f4f0eb; color: var(--hv-ink); }
.cv-toast :is(a, button):focus-visible { outline: 2px solid var(--hv-rust); outline-offset: 2px; }
@keyframes cv-toast-enter { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 680px) {
 .cv-toasts { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); width: calc(100vw - 24px); max-height: min(60dvh, 560px); gap: 9px; }
 .admin-bar .cv-toasts { top: calc(56px + env(safe-area-inset-top)); }
 .cv-toast { grid-template-columns: 28px minmax(0, 1fr) 32px; gap: 10px; padding: 15px 12px 15px 14px; border-radius: 10px; }
 .cv-toast-icon { width: 28px; height: 28px; }
 .cv-toast .cv-toast-content { font-size: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) { .cv-toast { animation: none; } }
