.form_error {
  display: none;
  margin: 15px 0px;
  padding: 10px;
  border: 1px solid #e89b88;
  background: #ffefe8;
  color: #000000;
  margin-bottom: 10px;
}
.form_error.visible {
  display: block;
}

.form_ok {
  display: none;
  margin: 0 20px 15px;
  padding: 7px 10px;
  line-height: 160%;
  background-color: #f9f6e7;
  border: 1px solid #d4bc4c;
}

.form_ok.visible {
  display: block;
  animation: form_ok_fade 3s ease-out forwards;
}

@keyframes form_ok_fade {
  from {
    background-color: #f5eaba;
  }
  to {
    background-color: #f9f6e7;
  }
}

.form_ok b {
  display: block;
  font-weight: bold;
}

.form_ok h1 {
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  font-size: 11px;
  font-weight: normal;
  line-height: 160%;
}

#header_wrap2 {
  display: none;
}

#header_wrap2.page_header {
  display: block;
}

#wrapHI {
  border: solid #F3F3F3;
  border-width: 0px 1px;
}

#profile_full_info[hidden] {
  display: none !important;
}

#current_info[data-status-open] {
  cursor: pointer;
}

#currinfo_form {
  margin: 0;
}

#currinfo_editor [data-status-error] {
  float: none;
  clear: both;
  margin: 8px 0 0;
}

#owner_photo_form {
  margin: 0;
  display: none;
}

#owner_photo_wrap #page_avatar img {
  display: block;
  width: 200px;
  height: auto;
}


#owner_photo_wrap [data-avatar-error] {
  margin: 6px 0;
}

#owner_photo_wrap .owner_photo_bubble_action {
  text-decoration: none;
  cursor: pointer;
}

#owner_photo_wrap .profile_no_ava {
  cursor: pointer;
}

[data-owner-photo-box] {
  position: relative;
}

[data-owner-photo-box] #owner_photo_upload,
[data-owner-photo-box] #owner_photo_edit,
[data-owner-photo-box] #owner_photo_crop,
[data-owner-photo-box] #owner_photo_camera {
  padding: 22px 25px 25px;
}

[data-owner-photo-box] .owner_photo_close {
  color: #2B587A;
  cursor: pointer;
  margin: 3px -2px 0 0;
  text-decoration: none;
}

[data-owner-photo-box] .owner_photo_close:hover {
  text-decoration: underline;
}

[data-owner-photo-box] .owner_photo_title {
  color: #45688E;
  font-size: 1.09em;
  font-weight: bold;
  padding-bottom: 10px;
  border-bottom: 1px solid #DAE1E8;
  margin-bottom: 15px;
}

[data-owner-photo-box] .owner_photo_desc {
  line-height: 160%;
  margin-bottom: 20px;
}

[data-owner-photo-box] .owner_photo_additional {
  margin-top: 15px;
  color: #777;
  line-height: 160%;
}

[data-owner-photo-box] #owner_photo_input {
  margin: 20px 0 10px;
  text-align: center;
}

[data-owner-photo-box] #owner_photo_error {
  display: none;
  margin: 12px 0 0;
  padding: 8px 10px;
  background: #FFEFE8;
  border: 1px solid #E8B9A4;
  color: #800;
}

[data-owner-photo-box] .owner_photo_controls {
  margin-top: 18px !important;
  margin: 0 auto;
}

[data-owner-photo-box] .owner_photo_controls .button_blue,
[data-owner-photo-box] .owner_photo_controls .button_cancel {
  display: inline-block;
  vertical-align: top;
  margin-right: 10px;
}

[data-owner-photo-box] .owner_photo_controls .button_cancel .button {
  cursor: pointer;
  color: #2B587A;
  padding: 7px 10px 8px;
}

[data-owner-photo-box] .owner_photo_edit_layout {
  display: flex;
  gap: 24px;
  margin: 15px 0;
  align-items: flex-start;
}

[data-owner-photo-box] #owner_photo_thumb,
[data-owner-photo-box] #owner_photo_crop_thumb {
  max-width: max-content;
  margin: 0 auto;
}

[data-owner-photo-box] .owner_photo_stage {
  position: relative;
  width: 500px;
  height: auto;
  max-width: 100%;
  overflow: hidden;
  background: #000;
  user-select: none;
}

[data-owner-photo-box] .owner_photo_stage_page {
  width: 500px;
  height: auto;
  min-height: 120px;
}

[data-owner-photo-box] .owner_photo_stage_crop {
  width: auto;
  height: auto;
  max-width: 400px;
  min-height: 80px;
  margin: 0;
}

[data-owner-photo-box] .owner_photo_stage img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: fill;
  transform: none;
  pointer-events: none;
}

[data-owner-photo-box] .owner_photo_frame {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.9);
  pointer-events: auto;
  cursor: move;
  box-sizing: border-box;
}

[data-owner-photo-box] .owner_photo_frame_page {
  width: 250px;
  height: 250px;
}

[data-owner-photo-box] .owner_photo_frame_square {
  width: 200px;
  height: 200px;
}

