html {overflow-y: clip;}
body {
    margin: 0;
    font-family: "Google Sans Text","Google Sans","Roboto","Arial","sans-serif";
    background: 
        radial-gradient(circle at 15% 15%, rgba(35, 120, 220, .22), transparent 40%), 
        linear-gradient(180deg, #141920 0%, #101317 100%), 
        #141920;
    color: #fff;
    letter-spacing: 0.05em;
    font-weight: 300;
    font-size: 14px;
}
.apnp-sidebar-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  -webkit-backdrop-filter: blur(0);
  opacity: 0;
  pointer-events: none;
  transition:
    background .3s ease,
    backdrop-filter .3s ease,
    -webkit-backdrop-filter .3s ease,
    opacity .3s ease;
}

body.overlay-active .apnp-sidebar-overlay {
  background: rgba(0, 0, 0, .25);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 1;
  pointer-events: auto;
}

/* Disable Site */
.alert_disable_site {
    padding: 30px 30px;
    border-radius: 8px;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin: 70px 0;
    border: 2px solid #ff0000;
    background: #444;
    box-shadow: 0 0 10px rgb(0 0 0 / 50%);
    color: aqua;
    text-align: center;
    animation: fadeIn 1s 
ease-in-out;
}
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}
/* -----End----- */

small {
    font-size: 12px;
    color: gray;
}
button, [role="button"] {
    user-select: none;
    cursor: pointer;
    text-wrap: nowrap;
}
a {
    cursor: pointer;
}
[hidden] { display: none !important; }

input, textarea, select {
    width: -webkit-fill-available;
    max-width: 300px;
    min-width: 0;
    min-height: 26px;
    margin: 0;
    background: rgb(20 30 50);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 10%);
    border: none;
    outline: none;
    color: var(--clr-modal);
    padding: 0 6px;
    border-radius: var(--br);
}
textarea { resize: vertical; }
select {
    max-width: calc(250px + 20px);
}
input[type="checkbox"], .ms-modal input[type="checkbox"] {
    width: auto;
    min-height: auto;
    cursor: pointer;
}
a.profile_link:hover .user_mini_avatar {
    box-shadow: 0 0 5px rgb(35 120 220 / 75%);
}

*::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}
.pi-content::-webkit-scrollbar {
    width: 3px;
}
*::-webkit-scrollbar-thumb {
    background: rgb(25 30 40);
}
*::-webkit-scrollbar-track {
    background: rgb(55 55 55);
}
.ps-post-overlay__body::-webkit-scrollbar {
    width: 3px;
}


input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-text-fill-color: var(--clr-modal) !important;
    caret-color: var(--clr-modal) !important;
    background-color: rgb(20 30 50) !important;
    background-image: none !important;
    box-shadow: 0 0 0 1000px rgb(20 30 50) inset, 0 0 0 1px rgb(35 120 220 / 10%) !important;
    transition: background-color 9999s ease-out, color 9999s ease-out;
}

input:-webkit-autofill:focus,
textarea:-webkit-autofill:focus,
select:-webkit-autofill:focus {
    box-shadow: 0 0 0 1000px rgb(20 30 50) inset, 0 0 0 1px rgb(35 120 220 / 40%) !important;
}

input:-moz-autofill,
textarea:-moz-autofill,
select:-moz-autofill {
    background-color: rgb(20 30 50) !important;
    color: var(--clr-modal) !important;
    caret-color: var(--clr-modal) !important;
}

:root {
    --clr-base: #fff;
    --clr-modal: #b1b1b1;
    
    --br: 5px;
    
    --linkColor: rgb(66 153 255);
    --linkColorHover: rgb(134 190 255);
    
    --pos-w-avatar: 34px;
    --pos-h-avatar: 34px;
    --comm-w-avatar: 26px;
    --comm-h-avatar: 26px;
    
    --brd-box: 1px solid rgb(35 120 220 / 15%);
    --sh-box: 0 0 8px 0 rgb(0 0 0 / 30%);
    --bg-box: rgb(30 40 60 / 15%);
    --sh-btn: 0 0 0 1px rgb(35 120 220 / 20%);
    --sh-sub: 0 0 4px rgb(0 0 0 / 20%);
    
    --bg-bubble: rgb(10 20 35);
    --bg-bubble-mine: rgb(0 60 90);
    --bg-modal: rgb(0 35 55);
    --bg-box-modal: rgb(16 26 38);
    --bg-sub: rgb(0 40 80 / 60%);
    --bg-hover-btn: rgb(35 120 220 / 20%);
    --bg-menu: rgb(0 35 55);
    --bg-hover-menu: rgb(0 45 70);
}

.apnp-presence-host > img {
    display: block;
}

.apnp-presence-host > .ms-presence,
.user_profile_avatar > .ms-presence {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #737373;
    border: none;
    box-shadow: 0 0 2px 2px #202020;
    box-sizing: border-box;
    pointer-events: none;
}

.apnp-presence-host > .ms-presence.is-online,
.user_profile_avatar > .ms-presence.is-online {
    background: #36c263;
    box-shadow: 0 0 2px 2px rgb(54 194 99 / 40%);
}
div[data-view-mode="self"] .user_profile_avatar {
    overflow: hidden;
}
a:focus-visible, button:focus-visible, div[role="button"]:focus-visible {
  outline: 1px solid rgb(35 120 220 / 40%);
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
    box-shadow: 0 0 0 1px rgb(35 120 220 / 40%);
}
/* notifications.css */
.nd-loader { padding: 14px; display: flex; justify-content: center; }
.nd-spinner {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: #fff;
  animation: ndspin .8s linear infinite;
}
@keyframes ndspin { to { transform: rotate(360deg); } }

.sec-title {text-align: left;}

/* Универсальная крутилка (можешь подогнать под свой глобальный стиль) */
.wlt-swap-input-spinner {
    position: absolute;
    display: flex;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0 / 50%);
    border-radius: 8px;
}
.wlt-spinner.input-spinner {
  width: 20px;
  height: 20px;
}
.wlt-card-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 0 0 / 20%);
  backdrop-filter: blur(2px);
  border-radius: var(--br);
  z-index: 5;
}
.un-wrap-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    background: rgb(0 0 0 / 15%);
    backdrop-filter: blur(2px);
    border-radius: var(--br);
    border: rgb(35 120 220 / 20%) solid 1px;
}
.wlt-spinner, .un-spinner {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 3px solid rgba(255,255,255,0.05);
  border-top-color: rgba(35,135,255,1);
  animation: wlt-spin 0.8s linear infinite;
}
@keyframes wlt-spin {
  to { transform: rotate(360deg); }
}

.notif-bell {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    height: 40px;
    width: 40px;
    transition: background 0.3s ease;
}
.notif-bell:hover, .notif-bell[aria-expanded="true"], .notif-bell.active {
    background: rgb(30 40 55);
}
.notif-bell svg { fill: gray; transition: .3s; }
.notif-bell:hover svg, .notif-bell[aria-expanded="true"] svg, .notif-bell.active svg { fill: #fff; }
.nb-dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    background: #36c263;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgb(0 207 25 / 10%);    
}

.notif-dropdown {
    position: absolute;
    right: 15px;
    top: 42px;
    width: -webkit-fill-available;
    max-width: 400px;
    background: rgb(27 35 55);
    border: 1px solid rgb(35 120 220 / 20%);
    border-radius: var(--br);
    box-shadow: 0 5px 20px rgb(0 0 0 / 30%);
    z-index: 1000;
}
a.nd-ulink, a.nd-all-link {
    color: rgb(0 255 255 / 50%);
    text-decoration: none;
    user-select: none;
    transition: all .3s ease;
}
a.nd-ulink {
    color: rgb(0 255 255 / 90%);
    text-wrap-mode: nowrap;
}
a.nd-ulink:hover, a.nd-all-link:hover {
    color: rgb(0 255 255 / 90%);
    text-decoration: underline;
}
a.avlink {
    width: 100%;
    height: 100%;
    display: inline-block;
}
.nd-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-bottom: 1px solid rgb(35 120 220 / 10%);
}
.nd-head span {user-select: none;}

.nd-head .nd-mark-all, .nd-mark, .notif_created-at {
    font-size: 0.75rem;
    font-weight: 400;
    color: #777777;
    cursor: pointer;
    letter-spacing: normal;
    transition: all 0.3s ease;
}
.nd-mark, .notif_created-at {
    font-size: 0.67rem;
}
.notif_created-at {
    cursor: default;
    user-select: none;
}
.nd-item-footer {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 20px;
    padding: 2px 10px;
    border-top: 1px solid rgb(35 120 220 / 10%);
}
.notif_actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    height: 16px;
}
.notif_actions .nd-icon-btn.nd-mark,
.notif_actions .nd-icon-btn.nd-del {
    box-shadow: var(--sh-btn);
    border-radius: 3px;
    height: 16px;
    transition: all .3s ease;
}
.notif_actions .nd-icon-btn.nd-mark:hover,
.notif_actions .nd-icon-btn.nd-del:hover {
    background: rgb(35 120 220 / 20%);
}
.notif_actions .nd-icon-btn.nd-mark svg {
    stroke: rgb(0 171 0 / 50%);
    transition: all .3s ease;
}
.notif_actions .nd-icon-btn.nd-mark svg:hover {
    stroke: rgb(0 171 0 / 100%);
}
.notif_actions .nd-icon-btn.nd-del svg {
    stroke: rgb(255 99 71 / 50%);
    transition: all .3s ease;
}
.notif_actions .nd-icon-btn.nd-del svg:hover {
    stroke: rgb(255 99 71 / 100%);
}
.nd-footer {
    text-align: center;
    font-size: 12px;
    padding: 6px;
    border-top: 1px solid rgb(35 120 220 / 10%);
}
.nd-head .nd-mark-all:hover, .nd-mark:hover {
    text-decoration: underline;
    color: #b7b7b7;
}
.nd-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: none;
    min-height: inherit;
    padding: 10px 0;
}
#notif-dd .nd-item {
    border: none;
    border-top: var(--brd-box);
    border-bottom: var(--brd-box);
    border-radius: 0;
    background: rgb(30 40 65);
    padding: 10px 10px 32px;
}
.empty {
    padding: 30px 0;
    color: #999999;
    font-size: 16px;
    text-align: left;
    user-select: none;
}
.empty.notif {
    text-align: center;
}

.nd-item {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 15px 32px;
    border-radius: 5px;
    background: rgb(30 40 60 / 50%);
    border: var(--brd-box);
    box-shadow: var(--sh-box);
    transition: all .3s ease;
}
.nd-item-body {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}
.nd-left {
    height: 35px;
}
.nd-left img {
    width: 35px;
    height: 35px;
    border-radius: 10px;
    object-fit: cover;
}
.nd-center {
    flex: 1;
    min-width: 0;
}

.nd-list .nd-item.is-read {
    background: var(--bg-box);
}
.nd-list .nd-item.is-read .nd-center {
    padding-right: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#notif-sec-list .nd-item::after,
#notif-sec-list .nd-item.is-read::after {
    content: url("/profile/img/icons/notif/unread.svg");
    position: absolute;
    right: 10px;
    top: 8px;
    width: 20px;
    height: 20px;
}
#notif-sec-list .nd-item.is-read::after {
    content: url("/profile/img/icons/notif/read.svg");
}
#notif-sec-list .nd-item[data-type="post_comment"], #notif-sec-list .nd-item[data-type="comment_reply"],
#notif-sec-list .nd-item[data-type="post_subscription"] { 
    cursor: pointer;
}
    
#notif-sec-list .nd-item[data-type="post_comment"]:hover, #notif-sec-list .nd-item[data-type="comment_reply"]:hover {
    border: 1px solid rgb(85 129 255 / 15%);
}



