/* All dialog surfaces use the semantic theme, before legacy important layers. */
@layer vmesta-window-theme {
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) {background:var(--theme-surface-panel)!important;color:var(--theme-text-primary)!important;border-color:var(--theme-divider)!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) :is(h1,h2,h3,h4,strong,b) {color:var(--theme-text-primary)!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) :is(p,small,label,dt) {color:var(--theme-text-secondary)!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) :is(input,textarea,select,[class$="-field"],[class$="-card"]) {background:var(--theme-surface-control)!important;color:var(--theme-text-primary)!important;border-color:var(--theme-divider)!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) :is(input,textarea)::placeholder {color:var(--theme-text-muted)!important;opacity:1!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) button {background:var(--theme-surface-control)!important;color:var(--theme-accent)!important;border-color:var(--theme-divider)!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) button:is(.is-active,[aria-pressed="true"],[aria-selected="true"]) {background:var(--theme-surface-active)!important;color:var(--theme-accent)!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) button:is(.is-primary,[type="submit"],.sanction-primary-action,#content-report-submit,[data-appeal-submit],[data-action="confirm"]) {background:var(--theme-accent)!important;color:var(--theme-on-accent)!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) button:is(.is-danger,[data-confirm],.profile-sanction-duration.is-permanent) {background:color-mix(in srgb,var(--theme-danger) 12%,var(--theme-surface-panel))!important;color:var(--theme-danger)!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) button:disabled {opacity:.45!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) button :is(span,strong,b,svg) {color:inherit!important;}
html:root body :is([role="dialog"]:not([id$="-modal"]),dialog,.modal-content,[id$="-modal"]>section,[id$="-modal"]>form,[id$="-modal"]>div:not([class*="backdrop"]):not([class*="overlay"]),.vmesta-confirm-surface>section):not(#post-viewer):not(#post-viewer-panel):not(.media-viewer-post-slot):not(:has(.comment-node,.comment-thread-group)) :is(header,footer) {border-color:var(--theme-divider)!important;}
html:root body .vmesta-not-found-frame {display:block;width:100%;height:calc(100svh - 140px);min-height:560px;border:0;border-radius:24px;}
}


@layer vmesta-block-borders {
html:root body :is(section,article,aside,[role="dialog"],.modal-content,[class*="-card"],[class*="-panel"],[class*="-block"],[class*="-dialog"],.profile-sanction-copy,.profile-sanction-boundary,.space-not-found-state) {
 border:0!important;outline:none!important;--tw-ring-shadow:0 0 #0000!important;--tw-ring-offset-shadow:0 0 #0000!important;
}
}