[data-owner-photo-box] .owner_photo_frame .h {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 1px solid #3d3d3d;
  box-sizing: border-box;
  pointer-events: auto;
  z-index: 3;
  opacity: 0.65;
}

[data-owner-photo-box] .owner_photo_frame .h.nw { top: -10px; left: -10px; cursor: nwse-resize; }
[data-owner-photo-box] .owner_photo_frame .h.n { top: -10px; left: 50%; margin-left: -4px; cursor: ns-resize; }
[data-owner-photo-box] .owner_photo_frame .h.ne { top: -10px; right: -10px; cursor: nesw-resize; }
[data-owner-photo-box] .owner_photo_frame .h.w { top: 50%; left: -10px; margin-top: -4px; cursor: ew-resize; }
[data-owner-photo-box] .owner_photo_frame .h.e { top: 50%; right: -10px; margin-top: -4px; cursor: ew-resize; }
[data-owner-photo-box] .owner_photo_frame .h.sw { bottom: -10px; left: -10px; cursor: nesw-resize; }
[data-owner-photo-box] .owner_photo_frame .h.s { bottom: -10px; left: 50%; margin-left: -4px; cursor: ns-resize; }
[data-owner-photo-box] .owner_photo_frame .h.se { bottom: -10px; right: -4px; cursor: nwse-resize; }

[data-owner-photo-box] .owner_photo_rotate_btns {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 4;
  pointer-events: auto;
}

[data-owner-photo-box] .owner_photo_rot_ccw,
[data-owner-photo-box] .owner_photo_rot_cw {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  text-align: center;
  line-height: 22px;
  font-size: 14px;
  text-decoration: none;
}

[data-owner-photo-box] .owner_photo_rot_ccw:before { content: "↺"; }
[data-owner-photo-box] .owner_photo_rot_cw:before { content: "↻"; }
[data-owner-photo-box] .owner_photo_rot_ccw:hover,
[data-owner-photo-box] .owner_photo_rot_cw:hover {
  background: rgba(0, 0, 0, 0.7);
}

[data-owner-photo-box] .owner_photo_previews {
  width: 110px;
}

[data-owner-photo-box] .crop-preview-100,
[data-owner-photo-box] .crop-preview-50 {
  overflow: hidden;
  border: 1px solid #ccc;
  background: #f1f1f1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  box-sizing: border-box;
}

[data-owner-photo-box] .crop-preview-100 {
  width: 100px;
  height: 100px;
  margin-bottom: 10px;
}

[data-owner-photo-box] .crop-preview-50 {
  width: 50px;
  height: 50px;
  margin-bottom: 12px;
}

[data-owner-photo-box] .owner_photo_rotate {
  display: inline-block;
  margin-top: 4px;
}

[data-owner-photo-box] #owner_photo_webcam_wrap {
  margin: 15px 0;
  text-align: center;
}

[data-owner-photo-box] #owner_photo_webcam {
  display: inline-block;
  background: #000;
  line-height: 0;
}

[data-owner-photo-box] #owner_photo_video {
  width: 400px;
  max-width: 100%;
  height: auto;
  display: block;
}

[data-owner-photo-box] #owner_dropbox {
  display: none;
}

[data-owner-photo-box].owner_photo_drag #owner_dropbox {
  display: block;
}

[data-owner-photo-box] #owner_dropbox .dropbox_wrap {
  min-height: 280px;
}

#index .ij_form input.big_text,
#index .ij_form select.big_text {
  box-sizing: border-box;
  width: 100%;
}

#index .ij_reg_row .input_back_wrap {
  display: none;
}

#page_avatar .profile_avatar_placeholder {
  display: flex;
  width: 200px;
  height: 250px;
  align-items: center;
  justify-content: center;
  background: #5b7fa3;
  color: #fff;
  font-size: 58px;
}

.post_avatar {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  background: #6688a8;
  color: #fff;
  font-size: 16px;
}

.wall_module .wall_post_text {
  padding-top: 4px;
  padding-bottom: 4px;
  line-height: 140%;
  overflow-wrap: anywhere;
  width: auto;
  max-width: 390px;
}

.wall_module .wall_post_date,
.wall_module .reply_link_wrap .rel_date {
  color: #999;
}

.wall_module .post_info {
  position: relative;
  box-sizing: content-box;
}

.wall_module .post_actions_wrap {
  position: absolute;
  top: 2px;
  right: 0;
  z-index: 20;
  float: none;
  margin: 0;
  width: 70px;
  height: 17px;
}

.wall_module .post_actions {
  position: absolute;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-start;
  top: 0;
  right: 0;
  width: 70px;
  height: 17px;
  padding: 0;
}

.wall_module .post_image img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  display: block;
  background: #eef2f6;
}

.wall_module .post_image .online {
  display: block;
  color: #aaa;
  font-size: 0.9em;
  padding-top: 3px;
}

.wall_module .page_post_queue_narrow,
.wall_module .page_post_queue_wide {
  display: block;
}

.wall_module .page_post_sized_thumbs {
  margin-top: 8px;
  direction: ltr;
}

.wall_module .page_post_thumb_wrap {
  display: block;
  float: left;
  overflow: hidden;
  margin: 0 3px 3px 0;
  vertical-align: top;
}

