@tailwind base;
@tailwind components;
@tailwind utilities;

html {
    font-family: "Inter", sans-serif;
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    tab-size: 4;
    font-feature-settings: normal;
    scrollbar-gutter: stable;
}

:root{
  --header-h: 4.5rem;
  --gap: 1px;
  --layout-gap-count: 2;
  --left-w: 260px;
  --right-w: 420px;
  --center-w: 780px;
  --center-effective-w: min(
    var(--center-w),
    calc(100vw - var(--left-current) - var(--right-current) - (var(--gap) * var(--layout-gap-count)))
  );

  --left-current: var(--left-w);
  --right-current: var(--right-w);

  --header-left-offset: 0px;
  --header-right-offset: 0px;
  --header-side-padding: 1rem;

  --brd: #e5e7eb;
  --panel: #fff;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --toastify-icon-color-success: #28a745;
  --toastify-icon-color-error: #dc3545;
  --toastify-icon-color-white: #FFF;
}
@media (min-width: 1025px) {
  :root {
    --header-left-offset: 112px;
    --header-right-offset: var(--right-current);
    --header-side-padding: 1.75rem;
  }
}

@media (min-width: 1280px) {
  :root {
    --header-left-offset: var(--left-current);
  }
}
body{
  background-color:#f4f4f4 !important;color:#191919 !important;    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-logo {
  width: 44px;
  height: 44px;
  display: block;
  object-fit: contain;
}
.site-logo-link img{
  border-radius:.375rem !important;
}
.site-logo-dark {
  display: none;
}

html.dark .site-logo-light {
  display: none;
}

