#funbar {
  position: relative;
  display: inline;
  float: right;
  width: 628px;
  height: 20px;
  margin: 0 0 15px 20px;
  padding: 6px 5px;
  border: 1px solid #d9d9d9;
  background: #fff;
}

#fun-category,
#fun-lock,
#fun-author,
#fun-search,
#fun-addpost {
  position: relative;
  display: inline;
  float: left;
  height: 20px;
}

#fun-category,
#fun-author {
  line-height: 20px;
  text-transform: capitalize;
}

#fun-category > div,
#fun-author > div {
  height: 20px;
  padding: 0 14px 0 6px;
  color: #666;
  font-weight: bold;
  user-select: none;
}

#fun-category > div,
#fun-category > ul > li,
#fun-author > div,
#fun-author > ul > li > span,
#fun-author > ul > li > i {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

#fun-category > div,
#fun-category > ul > li,
#fun-author > div,
#fun-author > ul > li {
  cursor: pointer;
}

#fun-category > div > i,
#fun-category > ul > li > i,
#fun-author > div > i {
  margin: 0 5px 0 0;
}

#fun-category > ul,
#fun-author > ul {
  position: relative;
  display: none;
  margin: 3px 0 0;
  border: 1px solid #d9d9d9;
  background: #fff;
  z-index: 2;
  user-select: none;
}

#fun-category.on > ul,
#fun-author.on > ul {
  display: block;
}

#fun-category > ul > li,
#fun-author > ul > li {
  border-bottom: 1px solid #efefef;
}

#fun-category > ul > li:last-child,
#fun-author > ul > li:last-child {
  border: 0 none;
}

#fun-category > ul > li.sel,
#fun-author > ul > li.sel {
  cursor: default;
}

#fun-category > ul > li.sel,
#fun-category > ul > li:hover,
#fun-author > ul > li.sel,
#fun-author > ul > li:hover {
  background: #f5f5f5;
}

#fun-category {
  width: 124px;
  background: url(../img/publish.select.svg) 112px 8px no-repeat;
}

#fun-category > div {
  width: 104px;
}

#fun-category > ul {
  width: 108px;
}

#fun-category > ul > li {
  width: 98px;
  height: 20px;
  padding: 6px 5px;
}

#fun-category > div > span,
#fun-category > ul > li > span,
#fun-author > ul > li > span > i {
  display: none;
}

#fun-category > ul > li.sel > span,
#fun-category > ul > li:hover > span {
  display: inline;
  float: right;
  height: 14px;
  margin: 3px 0;
  color: #ccc;
  line-height: 14px;
  font-family: 'petala_proitalic',arial;
}

#fun-author {
  width: 93px;
  background: url(../img/publish.select.svg) 81px 8px no-repeat;
}

#fun-author > div {
  width: 73px;
}

#fun-author > ul {
  width: 77px;
}

#fun-author > ul > li {
  position: relative;
  width: 67px;
  height: 56px;
  padding: 8px 5px;
}

#fun-author > ul > li > img {
  display: block;
  width: 30px;
  height: 30px;
  margin: 0 auto;
  border-radius: 50%;
}

#fun-author > ul > li > span {
  display: block;
  height: 18px;
  margin: 8px auto 0;
  border-radius: 3px;
  line-height: 18px;
  text-align: center;
}

#fun-author > ul > li > i {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translate(-50%);
  display: none;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(0,0,0,.45);
  border-radius: 50%;
  color: #666;
  font: normal 14px/30px 'petala_proitalic',arial;
  text-align: center;
  background: rgba(245,245,245,.95);
}

#fun-author > ul > li:hover > i,
#fun-author > ul > li.sel > i {
  display: block;
}

#fun-lock {
  width: 20px;
  margin: 0 5px;
  border-radius: 3px;
  background: #f5f5f5 url(../img/publish.lock.svg) 50% 50% no-repeat;
  cursor: pointer;
}

#fun-lock.un {
  background-image: url(../img/publish.unlock.svg);
}

#fun-search {
  margin: 0 0 0 10px;
  padding: 0 2px;
  border-radius: 3px;
  background: #f5f5f5;
}

#fun-search.on {
  margin-top: -3px;
  padding: 2px 1px 7px;
  border: 1px solid #d9d9d9;
  border-bottom: 0 none;
  border-radius: 0;
}