.wall_module .page_post_thumb_sized_photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.wall_module .page_post_video_wrap {
  margin-top: 8px;
  max-width: 320px;
}

.wall_module .page_post_thumb_video {
  position: relative;
  display: block;
  width: 320px;
  height: 180px;
  background: #000;
}

.wall_module .page_post_thumb_video video,
.wall_module .page_post_thumb_video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wall_module .page_post_video_title {
  padding-top: 4px;
  color: #2b587a;
}

#page_avatar .profile_no_ava,
#page_avatar .profile_no_ava img {
  cursor: default;
  pointer-events: none;
}

.wall_module .post_media.post_audio {
  margin-top: 6px;
  max-width: 390px;
  cursor: pointer;
}

.wall_module .post_media.post_audio .area {
  margin-bottom: 4px;
}

.wall_module .post_media.post_audio .title_wrap {
  width: auto;
  max-width: 280px;
}

.wall_module .post_media.post_audio.current .player {
  display: block;
}

.wall_module .post_media.post_audio .play_new.playing,
.wall_module .post_media.post_audio.current .play_new.playing {
  background-position: 0px -16px;
}

.wall_module .post_delete_button {
  width: 17px;
  height: 17px;
  cursor: pointer;
  opacity: 0;
  margin-left: 4px;
  background: url(/images/pics/statusx_op.gif) no-repeat 0 0;
}

.wall_module .post_edit_button {
  width: 17px;
  height: 17px;
  cursor: pointer;
  background-size: 16px !important;
  opacity: 0;
  margin-left: 4px;
  margin-right: 5px;
  background: url(/images/icons/im_actions_iconset2.png) no-repeat 0 -19px;
}

.wall_module .post_pin_button {
  width: 17px;
  height: 17px;
  cursor: pointer;
  background-size: 19px !important;
  opacity: 0;
  margin-left: 4px;
  margin-right: 5px;
  background: url(/images/icons/im_actions_iconset2.png) no-repeat 0 -230px;
}

.wall_module .post:hover .post_delete_button,
.wall_module .post_delete_button:hover,
.wall_module .post:hover .post_edit_button,
.wall_module .post_edit_button:hover,
.wall_module .post:hover .post_pin_button,
.wall_module .post_pin_button:hover,
.wall_module .reply:hover .reply_delete_button,
.wall_module .reply:hover .reply_edit_button,
.wall_module .reply_delete_button:hover,
.wall_module .reply_edit_button:hover {
  opacity: 0.6;
}
.post_pin_button:hover, .post_delete_button:hover, .post_edit_button:hover,
.reply_delete_button:hover, .reply_edit_button:hover{
  opacity: 1 !important;
}


.wall_module .post.post_editing .post_edit_button,
.wall_module .post.post_editing .post_delete_button,
.wall_module .post.post_editing .post_pin_button {
  display: none;
}

.wall_module .post_fixed_label {
  color: #777;
  margin-left: 3px;
}



.wall_module .post_edit {
  margin: 4px 0 10px;
}

.wall_module .post_edit .author {
  display: block;
  margin-bottom: 6px;
}

.wall_module .post_edit_field {
  width: 100%;
  box-sizing: border-box;
  min-height: 64px;
  resize: vertical;
  padding: 6px 8px;
  border: 1px solid #c3cbd4;
  font-family: Tahoma, Verdana, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.wall_module .post_edit_controls {
  margin-top: 8px;
}

.wall_module .post_edit_error {
  margin: 6px 0;
}

.wall_module .post_edit_add_media {
  position: relative;
  margin-top: 6px;
}

#page_add_media {
  position: relative;
}

#page_add_media_menu {
  position: absolute;
  right: 0;
  top: 100%;
  bottom: auto;
  margin-top: -30px;
  margin-bottom: 0;
  width: 110px;
  margin-right: -13px;
  display: block;
  z-index: 1005;
  padding-top: 4px;
  padding-bottom: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
}

#page_add_media_menu.add_media_rev {
  top: auto;
  bottom: 100%;
  margin-top: 0;
  margin-bottom: -4px;
  padding-top: 0;
  padding-bottom: 4px;
  transform: translateY(6px);
}

#page_add_media:hover #page_add_media_menu,
#page_add_media_menu.add_media_menu_open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

#page_add_media_menu .add_media_item {
  cursor: pointer;
  background-repeat: no-repeat;
}

#page_add_media_menu .add_media_rows {
  margin: 0;
}

#page_add_media_menu .rows {
  display: flex;
  flex-direction: column;
}

#page_add_media_menu.add_media_rev .rows {
  flex-direction: column-reverse;
}

#page_add_media_menu .add_media_head {
  border-radius: 2px 2px 0 0;
}

#page_add_media_menu.add_media_rev .add_media_head {
  border-radius: 0 0 2px 2px;
}

#page_add_media_menu.add_media_rev a.add_media_item:last-of-type {
  border-radius: 2px 2px 0 0;
}

#page_add_media_menu.add_media_rev a.add_media_item:first-of-type {
  border-radius: 0;
}