html.dark .site-logo-dark {
  display: block;
}
i[class^="ki-"]{ font-size:18px; line-height:1;color:#3479E5;}
.ki-16 { font-size: 16px !important; }
.ki-18 { font-size: 18px !important; }
.ki-20 { font-size: 20px !important; }
.ki-22 { font-size: 22px !important; }
.ki-24 { font-size: 24px !important; }
.ki-26 { font-size: 26px !important; }
.ki-28 { font-size: 28px !important; }
.ki-30 { font-size: 30px !important; }
.ki-32 { font-size: 32px !important; }
.fs-7 {
    font-size: .875rem !important;
}
.primary{color:#2385e7 !important;}
.btn-primary{background-color:#0ea5e9 !important;}
.btn-primary:hover{background-color:#0284c7 !important;}
.btn-outline-primary{
  color:#0ea5e9 !important;
  border:1px solid #0ea5e9 !important;
}
.btn-outline-primary:hover{
  border: 1px solid #0284c7 !important;
  background:#FFF !important;
  text-decoration: nona !important;
  color:#0284c7 !important;
  text-decoration: none !important;
}
.btn-secondary{background-color:#ebebf7 !important;border:0 !important;color:#000 !important;}
.btn-secondary:hover{background-color:#dbdfe9 !important;}
.btn-success{background-color:#d1e7dd !important;color:#000 !important;}
.dropdown-menu{
    padding: 0 !important;
}
.frame{
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: var(--gap);
  padding: 0;
  min-height: calc(100vh - var(--header-h));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1040;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;

  background: #ffeedb;
  padding: 0 1rem;
  box-sizing: border-box;
  height: var(--header-h);
  min-height: var(--header-h);
}

.site-header .header-left,
.site-header .topbar-center,
.site-header .header-right {
  height: 100%;
  display: flex;
  align-items: center;
}

.topbar-center .btn-light,
.topbar-center .split-create-toggle,
.site-header .topbar-search {
  height: 42px !important;
}

.site-header .header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.site-header .header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: .75rem;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.site-header .topbar-center {
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

@media (min-width: 1025px) {
  .site-header .topbar-center {
    position: absolute;
    left: 50% !important;
    right: auto !important;
    transform: translateX(calc(-50% + ((var(--left-current) - var(--right-current)) / 2))) !important;

    width: min(
      var(--center-w),
      calc(
        100vw
        - var(--header-left-offset)
        - var(--header-right-offset)
        - (var(--header-side-padding) * 2)
      )
    ) !important;

    max-width: calc(
      100vw
      - var(--header-left-offset)
      - var(--header-right-offset)
      - (var(--header-side-padding) * 2)
    ) !important;

    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .center {
    width: min(
      var(--center-w),
      calc(
        100vw
        - var(--left-current)
        - var(--right-current)
        - (var(--gap) * var(--layout-gap-count))
      )
    ) !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }
}

.site-header .topbar-search {
  width: 100%;
  min-width: 0;
  height: 42px;
  background-color: #ffe2c1 !important;
  border-radius: .475rem !important;
}
.header-burger {
  width: 34px;
  height: 30px;
  border: 0;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 2px;
  margin-right: 12px;
  cursor: pointer;
}
@media (max-width: 1200px) {
  .site-header {
    gap: 10px;
  }

  .site-header .header-right {
    gap: .5rem;
  }

  .site-header .topbar-center .btn-light {
    padding-left: .85rem !important;
    padding-right: .85rem !important;
    font-size: .82rem !important;
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .site-header {
    gap: 10px;
    padding: .5rem .75rem;
  }

  .site-header .topbar-center {
    position: static;
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    flex: 1 1 auto;
  }
}
@media (max-width: 768px) {
  .site-header .topbar-search {
    display: none;
  }
}
.header-right > * {
  flex-shrink: 0;
}

.header-right .dropdown > button,
.header-right .dropdown > a,
.header-right > a,
.header-right > button {
  flex-shrink: 0;
}
.topbar-search{
  height: 42px;
  background-color: #9dd4f6 !important;

}
@media (max-width: 767.98px) {
  .topbar-search {
    display: none !important;
  }
}

@media (max-width: 992px){
  :root { --center-w: 600px; }
}
@media (max-width: 768px){
  :root { --center-w: 100%; }
}
.left{
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: auto;
  flex: 0 0 var(--left-w);
  width: var(--left-w);
  background:#f4f4f4;
  padding-left:15px;
  display: flex;
  flex-direction: column;
}
.left__scroll{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding:0;
}
.middle{
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}
.center{
  width: var(--center-effective-w);
  max-width: var(--center-effective-w);
  min-width: 0;
}
.right{
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  overflow: auto;
  flex: 0 0 var(--right-w);
  width: var(--right-w);
  background:#f4f4f4;
  margin-right: 0;
}

.left.is-collapsed,
.right.is-collapsed{ display:none; }
body.left-collapsed {
  --left-current: 0px;
}

body.right-collapsed {
  --right-current: 0px;
}

body.left-collapsed,
body.right-collapsed {
  --layout-gap-count: 1;
}

body.left-collapsed.right-collapsed {
  --layout-gap-count: 0;
}
html.left-collapsed-init {
  --left-current: 0px;
}

html.right-collapsed-init {
  --right-current: 0px;
}

html.left-collapsed-init,
html.right-collapsed-init {
  --layout-gap-count: 1;
}

html.left-collapsed-init.right-collapsed-init {
  --layout-gap-count: 0;
}

html.left-collapsed-init .left {
  display: none;
}

html.right-collapsed-init .right {
  display: none;
}
@media (max-width: 1024px) {
  #rightToggle {
    color: transparent;
  }
  #rightToggle::after {
    content: '‹';
    color: #000;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    line-height: 1;
    pointer-events: none;
  }

  html.dark #rightToggle::after {
    color: #d1d5db !important;
  }
}
@media (min-width: 1025px) {
  .rb-toggle .rb-ico svg {
    display: inline-block;
    transition: transform .18s ease-out;
  }

  .rb-toggle.is-collapsed .rb-ico svg {
    transform: rotate(180deg);
  }
}
.rb-toggle {
  position: fixed;
  right: 15px;
  top: 85px;
  z-index: 100;
  width: 45px;
  height: 45px;
  border: 1px solid var(--brd);
  background: #fff;
  border-radius: 5px;
}

@media (max-width: 1024px) {
  .rb-toggle {
    top: auto;
    bottom: 30px;
    right: 16px;
  }
  .left__scroll{
  padding:0;
}
}
.sb-caption .sb-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 0;
  color:#111;
  border-radius: 5px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}


@media (min-width: 1025px) {
  .sb-caption .sb-close-btn {
    display: none !important;
  }
}

.left-mobile-head.d-flex {
  display: none !important;
}

@media (max-width: 1024px) {
  .left-mobile-head.d-flex {
    display: flex !important;
  }
}
@media (max-width: 1024px) {
  .left-mobile-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 0 10px;
    background: #c9eaff;
    position: sticky;
    height:4.5rem;
    margin-bottom:20px;
    top: 0;
    z-index: 2;
  }
}

.left-mobile-logo {
  font-size: 1.2rem;
  letter-spacing: 0.3px;
  color: #111;
}

.left-mobile-head .sb-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 0;
  color:#111;
  border-radius: 5px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .left-mobile-head {
    display: flex;
  }
}
@media (max-width: 1024px){
  .left,
  .right {
    position: fixed;
    top: 0;
    bottom: 0;
    height: auto;
    z-index: 1200;
    background: #f4f4f4;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .left {
    left: 0;
    right: auto;
    width: min(80vw, 260px);
    max-width: 100vw;
    transform: translateX(-100%);
    transition: transform .18s ease-out;
  }

  .right {
  right: 0;
  left: auto;
  width: min(80vw, 260px);
  max-width: 100vw;
  transform: translateX(100%);
  transition: transform .18s ease-out;
}

  .left.is-open,
  .right.is-open {
    transform: translateX(0);
  }

  .left.is-collapsed,
  .right.is-collapsed {
    display: none;
  }

  .frame {
    gap: 0;
  }

  .right * {
    max-width: 100%;
    box-sizing: border-box;
  }
}
@media (max-width: 768px){
  .right {
    width: 100vw !important;
    max-width: 100vw !important;
    right: 0 !important;
    left: auto !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}
@media (max-width: 1024px) {
  :root {
    --left-current: 0px;
    --right-current: 0px;
    --layout-gap-count: 0;
    --center-effective-w: 100%;
  }

  .frame {
    display: block !important;
    gap: 0 !important;
    min-height: calc(100vh - var(--header-h));
  }

  .middle {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
  }

  .center {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  main.center {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .site-header .topbar-center {
    position: static !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    flex: 1 1 auto !important;
  }
}
@media (max-width: 1024px){
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .right {
    overscroll-behavior: contain;
  }
}
@media (max-width: 768px){
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .right {
    min-width: 0 !important;
  }

  .right,
  .right__scroll,
  .right .sb-section,
  .right .sidebar-comment-item,
  .right .comment-preview-row,
  .right .sb-content {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .right * {
    box-sizing: border-box;
  }

  .right img,
  .right iframe,
  .right video {
    max-width: 100% !important;
    height: auto;
  }

  .right a,
  .right p,
  .right div,
  .right span {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}
@media (max-width: 767.98px) {
  .site-header {
    justify-content: space-between !important;
  }

  .site-header .topbar-center {
    display: none !important;
  }

  .middle,
  .center,
  main.center {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .center .container,
  .center .container-fluid {
    max-width: 100% !important;
   /* padding-left: 0 !important;
    padding-right: 0 !important; */
  }

  .center .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .center [class*="col-"] {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
@media (max-width: 1024px) and (max-height: 500px) and (orientation: landscape) {
  .site-header {
    justify-content: space-between !important;
  }

  .site-header .topbar-center {
    display: none !important;
  }

  .site-header .header-left .d-md-none,
  .site-header .header-right .d-md-none {
    display: flex !important;
    align-items: center !important;
  }

  .site-header .header-left,
  .site-header .header-right {
    flex: 0 0 auto !important;
    min-width: 0 !important;
  }

  .site-header .header-right {
    gap: .75rem !important;
  }

  .middle,
  .center,
  main.center {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .center .container,
  .center .container-fluid {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .center .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .center [class*="col-"] {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.25);
  backdrop-filter: blur(2px);
  z-index: 1190;
}
.sidebar-overlay.d-none {
  display: none;
}
@media (max-width: 1024px) {
  .sidebar-comment-item {
    border-top: 1px solid #ddd;
    padding-top:10px;
  }
}
@media (max-width: 1024px) {
    html.dark .sidebar-comment-item {
        border-top: 1px solid #1f2937;
    }
}
.sb-section + .sb-section{ margin-top: 28px; }
.sb-caption{
  font-size: 12px;
  letter-spacing: .08em;
  font-weight: 700;
  color: #9aa2b1;
  margin:10px;
  text-transform: uppercase;
}

.sb-item{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 6px 8px;
  border-radius: 10px;
  color: #111827;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease, transform .02s;
}
.sb-item:hover{
  background: #fff;
}
.sb-item:active{
  transform: translateY(1px);
}
.sb-item.is-active{
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  border: 1px solid #e8ebf1;
}

.sb-ico{
  width: 28px; height: 28px;
  flex: 0 0 28px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
  overflow: hidden;
}
.sb-ico img{ width:100%; height:100%; object-fit: cover; display:block; }
.sb-ico-placeholder{
  width:100%; height:100%;
  display:grid; place-items:center;
  font-weight: 800; color:#9aa2b1;
}

.sb-ico-round{
  border-radius: 50%;
  background: #fff;
}

.sb-title{
  font-size: 16px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.sb-content {
    flex: 1;
}

.sidebar__footer{
  margin-top: auto;
  padding: 16px;
}
.sidebar__footer a{
  font-size:13px;display:block; color:#6b7280; text-decoration:none; margin:6px 0;
}
.sidebar__footer a:hover{ text-decoration: underline; }

  .stack-avatars { display: flex; flex-direction: column; }
  .avatar-sq {
    width: 44px; height: 44px;
    border-radius: 12px;
    object-fit: cover;
    background: #222;
  }
  .post-hero-title {
    font-weight: 700;
    line-height: 1.2;
    font-size: clamp(1.25rem, 2vw + 0.5rem, 1.75rem);
  }
  .post-hero-sub { font-size: 0.95rem; }
  .shadow-sm { box-shadow: 0 2px 6px rgba(0,0,0,.2); }
/* Комментарии — убрать синюю обводку textarea при фокусе */
#comment-main-form textarea:focus,
#comment-main-form textarea:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
/* Комментарии — убрать синюю рамку у основной формы, ответа и редактирования */
#comments textarea,
#comments textarea:focus,
#comments textarea:focus-visible,
#comments textarea:active,
.comment textarea,
.comment textarea:focus,
.comment textarea:focus-visible,
.comment textarea:active {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}
  .community-hero{
    background:#fff;
    color:#191919;
    border-radius:0.675rem;
    padding:0;
  }
  .community-avatar--placeholder{
  display:flex;
  align-items:center;
  justify-content:center;

  width:180px;
  height:180px;

  background:#749BF4;
  color:#fff;

  font-weight:700;
  font-size:72px;
  line-height:1;

  border:4px solid #fff;
  border-radius:.675rem;
}
.community-avatar-wrapper .community-avatar.community-avatar--placeholder {
  width: 180px !important;
  height: 180px !important;
  min-width: 180px !important;
  min-height: 180px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  position: relative !important;

  background: #749BF4 !important;
  color: #fff !important;

  font-weight: 700 !important;
  font-size: 72px !important;
  line-height: 1 !important;
  text-align: center !important;

  border: 4px solid #fff !important;
  border-radius: .675rem !important;

  object-fit: unset !important;
}
  .community-title{
    font-weight:800;
    letter-spacing:.2px;
    font-size: 1.875rem;
    line-height: 1.4;
    color:#191919;
  }
  .community-subtitle{
    color:#000;
    font-size:clamp(16px, 2vw, 20px);
    margin:8px 0 16px;
  }
  .community-meta{
    list-style:none; padding:0;
    display:flex; gap:28px; justify-content:center; flex-wrap:wrap;
    color:#000;
  }
  .community-meta li{ display:inline-flex; align-items:center; gap:8px; }
  .community-meta .meta-ico{ font-size:18px; line-height:1; }

  .community-tabs{
    border-top:1px solid rgba(0,0,0,.06);
    background:transparent;
  }
  .community-tabs .nav-underline .nav-link{
    color:#707077;;
    padding:18px 0 15px;
    border-bottom:3px solid transparent;
  }
  .community-tabs .nav-underline .nav-link:hover{
    color:#000;
  }
  .community-tabs .nav-underline .nav-link.active{
    color:#000;
    border-bottom-color:#ffaf3d;
  }

@media (min-width: 1200px) {
h1.card-title, h2.card-title
 {
  font-size: 1.745rem;
  line-height: 1.4;
}
}
h1.card-title a[href]::before,
h1.card-title a[href]::after {
  content: none !important;
}
.badge-online{
  background-color:#18b36b;
  box-shadow:0 2px 6px rgba(0,0,0,.15);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.pm-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pm-title {
  min-width: 0;
  flex: 1 1 auto;
}

.pm-time {
  font-size: .85rem;
  white-space: nowrap;
  align-self: flex-start;
  flex: 0 0 auto;
}
.pm-avatars {
  position: relative;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
}

.pm-user {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #eee;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.pm-user--placeholder {
  width: 40px;
  height: 40px;
  border-radius: .375rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: #749BF4;
}
html.dark .pm-user--placeholder {
  width: 40px;
  height: 40px;
  border-radius: .375rem;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: #1f2937;
}
.pm-comm {
  position: absolute;
  bottom: -7px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  object-fit: cover;
  background: #FFF;
  border: 1px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.pm-comm--placeholder {
  position: absolute;
  bottom: -7px;
  right: -10px;
  width: 28px;
  height: 28px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  background: #98a2b3;
  border: 1px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
}

.pm-text {
  flex: 1;
  min-width: 0;
}

.pm-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pm-title {
  font-size: .875rem;
  letter-spacing: .2px;
  line-height: 1.2;
}

.pm-title a {
  color: #303134;
  text-decoration: none;
}

.pm-title a:hover {
  text-decoration: none;
}

.pm-sub {
  margin: 5px 0 0 5px;
  color: #6b7280;
  font-size:.875rem;
}

.pm-author {
  color: #4c4d4f;
  text-decoration: none;
}

.pm-author:hover {
  text-decoration: none;
}

.pm-time {
  font-size: .85rem;
  white-space: nowrap;
}

  #editorjs-view .codex-editor__redactor {
    padding-bottom: 0 !important;
  }

  .ce-block__content{
    max-width:100% !important;
  }
.reactions-block {
    display: none !important;
}
.reaction-container {
    position: relative;
    display: inline-block;
}

.reaction-popup {
    position: absolute;
    bottom: 110%;
    left: 0;
    display: flex;
    gap: 5px;
    background: #fff;
    border-radius: 20px;
    padding: 6px 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease-in-out;
    z-index: 999;
}

.reaction-container:hover .reaction-popup {
    opacity: 1;
    visibility: visible;
}

.reaction-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
    padding: 0;
    transition: transform 0.2s ease;
}

.reaction-btn:hover {
    transform: scale(1.15);
}
@keyframes pop {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.4); }
  60%  { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.animate-pop {
  animation: pop 0.4s ease;
}
.reaction-splash {
  position: absolute;
  top: 50%;
  left: 50%;
  pointer-events: none;
  width: 10px;
  height: 10px;
  background: rgba(0, 123, 255, 0.4);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: splash 0.6s ease-out forwards;
  z-index: 1000;
}

@keyframes splash {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(8);
  }
}
.cursor{
  cursor: pointer;
}
.community-tabs .nav-underline .nav-link{
  font-size: .8rem;font-weight: 600;
}
.card, .card-img, .community-hero, .alert{ border-radius:.675rem !important; }
.icon-button{
  background: none;
  border: 0;
  padding: 0;
  line-height: 0;
  cursor: pointer;
}
.comment {
  margin-bottom: 16px;
}
.comment-text {
  font-size: 1.1rem !important;
  line-height: 1.6;
  color: #09090b;
  font-weight:400
}
.comment-text--emoji {
  font-size: 32px !important;
  line-height: 1.2 !important;
  text-align: left;
}
.page-text h1 {
    font-size: 1.875rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 2.5rem;
}
.page-text h2 {
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
}
.page-text h3 {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 1.25rem;
    margin-top: 1.75rem;
}
 .page-text p {
    margin-bottom: .75rem;
    margin-top: .75rem;
}
.page-text ul {
    padding-left: 1.25rem;
    margin-left:.5rem;
}
.page-text ul li {
    position: relative;
    font-size:1.1rem;
    line-height:1.6;
}
.c-body {
  position: relative;
  min-height: 36px;
}

.c-ava {
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  overflow: hidden;
}

.c-ava img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

.c-ava.is-online::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 7px;
  height: 7px;
  background: #30b03d;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #FFF;
    transform: translate(calc (36px - 10px), calc(-1 * 10px + 1px));
}

.c-ava-inline {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  overflow: hidden;
}

.c-ava-inline img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-ava-inline.is-online::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 2px;
  width: 7px;
  height: 7px;
  background: #30b03d;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #fff;
}

.c-content {
  margin-top: 0
}
.c-content,
[class*="c-content"] {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

.c-content .pm-title {
  line-height: 1.2;
}

.comment-editor textarea,
#reply-form textarea {
  width: 100%;
}

#reply-form-wrapper {
  position: relative;
  z-index: 5;
}

#reply-form .reply-form-box,
#reply-form .reply-form-textarea {
  background: var(--bs-body-bg) !important;
}

html.dark #reply-form .reply-form-box,
html.dark #reply-form .reply-form-textarea {
  background: #111827 !important;
}

.c-actions a {
  font-size: 14px;
  color: #2563eb;
  text-decoration: none;
}
.c-actions a:hover {
  text-decoration: underline;
}

.c-reply-form {
  margin-top: 8px;
}
.c-content .pm-title > .d-flex.flex-column {
    margin-left: 45px;
}

:root{
  --c-line: #e5e7eb;
  --elbow-top: 18px;
  --elbow-w: 14px;
}
.c-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-children {
  position: relative;
  padding-left: 14px;
}

.c-children.c-children--flat {
  padding-left: 0;
}
.c-children.c-children--flat > .c-list > .c-item::before,
.c-children.c-children--flat > .c-list > .c-item::after {
  content: none;
}

.c-children > .c-list > .c-item {
  position: relative;
}

.c-children > .c-list > .c-item::before {
  content: "";
  position: absolute;
  left: -10px;
  top: -18px;
  bottom: -8px;
  border-left: 1px solid #e4e4e7;
}

.c-children > .c-list > .c-item:last-child::before {
  bottom: auto;
  height: 26px;
}

.c-children > .c-list > .c-item::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 2px;
  width: 10px;
  height: 18px;

  border-left: 1px solid #e4e4e7;
  border-bottom: 1px solid #e4e4e7;

  border-bottom-left-radius: 14px;
}
.c-children.c-children--flat > .c-list > .c-item::before,
.c-children.c-children--flat > .c-list > .c-item::after {
  content: none;
}
.c-body.comment-focus {
  background-color: #fef3c7;
  border-radius: 12px;
  transition: background-color .4s ease;
}

@keyframes commentFocusFlash {
  0%   { background-color: #fef9c3; }
  60%  { background-color: #fef3c7; }
  100% { background-color: transparent; }
}

.c-body.comment-focus--flash {
  animation: commentFocusFlash 3.5s ease-out forwards;
}
.c-item,
.comment,
.c-body {
  width: 100%;
}

.c-content {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}

.c-ava {
  flex: 0 0 auto;
}

.reply-slot {
  width: 100%;
}
.community-cover {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.community-avatar-wrapper {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
}

.community-avatar {
    width: 180px;
    height: 180px;
    border: 4px solid #fff;
    object-fit: cover;
}

.community-info {
    margin-top: 80px;
}
.default-cover {
    height: 40px;
}
.rounded-top-block {
        border-top-left-radius: .675rem !important;
    border-top-right-radius: .675rem !important;
}
.post-body img {
    max-width: 100% !important;
    height: auto !important;
    margin-left: auto;
    margin-right: auto;
    display: block;
    border-radius: .675rem !important;
}
.card-body img.img-fluid {
        width:auto !important;
    border-radius:.675rem !important;
}
.post-body{--muted:#6c757d;line-height:1.6;font-size:16px;overflow-wrap: anywhere;
    word-break: break-word;}
.post-body p{}
.post-body h1,.post-body h2,.post-body h3,.post-body h4,.post-body h5,.post-body h6{
  margin:1.25rem 0 .75rem;font-weight:600;line-height:1.25
}
.post-body h1{font-size:2rem}
.post-body h2{font-size:1.75rem}
.post-body h3{font-size:1.5rem}
.post-body h4{font-size:1.25rem}
.post-body h5{font-size:1.125rem}
.post-body h6{font-size:1rem}
.post-body ul,.post-body ol{padding-left:1.25rem;margin:0 0 1rem 1rem}
.post-body li+li{margin-top:.25rem}
.post-body a{text-decoration:none}
.post-body a:hover{text-decoration:underline}
/* Editor.js menu above custom poll block */
.ce-popover,
.ce-popover--opened,
.ce-popover--nested,
.ce-popover__container,
.ce-conversion-toolbar,
.ce-inline-toolbar,
.ce-settings {
  z-index: 9999 !important;
}

.ce-toolbar,
.ce-toolbar__actions,
.ce-toolbar__plus,
.ce-toolbar__settings-btn {
  z-index: 9998 !important;
}

.ejs-poll-block,
.ejs-poll-label,
.ejs-poll-input,
.ejs-poll-options,
.ejs-poll-option-row,
.ejs-poll-label-settings,
.ejs-poll-check {
  position: relative;
  z-index: 1;
}
.editorjs-view img { max-width: 100%; height: auto; border-radius:.675rem; display: block; }
.editorjs-view figure { margin: 1rem 0; }
.editorjs-view figcaption { color: #6c757d; font-size: .9rem; margin-top: .25rem; }
.editorjs-view blockquote { border-left: 4px solid #e5e7eb; padding: .75rem 1rem; color:#444; margin: 1rem 0; }
.post-body blockquote, .post-preview blockquote{margin:0 0 1rem !important;padding:.75rem 1rem;border-left:4px solid #369fff;background:#fafafa;border-radius:.5rem}
.post-body blockquote p, .post-preview blockquote p{margin:0}
.post-body blockquote cite, .post-preview blockquote cite{display:block;margin-top:.5rem;color:#555 !important;font-style:normal}
.comment-text blockquote{margin:1rem 0 !important;padding:.75rem 1rem;border-left:4px solid #369fff;background:#fafafa;border-radius:.5rem}
.codex-editor .cdx-quote {
  display: block;
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  border-left: 4px solid #369fff;
  background: #fafafa;
  border-radius: .5rem;
}
.codex-editor .cdx-quote__text {
  margin: 0;
}
.codex-editor .cdx-quote__caption {
  display: block;
  margin: .5rem 0 0;
  color: var(--muted);
  font-style: normal;
}
.cdx-quote__text {
    min-height: auto !important
}
.post-preview blockquote p + p{
  display: block;
  margin-top: .5rem;
  color: var(--muted);
  font-style: normal;
}
.post-body hr.edx-delimiter{border:0;height:1px;background:#eee;margin:1.25rem 0}

.post-body figure{margin:0 0 1rem}
.post-body figure img{max-width:100%;height:auto;display:block;border-radius:.5rem}
.post-body figure figcaption{font-size:.875rem;color:var(--muted);margin-top:.25rem}

.post-body .ratio{margin:0 0 1rem}
.post-body .ratio iframe{width:100%;height:100%;border:0}

.post-body mark{background:#fff3cd;padding:.05em .25em;border-radius:.2em}
.post-body code{background:#f6f8fa;border:1px solid #eee;border-radius:.25rem;padding:.15em .35em;font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}
.post-body u{text-decoration:underline}
.post-body s{text-decoration:line-through}

.post-body .cdx-checklist{margin:0 0 1rem}
.post-body .cdx-checklist__item{display:flex;align-items: flex-start;gap:.5rem;padding:.25rem 0}
.post-body .cdx-checklist__item input[type="checkbox"]{
  width:20px;height:20px;flex:0 0 20px;margin:0;border-radius:.35rem;
  border:2px solid #cbd5e1;background:#fff;cursor:default;position:relative;
  appearance:none !important;-webkit-appearance:none !important;-moz-appearance:none !important;outline:0 !important;
  box-shadow:none !important;background-clip:padding-box;margin-top: calc(.785em - 10px);
}
.post-body .cdx-checklist__item input[type="checkbox"]:checked{
  background:#369fff;border-color:#369fff;margin-top: calc(.785em - 9px);
}
.post-body .cdx-checklist__item input[type="checkbox"]:checked::after{
  content:"";position:absolute;left:1px;top:-2px;right:0;bottom:0;margin:auto;
  width:6px;height:10px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(45deg)
}
.post-body .cdx-checklist__item span{display:inline-block}

.post-body table{width:100%;border-collapse:collapse;margin:0 0 1rem}
.post-body td,.post-body th{border:1px solid #e5e7eb;padding:.5rem;vertical-align:top}
.post-body th{background:#fafafa;font-weight:600}

.ejs-table-wrapper {
  margin: 16px 0;
  overflow-x: auto;
}

.ejs-table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
}

.ejs-table th,
.ejs-table td {
  border: 1px solid #e5e7eb;
  padding: 8px 10px;
  vertical-align: top;
}

.ejs-table th {
  font-weight: 600;
  background-color: #d1d5db;
}

.ejs-table--with-headings th {
  background-color: #d1d5db;
}
.post-body .ejs-spoiler-block,
.ejs-spoiler-block {
  margin: 0 0 1rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  padding: 0;
}

.post-body .ejs-spoiler-head,
.ejs-spoiler-head {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;

  border: 1px solid #a3c9ff;
  border-radius: 12px;
  background: #e5edff;
}

.post-body .ejs-spoiler-title,
.ejs-spoiler-title {
  flex: 1;
  font-weight: 400;
  color: #111827;
  text-align: left;
  border: 0;
  padding: 0;
}

.post-body .ejs-spoiler-toggle,
.ejs-spoiler-toggle {
  border: none;
  background: transparent;
  padding: 0;
  font-size: .875rem;
  color: #0b57d0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
}

.post-body .ejs-spoiler-body,
.ejs-spoiler-body {
  display: none;
  padding: 12px 16px;
  background: rgba(245, 248, 255, 0.5);

  border: 1px solid #a3c9ff;
  border-top: none;
  border-radius: 0 0 12px 12px;
  color: #191919;
}

.post-body .ejs-spoiler-block.is-open .ejs-spoiler-head,
.ejs-spoiler-block.is-open .ejs-spoiler-head {
  border-radius: 12px 12px 0 0;
}

.post-body .ejs-spoiler-block.is-open .ejs-spoiler-body,
.ejs-spoiler-block.is-open .ejs-spoiler-body {
  display: block;
}

.ce-delimiter {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 1.5rem 0;
  font-size: 1.25rem;
  line-height: 1;
  width: 100%;
    text-align: center;
}

.ce-delimiter:before {
    display: inline-block;
    content: "***";
    font-size: 30px;
    height: 30px;
    letter-spacing: .2em;
}

.ce-block__content,
.ce-toolbar__content {
  margin-left: 20px;
  max-width: calc(100% - 40px);
}
.card-body .ce-block__content {
  margin-left: 0 !important; }
.ce-toolbar {
  left: 0 !important;
}
.ejs-spoiler-preview .ejs-spoiler-toggle {
  pointer-events: none;
  cursor: default;
  opacity: .9;
}

.ce-paragraph[contenteditable="true"]:empty::before,
.ce-paragraph[contenteditable="true"]:has(br:only-child)::before {
  content: attr(data-placeholder);
  color: #9aa1b2;
  display: block;
  pointer-events: none;
}
#editorjs .codex-editor__redactor {min-height:450px;
  padding-bottom: 10px !important;}

.ce-block__content .ce-paragraph{
    padding-top: 5px;
    padding-bottom: 5px;
}
.cdx-block, .card p, .card ol li
 {
    font-size:1.1rem !important;
    line-height: 1.6 !important;
    color: #111 !important;;
}
.card p.text-secondary
 {
    font-size:.9rem !important;
    line-height: 1.6 !important;
    color: #6c757d !important;;
}
.cdx-input
 {
    border:0;
    -webkit-box-shadow: none;
    box-shadow:none;
    border-radius: 0;
    padding: 0;
    color:#6c757d;
}
.cdx-input.cdx-quote__text
 {
    color:#191919 !important;
}
.cdx-input.cdx-quote__caption
 {
    color:#6c757d !important;
}
.image-tool__image img.image-tool__image-picture {
    margin: 0 auto !important;
}
.image-tool__image-picture
 {
    border-radius:.675rem;margin-bottom:0;
}
.image-tool__image {
    margin-bottom: 0 !important;
}
.accordion-button:focus {
    border: 0 !important;box-shadow:none !important;
}
.accordion-button:not(.collapsed) {
    background-color:#f8f9fa !important;
    box-shadow:none !important;
}
.accordion-button:after {
    color:#212529bf !important;
}
.tabs-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scrollbar-width:thin;
  scrollbar-color:#d0d0d0 transparent;
}


.tabs-scroll::-webkit-scrollbar{height:6px}
.tabs-scroll::-webkit-scrollbar-thumb{background:#d0d0d0;border-radius:10px}
.tabs-scroll::-webkit-scrollbar-track{background:transparent}


.tabs-row{
  flex-wrap:nowrap!important;
  white-space:nowrap;
}

.tabs-row .nav-item{display:inline-flex}
.tabs-row .nav-link{padding-inline:0.75rem}

.tabs-scroll.is-scrollable{
  mask-image: linear-gradient(to right, transparent 0, black 16px, black calc(100% - 16px), transparent 100%);
}
.modal-backdrop.show {
  opacity: 1;
}
.modal-backdrop {
  background: rgba(34, 37, 44, 0.65);
  backdrop-filter: blur(34px) saturate(220%);
  -webkit-backdrop-filter: blur(34px) saturate(220%);
}

.auth-modal .modal-dialog {
  max-width: 420px;
  margin: 1.75rem auto;
  transition: transform .2s ease, opacity .2s ease;
}
@media (max-width: 480px) {
  .auth-modal .modal-dialog { max-width: 92vw; }
}

.auth-modal .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow:
    0 20px 50px rgba(0,0,0,.25),
    0 2px 10px rgba(0,0,0,.08);
}

.auth-modal .modal-header {
  border: 0;
  justify-content: center;
  padding: 18px 18px 0;
  position: relative;
}
.auth-modal .modal-title {
  font-weight: 700;
  font-size: 18px;
}
.auth-modal .modal-header .btn-close {
  position: absolute;
  right: 20px;
  top: 20px;
  opacity: .6;
}
.auth-modal .modal-header .btn-close:hover { opacity: 1; }

.auth-modal .modal-body {
  padding: 18px 22px 24px;
}

.auth-modal .form-control {
  border-radius: 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
}
.auth-modal .form-control:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 4px rgba(59,130,246,.15);
}

.auth-modal .btn-primary, .auth-modal .btn-outline-primary {
  border-radius: 10px;
  height: 44px;
  font-weight: 600;
}

.auth-modal .modal-body .auth-links,
.auth-modal .modal-body .d-flex.justify-content-between {
  font-size: 14px;
}
.auth-modal a { text-decoration: none; }
.auth-modal a:hover { text-decoration: underline; }

.auth-modal.show .modal-dialog { transform: translateY(0) scale(1); opacity: 1; }
.auth-modal .modal-dialog { transform: translateY(4px) scale(.99); opacity: 0; }

body.modal-open .frame {
  filter: blur(10.2px);
  transition: filter .2s ease;
}
.card iframe {
  border-radius: .675rem;
  overflow: hidden; 
}

.bookmark-btn .bookmark-icon svg { vertical-align: -0.125em; }

.bookmark-btn[data-bookmarked="1"] .bookmark-icon { color: #0ea5e9; }
.bookmark-btn[data-bookmarked="1"] .bookmark-icon g path:first-child { fill: currentColor; }

.bookmark-btn[data-bookmarked="0"] .bookmark-icon g path:first-child { fill: none; }
.actions-row .d-inline-flex svg {
  display: block;
}

.actions-row .d-inline-flex span {
  line-height: 1;
  display: flex;
  align-items: center;
}

.actions-row .d-inline-flex {
  align-items: center;
}
.bookmark-btn svg { display: block; }
.bookmark-count { line-height: 1; display: flex; align-items: center; }
.comment-preview-row:hover svg,  .comment-preview-row:hover span.text-body{
  color: #0ea5e9 !important;
}
.c-body.comment-focus {
  background-color: #fef3c7;
  border-radius: 12px;
}

@keyframes commentFocusFlash {
  0%   { background-color: #fef9c3; }
  60%  { background-color: #fef3c7; }
  100% { background-color: transparent; }
}

.c-body.comment-focus--flash {
  animation: commentFocusFlash 3.5s ease-out forwards;
}

.highlight-comment {
  border-radius: 10px;
  animation: highlight-fade 3.5s ease forwards;
}

@keyframes highlight-fade {
  0%   { background-color: #fef9c3; }
  60%  { background-color: #fef3c7; }
  100% { background-color: transparent; }
}

/* тёмная тема */
html.dark .c-body.comment-focus,
html.dark .c-body.comment-focus--flash,
html.dark .highlight-comment {
  border-radius: 10px !important;
  animation: commentFocusFlashDark 3.5s ease-out forwards !important;
}

@keyframes commentFocusFlashDark {
  0%   { background-color: #1f2937; }
  60%  { background-color: #1f2937; }
  100% { background-color: transparent; }
}

.attach-name{
  min-width: 0; 
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis; 
  white-space: nowrap; 
}

.comment-attach-left{ min-width:0; overflow:hidden; }
  .c-menu {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 1060;
    min-width: 240px;
    background: #fff;
    padding: 8px;
  }
  .c-menu .dropdown-item {
    width: 100%;
    background: transparent;
    border: 0;
    padding: 10px 12px;
    border-radius: 10px;
    text-align: left;
    font-size: .95rem;
    color: #111827;
  }
  .c-menu .dropdown-item:hover { background: #f5f5f7; }

  .dropdown-menu {
    padding: 6px !important;
    background-color: #FFF !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08), 0 0 1px rgba(0, 0, 0, .16) !important;
    border-radius: 10px !important;
    border:0 !important;
}
.dropdown-item {
    border-radius: 6px !important;font-size:15px !important;line-height:22px !important;
}
.dropdown-item:hover {
    background-color:#f2f2f2 !important;
}

.toast-item{
  display:flex; align-items:center; gap:.5rem;
  padding:.75rem 1rem; margin:0 0 .5rem 0; border-radius:7px;
  color:#09090b; box-shadow:0 8px 24px rgba(0,0,0,.12);
  animation:toastIn .18s ease-out;
  backdrop-filter: blur(6px);
}
.toast-item.success{ background:#FFF; border-bottom: 5px solid rgba(30,160,90,.95); }
.toast-item.error  { background:#FFF; border-bottom: 5px solid rgba(200,60,60,.95); }
.toast-item .toast-close{
  margin-left:auto; background:transparent; border:0; color:#fff;
  font-size:20px; line-height:1; opacity:.9; cursor:pointer;
}
@keyframes toastIn { from{ transform:translateY(-6px); opacity:0 } to{ transform:none; opacity:1 } }

.topbar-search {
  height: 42px;
  background: #fff !important;
  border: 1px solid #eee !important;
  border-radius: 10px;
  padding-left: 14px;
  transition: all 0.15s ease-in-out;
}
.topbar-search:focus {
  border-color: #9dd4f6 !important;
  box-shadow: 0 0 0 3px rgba(157, 212, 246, 0.4);
}

.topbar-center .btn-light {
  background: #fff !important;
  color: #111 !important;
  transition: all 0.15s ease-in-out;
  border-radius:.475rem;
}
.topbar-center .btn-light:hover {
  background: #fff !important;
  border-color: #fff !important;
}

@media (max-width: 767.98px) {
  .topbar-center {
    flex: 1 1 auto;
    justify-content: flex-end;
  }
  .topbar-center .btn-light,
  .topbar-center form {
    display: none !important;
  }
}

.snowflake {
  position: fixed;
  top: -10px;
  color: #9DD4F7;
  font-size: 1rem;
  pointer-events: none;
  user-select: none;
  text-shadow: 0 0 10px rgba(255,255,255,.8);
  animation-name: snowFall;
  animation-timing-function: linear;
}

@keyframes snowFall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(360deg);
    opacity: 0;
  }
}
.mobile-search-form {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #f4f4f4;
  padding: 8px 12px 10px;
  gap: 6px;
  display: flex;
  transform: translateY(-10px);
  opacity: 0;
  pointer-events: none;
  transition: transform .18s ease-out, opacity .18s ease-out;
  z-index: 1100;
}

.mobile-search-form input.form-control {
  background: #fff;
  border: 0;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  font-size: .9rem;
}

.site-header.mobile-search-open .mobile-search-form {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

@media (min-width: 768px) {
  .mobile-search-form {
    display: none;
  }
}

.topbar-search:focus,
#mobile-search-panel input:focus {
  outline: none !important;
  box-shadow: none !important;
}

.grecaptcha-badge {
  visibility: hidden !important;
}

  .shadow-lite, button.shadow-lite{
    box-shadow: 0 1px 0 rgba(0, 0, 0, .09) !important;
  }

.pencil{
    flex-shrink: 0;
    height:.8rem;
    width:.8rem;
}
@media (max-width: 575px) {
  .accordion-body .actions-row {
    flex-direction: column !important;
    text-align: center;
    gap: .5rem !important;
  }
}
@media (max-width: 576px) {
    .profile-post .card,
    .community-hero .card, .community-hero , .rounded-top-block, .card {
        border-radius: 0 !important;
    }
}

  .profile-menu .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .75rem 1rem !important;
    font-size: .95rem !important;
  }

  .profile-menu li + li {
    border-top: 1px solid #f1f1f3;
  }

  .profile-menu .dropdown-item:hover, .profile-menu .dropdown-item:focus {
    background-color: #d1d5db;border-radius:0 !important;
    color: #000 !important;
  }
    .card.pinned .card-body .card.mt-3, .card.pinned .card-body .card.mb-3{
    margin-top: 0 !important;margin-bottom: 0 !important
}
.card.pinned {
    border-radius: .675rem !important;
}
@media (max-width: 767px) {
    .card.pinned {
        border-radius: 0 !important;
        border: 0 !important;
    }
.post-body .ejs-spoiler-head, .ejs-spoiler-head {
    padding:7px;
}    
}

  .error404-card {
    border-radius: .675rem !important;
    background: var(--bs-card-bg);
  }

  .error404-body {
    min-height: 480px;
    padding: 48px 24px 30px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .error404-gif {
    display: block;
    width: 426px;
    max-width: 100%;
    height: auto;
    margin-bottom: 34px;
    border-radius: 8px;
    filter: grayscale(100%);
    object-fit: contain;
  }

  .error404-code {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 30px;
    padding: 0 10px;
    margin-bottom: 22px;
    border-radius: 7px;
    background: #2f3034;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .14em;
  }

  .error404-title {
    margin: 0 0 14px;
    color: var(--bs-body-color);
    font-size: 1.85rem;
    line-height: 1.25;
    font-weight: 700;
  }

  .error404-text {
    margin: 0 0 20px;
    color: var(--bs-secondary-color);
    font-size: 1rem;
    line-height: 1.45;
  }

 .error404-button {
  min-width: 170px;
  height: 40px;
  padding: 0 18px !important;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

  .error404-button-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  line-height: 1;
}

.error404-button-inner svg {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 auto;
}

 .error404-description {
    margin: 24px 0 0;
    color: var(--bs-secondary-color);
    font-size: .8rem !important;
    line-height: 1.45;
    font-weight: 400 !important;
  }

  .error404-description a {
    color: var(--bs-secondary-color);
    text-decoration: none;
  }

  .error404-description a:hover {
    color: var(--bs-primary);
    text-decoration: underline;
  }

  @media (max-width: 767.98px) {
    .error404-body {
      min-height: 430px;
      padding: 34px 18px 26px;
    }

    .error404-gif {
      width: 340px;
      margin-bottom: 28px;
    }

    .error404-code {
      height: 28px;
      min-width: 50px;
      margin-bottom: 18px;
      font-size: 16px;
    }

    .error404-title {
      font-size: 1.4rem;
    }

    .error404-text {
      font-size: .95rem;
    }

    .error404-button {
      min-width: 155px;
      min-height: 38px;
      font-size: .9rem;
    }

    .error404-description {
      margin-top: 22px;
      font-size: .85rem;
    }
  }

  @media (max-width: 575.98px) {
    .error404-card {
      border-radius: 0 !important;
    }

    .error404-body {
      min-height: 400px;
      padding-top: 28px;
    }

    .error404-gif {
      width: 300px;
      margin-bottom: 24px;
    }

    .error404-title {
      font-size: 1.25rem;
    }
  }

.dtf-like{
  display:inline-flex;
  align-items:center;
  border:0;
  border-radius:999px;
  background:#f3f4f6;
  color:#212529cc;
  cursor:pointer;
  line-height:1;
  padding:.4rem .55rem;
  transition:background .15s ease, color .15s ease;
}

.dtf-like.has-count{
  padding:.35rem .55rem;
}

.dtf-like__icon,
.dtf-like svg{
  display:block;
  flex:0 0 auto;
}

.dtf-like__count{
  margin-left:.45rem;
  font-weight:500;
  font-size:1rem;
  line-height:1;
}

.dtf-like:hover{ background:#e5e7eb; }

.dtf-like.is-active{
  background:#fee2e2;
  color:#ff5656;
}
.dtf-like.is-active .dtf-like__icon{
  transform:scale(1.05);
  transition:transform .15s ease, color .15s ease;
}

.dtf-like__count:empty{
  display:none;
}

.dtf-like__heart-filled { display: none; }

.dtf-like.is-active .dtf-like__heart-outline { display: none; }
.dtf-like.is-active .dtf-like__heart-filled  { display: block; }

.dtf-like__icon .dtf-like__heart-outline,
.dtf-like__icon .dtf-like__heart-filled{
  position: absolute;
  inset: 0;
  transform-origin: 50% 50%;
  transition: opacity .15s ease, transform .15s ease;
}

.dtf-like__icon .dtf-like__heart-outline{ opacity: 1; transform: scale(1); }
.dtf-like__icon .dtf-like__heart-filled { opacity: 0; transform: scale(.92); }

.dtf-like.is-active .dtf-like__icon .dtf-like__heart-outline{
  opacity: 0;
  transform: scale(.92);
}
.dtf-like.is-active .dtf-like__icon .dtf-like__heart-filled{
  opacity: 1;
  transform: scale(1.06);
}

a.dtf-like,
a.dtf-like:hover,
a.dtf-like:focus,
a.dtf-like:active {
  text-decoration: none !important;
}

.dtf-like__icon path {
  stroke: currentColor;
  stroke-width: 0.4;
  stroke-linejoin: round;
}

.dtf-like.is-active .dtf-like__icon {
  transform: scale(1.1);
}

.dtf-like__comm__count {
    margin-left: .25rem;
    font-weight: 500;
    font-size: .8rem;
    line-height: 1;
}

.pagination { flex-wrap: wrap; }
.pagination .page-link { white-space: nowrap; }
.c-picker{
  position: relative;
  z-index: 100;
  display: inline-block;
  min-width: 320px;
}
.c-picker__trigger{
  border-radius:12px;
  padding:.5rem .75rem;
  background:#fff;
  border:1px solid var(--bs-border-color);
}

.c-picker__dropdown{
  position: absolute !important;
  top: calc(100% + 6px);
  left: 0;
  z-index: 3050;
  margin: 0 !important;
}
.c-picker__search{
  position:sticky;
  top:0;
  background:#f8f9fa;
  z-index:2;
}

.c-picker__scroll{
  max-height:320px;
  overflow:auto;
}

.c-picker__item{
  display:flex;
  align-items:center;
  padding:.55rem .75rem;
  cursor:pointer;
  gap:.5rem;
}
.c-picker__item:hover,
.c-picker__item.is-focused{
  background:rgba(0,0,0,.04);
}

.c-picker__none{
  border-bottom:1px solid rgba(0,0,0,.08);
}

.cp-ico-placeholder{
  width:26px;
  height:26px;
  border-radius:8px;
  background:#e2e8f0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:600;
  color:#495057;
  flex:0 0 26px;
}
.c-picker__list .c-picker__item:not(.c-picker__none) + .c-picker__item:not(.c-picker__none){
  border-top: 1px solid rgba(0,0,0,.08);
}
.comm-name{
  white-space: normal;
}

@media (max-width: 576px){
  .comm-name{
    display: inline-block;
    max-width: 12ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }
}

.profile-communities{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}
.profile-communities__card{
  background:#fff;
  border:1px solid rgba(0,0,0,.06);
  border-radius:.675rem;
  padding:14px;
}
.profile-communities__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.profile-communities__title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:700;
}
.profile-communities__count{
  font-size:12px;
  padding:.2rem .5rem;
  border-radius:999px;
  background:rgba(0,0,0,.05);
  color:rgba(0,0,0,.55);
}
.profile-communities__list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.pc-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.06);
  background:#f8f9fa;
  text-decoration:none;
  color:inherit;
  max-width:100%;
}
.pc-chip:hover{ background:#f1f3f5; }
.pc-chip__ico{
  width:22px;height:22px;
  border-radius:8px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 26px;
  overflow:hidden;
  background:#e2e8f0;
  color:#495057;
  font-weight:700;
  font-size:13px;
  text-transform:uppercase;
}
.pc-chip__ico img{ width:100%; height:100%; object-fit:cover; display:block; }
.pc-chip__name{
  font-weight:400;
  font-size:14px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:220px;
}
@media (max-width: 576px){
  .pc-chip__name{ max-width:180px; }
}
.comment-text img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 10px 0;
  border-radius: 6px;
}
.pagination-wrap {
    display: flex;
    justify-content: center;
}

.pagination-wrap nav {
    background: #fff;
    padding:.50rem;
    border-radius: .65rem;
    display: inline-block;
}
.page-link { margin-left: -1px; }

.pagination.pagination-noname{
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:.50rem;
    padding-left:0;
    list-style:none;
}

.pagination.pagination-noname .page-link{
    margin-left:0 !important;
    border-radius:.75rem;
    height:2.5rem;
    min-width:2.5rem;
    display:flex;
    justify-content:center;
    align-items:center;
    font-weight:500;
    font-size:1.075rem;

    color:#4b5675;
    background:#fff;
    border:1px solid #dee2e6;
    transition:color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.pagination.pagination-noname .page-link:hover{
    z-index:2;
    color:#1b84ff;
    background-color:#f9f9f9;
}

.pagination.pagination-noname .page-link:focus{
    z-index:3;
    outline:0;
    box-shadow:0 0 0 0.2rem rgba(56,103,214,.25)
}

.pagination.pagination-noname .page-item.active .page-link{
    z-index:3;
    color:#fff;
    background-color:#1b84ff;
}

.pagination.pagination-noname .page-item.disabled .page-link{
    color:#888;
    pointer-events:none;
    cursor:auto;
    background-color:#fff;
    border-color:#dee2e6;
}
.pagination.pagination-noname .page-link {
    border-radius: .75rem !important;
}

.pagination.pagination-noname .page-item:first-child .page-link,
.pagination.pagination-noname .page-item:last-child .page-link {
    border-radius: .75rem !important;
}
.feed-date{
  background:#FFF;
  border-radius:.675rem;
  padding:5px;
  box-shadow:0 1px 0 rgba(0,0,0,.06);
}
.feed-date-btn {
  border: none;
}

.topbar-center .split-create-toggle.show,
.topbar-center .split-create-toggle:active,
.topbar-center .split-create-toggle:focus,
.topbar-center .split-create-toggle:focus-visible,
.topbar-center .btn-light.show,
.topbar-center .btn-light:active,
.topbar-center .btn-light:focus,
.topbar-center .btn-light:focus-visible {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}
.feed-switch{
  display:flex;
  align-items:stretch;
  gap:10px;
  background:#eaebf1;
  border-radius:.675rem;
  padding:8px;
  width:max-content;
}

.feed-pill{
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:.475rem;
  font-weight:500;
  text-decoration:none;
  user-select:none;
  white-space:nowrap;
}

.feed-pill:link,
.feed-pill:visited,
.feed-pill:hover,
.feed-pill:active{
  text-decoration:none;
}

.feed-pill-left{
  color:#111;
  background:transparent;
}

.feed-pill-left.is-active{
  background:#fff;
  color:#111;
  box-shadow:0 1px 0 rgba(0,0,0,.06);
  padding:5px 10px;
}

.feed-pill-left.is-locked{
  color:#9aa3ad;
  opacity:.9;
}

.feed-pill-right{
  background:transparent;
  color:#111;
  box-shadow:none;
  padding:0;
  overflow:hidden;
  display:flex;
  align-items:stretch;
  border-radius:.475rem;
}

.feed-pill-right.is-active{
  background:#fff;
  color:#111;
  box-shadow:0 1px 0 rgba(0,0,0,.06);
  padding:0 0 0 10px;
}

.feed-pill-right-link{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5px 5px 5px 0;
  color:inherit;
  text-decoration:none;
  white-space:nowrap;
}
.feed-pill-right-link:hover{
  text-decoration:none;
  color:inherit;
}

.feed-pill-right:not(.is-active) .feed-caret{
  display:none;
}

.feed-caret{
  border:0;
  background:transparent;
  padding:5px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#111;
}

.feed-caret:focus,
.feed-caret:focus-visible{
  outline:none;
  box-shadow:none;
}

.feed-caret:hover{
  background:rgba(0,0,0,.04);
}

.feed-dropdown{
  border:0;
  border-radius:16px;
  padding:10px;
  min-width:240px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}

.feed-dropdown.dropdown-menu{
  margin-top:8px !important;
}

.feed-dropdown .dropdown-item{
  border-radius:12px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  gap:6px;
  font-weight:600;
}

.feed-dropdown .dropdown-item.active,
.feed-dropdown .dropdown-item:active{
  background:rgba(0,0,0,.04);
  color:#111;
}
.feed-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  min-width:0;
  flex-wrap:nowrap;
}

.feed-date-btn{
  border:0;
  background:#eef0f3;
  border-radius:999px;
  padding:10px 12px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.feed-date-btn:hover{
  background:#e4e7ec;
}

.feed-date-menu{
  border:0;
  border-radius:16px;
  min-width:280px;
  box-shadow:0 10px 30px rgba(0,0,0,.12);
}
.ejs-spoiler-block {
  margin: 0 0 1rem;
  border: 1px solid #a3c9ff;
  border-radius: 12px;
  background: #f5f8ff;
  overflow: hidden;
}

.ejs-spoiler-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #e5edff;
  border: 0;
}

.ejs-spoiler-title {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-size: 1.05rem;
  color: #111827;
  padding: 0;
  outline: none;
  order: 1;
}

.ejs-spoiler-toggle {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #0b57d0;
  font-size: .95rem;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
}

.ejs-spoiler-inner {
  display: none;
  border-top: 1px solid #a3c9ff;
  background: rgba(245, 248, 255, 0.7);
}

.ejs-spoiler-block.is-open .ejs-spoiler-inner {
  display: block;
}

.ejs-spoiler-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.ejs-spoiler-tool {
  border: 1px solid #c7cfdb;
  background: #fff;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: .95rem;
  line-height: 1.2;
  cursor: pointer;
}

.ejs-spoiler-tool:hover {
  background: #f3f6fb;
}

.ejs-spoiler-body-editor {
  position: relative;
  min-height: 120px;
  padding: 12px 16px 16px;
  outline: none;
  color: #191919;
  line-height: 1.6;
  font-size: 1rem;
}

.ejs-spoiler-body-editor[data-empty="1"]::before {
  content: attr(data-placeholder);
  position: absolute;
  top: 12px;
  left: 16px;
  color: #9aa1b2;
  pointer-events: none;
  line-height: 1.6;
}

.ejs-spoiler-body-editor p {
  margin: 0 0 .75rem 0;
}

.ejs-spoiler-body-editor p:last-child {
  margin-bottom: 0;
}

.ejs-spoiler-body-editor ul,
.ejs-spoiler-body-editor ol {
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.ejs-spoiler-body-editor a {
  color: #0b57d0;
  text-decoration: none;
}

.ejs-spoiler-body-editor a:hover {
  text-decoration: underline;
}
.ejs-spoiler-body p:last-child,
.ejs-spoiler-body-editor p:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 767px) {
  .ejs-spoiler-head {
    padding: 10px 12px;
  }

  .ejs-spoiler-toolbar {
    padding: 10px 12px 0;
    gap: 6px;
  }

  .ejs-spoiler-tool {
    padding: 7px 10px;
    font-size: .9rem;
  }

  .ejs-spoiler-body-editor {
    padding: 10px 12px 12px;
  }

  .ejs-spoiler-body-editor[data-empty="1"]::before {
    top: 10px;
    left: 12px;
  }
}

.related-posts-section {
  overflow: hidden;
}

.related-posts-slider {
  overflow-x: visible;
  overflow-y: visible;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 20px;
  align-items: stretch;
}

.related-post-card {
  display: flex;
  position: relative;
  min-width: 290px;
  height: 100%;
  align-items: stretch;
  box-sizing: border-box;
  flex-direction: column;
  color: inherit;
}

.related-post-card__image-wrap {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 24px 24px 0 0;
  align-self: stretch;
  background: #f1f1f1;
}

.related-post-card__image,
.related-post-card__placeholder {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.related-post-card__image {
  object-fit: cover;
  transition: transform .35s ease;
}

.related-post-card:hover .related-post-card__image {
  transform: scale(1.06);
}

.related-post-card__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  font-weight: 800;
  color: #7f8a98;
  background: linear-gradient(135deg, #e8edf2 0%, #dbe3eb 100%);
}

.related-post-card__like {
  display: block;
  position: absolute;
  top: 16px;
  right: 16px;
}

.related-post-card__like-btn {
  display: flex;
  justify-content: center;
  border-radius: 48px;
  align-items: center;
  cursor: pointer;
  min-width: 48px;
  min-height: 48px;
  border: none;
  width: 48px;
  height: 48px;
  padding: 0;
  background-color: rgba(246, 246, 246, 0.75);
  color: #1c1c1c;
}

.related-post-card__content {
  left: 0;
  right: 0;
  border: 1px solid #949494;
  background: #fff;
  display: flex;
  flex-direction: column;
  margin-top: -32px;
  position: relative;
  align-items: stretch;
  padding: 16px;
  border-radius: 24px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 90px;
  box-sizing: border-box;
}

.related-post-card__info {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 5px;
  height: 100%;
  width: 100%;
  flex: 1 1 auto;
}

.related-post-card__title {
  font-style: normal;
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  color: #1c1c1c;
  word-break: break-word;
  text-align: left;
  text-decoration: none;
  overflow: hidden;
  min-height: 54px;
  max-height: 54px;
}

.related-post-card__tags {
  display: flex;
  padding-left: 0;
  gap: 8px;
  margin: auto 0 0 0;
}

.related-post-card__tag {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #1c1c1c;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.related-post-card__meta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: nowrap;
  color: #676767;
  font-size: 15px;
  line-height: 1;
  margin-top: auto;
}

.related-post-card__meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.related-post-card__sep {
  width: 1px;
  min-width: 1px;
  height: 24px;
  background: #d3d3d3;
}

.related-post-card:hover .related-post-card__title {
  color: #0d6efd;
}

@media (max-width: 991.98px) {
  .related-post-card__content {
    min-height: 120px;
  }

  .related-post-card__title {
  font-size: 18px;
  line-height: 24px;
  min-height: 50px;
  max-height: 50px;
}
}

@media (max-width: 767.98px) {
  .related-posts-slider {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .related-posts-slider::-webkit-scrollbar {
    display: none;
  }

  .related-posts-grid {
    display: flex;
    gap: 16px;
    width: max-content;
  }

  .related-post-card {
    width: 320px;
    flex: 0 0 auto;
    height: auto;
  }

  .related-post-card__image-wrap {
    border-radius: 24px 24px 0 0;
  }

  .related-post-card__content {
    min-height: 110px;
  }

  .related-post-card__title {
  font-size: 18px;
  line-height: 24px;
  min-height: 50px;
  max-height: 50px;
}

  .related-post-card__meta {
    font-size: 14px;
    gap: 10px;
  }

  .related-post-card__sep {
    height: 20px;
  }
}
.flash-embed {
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
}

.flash-embed > * {
  max-width: 100%;
}
.preview-fake-link{
  color:#0d6efd;
}
.split-create-toggle{
  position: relative;
  border-left: 0 !important;
}

.split-create-toggle::before{
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: rgba(0, 0, 0, 0.272);
}
/* Profile action buttons */
#profile-actions {
  display: inline-flex;
  align-items: stretch !important;
  justify-content: center;
  gap: .5rem;
  flex-wrap: nowrap;
}

#profile-actions .btn,
#profile-actions button,
#profile-actions .profile-message-btn {
  min-height: 38px;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1.2 !important;
}

#profile-actions .btn:not(.d-none),
#profile-actions button:not(.d-none),
#profile-actions .profile-message-btn:not(.d-none) {
  display: inline-flex !important;
}

#profile-actions .profile-message-form {
  margin: 0;
  align-items: stretch;
}

#profile-actions .profile-message-form:not(.d-none) {
  display: inline-flex !important;
}

#profile-actions .profile-message-btn {
  height: 100%;
}

#profile-actions .d-none,
#profile-actions button.d-none,
#profile-actions .btn.d-none,
#profile-actions form.d-none,
#profile-actions .profile-message-form.d-none {
  display: none !important;
}

@media (max-width: 575.98px) {
  #profile-actions {
    gap: .5rem;
    flex-wrap: nowrap;
  }

  #profile-actions .btn,
  #profile-actions button,
  #profile-actions .profile-message-btn {
    min-height: 38px;
    padding-left: .75rem !important;
    padding-right: .75rem !important;
  }
}

.tg-button-block{
  background:#0EA5E9;border-radius:.425rem !important
}

.tg-button-block:hover{
  background:#0284c7
}

.post-gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.post-gallery-overlay.is-open {
  display: flex;
}

.post-gallery-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 1400px;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-gallery-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: contain;
}

.post-gallery-close {
  position: absolute;
  top: 16px;
  right: 20px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  opacity: .9;
}

.post-gallery-close:hover {
  opacity: 1;
}

.post-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.post-gallery-nav.prev {
  left: 18px;
}

.post-gallery-nav.next {
  right: 18px;
}

.post-gallery-counter {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  color: #fff;
  font-size: 16px;
  line-height: 1;
}

.post-body img,
#editorjs-view img,
.editorjs-view img {
  cursor: zoom-in;
}

@media (max-width: 768px) {
  .post-gallery-overlay {
    padding: 16px;
  }

  .post-gallery-close {
    top: 10px;
    right: 12px;
    font-size: 34px;
  }

  .post-gallery-nav {
    width: 44px;
    height: 44px;
    font-size: 30px;
  }

  .post-gallery-nav.prev {
    left: 8px;
  }

  .post-gallery-nav.next {
    right: 8px;
  }

  .post-gallery-counter {
    bottom: 10px;
    font-size: 14px;
  }

}

.post-preview{
  width:100%;
  min-width:0;
}

/* =========================
   ОДНА картинка
   ========================= */
.post-mosaic-single{
  width:100%;
  max-width:100%;
  overflow:hidden;
  border-radius:.675rem;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  position:relative;
}

.post-mosaic-single .post-mosaic-img{
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  display:block;
  object-fit:contain !important;
  border-radius:.675rem !important;
}

/* =========================
   МОЗАИКА
   ========================= */
.post-mosaic-wrap{
  width:100%;
  max-width:100%;
  overflow:hidden;
  border-radius:.675rem;
}

.post-mosaic{
  display:grid;
  gap:3px;
  width:100%;
  border-radius:.675rem;
  overflow:hidden;
}

.post-mosaic--4{
  grid-template-columns:2fr 1fr;
  grid-template-rows:180px 180px;
}

@media (max-width: 767.98px) {
  .post-mosaic--4 {
    grid-template-rows: 140px 140px;
  }
}

@media (max-width: 575.98px) {
  .post-mosaic--4 {
    grid-template-rows: 125px 125px;
  }
}

.post-mosaic__item{
  position:relative;
  overflow:hidden;
  background:#e5e7eb;
  border-radius:0 !important;
}

.post-mosaic .post-mosaic-img{
  width:100% !important;
  height:100% !important;
  display:block;
  object-fit:cover !important;
  border-radius:0 !important;
}

/* большая слева */
.post-mosaic__item--big{
  grid-row:1 / span 2;
  border-top-left-radius:.675rem !important;
  border-bottom-left-radius:.675rem !important;
}

.post-mosaic__item--big .post-mosaic-img{
  border-top-left-radius:.675rem !important;
  border-bottom-left-radius:.675rem !important;
  border-top-right-radius:0 !important;
  border-bottom-right-radius:0 !important;
}

/* верхняя правая */
.post-mosaic--4 .post-mosaic__item:nth-child(2){
  border-top-right-radius:.675rem !important;
}

.post-mosaic--4 .post-mosaic__item:nth-child(2) .post-mosaic-img{
  border-top-right-radius:.675rem !important;
  border-top-left-radius:0 !important;
  border-bottom-left-radius:0 !important;
  border-bottom-right-radius:0 !important;
}

/* нижняя правая */
.post-mosaic__item--more{
  border-bottom-right-radius:.675rem !important;
}

.post-mosaic__item--more .post-mosaic-img{
  border-bottom-right-radius:.675rem !important;
  border-top-left-radius:0 !important;
  border-top-right-radius:0 !important;
  border-bottom-left-radius:0 !important;
}

.post-mosaic__overlay{
  position:absolute;
  inset:0;
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:2rem;
  font-weight:700;
  line-height:1;
  text-shadow:0 2px 10px rgba(0,0,0,.35);
}

.post-mosaic__item--more::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.28);
}

.post-vote-box{
  display:inline-flex;
  align-items:center;
  gap:0;
  padding:4px;
  border-radius:12px;
  background:rgba(15, 23, 42, .04);
  position:relative;
}

html.dark .post-vote-box{
  background:rgba(31, 41, 55, .5);
}

.post-vote-btn{
  border:0;
  background:transparent;
  width:34px;
  height:34px;
  border-radius:9px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:#36393b;
  transition:background-color .2s ease, color .2s ease, transform .2s ease;
  padding:0;
}
html.dark .post-vote-btn{
  color:#d1d5db;
}
.post-vote-btn svg{
  display:block;
  transition:color .2s ease, opacity .2s ease;
}

/* общий hover */

/* hover для минуса */
.post-vote-btn.post-vote-btn--down:hover{
  color:#ef4444;
}

/* hover для плюса */
.post-vote-btn.post-vote-btn--up:hover{
  color:#22c55e;
}

html.dark .post-vote-btn.post-vote-btn--down:hover{
  color:#f87171;
}

html.dark .post-vote-btn.post-vote-btn--up:hover{
  color:#4ade80;
}

/* активные состояния */
.post-vote-btn.post-vote-btn--up.is-active,
.post-vote-btn.is-active.is-up{
  color:#22c55e;
}

.post-vote-btn.post-vote-btn--down.is-active,
.post-vote-btn.is-active.is-down{
  color:#ef4444;
}

html.dark .post-vote-btn.post-vote-btn--up.is-active,
html.dark .post-vote-btn.is-active.is-up{
  color:#4ade80;
}

html.dark .post-vote-btn.post-vote-btn--down.is-active,
html.dark .post-vote-btn.is-active.is-down{
  color:#f87171;
}

.post-vote-points{
  border:0;
  background:transparent;
  padding:0 2px;
  font-size:15px;
  font-weight:500;
  line-height:1;
  color:#212529;
}

.post-vote-points.is-positive{
  color:#22c55e;
}

.post-vote-points.is-negative{
  color:#ef4444;
}

html.dark .post-vote-points{
  color:#94a3b8;
}

html.dark .post-vote-points.is-positive{
  color:#4ade80;
}

html.dark .post-vote-points.is-negative{
  color:#f87171;
}

.post-voters-popover{
  position:absolute;
  right:0;
  left:auto;
  bottom:calc(100% + 12px);
  width:320px;
  max-width:90vw;
  border-radius:12px;
  padding:10px;
  z-index:30;
  background:rgba(255,255,255, 100);
  border:1px solid rgba(0,0,0,.08);
  box-shadow:0 12px 30px rgba(0,0,0,.12);
}

html.dark .post-voters-popover{
  background:rgba(17,24,39, 100);
  border:1px solid rgba(255,255,255,.08);
  box-shadow:none;
}

.post-voters-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:4px 6px 10px;
}

.post-voters-title{
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  color:#9ca3af;
}

.post-voters-stats{
  font-size:12px;
  font-weight:700;
  color:#9ca3af;
}

.post-voters-body{
  max-height:320px;
  overflow-y:auto;
}

.post-voter-row{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px 12px;
  border-radius:14px;
  text-decoration:none;
  color:inherit;
}

.post-voter-row:hover{
  background:rgba(0,0,0,.04);
}

html.dark .post-voter-row:hover{
  background:rgba(255,255,255,.05);
}

.post-voter-avatar{
  width:40px;
  height:40px;
  border-radius:12px;
  overflow:hidden;
  background:#e2e8f0;
  flex:0 0 40px;
  border-radius: .375rem !important;
}

.post-voter-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  border-radius: .375rem !important;
}

.post-voter-fallback{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:14px;
  font-weight:600;
  color:#0d6efd;
}

.post-voter-name{
  flex:1;
  min-width:0;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.post-voter-name.is-up{
  color:#22c55e;
}

.post-voter-name.is-down{
  color:#ef4444;
}

html.dark .post-voter-name.is-up{
  color:#4ade80;
}

html.dark .post-voter-name.is-down{
  color:#f87171;
}

.post-voter-icon{
  flex:0 0 auto;
  color:#9ca3af;
}

.post-voter-icon.is-up{
  color:#22c55e;
}

.post-voter-icon.is-down{
  color:#ef4444;
}

html.dark .post-voter-icon.is-up{
  color:#4ade80;
}

html.dark .post-voter-icon.is-down{
  color:#f87171;
}

.post-voters-empty{
  padding:14px 12px;
  font-size:14px;
  color:#9ca3af;
}

.post-actions-box{
  display:inline-flex;
  align-items:center;
  gap:2px;
  padding:7px 10px;
  border-radius:12px;
  background:rgba(15, 23, 42, .04);
}

html.dark .post-actions-box{
  background:rgba(31, 41, 55, .5);
}

.post-actions-item{

  min-height:34px;

  padding:0 6px;

  border-radius:10px;

  display:inline-flex;

  align-items:center;

  justify-content:center;

  gap:4px;

  color:inherit;

  transition:.2s ease;

  font-size:15px;

  line-height:1;

}



.post-actions-item span,

.post-actions-item .bookmark-count{

  font-size:15px;

  font-weight:500;

  line-height:1;

}

.post-actions-item .btn,

.post-actions-item button,

.post-actions-item a{

  color:inherit;

  font-size:15px !important;

  line-height:1 !important;

  padding:0 !important;

}

.post-actions-item .dropdown > div{
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

@media (max-width: 576px){
  .post-actions-box{
    gap:2px;
    padding:5px 10px;
  }

  .post-actions-item{
    min-height:32px;
    padding:0 5px;
    gap:3px;
    font-size:14px;
  }

  .post-actions-item span,
  .post-actions-item .bookmark-count{
    font-size:14px;
  }

  .post-vote-btn{
    width:32px;
    height:32px;
  }

  .post-vote-points{
    min-width:22px;
    font-size:13px;
  }
}

.editorjs-embed-ratio {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    background: #000;
}

.editorjs-embed-ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.comment-text .comnone {
    background:#e4e7f4;
}

.comment-video-embed {
    max-width: 720px;
}

.comment-video-embed:not(.comment-telegram-embed):not(.comment-instagram-embed):not(.comment-tiktok-embed) iframe {
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.comment-telegram-embed iframe,
.comment-instagram-embed iframe,
.comment-tiktok-embed iframe {
    border: 0;
    border-radius: 12px;
    background: transparent !important;
}

.comment-telegram-card {
    display: block;
    max-width: 520px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #f8fafc;
    text-decoration: none;
    color: inherit;
}

.comment-telegram-card:hover {
    background: #f1f5f9;
}

.comment-telegram-title {
    display: block;
    font-weight: 700;
    margin-bottom: 3px;
}

.comment-telegram-url {
    display: block;
    font-size: 13px;
    color: #64748b;
}

.sidebar-comment-video {
    width: 148px;
    max-width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.sidebar-comment-video-img {
    display: block;
    width: 148px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
    background: #111827;
}

.sidebar-comment-video-placeholder {
    width: 148px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
}

.sidebar-comment-video-play {
    display: inline-flex;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.18);
    font-size: 13px;
    line-height: 1;
}

.sidebar-comment-video-label {
    max-width: 88px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-comment-video-youtube {
    background: linear-gradient(135deg, #7f1d1d, #dc2626);
}

.sidebar-comment-video-rutube {
    background: linear-gradient(135deg, #111827, #7c3aed);
}

.sidebar-comment-video-vk {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
}

.sidebar-comment-video-telegram {
    background: linear-gradient(135deg, #075985, #0ea5e9);
}
.comment-telegram-embed {
    max-width: 720px;
    background: transparent !important;
}

.comment-telegram-embed iframe {
    background: transparent !important;
    border-radius: 12px;
}

.comment-telegram-embed > iframe {
    display: block;
}
.sidebar-comment-telegram-card {
    width: 150px;
    max-width: 100%;
    min-height: 72px;
    border-radius: 12px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #1d4ed8;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
}

.sidebar-comment-telegram-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #0ea5e9;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sidebar-comment-telegram-text {
    min-width: 0;
    display: block;
}

.sidebar-comment-telegram-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    color: #1e3a8a;
}

.sidebar-comment-telegram-url {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    line-height: 1.2;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-news-card {
  background: var(--bs-body-bg);
  border-radius: .675rem;
  padding: 20px 18px;
}

.home-news-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.home-news-title {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 800;
}

.home-news-date {
  margin-top: 4px;
  font-size: 15px;
  color: var(--bs-secondary-color);
  font-weight: 600;
}

.home-news-link {
  color: var(--bs-secondary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.home-news-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-news-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap:0;
  text-decoration: none;
  color: var(--bs-body-color);
}

.home-news-time {
  color: #9aa2b1;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 500;
}

.home-news-text {
  font-size: 1.04rem;
  line-height: 1.4rem;
  font-weight: 400;
  margin-top:1px;
}

.home-news-comments {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: var(--bs-secondary-color);
  font-size: 16px;
  white-space: nowrap;
}

.home-news-item:hover .home-news-text > span:first-child {
    text-decoration: none;

  color: var(--bs-primary);
}
.home-news-button{
    background-color:#c9eaff !important;
    opacity:80%;
}
.home-news-button:hover {
    opacity:100%;
}
.home-news-button svg {
    height: 1.125rem;
    opacity: .5;
    width: 1.125rem;
}



@media (max-width: 575.98px) {
  .home-news-card {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 18px 16px;
  }

  .home-news-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
  }

  .home-news-text {
    font-size: 18px;
  }

  .home-news-time {
    font-size: 16px;
  }
}
 .communities-page .community-card {
  overflow: hidden;
}

.communities-page .community-card:hover {
  box-shadow: none;
}

.communities-page .community-cover {
  height: 72px;
  position: relative;
  overflow: visible;
  background: #e2e8f0;
}

.communities-page .community-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Затемнение только если есть реальная обложка */
.communities-page .community-cover::after {
  display: none;
}

.communities-page .community-cover.has-cover::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .16);
  pointer-events: none;
}

.communities-page .community-avatar {
  width: 58px;
  height: 58px;
  border-radius: .375rem;
  overflow: hidden;
  border: 2px solid var(--bs-card-bg);
  background: #d0d7db;
  position: absolute;
  left: 1rem;
  bottom: -29px;
  z-index: 2;
}

.communities-page .community-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.communities-page .community-stat-wrap {
  z-index: 2;
}

.communities-page .community-stat {
  background: rgba(15, 23, 42, 0.454);
  color: #fff;
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1;
  backdrop-filter: blur(6px);
  display: inline-flex;
  align-items: center;
  gap: .25rem;
}

.communities-page .community-stat i,
.communities-page .community-stat i span {
  color: #fff;
}

.communities-page .community-stat i {
  font-size: 1rem;
  line-height: 1;
}

.communities-page .community-slug-row {
  position: absolute;
  left: calc(1rem + 58px + .75rem);
  bottom: -26px;
  right: 1rem;
  z-index: 3;
  min-width: 0;
}

.communities-page .community-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}

@media (max-width: 575.98px) {
  .communities-page .community-card {
    border-radius: .675rem !important;
  }

  .communities-page .community-cover {
    height: 88px;
  }

  .communities-page .community-avatar {
    width: 76px;
    height: 76px;
    border-radius: .675rem;
    border-width: 4px;
    left: 1rem;
    bottom: -38px;
  }

  .communities-page .community-slug-row {
    left: calc(1rem + 76px + .75rem);
    bottom: -33px;
    right: 1rem;
  }

  .communities-page .community-card .card-body {
    padding-top: 3.25rem !important;
    padding-left: 1rem;
    padding-right: 1rem;
    padding-bottom: 1rem;
  }

  .communities-page .community-title {
    font-size: 1.25rem !important;
    line-height: 1.2;
  }

  .communities-page .community-slug {
    font-size: .95rem !important;
  }

  .communities-page .community-description {
    font-size: 1rem;
    line-height: 1.45;
    min-height: 2.9em;
  }

  .communities-page .community-stat {
    padding: .3rem .6rem;
    font-size: .85rem;
  }

  .communities-page .community-stat i {
    font-size: 1.05rem;
  }
}

/* =========================================================
   Community detail page — isolated from communities list
   ========================================================= */

.community-detail-page {
  overflow: hidden;
}

.community-detail-page .community-detail-cover {
  width: 100%;
  height: 220px;
  margin-bottom: 100px;
  position: relative;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.community-detail-page .community-avatar-wrapper {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.community-detail-page .community-avatar {
  width: 180px !important;
  height: 180px !important;
  object-fit: cover;
  display: block;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  border: 4px solid #fff;
  border-radius: .675rem !important;
  box-sizing: border-box;
}

.community-detail-page .community-avatar--placeholder {
  width: 180px !important;
  height: 180px !important;
  border: 4px solid #fff;
  border-radius: .675rem !important;
  box-sizing: border-box;
}

/* =========================================================
   Profile detail page — isolated from communities/list styles
   ========================================================= */

.profile-detail-page {
  overflow: hidden;
}

.profile-detail-page .profile-detail-cover {
  width: 100%;
  height: 220px;
  margin-bottom: 100px;
  position: relative;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}

.profile-detail-page .community-avatar-wrapper {
  position: absolute;
  top: 130px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.profile-detail-page .community-avatar {
  width: 180px !important;
  height: 180px !important;
  object-fit: cover;
  display: block;
  position: static !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  transform: none !important;
  border: 4px solid #fff;
  border-radius: .675rem !important;
  box-sizing: border-box;
}

.profile-detail-page .community-avatar--placeholder {
  width: 180px !important;
  height: 180px !important;
  border: 4px solid #fff;
  border-radius: .675rem !important;
  box-sizing: border-box;
}

html.dark .profile-detail-page .profile-detail-cover {
  background-color: #1f2937;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

html.dark .profile-detail-page .community-avatar,
html.dark .profile-detail-page .community-avatar--placeholder {
  border-color: #111827 !important;
}

@media (max-width: 575.98px) {
  .profile-detail-page .profile-detail-cover {
    height: 220px;
    margin-bottom: 100px;
    background-size: cover !important;
    background-position: center center !important;
  }

  .profile-detail-page .community-avatar-wrapper {
    top: 130px;
  }

  .profile-detail-page .community-avatar,
  .profile-detail-page .community-avatar--placeholder {
    width: 180px !important;
    height: 180px !important;
  }
}

.comment-vertical-embed {
    width: 360px;
    max-width: 100%;
}

.comment-vertical-embed iframe {
    display: block;
    width: 100%;
    min-height: 640px;
    border: 0;
    border-radius: 12px;
    background: transparent !important;
}

.comment-instagram-embed iframe {
    min-height: 620px;
}

.comment-tiktok-embed iframe {
    min-height: 720px;
}

.sidebar-comment-video-instagram {
    background: linear-gradient(135deg, #831843, #f97316);
}

.sidebar-comment-video-tiktok {
    background: linear-gradient(135deg, #020617, #0f172a);
}

.oldtimer-icon {
  position: relative;
  display: inline-block !important;
  line-height: 1 !important;
  vertical-align: baseline;
}

/* Профиль */
.oldtimer-icon--profile {
  top: 3px;
}

/* Карточки постов */
.oldtimer-icon--post {
  top: 0;
  margin-left: .25rem;
}

/* Комментарии */
.oldtimer-icon--comment {
  top: 0;
  margin-left:0;
}

.gap-05
 {
    gap: .15rem !important;
}

html.dark .comment-instagram-embed iframe,
html.dark .comment-tiktok-embed iframe {
    background: transparent !important;
}

/* Dark theme */
html.dark .community-detail-page .community-detail-cover {
  background-color: #1f2937;
}

html.dark .community-detail-page .community-avatar,
html.dark .community-detail-page .community-avatar--placeholder {
  border-color: #111827 !important;
}

/* Mobile */
@media (max-width: 575.98px) {
  .community-detail-page .community-detail-cover {
    height: 220px;
    margin-bottom: 100px;
    background-size: cover;
    background-position: center center;
  }

  .community-detail-page .community-avatar-wrapper {
    top: 130px;
  }

  .community-detail-page .community-avatar,
  .community-detail-page .community-avatar--placeholder {
    width: 180px !important;
    height: 180px !important;
  }
}

a.login-button-header, a.login-button-header:hover{
  background-color: #e8c093 !important;
  border-radius:.375rem;
  height:44px;
}
.search-feld-header-mobile{
  background-color: #9dd4f6 !important;border:2px solid #9dd4f6 !important;
}
/* Theme toggle icon — no flicker */
.theme-toggle-btn .theme-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 0;
}

html:not(.dark) .theme-toggle-btn .theme-icon-sun {
  display: none !important;
}

html.dark .theme-toggle-btn .theme-icon-moon {
  display: none !important;
}

html.dark .theme-toggle-btn .theme-icon-sun {
  display: inline-flex !important;
}
/* =========================================================
   Buttons — remove focus/active borders in both themes
   ========================================================= */

button,
button:focus,
button:focus-visible,
button:active,
button:hover,
.btn,
.btn:focus,
.btn:focus-visible,
.btn:active,
.btn:hover,
.btn.active,
.btn.show,
.show > .btn,
.dropdown-toggle,
.dropdown-toggle:focus,
.dropdown-toggle:focus-visible,
.dropdown-toggle:active,
.dropdown-toggle:hover {
  outline: none !important;
  box-shadow: none !important;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:focus-visible,
.btn-primary:active,
.btn-primary.active {
  border: 0 !important;
  border-color: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

button:focus,
button:focus-visible,
button:active,
.btn:focus,
.btn:focus-visible,
.btn:active,
.btn.active,
.btn.show,
.show > .btn {
  border-color: transparent !important;
}

.ejs-poll-block {
  background: #fff7ed;
  border-radius: 10px;
  padding: 1.25rem;
  margin: .5rem 0 1rem;
}

.ejs-poll-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #222;
  margin-bottom: .75rem;
}

.ejs-poll-label-options,
.ejs-poll-label-settings {
  margin-top: 1.25rem;
}

.ejs-poll-input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #ddd;
  background: transparent;
  outline: none;
  padding: .5rem 0;
  font-size: 1rem;
  color: #222;
}

.ejs-poll-input::placeholder {
  color: #767b86;
}

.ejs-poll-option-row {
  display: grid;
  grid-template-columns: 34px 1fr 32px;
  gap: .5rem;
  align-items: center;
}

.ejs-poll-option-row--no-correct {
  grid-template-columns: 1fr 32px;
}

.ejs-poll-option-row--no-correct .ejs-poll-correct {
  display: none !important;
}

.ejs-poll-option-row--no-correct .ejs-poll-option-input {
  grid-column: 1;
}

.ejs-poll-option-row--no-correct .ejs-poll-remove {
  grid-column: 2;
}

/* Правильный ответ — зелёный круг */
.ejs-poll-correct {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1px solid #d9dee7;
  border-radius: 999px;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  position: relative;
  z-index: 3;
}

.ejs-poll-correct::before {
  content: "✓";
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  background: #138a36;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.ejs-poll-correct:checked::before {
  display: flex;
}

.ejs-poll-remove {
  border: 1px solid #d9dee7;
  background: #fff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  padding: 0;
  line-height: 1;
  color: #6b7280;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    color .15s ease,
    border-color .15s ease,
    background-color .15s ease;
}

.ejs-poll-remove svg {
  width: 20px;
  height: 20px;
  display: block;
  pointer-events: none;
}

.ejs-poll-remove:hover,
.ejs-poll-remove:focus {
  color: #c2410c;
  border-color: #c2410c;
  background: #fff7ed;
  outline: none;
}

.ejs-poll-remove:hover,
.ejs-poll-remove:focus {
  color: #c2410c;
  border-color: #c2410c;
  background: #fff7ed;
  outline: none;
}

.ejs-poll-add {
  width: 100%;
  border: 0;
  background: #fff;
  border-radius: 8px;
  padding: .75rem;
  margin-top: .85rem;
  font-weight: 700;
}

/* Настройки опроса */
.ejs-poll-check {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: .55rem 0;
  color: #6b7280;
}

.ejs-poll-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin: 0;
  border: 1px solid #d9dee7;
  border-radius: 6px;
  background: #fff;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
}

.ejs-poll-check input::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 2px solid #f97316;
  color: #f97316;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.ejs-poll-check input:checked::before {
  display: flex;
}

.ejs-poll-check span {
  line-height: 1.2;
}

/* Вывод опроса в посте */
.ejs-poll-view {
  background: #fff7ed;
  border-radius: 10px;
  padding: 1.25rem;
}

.ejs-poll-view-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom:.5rem;
}

.ejs-poll-view-badges--under-title {
  margin-top: 0;
  margin-bottom: .5rem;
  margin-top:-.2rem;
}

.ejs-poll-view-footer{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  margin-top:.65rem;
}

.ejs-poll-title-badge {
  display: inline-flex;
  align-items: center;
  color: #71717A;
  font-size: .875rem;
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.ejs-poll-view-options {
  display: flex;
  flex-direction: column;
  gap: .65rem;
}

.ejs-poll-view-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #fff;
  border-radius: 7px;
  padding: .55rem .65rem;
  color: #222;
}

.ejs-poll-view-option input {
  width: 18px;
  height: 18px;
  accent-color: #138a36;
}

.ejs-poll-view-badges {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
}

.ejs-poll-view-btn {
  margin-top: 1rem;
}

.ejs-poll-view-option.is-correct-option {
  background: rgba(19, 138, 54, .15);
}

.ejs-poll-view-option.is-wrong-selected {
  background: rgba(220, 38, 38, .15);
}

.ejs-poll-view-option-text {
  flex: 0 1 auto;
}

.ejs-poll-view-result {
  margin-left: auto;
}

.ejs-poll-correct-mark {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-left: .65rem;
  padding: 0;
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
}

.ejs-poll-correct-mark.is-correct {
  display: inline-flex;
  color: #fff;
  background: #138a36;
}

.ejs-poll-correct-mark.is-wrong {
  display: inline-flex;
  color: #fff;
  background: #dc2626;
}

.ejs-poll-correct-mark svg {
  width: 15px;
  height: 15px;
  display: block;
}

.btn.ejs-poll-vote-btn {
  --bs-btn-color: #0f6f2b;
  --bs-btn-bg: rgba(19, 138, 54, .25);

  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #138a36;
  --bs-btn-hover-border-color: #138a36;

  --bs-btn-focus-shadow-rgb: 19, 138, 54;

  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0f6f2b;
  --bs-btn-active-border-color: #0f6f2b;

  --bs-btn-disabled-color: #767b86;
  --bs-btn-disabled-bg: rgba(0, 0, 0, .04);

  border-radius: 5px;
  padding: .45rem .85rem;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  border:none;
}

.btn.ejs-poll-vote-btn:hover,
.btn.ejs-poll-vote-btn:focus {
  box-shadow: none;
}

.btn.ejs-poll-vote-btn:disabled,
.btn.ejs-poll-vote-btn.disabled {
  opacity: 1;
  cursor: not-allowed;
}

.ejs-poll-block--locked {
  opacity: .85;
}

.ejs-poll-block--locked input,
.ejs-poll-block--locked button {
  cursor: not-allowed;
}

.ejs-poll-block--locked .ejs-poll-input {
  color: #6b7280;
}

.ejs-poll-locked-notice {
  margin-bottom: .9rem;
  padding: .55rem .75rem;
  border-radius: 8px;
  background: rgba(220, 38, 38, .08);
  color: #991b1b;
  font-size: .875rem;
  font-weight: 600;
}

/* Планшет горизонтально: уменьшаем правый сайдбар */
@media (min-width: 1025px) and (max-width: 1199.98px) and (orientation: landscape) {
  :root {
    --left-w: 220px;
    --right-w: 320px;
    --center-w: 680px;

    --left-current: var(--left-w);
    --right-current: var(--right-w);
    --layout-gap-count: 2;
  }

  .right {
    flex: 0 0 var(--right-w) !important;
    width: var(--right-w) !important;
  }
}

/* Планшет вертикально: шапка как на смартфоне */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .site-header {
    justify-content: space-between !important;
  }

  .site-header .topbar-center {
    display: none !important;
  }

  .site-header .header-left .d-md-none,
  .site-header .header-right .d-md-none {
    display: flex !important;
    align-items: center !important;
  }

  .mobile-search-form {
    display: flex !important;
  }
}

/* Планшет вертикально: показываем мобильную лупу и прячем десктопный поиск */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .site-header .topbar-center {
    display: none !important;
  }

  .mobile-header-search-wrap {
    display: flex !important;
    align-items: center !important;
  }

  #mobile-search-panel {
    display: flex !important;
  }
}

/* Планшет горизонтально: уменьшаем правый сайдбар */
@media (min-width: 1025px) and (max-width: 1199.98px) and (orientation: landscape) {
  :root {
    --left-w: 220px;
    --right-w: 320px;
    --center-w: 680px;

    --left-current: var(--left-w);
    --right-current: var(--right-w);
  }

  .right {
    flex: 0 0 var(--right-w) !important;
    width: var(--right-w) !important;
  }
}
/* Планшет вертикально: правый сайдбар шире */
@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .right {
    width: min(70vw, 480px) !important;
    max-width: 480px !important;
  }
}

/* Планшет горизонтально: поиск как центральный блок */
@media (min-width: 1025px) and (max-width: 1199.98px) and (orientation: landscape) {
  .site-header .topbar-center {
    width: min(
      var(--center-w),
      calc(100vw - var(--left-current) - var(--right-current) - (var(--gap) * var(--layout-gap-count)))
    ) !important;

    max-width: min(
      var(--center-w),
      calc(100vw - var(--left-current) - var(--right-current) - (var(--gap) * var(--layout-gap-count)))
    ) !important;
  }

  .site-header .topbar-center form:has(.topbar-search) {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
  }
}

.comment-format-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .25rem;
  padding-bottom: .45rem;
  margin-bottom: .25rem;
  border-bottom: 1px solid var(--brd, #e5e7eb);
}

.comment-format-toolbar button {
  width: 32px;
  height: 30px;
  border: 0;
  border-radius: .55rem;
  background: transparent;
  color: var(--bs-secondary-color, #6c757d);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .92rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}

.comment-format-toolbar button:hover {
  background: var(--bs-tertiary-bg, #f1f3f5);
  color: var(--bs-body-color, #212529);
}

.comment-format-toolbar button:active {
  transform: translateY(1px);
}

.comment-text blockquote {
  margin: .65rem 0;
  padding: .6rem .85rem;
  border-left: 3px solid var(--bs-primary, #0d6efd);
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-radius: .5rem;
  color: var(--bs-body-color, #212529);
}

.dark .comment-format-toolbar {
  border-bottom-color: rgba(255,255,255,.08);
}

.dark .comment-format-toolbar button {
  color: rgba(255,255,255,.62);
}

.dark .comment-format-toolbar button:hover {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.92);
}

.dark .comment-text blockquote {
  background: rgba(255,255,255,.055);
  color: rgba(255,255,255,.86);
}

.profile-rating-wrapper {
  display: flex;
  justify-content: center;
  margin-top: -1rem;
  position: relative;
  z-index: 11;
}

.profile-rating-badge {
  border-radius: .45rem;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1;
  padding: .35rem .55rem;
  min-width: 50px;
  min-height: auto;
  text-align: center;
  color: rgb(19 146 66);
  background-color: #d5fbe4;
}

/* Profile avatar placeholder must match real avatar */
.profile-detail-page .profile-avatar-placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 180px !important;
  height: 180px !important;
  border: 4px solid #fff !important;
  border-radius: .675rem !important;
  box-sizing: border-box;
  background: var(--bs-secondary-bg) !important;
  color: #fff !important;
  font-size: 72px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  object-fit: cover;
}

html.dark .profile-detail-page .profile-avatar-placeholder {
  border-color: #111827 !important;
  background: #1f2937 !important;
  color: #d1d5db !important;
}

html.dark .profile-rating-badge {
  color: #4ade80;
  background-color: #123f29;
}
/* =========================================================
   Messages editor toolbar
   ========================================================= */

.message-editor-form {
  display: flex;
  gap: .5rem;
  align-items: flex-end;
}

.message-editor {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--brd, #e5e7eb);
  border-radius: .675rem;
  background: #fff;
  overflow: hidden;
}

.message-editor .comment-format-toolbar {
  padding: .45rem .55rem;
  margin: 0;
  border-bottom: 1px solid var(--brd, #e5e7eb);
}

.message-editor-textarea {
  width: 100%;
  min-height: 54px;
  max-height: 150px;
  resize: none;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

.message-send-btn {
  flex: 0 0 auto;
  min-height: 44px;
}

.message-body-content blockquote {
  margin: .65rem 0;
  padding: .6rem .85rem;
  border-left: 3px solid var(--bs-primary, #0d6efd);
  background: var(--bs-tertiary-bg, #f8f9fa);
  border-radius: .5rem;
  color: var(--bs-body-color, #212529);
}

.message-body-content blockquote p {
  margin: 0;
}

@media (max-width: 767.98px) {
  .message-editor-form {
    gap: .5rem !important;
    align-items: stretch !important;
  }

  .message-editor .comment-format-toolbar {
    padding: .35rem .45rem;
    gap: .25rem;
  }

  .message-editor .comment-format-toolbar button {
    width: 28px;
    height: 28px;
    font-size: .9rem;
  }

  .message-editor-textarea {
    min-height: 44px;
    max-height: 120px;
  }

  .message-send-btn {
    min-height: 44px;
    white-space: nowrap;
  }
}
@media (max-width: 767.98px) {
  .message-editor-form {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: .6rem !important;
  }

  .message-editor {
    width: 100% !important;
  }

  .message-send-btn {
    width: 100% !important;
    min-height: 44px;
    justify-content: center;
  }
}
/* Privacy page */
.privacy-card h1 {
  font-size: 1.75rem;
  font-weight: 700;
}

.privacy-card h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: .75rem;
}

.privacy-card p,
.privacy-card li {
  line-height: 1.65;
}

.privacy-card ul {
  padding-left: 1.25rem;
}

/* Cookie consent */
.cookie-consent-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 1080;
  transition: opacity .25s ease, transform .25s ease;
}

.cookie-consent-inner {
  max-width: 260px;
  margin: 0 auto;
  padding: 8px 10px;
  border-radius:.675rem;
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  border:0;
  box-shadow: 0 12px 34px rgba(0, 0, 0, .18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cookie-consent-text {
  font-size: .92rem;
  line-height: 1.45;
}

.cookie-consent-text a {
  font-weight: 600;
  text-decoration: none;
}

.cookie-consent-text a:hover {
  text-decoration: underline;
}

.cookie-consent-actions {
  flex: 0 0 auto;
}

.cookie-consent-hide {
  opacity: 0;
  transform: translateY(12px);
}

@media (max-width: 575.98px) {
  .cookie-consent-bar {
    left: 8px;
    right: 8px;
    bottom: 8px;
  }

  .cookie-consent-inner {
    border-radius: 14px;
  }

  .cookie-consent-actions .btn {
    width: 100%;
    white-space: nowrap;
  }

  .cookie-consent-actions .btn span {
    display: inline-block;
    white-space: nowrap;
  }
}

/* Users list */
.users-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.users-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 50px;
}

a.users-list-main {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

a.users-list-main:hover {
  color: inherit;
  text-decoration: none;
}

.users-list-name-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.users-list-name {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  color: var(--bs-body-color);
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
}

.users-list-name .text-truncate {
  min-width: 0;
  max-width: 100%;
  display: inline-block;
}

.users-list-username {
  display: block;
  min-width: 0;
  max-width: 100%;
  margin-top: 2px;
  color: var(--bs-secondary-color);
  font-size: .95rem;
  line-height: 1.15;
  font-weight: 400;
}

.users-list-right {
  display: grid;
  grid-template-columns: auto 30px;
  align-items: center;
  gap: 16px;
}

.users-list-rating {
  justify-self: end;
  font-size: 1.05rem;
  line-height: 1;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.users-list-rating:hover {
  text-decoration: none;
}

.users-list-rating.is-positive {
  color: #148a3b;
}

.users-list-rating.is-negative {
  color: #dc2626;
}

.users-list-action {
  width: 30px;
  height: 30px;
  border: 1px solid var(--bs-border-color);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--bs-body-color);
  text-decoration: none;
  background: var(--bs-body-bg);
}

.users-list-action:hover {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  text-decoration: none;
}

@media (max-width: 575.98px) {
  .users-list {
    gap: 14px;
  }

  .users-list-row {
    gap: 10px;
  }

  a.users-list-main {
    gap: 12px;
  }

  .users-list-name {
    font-size: 1rem;
  }

  .users-list-username {
    font-size: .9rem;
  }

  .users-list-right {
    grid-template-columns: auto 30px;
    gap: 8px;
  }

  .users-list-rating {
    font-size: .95rem;
  }

  .users-list-action {
    width: 30px;
    height: 30px;
  }
}

/* Rules page */
.rules-page {
  border-radius: .75rem;
}

.rules-hero {
  position: relative;
  overflow: hidden;
  min-height: 260px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, .26), transparent 28%),
    linear-gradient(135deg, #8ccf4f 0%, #72b83f 45%, #589d32 100%);
  color: #fff;
}

.rules-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -130px;
  width: 420px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  transform: rotate(-8deg);
}

.rules-hero__content {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.rules-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22);
  color: rgba(255, 255, 255, .92);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.rules-hero__title {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.05;
  font-weight: 800;
}

.rules-hero__text {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, .92);
  font-size: 1.15rem;
  line-height: 1.55;
}

.rules-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.rules-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: .5rem;
  background: rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .94);
  font-size: .9rem;
}

.rules-hero__badge {
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  width: 148px;
  height: 148px;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: .05em;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .12);
}

.rules-intro {
  padding: 18px 20px;
  border-radius: .75rem;
  background: var(--bs-tertiary-bg);
}

.rules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.rules-mini-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 86px;
  padding: 16px;
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  background: var(--bs-body-bg);
}

.rules-mini-card__icon {
  width: 34px;
  height: 34px;
  border-radius: .65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(13, 110, 253, .1);
  color: #0d6efd;
  font-weight: 800;
}

.rules-alert {
  border-radius: .75rem;
}

.rules-section-title {
  margin: 2rem 0 1rem;
  font-size: 1.35rem;
  line-height: 1.25;
  font-weight: 800;
}

.rules-rule {
  padding: 18px 0;
  border-top: 1px solid var(--bs-border-color);
}

.rules-rule:first-of-type {
  border-top: 0;
}

.rules-rule p:last-child {
  margin-bottom: 0;
}

.rules-note {
  margin: 1rem 0 1.25rem;
  padding: 18px 20px;
  border: 1px solid var(--bs-border-color);
  border-radius: .75rem;
  background: var(--bs-tertiary-bg);
}

.rules-note--soft {
  background: rgba(13, 110, 253, .045);
  border-color: rgba(13, 110, 253, .12);
}

@media (max-width: 767.98px) {
  .rules-hero {
    min-height: auto;
    padding: 24px 18px;
    align-items: flex-start;
  }

  .rules-hero__badge {
    display: none;
  }

  .rules-hero__text {
    font-size: 1rem;
  }

  .rules-grid {
    grid-template-columns: 1fr;
  }

  .rules-intro,
  .rules-note {
    padding: 15px;
  }
}

html.dark .rules-hero {
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, .12), transparent 28%),
    linear-gradient(135deg, #1f2937 0%, #182235 48%, #111827 100%);
}

html.dark .rules-hero::after {
  background: rgba(255, 255, 255, .08);
}

html.dark .rules-mini-card {
  background: #111827;
  border-color: #1f2937;
}

html.dark .rules-mini-card__icon {
  background: rgba(96, 165, 250, .14);
  color: #93c5fd;
}

html.dark .rules-intro,
html.dark .rules-note {
  background: #111827;
  border-color: #1f2937;
}

html.dark .rules-note--soft {
  background: rgba(96, 165, 250, .08);
  border-color: rgba(96, 165, 250, .16);
}

html.dark .rules-rule {
  border-color: #1f2937;
}

.profile-achievements {
  border: 1px solid rgba(25, 25, 25, .08);
  border-radius: .675rem;
  padding: 14px;
}

.profile-achievements__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-achievements__title {
  font-weight: 700;
  color: #191919;
}

.profile-achievements__count {
  padding: .2rem .5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, .05);
  color: rgba(0, 0, 0, .55);
  font-size: 12px;
}

.profile-achievements__list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.profile-achievement {
  flex: 0 0 auto;
  width: 100px;
  text-align: center;
}

.profile-achievement__icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-achievement__icon img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  display: block;
}

.profile-achievement__name {
  font-size: 12px;
  line-height: 1.2;
  color: #6b7280;
  white-space: normal;
}

.achievement-custom-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    padding: 20px;
}

.achievement-custom-modal.is-open {
    display: flex;
}

.achievement-custom-modal__box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}

.dark .achievement-custom-modal__box {
    background: #1f2937;
}

.achievement-custom-modal__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    font-size: 22px;
    cursor: pointer;
}

.dark .achievement-custom-modal__close {
    background: rgba(255,255,255,.1);
    color: #fff;
}

.achievement-custom-modal__img {
    width: 220px;
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 16px;
}

.achievement-custom-modal__title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #191919;
}

.dark .achievement-custom-modal__title {
    color: #fff;
}

.achievement-custom-modal__desc {
    font-size: 15px;
    line-height: 1.5;
    color: #6b7280;
}

.dark .achievement-custom-modal__desc {
    color: #d1d5db;
}

body.achievement-modal-open {
    overflow: hidden;
}

.dark .profile-achievements {
  border-color: rgba(255, 255, 255, .08);
}

.dark .profile-achievements__title {
  color: #f9fafb;
}

.dark .profile-achievements__count {
  background: rgba(255, 255, 255, .08);
  color: #d1d5db;
}

.dark .profile-achievement__icon {
}

.dark .profile-achievement__name {
  color: #d1d5db;
}



/* =========================================================
   Notifications page mobile layout
   ========================================================= */

.notif-page-head {
  display: block;
  margin-bottom: 16px;
}

.notif-page-tabs-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.notif-page-tabs {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap !important;
}

.notif-page-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.notif-page-actions form {
  margin: 0;
}

.notif-page-actions .btn {
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .notif-page-wrapper {
    background: #f3f4f6 !important;
  }

  .notif-page-head-card {
    margin-top: 0 !important;
    border-radius: 0 !important;
  }

  .notif-page-tabs-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
  }

  .notif-page-tabs {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
  }

  .notif-page-tabs .nav-link {
    white-space: nowrap !important;
  }

  .notif-page-actions {
    flex: 0 0 auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  .notif-page-actions form {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  .notif-page-actions .btn {
    white-space: nowrap !important;
  }
}

/* =========================================================
   Mobile bottom navigation
   ========================================================= */

.mobile-bottom-nav {
  display: none;
}

.mobile-profile-backdrop,
.mobile-notifications-backdrop,
.mobile-notifications-panel {
  display: none;
}

@media (max-width: 767.98px) {
  :root {
    --mobile-bottom-nav-h: 58px;
  }

  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom)) !important;
  }

  body.mobile-profile-menu-open,
  body.mobile-notifications-open {
    overflow: hidden;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: calc(4px + env(safe-area-inset-bottom));
    z-index: 1080;

    width: auto;
    max-width: 520px;
    height: var(--mobile-bottom-nav-h);
    margin-left: auto;
    margin-right: auto;

    padding: 6px 12px;

    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 2px;

    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .07);

    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 36px rgba(15, 23, 42, .14);

    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
  }

  .mobile-bottom-nav__item,
  .mobile-bottom-nav__avatar {
    position: relative;

    width: 46px;
    height: 46px;
    margin: 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border: 0 !important;
    border-radius: 999px;
    background: transparent;

    color: #9ca3af !important;
    text-decoration: none !important;

    padding: 0 !important;
    -webkit-tap-highlight-color: transparent;

    transition: background-color .15s ease, color .15s ease, transform .12s ease;
  }

  .mobile-bottom-nav__item:active,
  .mobile-bottom-nav__avatar:active {
    transform: scale(.96);
  }

  button.mobile-bottom-nav__item,
  button.mobile-bottom-nav__avatar {
    font: inherit;
    cursor: pointer;
  }

  .mobile-bottom-nav__item i,
  .mobile-bottom-nav__item i[class^="ki-"] {
    font-size: 26px !important;
    line-height: 1 !important;
    color: currentColor !important;
  }

  .mobile-bottom-nav__item svg {
    width: 26px;
    height: 26px;
    display: block;
  }

  .mobile-bottom-nav__item.is-active {
    color: #0ea5e9 !important;
  }

  .mobile-bottom-nav__profile {
    width: 46px;
    height: 46px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-bottom-nav__avatar img,
  .mobile-bottom-nav__avatar-placeholder {
    width: 28px;
    height: 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    object-fit: cover;

    background: #e2e8f0;
    color: #0ea5e9;

    font-size: 16px;
    font-weight: 800;
    line-height: 1;

    border: 2px solid rgba(14, 165, 233, .22);
  }

  .mobile-bottom-nav__avatar.is-active img,
  .mobile-bottom-nav__avatar.is-active .mobile-bottom-nav__avatar-placeholder {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .14);
  }

  .mobile-bottom-nav__badge {
    position: absolute;
    top: 5px;
    right: 2px;

    min-width: 17px;
    height: 17px;
    padding: 0 5px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;
    background: #ef4444;
    color: #fff;

    font-size: 10px;
    font-weight: 700;
    line-height: 17px;

    box-shadow: 0 0 0 2px #fff;
  }

  .mobile-profile-backdrop,
  .mobile-notifications-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1065;

    display: block;

    background: rgba(15, 23, 42, .32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-profile-backdrop[hidden],
  .mobile-notifications-backdrop[hidden] {
    display: none !important;
  }

  .mobile-bottom-profile-menu {
    position: fixed !important;

    left: 14px !important;
    right: 14px !important;
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
    top: auto !important;
    transform: none !important;

    width: auto !important;
    min-width: 0 !important;
    max-width: 420px !important;
    margin-left: auto !important;
    margin-right: auto !important;

    padding: 4px 0 !important;
    overflow: hidden;

    z-index: 1090 !important;

    border: 0 !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .20) !important;
  }

  .mobile-bottom-profile-menu .dropdown-item {
    min-height: 48px;
    padding: 0 18px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px;

    border-radius: 0 !important;
    border-bottom: 1px solid rgba(15, 23, 42, .06);

    color: #2b2f36 !important;
    font-size: 18px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
    letter-spacing: 0 !important;

    background: #fff !important;
  }

  .mobile-bottom-profile-menu li:last-child .dropdown-item {
    border-bottom: 0 !important;
  }

  .mobile-bottom-profile-menu .dropdown-item:hover,
  .mobile-bottom-profile-menu .dropdown-item:focus {
    background: #f8fafc !important;
    color: #111827 !important;
  }

  .mobile-bottom-profile-menu .dropdown-item i,
  .mobile-bottom-profile-menu .dropdown-item i[class^="ki-"] {
    flex: 0 0 auto;
    font-size: 24px !important;
    line-height: 1 !important;
    color: #3479e5 !important;
  }

  .mobile-bottom-profile-menu .dropdown-item .badge {
    font-size: .68rem !important;
  }

  .mobile-bottom-profile-menu form {
    margin: 0 !important;
  }

  .mobile-notifications-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(84px + env(safe-area-inset-bottom));
    z-index: 1090;

    display: block;
    max-height: min(70vh, 620px);
    overflow: hidden;

    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, .20);
  }

  .mobile-notifications-panel[hidden] {
    display: none !important;
  }

  .mobile-notifications-panel .dropdown-menu,
  .mobile-notifications-panel .mobile-notifications-menu {
    position: static !important;
    display: block !important;
    transform: none !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    padding: 0 !important;
    margin: 0 !important;

    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    background: #fff !important;
  }

  .mobile-notifications-panel .dropdown-menu > div[style*="max-height"],
  .mobile-notifications-panel .mobile-notifications-menu > div[style*="max-height"] {
    max-height: calc(min(70vh, 620px) - 52px) !important;
    overflow-y: auto !important;
  }

  .rb-toggle {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  .cookie-consent-bar {
    bottom: calc(84px + env(safe-area-inset-bottom)) !important;
  }

  #toast-stack {
    top: 12px !important;
    right: 12px !important;
    left: 12px !important;
  }
}

@media (max-width: 380px) {
  .mobile-bottom-nav {
    left: 10px;
    right: 10px;
    height: 58px;
    padding: 5px 9px;
  }

  .mobile-bottom-nav__item,
  .mobile-bottom-nav__avatar,
  .mobile-bottom-nav__profile {
    width: 43px;
    height: 43px;
  }

  .mobile-bottom-nav__item i,
  .mobile-bottom-nav__item i[class^="ki-"] {
    font-size: 24px !important;
  }

  .mobile-bottom-nav__item svg {
    width: 24px;
    height: 24px;
  }

  .mobile-bottom-nav__avatar img,
  .mobile-bottom-nav__avatar-placeholder {
    width: 36px;
    height: 36px;
  }

  .mobile-bottom-profile-menu {
    left: 10px !important;
    right: 10px !important;
  }

  .mobile-bottom-profile-menu .dropdown-item {
    min-height: 46px;
    padding-left: 16px !important;
    padding-right: 16px !important;
    font-size: 17px !important;
  }

  .mobile-bottom-profile-menu .dropdown-item i,
  .mobile-bottom-profile-menu .dropdown-item i[class^="ki-"] {
    font-size: 23px !important;
  }
}

.about-retro-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(116, 155, 244, .22), transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #eef2ff 48%, #fff7ed 100%);
}

.about-retro-kicker {
  color: #64748b;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.about-retro-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 850;
  line-height: 1.05;
  color: #111827;
}

.about-retro-lead {
  max-width: 760px;
  color: #475569;
  font-size: 1.12rem;
  line-height: 1.65;
}

.about-retro-meta span {
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  color: #475569;
  padding: .45rem .8rem;
  font-size: .85rem;
  font-weight: 600;
}

.about-retro-text {
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-retro-text h2 {
  margin-top: 2rem;
  margin-bottom: .75rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #111827;
}

.about-retro-note,
.about-retro-final {
  border-radius: 1rem;
  background: #f8fafc;
  border-left: 4px solid #749bf4;
  padding: 1rem 1.15rem;
  color: #334155;
}

html.dark .about-retro-hero {
  background:
    radial-gradient(circle at 20% 20%, rgba(116, 155, 244, .18), transparent 32%),
    linear-gradient(135deg, #111827 0%, #1f2937 55%, #111827 100%);
}

html.dark .about-retro-title {
  color: #f9fafb;
}

html.dark .about-retro-lead,
html.dark .about-retro-kicker {
  color: #cbd5e1;
}

.dark .about-retro-meta span {
  background: rgba(255,255,255,.08);
  color: #d1d5db;
}

htmlhtml.dark .about-retro-text h2 {
  color: #f9fafb;
}

html.dark .about-retro-note,
html.dark .about-retro-final {
  background: rgba(255,255,255,.05);
  color: #d1d5db;
}













/* Dark theme: mobile bottom navigation */
@media (max-width: 767.98px) {
  html.dark .mobile-profile-backdrop,
  html.dark .mobile-notifications-backdrop {
    background: rgba(0, 0, 0, .42);
  }

  html.dark .mobile-bottom-nav {
    background: rgba(17, 24, 39, .92);
    border-color: rgba(255, 255, 255, .07);
    box-shadow: 0 10px 36px rgba(0, 0, 0, .42);
  }

  html.dark .mobile-bottom-nav__item,
  html.dark .mobile-bottom-nav__avatar {
    color: #9ca3af !important;
    background: transparent !important;
  }

  html.dark .mobile-bottom-nav__item.is-active {
    color: #09abfc !important;
  }

  html.dark .mobile-bottom-nav__avatar img,
  html.dark .mobile-bottom-nav__avatar-placeholder {
    background: #1f2937;
    color: #09abfc;
    border-color: rgba(9, 171, 252, .24);
  }

  html.dark .mobile-bottom-nav__avatar.is-active img,
  html.dark .mobile-bottom-nav__avatar.is-active .mobile-bottom-nav__avatar-placeholder {
    border-color: #09abfc;
    box-shadow: 0 0 0 4px rgba(9, 171, 252, .16);
  }

  html.dark .mobile-bottom-nav__badge {
    box-shadow: 0 0 0 2px #111827;
  }

  html.dark .mobile-bottom-profile-menu {
    background: #111827 !important;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .50) !important;
  }

  html.dark .mobile-bottom-profile-menu .dropdown-item {
    background: #111827 !important;
    color: #d1d5db !important;
    border-bottom-color: #1f2937 !important;
  }

  html.dark .mobile-bottom-profile-menu .dropdown-item:hover,
  html.dark .mobile-bottom-profile-menu .dropdown-item:focus {
    background: #1f2937 !important;
    color: #fff !important;
  }

  html.dark .mobile-bottom-profile-menu .dropdown-item i,
  html.dark .mobile-bottom-profile-menu .dropdown-item i[class^="ki-"] {
    color: #60a5fa !important;
  }

  html.dark .mobile-notifications-panel {
    background: #111827;
    box-shadow: 0 18px 50px rgba(0, 0, 0, .50);
  }

  html.dark .mobile-notifications-panel .dropdown-menu,
  html.dark .mobile-notifications-panel .mobile-notifications-menu {
    background: #111827 !important;
  }

  html.dark .mobile-notifications-panel .bg-light {
    background: #1f2937 !important;
  }

  html.dark .mobile-notifications-panel .text-dark {
    color: #f9fafb !important;
  }

  html.dark .mobile-notifications-panel .text-muted,
  html.dark .mobile-notifications-panel .text-secondary {
    color: #9ca3af !important;
  }
}










/* Dark theme */
html.dark .users-list-name,
html.dark a.users-list-main,
html.dark a.users-list-main:hover {
  color: #d1d5db !important;
}

html.dark .users-list-username {
  color: #9ca3af !important;
}

html.dark .users-list-action {
  background: #111827 !important;
  border-color: #1f2937 !important;
  color: #d1d5db !important;
}

html.dark .users-list-action:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

html.dark .users-list-rating.is-positive {
  color: #4ade80 !important;
}

html.dark .users-list-rating.is-negative {
  color: #f87171 !important;
}

html.dark .message-editor {
  background: #111827 !important;
  border-color: #1f2937 !important;
}

html.dark .message-editor .comment-format-toolbar {
  border-bottom-color: #1f2937 !important;
}

html.dark .message-editor-textarea {
  background: transparent !important;
  color: #d1d5db !important;
  border-color: transparent !important;
}

html.dark .message-editor-textarea:focus,
html.dark .message-editor-textarea:focus-visible {
  background: transparent !important;
  color: #d1d5db !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
}

html.dark .message-body-content blockquote {
  background: #1f2937 !important;
  color: #d1d5db !important;
  border-left-color: #60a5fa !important;
}
html.dark button,
html.dark button:focus,
html.dark button:focus-visible,
html.dark button:active,
html.dark button:hover,
html.dark .btn,
html.dark .btn:focus,
html.dark .btn:focus-visible,
html.dark .btn:active,
html.dark .btn:hover,
html.dark .btn.active,
html.dark .btn.show,
html.dark .show > .btn,
html.dark .dropdown-toggle,
html.dark .dropdown-toggle:focus,
html.dark .dropdown-toggle:focus-visible,
html.dark .dropdown-toggle:active,
html.dark .dropdown-toggle:hover {
  outline: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
}

html.dark button,
html.dark .btn {
  border: 0 !important;
}

html.dark {
  color-scheme: dark;
}

html.dark body {
  background-color: #030712 !important;
  color: #d1d5db !important;
}

html.dark .bg-white {
    background:#1f2937 !important;
    color: #d1d5db !important;
}

/* базовые панели */
html.dark .site-header {
  background:#111827 !important;
  border-bottom: 1px solid #111827;
}

html.dark .left,
html.dark .right {
  background: #030712 !important;
}

html.dark .frame {
  background: #030712 !important;
}

html.dark .search-feld-header-mobile{
  background-color: #1f2937 !important;border:2px solid #1f2937 !important;
}

html.dark .card,
html.dark .community-hero,
html.dark .alert,
html.dark .feed-date,
html.dark .pagination-wrap nav,
html.dark .profile-communities__card,
html.dark .related-post-card__content {
  background: #111827 !important;
  color: #d1d5db !important;
  border-color: #1f2937 !important;
}
html.dark .alert-warning {
  background: #1f2937 !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .09) !important;
}
html.dark .private-post-box {
  background: #1f2937 !important;
}
html.dark a.login-button-header {
  background-color: #1f2937 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35);
  height:44px;
}
html.dark a.btn-primary
 {
    color: #FFF !important;
}
html.dark .auth-modal .modal-header .btn-close {
  background-color: transparent !important;
  filter: invert(1) grayscale(100%) brightness(200%) !important;
  opacity: .85 !important;
}

html.dark .auth-modal .modal-header .btn-close:hover {
  opacity: 1 !important;
}

html.dark .card.pinned {
  border-color: #374151 !important;
}

/* сайдбары */
html.dark .sb-caption {
  color: #9ca3af !important;
}

html.dark .sb-item {
  color: #d1d5db !important;
}

html.dark .sb-item:hover {
  background: #111827 !important;
}

html.dark .sb-item.is-active {
  background: #1f2937 !important;
  border-color: #374151 !important;
  box-shadow: none !important;
}

html.dark .sb-ico,
html.dark .sb-ico-round {
  background: #111827 !important;
  box-shadow: none !important;
}

html.dark .sb-ico-placeholder {
  color: #d1d5db !important;
}

html.dark .sidebar__footer a {
  color: #9ca3af !important;
}

html.dark .sidebar__footer a:hover {
  color: #d1d5db !important;
}

/* мобильная шапка сайдбара */
html.dark .left-mobile-head {
  background: #030712 !important;
  border-bottom: 1px solid #111827;
}

html.dark .left-mobile-logo {
  color: #d1d5db !important;
}

html.dark .left-mobile-head .sb-close-btn,
html.dark .sb-caption .sb-close-btn{
  background: #1f2937 !important;
  color: #d1d5db !important;
  border-color: #374151 !important;
}
html.dark .rb-toggle {
  background: #1f2937 !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .09) !important;
}
/* поиск */
html.dark .topbar-search {
  background: #111827 !important;
  border: 1px solid #1f2937 !important;
  color: #d1d5db !important;
}

html.dark .topbar-search::placeholder {
  color: #9ca3af !important;
}

html.dark .topbar-search:focus {
  border-color: #374151 !important;
  box-shadow: 0 0 0 3px rgba(75, 85, 99, 0.35) !important;
}

html.dark #mobile-search-panel {
  background: #111827 !important;
  border-bottom: 1px solid #111827;
}

html.dark #mobile-search-panel input, html.dark .btn-light {
  background: #1f2937 !important;
  color: #d1d5db !important;
  border: 1px solid #1f2937 !important;
}

html.dark #mobile-search-panel input::placeholder {
  color: #9ca3af !important;
}

