/* WayAlert — confirmação / alerta do layout Way */
.wy-alert-root {
    --wya-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Roboto", "Helvetica Neue", Arial, sans-serif;
    --wya-overlay: rgba(15, 23, 32, .35);
    --wya-card: #fff;
    --wya-border: #e5e9ef;
    --wya-text: #1a2332;
    --wya-muted: #6b7280;
    --wya-accent: #0369a1;
    --wya-accent-strong: #0284c7;
    --wya-danger: #c0392f;
    --wya-danger-strong: #a93226;
    --wya-btn-border: #dfe4e9;
    --wya-btn-bg: #fff;
    --wya-shadow: 0 12px 40px rgba(15, 23, 32, .22);
    --wya-radius: 12px;
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 16px 20px;
    font-family: var(--wya-font);
}
.wy-alert-root.open { display: flex; }
.wy-alert-root.is-dark {
    --wya-overlay: rgba(0, 0, 0, .65);
    --wya-card: #1c232d;
    --wya-border: #3a4554;
    --wya-text: #e8edf3;
    --wya-muted: #9aa6b5;
    --wya-accent: #38bdf8;
    --wya-accent-strong: #0ea5e9;
    --wya-danger: #e07a72;
    --wya-danger-strong: #c0392f;
    --wya-btn-border: #3a4554;
    --wya-btn-bg: #252d39;
    --wya-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.wy-alert-backdrop {
    position: absolute;
    inset: 0;
    background: var(--wya-overlay);
}
.wy-alert {
    position: relative;
    width: min(480px, 100%);
    margin-top: 8px;
    background: var(--wya-card);
    border: 1px solid var(--wya-border);
    border-radius: var(--wya-radius);
    box-shadow: var(--wya-shadow);
    padding: 18px 20px 16px;
    color: var(--wya-text);
    animation: wy-alert-in .18s ease-out;
}
@keyframes wy-alert-in {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.wy-alert-title {
    margin: 0 0 8px;
    font: 700 17px/1.3 var(--wya-font);
    color: var(--wya-text);
}
.wy-alert-message {
    margin: 0;
    font: 500 14px/1.45 var(--wya-font);
    color: var(--wya-muted);
    white-space: pre-wrap;
}
.wy-alert-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}
.wy-alert-btn {
    min-height: 38px;
    padding: 0 16px;
    border-radius: 8px;
    border: 1px solid var(--wya-btn-border);
    background: var(--wya-btn-bg);
    color: var(--wya-text);
    font: 600 13px var(--wya-font);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}
.wy-alert-btn:hover { filter: brightness(.97); }
.wy-alert-btn:focus-visible {
    outline: 2px solid var(--wya-accent);
    outline-offset: 2px;
}
.wy-alert-btn-primary {
    border-color: var(--wya-accent);
    background: linear-gradient(180deg, var(--wya-accent-strong), var(--wya-accent));
    color: #fff;
}
.wy-alert-btn-danger {
    border-color: var(--wya-danger-strong);
    background: var(--wya-danger-strong);
    color: #fff;
}
.wy-alert-btn-danger:hover { filter: brightness(1.05); }
.wy-alert-root.is-dark .wy-alert-btn-primary {
    color: #0b1220;
}
.wy-alert-root.is-dark .wy-alert-btn-danger {
    background: #a93226;
    border-color: #a93226;
    color: #fff;
}