.msg-transfer-incoming {
    font-size: 14px;
}
.amount-apnp {
    font-weight: 400;
    color: green;
}
.nd-center.nd-center-system {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.nd-title {
    font-size: 14px;
    line-height: 1.35;
    color: #eee;
}
.nd-title.sys-notif {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 5px;
}
.msg-notif-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
}
.go-link {
    font-size: 14px;
}
.go-link a.nd-ulink {
    font-size: 12px;
}
.nd-sub { font-size: 12px; color: #939393; }
.nd-actions {
    display: flex;
    gap: 10px;
    flex-direction: row;
    align-items: center;
    margin-left: 50px;
}
.nd-btn {
    padding: 4px 8px;
    border-radius: var(--br);
    border: none;
    background: #3b3b3b;
    box-shadow: black 0 1px 1px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.nd-btn:hover {
    transform: translateY(1px);
    box-shadow: black 0 0 0;
}
.nd-btn.primary {
    background: #005f00;
}
.nd-btn.light {
    background: #6d1100;
}
    
    
/* Notifications — анимации вставки/удаления */
/* Удаление (Clear/Accept/Decline) — легкий сдвиг + схлопывание */
#nd-list .nd-item.is-leaving {
  opacity: 0;
  transform: translateX(-370px);
  overflow: hidden;
  height: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
}

/* Появление нового сверху */
#nd-list .nd-item.is-enter {
  opacity: 0;
  transform: translateY(-70px);
}
#nd-list .nd-item.is-enter.is-enter-active {
  opacity: 1;
  transform: translateY(0);
}
    
.nd-status--accepted, .nd-status--declined {
    color: green;
    font-size: 12px;
    font-weight: 400;
    background: var(--bg-sub);
    box-shadow: var(--sh-sub);
    padding: 3px 10px;
    border-radius: var(--br);
    user-select: none;
}
.nd-status--declined {
    color: tomato;
}
/* =============================== */




.loading_bar_main,
.loading_bar_tabs {
    position: absolute;
    height: 4px;
    background-image: linear-gradient(to right, transparent 0, #58d2ff 150px, #58d2ff 200px, transparent 350px);
    background-repeat: no-repeat;
    background-position: -350px 0%;
    width: 100%;
    top: -1px;
    left: 0;
    right: 0;
    z-index: 1000;
    background-size: 200% 4px;
    animation: loader-line 1s ease-in-out infinite alternate;
}
.loading_bar_tabs {
    top: 41px;
}

@keyframes loader-line {
    0% {
        background-position-x: -350px
    }
    to {
        background-position-x: 100vw
    }
}

/* Profile Info Modal */
.pi-modal { position: fixed; inset: 0; z-index: 1200; }
.pi-modal .pi-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.6);
}
.pi-modal .pi-dialog {
  position: relative;
  z-index: 1;
  width: min(500px, 100dvw);
  max-height: 92dvh;
  margin: 1vh auto 0;
  background: #222;
  color: #eee;
  border-radius: var(--br);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex; flex-direction: column;
}
.pi-title { margin: 0; padding: 10px 18px; border-bottom: 1px solid rgb(68 68 68 / 30%); }
.pi-close {
    position: absolute;
    top: 8px;
    right: 10px;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: var(--br);
    background: #333;
    color: red;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}
.pi-close:hover { background:#444; }
.profile-section h4 { margin:0 0 10px; }
    
    
/* === Анимация модалки (появление снизу, исчезновение вниз) === */
.pi-modal.is-animating,
.pi-modal.is-open { display: block !important; }

.pi-modal .pi-overlay {
  opacity: 0;
  transition: opacity 0.6s ease;
}
.pi-modal.is-open .pi-overlay { opacity: 1; }
.pi-modal.is-closing .pi-overlay { opacity: 0; }

.pi-modal .pi-dialog {
  transform: translateY(950px);
  opacity: 0;
  transition:
    transform .8s ease,
    opacity   .6s ease;
  will-change: transform, opacity;
}
.pi-modal.is-open .pi-dialog {
  transform: translateY(0);
  opacity: 1;
}
.pi-modal.is-closing .pi-dialog {
  transform: translateY(950px);
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  .pi-modal .pi-overlay,
  .pi-modal .pi-dialog { transition: none !important; }
}

.nd-load-more {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-size: 13px;
}
.nd-load-more.notif {
    margin-top: 5px;
}
.btn-load-more {
    box-shadow: var(--sh-btn);
    color: #fff;
    text-wrap-mode: nowrap;
    padding: 4px 10px;
    border-radius: var(--br);
    transition: background .2s ease;
}
.btn-load-more:hover {
    background: var(--bg-hover-btn);
}

.disable.btn-mini, .enable.btn-mini {
    padding: 3px 6px;
}
.username {
    font-size: 1.4rem;
    background: #272727;
    padding: 3px 10px;
    color: #fff;
    width: -webkit-fill-available;
    text-align: center;
}
.useremail {font-size: 0.9rem;}
.userrole {font-size: 0.8rem;color:gray;}
.userid {
    color: gray;
    font-style: italic;
    font-size: .7rem;
    font-weight: 600;
}

*:disabled, 
*:disabled:hover {
    border: 1px solid rgb(35 120 220 / 20%) !important;
    background: transparent !important;
    color: #ccc !important;
    cursor: default !important;
    opacity: 0.7 !important;
    box-shadow: none !important;
    transform: scale(1) !important;
}

#reauth_body {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#tabs-nav.tabs-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    display: flex;
    gap: 8px;
    background: rgb(30 40 60 / 80%);
    padding: 6px 12px;
}
#tabs-title {
    margin-top: 42px;
    text-align: left;
}
#tabs-nav .nav-tab-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 13px;
    border: none;
    color: #eee;
    cursor: pointer;
    background: transparent;
    border-radius: var(--br);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    transform: translateY(-1px);
    transition: background .3s ease, color .3s ease, transform .3s ease;
}
#tabs-nav .nav-tab-btn:hover {
    background: rgb(35 120 220 / 20%);
    color: #fff;
    transform: translateY(0);
}
#tabs-nav .nav-tab-btn.active {
    background: rgb(35 120 220 / 20%);
    color:#fff;
    text-wrap-mode: nowrap;
    transform: translateY(0);
}

#pe-info-form, #pe-privacy-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#pe-info-form {
    gap: 5px;
}
#pe-info-form .pe-group,
#pe-privacy-form .pe-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: var(--bg-box);
    border-radius: var(--br);
    box-shadow: var(--sh-box);
    border: var(--brd-box);
    padding: 6px 10px;
    max-width: 400px;
}
.pe-subgroup {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.pe-subgroup label {
    flex: 0 0 100px;
    font-size: 13px;
}
.pe-subgroup select {
    padding: 6px 8px;
    width: 170px;
    font-size: 12px;
}

.selectStatus {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.privacy-flag-icon {
    position: absolute;
    left: -24px;
    width: 20px;
    height: 20px;
    display: inline-block;
}

#privacy-subcontrols {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    max-width: 422px;
}
#pe-info-form .actions,
#pe-privacy-form .actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
#pe-info-form .pe-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
#pe-info-form .pe-row label {
    flex: 0 0 100px;
    font-size: 13px;
}
#pe-info-form .pe-row input {
    max-width: 200px;
    padding: 6px 8px;
    font-size: 13px;
}
#pe-info-form .pe-row select {
    max-width: calc(200px + 16px);
    padding: 6px 8px;
    font-size: 13px;
}
#pe-info-form .pe-row textarea {
    resize: vertical;
    min-height: 34px;
    max-width: 270px;
}
#pe-info-form button[type="submit"].enable:disabled, 
#pe-info-form button[type="submit"].enable:disabled:hover,
#pe-privacy-form button[type="submit"].enable:disabled,
#pe-privacy-form button[type="submit"].enable:disabled:hover {
    border: 1px solid #005513;
    background: rgba(255, 255, 255, 0.05);
    color: #ccc;
    cursor: default;
    opacity: 0.7;
    box-shadow: none;
    transform: scale(1);
}

.tabs-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 800px;
}
.pe-cb-grid {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
#twofa-panel {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.set_section-box {
    background: var(--bg-box);
    padding: 10px 15px;
    border-radius: var(--br);
    box-shadow: var(--sh-box);
    border: var(--brd-box);
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}
.set_section-box h4 {
    margin: 0;
}
.set_section-box p {
    margin: 15px 0px 15px 0px;
    font-size: 14px;
}
.set_section-box .vanity-input {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: sans-serif;
    font-size: .8rem;
    gap: 5px;
}
#vanity-status .hint {
    font-size: .8rem;
    font-weight: normal;
}
.set_section-box .slug_edit-box {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.set_section-box .phone-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.save-btn, .opt-btn {
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: var(--br);
    box-shadow: 0 0 3px rgb(0 0 0 / 50%);
    padding: 4px 12px;
    cursor: pointer;
}
.opt-btn.post-draft {
    display: flex;
    align-items: center;
    padding: 0px 8px;
    background: rgb(35 120 255 / 70%);
    font-size: 12px;
    font-weight: 300;
    min-height: 20px;
    border: none;
    transition: background .3s ease;
}
.opt-btn.post-draft:hover {
    background: rgb(35 120 255 / 100%);
}

.soc-link {
    color: var(--linkColor);
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    transition: color .3s ease;
}
.soc-link:hover {
    color: var(--linkColorHover);
    text-decoration: underline;
}

#dial-toggle {
    padding: 8px 10px;
    border: none;
    box-shadow: inset 0 0 2px #8b8b8b;
    border-radius: var(--br);
    background: #1f1f1f;
    color: #fff;
    min-width: 50px;
    text-align: left;
    cursor: pointer;
}
#dial-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 31px;
    width: 150px;
    border-radius: var(--br);
    background: #1f1f1f;
    z-index: 50;
    border: 1px solid #333;
    box-shadow: 0 6px 6px rgba(0, 0, 0, .1);
}
.row.dial {
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:3px;
}
.row.action {
    display:flex;
    flex-direction:row;
    align-items:center;
    gap:10px;
}
#phone-view-body {
    align-items: center;
    flex-direction: row;
    gap: 15px;
}
#phone-view {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
#you-number {
    font-size: .9rem;
    font-weight: 400;
}
#phone-view .masked-block {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}
.form-check-label {
    display: flex;
    font-size: .8rem;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    user-select: none;
    background: var(--bg-sub);
    padding: 5px 8px;
    border-radius: var(--br);
    cursor: pointer;
    max-width: 300px;
    transition: background 0.2s ease;
}
.form-check-label:hover {
    background: rgb(0 40 80);
}
#status-number {
    font-size: .8rem;
    color: green;
    font-weight: 600;
}

/* Avatar style */
.site_logo {
    position: relative;
    height: 100px;
    width: 148px;
    border-radius: 10px;
    overflow: hidden;
}
.site_logo_image {
    height: 100px;
    width: 148px;
    object-fit: cover;
    pointer-events: none;
}
.user_profile_avatar {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 10px;
}
.user_login_image {
    width: 100%;
    pointer-events: none;
    border-radius: 10px;
    object-fit: contain;
}
.main_header_box {
    position: absolute;
    top: 0;
    right: 5px;
    left: 0;
    z-index: 1;
    backdrop-filter: blur(2px);
    background: var(--bg-box);
    border-bottom: 1px solid rgb(35 120 220 / 10%);
    box-shadow: var(--sh-box);
    padding: 10px 20px;
}
.main_header_body {
    
}
.section_box_body {
    display: flex;
    flex-direction: column;
}
.section_box_body.has-main-header-offset {
    padding-top: var(--main-header-offset, 0);
}
.header_box {
    background: var(--bg-box);
    border-radius: var(--br);
    box-shadow: var(--sh-box);
    border: var(--brd-box);
    position: relative;
    z-index: 1;
}
.section_header_nav {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 30px;
    background: rgb(255 255 255 / 2%);
    border-radius: 0 0 var(--br) var(--br);
}
.feed-menu-wrap {
    position: relative;
    height: -webkit-fill-available;
}
.feed-menu-btn-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 10px;
}
.feeds-more-menu {
    position: absolute;
    right: 0;
    top: 30px;
    background: var(--bg-menu);
    border-radius: var(--br);
    padding: 6px;
    border: var(--brd-box);
    z-index: 1;
}
.feeds-more-menu .head-nav-btn {
    border-radius: var(--br);
    min-height: 18px;
    border-bottom: none;
    border-top: none;
}