#fun-search.ce,
#fun-search.ce > #tags-box,
#fun-search.ce > #search-box {
  width: 290px;
}

#fun-search.nce,
#fun-search.nce > #tags-box,
#fun-search.nce > #search-box {
  width: 367px;
}

#tags-more {
  display: inline;
  float: left;
  width: 20px;
  height: 20px;
  background: url(../img/ico.show.svg) 5px 5px no-repeat;
  cursor: pointer;
}

#tags-more.off {
  background: url(../img/ico.hide.svg) 5px 5px no-repeat;
}

#tags {
  display: inline;
  float: left;
  height: 16px;
  padding: 2px 0;
  line-height: 16px;
  text-transform: lowercase;
  overflow: hidden;
}

#fun-search.ce > #tags {
  width: 150px;
}

#fun-search.nce > #tags {
  width: 200px;
}

#tags > span {
  display: inline;
  float: left;
  height: 16px;
  margin: 0 5px 5px 0;
  padding: 0 3px;
  color: #c0c0c0;
  text-transform: lowercase;
  cursor: pointer;
}

#search {
  display: inline;
  float: right;
  height: 18px;
  margin: 0 0 0 10px;
  padding: 1px 0;
  user-select: none;
}

#fun-search.ce > #search {
  width: 110px;
}

#fun-search.nce > #search {
  width: 137px;
}

#search > input {
  height: 18px;
  border: 0 none;
  outline: none;
  box-sizing: content-box;
}

#search-key {
  display: inline;
  float: left;
  line-height: 18px;
  text-align: right;
  background: none;
}

#fun-search.ce > #search > #search-key {
  width: 80px;
}

#fun-search.nce > #search > #search-key {
  width: 110px;
}

#search-submit {
  display: inline;
  float: right;
  width: 20px;
  color: transparent;
  font-size: 0;
  text-indent: -10em;
  background: url(../img/ico.search.svg) 50% 50% no-repeat;
  overflow: hidden;
  cursor: pointer;
}

#tags-box,
#search-box {
  position: relative;
  display: none;
  margin: 0 0 0 -2px;
  padding: 0 1px;
  border: 1px solid #d9d9d9;
  border-top: 0 none;
  background: #f5f5f5;
  z-index: 2;
}

#fun-search.ton > #tags-box,
#fun-search:not(.ton) > #search-box {
  margin-top: 27px;
}

#fun-search.son > #tags-box {
  border-bottom: 0 none;
}

#fun-search.ton > #tags-box,
#fun-search.son > #search-box {
  display: block;
}

#tags-box > nav {
  margin: 0 6px 0;
  padding: 0 0 4px;
  background: #f5f5f5;
  overflow: hidden;
}

#tags-box > nav > span {
  display: inline;
  float: left;
  height: 20px;
  margin: 0 7px 5px 0;
  padding: 0 3px;
  border-radius: 3px;
  color: #b0b0b0;
  line-height: 20px;
  text-transform: lowercase;
  background: #fff;
  cursor: pointer;
}

#search-box > header {
  height: 30px;
  margin: 0 6px;
  padding: 5px 5px 0;
  background: #fff;
  overflow: hidden;
}

#search-box > header > span {
  display: inline;
  float: left;
  height: 25px;
  margin: 0 0 4px 0;
  padding: 0 40px 0 0;
  border-bottom: 1px solid #e5e5e5;
}

#search-box > header > span > q {
  display: inline;
  float: left;
  font-size: 14px;
  line-height: 25px;
  text-transform: uppercase;
}

#search-box > header > span > q::before,
#search-box > header > span > q::after {
  color: #aaa;
}

#search-box > header > span > q::before {
  margin: 0 2px 0 0;
  content: open-quote;
}

#search-box > header > span > q::after {
  margin: 0 0 0 2px;
  content: close-quote;
}

#search-box > header > span > span.total {
  display: inline;
  float: left;
  margin: 0 0 0 4px;
  color: #ccc;
  line-height: 25px;
  overflow: hidden;
  user-select: none;
}

#search-box > header > span > span.total > small.size11 {
  transform-origin: 0 100%;
}

#search-box > header > span > span.total > small.size11 > span.num::after {
  margin: 0 0 0 2px;
  content: attr(data-fix);
}

#search-box.s > header > span > span.total > small.size11 > span.num,
#search-box:not(.s) > header > span > span.total > small.size11 > span.ing {
  display: none;
}

