/* Scoped layout; headings, paragraphs and font families keep the theme's typography. */
#elp-dialog {
    --elp-ink: #111111;
    box-sizing: border-box;
    position: fixed;
    inset: 0;
    width: min(600px, calc(100vw - 32px));
    max-width: 600px;
    max-height: calc(100vh - 40px);
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: clamp(28px, 5vw, 48px);
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 20px;
    background: #fff;
    color: var(--elp-ink);
    font-family: inherit;
    text-align: start;
    overflow: auto;
    box-shadow: 0 28px 90px -20px rgba(0, 0, 0, .28), 0 2px 8px rgba(0, 0, 0, .04);
    overscroll-behavior: contain;
}
#elp-dialog:not([open]) { display: none; }
#elp-dialog[open] { display: block; animation: elp-enter .42s cubic-bezier(.16, 1, .3, 1) both; }
#elp-dialog::backdrop {
    background: rgba(15, 17, 20, .32);
    -webkit-backdrop-filter: blur(7px);
    backdrop-filter: blur(7px);
    animation: elp-fade-in .35s ease both;
}
#elp-dialog *, #elp-dialog *::before, #elp-dialog *::after { box-sizing: border-box; }
#elp-dialog #elp-title {
    margin: 0 0 18px;
    padding: 0;
    color: var(--elp-ink);
    overflow-wrap: anywhere;
}
#elp-dialog #elp-title:focus { outline: none; }
#elp-dialog #elp-intro {
    margin: 0;
    padding: 0;
    color: #595959;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
#elp-dialog .elp-language-mark { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 36px 26px 0; font-size: 12px; font-weight: 500; line-height: 1.4; }
#elp-dialog .elp-language-from { color: #777; }
#elp-dialog .elp-language-arrow { color: #999; }
#elp-dialog .elp-language-to { border: 1px solid #e7e7e7; padding: 5px 10px; border-radius: 100px; color: #333; }
#elp-dialog .elp-close {
    appearance: none; position: absolute; inset-block-start: 14px; inset-inline-end: 14px;
    display: grid; place-items: center; width: 40px; height: 40px; min-height: 0;
    margin: 0; padding: 0; border: 0; border-radius: 50%; background: transparent;
    color: #777; font: 300 28px/1 Arial, sans-serif; cursor: pointer; box-shadow: none;
    transition: background .18s ease, color .18s ease;
}
#elp-dialog .elp-close:hover { background: #f3f3f3; color: #111; }
#elp-dialog .elp-actions { display: flex; align-items: stretch; gap: 12px; margin-top: 32px; }
#elp-dialog .elp-button {
    appearance: none; display: flex; align-items: center; justify-content: center; flex: 1 1 0;
    min-width: 0; min-height: 50px; margin: 0; padding: 13px 16px;
    border: 1px solid #111; border-radius: 8px; box-shadow: none;
    font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.45;
    letter-spacing: normal; text-transform: none; text-decoration: none; text-align: center;
    white-space: normal; overflow-wrap: anywhere; cursor: pointer;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}
#elp-dialog .elp-primary, #elp-dialog .elp-primary:visited { background: #111; color: #fff; }
#elp-dialog .elp-primary:hover { background: #2b2b2b; color: #fff; transform: translateY(-1px); }
#elp-dialog .elp-secondary { background: transparent; color: #111; }
#elp-dialog .elp-secondary:hover { background: #f4f4f4; color: #111; }
#elp-dialog .elp-button:focus-visible, #elp-dialog .elp-close:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
#elp-dialog.elp-closing { animation: elp-exit .18s ease both; }
#elp-dialog.elp-closing::backdrop { animation: elp-fade-out .18s ease both; }
@keyframes elp-enter { from { opacity: 0; transform: translateY(22px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes elp-exit { to { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes elp-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes elp-fade-out { to { opacity: 0; } }
@media (max-width: 520px) {
    #elp-dialog .elp-actions { flex-direction: column; gap: 10px; margin-top: 26px; }
    #elp-dialog .elp-primary { order: -1; }
    #elp-dialog .elp-language-mark { margin-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
    #elp-dialog[open], #elp-dialog::backdrop { animation: none; }
    #elp-dialog .elp-button, #elp-dialog .elp-close { transition: none; }
}