.section_header_nav .nav-left-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 3px;
    height: -webkit-fill-available;
}
.section_header_nav .nav-right-wrap {
    height: -webkit-fill-available;
}
.section_header_nav[data-feeds-ready="0"] .nav-left-wrap{ visibility:hidden;width:0; }

.head-nav-btn, .head-add-feed-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border: none;
    padding: 4px 10px;
    height: -webkit-fill-available;
    color: #9d9d9d;
    font-size: 12px;
    letter-spacing: 0.04em;
    font-weight: 400;
    border-bottom: 2px solid #2378dc00;
    transition: background .2s ease, color .2s ease, border .2s ease;
}
.head-add-feed-btn {
    border: none;
    height: -webkit-fill-available;
}
.head-nav-btn:hover, .head-add-feed-btn:hover, .head-nav-btn.active {
    background: var(--bg-hover-menu);
    color: #e9e9e9;
    border-bottom-color: #2378dc;
}
.head-nav-btn.more-nav svg { fill: #9d9d9d; transition: all .2s ease; }
.head-nav-btn.more-nav {
    padding: 4px;
    border: none;
}
.head-nav-btn.more-nav:hover, 
.head-nav-btn.more-nav svg:hover, 
.head-add-feed-btn:hover { 
    fill: #e9e9e9; 
    border-bottom-color: transparent; 
}

.profile_cover_body {
    display: none;
    position: relative;
    height: 200px;
    background: #3b3b3b;
    transition: all 0.3s ease;
}
.profile_cover_body:hover {
    background: #444;
}
.section_header_body, .feed_box_body {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    height: auto;
    padding: 10px 30px;
}
.feed_box_body {padding: 0;}

.user_avatar_info_wrap {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}
.user_header_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    color: #b9b9b9;
}
.user_header_info span.user-name {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
}
.profile-summary, .site-summary {
    font-size: 12px;
}
.pi-content {
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.profile-section {
    background: #333;
    padding: 12px;
    border-radius: var(--br);
}
.li-flex, .li-flex text {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
}
.profile-section .li-flex {
    gap: 5px;
    background: #393939;
    padding: 3px 10px;
    border-radius: var(--br);
    cursor: default;
}
.li-flex icon {
    height: 20px;
}
.li-flex b {
    flex: 0 0 80px;
    user-select: none;
}
.li-flex span {
    flex: 1 0 0;
    text-wrap-mode: wrap;
}
.profile-section .about_me {
    font-size: .85rem;
    font-weight: 300;
    background: #393939;
    padding: 3px 10px;
    border-radius: var(--br);
}
.site-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-direction: row;
    text-wrap-mode: nowrap;
}
.site-list a.community_info {
    text-decoration: none;
    color: #b9b9b9;
    transition: all 0.3s ease;
}
.site-list a.community_info:hover {
    text-decoration: underline;
    color: #cbcbcb;
}
.site_header_info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    color: #b9b9b9;
}
.site_header_info span.site-name {
    font-size: 21px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #fff;
}
.profile-list a.details_info {
    text-decoration: none;
    color: #b9b9b9;
    transition: all 0.3s ease;
}
.profile-list a.details_info:hover {
    text-decoration: underline;
    color: #cbcbcb;
}
.profile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 10px;
    flex-direction: row;
    text-wrap-mode: nowrap;
}
.profile-section .profile-list {
    flex-direction: column;
    gap: 6px;
    font-size: .85rem;
    font-weight: 300;
}


.user_mini_avatar {
    display: inline-block;
    height: 26px;
    width: 26px;
    overflow: hidden;
    border-radius: 8px;
    transition: box-shadow 0.5s ease;
}

.user_profile_avatar:hover .avatar-upload-button {
    bottom: 0;
    pointer-events: auto;
    cursor: pointer;
}

.avatar-upload-button, .delete-avatar-button {
    position: absolute;
    right: 0;
    left: 0;
    color: white;
    font-size: 12px;
    text-align: center;
    padding: 0;
    transition: bottom 0.3s ease, top 0.3s ease;
    pointer-events: none;
    user-select: none;
}
.avatar-upload-button {
    background: rgba(0, 70, 0, 0.5);
    bottom: -20px;
    height: 20px;
    border: none;
}
/*.avatar-upload-button input[type="file"], 
.delete-avatar-button input[type="button"] {
    display: none;
}*/
.delete-avatar-button {
    background: rgba(70, 0, 0, 0.5);
    top: -20px;
    height: 20px;
    border: none;
}

.user_profile_avatar:hover .delete-avatar-button {
    top: 0;
    pointer-events: auto;
    cursor: pointer;
}
/* ---------- */


/* Login Styles */
.login-page, .register-page {
    display: flex;
    flex-direction: column;
    align-items: center;
}
#login_container p {
    margin: 0;
    font-size: .8rem;
    font-weight: 400;
    width: -webkit-fill-available;
}
#login_container a {
    color: #cdcdcd;
    text-decoration: none;
    transition: color .3s ease;
}
#login_container a:hover {
    color: #62abff;
    text-decoration: underline;
}
#pr-back-login-link {
    padding: 6px 16px;
    margin: 0;
}
.user_login_preview_block {
    display: flex;
    gap: 40px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}
#forgotWrap {
    display: flex;
    margin: 0px auto;
    width: 100%;
    flex-direction: column;
    gap: 25px;
}
.login_title {text-align: center;}
.user_login_avatar {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 10px;
    overflow: hidden;
    /*border: solid 3px #2a2a2a;*/
}
#forgotWrap .note {
    margin: 0 auto;
    font-size: 14px;
}
#pr-verify-status.note {color: orange;}
#forgotWrap #pr-step-1 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#pr-step-1 p {
    font-size: 15px;
    text-align: center;
    color: lightblue;
}
#forgotWrap #pr-step-2 {
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
    width: -webkit-fill-available;
    gap: 25px;
}
#forgotWrap #pr-step-2 label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    max-width: 300px;
}
#forgotWrap #pr-step-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: -webkit-fill-available;
}
.pr-twofa-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}
#forgotWrap #pr-step-3 label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    max-width: 300px;
    gap: 10px;
}
#forgotWrap #pr-done {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
#forgotWrap #pr-done p {
    font-size: 14px;
    text-align: center;
    color: lightgreen;
}
.login_options {
    display: flex;
    font-size: 13px;
    letter-spacing: 0.04em;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    max-width: 300px;
    width: -webkit-fill-available;
    margin: 0 auto;
}
.remember_row {
    display: flex;
    gap: 6px;
    flex-direction: row;
    color: #cdcdcd;
    cursor: pointer;
    transition: color .3s ease;
}
.remember_row:hover {text-decoration: underline; color: #62abff;}
#sms-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.btnininput {
    position: relative;
}
button#resend-sms {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    margin: 0;
    padding: 5px 8px;
    background: rgb(0 8 91 / 60%);
    box-shadow: inset #0000ff66 0 0 3px;
    color: #cfcfcf;
    font-size: .75rem;
    transition: all 0.3s ease;
}
#login_container button#resend-sms:hover {
    background: #00085b94;
    transform: translateY(-50%) scale(0.98);
}
#login_container button#resend-sms:disabled,
#login_container button#resend-sms:hover:disabled {
    transform: translateY(-50%);
}
#login_container .sms-inline {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

#login_container h1,
#register_body h1 {
    margin: 0 auto 30px;
    text-align: center;
}
#login_container h2,
#register_body h2 {
    font-size: 18px;
    margin: 0;
}

#login_container input[type="checkbox"] {
    width: 15px;
    box-shadow: none;
}
#login_container input[type="checkbox"]:focus {
    box-shadow: none;
}
#register_body input:focus, 
#login_container input:focus {
    box-shadow: 0 0 0 1px rgb(35 120 220 / 40%);
}
.login_block {
	display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}
#login_container, #register_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    width: -webkit-fill-available;
    background: var(--bg-box);
    padding: 20px;
    border-radius: var(--br);
    box-shadow: var(--sh-box);
    border: 8px solid rgb(30 40 60 / 100%);
}
.login_form {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    gap: 25px;
    width: -webkit-fill-available;
}
#login-recovery-step {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#login-recovery-step h2, #login-recovery-step p.note { text-align: center; }
#login-recovery-step p.note { color: orange; }

.recovery-word-row {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row;
    font-size: 14px;
    width: 140px;
    border-radius: var(--br);
}
.recovery-word-index {
    position: absolute;
    display: flex;
    left: 0px;
    width: 27px;
    height: 26px;
    border-radius: var(--br) 0 0 var(--br);
    font-size: 12px;
    font-weight: 400;
    color: #b9b9b9;
    background: #001d3f;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #414141;
    user-select: none;
}
input.recovery-word-input {
    border: 1px solid #001d3f;
    box-shadow: none;
    text-transform: uppercase;
    min-width: 100px;
    min-height: auto;
    margin: 0;
    padding: 5px 5px 5px 32px;
    font-size: inherit;
}
.recovery-download-link {color: var(--linkColor); transition: color .3s ease;}
.recovery-download-link:hover {color: var(--linkColorHover);}
.login_extra_links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: -webkit-fill-available;
    max-width: 300px;
}
.login_label {
    width: 100%;
    display: flex;
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}
.login_label_name {
    display: inline-block;
    text-align: right;
    width: 30%;
}
.login_input, #register_body input {
    font-size: 15px;
    padding: 10px 12px;
    line-height: 1;
}

.user_login_preview {
    display: flex;
    flex-direction: row;
    gap: 10px;
    user-select: none;
    align-items: center;
    margin: 0 auto;
}
.user_avatar_image {
    width: 100%;
}
.user_login_data {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
    letter-spacing: 0.04em;
    line-height: 1.5;
    color: #ccc;
}
.user_login_username {
    font-size: 16px;
    font-weight: 400;
}

.loading_text {
    position: relative;
    padding-left: 24px;
}
.loading_text::before {
    content: "";
    position: absolute;
    left: 9px;
    top: 50%;
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #33333380;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

#restore-profile-link {
    font-size: 13px;
    font-weight: 400;
}
.auth-btn {
    display: flex;
    align-items: center;
    color: #fff;
    padding: 6px 16px;
    font-size: 14px;
    border-radius: var(--br);
    border:1px solid rgba(255,255,255,.2);
    background: #094892;
    cursor: pointer;
    user-select:none;
    transition: background .3s ease;
}
.auth-btn:hover { background: #003777; }
.create-account-btn, .sign-in-btn {
    color: rgb(35 180 255);
    font-weight: 400;
    line-height: 1;
    transition: color .3s ease;
}
.create-account-btn:hover, .sign-in-btn:hover {
    text-decoration: underline;
    color: rgb(255 255 255);
}
.login-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    width: -webkit-fill-available;
    gap: 20px;
}
.login-actions.singl-btn { justify-content: center; }
.auth-btn.back-btn, .auth-btn.foward-btn {
  background: radial-gradient(circle at 50% 50%, #2378dc 0%, #003777 100%);
  transition: background-position .5s ease;
  background-size: 300% 300%;
  background-position: 0% 0%;
}
.auth-btn.foward-btn {
  background-position: 100% 100%;
}
.auth-btn.back-btn:hover {
  background-position: 100% 100%;
}
.auth-btn.foward-btn:hover {
  background-position: 0% 0%;
}
.register-form-step1, .register-form-step2 {
    display: flex;
    width: -webkit-fill-available;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}
.register-form-step2 h5, #forgotWrap h5 {margin: 0;}
.input-wrapper, .new_pass {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: -webkit-fill-available;
    max-width: 300px;
}
.email-sent-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.sent-email-text p {
    margin: 0 0 5px;
}
.code-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: -webkit-fill-available;
    gap: 20px;
}
.code-block label {
    text-align: center;
}
.input-wrapper.reg-code {
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: center;
}
.verify-btn-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: -webkit-fill-available;
    gap: 10px;
}
.email-input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: -webkit-fill-available;
    gap: 25px;
}
#step2-form input {
    max-width: none;
}
.btn-in-input { position: relative;max-width:300px; }
.toggle-visibility {
    position: absolute;
    right: 6px;
    top: 50%;
    padding: 6px;
    font-size: 11px;
    border-radius: var(--br);
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
    color: #8d8d8d;
    background: rgb(255 255 255 / 5%);
    border: none;
    transition: all .3s ease;
}
.toggle-visibility:hover {background: rgb(255 255 255 / 10%);color: #fff;}
.input-status {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
}


/* ===== Шаг 3: Recovery phrase ===== */
#step3-recovery {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
}
#step3-recovery .reg-title {
    font-size: 1.4em;
    margin: 0;
}
#step3-recovery .reg-warning {
    font-size: 0.9em;
    text-align: center;
    line-height: 1.4;
    color: tomato;
    margin: 0;
}
#register_body input.recovery-confirm {
    margin: 0;
    width: 16px;
    height: 16px;
}
.recovery-check-text {
    color: aqua;
    cursor: pointer;
    user-select: none;
}
.recovery-words-grid {
    display: flex;
    gap: 8px;
    margin: 0;
    flex-wrap: wrap;
    justify-content: space-between;
}
.recovery-word {
    position: relative;
    display: flex;
    min-width: 140px;
    padding: 5px 5px 5px 5px;
    border: 1px solid #001d3f;
    background: #1f1f1f;
    border-radius: var(--br);
    font-family: monospace;
    align-items: center;
    gap: 5px;
}
.recovery-word .rw-index {
    position: absolute;
    left: -1px;
    display: flex;
    padding-left: 2px;
    background: #001d3f;
    color: #b9b9b9;
    font-size: 14px;
    border-radius: var(--br) 0 0 var(--br);
    border-right: 1px solid #414141;
    height: 25px;
    width: 30px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}