.wall_module .post_edit_attach_menu {
  position: absolute;
  right: 0;
  top: 100%;
  bottom: auto;
  z-index: 50;
  width: 120px;
  background: #fff;
  border: 1px solid #96aabe;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.wall_module .post_edit_attach_menu.add_media_rev {
  top: auto;
  bottom: 100%;
}

.wall_module .post_edit_attach_menu .rows {
  display: flex;
  flex-direction: column;
}

.wall_module .post_edit_attach_menu.add_media_rev .rows {
  flex-direction: column-reverse;
}

.wall_module .post_edit_attach_menu .add_media_item {
  display: block;
  padding: 6px 10px;
  color: #2b587a;
  text-decoration: none;
}

.wall_module .post_edit_attach_menu .add_media_item:hover {
  background: #e1e7ed;
  text-decoration: none;
}

#media_preview {
  display: none;
}

#media_preview.media_preview_shown {
  display: block;
}

#media_preview .media_preview {
  display: none;
}

#media_preview .media_preview:not(.media_preview_empty) {
  display: block;
}

.wall_preview_photo {
  position: relative;
  width: 60px;
  height: 60px;
  margin: 0 6px 6px 0;
  overflow: hidden;
}

.wall_preview_photo img,
.wall_preview_video video {
  width: 60px;
  height: 60px;
  object-fit: cover;
  display: block;
}

.wall_preview_video {
  position: relative;
  width: 80px;
  height: 60px;
  margin: 0 6px 6px 0;
  overflow: hidden;
  background: #111;
}

.wall_preview_video video {
  width: 80px;
  height: 60px;
}

.wall_preview_audio {
  cursor: move;
}

.wall_preview_photo .x {
  position: absolute;
  right: 0px;
  top: 5px;
}

#page_audio_preview .x,
#page_video_preview .x {
  float: right;
  cursor: pointer;
}

#page_audio_preview .audio,
#page_video_preview .doc {
  position: relative;
  padding-right: 4px;
  text-align: left;
}

#page_audio_preview .media_audio_icon {
  margin: 2px 5px;
}

#page_video_preview .media_doc_icon {
  margin: 2px 5px;
}

.wall_audio_picker {
  display: none;
}

#choose_audio.audio_search #choose_audio_content {
  max-height: 420px;
  overflow-x: hidden;
  overflow-y: auto;
  height: auto;
}

#choose_audio .choose_audio_row {
  height: auto;
  min-height: 38px;
  overflow: visible;
  margin-bottom: 4px;
  display: flex;
}

#choose_audio .choose_audio_row .audio .area {
  margin-bottom: 0;
}

#choose_audio .choose_audio_row .audio.current .area {
  margin-bottom: 0;
}

#choose_audio .audio_choose_added {
  white-space: nowrap;
  display: block;
  text-align: center;
  height: 28px;
  line-height: 28px;
  padding: 0 6px;
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #777;
  float: right;
}

#choose_audio #choose_query_reset {
  width: 19px;
  height: 19px;
  margin-left: -24px;
  margin-top: 1px;
  cursor: pointer;
  background: transparent url(/images/icons/input_clear.gif) 6px 6px no-repeat;
  opacity: 0.6;
  position: relative;
  z-index: 100;
}

#choose_audio #choose_audio_progress {
  width: 32px;
  height: 23px;
  margin-left: -41px;
  margin-top: 1px;
  background: url(/images/upload.gif) no-repeat center center;
  position: relative;
  z-index: 95;
}

#choose_audio .input_back_wrap {
  position: absolute;
  pointer-events: none;
}

#choose_audio .search_bar {
  position: relative;
}

#choose_audio .search_bar .fl_l {
  position: relative;
}

.wall_audio_picker_head {
  color: #45688e;
  font-weight: bold;
  margin-bottom: 6px;
  cursor: default;
}

.wall_audio_picker_head [data-wall-audio-close] {
  font-weight: normal;
  cursor: pointer;
  color: #2b587a;
}

.wall_audio_pick_row {
  display: block;
  padding: 3px 0;
  cursor: pointer;
}

#page_post_progress.loading {
  width: 32px;
  height: 13px;
  margin: 8px 8px 0 0;
  background: url(/images/upload.gif) center no-repeat;
}


.wall_module #submit_post {
  display: none;
  text-align: right;
}

.wall_module #submit_post_box.submit_post_open #submit_post {
  display: block !important;
}

.wall_module #post_field {
  height: 17px;
  min-height: 17px;
  box-sizing: content-box;
}

.wall_module #submit_post_box.submit_post_open #post_field {
  height: 56px;
  min-height: 56px;
}

.settings_form {
  padding: 25px 30px;
}

.settings_form label {
  display: block;
  clear: both;
  min-height: 32px;
  margin-bottom: 10px;
}

.settings_form label > span {
  float: left;
  width: 130px;
  padding: 6px 12px 0 0;
  color: #555;
  text-align: right;
}

.settings_form input,
.settings_form select,
.settings_form textarea {
  width: 280px;
  padding: 5px;
  border: 1px solid #c0cad5;
}

#profile_counts a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings_form textarea {
  min-height: 80px;
  resize: vertical;
}

.settings_actions {
  margin-left: 140px;
}

#ajax_progress {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: #7da1c4;
  transition: width 180ms ease;
}