/* кнопки в шапке */
html.dark .topbar-center .btn-light,
html.dark .split-create-toggle,
html.dark .header-right .btn.bg-white,
html.dark .left-mobile-head .btn.bg-white,
html.dark .sb-close-btn.btn.bg-white {
  background: #1f2937 !important;
  color: #d1d5db !important;
  border-color: #1f2937 !important;
}

html.dark .topbar-center .btn-light:hover,
html.dark .split-create-toggle:hover,
html.dark .header-right .btn.bg-white:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

html.dark .split-create-toggle::before {
  background: rgba(255, 255, 255, 0.14) !important;
}

/* dropdown */
html.dark .dropdown-menu,
html.dark .c-menu,
html.dark .feed-dropdown,
html.dark .feed-date-menu {
  background: #111827 !important;
  border: 1px solid #1f2937 !important;
  box-shadow: 0 10px 30px rgba(0,0,0,.45) !important;
}

html.dark .dropdown-item,
html.dark .c-menu .dropdown-item,
html.dark .profile-menu .dropdown-item {
  color: #d1d5db !important;
}

html.dark .dropdown-item:hover,
html.dark .dropdown-item:focus,
html.dark .c-menu .dropdown-item:hover,
html.dark .profile-menu .dropdown-item:hover,
html.dark .profile-menu .dropdown-item:focus {
  background: #1f2937 !important;
  color: #fff !important;
}