.recovery-word .rw-word {
    padding-left: 32px;
    font-weight: 600;
    text-transform: uppercase;
    text-align: left;
}
.recovery-confirm-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
    margin: 0;
}
#recovery-continue {
    margin-top: 14px;
    padding: 8px 16px;
    cursor: pointer;
}
#restore-status.note {
    color: #fff;
}
#restore-status.note.error {
    color: tomato;
}
#restore-status.note.success {
    color: green;
}
#restore-status.note.pending {
    color: orange;
    font-style: italic;

}
p.error {
    color: tomato;
    text-align: center;
}


/* ==== POST and COMMENT STYLE ==== */
#ps-post-editor-image, #ps-post-editor-text {
    max-width: none;
}
input[type="file"] {
    cursor: pointer;
}

/*=== .post-image временно пока есть старые изображения в постах ===*/
.post-image-wrap {
    margin-bottom: 8px;
    width: -webkit-fill-available;
    max-width: 500px;
}
.post-image {
    width: -webkit-fill-available;
    max-width: fit-content;
}

.post-deleted { text-align:center;padding:24px; }
.post-deleted__text { color:#c7c7c7;font-weight:400; }
.post-deleted__restore { color:#00a9a9;transition: color .3s ease; }
.post-deleted__restore:hover { color:aqua; text-decoration:underline; }

.ps-post-overlay{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}
.ps-post-overlay__backdrop{
    position:absolute;
    inset:0;
    opacity: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    transition: opacity 250ms ease;
}
.ps-post-overlay__panel{
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: calc(100dvh - 40px);
    background: radial-gradient(circle at 100% 100%, rgba(35, 120, 220, .22), transparent 60%), 
        -webkit-linear-gradient(#141920 0%, #101317 100%);
    transform: translateX(100%);
    transition: transform 1000ms cubic-bezier(.2,.9,.2,1);
    will-change: transform;
    --ps-overlay-head-h: 53px;
}
.ps-post-overlay__body{
    overflow: auto;
    height: -webkit-fill-available;
    padding: var(--ps-overlay-head-h, 53px) 0 10px;
    background: radial-gradient(circle at 15% 15%, rgba(35, 120, 220, .22), transparent 40%);
}
.ps-post-overlay.is-open{
  pointer-events: auto;
}
.ps-post-overlay.is-open .ps-post-overlay__backdrop{
  opacity: 1;
}
.ps-post-overlay.is-open .ps-post-overlay__panel{
  transform: translateX(0);
}
/* блокируем скролл ленты под overlay */
.main-panel_body.ps-post-overlay-open {
  overflow: hidden !important;
}


.feed_content, .comments_wrap {
    width: -webkit-fill-available;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.comments_wrap {
    padding: 0 10px;
}
.posts_live_bar {
    position: relative;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-42px);
    margin: 0;
    pointer-events: none;
    transition:
        max-height .28s ease,
        opacity .22s ease,
        transform .22s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
}
.posts_live_bar.is-visible{
    max-height: 42px;
    padding-top: 10px;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.posts_live_btn {
    display: inline-block;
    padding: 6px 30px;
    background: rgb(35 120 220 / 5%);
    border: rgb(35 120 220 / 20%) solid 1px;
    border-radius: var(--br);
    transition: background .3s ease, color .3s ease;
}
.posts_live_btn:hover {
    background: rgb(35 120 220 / 10%);
}
.posts_live_btn.posts_live_btn_notice {
    background: rgb(0 60 130 / 30%);
    border: rgb(35 120 220 / 35%) solid 1px;
    backdrop-filter: blur(3px);
}
.posts_live_btn.posts_live_btn_notice:hover {
    background: rgb(0 60 130 / 70%);
}
.posts-live-text {
    font-size: 15px;
    font-weight: 400;
    color: #D3DFFF;
    text-shadow: 0 1px 2px black;
}
.posts_live_notice{
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -42px);
  transition:
    opacity .22s ease,
    transform .22s ease;
}

.posts_live_notice.is-visible{
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.post_showmore_inline {
    color: #c5c5c5;
    font-size: 12px;
    font-weight: 400;
    transition: color .3s ease;
}
.post_showmore_inline:hover { color: #fff; text-decoration: underline; }
.post_tail_fade {
  background: linear-gradient(to right, currentColor 30%, rgba(0,0,0,0) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feed_list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.feed_empty { padding: 20px; }
.feed_list, .post_full, .comments_list {
    position: relative;
}
.full_post_header {
    background: rgb(30 40 60 / 25%);
    border-bottom: 1px solid rgb(35 120 220 / 10%);
    box-shadow: 0 0 8px 0px rgb(0 0 0 / 50%);
    backdrop-filter: blur(2px);
    padding: 0 20px;
    width: -webkit-fill-available;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.full_post_header.has-overflow-y {
    right: 3px;
    
}
.post_full_head {
    /*backdrop-filter: blur(2px);*/
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
    max-height: 50px;
}


/* ==== Карточка главного поста в comment-thread ==== */
.post_thread_root {
    padding: 0;
}
.post_thread_root_btn{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    width: -webkit-fill-available;
    border: 1px solid #80808020;
    background: rgb(37 37 37 / 0%);
    /*backdrop-filter: blur(2px);*/
    border-radius: var(--br);
    overflow: hidden;
}
.post_thread_root_btn:hover { background: rgb(37 37 37 / 80%); }

.post_thread_root_media{
  flex: 0 0 auto;
  overflow: hidden;
  align-self: flex-start;
  width: 0;
  height: 0;
}

.post_thread_root_media img{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.post_thread_root_body{
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.post_thread_root_body.no-media {
    padding-left: 10px;
}

.post_thread_root_meta{
    font-size: 10px;
    font-weight: 400;
    color: gray;
    padding: 5px 5px 2px;
}

.post_thread_root_text{
    min-width: 0;
    font-size: 12px;
    font-weight: 300;
    text-wrap-mode: wrap;
    padding: 0 5px 5px 5px;
}
/* ================ */





.post_back_btn {
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: var(--br);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    transition: background .3s ease;
}
.post_back_btn:hover { 
    background: var(--bg-hover-btn);
}
.post_back_btn svg {
    width: 18px;
    height: 18px;
}
.page_location {
    font-size: 16px;
    font-weight: 400;
}


/* == Post Footer == */
.post_views, 
.post_comments_btn, 
.post_like, 
.post_dislike,
.comment_like,
.comment_dislike {
    display: flex;
    gap: 5px;
    flex-direction: row;
    align-items: center;
}
.post_like.is-disabled, 
.post_dislike.is-disabled, 
.comment_like.is-disabled, 
.comment_dislike.is-disabled {
    cursor: default;
}
.post-views-icon, 
.post-comments-icon, 
.post-likes-icon, 
.post-dislikes-icon,
.comment-likes-icon,
.comment-dislikes-icon {
    display: flex;
    align-items: center;
}
.post_comments_btn .post-comments-icon,
.comment_like .comment-likes-icon,
.comment_dislike .comment-dislikes-icon,
.post_like .post-likes-icon,
.post_dislike .post-dislikes-icon {
    transform: scale(1);
    transition: transform .3s ease; 
}
.post_comments_btn:hover .post-comments-icon,
.comment_like:hover .comment-likes-icon,
.comment_dislike:hover .comment-dislikes-icon,
.comment_like.active .comment-likes-icon,
.comment_dislike.active .comment-dislikes-icon,
.post_like:hover .post-likes-icon,
.post_dislike:hover .post-dislikes-icon,
.post_like.active .post-likes-icon,
.post_dislike.active .post-dislikes-icon {
    transform: scale(1.3);
}

.post_full .post_comments_btn:hover .post-comments-icon { transform: scale(1); }
.post_full .post_comments_btn:hover { cursor: default; }

.post_comments_btn .post-comments-icon svg,
.comment_like .comment-likes-icon svg,
.comment_dislike .comment-dislikes-icon svg,
.post_like .post-likes-icon svg,
.post_dislike .post-dislikes-icon svg {
    transition: stroke .3s ease;
}
.post_comments_btn:hover .post-comments-icon svg,
.comment_like:hover .comment-likes-icon svg,
.comment_dislike:hover .comment-dislikes-icon svg,
.comment_like.active .comment-likes-icon svg,
.comment_dislike.active .comment-dislikes-icon svg,
.post_like:hover .post-likes-icon svg,
.post_dislike:hover .post-dislikes-icon svg,
.post_like.active .post-likes-icon svg,
.post_dislike.active .post-dislikes-icon svg {
    stroke: rgb(35 120 255);
    transition: stroke .5s ease;
}

.post_full .post_comments_btn:hover .post-comments-icon svg { stroke: currentcolor; }

.comment_dislike:hover .comment-dislikes-icon svg,
.comment_dislike.active .comment-dislikes-icon svg,
.post_dislike:hover .post-dislikes-icon svg,
.post_dislike.active .post-dislikes-icon svg {
    stroke: rgb(255 70 40);
}


.post_like.is-disabled:hover .post-likes-icon,
.post_dislike.is-disabled:hover .post-dislikes-icon,
.post_like.is-disabled .post-likes-icon svg,
.post_dislike.is-disabled .post-dislikes-icon svg,
.comment_like.is-disabled:hover .comment-likes-icon,
.comment_dislike.is-disabled:hover .comment-dislikes-icon,
.comment_like.is-disabled .comment-likes-icon svg,
.comment_dislike.is-disabled .comment-dislikes-icon svg {
    transform: scale(1);
    stroke: currentColor;
}
.post-views-count, 
.post-comments-count, 
.post-likes-count, 
.post-dislikes-count,
.comment-likes-count, 
.comment-dislikes-count {
    display: flex;
    align-items: center;
    font-size: 12px;
}
.post_full .post-views-count {
    cursor: default;
}
/* ================= */

.post_view {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px 20px 0;
}
.post_card, .comment_item {
    display: flex;
    flex-direction: column;
    gap: 0px;
    background: var(--bg-box);
    box-shadow: var(--sh-box);
    border: var(--brd-box);
    border-radius: var(--br);
    transition: background .25s ease;
}
.comments_list .comment_item {
    cursor: pointer;
}
.comment_item.is-new {
  animation: commentFadeIn 0.35s ease;
}

@keyframes commentFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.post_card.access_denied {
    padding: 20px 15px;
    align-items: center;
}
.comments_list {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.comments_title {
    margin: 10px 0 0;
    font-size: 16px;
    font-weight: 400;
    color: #cdcdcd;
}
.post_header, .comment_header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row;
    gap: 8px;
    padding: 10px 10px 0;
}
.left_pos, .right_pos {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 6px;
}
.right_pos {
    position: relative;
    gap: 10px;
}
.active-privacy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-weight: 400;
    user-select: none;
    cursor: default;
    padding: 3px 8px;
    border-radius: var(--br);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    color: gray;
    transition: background .3s ease, color .3s ease;
}
.privacy-mode {
    font-size: 10px;
    line-height: 1;
}
.post_menu, .comment_menu, .feed-menu {
    position: absolute;
    top: 35px;
    right: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-menu);
    padding: 5px;
    min-width: 150px;
    border-radius: var(--br);
    box-shadow: 0 0 20px rgb(0 0 0 / 20%);
    border: var(--brd-box);
    font-size: 12px;
    font-weight: 400;
    z-index: 1;
}
.post_menu_item, .comment_menu_item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 30px;
    border-radius: var(--br);
    padding: 0 8px;
    transition: background .2s ease;
}
.post_menu_item:hover, .comment_menu_item:hover {
    background: var(--bg-hover-menu);
}
.post_menu_item.danger, .comment_menu_item.danger, .au-actions-item.danger { }
.pos-menu-ico, .comm-menu-ico, .au-menu-ico {flex: 0 0 26px;}
.pos-menu-name, .comm-menu-name, .au-menu-name, .au-name-caret {flex: 1;}

.post_more, .comment_more, .feed-menu-btn {
    border-radius: var(--br);
    padding: 2px;
    width: 24px;
    height: 24px;
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    transition: background .3s ease, color .3s ease;
}
.post_more svg, .comment_more svg, .feed-menu-btn svg {
    fill: #9d9d9d;
    transition: all .3s ease;
}
.post_more:hover, 
.comment_more:hover, 
.feed-menu-btn:hover,
.active-privacy:hover,
.post_more.active, 
.comment_more.active, 
.feed-menu-btn.active {
    background: rgb(35 120 220 / 20%);
    color: #fff;
}
.post_more:hover svg, 
.comment_more:hover svg, 
.feed-menu-btn:hover svg, 
.post_more.active svg, 
.comment_more.active svg, 
.feed-menu-btn.active svg {
    fill: #fff;
}

.ps-feed-editor-title, 
.ps-feed-privacy-title, 
.ps-post-editor-title {
    margin: 0;
}
.feed-name-wrap,
.post-feed-select-wrap,
.feed-privacy-view-wrap, 
.feed-privacy-comm-wrap, 
.feed-privacy-group-wrap, 
.post-privacy-view-wrap, 
.post-privacy-comm-wrap,
.post-publication-field-wrap {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 10px;
    align-items: center;
    height: auto;
}
#ps-post-editor-view-privacy,
#ps-post-editor-comment-privacy,
#ps-post-editor-feed,
#ps-post-editor-publication-mode,
#ps-post-editor-scheduled-at {
    padding: 0 6px;
    min-height: 24px;
    font-size: 12px;
    letter-spacing: .02rem;
}


.feed-privacy-set, .post-privacy-set, .post-publication-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.privacy_box_body,
.post-feed-select-body,
.feed_name_box_body,
.post-publication-field {
    background: var(--bg-box);
    border-radius: var(--br);
    box-shadow: 0 0 3px 0 rgb(0 0 0 / 25%);
    padding: 4px 10px;
    font-size: 12px;
}
.ps-feed-editor-error, .ps-post-editor-error {
    color: tomato;
    text-align: center;
    font-weight: 400;
}
.feed-privacy-sublabel {
    font-size: 11px;
    opacity: .5;
    margin-top: 6px;
}
.feed-editor-name-input { max-width: 250px; }

.post_avatar, .post_full .comment_avatar {
    position: relative;
    flex: 0 0 var(--pos-w-avatar);
    width: var(--pos-w-avatar);
    height: var(--pos-h-avatar);
    overflow: hidden;
}
.comments_list .comment_avatar, .comment_form .comment_avatar {
    position: relative;
    flex: 0 0 var(--comm-w-avatar);
    width: var(--comm-w-avatar);
    overflow: hidden;
    display: flex;
}
.comment_avatar.rich_avatar {
    flex: 0 0 var(--pos-w-avatar);
    width: var(--pos-w-avatar);
    height: var(--pos-h-avatar);
}
.comment_actions {
    flex: 0 0 34px;
    height: 34px;
    border-radius: var(--br);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.comment_actions.edit_comment {
    justify-content: flex-end;
    gap: 15px;
    flex: 0;
    height: auto;
}
.comment-edit-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.comment_actions.edit_comment .comment_send,
.comment_actions.edit_comment .comment_send.comment_cancel {
    background: #333;
    border-radius: var(--br);
    height: auto;
    padding: 4px 10px;
    color: rgb(35 180 255);
    transition: background .3s ease;
}
.comment_actions.edit_comment .comment_send.comment_cancel {
    color: tomato;
}
.comment_actions.edit_comment .comment_send:hover,
.comment_actions.edit_comment .comment_send.comment_cancel:hover {
    background: #3b3b3b;
}
.post_avatar img, .post_full .comment_avatar img {
    width: var(--pos-w-avatar);
    height: var(--pos-h-avatar);
    border-radius: 8px;
    object-fit: cover;
}
.comments_list .comment_avatar img, .comment_form .comment_avatar img {
    width: var(--comm-w-avatar);
    height: var(--comm-h-avatar);
    border-radius: 8px;
    object-fit: contain;
}
.comment_avatar.rich_avatar img {
    width: var(--pos-w-avatar);
    height: var(--pos-h-avatar);
}
.post_head_meta, .comment_head_meta {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
}
.post_author_wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
}
.post_pin_marker {display: flex;}
a.post_author, a.comment_author {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}
.comments_list a.comment_author {font-size: 12px;}
a.post_author:hover, a.comment_author:hover { text-decoration:underline; }
.post_date_wrap, .comment_date_wrap {
    font-size: 10px;
    font-weight: 400;
    color: #919191;
}
.post_date_wrap {
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-subscribers-count {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit;
    cursor: default;
}

.post-subscribers-count.is-clickable {
    cursor: pointer;
}

.post-subscribers-count.is-clickable:hover {
    color: #fff;
}

.post-subscribers-count::before {
    content: "";
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: #5e5e5e;
    opacity: .75;
    pointer-events: none;
}
.comments_list .comment_date_wrap { font-size: 9px; }
.post_body, .comment_body {
    position: relative;
    padding: 12px 20px;
}

.post-text-content, .comment_text {
    line-height: 1.3;
    overflow-wrap: anywhere;
    user-select: text;
    font-size: 14px;
}
.post-text-content {
    display: block;
    max-width: 600px;
}
.post_full .post-text-content { cursor: default;}
.create-post-btn_wrap {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 10px 0;
}
.create-post-btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.create-post-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.create-post-btn, .scheduled-post-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    border-radius: var(--br);
    padding: 2px 8px;
    color: #bbbbbb;
    font-weight: 400;
}

.scheduled-post-btn {
    transition: background 0.3s ease, color 0.3s ease;
}

.scheduled-post-btn:hover {
    color: #fff;
}
.pending-publications-btn.active {
    color: #fff;
    background: rgb(35 120 220 / 20%);
}
.pending-publications-heading {
    padding: 6px 20px 6px;
}
.pending-publications-heading h3 {
    margin: 0;
    color: #f1f1f1;
    font-size: 18px;
    font-weight: 600;
}
.create-post-btn span:first-child, .create-post-btn span:first-child svg,
.scheduled-post-btn span:first-child, .scheduled-post-btn span:first-child svg {
    width: 22px;
    height: 22px;
}

.create-post-btn.gradient-btn {
  background: radial-gradient(circle at 50% 50%, #1e324b 0%, #1b2337 100%);
  transition: background-position .5s ease, color .5s ease;
  background-size: 300% 300%;
  background-position: 100% 100%;
}
.create-post-btn.gradient-btn:hover {
  background-position: 0% 0%;
  color: #fff;
}
.post-status-bar {
    padding: 0 20px 3px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 10px;
}
.post-feed-name a {
    color: inherit;
    text-decoration: none;
}
.post-feed-name a:hover { text-decoration: underline; }

.post_edited, .comment_edited, .post-feed-name {
    font-size: 11px;
    font-weight: 500;
    font-style: italic;
    color: #757575;
    user-select: none;
}
.post_edited, .comment_edited {
    font-size: 10px;
}
.comment_edited_body {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
}
.comment_edited {
    text-align: right;
    padding: 0 5px 2px;
    width: fit-content;
}
.post-feed-name {
    font-style: normal;
    display: flex;
    align-items: center;
    gap: 3px;
}

.post_footer, .comment_footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: #8f8f8f;
    font-weight: 400;
    padding: 4px 15px;
    background: rgb(30 40 60 / 25%);
    border-radius: 0 0 var(--br) var(--br);
    transition: background .5s ease;
}

.feed_list .post_card {
    cursor: pointer;
}
.feed_list .post_card:hover, .comments_list .comment_item:hover {
    background: rgb(30 40 60 / 30%);
}

.post_foot_left, .post_foot_right {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}
.comment_form {
    position: relative;
    display: flex;
    align-items: flex-end;
    flex-direction: row;
    gap: 6px;
    padding: 5px 0px;
    border-radius: var(--br);
    z-index: 1;
}
.comment_accept_hint {
    padding: 10px;
    background: #222222;
    text-align: center;
    border-radius: var(--br);
}
textarea.comment_input{
  max-width: -webkit-fill-available;

  box-sizing: border-box;
  height: 30px;             /* 14px (контент) + 8+8 padding = 30 */
  min-height: 30px;
  
  line-height: 1;
  font-size: 14px;
  margin: 0;
  border: none;
  padding: 8px 10px;
  border-radius: 5px;

  overflow-y: hidden;
  resize: none;
}
.comment_send {
    display: flex;
    height: 28px;
    align-items: center;
}
.comment_send svg {
    stroke: rgb(35 120 255);
    transition: stroke .3s ease;
}
.comment_send:hover svg {
    stroke: rgb(35 180 255);
}
.comment_error {
    text-align: center;
    color: tomato;
    font-weight: 400;
}
a.post-in-link {
    text-decoration: none;
    color: inherit;
}
a.post-in-link:hover {
    text-decoration: underline;
}


.reauth-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 280px;
    gap: 10px;
    padding: 20px;
    border-radius: var(--br);
    box-shadow: 0 0 3px aqua;
    background: #222;
}
#reauth_body p {
    margin: 0;
}

.datetime-wrapper {
    position: relative;
    display: inline-block;
    width: -webkit-fill-available;
}

input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    opacity: 0;
}
.calendar-icon {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 2;
}
.button_flex {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 5px;
}
.toggle_icon_arrow {
  display: inline-flex;
  transition: transform 0.3s ease;
}

.toggle_icon_arrow.rotate {
  transform: rotate(-180deg);
}



.cke_notification_warning {
    display: none !important;
}
/*.tooltip {
    position: absolute;
    background: #333;
    color: #fff;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: var(--br);
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 10999;
}*/
h3.flex, h2.flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
}


#change-password-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}



#drafts-modal {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.modal-body, .post-modal-body, .feed-modal-body {
    padding: 6px;
    position: relative;
    background: var(--bg-box);
    border-radius: var(--br);
    box-shadow: 0 0 8px #000;
    width: min(360px, 75dvw);
}
.post-modal-body {
    width: min(600px, 93dvw);
}
.feed-modal-body {
    width: min(520px, 93dvw);
}
.modal-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--bg-box-modal);
    color: var(--clr-modal);
    padding: 30px 20px;
    border-radius: var(--br);
    max-height: 85vh;
    overflow-y: auto;
}

