/* DLE 15–20 compatibility. Palette follows each site's skin variables. */
figure { margin: 0; }
figure.align-left { float: left; }
figure.align-right { float: right; }
figure.image.align-center { display: table; margin-inline: auto; }
figure.image figcaption { padding: 1rem; background: var(--site-raised); color: #b4becb; font-size: .85rem; caption-side: bottom; overflow-wrap: anywhere; text-align: center; }
figure.image.align-center figcaption { display: table-caption; }
.comments-image-gallery { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; padding: 0; list-style: none; clear: both; }
.comments-image-gallery li { list-style: none; margin: 0; padding: 0; }
.comments-image-gallery li img { display: block; width: 100px; height: 100px; object-fit: cover; border: 3px solid var(--site-raised); border-radius: 6px; }
.comments-image-gallery li img:hover { box-shadow: 0 0 0 2px var(--site-secondary); }
.mce-toc { border: 1px solid #ffffff25; padding: 12px; margin: 0 0 1rem; }
.mce-toc h2 { margin: 4px; }
.mce-toc ul { padding-left: 20px; list-style: none; margin-block: 1em; }
.mce-toc ul ul { margin-block: 0; }
.mce-toc li { list-style: none; }
.image-bordered { border: 1px solid #ffffff30; }
.image-shadows { box-shadow: 0 4px 12px #0005; }
.image-padded { padding: .5rem; }
.comments-user-profile { font-weight: 700; cursor: pointer; color: var(--site-secondary); }
.title_spoiler svg { vertical-align: middle; margin: -4px 7px 0 0; width: 16px; height: 16px; }
.text_spoiler { display: none; }
.mce-accordion summary { cursor: pointer; }
.self_delete_link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid #e58f99; border-radius: 8px; background: #783b4740; color: #ffd2d8; text-decoration: none; }
.self_delete_link:hover { background: #783b4770; color: #fff; }
.dle20-account-delete { margin-block: 16px; }
.twofactorselect { max-width: 100%; min-height: 44px; background: var(--site-raised); color: #edf1f5; }
.dle20-xfields { width: 100%; min-width: 0; }
.dle20-xfields .xfieldsrow { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-block: 16px; }
.dle20-xfields .xfieldscolleft { flex: 0 1 180px; overflow-wrap: anywhere; }
.dle20-xfields .xfieldscolright { flex: 1 1 240px; min-width: 0; }
.dle20-xfields :is(input, textarea, select) { max-width: 100%; }
.dle20-xfields .xfieldsnote { color: #b4becb; font-size: .85rem; margin-top: 6px; }
.ui-dialog-buttonset button.ui-button-delete { background: #a43948; border-color: #e58f99; color: #fff; }
.ui-dialog-buttonset button.ui-button-delete:hover { background: #bc4152; color: #fff; }
.form-check-label { cursor: pointer; }
.form-check-input { appearance: auto; accent-color: var(--site-secondary); flex-shrink: 0; width: 1.12rem; height: 1.12rem; margin: -.188rem .625rem 0 0; vertical-align: middle; }
.form-check-input[type=checkbox] { border-radius: .25rem; }
.form-check-input[type=radio] { border-radius: 50%; }
input[type=text].comments_author_field { width: 100%; margin-bottom: 10px; }
.quote_link { float: right; }
.quote_link svg, .clipboard-copy-link svg { color: var(--site-secondary); vertical-align: middle; width: 18px; height: 18px; }
.clipboard-copy-link svg { margin-top: -3px; }
.smart-captcha { display: inline-block; max-width: 100%; }
.mathml-container { font-family: math; }
div.mathml-block { display: flex; align-items: center; justify-content: center; font-size: 1.1em; padding: .139em .35em; max-width: 100%; overflow-x: auto; }
div.mathml-block .katex { font-size: 1.1em; }
span.mathml-inline { display: inline-block; vertical-align: middle; margin: 0 .12em; }
.dleshowhidden { padding: .83em; color: #edf1f5; background: var(--site-raised); border: 1px solid var(--site-secondary); box-shadow: 0 5px 12px #0003; }
.monthselect-inner { display: flex; align-items: center; justify-content: center; gap: 3em; }
.monthselect-title { display: inline-block; }
.dlepopupnewsedit .wseditor { border-top: none; }
.dlepopupnewsedit .tox .tox-toolbar-overlord { background: var(--site-raised); }
#searchsuggestions .dle20-fast-result { display: grid; gap: 6px; padding: 12px 16px; min-height: 44px; white-space: normal; color: #edf1f5; }
#searchsuggestions .dle20-fast-result:hover { background: var(--site-raised); }
#searchsuggestions .searchheading { color: var(--site-secondary); font-weight: 600; }
.dle20-comment-tools { display: grid; gap: 12px; margin-block: 12px; }
.dle20-comment-tools .plupload_container { width: 100%; max-width: 100%; min-width: 0; color: #edf1f5; background: var(--site-raised); border: 1px solid #ffffff25; border-radius: 8px; }
.dle20-comment-tools .plupload_dropbox { background: var(--site-page); border: 1px dashed #ffffff30; }
.dle20-comment-tools .plupload_droptext { background: none; color: #b4becb; font-size: 13px; line-height: 1.5; padding: 20px; }
.dle20-comment-tools .plupload_filelist { color: #b4becb; background: var(--site-raised); }
.dle20-comment-tools .plupload_button { background: var(--site-accent); color: #fff; border: 1px solid #ffffff30; border-radius: 6px; }
.dle20-comment-images { clear: both; margin-block: 12px; }

/* Conversations introduced in DLE 18. The engine supplies forms and CSRF fields. */
.dle20-pm { width: 100%; min-width: 0; }
.dle20-pm h1 { margin-bottom: 20px; }
.dle20-pm__nav, .dle20-pm__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 16px; }
.dle20-pm__nav a, .dle20-pm__actions a { color: var(--site-secondary); }
.dle20-pm__status { margin-bottom: 20px; color: #b4becb; }
.dle20-pm__list { max-width: 100%; overflow-x: auto; }
.dle20-pm__message { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid #ffffff20; }
.dle20-pm__avatar { flex: 0 0 44px; }
.dle20-pm__avatar img { width: 44px; height: 44px; object-fit: cover; border-radius: 50%; }
.dle20-pm__body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.dle20-pm__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.dle20-pm__meta time { color: #b4becb; font-size: .85rem; }
.dle20-pm__compose { display: grid; gap: 16px; margin-block: 20px; }
.dle20-pm__compose label { display: grid; gap: 8px; }
.dle20-pm__compose button { justify-self: start; }
.pm th { text-align: left; font-weight: 500; white-space: nowrap; }
.pm th.pm_checkbox { text-align: center; }
.pm_list.pm_subj, .pm_list.pm_icon, .pm_list.pm_last_user { cursor: pointer; }
.pm_list.pm_icon svg { width: 1.4rem; height: 1.4rem; vertical-align: middle; }
.pm_list.pm_icon.pm-unread-image { color: var(--site-secondary); }
.pm td.pm_list.pm_icon, .userstop td, th.pm_head.pm_icon { border-bottom: none; }
.pm_list.pm_icon.pm-reply-image { color: #85d7b2; }
.pm_list.pm_icon.pm-read-image { color: #b4becb; }
.pm_list .pm_last_message, .pm_list .pm_last_date, .pm_list .pm_with_user { color: #b4becb; font-size: .8rem; }
.pm tbody > tr:hover { background: var(--site-raised); }
.pm_navigation { margin-top: 1rem; }
.pm_navigation .navigation { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: .4rem; background: var(--site-raised); border-radius: 6px; }
.pm_navigation .navigation :is(a, span) { display: inline-flex; align-items: center; justify-content: center; padding: .5rem; min-width: 2.25rem; min-height: 40px; color: #edf1f5; }
.pm_navigation .navigation span, .pm_navigation .navigation a:hover { background: var(--site-accent); color: #fff; }

/* DLEPush: service feedback, no synthetic notifications or extra scripts. */
.DLEPush { z-index: 2001; position: fixed; right: 20px; top: 20px; width: min(400px, calc(100vw - 40px)); }
.DLEPush-notification.wrapper { position: relative; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: center; width: 100%; min-width: 0; max-width: 400px; margin: 0 0 10px; padding: 0; color: #edf1f5; background: var(--site-surface); background-image: none; border: 1px solid #ffffff25; border-radius: 12px; box-shadow: 0 10px 25px #0005; overflow: hidden; animation: dle20-push-in .18s ease-out; }
.DLEPush-notification .DLEPush-icon { grid-column: 1; grid-row: 1 / span 2; display: flex; align-items: center; justify-content: center; align-self: stretch; color: #fff; background: var(--site-accent); width: 48px; height: 100%; }
.DLEPush-notification .DLEPush-icon svg { width: 24px; height: 24px; }
.DLEPush-notification .DLEPush-header { grid-column: 2; grid-row: 1; margin: 14px 36px 0 14px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.DLEPush-notification .DLEPush-header:empty { margin-top: 0; }
.DLEPush-notification .DLEPush-message { grid-column: 2; grid-row: 2; margin: 10px 32px 14px 14px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.DLEPush-notification .DLEPush-message :is(li, ul) { list-style: none; padding-left: 0; }
.DLEPush-notification .DLEPush-close { position: absolute; right: 2px; top: 2px; display: grid; place-items: center; width: 32px; height: 32px; min-height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #edf1f5; cursor: pointer; font-size: 22px; line-height: 1; opacity: .8; }
.DLEPush-notification .DLEPush-close:hover { background: #ffffff12; color: #fff; opacity: 1; }
.DLEPush-notification.wrapper.push-success { border-color: #5cbf98; }
.DLEPush-notification.wrapper.push-warning { border-color: #d7b465; }
.DLEPush-notification.wrapper.push-error { border-color: #e58f99; }
.DLEPush-notification.wrapper.push-success .DLEPush-icon { background: #28734f; }
.DLEPush-notification.wrapper.push-warning .DLEPush-icon { background: #925e22; }
.DLEPush-notification.wrapper.push-error .DLEPush-icon { background: #a43948; }
@keyframes dle20-push-in { from { transform: translateY(-8px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .DLEPush-notification.wrapper { animation: none; } }
@media (max-width: 600px) {
    .DLEPush { left: 12px; right: 12px; top: 12px; width: auto; }
    .DLEPush-notification.wrapper { max-width: none; }
    .dle20-xfields .xfieldscolleft { flex-basis: 100%; }
    .monthselect-inner { gap: 1em; }
    .dle20-pm__message { gap: 10px; }
}