html.dark .profile-menu li + li {
  border-top-color: #1f2937 !important;
}

/* текст */
html.dark .text-body,
html.dark .card p,
html.dark .card ol li,
html.dark .cdx-block,
html.dark .post-body,
html.dark .comment-text,
html.dark .community-title,
html.dark .related-post-card__title,
html.dark .related-post-card__tag,
html.dark .related-post-card__meta,
html.dark .pm-title a,
html.dark .pm-author,
html.dark .pm-time,
html.dark .page-text,
html.dark .page-text h1,
html.dark .page-text h2,
html.dark .page-text h3 {
  color: #d1d5db !important;
}

html.dark .text-body-secondary,
html.dark .text-secondary,
html.dark .pm-sub,
html.dark .card p.text-secondary,
html.dark .editorjs-view figcaption,
html.dark .post-body figure figcaption,
html.dark .related-post-card__meta,
html.dark .profile-communities__count {
  color: #9ca3af !important;
}

/* ссылки */
html.dark a, html.dark i[class^="ki-"] {
  color: #09abfc;
}

html.dark a:hover {
  color: #4973cf;
}

/* формы */
html.dark .form-control,
html.dark textarea,
html.dark input,
html.dark select {
  background-color: #111827 !important;
  color: #d1d5db !important;
  border-color: #1f2937 !important;
}