.modal-content h4 {
    margin: 0;
    letter-spacing: 0.06em;
    font-size: 14px;
    margin-bottom: 10px;
}
.modal-content p {
    color: orange;
    margin: 0 0 30px 0;
    letter-spacing: 0.05em;
    text-align: center;
}
.ps-modal-loading-content {
    min-height: 140px;
    align-items: center;
    justify-content: center;
}
#universal-confirm-message {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: center;
}
#universal-confirm-message .code-block {
    background: #333;
    padding: 10px;
    border-radius: var(--br);
}
#universal-confirm-message .important-note {
    font-size: 14px;
    color: orange;
    font-weight: 400;
}

.draft-item {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 2px;
    user-select: none;
}

.draft-select {
    display: flex;
    flex-direction: column;
    position: relative;
    background: #333;
    transition: background 0.3s ease;
    width: 100%;
    border-radius: 5px 0 0 5px;
    padding: 5px;
    gap: 2px;
}
.draft-select:hover {
    background: #444;
}
#drafts-list .delete-draft {
    display: flex;
    align-items: center;
    cursor: pointer;
    background: #7b0000;
    transition: opacity 0.3s ease;
    opacity: 0.5;
    border-radius: 0 5px 5px 0;
    width: 20px;
    font-size: 14px;
    padding: 5px;
}
#drafts-list .delete-draft:hover {
    opacity: 1;
}
#autosave-indicator {
    position: absolute;
    display: flex;
    top: 10px;
    right: 15px;
    width: 24px;
    height: 24px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 10;
    align-items: center;
    justify-content: center;
}
#autosave-indicator.show {
    opacity: 1;
}
#autosave-indicator .icon {
    position: absolute;
    width: 100%;
    height: 100%;
    font-size: 16px;
    line-height: 0px;
    opacity: 0.9;
    color: #28a745;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