body.loading #ajax_progress {
  width: 70%;
}

#system_msg.top_result_baloon_wrap {
  display: none;
  position: fixed;
  left: 0;
  top: 50px;
  width: 100%;
  padding-top: 150px;
  z-index: 2000;
  text-align: center;
  pointer-events: none;
}

#system_msg .top_result_baloon {
  display: inline-block;
  text-align: left;
  pointer-events: auto;
  margin: 0 auto;
}

#toast {
  display: none !important;
}

.message_page {
  margin: 0 auto;
  padding: 40px 20px 50px;
  text-align: center;
}

.message_page .title {
  margin-bottom: 12px;
  color: #45688e;
  font-size: 14px;
  font-weight: bold;
}

.message_page .body {
  color: #000;
  font-size: 12px;
  line-height: 160%;
}

.message_page .button_blue {
  margin-top: 18px;
}

.message_page .button_blue a {
  text-decoration: none;
}

#msg_back_button {
  cursor: pointer;
}

/* Рабочая шапка на базе оригинальной разметки */
#page_header,
#page_header .content,
#top_nav {
  width: 791px;
  height: 40px;
}

#page_header {
  position: relative;
  overflow: visible;
}

#top_links {
  width: 791px;
  height: 40px;
  table-layout: auto;
}

#top_links td {
  height: 40px;
  padding: 0;
  vertical-align: top;
}

#top_links .top_home_link_td {
  width: 146px;
  min-width: 146px;
}

#top_links .top_side_bar_btn_td {
  display: none;
}

#top_links .top_back_link_td {
  width: 100%;
}

#top_links td:not(.top_home_link_td):not(.top_back_link_td) {
  width: 1%;
  white-space: nowrap;
}

#ts_wrap {
  z-index: 150;
}

#ts_wrap .input_back_wrap {
  display: block;
}

#ts_input {
  box-sizing: content-box;
  background-color: #fff;
}

#ts_cont_wrap {
  top: 40px;
  left: 139px;
  display: none;
  width: 248px;
  border: 1px solid #b9c7d3;
  border-top: 0;
  border-radius: 0 0 3px 3px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}

#ts_cont_wrap.shown {
  display: block;
}

.ts_contact_photo img {
  width: 40px;
  height: 40px;
  object-fit: cover;
}

.ts_searching,
.ts_empty {
  padding: 14px;
  color: #777;
  text-align: center;
}

.ts_result_header {
  padding: 6px 9px;
  border-bottom: 1px solid #d9e0e7;
  background: #f1f1f1;
  color: #45688e;
  font-weight: bold;
}

.ts_result_item {
  display: block;
  min-height: 42px;
  padding: 6px 8px;
  border-bottom: 1px solid #edf0f3;
}

.ts_result_item:hover {
  background: #e1e7ed;
  text-decoration: none;
}

.ts_result_avatar {
  display: inline-flex;
  float: left;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  margin-right: 9px;
  background: #6d8ead;
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
}

.ts_result_avatar.group {
  background: #7b8f68;
}

.ts_result_info {
  display: block;
  padding-top: 4px;
  overflow: hidden;
}

.ts_result_info b,
.ts_result_info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ts_result_info small {
  padding-top: 4px;
  color: #777;
}

.profile_module_empty {
  padding: 12px 6px;
  color: #777;
  text-align: center;
}

#profile_narrow .module {
  margin-top: 10px;
}

#profile_gifts .gift {
  display: inline-block;
  width: 58px;
  vertical-align: top;
}

#profile_gifts .gift_image {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

#profile_gifts .gifts_icon {
  color: #99adc2;
}

.profile_updates_link {
  position: relative;
  color: #99adc2;
  font-weight: bold;
}

.friend_no_avatar {
  display: flex;
  width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  background: #6688a8;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
}

.group_no_avatar {
  display: block;
  width: 50px;
  height: 50px;
  object-fit: cover;
}

#profile_groups .group {
  padding: 5px 0px;
}

#profile_groups .left_gr {
  float: left;
  width: 30px;
}

#profile_groups .right_gr {
  padding: 0px 0 0 38px;
}

#profile_groups .group_avatarka,
#profile_groups .group_no_avatar {
  width: 30px;
  height: 30px;
}



.video_row_profile,
.videos_page .video_row {
  width: 180px;
  margin-bottom: 10px;
}

.video_row_profile .video,
.videos_page .video_row .video {
  position: relative;
  display: block;
  float: none;
  width: 180px;
  height: 100px;
  overflow: hidden;
  background: #000 url(/images/video_preview.png) center/cover no-repeat;
}

.video_row_profile .video img,
.video_row_profile .video video,
.videos_page .video_row .video img,
.videos_page .video_row .video video,
.video_no_preview {
  display: block;
  width: 180px;
  height: 100px;
  object-fit: cover;
  border: 0;
  color: #fff;
  font-size: 30px;
}

.video_row_profile .video video,
.videos_page .video_row .video video {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}

.video_row_profile .video video.is_ready,
.videos_page .video_row .video video.is_ready {
  z-index: 2;
}