#search-box:not(.s) > header > span > span.total > small.size11 > span.num,
#search-box.s > header > span > span.total > small.size11 > span.ing {
  display: block;
}

#search-box > header > i.off {
  display: inline;
  float: right;
  width: 20px;
  height: 20px;
  background: url(../img/ico.close.search.svg) 50% 50% no-repeat;
  cursor: pointer;
}

#search-box > section {
  margin: 0 6px 7px;
  padding: 3px 5px 5px;
  background: #fff;
}

#search-box.wait > section {
  position: relative;
  min-height: 20px;
  padding: 10px 5px 14px;
}

#search-box.wait > section::before {
  position: absolute;
  display: block;
  width: 12px;
  height: 12px;
  left: 0;
  right: 0;
  margin: 2px auto;
  border: 2px solid rgba(0,0,0,.15);
  border-left: 2px solid rgba(0,0,0,.35);
  border-radius: 50%;
  animation: waiting 1s linear infinite;
  content: '';
}

#search-box.wait > section > #search-frame {
  display: none;
}

#search-frame {
  max-height: 282px;
  padding: 0 20px 0 0;
  overflow-x: hidden;
  overflow-y: auto;
}

#search-frame > ul.uwl {
  width: 325px;
}

#search-frame > ul.uws {
  width: 248px;
}

#search-frame > ul > li {
  height: 34px;
  padding: 0 0 7px;
}

#search-frame > ul > li.last {
  height: 26px;
  padding: 0 0 2px;
  color: #999;
  line-height: 26px;
  text-align: center;
  text-transform: lowercase;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

#search-frame > ul > li > span {
  display: block;
  width: 100%;
  height: 26px;
  line-height: 26px;
  text-transform: capitalize;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  user-select: none;
}

#search-frame > ul > li > span > span.ava {
  display: inline;
  float: left;
  width: 20px;
  height: 20px;
  margin: 3px 0 3px 5px;
}

#search-frame > ul > li > span > span.ava > img {
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 3px;
}

#search-frame > ul > li > span > span.user,
#search-frame > ul > li > span > a {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

#search-frame > ul > li > span > span.user {
  display: inline;
  float: left;
  max-width: 72px;
  margin: 0 0 0 5px;
  color: #999;
}

#search-frame > ul > li > span > a {
  display: inline;
  float: left;
  margin: 0 0 0 10px;
  color: #404040;
  text-decoration: none;
}

#search-frame > ul.uwl > li.lws > span > a {
  max-width: 210px;
}

#search-frame > ul.uwl > li.lwl > span > a {
  max-width: 235px;
}

#search-frame > ul.uws > li.lws > span > a {
  max-width: 135px;
}

#search-frame > ul.uws > li.lwl > span > a {
  max-width: 160px;
}

#search-frame > ul > li > span > time {
  display: inline;
  float: right;
  height: 26px;
  margin: 0 5px 0 0;
  color: #aaa;
}

#search-frame > ul > li > span > time > small.size11 {
  transform-origin: 100% 50%;
}

#search-frame > ul > li > progress {
  display: block;
  width: 100%;
  height: 1px;
  margin: 7px 0 0;
  border: 0 none;
  color: #cacaca;
  background: #eaeaea;
}

#search-frame > ul > li > progress::-moz-progress-bar {
  background: #cacaca;
}

#search-frame > ul > li > progress::-webkit-progress-value {
  background: #cacaca;
}

#search-frame > ul > li > progress::-webkit-progress-bar {
  background: #eaeaea;
}

#fun-addpost {
  width: 42px;
  border-radius: 3px;
  margin: 0 0 0 15px;
  padding: 0 0 0 20px;
  line-height: 20px;
  text-transform: capitalize;
  background: #f5f5f5 url(../img/info.show.svg) 5px 5px no-repeat;
  cursor: pointer;
  user-select: none;
}

#fun-addpost::before {
  content: attr(data-off);
}

#fun-addpost.on {
  background: #f5f5f5 url(../img/info.hide.svg) 5px 5px no-repeat;
}

#fun-addpost.on::before {
  content: attr(data-on);
}

#fun-addpost > i.t {
  display: none;
}

#fun-addpost.on > i.t {
  position: absolute;
  display: block;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  background: url(../img/info.current.svg) no-repeat;
}