/* extracted from id="jmi_code_527944"; compatibility marker: jmi_code_527944 */
/* 5.27.944: вернуть переключатель темы в шапку рядом с погодой — компактная анимированная иконка. */
@media(min-width:901px){
  #CssMenu1>li.nav-theme{position:relative!important;width:40px!important;min-width:40px!important;max-width:40px!important;margin:0 0 0 7px!important;padding:0!important;overflow:visible!important}
  #CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme{
    position:relative!important;inset:auto!important;width:40px!important;height:40px!important;padding:0!important;margin:0!important;
    display:inline-grid!important;place-items:center!important;overflow:hidden!important;border-radius:11px!important;
    border:1px solid rgba(0,234,255,.34)!important;background:linear-gradient(180deg,#111a25,#0c131d)!important;
    box-shadow:0 7px 18px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05)!important;
    transition:border-color .22s ease,box-shadow .22s ease,transform .18s ease,background .22s ease!important;z-index:auto!important
  }
  html.theme-light #CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme{
    border-color:#d7c6a7!important;background:linear-gradient(180deg,#fffdf8,#f1eadf)!important;
    box-shadow:0 6px 16px rgba(62,46,20,.12),inset 0 1px 0 rgba(255,255,255,.9)!important
  }
  #CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme:hover{transform:translateY(-1px)!important;border-color:#00dff1!important;box-shadow:0 8px 20px rgba(0,223,241,.17)!important}
  html.theme-light #CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme:hover{border-color:#c48a14!important;box-shadow:0 8px 20px rgba(183,121,0,.18)!important}
  #CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme:before,#CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme:after{display:none!important;content:none!important}
  .jmi-theme-mobile{display:none!important}
  .jmi-sky-stage{display:block!important;position:relative!important;inset:auto!important;width:30px!important;height:30px!important;overflow:hidden!important;pointer-events:none!important;background:transparent!important;border:0!important;box-shadow:none!important}
  .jmi-horizon{display:none!important}
  .jmi-sun,.jmi-moon{position:absolute!important;left:3px!important;top:3px!important;width:24px!important;height:24px!important;background:none!important;border:0!important;box-shadow:none!important;transition:transform .62s cubic-bezier(.2,.78,.18,1),opacity .38s ease!important;will-change:transform,opacity}
  .jmi-sun b{position:absolute!important;inset:4px!important;border-radius:50%!important;background:radial-gradient(circle at 34% 28%,#fffdf0 0 10%,#ffe27a 26%,#ffb51f 61%,#e97708 100%)!important;box-shadow:0 0 5px 2px rgba(255,209,72,.7),0 0 10px 4px rgba(255,153,13,.24)!important}
  .jmi-sun i{position:absolute!important;left:11px!important;top:0!important;width:2px!important;height:24px!important;border-radius:3px!important;transform-origin:1px 12px!important;background:linear-gradient(transparent,rgba(255,183,26,.9) 12%,transparent 29%,transparent 71%,rgba(255,183,26,.9) 88%,transparent)!important;opacity:.88!important}
  .jmi-sun i:nth-child(2){transform:rotate(45deg)!important}.jmi-sun i:nth-child(3){transform:rotate(90deg)!important}.jmi-sun i:nth-child(4){transform:rotate(135deg)!important}
  .jmi-moon b{position:absolute!important;inset:3px!important;border-radius:50%!important;background:radial-gradient(circle at 32% 28%,#fffdf4 0 8%,#dfe7ed 42%,#8c9aa5 78%,#59636c 100%)!important;box-shadow:inset -4px -3px 5px rgba(20,27,34,.38),0 0 7px 2px rgba(205,230,246,.28)!important}
  .jmi-moon:after{content:""!important;position:absolute!important;width:16px!important;height:16px!important;left:10px!important;top:1px!important;border-radius:50%!important;background:#0d1620!important}
  html.theme-light .jmi-moon:after{background:#f7f1e8!important}
  .jmi-moon i{z-index:2!important;background:#87949e!important;opacity:.42!important}.jmi-moon i:first-of-type{width:3px!important;height:3px!important;left:7px!important;top:8px!important}.jmi-moon i:last-of-type{width:2px!important;height:2px!important;left:10px!important;top:15px!important}
  html.theme-light .jmi-sun{transform:translateY(0) rotate(0deg)!important;opacity:1!important}
  html.theme-light .jmi-moon{transform:translateY(34px) rotate(-25deg)!important;opacity:0!important}
  html:not(.theme-light) .jmi-sun{transform:translateY(34px) rotate(28deg)!important;opacity:0!important}
  html:not(.theme-light) .jmi-moon{transform:translateY(0) rotate(0deg)!important;opacity:1!important}
  .theme-btn.theme-flip .jmi-sun,.theme-btn.theme-flip .jmi-moon{animation:jmi-sky-pop944 .62s ease!important}
  @keyframes jmi-sky-pop944{0%{filter:brightness(.86);scale:.88}52%{filter:brightness(1.22);scale:1.08}100%{filter:brightness(1);scale:1}}
}
@media(max-width:900px){
  /* 5.28.130 — на телефоне переключатель темы снова обычная ровная кнопка
     в той же сетке, что колокольчик и профиль. Декоративный desktop-stage
     здесь отключён, чтобы солнце/луна не вылезали из рамки. */
  #CssMenu1>li.nav-theme{position:relative!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;margin:0 0 0 3px!important;padding:0!important;overflow:hidden!important}
  #CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme{position:static!important;inset:auto!important;width:44px!important;height:44px!important;margin:0!important;padding:0!important;display:grid!important;place-items:center!important;border-radius:13px!important;overflow:hidden!important;border:1px solid rgba(116,221,231,.34)!important;background:linear-gradient(180deg,#141b25,#0e151f)!important;color:#dfeef2!important;box-shadow:0 5px 15px rgba(0,0,0,.20),inset 0 1px 0 rgba(255,255,255,.045)!important;transform:none!important}
  #CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme:hover,#CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme:active{transform:none!important;border-color:rgba(0,234,255,.66)!important;box-shadow:0 0 0 2px rgba(0,234,255,.09),0 6px 16px rgba(0,0,0,.22)!important}
  #CssMenu1>li.nav-theme .jmi-sky-stage{display:none!important}
  #CssMenu1>li.nav-theme .jmi-theme-mobile{display:grid!important;place-items:center!important;width:100%!important;height:100%!important;line-height:1!important;pointer-events:none!important}
  #CssMenu1>li.nav-theme .jmi-theme-mobile>i{grid-area:1/1!important;margin:0!important;font-size:20px!important;line-height:1!important;position:static!important;transform:none!important}
  #CssMenu1>li.nav-theme .jmi-theme-mobile .fa-sun-o{display:none!important;color:#f0b92e!important}
  #CssMenu1>li.nav-theme .jmi-theme-mobile .fa-moon-o{display:block!important;color:#c5d2dc!important}
  html.theme-light #CssMenu1>li.nav-theme>button.theme-btn.jmi-sky-theme{border-color:#cdbd9f!important;background:linear-gradient(180deg,#fffdf8,#efe8dc)!important;color:#8a630b!important;box-shadow:0 5px 14px rgba(72,55,26,.12),inset 0 1px 0 rgba(255,255,255,.9)!important}
  html.theme-light #CssMenu1>li.nav-theme .jmi-theme-mobile .fa-moon-o{display:none!important}
  html.theme-light #CssMenu1>li.nav-theme .jmi-theme-mobile .fa-sun-o{display:block!important;color:#a66e00!important}
}