html.dark .form-control::placeholder,
html.dark textarea::placeholder,
html.dark input::placeholder {
  color: #9ca3af !important;
}

html.dark .form-control:focus,
html.dark textarea:focus,
html.dark input:focus,
html.dark select:focus {
  background-color: #111827 !important;
  color: #fff !important;
  border-color: #374151 !important;
  box-shadow: 0 0 0 3px rgba(75,85,99,.35) !important;
}

/* обычные кнопки */
html.dark .btn-secondary {
  background-color: #1f2937 !important;
  color: #d1d5db !important;
  border: 0 !important;
}

html.dark .btn-secondary:hover {
  background-color: #374151 !important;
}

html.dark .btn-success {
  background-color: #14532d !important;
  color: #d1d5db !important;
}

/* пост-мета */
html.dark .pm-user {
  background: #1f2937 !important;
}

html.dark .pm-comm {
  background: #111827 !important;
  border-color: #111827 !important;
}

/* вкладки */
html.dark .community-tabs .nav-underline .nav-link {
  color: #9ca3af !important;
}

html.dark .community-tabs .nav-underline .nav-link:hover,
html.dark .community-tabs .nav-underline .nav-link.active {
  color: #d1d5db !important;
}

/* blockquote / code / таблицы */
html.dark .post-body blockquote,
html.dark .post-preview blockquote,
html.dark .comment-text blockquote,
html.dark .codex-editor .cdx-quote {
  background: #1f2937 !important;
  color: #d1d5db !important;
  border-left-color: #60a5fa !important;
}