#autosave-indicator .spinner {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid rgb(141 141 141 / 30%);
    border-top: 3px solid #28a745;
    border-radius: 50%;
    animation: rotate-indicator 1s linear infinite;
    z-index: 1;
}
@keyframes rotate-indicator {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.drafts-loading_body {
    display: flex;
    position: relative;
    justify-content: center;
    align-items: center;
}
.drafts-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ccc;
    border-top: 4px solid #28a745;
    border-radius: 50%;
    animation: drafts-spin 1s linear infinite;
}
@keyframes drafts-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.form-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}
.form-box h3 {
    font-size: 16px;
    margin: 0;
}
.form-box p {
    margin: 0;
    font-size: .8rem;
}
.form-box_input {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: -webkit-fill-available;
}
.form-box_input p {
    color: #888;
    font-size: .7rem;
}
.QR_block {
    display: flex;
    gap: 16px;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.form-box_input_body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: -webkit-fill-available;
    max-width: 250px;
}
.man-secret {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: -webkit-fill-available;
    background: rgb(136 136 136 / 10%);
    border-radius: var(--br);
    padding: 8px;
}
.man-secret code {
    background: #222222;
    padding: 6px 16px;
    border-radius: var(--br);
    font-size: 14px;
    color: #fff;
}
.man-secret b {
    font-size: 14px;
}

#chg-step1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
#chg-step1 a {
    text-decoration: none;
    font-size: 14px;
    color: #c3c3c3;
    font-weight: 300;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}
#chg-step1 a:hover {
    text-decoration: underline;
    color: aqua;
}
#chg-step2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: -webkit-fill-available;
    max-width: 250px;
}
#chg-step2 .form-group,
#chg-step3 .form-group {
    gap: 10px;
    max-width: none;
}
#chg-step3 {
    gap: 5px;
}
.pw-wrap {
    position: relative;
    width: 100%;
    max-width: 250px;
    
}
.pw-wrap .pw-toggle {
    position: absolute;
    right: 3px;
    top: 3px;
    border: none;
    height: 80%;
    background: rgb(31 31 31);
    color: #a7a7a7;
    font-size: .68rem;
    letter-spacing: .05em;
    cursor: pointer;
    border-radius: var(--br);
    transition: color 0.3s ease;
}
.pw-wrap .pw-toggle:hover {
    color: #fff;
}
.pw-checklist {
    margin: 6px 0 10px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--br);
    max-width: 280px;
}
.pw-checklist li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    flex-direction: row;
    flex-wrap: nowrap;
    line-height: 18px;
}
.pw-ok {
    color:#8be28b;
}
.pw-bad {
    color: tomato;
}

.buttons_nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.buttons_nav__drafts {
    display: flex;
    gap: 10px;
}
.icon_btn_showHide {
    display: flex;
    width: 18px;
}
.text_btn_showHide {
    display: inline-block;
    font-size: 14px;
    text-wrap-mode: nowrap;
}


#clear-draft-btn, 
#delete-selected-btn {
    color: #fff;
    background: #871e28;
    border: none;
    padding: 4px 6px;
    border-radius: var(--br);
    cursor: pointer;
    font-size: 12px;
    line-height: 19px;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    box-shadow: #000000ba 0px 1px 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
}
#clear-draft-btn {
    opacity: 1;
    visibility: visible;
    display: none;
}
#delete-selected-btn.visible {
  opacity: 1;
  visibility: visible;
}
#clear-draft-btn:hover, 
#delete-selected-btn:hover {
    background: #b12532;
    box-shadow: none;
    transform: translateY(1px);
}
#select-all-checkbox {
    width: 16px;
    height: 16px;
}
.clear-btn {
    display: flex;
    margin-bottom: 10px;
    justify-content: space-between;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}
.clear-btn input#newsletter-subject {
    width: 100%;
}
.clear-btn #clear-draft-btn, .clear-btn input#newsletter-subject {
    margin: 0;
}

#verify-password-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
#chg-step2 .form-group:nth-child(2) {
    gap: 6px;
}
.email-code-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
    width: -webkit-fill-available;
    max-width: 250px;
}
.hint {
    font-size: .83rem;
    font-weight: 300;
    color: gray;
}
.hint2 {
    font-size: .83rem;
    font-weight: 300;
    color: orange;
}
.aem-preview .hint {
    font-weight: normal;
    font-size: .75rem;
}
.aem-close:hover {
    box-shadow: black 0 0 0;
    transform: scale(0.95);
}

.modal-backdrop, .universal-confirm-modal {
    display: flex;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.universal-confirm-modal.universal {z-index: 10000;}
.modal-actions {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 10px;
}
.modal-actions .download {
    color: rgb(0 255 255 / 70%);
    font-size: 14px;
    text-decoration: none;
    transition: all .3s ease;
}
.modal-actions .download:hover {
    color: rgb(0 255 255);
    text-decoration: underline;
}

.universal-close-btn, .avatar-close-btn {
    padding: 3px;
    background: var(--bg-box-modal);
    position: absolute;
    top: 5px;
    right: 5px;
    border: none;
    border-radius: var(--br);
    box-shadow: 0 1px 3px #0000008c;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.avatar-close-btn {position:static;}
.universal-close-btn:hover, .avatar-close-btn:hover {
    background: rgb(25 40 60);
    box-shadow: 0 0px 1px #0000008c;
    transform: translateY(1px);
}

.post-feed-select-area,
.post-publication-area,
.post-privacy-area {
    background: var(--bg-box-modal);
    border: var(--brd-box);
    border-radius: var(--br);
    padding: 10px;
}
.post-publication-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.post-schedule-datetime-wrap {
    position: relative;
    display: flex;
    align-items: center;
    max-width: calc(250px + 20px);
    min-width: 148px;
}
.post-schedule-calendar-btn {
    position: absolute;
    right: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: var(--br);
    color: #7cc6ff;
    cursor: pointer;
    transition: background .3s ease, color .3s ease;
}
.post-schedule-calendar-btn:hover {
    background: rgb(35 120 220 / 10%);
    color: #fff;
}
.post-schedule-calendar-btn svg {
    width: 16px;
    height: 16px;
}
.pending-publication-tools {
    display: flex;
    gap: 8px;
    margin-left: auto;
    align-items: center;
    margin-bottom: 5px;
}
.pending-publication-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: var(--br);
    background: rgb(35 120 220 / 14%);
    color: #7cc6ff;
    font-size: 11px;
    font-weight: 500;
}
.pending-publication-chip__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}
.pending-publication-chip__icon svg {
    width: 14px;
    height: 14px;
}
.pending-publication-feed {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 500;
}
.pending-publication-publish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 12px;
    border-radius: var(--br);
    background: rgb(35 120 220 / 20%);
    color: #d7ecff;
    font-size: 12px;
    font-weight: 500;
    transition: background .3s ease, color .3s ease;
}
.pending-publication-publish:hover {
    background: rgb(35 120 220 / 35%);
    color: #fff;
}
.post_card.is-pending-publication {
    cursor: default;
}
.post_card.is-pending-publication .post_footer {
    display: none;
}

/* ===== Post editor feed select ===== */
/*.post-feed-select-area {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #333333;
    border-radius: var(--br);
    box-shadow: rgb(0 0 0 / 50%) 0 0px 2px 0px;
    border: 1px solid rgb(63 63 63 / 75%);
    padding: 8px 10px;
}*/

/*.post-feed-select-area h4 {
    margin: 0;
}*/

/*.post-feed-select-wrap {
    display: flex;
    align-items: center;
    max-width: 320px;
}*/

/* ===== /Post editor feed select ===== */

.post-edit-modal-head-content {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-direction: row;
    margin-bottom: 10px;
}
.post-edit-modal-head-content h4 {
    margin: 0;
}