.video_row_profile .video img.video_thumb_ph.is_hidden,
.videos_page .video_row .video img.video_thumb_ph.is_hidden {
  display: none;
}

.video_duration_profile {
  position: absolute;
  z-index: 2;
  right: 4px;
  bottom: 4px;
  padding: 2px 4px;
  background: rgba(0, 0, 0, .65);
  color: #fff;
}

.profile_audio {
  padding: 5px 2px;
  border-bottom: 1px solid #edf0f3;
}

.profile_audio .area {
  display: flex;
  align-items: center;
}

.profile_audio .play_small {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border: 0;
  border-radius: 2px;
  background: #5f83a7;
  cursor: pointer;
}

.profile_audio .play_small::after {
  content: "▶";
  color: #fff;
  font-size: 10px;
}

.profile_audio.playing .play_small::after {
  content: "Ⅱ";
}

.profile_audio .audio_info {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
}


.edit_main .edit_block {
  display: flex;
  min-height: 31px;
  padding-bottom: 8px;
}

.edit_main .edit_block[hidden],
.edit_main .edit_relation_partner[hidden],
.edit_main [data-relation-partner-wrap][hidden],
.edit_main .edit_relation_partner_selected[hidden],
.edit_main .edit_relation_partner_pick[hidden],
.edit_main .edit_relation_partner_list[hidden],
.edit_main .edit_relation_partner_x[hidden],
.edit_main .edit_relation_partner_item[hidden],
.edit_main .edit_relation_partner_empty[hidden],
.edit_main .edit_multi[hidden],
.edit_main .edit_multi_add_row[hidden],
.edit_main .edit_multi_del[hidden],
.edit_main .edit_separator[hidden] {
  display: none !important;
}

.edit_main .edit_block > label {
  width: 195px;
  padding: 8px 10px 0 0;
  color: #555;
  text-align: right;
}

.edit_main .edit_block > div {
  width: 232px;
}

.edit_main input.edit,
.edit_main select.edit,
.edit_main textarea.edit {
  box-sizing: border-box;
  width: 300px;
  margin: 0;
  padding: 7px 10px 8px;
  border: 1px solid #c3cbd4;
  background: #fff;
  color: #000;
  font: 11px Tahoma, Verdana, Arial, sans-serif;
}

.edit_main textarea.edit {
  height: 90px;
  resize: none;
}

.edit_main .textarea_block {
  align-items: flex-start;
}

.edit_main .birthday_selects {
  display: flex;
  width: 360px;
  gap: 5px;
}

.edit_main .edit_year_range {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 360px;
}

.edit_main .edit_year_range select.edit {
  width: 150px;
}

.edit_main .edit_year_dash {
  color: #777;
  font-size: 12px;
}

.edit_main .edit_multi_item {
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid #e7e8ec;
}

.edit_main .edit_multi_item:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.edit_main .edit_multi_item .edit_block > div {
  position: relative;
  width: 280px;
}

.edit_main .edit_multi_item .edit_block > div input.edit,
.edit_main .edit_multi_item .edit_block > div select.edit {
  width: 280px;
}

.edit_main .edit_multi_del {
  position: absolute;
  right: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  color: #8295a9;
  font-size: 14px;
  text-decoration: none;
}

.edit_main .edit_multi_del:hover {
  color: #45688e;
}

.edit_main .edit_multi_del::before {
  content: '×';
}

.edit_main .edit_multi_deleted {
  color: #777;
  font-size: 11px;
  padding: 8px 0 8px 205px;
  line-height: 16px;
}

.edit_main .edit_multi_restore {
  display: inline-block;
  margin-top: 4px;
}

.edit_main .edit_add_row {
  font-size: 11px;
}

.edit_main .edit_multi_add_row {
  padding-bottom: 4px;
  padding-top: 30px;
}

.edit_main .edit_multi_content[hidden],
.edit_main .edit_multi_deleted[hidden] {
  display: none !important;
}

.edit_main .geo_selects {
  display: flex;
  flex-wrap: wrap;
  width: 360px;
  gap: 5px;
}


.edit_main .birthday_selects select {
  height: 29px;
  border: 1px solid #c3cbd4;
  background: #fff;
  padding: 5px;
  font: 11px Tahoma, Verdana, Arial, sans-serif;
}

.edit_main .edit_day {
  width: 60px;
}

.edit_main .edit_mon {
  width: 105px;
}

.edit_main .edit_year {
  width: 62px;
}

.edit_main .bday_visibility_row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 352px !important;
}

.edit_main .bday_visibility_row select.edit {
  width: 232px;
}

.edit_main .bday_visibility_hint {
  white-space: nowrap;
  padding-top: 1px;
}

.edit_main .edit_relation_request_box {
  width: 300px;
  padding: 10px 12px;
  background: #f5f7fa;
  border: 1px solid #dce3eb;
}

.edit_main .edit_relation_request_text {
  margin-bottom: 10px;
  line-height: 1.4;
}

.edit_main .edit_relation_partner_box {
  width: 232px;
}

.edit_main .edit_relation_partner_selected {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
  color: #2b587a;
}

.edit_main .edit_relation_partner_x {
  color: #8aa0b6;
  text-decoration: none;
  font-weight: bold;
}