html.dark .post-body blockquote cite,
html.dark .post-preview blockquote cite,
html.dark .codex-editor .cdx-quote__caption {
  color: #9ca3af !important;
}

html.dark .post-body code {
  background: #0f172a !important;
  border-color: #1f2937 !important;
  color: #d1d5db !important;
}

html.dark .post-body td,
html.dark .post-body th,
html.dark .ejs-table th,
html.dark .ejs-table td {
  border-color: #374151 !important;
  color: #d1d5db !important;
}

html.dark .post-body th,
html.dark .ejs-table th,
html.dark .ejs-table--with-headings th {
  background: #1f2937 !important;
}

/* spoiler */
html.dark .post-body .ejs-spoiler-head,
html.dark .ejs-spoiler-head {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
  border-color: #374151 !important;
}

html.dark .post-body .ejs-spoiler-title,
html.dark .ejs-spoiler-title,
html.dark .post-body .ejs-spoiler-body,
html.dark .ejs-spoiler-body,
html.dark .ejs-spoiler-body-editor {
  color: #d1d5db !important;
}

html.dark .post-body .ejs-spoiler-body,
html.dark .ejs-spoiler-body,
html.dark .ejs-spoiler-inner {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
  border-color: #374151 !important;
}

html.dark .ejs-spoiler-tool {
  background: #1f2937 !important;
  border-color: #374151 !important;
  color: #d1d5db !important;
}

