/*
 * Toast notices, shared by the schema list (#jsv-auth-toast) and the editor
 * (#jsv-update-toast): a soft tint of the notice's colour with dark text of
 * the same hue and a round icon - success green, error red, info blue - in
 * both themes. The page sets .visible to show one.
 */
.jsv-toast {
    position: fixed;
    top: 14px;
    left: 50%;
    z-index: 6000;
    box-sizing: border-box;
    max-width: 420px;
    padding: 10px 14px 10px 40px;
    border: 1px solid #fecaca;
    border-radius: 10px;
    background: #fef2f2;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    color: #991b1b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.4;
    text-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.jsv-toast.visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.jsv-toast::before {
    content: '!';
    position: absolute;
    top: 50%;
    left: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc2626;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    transform: translateY(-50%);
}

.jsv-toast.success {
    border-color: #a7f3c9;
    background: #ecfdf3;
    color: #166534;
}

.jsv-toast.success::before {
    content: '\2713';
    background: #16a34a;
}

.jsv-toast.info {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e40af;
}

.jsv-toast.info::before {
    content: 'i';
    background: #2563eb;
}

/* Dark theme: the same hues as deep tints with light text. */
body.panel-theme-dark .jsv-toast {
    border-color: #7f2d2d;
    background: #3b1d22;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
    color: #fca5a5;
}

body.panel-theme-dark .jsv-toast.success {
    border-color: #1f5e3a;
    background: #12301f;
    color: #86efac;
}

body.panel-theme-dark .jsv-toast.info {
    border-color: #1e40af;
    background: #172554;
    color: #93c5fd;
}