.edit_main .edit_relation_partner_pick {
  color: #2b587a;
}

.edit_main .edit_relation_partner_pending {
  margin-top: 6px;
  color: #777;
  font-size: 10px;
}

.edit_main .edit_relation_partner_list {
  margin-top: 6px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #c0cad5;
  background: #fff;
}

.edit_main .edit_relation_partner_item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 6px;
  cursor: pointer;
  border-bottom: 1px solid #eef1f4;
}

.edit_main .edit_relation_partner_item:hover {
  background: #edf1f5;
}

.edit_main .edit_relation_partner_item img {
  width: 28px;
  height: 28px;
  object-fit: cover;
}

.edit_main .edit_relation_partner_empty {
  padding: 8px;
  color: #777;
}

.edit_main .edit_relation_gender_tabs {
  display: flex;
  gap: 8px;
  padding: 6px 8px;
  border-bottom: 1px solid #e7ebf0;
  background: #f7f8fa;
}

.edit_main .edit_relation_gender_tab {
  color: #2b587a;
  text-decoration: none;
}

.edit_main .edit_relation_gender_tab.on {
  font-weight: bold;
  text-decoration: underline;
}

.edit_main .edit_langs {
  width: 232px;
}

.edit_main .edit_lang_selector {
  position: relative;
  display: flex;
  min-height: 30px;
  border: 1px solid #c0cad5;
  background: #fff;
  box-sizing: border-box;
}

.edit_main .edit_lang_tokens {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  padding: 3px 4px;
  cursor: pointer;
}

.edit_main .edit_lang_chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 4px 1px 6px;
  background: #dae2e8;
  border: 0;
  border-radius: 2px;
  color: #21578b;
  font-size: 11px;
  line-height: 1.45;
}

.edit_main .edit_lang_x {
  color: #6d8ba5;
  text-decoration: none;
  font-weight: bold;
  line-height: 1;
  font-size: 12px;
}

.edit_main .edit_lang_x:hover {
  color: #42648b;
  text-decoration: none;
}

.edit_main .edit_lang_dropdown {
  width: 16px;
  flex: 0 0 25px;
  border-left: 1px solid #c0cad5;
  cursor: pointer;
  position: relative;
  background: #fff;
}

.edit_main .edit_lang_dropdown::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 13px;
  border: 4px solid transparent;
  border-top-color: #879ab0;
}

.edit_main .edit_lang_list {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  margin-top: -1px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid #c0cad5;
  background: #fff;
}

.edit_main .edit_lang_option {
  padding: 4px 8px;
  cursor: pointer;
  color: #000;
}

.edit_main .edit_lang_option:hover {
  background: #edf1f5;
}

.edit_main .edit_lang_option.disabled {
  color: #999;
  cursor: default;
  background: #fff;
}

.edit_main .edit_relative_chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: #eef2f6;
  border: 1px solid #d8e0e8;
  border-radius: 2px;
  color: #2b587a;
  font-size: 11px;
  line-height: 1.4;
  margin-right: 4px;
}

.edit_main .edit_relative_x {
  color: #8aa0b6;
  text-decoration: none;
  font-weight: bold;
  line-height: 1;
}

.edit_main .edit_relative_x:hover {
  color: #42648b;
  text-decoration: none;
}

.edit_main .edit_relatives {
  width: 300px;
  padding-top: 6px;
}

.edit_main .edit_relatives_list {
  display: inline;
}

.edit_main .edit_relatives_list:not(:empty)::after {
  content: ' ';
}

.edit_main .edit_relative_add {
  color: #2b587a;
}

.edit_relative_pick_list {
  max-height: 280px;
  overflow: auto;
  margin-top: 10px;
}

.edit_relative_pick_item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
  border-bottom: 1px solid #e7e7e7;
  cursor: pointer;
}

.edit_relative_pick_item:hover {
  background: #edf1f5;
}

.edit_relative_pick_item img {
  width: 32px;
  height: 32px;
  object-fit: cover;
}

.edit_separator {
  height: 0;
  margin-top: 10px;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #fff;
}

.edit_main .submit_button {
  padding: 15px 0 0 205px;
}

.pole {
  background: #f1f1f1;
  padding: 20px 0px 15px;
  margin: 0 auto;
}




#profile_audios .audio .area {
  margin-bottom: 4px;
}

#profile_audios .audio.current .area {
  margin-bottom: 0;
}

#profile_audios .audio_pr,
#profile_audios .audio_vol {
  position: relative;
  height: 15px;
  cursor: pointer;
}

#profile_audios .audio_vol {
  width: 55px;
  margin-left: 10px;
}

#profile_audios .audio_white_line,
#profile_audios .audio_vol_white_line {
  width: 100%;
  height: 15px;
  position: relative;
  top: -5px;
}

#profile_audios .audio_back_line {
  width: 100%;
  height: 4px;
  position: relative;
  top: -15px;
  background: #d8dee4;
  border-radius: 2px;
}

#profile_audios .audio_load_line {
  width: 0;
  height: 4px;
  position: relative;
  top: -19px;
  background: #bac7d4;
  border-radius: 2px;
}