html.dark .ejs-spoiler-tool:hover {
  background: #374151 !important;
}

/* комментарии */
html.dark .c-children > .c-list > .c-item::before,
html.dark .c-children > .c-list > .c-item::after {
  border-color: #374151 !important;
}

/* html.dark .c-body.comment-focus {
  background-color: #1f2937 !important;
} */
html.dark .comment-preview-row:hover svg,
html.dark .comment-preview-row:hover span.text-body {
  color: #93c5fd !important;
}

/* лайки */
html.dark .dtf-like {
  background: #1f2937 !important;
  color: #d1d5db !important;
}

html.dark .dtf-like:hover {
  background: #374151 !important;
}

html.dark .dtf-like.is-active {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #f87171 !important;
}

/* pagination */
html.dark .pagination.pagination-noname .page-link {
  background: #111827 !important;
  color: #d1d5db !important;
  border-color: #374151 !important;
}

html.dark .pagination.pagination-noname .page-link:hover {
  background: #1f2937 !important;
  color: #fff !important;
}

html.dark .pagination.pagination-noname .page-item.active .page-link {
  background: #2563eb !important;
  color: #fff !important;
  border-color: #2563eb !important;
}

html.dark .pagination.pagination-noname .page-item.disabled .page-link {
  background: #111827 !important;
  color: #6b7280 !important;
}

/* feed controls */
html.dark .feed-switch {
  background: #111827 !important;
}

html.dark .feed-pill-left,
html.dark .feed-pill-right,
html.dark .feed-pill-right-link,
html.dark .feed-caret {
  color: #d1d5db !important;
}

html.dark .feed-pill-left.is-active,
html.dark .feed-pill-right.is-active,
html.dark .feed-date,
html.dark .feed-date-btn {
  background: #1f2937 !important;
  color: #fff !important;
  box-shadow: none !important;
}

html.dark .feed-date-btn:hover,
html.dark .feed-caret:hover {
  background: #374151 !important;
}

/* chips / picker */
html.dark .c-picker__trigger,
html.dark .pc-chip{
  background: #111827 !important;
  border-color: #374151 !important;
  color: #d1d5db !important;
}

html.dark .pc-chip:hover,
html.dark .c-picker__item:hover,
html.dark .c-picker__item.is-focused {
  background: #1f2937 !important;
}
html.dark .profile-communities__count {
background: rgba(255, 255, 255, .08);
  border-color: #374151 !important;
  color: #d1d5db !important;
}
html.dark .cp-ico-placeholder,
html.dark .pc-chip__ico {
  background: #1f2937 !important;
  color: #d1d5db !important;
}

html.dark .c-picker__search, html.dark .c-picker__scroll {
  background: #111827 !important;
}

/* related posts */
html.dark .related-post-card__image-wrap {
  background: #1f2937 !important;
}

html.dark .related-post-card__placeholder {
  background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
  color: #9ca3af !important;
}

html.dark .related-post-card__like-btn {
  background-color: rgba(17, 24, 39, 0.85) !important;
  color: #d1d5db !important;
}

html.dark .related-post-card__content {
  border-color: #374151 !important;
}

html.dark .related-post-card__tag {
  background: #1f2937 !important;
  color: #d1d5db !important;
}

html.dark .related-post-card__sep {
  background: #374151 !important;
}

/* toast */
html.dark .toast-item.success,
html.dark .toast-item.error {
  background: #111827 !important;
  color: #d1d5db !important;
}

/* modal */
html.dark .auth-modal .modal-content {
  background: #111827 !important;
  color: #d1d5db !important;
}

html.dark .auth-modal .form-control {
  background: #030712 !important;
  color: #d1d5db !important;
  border-color: #374151 !important;
}

html.dark .auth-modal .form-control:focus {
  background: #030712 !important;
  border-color: #4b5563 !important;
}

/* misc */
html.dark .accordion-button {
  background-color: #111827 !important;
  color: #d1d5db !important;
}

html.dark .accordion-button:not(.collapsed) {
  background-color: #1f2937 !important;
  color: #fff !important;
}

html.dark .flash-embed {
  background: transparent !important;
}

html.dark .preview-fake-link {
  color: #93c5fd !important;
}

html.dark .shadow-lite {
  box-shadow: 0 1px 2px rgba(0,0,0,.35) !important;
}
html.dark .theme-toggle-btn,
html.dark .theme-toggle-btn .theme-icon,
html.dark .theme-toggle-btn svg, html.dark .bookmark-count, html.dark .bookmark-icon {
  color: #d1d5db !important;
}
html.dark .bookmark-btn[data-bookmarked="1"] .bookmark-icon g path:first-child
 {
    color: #f97316 !important; fill: #f97316;
}
html.dark .topbar-search,
html.dark .topbar-center .btn-light,
html.dark .split-create-toggle,
html.dark .site-header, html.dark .sb-item.is-active {
  border: 0 !important;
}
html.dark .accordion-button,
html.dark .accordion-body {
  background-color: #111827 !important;
  color: #f9fafb !important;
}
html.dark .accordion-button.bg-light {
  background-color: #1f2937 !important;
  color: #f9fafb !important;
}
html.dark .accordion-button::after {
  filter: invert(1) brightness(2);
}
html.dark .text-muted, html.dark .text-body-tertiary, html.dark .form-text {
  color: #9ca3af !important;
}
html.dark .text-dark {
  color: #d1d5db !important;
}
html.dark .border {
    border:1px solid #374151 !important;
}
html.dark .pm-comm--placeholder {
    border: 1px solid #d1d5db;
}
html.dark .card-header
 {
    border-bottom:1px solid #030714;
}
html.dark .community-detail-page .community-avatar {
  border-color: #111827 !important;
}
html.dark .list-group-item{
  background-color: #111827 !important;border:1px solid #030712;
}
html.dark .border-top {
  border-top:1px solid #030712 !important;
}

