/* Shared tactical dialog frame; native dialog behavior is unchanged. */
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader){--modal-corner:#c84249;border:1px solid #65635d;border-top:3px solid #b52428;border-radius:3px;color:#252721;background-color:#f0efe8;background-image:linear-gradient(var(--modal-corner),var(--modal-corner)),linear-gradient(var(--modal-corner),var(--modal-corner)),linear-gradient(var(--modal-corner),var(--modal-corner)),linear-gradient(var(--modal-corner),var(--modal-corner));background-position:left 5px top 5px,left 5px top 5px,right 5px bottom 5px,right 5px bottom 5px;background-size:20px 2px,2px 20px,20px 2px,2px 20px;background-repeat:no-repeat;box-shadow:0 24px 90px #0009,inset 0 0 0 4px #25272112;overscroll-behavior:contain}
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader)[open]{animation:lyutich-modal-enter .32s cubic-bezier(.2,.8,.2,1) both}
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader)::backdrop{background:#080a0de0;animation:lyutich-modal-shade .28s ease-out both}
body #site-search-dialog .ss-top,body #registration-modal .registration-toolbar,body #charter-viewer .charter-toolbar,body dialog.photo-viewer .photo-viewer__top,body dialog.site-news-reader .news-reader-toolbar{background:#1b1e1c;color:#fff;border-bottom:1px solid #686b5e;box-shadow:inset 3px 0 #b52428;padding:14px 16px;gap:12px}
body #site-search-dialog .ss-top{margin:-4px -4px 22px}
body #site-search-dialog .ss-top h2,body #charter-viewer #charter-title{color:#fff;font-size:clamp(17px,2.5vw,23px);letter-spacing:.035em}
body #registration-modal .registration-toolbar>span,body dialog.photo-viewer .photo-viewer__count,body dialog.site-news-reader .news-reader-label{font-family:"Fira Code",monospace;font-size:12px;letter-spacing:.06em;color:#e0e1d9}
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader) :is(.ss-close,.charter-control,.registration-close,.photo-viewer__close,.photo-viewer__prev,.photo-viewer__next,.news-reader-close){min-height:44px;border:1px solid #797d71;border-radius:2px;background:#2b302a;color:#fff;box-shadow:inset 0 -2px #0003;transition:background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader) :is(button,a,input):focus-visible{outline:3px solid #d54b52;outline-offset:3px}
body #site-search-dialog #site-search-input{border:1px solid #787c6d;border-radius:2px;background:#fff;color:#222;box-shadow:inset 3px 0 #747b65}
body #site-search-dialog .ss-results li{border:1px solid #c6c8bc;border-left:3px solid #747b65;border-radius:2px;background:#fafaf5}
body #site-search-dialog .ss-results a{color:#8e2023}
body #site-search-dialog :is(.ss-status,.ss-hint),body #registration-modal .note{color:#565b50}
body #registration-modal .registration-content,body dialog.site-news-reader .news-reader-content{padding:24px}
body #registration-modal .registration-content h2,body dialog.site-news-reader .news-reader-title{padding-bottom:14px;border-bottom:1px solid #bfc3b5;font-size:clamp(22px,3vw,30px)}
body #registration-modal .requisites>div{border-color:#c8ccbd}
body #registration-modal .requisites dt{color:#58604e;font-family:"Fira Code",monospace;font-size:12px}
body #charter-viewer .charter-fallback{border-top:1px solid #c8ccbd;background:#eeeee5;color:#333}
body dialog.photo-viewer{background-color:#171b18;color:#eee;box-shadow:0 24px 90px #000b,inset 0 0 0 4px #ffffff08}
body dialog.photo-viewer .photo-viewer__top{margin:-4px -4px 16px}
body dialog.photo-viewer .photo-viewer__bottom{border-top:1px solid #505748;padding-top:14px}
body dialog.photo-viewer .photo-viewer__bottom>a{color:#f29a9e}
@media(hover:hover) and (pointer:fine){body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader) :is(.ss-close,.charter-control,.registration-close,.photo-viewer__close,.photo-viewer__prev,.photo-viewer__next,.news-reader-close):not(:disabled):hover{background:#723039;border-color:#e28287;box-shadow:inset 0 -2px #ed777d}}
@keyframes lyutich-modal-enter{from{opacity:0;transform:translateY(16px) scale(.975)}to{opacity:1;transform:none}}
@keyframes lyutich-modal-shade{from{opacity:0}to{opacity:1}}
@media(max-width:600px){body #registration-modal .registration-content,body dialog.site-news-reader .news-reader-content{padding:18px}body #site-search-dialog .ss-top,body #registration-modal .registration-toolbar,body #charter-viewer .charter-toolbar,body dialog.site-news-reader .news-reader-toolbar{flex-wrap:wrap;padding:12px}body #site-search-dialog .ss-top h2{font-size:19px}}
@media(prefers-reduced-motion:reduce){body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader)[open],body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader)::backdrop{animation:none!important}body :is(#site-search-dialog,#charter-viewer,#registration-modal,dialog.photo-viewer,dialog.site-news-reader) :is(button,a,input){transition:none!important}}