#profile_audios .audio_vol .audio_load_line {
  width: 100%;
  top: -15px;
}

#profile_audios .audio_progress_line {
  width: 0;
  height: 4px;
  position: relative;
  top: -11px;
  margin-top: -12px;
  background: #5c7a99;
  border-radius: 2px;
}

#profile_audios .audio_vol .audio_progress_line {
  top: -7px;
}

#profile_audios .audio_slider {
  display: none;
  position: absolute;
  right: -4px;
  top: -2px;
  width: 8px;
  height: 8px;
  background: #5f7e9e;
  border-radius: 4px;
}

#profile_audios .audio.current .audio_pr.over .audio_slider,
#profile_audios .audio.current .audio_vol.over .audio_slider,
#profile_audios .audio.current .audio_pr.down .audio_slider,
#profile_audios .audio.current .audio_vol.down .audio_slider {
  display: block;
}

#profile_audios .title_wrap a {
  color: #2b587a;
}

/* Instant messaging */
.im_page {
  min-height: 420px;
}

.im_dialogs_col {
  width: 220px;
  border-right: 1px solid #d3d9de;
  min-height: 420px;
}

.im_chat_col {
  width: 390px;
  min-height: 420px;
}

.im_dialogs_header,
.im_chat_header {
  font-weight: bold;
  padding: 8px 10px;
  border-bottom: 1px solid #d3d9de;
  background: #f7f8fa;
}

.im_dialogs_list {
  max-height: 500px;
  overflow-y: auto;
}

.im_dialog_row {
  display: block;
  padding: 8px;
  border-bottom: 1px solid #eef0f3;
  color: #2b587a;
  text-decoration: none;
}

.im_dialog_row:hover,
.im_dialog_active {
  background: #edf1f5;
}

.im_dialog_ava {
  margin-right: 8px;
}

.im_dialog_info {
  width: 150px;
}

.im_dialog_name {
  font-weight: bold;
  color: #2b587a;
}

.im_dialog_snippet {
  color: #777;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.im_unread_badge {
  display: inline-block;
  background: #4a76a8;
  color: #fff;
  font-size: 10px;
  padding: 0 5px;
  border-radius: 8px;
  margin-left: 4px;
}

.im_messages {
  padding: 10px;
  max-height: 340px;
  overflow-y: auto;
  background: #fff;
}

.im_msg {
  margin-bottom: 10px;
  max-width: 85%;
}

.im_msg_in {
  float: left;
  clear: both;
}

.im_msg_out {
  float: right;
  clear: both;
  text-align: right;
}

.im_msg_body {
  background: #edf1f5;
  padding: 6px 10px;
  border-radius: 4px;
  display: inline-block;
  text-align: left;
}

.im_msg_out .im_msg_body {
  background: #dce6f0;
}

.im_msg_date {
  font-size: 10px;
  color: #999;
  margin-top: 2px;
}

.im_send_box {
  border-top: 1px solid #d3d9de;
  padding: 8px;
  background: #f7f8fa;
}

.im_send_field {
  width: 280px;
  margin-bottom: 6px;
}

.im_chat_placeholder,
.im_empty {
  padding: 40px 20px;
  color: #777;
  text-align: center;
}

.notification_row {
  padding: 10px;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #eef0f3;
}

.notification_unread {
  background: #f5f8fc;
}

.notification_ava {
  margin-right: 10px;
}

.notification_date {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
}

.photos_album_item,
.photos_photo_item {
  margin: 0 8px 12px 0;
  position: relative;
}

.photos_photo_delete {
  position: absolute;
  top: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 0 6px;
  text-decoration: none;
}

.groups_row {
  padding: 10px 0;
  border-bottom: 1px solid #eef0f3;
}

.groups_desc,
.groups_members {
  color: #777;
  font-size: 11px;
}

.groups_section_title {
  margin: 16px 0 8px;
  font-size: 13px;
}

.wall_module a.published_by_photo img {
  display: block;
  width: 30px;
  height: 30px;
}



.wall_module .reply:hover .reply_delete_button,
.wall_module .reply:hover .reply_edit_button {
  opacity: 0.5;
  filter: none;
}

.wall_module .reply .reply_delete_button:hover,
.wall_module .reply .reply_edit_button:hover {
  opacity: 1;
}

.wall_module .reply_info .info_footer {
  color: #777;
  font-size: 11px;
}

.wall_module .reply_info .info_footer .wd_lnk {
  color: #777;
  font-size: 10px;
  text-decoration: none;
}

.wall_module .post_share_count:empty {
  display: none;
}


.current_audio_cnt .label {
  background-image: none !important;
  position: relative;
}

.current_audio_cnt .label:before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  margin-top: 1px;
  border: 1.5px solid #507292;
  border-radius: 50%;
  box-sizing: border-box;
  opacity: 0.8;
}

.current_audio_cnt {
  display: inline-block;
  margin-left: 4px;
}

.current_audio_cnt.hidden {
  display: none;
}

#pd_status.on .status.ctrl,
#pd_status .status.ctrl.on {
  opacity: 1;
}

#currinfo_audio {
  cursor: pointer;
  user-select: none;
}


.owner_photo_controls {
  text-align: center;
}