.password_body {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
}
.prof-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: -webkit-fill-available;
    gap: 20px;
}
.prof-actions.singl-btn { justify-content: center; }
.prof-btn {
    display: flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    border-radius:5px;
    border:1px solid rgba(255,255,255,.2);
    user-select:none;
    transition: all .3s ease;
}
.back-btn {
  background: radial-gradient(circle at 50% 50%, #c1404d 0%, #711821 100%);
  transition: background-position .5s ease;
  background-size: 300% 300%;
  background-position: 0% 0%;
  color: #fff;
}
.foward-btn {
  background: radial-gradient(circle at 50% 50%, green 0%, #003b00 100%);
  transition: background-position .5s ease;
  background-size: 300% 300%;
  background-position: 100% 100%;
  color: #fff;
}
.back-btn:hover {
  background-position: 100% 100%;
}
.foward-btn:hover {
  background-position: 0% 0%;
}


.form_container {
    width: 300px;
    padding: 10px;
}
.form_body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}
.note {
    font-size: 0.7em;
    color: #a3a3a3;
}
.note.count {
    font-size: 0.9em;
    user-select: none;
}
.text-change {}

.select_controls {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    height: 30px;
}
.newsletter-form {
    display: flex;
    flex-direction: column;
    column-gap: 10px;
}
.newsletter-form h3 {
    margin: 0 0 20px 0;
}


.menu-toggle {
    display: none;
}


/* ===== Smart tooltip ===== */
.apnp-smart-tooltip {
  position: fixed;
  z-index: 100000;
  pointer-events: none;
  opacity: 0;
  transition: opacity .14s ease;
  max-width: min(260px, calc(100vw - 16px));
}

.apnp-smart-tooltip .tooltip-bubble {
  position: relative;
  z-index: 2;
  max-width: min(260px, calc(100vw - 16px));
  padding: 6px 9px;
  border-radius: var(--br);
  background: rgba(18, 18, 18, .90);
  color: #fff;
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 0 20px rgba(0,0,0,.35);
}

.apnp-smart-tooltip .tooltip-arrow {
  position: absolute;
  z-index: 3;
  width: 8px;
  height: 8px;
  background: rgba(18, 18, 18, .75);
  transform: rotate(45deg);
  /*box-shadow: 0 4px 12px rgba(0,0,0,.25);*/
}

.apnp-smart-tooltip[data-placement="right"] .tooltip-arrow {
  left: -4px;
  top: var(--tt-arrow-y, 50%);
  margin-top: -4px;
}

.apnp-smart-tooltip[data-placement="left"] .tooltip-arrow {
  right: -4px;
  top: var(--tt-arrow-y, 50%);
  margin-top: -4px;
}

.apnp-smart-tooltip[data-placement="top"] .tooltip-arrow {
  left: var(--tt-arrow-x, 50%);
  bottom: -4px;
  margin-left: -4px;
}

.apnp-smart-tooltip[data-placement="bottom"] .tooltip-arrow {
  left: var(--tt-arrow-x, 50%);
  top: -4px;
  margin-left: -4px;
}
/* ===== /Smart tooltip ===== */


.site_container {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 100vh;
}


.fullscreen.nav_sidebar {
    min-width: 40px;
}
.burger_body {
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    height: 40px;
    width: 40px;
    z-index: 1002;
}
.fullscreen.nav_sidebar .burger {
    margin-left: 5px;
}
.fullscreen .burger {
    position: absolute;
    display: flex;
    font-size: 23px;
    height: 30px;
    width: 30px;
    cursor: pointer;
    color: #2378dc;
    line-height: 1;
    align-items: center;
    justify-content: center;
    user-select: none;
    /*background: #2a2a2a;*/
    border-radius: var(--br);
    margin-left: 15px;
    transition: margin-left 0.3s ease, background 0.3s ease;
    z-index: 2;
}
.burger:hover {
    background: rgb(40 55 70);
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: space-between;
    background: rgb(25 30 40);
    /*background: #141414;*/
    padding: 0 10px;
    height: calc(100dvh - 42px);
    width: 200px;
    padding-top: 42px;
    transform: translateX(0);
    transition: all 0.3s ease;
    border-right: rgb(35 120 220 / 30%) solid 1px;
    z-index: 100;
}
.sidebar .settings_nav, .sidebar .main_nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.sidebar .main_nav:last-child {
    margin-bottom: 2px;
    transition: margin-bottom .3s ease;
}
.sidebar.collapsed .main_nav:last-child {
    margin-bottom: 0;
}
.sidebar.collapsed {
    width: 40px;
    padding: 40px 0px;
}
.fullscreen {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-width: 220px;
    transition: min-width 0.3s ease;
}


.site_body {
    position: relative;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow: hidden;
    width: -webkit-fill-available;
}
.site_top_panel_body {
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 6px;
    flex: 0 0 40px;
    align-items: center;
    justify-content: flex-end;
    padding: 0 10px;
    background: rgb(25 30 40);
    /*background: #141414;*/
    z-index: 1001;
}

.user-info {
    font-size: 12px;
    color: #ccc;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
    gap: 6px;
}
.user-info.signin {
    height: 30px;
}
.user-info.signin .signin_link {
    display: flex;
    height: -webkit-fill-available;
    border-radius: var(--br);
    padding: 4px 10px;
    font-weight: 400;
    background: rgb(35 120 220 / 15%);
    transition: background .3s ease, color .3s ease;
    align-items: center;
}
.user-info.signin .signin_link:hover, .user-info.signin .signin_link.active {
    background: rgb(35 120 220 / 40%);
    color: #fff;
}
.user-info a.profile_link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 31px;
}
.main-panel_wrapper {
    position: relative;
    flex: 1;
    transform: translateZ(0);
    height: calc(100% - 40px);
    background: radial-gradient(circle at 100% 100%, rgba(35, 120, 220, .22), transparent 50%), 
        -webkit-linear-gradient(#141920 0%, #101317 100%);
}
.main-panel_body {
    padding: 10px 20px;
    overflow-y: auto;
    overflow-x: hidden;
    height: -webkit-fill-available;
    background: radial-gradient(circle at 0% 0%, rgba(35, 120, 220, .22), transparent 50%);
}
.main-panel_body.is-messenger {
    padding: 0;
}


button.nav {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    padding: 0 6px;
    background: rgb(30 40 50);
    box-shadow: #2378dc -1px 0 1px;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    transition: margin-bottom 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.main_nav button.red {
    box-shadow: red -1px 0 1px;
}
.main_nav button:hover.red {
    box-shadow: red -2px 0 1px;
    border-left: red solid 1px;
}
/*.sidebar.collapsed .settings_nav button.nav, .sidebar.collapsed .main_nav button.nav {
    margin-bottom: 4px;
}*/
.settings_nav button.active, .main_nav button.active,
.settings_nav button:hover, .main_nav button:hover {
    background: rgb(40 55 70);
    /*background: #3c3c3c;*/
    border-left: #2378dc solid 1px;
    box-shadow: #2378dc -2px 0 1px;
}


.sidebar .icon {
    display: flex;
    height: 27px;
    padding: 4px 0;
}
.sidebar.collapsed .text {
    display: none;
}
.sidebar:not(.collapsed) .text {
    display: inline-block;
}


/* Global APNP toasts */
#apnp-global-toasts.apnp-toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.apnp-toast {
  width: min(420px, calc(100vw - 32px));
  min-width: min(300px, calc(100vw - 32px));
  max-width: 420px;
  box-sizing: border-box;
  margin-top: 8px;
  background: #181b24;
  color: #fff;
  border-radius: var(--br);
  border: 1px solid #2378dc;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  font-size: 14px;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(75px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: auto;
}