html.dark textarea.shadow-none, html.dark textarea.shadow-none:focus, html.dark textarea.shadow-none:focus-visible{
  background-color: #111827 !important;
}
html.dark .bg-light{
  background-color: #1f2937 !important;
}
html.dark .post-body .ejs-spoiler-toggle, html.dark .ejs-spoiler-toggle {
  color: #09abfc;
}

html.dark .form-control,
html.dark input,
html.dark select{
  background-color: #1f2937 !important;
  color: #d1d5db !important;
  border-color: #1f2937 !important;
  box-shadow: none !important;
  outline: none !important;
}

html.dark .form-control:focus,
html.dark textarea:focus,
html.dark input:focus,
html.dark select:focus,
html.dark .form-control:focus-visible,
html.dark textarea:focus-visible,
html.dark input:focus-visible,
html.dark select:focus-visible {
  background-color: #1f2937 !important;
  color: #d1d5db !important;
  border-color: #1f2937 !important;
  box-shadow: none !important;
  outline: none !important;
}
html.dark .form-control.message-editor-textarea{
  background-color: #111827 !important;
}
.theme-toggle-btn{
  width: 28px;
  height: 28px;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 28px;
  line-height: 0 !important;
}

.theme-toggle-btn .theme-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  line-height: 0 !important;
}

.theme-toggle-btn svg{
  display: block;
  width: 28px;
  height: 28px;
}
html.dark .cookie-consent-inner {
  background: #1f2937;
  color: #f3f4f6;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
}

html.dark .cookie-consent-text a {
  color: #38bdf8;
}

html.dark .cookie-consent-actions .btn {
  background: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}

html.dark .cookie-consent-actions .btn:hover,
html.dark .cookie-consent-actions .btn:focus {
  background: #0284c7;
  border-color: #0284c7;
  color: #fff;
}


/* =========================================================
   Editor.js — dark theme
   ========================================================= */

/* Основная область редактора */
html.dark .codex-editor,
html.dark .codex-editor__redactor,
html.dark .ce-block,
html.dark .ce-block__content,
html.dark .ce-toolbar__content {
  color: #e5e7eb !important;
}

/* Текстовые поля Editor.js */
html.dark .ce-paragraph,
html.dark .ce-header,
html.dark .cdx-block,
html.dark .ce-block__content [contenteditable="true"] {
  color: #e5e7eb !important;
}

/* Placeholder внутри блоков */
html.dark .ce-paragraph[data-placeholder]:empty::before,
html.dark .ce-header[data-placeholder]:empty::before,
html.dark [contenteditable="true"][data-placeholder]:empty::before {
  color: #6b7280 !important;
}

/* Выделенный/активный блок */
html.dark .ce-block--selected .ce-block__content,
html.dark .ce-block--focused .ce-block__content {
  background: rgba(55, 65, 81, 0.45) !important;
}

/* Кнопка плюс и кнопка настроек */
html.dark .ce-toolbar__plus,
html.dark .ce-toolbar__settings-btn {
  color: #d1d5db !important;
  background: transparent !important;
}

html.dark .ce-toolbar__plus:hover,
html.dark .ce-toolbar__settings-btn:hover {
  background: #374151 !important;
  color: #ffffff !important;
}

/* SVG внутри кнопок */
html.dark .ce-toolbar__plus svg,
html.dark .ce-toolbar__settings-btn svg,
html.dark .ce-inline-toolbar svg,
html.dark .ce-popover svg,
html.dark .ce-settings svg,
html.dark .cdx-settings-button svg {
  color: currentColor !important;
  stroke: currentColor !important;
}

html.dark .ce-toolbar__plus svg *,
html.dark .ce-toolbar__settings-btn svg *,
html.dark .ce-inline-toolbar svg *,
html.dark .ce-popover svg *,
html.dark .ce-settings svg *,
html.dark .cdx-settings-button svg * {
  stroke: currentColor !important;
}

/* Главный popover Editor.js */
html.dark .ce-popover,
html.dark .ce-conversion-toolbar,
html.dark .ce-inline-toolbar,
html.dark .ce-settings {
  background: #111827 !important;
  border: 1px solid #374151 !important;
  color: #e5e7eb !important;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55) !important;
}

/* Внутренности popover */
html.dark .ce-popover__container,
html.dark .ce-popover__items,
html.dark .ce-popover__nothing-found-message {
  background: #111827 !important;
  color: #e5e7eb !important;
}

/* Поиск в popover */
html.dark .cdx-search-field,
html.dark .ce-popover__search {
  background: #0f172a !important;
  border: 1px solid #374151 !important;
  color: #e5e7eb !important;
}

html.dark .cdx-search-field__input,
html.dark .ce-popover__search input {
  background: transparent !important;
  color: #e5e7eb !important;
}

html.dark .cdx-search-field__input::placeholder,
html.dark .ce-popover__search input::placeholder {
  color: #9ca3af !important;
}

html.dark .cdx-search-field__icon,
html.dark .ce-popover__search svg {
  color: #9ca3af !important;
}

/* Элементы меню */
html.dark .ce-popover-item,
html.dark .ce-conversion-tool,
html.dark .ce-inline-tool,
html.dark .ce-settings__button,
html.dark .cdx-settings-button {
  background: transparent !important;
  color: #e5e7eb !important;
}

/* Заголовки/тексты элементов меню */
html.dark .ce-popover-item__title,
html.dark .ce-conversion-tool__title,
html.dark .ce-inline-tool,
html.dark .ce-settings__button,
html.dark .cdx-settings-button {
  color: #e5e7eb !important;
}

/* Иконки элементов меню */
html.dark .ce-popover-item__icon,
html.dark .ce-conversion-tool__icon,
html.dark .ce-inline-tool,
html.dark .ce-settings__button,
html.dark .cdx-settings-button {
  color: #d1d5db !important;
}

html.dark .ce-popover-item__icon,
html.dark .ce-conversion-tool__icon {
}

/* Hover элементов меню */
html.dark .ce-popover-item:hover,
html.dark .ce-conversion-tool:hover,
html.dark .ce-inline-tool:hover,
html.dark .ce-settings__button:hover,
html.dark .cdx-settings-button:hover {
  background: #1f2937 !important;
  color: #ffffff !important;
}

/* Активные элементы */
html.dark .ce-popover-item--active,
html.dark .ce-conversion-tool--focused,
html.dark .ce-inline-tool--active,
html.dark .ce-settings__button--active,
html.dark .cdx-settings-button--active {
  background: #374151 !important;
  color: #ffffff !important;
}

/* Disabled элементы — как на твоём скрине */
html.dark .ce-popover-item--disabled,
html.dark .ce-popover-item[disabled],
html.dark .ce-conversion-tool--disabled,
html.dark .ce-inline-tool--disabled,
html.dark .ce-settings__button--disabled,
html.dark .cdx-settings-button--disabled {
  opacity: 0.45 !important;
  color: #6b7280 !important;
  background: transparent !important;
}

html.dark .ce-popover-item--disabled .ce-popover-item__title,
html.dark .ce-popover-item[disabled] .ce-popover-item__title,
html.dark .ce-conversion-tool--disabled .ce-conversion-tool__title {
  color: #6b7280 !important;
}

/* Разделители */
html.dark .ce-popover-item-separator,
html.dark .ce-popover__separator,
html.dark .ce-conversion-toolbar__label {
  border-color: #374151 !important;
  color: #9ca3af !important;
}

/* Инлайн тулбар */
html.dark .ce-inline-toolbar__dropdown,
html.dark .ce-inline-toolbar__buttons,
html.dark .ce-inline-tool {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #374151 !important;
}

html.dark .ce-inline-toolbar__dropdown:hover,
html.dark .ce-inline-tool:hover {
  background: #1f2937 !important;
}

/* Tooltip / подсказки */
html.dark .ce-toolbar__actions,
html.dark .ce-toolbox,
html.dark .ce-toolbox__button {
  color: #d1d5db !important;
}

/* Настройки блока */
html.dark .ce-settings__button {
  border-radius: 6px !important;
}

/* Inputs внутри плагинов Editor.js */
html.dark .cdx-input,
html.dark .cdx-text-input,
html.dark .ce-code__textarea,
html.dark .link-tool__input,
html.dark .image-tool__caption,
html.dark .embed-tool__caption {
  background: #0f172a !important;
  border-color: #374151 !important;
  color: #e5e7eb !important;
  box-shadow: none !important;
}

html.dark .cdx-input::placeholder,
html.dark .cdx-text-input::placeholder,
html.dark .ce-code__textarea::placeholder,
html.dark .link-tool__input::placeholder,
html.dark .image-tool__caption::placeholder,
html.dark .embed-tool__caption::placeholder {
  color: #9ca3af !important;
}

/* Link Tool */
html.dark .link-tool,
html.dark .link-tool__content,
html.dark .link-tool__anchor {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #e5e7eb !important;
}

html.dark .link-tool__title {
  color: #f9fafb !important;
}

html.dark .link-tool__description,
html.dark .link-tool__site-name {
  color: #9ca3af !important;
}

/* Image Tool */
html.dark .image-tool,
html.dark .image-tool__image,
html.dark .image-tool__caption {
  color: #e5e7eb !important;
}

html.dark .image-tool__image {
  background: #0f172a !important;
}

/* Table Tool */
html.dark .tc-table,
html.dark .tc-row,
html.dark .tc-cell {
  border-color: #374151 !important;
  color: #e5e7eb !important;
}

html.dark .tc-cell,
html.dark .tc-wrap {
  background: #111827 !important;
}

html.dark .tc-toolbox,
html.dark .tc-popover {
  background: #111827 !important;
  border-color: #374151 !important;
  color: #e5e7eb !important;
}

/* Quote / checklist / list */
html.dark .cdx-quote__text,
html.dark .cdx-quote__caption,
html.dark .cdx-checklist__item-text,
html.dark .cdx-list {
  color: #e5e7eb !important;
}

html.dark .cdx-checklist__item-checkbox {
  border-color: #6b7280 !important;
  background: #111827 !important;
}

/* Warning Tool */
html.dark .cdx-warning,
html.dark .cdx-warning__title,
html.dark .cdx-warning__message {
  background: #111827 !important;
  color: #e5e7eb !important;
  border-color: #374151 !important;
}

/* Code Tool */
html.dark .ce-code__textarea {
  background: #020617 !important;
  color: #e5e7eb !important;
  border-color: #374151 !important;
}

/* Marker / selection */
html.dark .ce-block ::selection,
html.dark .codex-editor ::selection {
  background: rgba(96, 165, 250, 0.35) !important;
}

/* Скролл внутри popover */
html.dark .ce-popover__items::-webkit-scrollbar {
  width: 8px;
}

html.dark .ce-popover__items::-webkit-scrollbar-thumb {
  background: #374151;
  border-radius: 999px;
}

html.dark .ce-popover__items::-webkit-scrollbar-track {
  background: #111827;
}
/* Editor.js dark — убрать светлую обводку меню */
html.dark .ce-popover,
html.dark .ce-popover__container,
html.dark .ce-popover--opened,
html.dark .ce-popover--nested,
html.dark .ce-conversion-toolbar,
html.dark .ce-inline-toolbar,
html.dark .ce-settings {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45) !important;
}

/* Убрать обводку у внутреннего nested-меню */
html.dark .ce-popover.ce-popover--nested,
html.dark .ce-popover--nested .ce-popover__container {
  border: 0 !important;
  outline: 0 !important;
}

/* Убрать обводку у поиска внутри меню */
html.dark .cdx-search-field,
html.dark .ce-popover__search {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}

/* Убрать focus-обводку у input поиска */
html.dark .cdx-search-field__input,
html.dark .ce-popover__search input {
  outline: 0 !important;
  box-shadow: none !important;
}
html.dark .ce-popover-item-separator__line {
  background: transparent !important;
  border: 0 !important;
}
html.dark .c-picker__dropdown{box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45) !important; }
html.dark .border-bottom{border-color:#1f2937 !important; }

html.dark .c-picker__list .c-picker__item:not(.c-picker__none) + .c-picker__item:not(.c-picker__none) {
    border-top: 1px solid #1f2937 !important;
}
html.dark .c-picker__none
 {
    border-bottom:  1px solid #1f2937 !important;
}
html.dark  .community-tabs {
    border-top: 1px solid #1f2937;
}

html.dark  .comment-text .comnone {
    background-color: #374151 !important;
}
html.dark .home-news-card {
  background: #111827;
  border-color: rgba(255,255,255,.08);
}

html.dark .home-news-title,
html.dark .home-news-text {
  color: #e5e7eb;
}

html.dark .home-news-time,
html.dark .home-news-date,
html.dark .home-news-comments {
  color: #9ca3af;
}

html.dark .home-news-button {
  background: rgba(255,255,255,.06) !important;
  border: none !important;
  color: #e5e7eb !important;
}

html.dark .home-news-button:hover {
  background: rgba(255,255,255,.1) !important;
  color: #fff !important;
}

html.dark .home-news-item:hover .home-news-text > span:first-child {
  color: #60a5fa;
}
html.dark .community-cover {
    background: #1f2937;
  }

  html.dark .error404-card {
  background: #111827 !important;
  color: #d1d5db !important;
  border-color: #1f2937 !important;
}

html.dark .error404-title {
  color: #f3f4f6 !important;
}

html.dark .error404-text {
  color: #cbd5e1 !important;
}

html.dark .error404-code {
  background: #2f3034 !important;
  color: #ffffff !important;
}

html.dark .error404-button,
html.dark .error404-button:hover,
html.dark .error404-button:focus,
html.dark .error404-button:active {
  background-color: #0284c7 !important;
  border-color: #0284c7 !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

html.dark .error404-button span,
html.dark .error404-button svg {
  color: #ffffff !important;
}

html.dark .error404-description {
  color: #cbd5e1 !important;
}

html.dark .error404-description a {
  color: #0ea5e9 !important;
  font-weight: 400 !important;
}

html.dark .error404-description a:hover {
  color: #38bdf8 !important;
  text-decoration: underline;
}
/* Poll dark theme */
html.dark .ejs-poll-block {
  background: #1f2937 !important;
  color: #d1d5db !important;
}

html.dark .ejs-poll-label {
  color: #d1d5db !important;
}

html.dark .ejs-poll-input {
  border-bottom-color: #374151 !important;
  color: #d1d5db !important;
  background: transparent !important;
}

html.dark .ejs-poll-input::placeholder {
  color: #9ca3af !important;
}

html.dark .ejs-poll-correct {
  border-color: #374151 !important;
  background: #111827 !important;
}

html.dark .ejs-poll-correct::before {
  background: #14532d !important;
  color: #d1d5db !important;
}

html.dark .ejs-poll-remove {
  border-color: #374151 !important;
  background: #111827 !important;
  color: #9ca3af !important;
}

html.dark .ejs-poll-remove:hover,
html.dark .ejs-poll-remove:focus {
  color: #f97316 !important;
  border-color: #f97316 !important;
  background: rgba(249, 115, 22, .12) !important;
}

html.dark .ejs-poll-add {
  background: #111827 !important;
  color: #d1d5db !important;
}

html.dark .ejs-poll-add:hover {
  background: #374151 !important;
  color: #ffffff !important;
}

html.dark .ejs-poll-check {
  color: #9ca3af !important;
}

html.dark .ejs-poll-check input {
  border-color: #374151 !important;
  background: #111827 !important;
}

html.dark .ejs-poll-check input::before {
  border-color: #f97316 !important;
  color: #f97316 !important;
}

/* Вывод опроса в посте */
html.dark .ejs-poll-view {
  background: #1f2937 !important;
  color: #d1d5db !important;
  border-radius: 12px;
}

html.dark .ejs-poll-view-title {
  color: #d1d5db !important;
}

html.dark .ejs-poll-title-badge {
  color: #9ca3af !important;
}

html.dark .ejs-poll-view-option {
  background: #111827 !important;
  color: #d1d5db !important;
}

html.dark .ejs-poll-view-option input {
  accent-color: #14532d;
}

html.dark .ejs-poll-view-option.is-correct-option {
  background: rgba(20, 83, 45, .55) !important;
}

html.dark .ejs-poll-view-option.is-wrong-selected {
  background: rgba(127, 29, 29, .55) !important;
}

html.dark .ejs-poll-view-option-text {
  color: #d1d5db !important;
}

html.dark .ejs-poll-view-result,
html.dark .ejs-poll-view-percent {
  color: #d1d5db !important;
}

html.dark .ejs-poll-total {
  color: #9ca3af !important;
}

html.dark .ejs-poll-correct-mark.is-correct {
  background: #14532d !important;
  color: #d1d5db !important;
}

html.dark .ejs-poll-correct-mark.is-wrong {
  background: #7f1d1d !important;
  color: #d1d5db !important;
}

html.dark .btn.ejs-poll-vote-btn {
  --bs-btn-color: #d1d5db;
  --bs-btn-bg: #111827;
  --bs-btn-border-color: #111827;

  --bs-btn-hover-color: #ffffff;
  --bs-btn-hover-bg: #374151;
  --bs-btn-hover-border-color: #374151;

  --bs-btn-focus-shadow-rgb: 55, 65, 81;

  --bs-btn-active-color: #ffffff;
  --bs-btn-active-bg: #374151;
  --bs-btn-active-border-color: #374151;

  --bs-btn-disabled-color: #9ca3af;
  --bs-btn-disabled-bg: #111827;
  --bs-btn-disabled-border-color: #111827;

  background-color: var(--bs-btn-bg) !important;
  color: var(--bs-btn-color) !important;
  border-color: var(--bs-btn-border-color) !important;
}

html.dark .btn.ejs-poll-vote-btn:hover,
html.dark .btn.ejs-poll-vote-btn:focus {
  background-color: var(--bs-btn-hover-bg) !important;
  color: var(--bs-btn-hover-color) !important;
  border-color: var(--bs-btn-hover-border-color) !important;
}

html.dark .btn.ejs-poll-vote-btn:disabled,
html.dark .btn.ejs-poll-vote-btn.disabled {
  background-color: var(--bs-btn-disabled-bg) !important;
  color: var(--bs-btn-disabled-color) !important;
  border-color: var(--bs-btn-disabled-border-color) !important;
  opacity: 1 !important;
}

/* Заблокированный опрос в редакторе */
html.dark .ejs-poll-block--locked {
  opacity: .9;
}

html.dark .ejs-poll-block--locked .ejs-poll-input {
  color: #9ca3af !important;
}

html.dark .ejs-poll-locked-notice {
  background: rgba(127, 29, 29, .45) !important;
  color: #fecaca !important;
}
html.dark .ce-popover,
html.dark .ce-popover--opened,
html.dark .ce-popover--nested,
html.dark .ce-popover__container,
html.dark .ce-conversion-toolbar,
html.dark .ce-inline-toolbar,
html.dark .ce-settings {
  z-index: 9999 !important;
}