/* Approved shared close controls. Explicit dismiss icons only.
   Background SVG preserves existing positioning and event targets. */
/* Scroll modal content without losing the explicit top-right close control. */
dialog:not([data-ru-inline])>:is(.ru-dialog-header,.ru-inbox-header,.ru-services-header,header){position:sticky;top:0;z-index:5;background:#fff;flex-shrink:0}
:is(.ru-info-modal__head,.ru-global-guide__head,.ru-platform-notice__head,.ru-toolbox-dialog>header){position:sticky;top:0;z-index:5;flex-shrink:0}
/* Account-bound email is readable identity, not an editable input. */
#authDialog #loginEmail[readonly]{height:48px;padding:0!important;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:inherit;line-height:48px;cursor:text}
html:root body :is(.ru-info-modal__close,.admission-notice__close,#closePhoto,.ru-global-guide__close,.ru-inbox-close,.ru-services-close,.ru-close,.ru-platform-notice__close,.ru-intern-close,.ru-toolbox-close,.dept-detail-close,.ru-workflow-close,.ru-favorites-close,.ru-share-close){
  --ru-close-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3.8 3.8 22.2 22.2M22.2 3.8 3.8 22.2' fill='none' stroke='%23172b4d' stroke-width='2'/%3E%3C/svg%3E");
  --ru-close-hover-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3.8 3.8 22.2 22.2M22.2 3.8 3.8 22.2' fill='none' stroke='%233156d9' stroke-width='2'/%3E%3C/svg%3E");
  --ru-close-frame:#b9c8df;
  --ru-close-hover-frame:#2459D8;
  --ru-close-hover-fill:#f3f6ff;
  appearance:none!important;box-sizing:border-box!important;
  display:inline-grid!important;place-items:center!important;flex:0 0 44px!important;
  width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;
  max-width:44px!important;max-height:44px!important;
  padding:0!important;border:1px solid var(--ru-close-frame)!important;border-radius:0!important;
  background-color:transparent!important;background-image:var(--ru-close-image)!important;
  background-position:center!important;background-size:26px 26px!important;background-repeat:no-repeat!important;
  box-shadow:none!important;outline:0!important;color:#172b4d!important;
  font-size:0!important;line-height:0!important;text-indent:0!important;
  cursor:pointer;opacity:1!important;transform:none!important;
  transition:background-color .18s ease,border-color .18s ease!important;
}
html:root body :is(.ru-info-modal__close,.admission-notice__close,#closePhoto,.ru-global-guide__close,.ru-inbox-close,.ru-services-close,.ru-close,.ru-platform-notice__close,.ru-intern-close,.ru-toolbox-close,.dept-detail-close,.ru-workflow-close,.ru-favorites-close,.ru-share-close)>:is(svg,img,span,i){display:none!important}
html:root body :is(.ru-info-modal__close,.admission-notice__close,#closePhoto,.ru-global-guide__close,.ru-inbox-close,.ru-services-close,.ru-close,.ru-platform-notice__close,.ru-intern-close,.ru-toolbox-close,.dept-detail-close,.ru-workflow-close,.ru-favorites-close,.ru-share-close)[hidden]{display:none!important}
html:root body :is(.ru-info-modal__close,.admission-notice__close,#closePhoto,.ru-global-guide__close,.ru-inbox-close,.ru-services-close,.ru-close,.ru-platform-notice__close,.ru-intern-close,.ru-toolbox-close,.dept-detail-close,.ru-workflow-close,.ru-favorites-close,.ru-share-close)::before,html:root body :is(.ru-info-modal__close,.admission-notice__close,#closePhoto,.ru-global-guide__close,.ru-inbox-close,.ru-services-close,.ru-close,.ru-platform-notice__close,.ru-intern-close,.ru-toolbox-close,.dept-detail-close,.ru-workflow-close,.ru-favorites-close,.ru-share-close)::after{content:none!important;display:none!important}
html:root body :is(.ru-info-modal__close,.admission-notice__close,#closePhoto,.ru-global-guide__close,.ru-inbox-close,.ru-services-close,.ru-close,.ru-platform-notice__close,.ru-intern-close,.ru-toolbox-close,.dept-detail-close,.ru-workflow-close,.ru-favorites-close,.ru-share-close):is(:hover,:focus-visible){
  border-color:var(--ru-close-hover-frame)!important;
  background-color:var(--ru-close-hover-fill)!important;
  background-image:var(--ru-close-hover-image)!important;
}
html:root[data-ru-theme="dark"] body :is(.ru-info-modal__close,.admission-notice__close,#closePhoto,.ru-global-guide__close,.ru-inbox-close,.ru-services-close,.ru-close,.ru-platform-notice__close,.ru-intern-close,.ru-toolbox-close,.dept-detail-close,.ru-workflow-close,.ru-favorites-close,.ru-share-close),html:root body #closePhoto{
  --ru-close-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3.8 3.8 22.2 22.2M22.2 3.8 3.8 22.2' fill='none' stroke='%23f3f6ff' stroke-width='2'/%3E%3C/svg%3E");
  --ru-close-hover-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26' viewBox='0 0 26 26'%3E%3Cpath d='M3.8 3.8 22.2 22.2M22.2 3.8 3.8 22.2' fill='none' stroke='%23ffffff' stroke-width='2'/%3E%3C/svg%3E");
  --ru-close-frame:#7e91b0;
  --ru-close-hover-frame:#d1dfff;
  --ru-close-hover-fill:#253956;
  color:#f3f6ff!important;
}
@media(prefers-reduced-motion:reduce){html:root body :is(.ru-info-modal__close,.admission-notice__close,#closePhoto,.ru-global-guide__close,.ru-inbox-close,.ru-services-close,.ru-close,.ru-platform-notice__close,.ru-intern-close,.ru-toolbox-close,.dept-detail-close,.ru-workflow-close,.ru-favorites-close,.ru-share-close){transition:none!important}}