.apnp-toast__inner {
  padding: 15px;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.ms-toast-message {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ms-toast-message-head {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ms-toast-message-avatar {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  overflow: hidden;
}

.ms-toast-message-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ms-toast-message-name {
  min-width: 0;
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-toast-message-body {
  color: #cfd6df;
  font-size: 13px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Появление (выезжает снизу) */
.apnp-toast.apnp-toast--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Исчезновение (плавно вниз/прозрачность) */
.apnp-toast.apnp-toast--hiding {
  opacity: 0;
  transform: translateY(0);
}

/* Типы */
.apnp-toast--success {
  border: 1px solid #2ecc71;
  border-left: 4px solid #2ecc71;
}

.apnp-toast--error {
  border: 1px solid #e74c3c;
  border-left: 4px solid #e74c3c;
}



#preloader_wrapper.loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(2px);
    pointer-events: none;
    background: rgb(0 0 0 / 50%);
    z-index: 1;
}

/* === Section profile_info_public === */
.friend-action {
  position: relative;
  display: inline-block;
}

.friend-btn {
    display: flex;
    align-items: center;
    padding: 0 12px;
    min-height: 24px;
    border-radius: var(--br);
    background: rgb(35 120 220 / 20%);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    font-size: 12px;
    letter-spacing: 0.04em;
    color: #fff;
    cursor: pointer;
    transition: background .3s ease;
}
.friend-btn:hover,
.friend-btn[aria-expanded="true"] {
    background: transparent;
}
.friend-btn:focus-visible { outline: 2px solid #4a4a4a; outline-offset: 2px; }

.friend-menu__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 4px 8px;
    font-size: 12px;
    border: 0;
    background: transparent;
    color: #eaeaea;
    cursor: pointer;
    border-radius: var(--br);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.friend-menu__item--cancel {
    color: #ff8a80;
}
.friend-menu__item:hover { background: #242424; }
.friend-menu__item:active { background: #2a2a2a; }
.friend-menu__item:focus-visible { outline: 2px solid #4a4a4a; outline-offset: 2px; }

.friend-menu__item--remove,
.friend-menu__item--decline,
.friend-menu__item--cancel  { color: #ff8a80; }
.friend-menu__item--accept  { color: #4AFF36; }

.friend-menu__item.is-disabled { opacity: .6; pointer-events: none; }

.friend-menu__info {
  padding: 8px 10px;
  color: #aaa;
}

.au-actions-menu, .friend-menu {
    position: absolute;
    top: 35px;
    right: 0;
    display: flex;
    flex-direction: column;
    background: var(--bg-menu);
    padding: 5px;
    min-width: 150px;
    border-radius: var(--br);
    box-shadow: 0 0 20px rgb(0 0 0 / 20%);
    border: var(--brd-box);
    font-size: 12px;
    font-weight: 400;
    z-index: 1;
}
.au-actions-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    height: 30px;
    border-radius: var(--br);
    background: transparent;
    padding: 0 8px;
    transition: background .3s ease;
}
.au-name-caret { 
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.au-actions-item:hover, .au-group-option:hover {
    background: var(--bg-hover-menu);
}
.au-caret{
  display:inline-block;
  width:0; height:0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 160ms ease;
  transform-origin: 50% 45%;
  pointer-events:none;
}
.au-change-group[aria-expanded="true"] .au-caret{ transform: rotate(180deg); }
.au-groups-submenu {
  overflow: hidden;
  height: 0;
  opacity: 0;
  transform: translateY(0px);
  transition:
    height .3s ease,
    opacity .3s ease,
    transform .3s ease;
}

.au-groups-submenu.is-open {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce){
  .au-groups-submenu{ transition: none; }
}

.au-groups-submenu .au-group-option:last-child {
    margin-bottom: 1px;
}
.au-group-option {
    display: flex;
    align-items: center;
    flex-direction: row;
    color: rgb(197 197 197);
    padding: 6px 12px;
    margin: 0 1px;
    border-radius: var(--br);
    transition: all 0.3s ease;
}

/* ===== Post drafts modal ===== */
.ps-post-editor-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.ps-post-editor-actions__left,
.ps-post-editor-actions__right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-post-editor-opt {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.ps-post-drafts-body {
    max-width: 600px;
}

.ps-post-drafts-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ps-post-drafts-title {
    margin: 0;
}

.ps-post-drafts-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    cursor: default;
}

.ps-post-drafts-subtitle {
    font-size: 13px;
    opacity: .85;
}

.ps-post-drafts-count {
    font-size: 12px;
    font-weight: 400;
    color: #9d9d9d;
}

.ps-post-drafts-error {
    padding: 8px 10px;
    border-radius: var(--br);
    background: rgba(180, 20, 20, .18);
    border: 1px solid rgba(255,80,80,.35);
    color: #ffb2b2;
    font-size: 12px;
    line-height: 1.35;
}

.ps-post-drafts-list {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 80px;
    max-height: min(60vh, 460px);
    overflow-y: auto;
}

.ps-post-draft-card {
    display: flex;
    gap: 0px;
    align-items: center;
    padding-left: 6px;
    border-radius: var(--br);
    background: #2f2f2f;
    border: 1px solid rgb(63 63 63 / 70%);
    box-shadow: rgb(0 0 0 / 50%) 0 0 2px 0;
    transition: background .2s ease, border-color .2s ease;
}

.ps-post-draft-card:hover {
    background: #343434;
    border-color: rgb(85 129 255 / 30%);
}

.ps-post-draft-card__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 6px 10px 6px 0;
}

.ps-post-draft-card__preview {
    font-size: 13px;
    line-height: 1.35;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-wrap;
}

.ps-post-draft-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 400;
    line-height: 1;
    color: #bdbdbd;
    border-top: 1px dashed #505050;
    padding: 4px 5px 0;
    width: fit-content;
}

.ps-post-draft-card__meta span[data-role="post-draft-media"] {
    padding: 2px 6px;
    border-radius: var(--br);
    background: rgb(20 70 150);
    color: rgb(134 190 255);
    line-height: 1;
}

.ps-post-draft-card__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    height: -webkit-fill-available;
}

.ps-post-draft-card__delete {
    min-height: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 0 var(--br) var(--br) 0;
    font-size: 12px;
    line-height: 1;
    background: rgb(85 0 0);
    opacity: .5;
    transition: opacity .3s ease;
}

.ps-post-draft-card__delete:hover {
    opacity: 1;
}

.ps-post-drafts-empty {
    text-align: center;
    padding: 24px 0;
}

/* Messenger nav badge */
.ms-nav-badge {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: #008511;
    color: #fff;
    font-weight: 500;
    letter-spacing: .05rem;
    margin-left: auto;
    min-width: 15px;
    height: 16px;
    font-size: 12px;
}

.sidebar.collapsed .ms-nav-badge {
    position: absolute;
    right: 2px;
    top: 2px;
    min-width: 7px;
    width: 7px;
    height: 7px;
    padding: 0;
    overflow: hidden;
    color: transparent;
}

.apnp-toast--clickable {
  cursor: pointer;
}
.profile-subscription-action,
.feed-subscribe-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-subscribers-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: inherit;
    text-decoration: none;
}

.profile-subscribers-link [data-role="subscriber-count"] {
    transition: color .3s ease;
}

.profile-subscribers-link:hover [data-role="subscriber-count"] {
    color: #fff;
    text-decoration: underline;
}
.profile-public-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.profile-subscription-btn,
.feed-subscribe-btn {
    min-height: 24px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--br);
    background: rgb(35 120 220 / 20%);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
    user-select: none;
}

.post-subscribe-action {
    display: inline-flex;
    align-items: center;
}

.post-subscribe-btn {
    min-height: 24px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--br);
    background: var(--bg-hover-btn);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, opacity .2s ease;
    user-select: none;
}

.post-subscribe-btn:hover {
    background: transparent;
}

.post-subscribe-btn.is-subscribed {
    background: transparent;
    color: #dcdcdc;
}

.post-subscribe-btn.is-subscribed:hover {
    background: var(--bg-hover-btn);
    color: #fff;
}

.post-subscribe-btn.is-subscribed[data-subscription-hover-lock="1"]:hover {
    background: transparent;
    color: #dcdcdc;
}

.post-feed-subscribe-actions {
    display: inline-flex;
    align-items: center;
    margin-left: 3px;
}

.post-feed-subscribe-actions::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #5e5e5e;
    margin-right: 8px;
}

.post-feed-subscribe-link {
    color: #2378dc;
    font-size: 10px;
    font-style: normal;
    font-weight: 600;
    cursor: pointer;
    transition: color .2s ease, opacity .2s ease;
}

.post-feed-subscribe-link:hover {
    color: #64a7ff;
}

.post-feed-subscribe-link.is-subscribed {
    color: #8f8f8f;
}

.post-feed-subscribe-link.is-subscribed:hover {
    color: tomato;
}

.post-feed-subscribe-link.is-subscribed[data-subscription-hover-lock="1"]:hover {
    color: #8f8f8f;
}

.profile-subscription-btn:hover,
.feed-subscribe-btn:hover {
    background: transparent;
}

.profile-subscription-btn.is-subscribed,
.feed-subscribe-btn.is-subscribed {
    background: transparent;
    color: #dcdcdc;
    transition: background .3s ease, color .3s ease;
}
.profile-subscription-btn.is-subscribed:hover,
.feed-subscribe-btn.is-subscribed:hover {
    background: rgb(35 120 220 / 20%);
    color: #fff;
}

.profile-subscription-btn.is-subscribed[data-subscription-hover-lock="1"]:hover,
.feed-subscribe-btn.is-subscribed[data-subscription-hover-lock="1"]:hover {
    background: transparent;
    color: #dcdcdc;
}

.profile-subscription-btn.is-loading,
.feed-subscribe-btn.is-loading,
.post-subscribe-btn.is-loading,
.post-feed-subscribe-link.is-loading,
.subscription-notify-btn.is-loading {
    opacity: .7;
    pointer-events: none;
}

.feed-subscribe-actions {
    padding: 10px 10px 0;
}

.subscription-notify-btn {
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    background: transparent;
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    color: #2378dc;
    cursor: pointer;
    transition: color .2s ease, background .2s ease, opacity .2s ease;
}

.subscription-notify-btn svg {
    width: 16px;
    height: 16px;
}

.subscription-notify-btn:hover {
    background: var(--bg-hover-btn);
    color: #4a9cff;
}

.subscription-notify-btn.is-muted {
    color: tomato;
}

.subscriptions-section .tabs-card {
    width: min(100%, 920px);
    max-width: 920px;
}

.au-badge, .subs-badge {
    background: transparent;
    color: #fff;
    padding: 2px 8px;
    border-radius: 20px;
    box-shadow: 0 0 0 1px rgb(35 120 220 / 20%);
    font-size: 11px;
}

.subs-card {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: flex-start;
    padding: 8px 10px;
    border-radius: var(--br);
    background: var(--bg-box);
    box-shadow: var(--sh-box);
    border: var(--brd-box);
    cursor: pointer;
}

.subs-avatar-link {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 10px;
    overflow: hidden;
}

.subs-avatar {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

.subs-card-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.subs-card-actions,
.subs-feed-panel,
.subs-avatar-link,
.subs-user-name {
    cursor: default;
}

.subs-card-head {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.subs-user-name {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.subs-user-name:hover {
    text-decoration: underline;
}

.subs-scope-badge,
.subs-feed-note,
.subs-notify-state {
    display: inline-flex;
    align-items: center;
    height: 18px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgb(35 120 220 / 14%);
    color: #cfe4ff;
    font-size: 11px;
    line-height: 1;
    white-space: nowrap;
}

.subs-card-meta,
.subs-feed-empty,
.subs-empty-text {
    color: #aaa;
    font-size: 12px;
}

.subs-feed-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: 1px;
}

.subs-feed-panel {
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    transition: grid-template-rows .42s ease, opacity .28s ease, transform .36s ease;
}

.subs-card.is-expanded .subs-feed-panel {
    grid-template-rows: 1fr;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.subs-feed-panel > .subs-feed-list,
.subs-feed-panel > .subs-feed-empty {
    min-height: 0;
    overflow: hidden;
}

.subs-feed-chip {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: var(--br);
    background: rgb(27 35 55);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 10%);
}

.subs-feed-info {
    min-width: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.subs-feed-title {
    min-width: 0;
    color: #eee;
    font-size: 12px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.subs-feed-note {
    background: rgb(255 255 255 / 7%);
    color: #bdbdbd;
}

.subs-feed-controls,
.subs-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.subs-card-actions {
    flex-direction: column;
    align-items: flex-end;
}

.subs-feed-notify,
.subs-profile-notify,
.subs-feed-remove,
.subs-unsubscribe-profile {
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 8px;
    border-radius: var(--br);
    box-shadow: var(--sh-btn);
    color: #2378dc;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    transition: background .2s ease, box-shadow .2s ease, color .2s ease, opacity .2s ease;
}

.subs-feed-notify svg,
.subs-profile-notify svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.subs-feed-notify:hover,
.subs-profile-notify:hover {
    background: rgb(35 120 220 / 20%);
    color: #4a9cff;
}

.subs-feed-notify.is-muted,
.subs-profile-notify.is-muted,
.subs-notify-state.is-muted {
    color: tomato;
}

.subs-feed-remove,
.subs-unsubscribe-profile {
    color: tomato;
}

.subs-feed-remove:hover,
.subs-unsubscribe-profile:hover {
    background: rgb(255 99 71 / 20%);
    box-shadow: 0 0 0 1px rgb(255 99 71 / 20%);
    color: #ff8f7f;
}

.subs-feed-notify.is-loading,
.subs-profile-notify.is-loading,
.subs-feed-remove.is-loading,
.subs-unsubscribe-profile.is-loading {
    opacity: .65;
    pointer-events: none;
}

.subs-empty,
.subs-loading {
    min-height: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 18px;
    border-radius: var(--br);
    background: rgb(30 40 60 / 80%);
    box-shadow: 0 0 0 1px rgb(35 120 220 / 10%);
    text-align: center;
}

.subs-empty-title {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

.subs-loading span {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid rgb(255 255 255 / 16%);
    border-top-color: #2378dc;
    animation: subsSpin .8s linear infinite;
}

.subs-loading p {
    margin: 0;
    color: #aaa;
    font-size: 12px;
}

@keyframes subsSpin {
    to { transform: rotate(360deg); }
}

@media (max-width: 700px) {
    .subs-card {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .subs-avatar-link {
        width: 40px;
        height: 40px;
    }

    .subs-card-actions {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .subs-feed-controls {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@keyframes pulseChevron {
    0% { transform: translateX(0); opacity: 0.1; }
    50% { transform: translateX(-5px); opacity: 0.5; }
    100% { transform: translateX(0); opacity: 0.1; }
}

@media (min-width: 769px) {
  .apnp-sidebar-overlay {
    display: none;
  }
}

@media (max-width: 768px) {
    .full_post_header { padding: 0 2px 0 5px; }
    .post_full_head { padding: 10px 6px; }
    .ps-post-overlay__body .post_view {
        padding: 6px 2px 10px 5px;
    }
    
    .comments_title {
        margin: 10px 10px 0;
        font-size: calc(14px + (16 - 14) * ((100vw - 320px) / (768 - 320)));
    }
    .post-text-content, .comment_text {
        font-size: calc(12px + (14 - 12) * ((100vw - 320px) / (768 - 320)));
    }
    .post_body, .comment_body {
        padding: calc(6px + (12 - 6) * ((100vw - 320px) / (768 - 320))) 
            calc(10px + (20 - 10) * ((100vw - 320px) / (768 - 320)));
    }
    .post_header, .comment_header {
        padding: calc(6px + (10 - 6) * ((100vw - 320px) / (768 - 320))) 
            calc(6px + (10 - 6) * ((100vw - 320px) / (768 - 320))) 0;
    }
    .post_head_meta, .comment_head_meta {
        font-size: calc(12px + (14 - 12) * ((100vw - 320px) / (768 - 320)));
    }
    .post_date_wrap, .comment_date_wrap {
        font-size: calc(9px + (10 - 9) * ((100vw - 320px) / (768 - 320)));
    }
    
    .site_logo, .site_logo_image {
        height: calc(60px + (100 - 60) * ((100vw - 320px) / (768 - 320)));
        width: calc(88.88px + (148 - 88.88) * ((100vw - 320px) / (768 - 320)));
    }
    .site_header_info span.site-name { font-size: calc(15px + (21 - 15) * ((100vw - 320px) / (768 - 320))); }
    .profile-summary, .site-summary { font-size: calc(11px + (12 - 11) * ((100vw - 320px) / (768 - 320))); }
    .section_avatar_body, .section_header_body {
        flex-direction: column;
        gap: 5px;
    }
    .site_header_info {
        align-items: center;
        gap: 5px;
    }
    .site_logo_info_wrap {
        flex-direction: column;
        gap: 8px;
    }
    .user_avatar_info_wrap {
        flex-direction: column;
        gap: 8px;
    }
    .user_profile_avatar {
        width: calc(60px + (100 - 60) * ((100vw - 320px) / (768 - 320)));
        height: calc(60px + (100 - 60) * ((100vw - 320px) / (768 - 320)));
    }
    .user_header_info span.user-name {
        font-size: calc(16px + (21 - 16) * ((100vw - 320px) / (768 - 320)));
    }
    .section_header_nav {
        padding: 0 calc(10px + (30 - 10) * ((100vw - 320px) / (768 - 320)));
    }
    .friend-menu {
        right: 50%;
        transform: translateX(50%);
    }
    .avatar_upload_block {
        bottom: auto;
    }
    .user_header_info {
        align-items: center;
    }
    .subscribers-wrapper {
        gap: 5px;
        row-gap: 20px;
    }
    .nav_sidebar {
        min-width: fit-content;
    }
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar.active {
        transform: translateX(0);
    }

    .sidebar.active::before {
        animation: none;
        opacity: 0;
    }

    .main-panel_body {
        padding: 10px 4px 10px 6px;
        height: calc(100dvh - 60px);
    }
    .main-panel_body.is-messenger {
        height: calc(100dvh - 40px);
    }
    .site_body {
        margin-left: -40px;
    }
    .fullscreen {
        min-width: 0;
    }
    #tabs-title {
        margin-top: 52px;
    }
    .profile-public-actions {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 640px) {
    .modal-content {
        padding: 30px 10px;
    }
    .create-post-btn_wrap {
        align-items: flex-start;
    }
    .pending-publications-btn {
        min-width: 0;
    }
    .pending-publication-tools {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .privacy_box_body, .feed_name_box_body {
        padding: 6px 10px;
    }
    .clear-btn {
        gap: 10px;
    }
    .clear-btn input#newsletter-subject {
        padding: 10px;
    }
}

@media (max-width: 600px) {
    .feed-subscribe-actions {
        align-items: stretch;
    }

    .feed-subscribe-btn {
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .notif-dropdown {
        right: calc(5px + (15 - 5) * ((100vw - 410px) / (560 - 410)));
    }
    
    .ps-post-editor-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ps-post-editor-actions__left,
    .ps-post-editor-actions__right {
        width: 100%;
        justify-content: space-between;
    }

    .ps-post-draft-card {
        grid-template-columns: 1fr;
    }

    .ps-post-draft-card__actions {
        justify-content: space-between;
    }
}

@media (max-width: 410px) {
    .notif-dropdown {
        right: 5px;
        left: 5px;
    }
}

@media (max-width: 368px) {
    .buttons_nav {
        flex-direction: column;
    }
}

@media (max-width: 354px) {
    .post-image { max-width: fit-content; }
    h3.flex, h2.flex {
        flex-direction: column;
        justify-content: center;
        gap: 0;
        align-items: center;
    }
}
