/* v12.10.149 - consistent desktop popup behavior/close styling for Search, Cuprins, Favorite */
#ncDesktopSearch.nc-search-panel,
#opTocPanel.nc-toc-panel{
  position:fixed!important;
  right:18px!important;
  top:78px!important;
  width:min(390px,calc(100vw - 28px))!important;
  max-height:calc(100vh - 104px)!important;
  z-index:99990!important;
  border-radius:22px!important;
  border:1px solid rgba(219,174,55,.52)!important;
  background:radial-gradient(circle at 16% 0%, rgba(219,174,55,.16), transparent 34%), linear-gradient(145deg, rgba(14,13,10,.98), rgba(4,4,4,.98) 62%, rgba(28,18,5,.98))!important;
  color:#f8f0d8!important;
  box-shadow:0 26px 90px rgba(0,0,0,.62), inset 0 1px 0 rgba(255,255,255,.08)!important;
  overflow:hidden!important;
  backdrop-filter:blur(18px) saturate(130%)!important;
  -webkit-backdrop-filter:blur(18px) saturate(130%)!important;
  display:block!important;
  opacity:0!important;
  visibility:hidden!important;
  pointer-events:none!important;
  transform:translateX(calc(100% + 30px)) scale(.985)!important;
  transition:opacity .22s ease, visibility .22s ease, transform .22s ease!important;
}
#ncDesktopSearch.nc-search-panel.is-open,
#opTocPanel.nc-toc-panel.is-open{
  opacity:1!important;
  visibility:visible!important;
  pointer-events:auto!important;
  transform:translateX(0) scale(1)!important;
}
#ncDesktopSearch .nc-search-head,
#opTocPanel .nc-toc-head{
  min-height:52px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  padding:14px 16px!important;
  border-bottom:1px solid rgba(219,174,55,.24)!important;
  background:linear-gradient(90deg, rgba(0,0,0,.92), rgba(38,27,9,.86))!important;
  cursor:default!important;
}
#ncDesktopSearch .nc-search-head strong,
#opTocPanel .nc-toc-head strong{
  color:#dbae37!important;
  font-size:15px!important;
  letter-spacing:.12em!important;
  line-height:1!important;
  text-transform:uppercase!important;
}
#ncDesktopSearch .nc-search-head strong:before{content:'⌕';margin-right:8px;color:#dbae37;font-size:17px;}
#opTocPanel .nc-toc-head strong:before{content:'☷';margin-right:8px;color:#dbae37;font-size:17px;}
#ncDesktopSearch .op-popup-close,
#opTocPanel .op-popup-close,
#ncDesktopSearch .nc-search-close,
#opTocPanel .nc-toc-close{
  width:30px!important;
  height:30px!important;
  min-width:30px!important;
  border-radius:999px!important;
  border:1px solid rgba(219,174,55,.32)!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff2c2!important;
  box-shadow:none!important;
  display:grid!important;
  place-items:center!important;
  padding:0!important;
  line-height:1!important;
  font-size:20px!important;
  font-weight:700!important;
  cursor:pointer!important;
  transition:background .18s ease, color .18s ease, transform .18s ease!important;
}
#ncDesktopSearch .op-popup-close:hover,
#opTocPanel .op-popup-close:hover,
#ncDesktopSearch .nc-search-close:hover,
#opTocPanel .nc-toc-close:hover{
  background:#dbae37!important;
  color:#050505!important;
  transform:rotate(90deg)!important;
}
#ncDesktopSearch .nc-search-body,
#opTocPanel .nc-toc-body{
  padding:12px!important;
  max-height:calc(100vh - 166px)!important;
  overflow:auto!important;
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(0,0,0,.08))!important;
}
#ncDesktopSearch .nc-search-input{
  width:100%!important;
  min-height:42px!important;
  border-radius:14px!important;
  border:1px solid rgba(219,174,55,.28)!important;
  background:rgba(255,255,255,.08)!important;
  color:#fff!important;
  outline:none!important;
  padding:0 13px!important;
}
#ncDesktopSearch .nc-search-input:focus{border-color:rgba(219,174,55,.68)!important;box-shadow:0 0 0 3px rgba(219,174,55,.12)!important;}
#ncDesktopSearch .nc-search-meta{color:#d8ceb7!important;font-size:12px!important;margin:10px 2px!important;}
#ncDesktopSearch .nc-search-result,
#opTocPanel .nc-toc-item{
  position:relative!important;
  display:block!important;
  width:100%!important;
  margin:0 0 10px!important;
  padding:11px 12px!important;
  border:1px solid rgba(219,174,55,.22)!important;
  border-left:3px solid #dbae37!important;
  border-radius:16px!important;
  background:linear-gradient(135deg, rgba(255,255,255,.075), rgba(219,174,55,.045) 48%, rgba(0,0,0,.22))!important;
  color:#fff!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.22)!important;
  cursor:pointer!important;
  text-align:left!important;
}
#ncDesktopSearch .nc-search-result:hover,
#opTocPanel .nc-toc-item:hover{
  border-color:rgba(219,174,55,.48)!important;
  background:linear-gradient(135deg, rgba(219,174,55,.14), rgba(255,255,255,.06) 58%, rgba(0,0,0,.18))!important;
}
#ncDesktopSearch .nc-search-result b,
#opTocPanel .nc-toc-item b{display:block!important;color:#fff!important;font-size:13px!important;line-height:1.25!important;}
#ncDesktopSearch .nc-search-result span,
#opTocPanel .nc-toc-item span{display:block!important;color:#cfc3a7!important;font-size:11px!important;margin-top:4px!important;}
