:root{
  --font-sans:Inter, Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --brand-blue:#2d7bff;
  --brand-blue-hover:#1f6ef5;
  --brand-blue-soft:#eaf2ff;
  --brand-lime:#9BEA3C;
  --brand-lime-hover:#8ed92f;
  --brand-lime-soft:#f1ffd9;
  --brand-orange:#ff8a1f;
  --brand-orange-hover:#f27c10;
  --brand-orange-soft:#fff0e2;
  --bg:#f4f6f8;
  --bg-soft:#f8fafc;
  --surface:#ffffff;
  --surface-2:#f7f8fa;
  --surface-3:#eef2f6;
  --text:#111318;
  --text-soft:#505050;
  --text-fade:#98a0ad;
  --border:rgba(15,23,42,.08);
  --border-strong:rgba(15,23,42,.14);
  --shadow-xs:0 1px 2px rgba(16,24,40,.035);
  --shadow-sm:0 6px 18px rgba(16,24,40,.055);
  --shadow-md:0 14px 34px rgba(16,24,40,.085);
  --accent-main:var(--brand-blue);
  --accent-main-hover:var(--brand-blue-hover);
  --accent-main-soft:var(--brand-blue-soft);
  --accent-hot:var(--brand-lime);
  --accent-hot-hover:var(--brand-lime-hover);
  --accent-hot-soft:var(--brand-lime-soft);
  --accent-fire:var(--brand-orange);
  --accent-fire-hover:var(--brand-orange-hover);
  --accent-fire-soft:var(--brand-orange-soft);
  --success:#20b15a;
  --success-soft:#eafbf1;
  --danger:#ef4444;
  --danger-soft:#feeceb;
  --overlay-soft:rgba(12,18,23,.46);
  --overlay-strong:rgba(12,18,23,.58);
  --main-color:#2d7bff;
  --header:#ffffff;
  --logo:#272727;
  --bg-white:#fff;
  --bg2:#f8f8f8;
  --bg3:#dcdcdc;
  --text-color2:#5c5959;
  --text-accent:#000;
  --bxsdw:0 2px 4px rgb(56 50 48 / 5%), 0 1px 0 rgb(56 50 48 / 8%);
  --box-shadow:0 2px 4px rgb(56 50 48 / 5%), 0 1px 0 rgb(56 50 48 / 8%);
  --light-grey:#F5F5F5;
  --border-color:#B3D1FF;
  --border-shadow:0 0 0 3px #E6EFFD;
  --reaction-btn-bg:#F9F9F9;
  --pm:#F0F0F0;
  --add-btn:#fff;
  --pagination-active:#DBDBDB;
  --pagination-hover:#E6E6E6;
  --reg-btn:#F0F0F0;
  --qq-button:#F5F5F5;
  --header-h:68px;
  --header-bg:rgba(255,255,255,.82);
  --header-border:rgba(0,0,0,.06);
  --header-shadow:0 8px 24px rgba(16,24,40,.06);
  --header-icon-bg-hover:rgba(0,0,0,.05);
  --scrollbar-comp:0px;
  --feed-media-max-h:560px;
}

.theme-dark{
  --bg:#16181d;
  --bg-soft:#1b1e24;
  --surface:#20242b;
  --surface-2:#262b33;
  --surface-3:#2d333d;
  --bg-white:#26282B;
  --header:#26282B;
  --logo:#ffffff;
  --bg2:#1c1e20;
  --bg3:#484848;
  --text:#f3f6fb;
  --text-soft:#e3e3e3;
  --text-fade:#7f8896;
  --text-color2:#8e8e8e;
  --text-accent:#fff;
  --light-grey:#2c2c2d;
  --border:rgba(255,255,255,.08);
  --border-strong:rgba(255,255,255,.14);
  --border-color:rgba(255,255,255,.1);
  --border-shadow:0 0 0 3px rgba(255,255,255,.08);
  --reaction-btn-bg:#333333;
  --pm:#161617;
  --add-btn:#2c2c2c;
  --pagination-active:#3d3d3d;
  --pagination-hover:#454545;
  --reg-btn:#3f3f3f;
  --qq-button:#161617;
  --shadow-xs:0 1px 2px rgba(0,0,0,.18);
  --shadow-sm:0 8px 20px rgba(0,0,0,.22);
  --shadow-md:0 16px 36px rgba(0,0,0,.28);
  --accent-main-soft:rgba(45,123,255,.14);
  --accent-hot-soft:rgba(155,234,60,.14);
  --accent-fire-soft:rgba(255,138,31,.14);
  --success-soft:rgba(32,177,90,.14);
  --danger-soft:rgba(239,68,68,.14);
  --overlay-soft:rgba(5,8,12,.62);
  --overlay-strong:rgba(5,8,12,.74);
  --header-bg:rgba(22,24,29,.86);
  --header-border:rgba(255,255,255,.06);
  --header-shadow:0 10px 28px rgba(0,0,0,.28);
  --header-icon-bg-hover:rgba(255,255,255,.06);
}

html{
  scrollbar-gutter:stable;
  font-size:16px;
  -webkit-text-size-adjust:100%;
  text-size-adjust:100%;
}

body{
  margin:0;
  padding:0;
  border:0;
  background-color:var(--bg);
  color:var(--text);
  font:400 15px/1.6 var(--font-sans);
  text-rendering:optimizeLegibility;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

*{
  margin:0;
  padding:0;
  outline:none;
  box-sizing:border-box;
}

a{
  color:var(--accent-main);
  text-decoration:none;
}

a:hover{
  color:var(--accent-main-hover);
}

p{margin:12px 0;}
hr{border:0;border-bottom:1px solid var(--border);margin-bottom:10px;}
ol,ul{list-style:none;}

h1,h2,h3,h4,h5,h6{
  color:var(--text);
  letter-spacing:-.02em;
}

h1{
  font-weight:700;
  font-size:26px;
  line-height:1.16;
}

h2{
  font-weight:600;
  font-size:21px;
  line-height:1.24;
}

h3{
  font-weight:600;
  font-size:18px;
  line-height:1.28;
}

h4{
  font-weight:600;
  font-size:16px;
  line-height:1.35;
}

h5{
  font-weight:600;
  font-size:15px;
  line-height:1.4;
}

h6{
  font-weight:600;
  font-size:12px;
  line-height:1.45;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--text-fade);
}

img{
  display:block;
  max-width:100%;
  height:auto;
}

button,
input,
textarea,
select{
  font:inherit;
  font-family:var(--font-sans);
}

code{
  padding:3px 8px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:8px;
}

blockquote,
.quote{
  padding:18px 20px 18px 22px;
  border-left:4px solid var(--accent-main);
  font-size:17px;
}

.hidden{display:none;}
.d_none{display:none;}
.d-block{display:block;}
.d-flex{display:flex;align-items:center;}

/* HEADER */
.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:900;
  box-sizing:border-box;
  padding-right:var(--scrollbar-comp);
  background:var(--header-bg);
  border-bottom:1px solid var(--header-border);
  box-shadow:var(--header-shadow);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}

.site-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  max-width:1260px;
  height:var(--header-h);
  margin:0 auto;
  padding:0 16px;
}

.site-header__left,
.site-header__right{
  display:flex;
  align-items:center;
  gap:8px;
}

.site-header__left{
  flex:1 1 auto;
  min-width:0;
}

.site-header__right{
  flex:0 0 auto;
}

.site-header__left-space{
  display:flex;
  align-items:center;
  min-width:0;
}

.site-header__logo{
  display:inline-flex;
  align-items:center;
  justify-content:flex-start;
  flex:0 0 auto;
  color:var(--text);
  text-decoration:none;
  white-space:nowrap;
}

.site-header__logo-image{
  display:block;
  width:auto;
  height:38px;
  max-width:none;
  object-fit:contain;
}

.site-header__logo-mark,
.site-header__logo-text{
  display:none;
}

.site-header__icon-btn{
  width:38px;
  height:38px;
  border:0;
  border-radius:13px;
  background:transparent;
  color:var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  text-decoration:none;
  transition:transform .2s ease, background .2s ease, opacity .2s ease;
}

.site-header__icon-btn:hover{
  background:var(--header-icon-bg-hover);
}

.site-header__icon-btn:active{
  transform:scale(.96);
}

.site-header__icon-btn i{
  font-size:17px;
  line-height:1;
}

.site-header__profile-wrap{
  position:relative;
}

.site-header__profile{
  position:relative;
  width:38px;
  height:38px;
  padding:0;
  border:0;
  border-radius:13px;
  background:transparent;
  overflow:hidden;
  cursor:pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.site-header__profile img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  border-radius:13px;
  display:block;
}

.site-header__profile--guest{
  background:var(--surface-2);
  border:1px solid var(--border);
}

.site-header__profile--guest:hover{
  background:var(--surface-3);
}

.site-header__profile-guest-icon{
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--text-soft);
}

.site-header__profile-guest-icon i{
  font-size:16px;
  line-height:1;
}

.site-header__burger{
  display:none;
  position:relative;
}

.site-header__burger span{
  position:absolute;
  width:18px;
  height:2px;
  border-radius:999px;
  background:var(--text);
}

.site-header__burger span:nth-child(1){transform:translateY(-6px);}
.site-header__burger span:nth-child(2){transform:translateY(0);}
.site-header__burger span:nth-child(3){transform:translateY(6px);}

/* SEARCH */
.search-overlay{
  position:fixed;
  inset:0;
  z-index:1000;
  opacity:0;
  pointer-events:none;
  transition:opacity .24s ease;
}

.search-overlay.is-open{
  opacity:1;
  pointer-events:auto;
}

.search-overlay__backdrop{
  position:absolute;
  inset:0;
  background:var(--overlay-soft);
}

.search-overlay__panel{
  position:relative;
  max-width:1260px;
  margin:0 auto;
  padding:14px;
  transform:translateY(-18px);
  transition:transform .24s ease;
}

.search-overlay.is-open .search-overlay__panel{
  transform:translateY(0);
}

.search-overlay__top{
  display:flex;
  align-items:center;
  gap:10px;
  margin-top:8px;
}

.search-overlay__form{
  display:flex;
  align-items:center;
  flex:1 1 auto;
  min-width:0;
  height:56px;
  padding:0 12px 0 16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-md);
}

.search-overlay__input{
  flex:1 1 auto;
  min-width:0;
  border:0;
  outline:0;
  background:transparent;
  color:var(--text);
  font-size:16px;
  font-weight:400;
}

.search-overlay__submit,
.search-overlay__close{
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  background:transparent;
  color:var(--text);
  cursor:pointer;
}

.search-overlay__close{
  background:var(--surface);
  box-shadow:var(--shadow-md);
}

.search-overlay__body{
  margin-top:12px;
}

.search-overlay__block{
  padding:14px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-md);
}

.search-overlay__title{
  margin-bottom:12px;
  color:var(--text-soft);
  font-size:11px;
  font-weight:600;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.search-overlay__recent{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.search-overlay__recent a{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 11px;
  border-radius:999px;
  background:var(--surface-2);
  color:var(--text);
  text-decoration:none;
  font-size:13px;
  font-weight:500;
}

.search-overlay__recent a:hover{
  background:var(--accent-main-soft);
  color:var(--accent-main);
}

/* =========================================
   AUTH MODAL — FULL REPLACE CLEAN
   ========================================= */

.auth-modal{
  position:fixed;
  inset:0;
  z-index:1100;
  opacity:0;
  pointer-events:none;
  transition:opacity .24s ease;
}

.auth-modal.is-open{
  opacity:1;
  pointer-events:auto;
}

.auth-modal__backdrop{
  position:absolute;
  inset:0;
  background:var(--overlay-strong);
}

.auth-modal__panel{
  position:relative;
  width:min(520px, calc(100vw - 24px));
  margin:8vh auto 0;
  padding:22px;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.10), transparent 30%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.08), transparent 24%),
    var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:0 28px 80px rgba(0,0,0,.18);
  transform:translateY(18px) scale(.985);
  transition:transform .24s ease;
}

.auth-modal.is-open .auth-modal__panel{
  transform:translateY(0) scale(1);
}

.theme-dark .auth-modal__panel{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.14), transparent 30%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.06), transparent 24%),
    var(--surface);
  box-shadow:0 28px 80px rgba(0,0,0,.34);
}

/* top controls */
.auth-modal__close,
.auth-modal__back{
  position:absolute;
  top:14px;
  width:42px;
  height:42px;
  padding:0;
  margin:0;
  border:1px solid var(--border);
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.62);
  color:var(--text);
  cursor:pointer;
  z-index:5;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, opacity .18s ease;
}

.theme-dark .auth-modal__close,
.theme-dark .auth-modal__back{
  background:rgba(255,255,255,.04);
  border-color:rgba(255,255,255,.08);
}

.auth-modal__close{
  right:14px;
}

.auth-modal__back{
  left:14px;
  opacity:0;
  pointer-events:none;
}

.auth-modal.is-step-email .auth-modal__back{
  opacity:1;
  pointer-events:auto;
}

.auth-modal__close:hover,
.auth-modal__back:hover{
  background:var(--surface);
  color:var(--text);
}

.auth-modal__close:active,
.auth-modal__back:active{
  transform:scale(.96);
}

.auth-modal__close i,
.auth-modal__back i{
  font-size:16px;
  line-height:1;
  display:block;
}

/* viewport + stage animation */
.auth-modal__viewport{
  position:relative;
  display:grid;
  grid-template-areas:"stack";
  overflow:hidden;
  transition:height .28s cubic-bezier(.22,1,.36,1);
}

.auth-modal__stage{
  grid-area:stack;
  min-width:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(28px) scale(.985);
  transition:
    opacity .26s ease,
    transform .28s cubic-bezier(.22,1,.36,1),
    visibility .26s ease;
}

.auth-modal__stage.is-active{
  position:relative;
  z-index:2;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(0) scale(1);
}

.auth-modal:not(.is-step-email) .auth-modal__stage--email{
  transform:translateX(28px) scale(.985);
}

.auth-modal.is-step-email .auth-modal__stage--welcome{
  transform:translateX(-28px) scale(.985);
}

/* head */
.auth-modal__head{
  padding:12px 48px 0;
  margin-bottom:18px;
}

.auth-modal__head--center{
  text-align:center;
  padding-top:6px;
}

.auth-modal__badge{
  min-height:30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 12px;
  margin-bottom:16px;
  border-radius:999px;
  border:1px solid rgba(45,123,255,.10);
  background:
    linear-gradient(90deg, rgba(45,123,255,.12), rgba(155,234,60,.10)),
    var(--surface);
  color:var(--text);
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.auth-modal__title{
  color:var(--text);
  font-size:28px;
  line-height:1.06;
  font-weight:800;
  letter-spacing:-.04em;
}

.auth-modal__desc{
  margin-top:10px;
  max-width:360px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.62;
}

.auth-modal__head--center .auth-modal__desc{
  margin-left:auto;
  margin-right:auto;
}

/* content */
.auth-box{
  display:grid;
  gap:16px;
  max-width:420px;
  margin:0 auto;
}

.auth-box--welcome{
  gap:20px;
}

.auth-box__actions{
  display:grid;
  gap:12px;
}

.auth-social{
  position:relative;
  overflow:hidden;
  width:100%;
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 18px;
  border:1px solid transparent;
  border-radius:18px;
  text-decoration:none;
  cursor:pointer;
  font-size:15px;
  font-weight:700;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.auth-social::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
  pointer-events:none;
}

.auth-social:active{
  transform:scale(.985);
}

.auth-social--yandex{
  background:linear-gradient(180deg, #161616, #0f0f0f);
  color:#fff;
}

.auth-social--yandex:hover{
  background:linear-gradient(180deg, #1d1d1d, #111);
  color:#fff;
}

.auth-social--yandex i{
  color:#ff4b26;
  font-size:18px;
}

.auth-social--email{
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  border-color:var(--border);
  color:var(--text);
}

.auth-social--email:hover{
  background:linear-gradient(180deg, var(--surface), var(--surface-3));
  border-color:var(--border-strong);
  color:var(--text);
}

.auth-social--email i{
  color:var(--accent-main);
  font-size:17px;
}

.auth-box__divider{
  position:relative;
  margin:2px 0;
  text-align:center;
}

.auth-box__divider::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:var(--border);
}

.auth-box__divider span{
  position:relative;
  z-index:1;
  display:inline-block;
  padding:0 14px;
  background:var(--surface);
  color:var(--text-soft);
  font-size:12px;
  font-weight:700;
  letter-spacing:.02em;
}

.auth-box__bottom{
  display:grid;
  justify-items:center;
  gap:12px;
}

.auth-box__primary-link{
  min-height:50px;
  width:100%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:18px;
  background:linear-gradient(180deg, var(--accent-main), var(--accent-main-hover));
  color:#fff;
  text-decoration:none;
  font-size:15px;
  font-weight:800;
  transition:background .18s ease, transform .18s ease, filter .18s ease;
}

.auth-box__primary-link:hover{
  background:linear-gradient(180deg, var(--accent-main), var(--accent-main-hover));
  color:#fff;
  filter:brightness(1.03);
}

.auth-box__primary-link:active{
  transform:scale(.985);
}

.auth-box__muted-link{
  color:var(--text-soft);
  font-size:14px;
  font-weight:600;
}

.auth-box__muted-link:hover{
  color:var(--text);
}

/* form */
.auth-form{
  display:grid;
  gap:16px;
}

.auth-form__group{
  display:grid;
  gap:9px;
}

.auth-form__label{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:.03em;
  text-transform:uppercase;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"]{
  width:100%;
  min-height:54px;
  padding:0 18px;
  background:linear-gradient(180deg, var(--surface-2), var(--surface-2));
  color:var(--text);
  border:1px solid var(--border);
  border-radius:18px;
  font-size:15px;
  font-weight:500;
  box-shadow:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px rgba(45,123,255,.12);
}

.auth-form__check{
  min-height:20px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text-soft);
  font-size:14px;
  font-weight:500;
  cursor:pointer;
}

.auth-form__check input{
  margin:0;
}

.auth-form__submit{
  width:100%;
  min-height:52px;
  border:0;
  border-radius:18px;
  background:linear-gradient(180deg, var(--accent-main), var(--accent-main-hover));
  color:#fff;
  font-size:15px;
  font-weight:800;
  cursor:pointer;
  transition:background .18s ease, transform .18s ease, filter .18s ease;
}

.auth-form__submit:hover{
  background:linear-gradient(180deg, var(--accent-main), var(--accent-main-hover));
  filter:brightness(1.03);
}

.auth-form__submit:active{
  transform:scale(.985);
}

.auth-box__links{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 18px;
}

.auth-box__links a{
  color:var(--accent-main);
  font-size:14px;
  font-weight:500;
}

.auth-box__links--auth{
  justify-content:space-between;
  gap:12px;
  padding-top:2px;
}

.auth-box__links--auth a{
  color:var(--text-soft);
  font-size:14px;
  font-weight:600;
}

.auth-box__links--auth a:hover{
  color:var(--accent-main);
}

/* tablet */
@media screen and (max-width:768px){
  .auth-modal__panel{
    width:min(100vw - 16px, 520px);
    margin:6vh auto 0;
    padding:20px 18px;
    box-shadow:0 20px 54px rgba(0,0,0,.20);
    border-radius:22px;
  }

  .auth-modal__head{
    padding:12px 46px 0;
  }

  .auth-modal__title{
    font-size:24px;
  }

  .auth-modal__desc{
    font-size:14px;
  }

  .auth-social,
  .auth-box__primary-link,
  .auth-form__submit{
    min-height:50px;
    border-radius:16px;
  }

  .auth-form input[type="text"],
  .auth-form input[type="password"],
  .auth-form input[type="email"]{
    min-height:50px;
    border-radius:16px;
  }
}

/* mobile */
@media screen and (max-width:640px){
  .auth-modal{
    display:flex;
    align-items:flex-end;
    padding:0;
  }

  .auth-modal__panel{
    width:100%;
    max-width:none;
    min-height:62vh;
    max-height:92dvh;
    margin:auto 0 0;
    padding:18px 14px calc(18px + env(safe-area-inset-bottom));
    overflow:auto;
    border-radius:22px 22px 0 0;
    background:
      radial-gradient(circle at top right, rgba(45,123,255,.10), transparent 28%),
      radial-gradient(circle at left bottom, rgba(155,234,60,.06), transparent 22%),
      var(--surface);
    box-shadow:0 -18px 46px rgba(0,0,0,.24);
    transform:translateY(100%);
  }

  .auth-modal.is-open .auth-modal__panel{
    transform:translateY(0) scale(1);
  }

  .auth-modal__close,
  .auth-modal__back{
    top:12px;
    width:40px;
    height:40px;
    border-radius:12px;
  }

  .auth-modal__close{
    right:12px;
  }

  .auth-modal__back{
    left:12px;
  }

  .auth-modal__head{
    padding:12px 42px 0;
    margin-bottom:16px;
  }

  .auth-modal__badge{
    margin-bottom:14px;
  }

  .auth-modal__title{
    font-size:22px;
    line-height:1.08;
  }

  .auth-modal__desc{
    margin-top:8px;
    font-size:13px;
    line-height:1.58;
  }

  .auth-social,
  .auth-box__primary-link,
  .auth-form__submit{
    min-height:48px;
    border-radius:15px;
    font-size:14px;
  }

  .auth-form input[type="text"],
  .auth-form input[type="password"],
  .auth-form input[type="email"]{
    min-height:48px;
    padding:0 16px;
    border-radius:15px;
  }

  .auth-box__links--auth{
    justify-content:center;
    gap:10px 16px;
  }
}

/* PROFILE DROPDOWN */
.site-profile-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  z-index:950;
  width:320px;
  max-width:min(320px, calc(100vw - 24px));
  padding:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.16);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(8px) scale(.98);
  transition:opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.site-profile-dropdown.is-open{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

/* PROFILE MENU IN HEADER */
.profile-menu{
  display:grid;
  gap:10px;
}

.profile-menu__head{
  padding-bottom:4px;
  border-bottom:1px solid var(--border);
}

.profile-menu__user{
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px;
  border-radius:14px;
  color:var(--text);
  text-decoration:none;
  transition:background .18s ease;
}

.profile-menu__user:hover{
  background:var(--surface-2);
  color:var(--text);
}

.profile-menu__avatar{
  width:48px;
  height:48px;
  border-radius:16px;
  object-fit:cover;
  flex:0 0 auto;
}

.profile-menu__meta{
  min-width:0;
  display:grid;
  gap:2px;
}

.profile-menu__name{
  color:var(--text);
  font-size:15px;
  line-height:1.2;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.profile-menu__group{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.profile-menu__list{
  display:grid;
  gap:4px;
}

.profile-menu__item,
.profile-menu__logout{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 12px;
  border-radius:13px;
  text-decoration:none;
  font-size:14px;
  font-weight:500;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.profile-menu__item{
  color:var(--text);
}

.profile-menu__item:hover{
  background:var(--surface-2);
  color:var(--text);
}

.profile-menu__logout{
  justify-content:center;
  background:var(--danger-soft);
  color:var(--danger);
}

.profile-menu__logout:hover{
  background:#fde2e0;
  color:#dc2626;
}

.theme-dark .profile-menu__logout:hover{
  background:rgba(239,68,68,.2);
  color:#ff7b7b;
}

.profile-menu__item i,
.profile-menu__logout i{
  width:18px;
  flex:0 0 auto;
  text-align:center;
  font-size:16px;
}

.profile-menu__footer{
  padding-top:2px;
}

/* LAYOUT */
.cols{
  display:grid;
  grid-template-columns:280px minmax(0,640px) 280px;
  justify-content:space-between;
  max-width:1260px;
  margin:84px auto 0;
  padding:16px 0;
}

.col_left{
  position:sticky;
  top:76px;
  height:calc(100vh - 100px);
}

.col_main,
.col_right{
  min-width:0;
}

.content,
.entry-item{
  display:grid;
  gap:15px;
  grid-template-columns:minmax(0,100%);
}

#menuOverlay{
  position:fixed;
  top:68px;
  left:0;
  z-index:700;
  width:100%;
  height:calc(100vh - 68px);
  background:var(--overlay-soft);
  opacity:0;
  visibility:hidden;
  transition:.25s ease;
}

#menuOverlay.active{
  opacity:1;
  visibility:visible;
}

.menu-close{
  display:none;
}

body.ui-lock,
body.no-scroll,
html.no-scroll{
  overflow:hidden !important;
}

/* LEFT SIDEBAR / COL_LEFT */
.sidebar{
  margin-left:10px;
  margin-right:16px;
  display:grid;
  row-gap:16px;
  overflow-y:auto;
  max-height:100%;
  scrollbar-width:none;
}

.sidebar::-webkit-scrollbar{
  display:none;
}

.side_menu{
  display:grid;
  row-gap:3px;
  padding:10px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-sm);
}

.sidebar__title{
  padding:4px 8px 8px;
  color:var(--text-fade);
  font-size:11px;
  line-height:1.2;
  font-weight:500;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.side_menu_item{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  gap:11px;
  padding:0 12px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--text);
  cursor:pointer;
  appearance:none;
  -webkit-appearance:none;
  text-align:left;
  text-decoration:none;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}

.side_menu_item:hover{
  background:var(--surface-2);
  color:var(--text);
}

.side_menu_item:active{
  transform:scale(.99);
}

.side_menu_active{
  background:var(--accent-main-soft);
  color:var(--accent-main);
}

.side_menu_active:hover{
  background:var(--accent-main-soft);
  color:var(--accent-main);
}

.side_menu_icon{
  width:18px;
  flex:0 0 18px;
  text-align:center;
  font-size:17px;
  line-height:1;
  color:var(--text-soft);
  transition:color .16s ease, opacity .16s ease;
}

.side_menu_item:hover .side_menu_icon{
  color:var(--text);
}

.side_menu_active .side_menu_icon{
  color:var(--accent-main);
}

.side_menu_photo{
  width:28px;
  height:28px;
  border-radius:10px;
  overflow:hidden;
  flex:0 0 auto;
  background:var(--surface-2);
}

.side_menu_photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.side_menu_category{
  min-width:0;
  color:inherit;
  font-size:14px;
  line-height:1.2;
  font-weight:400;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.side_menu_more{
  margin-top:2px;
}

.side_menu_more__hidden{
  display:none;
}

.side_menu_toggle{
  min-height:32px;
  justify-content:flex-start;
  gap:8px;
  padding:0 8px 0 6px;
  border-radius:10px;
  background:transparent !important;
  color:var(--text-soft);
}

.side_menu_toggle:hover{
  background:transparent !important;
  color:var(--accent-main);
}

.side_menu_toggle .side_menu_icon{
  width:14px;
  flex:0 0 14px;
  font-size:13px;
}

.side_menu_toggle .side_menu_category{
  font-size:13px;
  font-weight:400;
}

.side_menu_more.is-open .js-side-menu-toggle,
.side_menu_more.is-open .js-side-menu-toggle .side_menu_icon{
  color:var(--accent-main);
}

.switch-icon:before{
  content:"\f185";
  font-family:"Font Awesome 5 Pro";
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  display:inline-block;
  font-style:normal;
  font-variant:normal;
  text-rendering:auto;
  line-height:1;
}

.theme-dark .switch-icon:before{
  content:"\f186";
}

/* RIGHT SIDEBAR / COL_RIGHT */
.col_right_bg,
.col_right_bg_comm{
  margin-bottom:14px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-sm);
}

.col_right_bg{
  padding:14px 16px;
}

.col_right_bg_comm{
  padding:14px 10px;
}

.col_right_bg_title{
  display:flex;
  align-items:center;
  gap:6px;
  margin-bottom:10px;
  color:var(--text);
  font-size:14px;
  line-height:1.3;
  font-weight:600;
  letter-spacing:-.01em;
}

.col_right_bg_title span{
  color:var(--text-soft);
  font-size:13px;
  font-weight:500;
}

.top_right_block{
  display:flex;
  align-items:center;
  gap:12px;
  padding:6px 0;
}

.top_right_block + .top_right_block{
  border-top:1px solid rgba(15,23,42,.04);
}

.theme-dark .top_right_block + .top_right_block{
  border-top:1px solid rgba(255,255,255,.05);
}

.top_right_photo{
  width:34px;
  height:34px;
  border-radius:50%;
  overflow:hidden;
  display:block;
  flex:0 0 auto;
}

.top_right_photo img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.top_right_info{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:2px;
  line-height:1.25;
}

.top_right_author{
  color:var(--text);
  font-size:13px;
  line-height:1.3;
  font-weight:500;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.top_right_author:hover{
  color:var(--accent-main);
}

.top_right_count{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.35;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.top_right_block_comm{
  display:grid;
  grid-template-columns:20px minmax(0,1fr) auto;
  align-items:start;
  gap:8px 10px;
  padding:10px 0;
}

.top_right_block_comm + .top_right_block_comm{
  border-top:1px solid rgba(15,23,42,.04);
}

.theme-dark .top_right_block_comm + .top_right_block_comm{
  border-top:1px solid rgba(255,255,255,.05);
}

.top_right_photo_comm{
  width:20px;
  height:20px;
  border-radius:50%;
  overflow:hidden;
  display:block;
  flex:0 0 auto;
  margin-top:2px;
}

.top_right_photo_comm img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.top_right_author_comm,
.top_right_author_comm a{
  color:var(--text);
  font-size:12px;
  line-height:1.35;
  font-weight:600;
}

.top_right_author_comm a:hover{
  color:var(--accent-main);
}

.top_right_date{
  margin-left:0;
  color:var(--text-fade);
  font-size:11px;
  line-height:1.2;
  white-space:nowrap;
}

.top_right_comment{
  grid-column:2 / 4;
  padding:8px 10px;
  background:var(--surface-2);
  border:1px solid rgba(15,23,42,.04);
  border-radius:12px;
}

.theme-dark .top_right_comment{
  border-color:rgba(255,255,255,.05);
}

.top_right_comment_title{
  display:block;
  height:auto;
  padding:0;
  margin-bottom:4px;
  color:var(--text-soft);
  font-size:11px;
  line-height:1.35;
  overflow:hidden;
}

.top_right_comment_title a,
.top_right_comment_title i{
  color:var(--text-soft);
}

.top_right_comment_title a:hover{
  color:var(--accent-main);
}

.top_right_comment_text{
  padding:0;
  color:var(--text);
  font-size:12px;
  line-height:1.55;
  font-weight:400;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

.ads{
  height:450px;
  position:sticky;
  left:0;
  top:76px;
  padding:0 10px;
}
/* FEED CARD */
.feed-card{
  position:relative;
  margin:0 0 14px;
  padding:16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow-sm);
  overflow:visible;
}

.feed-card__header{
  margin:0 0 12px;
}

.feed-card__topline{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin:0 0 10px;
}

.feed-card__badges,
.feed-card__authorline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  min-width:0;
}

.feed-card__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  padding:0 11px;
  border-radius:999px;
  font-size:12px;
  font-weight:500;
  line-height:1;
  white-space:nowrap;
  text-decoration:none;
}

.feed-card__badge--category,
.feed-card__badge--author{
  background:var(--surface-2);
  color:var(--text);
}

.feed-card__badge--category:hover,
.feed-card__badge--author:hover{
  background:var(--surface-3);
  color:var(--text);
}

.feed-card__badge-icon-img{
  width:17px;
  height:17px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 auto;
}

.feed-card__badge-text{
  line-height:1;
}

.feed-card__meta-right{
  display:flex;
  align-items:center;
  gap:8px;
  flex:0 0 auto;
}

.feed-card__time{
  display:inline-flex;
  align-items:center;
  gap:7px;
  color:var(--text-soft);
  font-size:12px;
  line-height:1;
  white-space:nowrap;
}

.feed-card__author{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
  color:var(--text);
  text-decoration:none;
  font-size:14px;
  font-weight:500;
}

.feed-card__author-avatar{
  width:28px;
  height:28px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 auto;
}

.feed-card__author-mark{
  color:var(--accent-fire);
}

.feed-card__title{
  margin:0;
  font-size:20px;
  line-height:1.24;
  font-weight:500;
  letter-spacing:-.02em;
}

.feed-card__title a{
  color:var(--text);
  text-decoration:none;
}

.feed-card__excerpt{
  margin:0 0 14px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.58;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.feed-card--video .feed-card__excerpt{
  -webkit-line-clamp:2;
}

.feed-card__media,
.profile-feed-card__media{
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:260px;
  max-height:var(--feed-media-max-h);
  margin:0 0 14px;
  background:var(--surface-2);
  border-radius:18px;
  overflow:hidden;
  text-decoration:none;
  isolation:isolate;
}

.feed-card__media-bg,
.profile-feed-card__media-bg{
  position:absolute;
  inset:0;
  z-index:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  transform:scale(1.08);
  filter:blur(28px) saturate(1.05) brightness(.9);
  opacity:.92;
}

.feed-card__media::after,
.profile-feed-card__media::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(to bottom, rgba(0,0,0,.04), rgba(0,0,0,.10));
  pointer-events:none;
}

.feed-card__media-content,
.profile-feed-card__media-content{
  position:relative;
  z-index:2;
  width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}

.feed-card__image,
.profile-feed-card__image{
  display:block;
  width:auto;
  max-width:100%;
  max-height:clamp(260px, 60vh, var(--feed-media-max-h));
  margin:0 auto;
  object-fit:contain;
  box-shadow:0 8px 24px rgba(0,0,0,.14);
}

.feed-card__poll{
  margin:0 0 14px;
}

.feed-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  padding-top:0;
}

.feed-card__actions-left,
.feed-card__actions-right{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.feed-card__rating{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px;
  background:var(--surface-2);
  border:1px solid transparent;
  border-radius:11px;
}

.feed-card__rate-btn,
.feed-card__rate-score{
  min-width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  line-height:1;
}

.feed-card__rate-btn{
  background:transparent;
  color:var(--text-soft);
  cursor:default;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.feed-card__rate-btn i{
  font-size:13px;
}

.feed-card__rate-btn--up:hover{
  color:var(--success);
  background:var(--success-soft);
}

.feed-card__rate-btn--down:hover{
  color:var(--danger);
  background:var(--danger-soft);
}

.feed-card__rate-score{
  min-width:32px;
  padding:0 5px;
  color:var(--text-soft);
  font-size:12px;
  font-weight:600;
}

.feed-card__rate-score.is-positive{
  color:var(--success);
}

.feed-card__rate-score.is-negative{
  color:var(--danger);
}

.feed-card__action,
.feed-card__views,
.profile-feed-card__action{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:34px;
  padding:0 10px;
  border:1px solid transparent;
  border-radius:11px;
  background:var(--surface-2);
  color:var(--text-soft);
  text-decoration:none;
  font-size:12px;
  font-weight:500;
  line-height:1;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.feed-card__action:hover,
.profile-feed-card__action:hover{
  background:var(--surface-3);
  color:var(--text);
}

.feed-card__action:active,
.profile-feed-card__action:active{
  transform:scale(.98);
}

.feed-card__action i,
.feed-card__views i,
.profile-feed-card__action i{
  font-size:13px;
  line-height:1;
}

.feed-card__action--icon,
.profile-feed-card__action--icon{
  width:34px;
  min-width:34px;
  padding:0;
}

.feed-card__action--comments:hover{
  color:var(--accent-fire);
}

.feed-card__action--comments:hover i,
.feed-card__action--comments:hover span{
  color:var(--accent-fire);
}

.feed-card__action--favorite:hover,
.profile-feed-card__action[aria-label="Ð’ Ð¸Ð·Ð±Ñ€Ð°Ð½Ð½Ð¾Ðµ"]:hover,
.profile-feed-card__action[aria-label="Ð£Ð±Ñ€Ð°Ñ‚ÑŒ Ð¸Ð· Ð¸Ð·Ð±Ñ€Ð°Ð½Ð½Ð¾Ð³Ð¾"]:hover{
  color:#6cae12;
  background:var(--accent-hot-soft);
}

.feed-card__action--favorite.is-active,
.profile-feed-card__action.is-active{
  background:var(--accent-hot-soft);
  color:#6cae12;
  border-color:transparent;
}

.feed-card__action--share:hover,
.profile-feed-card__action--share:hover{
  color:var(--accent-main);
}

.feed-card__action--share span,
.profile-feed-card__action--share span{
  line-height:1;
}

/* BURST REACTIONS */
.ui-burst-host{
  position:relative;
  overflow:visible;
}

.ui-burst{
  position:absolute;
  left:50%;
  top:50%;
  width:0;
  height:0;
  pointer-events:none;
  z-index:8;
}

.ui-burst__item{
  position:absolute;
  left:0;
  top:0;
  transform:translate(-50%, -50%);
  opacity:0;
  font-size:14px;
  line-height:1;
  animation:uiBurstFloat 1.1s ease forwards;
  animation-delay:var(--burst-delay, 0ms);
  will-change:transform, opacity;
}

.ui-burst--like .ui-burst__item{
  color:var(--success);
}

.ui-burst--dislike .ui-burst__item{
  color:var(--danger);
}

.ui-burst--favorite .ui-burst__item{
  color:#79bf19;
}

@keyframes uiBurstFloat{
  0%{
    opacity:0;
    transform:translate(-50%, -50%) translate(0, 0) scale(.6) rotate(0deg);
  }
  15%{
    opacity:1;
  }
  100%{
    opacity:0;
    transform:
      translate(-50%, -50%)
      translate(var(--burst-x, 0px), -42px)
      scale(1.15)
      rotate(var(--burst-rotate, 0deg));
  }
}

/* CARD MENU */
.feed-card__menu-wrap{
  position:relative;
}

.feed-card__menu-btn{
  width:32px;
  height:32px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:var(--text-soft);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.feed-card__menu-btn:hover{
  background:var(--surface-2);
  color:var(--text);
}

.feed-card__menu-btn:active{
  transform:scale(.96);
}

.feed-card__menu-btn i{
  font-size:14px;
  line-height:1;
}

.feed-card__menu-dropdown{
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  z-index:40;
  width:320px;
  max-width:min(320px, calc(100vw - 24px));
  padding:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:0 20px 60px rgba(0,0,0,.16);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(8px) scale(.98);
  transition:opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.feed-card__menu-wrap.is-open .feed-card__menu-dropdown{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.feed-card__menu-sheet-head{
  display:none;
}

.feed-card__menu-sheet-title{
  color:var(--text);
  font-size:15px;
  line-height:1.2;
  font-weight:600;
}

.feed-card__menu-sheet-close{
  width:40px;
  height:40px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--text);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.feed-card__menu-sheet-close:hover{
  background:var(--surface-2);
}

.feed-card__menu-meta{
  margin-bottom:10px;
}

.feed-card__menu-author{
  display:flex;
  align-items:center;
  gap:12px;
  padding:10px;
  border-radius:14px;
  background:var(--surface-2);
  color:var(--text);
  text-decoration:none;
  transition:background .18s ease, color .18s ease;
}

.feed-card__menu-author:hover{
  background:var(--surface-3);
  color:var(--text);
}

.feed-card__menu-author-avatar{
  width:44px;
  height:44px;
  border-radius:14px;
  object-fit:cover;
  flex:0 0 auto;
}

.feed-card__menu-author-meta{
  min-width:0;
  display:grid;
  gap:2px;
}

.feed-card__menu-author-name{
  color:var(--text);
  font-size:15px;
  line-height:1.2;
  font-weight:600;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.feed-card__menu-author-role{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.45;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.feed-card__menu-list{
  display:grid;
  gap:4px;
}

.feed-card__menu-list a{
  text-decoration:none;
}

.feed-card__menu-item{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:0 12px;
  border-radius:13px;
  background:transparent;
  color:var(--text);
  font-size:14px;
  font-weight:400;
  transition:background .18s ease, color .18s ease;
}

.feed-card__menu-item:hover{
  background:var(--surface-2);
  color:var(--text);
}

.feed-card__menu-item i{
  width:18px;
  flex:0 0 auto;
  text-align:center;
  font-size:14px;
}

.feed-card__menu-item--danger{
  color:var(--danger);
}

.feed-card__menu-item--danger:hover{
  background:var(--danger-soft);
  color:var(--danger);
}

.feed-card__menu-footnote{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid var(--border);
  color:var(--text-fade);
  font-size:12px;
  line-height:1.45;
}

/* SHARE */
.feed-card__actions-right,
.profile-feed-card__actions{
  position:relative;
}

.feed-card__action--share{
  cursor:pointer;
}

.share2026{
  position:absolute;
  right:0;
  bottom:calc(100% + 10px);
  z-index:25;
  width:320px;
  max-width:min(320px, calc(100vw - 24px));
  display:grid;
  gap:12px;
  padding:14px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:0 20px 48px rgba(0,0,0,.14);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(8px) scale(.98);
  transition:opacity .22s ease, transform .22s ease, visibility .22s ease;
}

.share2026.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.share2026__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.share2026__title{
  color:var(--text);
  font-size:15px;
  line-height:1.2;
  font-weight:600;
}

.share2026__subtitle{
  margin-top:4px;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.5;
}

.share2026__close{
  width:36px;
  height:36px;
  border:0;
  border-radius:12px;
  background:transparent;
  color:var(--text-soft);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  flex:0 0 auto;
}

.share2026__close:hover{
  background:var(--surface-2);
  color:var(--text);
}

.share2026__grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:10px;
}

.share2026__grid--wide{
  grid-template-columns:repeat(3, minmax(0, 1fr));
}

.share2026-item{
  min-width:0;
  display:grid;
  justify-items:center;
  gap:8px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text);
  text-decoration:none;
  cursor:pointer;
}

.share2026-item:hover{
  color:var(--text);
}

.share2026-item__icon{
  width:48px;
  height:48px;
  border:1px solid var(--border);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--surface-2);
  transition:background .18s ease, transform .18s ease, border-color .18s ease;
}

.share2026-item:hover .share2026-item__icon{
  background:var(--surface-3);
}

.share2026-item:active .share2026-item__icon{
  transform:scale(.96);
}

.share2026-item__icon i{
  font-size:19px;
  line-height:1;
}

.share2026-item__label{
  min-width:0;
  color:var(--text-soft);
  text-align:center;
  font-size:12px;
  line-height:1.2;
  font-weight:500;
}

.share2026__copy{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 14px;
  border:1px solid var(--border);
  border-radius:14px;
  background:var(--surface-2);
  color:var(--text);
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  transition:background .18s ease, color .18s ease, border-color .18s ease;
}

.share2026__copy:hover{
  background:var(--surface-3);
}

.share2026__copy.is-success{
  background:var(--success-soft);
  border-color:rgba(32,177,90,.18);
  color:var(--success);
}

.card-menu-backdrop{
  position:fixed;
  inset:0;
  z-index:1005;
  background:var(--overlay-soft);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .22s ease, visibility .22s ease;
}

.card-menu-backdrop.active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}

/* VIDEO */
.video-card{
  position:relative;
  margin:0 0 14px;
  z-index:1;
}

.video-player{
  position:relative;
  z-index:1;
  width:100%;
  max-height:var(--feed-media-max-h);
  background:#000;
  border-radius:18px;
  overflow:hidden;
  isolation:isolate;
}

.video-player__bg{
  position:absolute;
  inset:0;
  z-index:0;
  background:#000 center/cover no-repeat;
  filter:blur(40px) brightness(.48);
  transform:scale(1.2);
  pointer-events:none;
}

.video-player__video{
  position:relative;
  z-index:2;
  display:block;
  width:100%;
  height:auto;
  max-height:clamp(260px, 60vh, var(--feed-media-max-h));
  object-fit:contain;
  object-position:center;
  background:#000;
  cursor:pointer;
}

.video-player.is-fullscreen{
  border-radius:0;
}

.video-player__fs-layer{
  position:fixed !important;
  inset:0 !important;
  z-index:2147483647 !important;
  display:none;
  background:#000;
  overflow:hidden;
  isolation:isolate;
}

.video-player__fs-layer.active{
  display:flex;
  align-items:center;
  justify-content:center;
}

.video-player__fs-layer .video-player{
  width:100vw;
  height:100dvh;
  max-height:none;
  border-radius:0;
}

.video-player__fs-layer .video-player__video{
  width:100%;
  height:100%;
  max-width:none;
  max-height:none;
  object-fit:contain;
  object-position:center;
  background:#000;
}

.video-player__center-btn{
  position:absolute;
  top:50%;
  left:50%;
  z-index:5;
  width:72px;
  height:72px;
  border:0;
  border-radius:50%;
  background:rgba(0,0,0,.42);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 10px 30px rgba(0,0,0,.35);
  backdrop-filter:blur(10px);
  transform:translate(-50%,-50%);
  transition:opacity .24s ease, transform .24s ease, background .24s ease;
  pointer-events:auto;
}

.video-player__center-btn i{
  font-size:28px;
  line-height:1;
}

.video-player__center-btn.hidden{
  opacity:0;
  pointer-events:none;
  transform:translate(-50%,-50%) scale(.94);
}

.video-player__center-btn.visible{
  opacity:1;
  pointer-events:auto;
}

.video-player__center-btn.pulse-play{
  animation:videoPulsePlay .34s ease;
}

.video-player__center-btn.pulse-pause{
  animation:videoPulsePause .34s ease;
}

@keyframes videoPulsePlay{
  0%{transform:translate(-50%,-50%) scale(1);}
  50%{transform:translate(-50%,-50%) scale(1.18);}
  100%{transform:translate(-50%,-50%) scale(1);}
}

@keyframes videoPulsePause{
  0%{transform:translate(-50%,-50%) scale(1);}
  50%{transform:translate(-50%,-50%) scale(1.15);}
  100%{transform:translate(-50%,-50%) scale(1);}
}

.video-player__controls{
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:6;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  padding-bottom:calc(12px + env(safe-area-inset-bottom));
  background:linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.18), transparent);
}

.video-player__main-controls{
  display:flex;
  align-items:center;
  gap:12px;
  flex:1 1 auto;
  min-width:0;
  transition:opacity .32s ease, transform .32s ease, filter .32s ease;
  will-change:opacity, transform, filter;
}

.video-player__controls.hidden .video-player__main-controls{
  opacity:0;
  transform:translateY(12px);
  filter:blur(2px);
  pointer-events:none;
}

.video-player__btn{
  width:36px;
  height:36px;
  flex:0 0 auto;
  border:0;
  border-radius:10px;
  background:none;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  line-height:1;
  pointer-events:auto;
  transition:opacity .18s ease, transform .18s ease;
}

.video-player__btn:hover{
  opacity:.92;
}

.video-player__btn:active{
  transform:scale(.96);
}

.video-player__btn i{
  font-size:16px;
  line-height:1;
}

.video-player__progress{
  flex:1 1 auto;
  min-width:0;
  height:4px;
  border-radius:999px;
  background:rgba(255,255,255,.24);
  cursor:pointer;
  overflow:hidden;
  pointer-events:auto;
}

.video-player__progress-fill{
  width:0%;
  height:100%;
  background:#00c853;
  border-radius:999px;
}

.video-player__time{
  min-width:44px;
  color:#fff;
  text-align:center;
  font-size:12px;
  font-weight:500;
  line-height:1;
  letter-spacing:.2px;
}

.video-player__volume{
  position:relative;
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:center;
}

.video-player__volume .video-player__btn{
  position:relative;
  z-index:3;
}

.video-player__volume::before{
  content:"";
  position:absolute;
  left:50%;
  bottom:34px;
  width:44px;
  height:92px;
  background:transparent;
  transform:translateX(-50%);
  pointer-events:auto;
}

.video-player__volume-slider{
  position:absolute;
  left:50%;
  bottom:42px;
  z-index:2;
  width:22px;
  height:112px;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateX(-50%) translateY(6px);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.video-player__volume-track{
  position:relative;
  width:4px;
  height:100%;
  background:rgba(255,255,255,.24);
  border-radius:999px;
  overflow:hidden;
}

.video-player__volume-fill{
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:50%;
  background:#00c853;
  border-radius:999px;
}

.video-player__volume:hover .video-player__volume-slider,
.video-player__volume-slider:hover,
.video-player__volume.open .video-player__volume-slider{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(0);
}

/* GENERIC */
.slice{
  position:relative;
  overflow:hidden;
  transition:height .28s ease;
}

.slice-masked:before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  z-index:1;
  height:120px;
  background:linear-gradient(to bottom, rgba(255,255,255,0) 0%, var(--surface) 100%);
  pointer-events:none;
}

.slice-btn{
  padding:14px 0 0;
}

.slice-btn span{
  display:inline-flex;
  align-items:center;
  min-height:34px;
  padding:0 12px;
  border-radius:12px;
  background:var(--accent-main-soft);
  color:var(--accent-main);
  cursor:pointer;
  font-size:13px;
  font-weight:600;
}

.page_tags{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  font-size:0;
}

.page_tags a:not(:last-child):not(:empty){
  margin-right:6px;
}

.page_tags a{
  flex:none;
  color:#898989 !important;
  font-size:13px;
  transition:.4s;
}

.page_tags a:hover{
  color:var(--text) !important;
}

.page_tags a:not(:empty):before{
  content:"#";
  color:#757575;
  font-size:10px;
}

.page_tags a.hidden{
  display:none;
}

.page_tags-more{
  position:relative;
  padding:5px;
  border-radius:22px;
  color:#757575;
  font-size:16px;
  line-height:1px;
  letter-spacing:normal;
  transition:.4s;
}

.page_tags-more:hover{
  cursor:pointer;
  letter-spacing:5px;
}

.search_block_input{
  width:100%;
  min-height:40px;
  padding:11px 50px 11px 20px;
  background-color:var(--surface-2);
  color:var(--text-soft);
  border-radius:14px;
  font-size:15px;
  line-height:1.65;
}

input[type="radio"],
input[type="checkbox"]{
  margin-right:6px;
}

textarea{
  width:100%;
  min-height:80px;
  padding:11px;
  background-color:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:14px;
  appearance:none;
  -webkit-appearance:none;
  font-size:15px;
  line-height:1.65;
  font-family:inherit;
  resize:none;
  overflow-y:hidden;
}

textarea:hover{
  border-color:var(--border-color);
  box-shadow:var(--border-shadow);
}

/* FULL TEXT / TINYMCE CONTENT */
.full_text{
  margin:22px 0 0;
  color:var(--text);
  font-size:17px;
  line-height:1.82;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.full_text::after{
  content:"";
  display:block;
  clear:both;
}

.full_text > :first-child{
  margin-top:0 !important;
}

.full_text > :last-child{
  margin-bottom:0 !important;
}

.full_text p{
  margin:0 0 1.08em;
  color:var(--text);
}

.full_text h1,
.full_text h2,
.full_text h3,
.full_text h4,
.full_text h5,
.full_text h6{
  margin:1.34em 0 .54em;
  color:var(--text);
  line-height:1.18;
  letter-spacing:-.03em;
}

.full_text h1{
  font-size:34px;
  font-weight:800;
}

.full_text h2{
  font-size:28px;
  font-weight:800;
}

.full_text h2::after{
  display:none;
}

.full_text h3{
  padding-left:0;
  font-size:23px;
  font-weight:750;
}

.full_text h3::before{
  display:none;
}

.full_text h4{
  font-size:19px;
  font-weight:700;
}

.full_text h5{
  font-size:16px;
  font-weight:700;
}

.full_text h6{
  color:var(--text-fade);
  font-size:12px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
}

.full_text a{
  color:var(--accent-main);
  text-decoration:none;
  background-image:none;
  box-shadow:inset 0 -1px 0 rgba(45,123,255,.34);
  transition:color .18s ease, box-shadow .18s ease;
}

.full_text a:hover{
  color:var(--accent-main-hover);
  box-shadow:inset 0 -2px 0 rgba(45,123,255,.46);
}

.full_text strong,
.full_text b{
  color:var(--text);
  font-weight:700;
}

.full_text em,
.full_text i{
  font-style:italic;
}

.full_text u{
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

.full_text s,
.full_text del{
  opacity:.75;
}

.full_text small{
  font-size:.88em;
  color:var(--text-soft);
}

.full_text mark{
  padding:.08em .28em;
  color:var(--text);
  background:var(--accent-fire-soft);
  border-radius:6px;
}

.full_text sub,
.full_text sup{
  position:relative;
  font-size:.72em;
  line-height:0;
  vertical-align:baseline;
}

.full_text sup{
  top:-.45em;
}

.full_text sub{
  bottom:-.2em;
}

.full_text ul,
.full_text ol{
  margin:0 0 1.22em;
  padding:0;
  color:var(--text);
}

.full_text ul{
  list-style:none;
}

.full_text ol{
  list-style:none;
  counter-reset:fulltext-ol;
}

.full_text ul li,
.full_text ol li{
  position:relative;
  margin:0 0 .72em;
  padding-left:24px;
  font-size:17px;
  line-height:1.78;
}

.full_text ul li:last-child,
.full_text ol li:last-child{
  margin-bottom:0;
}

.full_text ul > li::before{
  content:"";
  position:absolute;
  left:0;
  top:.72em;
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--accent-main);
}

.full_text ol > li{
  counter-increment:fulltext-ol;
}

.full_text ol > li::before{
  content:counter(fulltext-ol) ".";
  position:absolute;
  left:0;
  top:0;
  color:var(--accent-main);
  font-size:.95em;
  font-weight:700;
}

.full_text ul ul,
.full_text ul ol,
.full_text ol ul,
.full_text ol ol{
  margin:.55em 0 0;
}

.full_text ul ul li,
.full_text ul ol li,
.full_text ol ul li,
.full_text ol ol li{
  padding-left:22px;
}

.full_text ul ul > li::before,
.full_text ol ul > li::before{
  top:.8em;
  width:5px;
  height:5px;
  background:var(--text-fade);
}

.full_text li > *:last-child{
  margin-bottom:0;
}

.full_text hr{
  display:block;
  height:1px;
  margin:30px 0;
  border:0;
  background:var(--border);
  overflow:visible;
}

.full_text hr::after{
  display:none;
}

.full_text blockquote,
.full_text .quote{
  position:relative;
  margin:26px 0;
  padding:20px 22px 20px 24px;
  background:linear-gradient(180deg, var(--surface), var(--surface-2));
  color:var(--text);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-xs);
  font-size:17px;
  line-height:1.72;
}

.full_text blockquote::before,
.full_text .quote::before{
  content:"â€œ";
  position:absolute;
  left:16px;
  top:8px;
  color:var(--accent-main);
  font-size:34px;
  line-height:1;
  opacity:.5;
}

.full_text blockquote p:last-child,
.full_text .quote p:last-child{
  margin-bottom:0;
}

.full_text blockquote cite,
.full_text .quote cite{
  display:block;
  margin-top:12px;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.5;
  font-style:normal;
}

.full_text code{
  display:inline-block;
  vertical-align:baseline;
  padding:4px 8px;
  background:var(--surface-2);
  color:var(--accent-main);
  border:1px solid var(--border);
  border-radius:9px;
  font-size:.92em;
  line-height:1.5;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.full_text pre{
  margin:24px 0;
  padding:18px 20px;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:20px;
  overflow:auto;
  box-shadow:var(--shadow-xs);
}

.full_text pre code{
  display:block;
  padding:0;
  background:transparent;
  color:var(--text);
  border:0;
  border-radius:0;
  box-shadow:none;
  font-size:13px;
  line-height:1.7;
  white-space:pre;
  word-break:normal;
}

.full_text img{
  display:block;
  max-width:100%;
  height:auto;
  border-radius:20px;
  box-shadow:var(--shadow-sm);
}

.full_text > img,
.full_text > p > img:only-child{
  margin:26px auto;
}

.full_text a.highslide,
.full_text figure,
.full_text .image,
.full_text .fr-dib,
.full_text .fr-fic{
  display:block;
  margin:26px 0;
}

.full_text figure{
  width:100%;
}

.full_text figure img,
.full_text .fr-dib img,
.full_text .fr-fic img{
  margin:0 auto;
}

.full_text figcaption{
  margin-top:10px;
  color:var(--text-soft);
  text-align:center;
  font-size:14px;
  line-height:1.58;
}

.full_text .aligncenter,
.full_text .text-center,
.full_text figure.image.image-style-align-center{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}

.full_text .alignleft,
.full_text img[style*="float: left"],
.full_text img[style*="float:left"],
.full_text figure.image.image-style-align-left{
  float:left;
  clear:left;
  max-width:min(46%, 340px);
  margin:8px 24px 14px 0;
}

.full_text .alignright,
.full_text img[style*="float: right"],
.full_text img[style*="float:right"],
.full_text figure.image.image-style-align-right{
  float:right;
  clear:right;
  max-width:min(46%, 340px);
  margin:8px 0 14px 24px;
}

.full_text table{
  width:100%;
  display:block;
  overflow-x:auto;
  margin:26px 0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  border-collapse:separate;
  border-spacing:0;
  box-shadow:var(--shadow-xs);
}

.full_text th,
.full_text td{
  padding:14px 16px;
  background:transparent;
  color:var(--text);
  border-bottom:1px solid var(--border);
  text-align:left;
  vertical-align:top;
  font-size:14px;
  line-height:1.6;
  white-space:normal;
}

.full_text th{
  background:var(--surface-2);
  font-weight:700;
}

.full_text tr:last-child td{
  border-bottom:0;
}

.full_text table td + td,
.full_text table th + th{
  border-left:1px solid var(--border);
}

.full_text iframe,
.full_text video,
.full_text embed,
.full_text object{
  display:block;
  width:100%;
  max-width:100%;
  margin:26px 0;
  border:0;
  border-radius:20px;
  background:#000;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}

.full_text iframe{
  aspect-ratio:16 / 9;
  min-height:320px;
}

.full_text video{
  min-height:220px;
}

.full_text .video-responsive,
.full_text .embed-responsive,
.full_text .ratio{
  position:relative;
  width:100%;
  margin:26px 0;
  background:#000;
  border-radius:20px;
  overflow:hidden;
  box-shadow:var(--shadow-sm);
}

.full_text .video-responsive::before,
.full_text .embed-responsive::before,
.full_text .ratio::before{
  content:"";
  display:block;
  padding-top:56.25%;
}

.full_text .video-responsive iframe,
.full_text .video-responsive video,
.full_text .embed-responsive iframe,
.full_text .embed-responsive embed,
.full_text .embed-responsive object,
.full_text .ratio iframe,
.full_text .ratio video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  margin:0;
  border-radius:0;
}

.full_text details{
  margin:24px 0;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  overflow:hidden;
  box-shadow:var(--shadow-xs);
}

.full_text summary{
  position:relative;
  display:block;
  padding:15px 16px 15px 42px;
  color:var(--text);
  cursor:pointer;
  list-style:none;
  font-size:14px;
  line-height:1.5;
  font-weight:600;
}

.full_text summary:hover{
  background:var(--surface-2);
}

.full_text summary::-webkit-details-marker{
  display:none;
}

.full_text summary::before{
  content:"+";
  position:absolute;
  left:16px;
  top:50%;
  width:18px;
  height:18px;
  margin-top:-9px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--accent-main);
  font-size:16px;
  font-weight:700;
  line-height:1;
}

.full_text details[open] summary::before{
  content:"â€“";
}

.full_text details > *:not(summary){
  padding-left:16px;
  padding-right:16px;
}

.full_text details > :last-child{
  padding-bottom:16px;
}

.full_text .title_spoiler{
  display:block;
  margin:24px 0 0;
  padding:14px 16px;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  border-bottom:0;
  border-radius:18px 18px 0 0;
  font-size:14px;
  line-height:1.45;
  font-weight:600;
}

.full_text .text_spoiler,
.full_text .hide{
  margin:0 0 24px;
  padding:16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-top:0;
  border-radius:0 0 18px 18px;
}

.full_text .text_spoiler > :last-child,
.full_text .hide > :last-child{
  margin-bottom:0;
}

.full_text .callout,
.full_text .notice,
.full_text .alert{
  position:relative;
  margin:24px 0;
  padding:16px 16px 16px 46px;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-xs);
}

.full_text .callout::before,
.full_text .notice::before,
.full_text .alert::before{
  content:"i";
  position:absolute;
  left:16px;
  top:16px;
  width:18px;
  height:18px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--accent-main-soft);
  color:var(--accent-main);
  font-size:12px;
  font-weight:700;
  line-height:1;
}

.full_text .callout > :last-child,
.full_text .notice > :last-child,
.full_text .alert > :last-child{
  margin-bottom:0;
}

.full_text .callout--success,
.full_text .notice--success,
.full_text .alert-success{
  background:var(--success-soft);
}

.full_text .callout--success::before,
.full_text .notice--success::before,
.full_text .alert-success::before{
  content:"âœ“";
  background:rgba(32,177,90,.14);
  color:var(--success);
}

.full_text .callout--warning,
.full_text .notice--warning,
.full_text .alert-warning{
  background:var(--accent-fire-soft);
}

.full_text .callout--warning::before,
.full_text .notice--warning::before,
.full_text .alert-warning::before{
  content:"!";
  background:rgba(255,138,31,.14);
  color:var(--accent-fire);
}

.full_text .text-left{ text-align:left; }
.full_text .text-right{ text-align:right; }
.full_text .text-center{ text-align:center; }
.full_text .text-justify{ text-align:justify; }

/* RESPONSIVE */
@media (hover:none), (pointer:coarse){
  .video-player__volume-slider{
    display:none;
  }

  .video-player__controls{
    gap:10px;
    padding:11px 12px;
    padding-bottom:calc(11px + env(safe-area-inset-bottom));
  }

  .video-player__btn{
    width:38px;
    height:38px;
  }

  .video-player__time{
    min-width:40px;
  }

  .video-player__center-btn{
    width:68px;
    height:68px;
  }
}

@media screen and (max-width:768px){
  body{
    font-size:15px;
  }

  .feed-card{
    margin:0 0 12px;
    padding:14px;
    border-radius:20px;
  }

  .feed-card__header{
    margin:0 0 12px;
  }

  .feed-card__topline{
    gap:10px;
    margin:0 0 10px;
  }

  .feed-card__title{
    font-size:18px;
    line-height:1.26;
  }

  .feed-card__excerpt{
    margin:0 0 14px;
    font-size:14px;
    line-height:1.55;
  }

  .feed-card__badge{
    min-height:32px;
    padding:0 11px;
    gap:7px;
    font-size:12px;
  }

  .feed-card__badge-icon-img{
    width:17px;
    height:17px;
  }

  .feed-card__time{
    font-size:12px;
  }

  .feed-card__footer{
    align-items:flex-start;
    flex-wrap:nowrap;
    gap:6px;
  }

  .feed-card__actions-left,
  .feed-card__actions-right{
    width:auto;
    flex-wrap:nowrap;
    gap:6px;
  }

  .feed-card__actions-left{
    min-width:0;
    flex:1 1 auto;
  }

  .feed-card__actions-right{
    flex:0 0 auto;
    justify-content:flex-end;
  }

  .feed-card__rating,
  .feed-card__action,
  .profile-feed-card__action{
    min-height:34px;
  }

  .feed-card__action{
    padding:0 9px;
    border-radius:11px;
  }

  .feed-card__action--icon{
    width:34px;
    min-width:34px;
    padding:0;
  }

  .feed-card__rating{
    border-radius:11px;
  }

  .feed-card__rate-btn,
  .feed-card__rate-score{
    min-width:26px;
    height:26px;
    border-radius:8px;
  }

  .feed-card__rate-score{
    min-width:32px;
    padding:0 5px;
  }

  .feed-card__media,
  .profile-feed-card__media{
    margin:0 0 14px;
    border-radius:16px;
  }

  .feed-card__poll{
    margin:0 0 14px;
  }

  .feed-card__menu-dropdown{
    position:fixed;
    left:0;
    right:0;
    top:auto;
    bottom:0;
    z-index:1010;
    width:100%;
    max-width:none;
    padding:14px 14px calc(16px + env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;
    transform:translateY(100%);
    opacity:1;
    visibility:hidden;
    pointer-events:none;
  }

  .feed-card__menu-wrap.is-open .feed-card__menu-dropdown{
    transform:translateY(0);
    visibility:visible;
    pointer-events:auto;
  }

  .feed-card__menu-sheet-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
    padding-bottom:10px;
    border-bottom:1px solid var(--border);
  }

  .feed-card__menu-item{
    min-height:46px;
  }

  .share2026{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1010;
    width:100%;
    max-width:none;
    padding:15px 15px calc(16px + env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;
    transform:translateY(100%);
    opacity:1;
    visibility:hidden;
    pointer-events:none;
  }

  .share2026.active{
    transform:translateY(0);
    visibility:visible;
    pointer-events:auto;
  }

  .share2026__grid,
  .share2026__grid--wide{
    grid-template-columns:repeat(3, minmax(0, 1fr));
  }

  .full_text{
    font-size:15px;
    line-height:1.76;
  }

  .full_text h1{
    font-size:28px;
  }

  .full_text h2{
    font-size:24px;
  }

  .full_text h3{
    font-size:20px;
  }

  .full_text h4{
    font-size:18px;
  }

  .full_text h5{
    font-size:15px;
  }

  .full_text h6{
    font-size:12px;
  }

  .full_text ul li,
  .full_text ol li{
    font-size:15px;
  }

  .full_text blockquote,
  .full_text .quote{
    padding:18px 16px 16px 18px;
    border-radius:18px;
    font-size:15px;
    line-height:1.65;
  }

  .full_text pre{
    padding:16px;
    border-radius:18px;
  }

  .full_text th,
  .full_text td{
    padding:12px;
    font-size:13px;
  }

  .full_text iframe{
    min-height:240px;
    border-radius:18px;
  }

  .full_text video,
  .full_text embed,
  .full_text object,
  .full_text .video-responsive,
  .full_text .embed-responsive,
  .full_text .ratio{
    border-radius:18px;
  }

  .full_text .alignleft,
  .full_text .alignright,
  .full_text img[style*="float: left"],
  .full_text img[style*="float:left"],
  .full_text img[style*="float: right"],
  .full_text img[style*="float:right"],
  .full_text figure.image.image-style-align-left,
  .full_text figure.image.image-style-align-right{
    float:none;
    clear:none;
    display:block;
    max-width:100%;
    margin:22px auto;
  }
}

@media screen and (max-width:640px){
  .feed-card{
    padding:13px;
    border-radius:18px;
  }

  .feed-card__title{
    font-size:17px;
  }

  .feed-card__footer{
    flex-wrap:nowrap;
    gap:6px;
  }

  .feed-card__actions-left,
  .feed-card__actions-right{
    flex-wrap:nowrap;
    gap:6px;
  }

  .feed-card__rating{
    min-height:34px;
    padding:3px;
  }

  .feed-card__rate-btn,
  .feed-card__rate-score{
    min-width:26px;
    height:26px;
  }

  .feed-card__rate-score{
    min-width:32px;
    padding:0 5px;
    font-size:12px;
  }

  .feed-card__action{
    min-height:34px;
    padding:0 9px;
    gap:6px;
    font-size:12px;
  }

  .feed-card__action--icon{
    width:34px;
    min-width:34px;
    padding:0;
  }

  .feed-card__action--share{
    width:34px;
    min-width:34px;
    padding:0;
  }

  .feed-card__action--share span{
    display:none;
  }

  .feed-card__action--comments{
    padding:0 9px;
  }

  .feed-card__action--comments span{
    min-width:10px;
  }

  .full_text{
    font-size:15px;
    line-height:1.74;
  }

  .full_text h1{
    font-size:24px;
  }

  .full_text h2{
    font-size:21px;
  }

  .full_text h3{
    font-size:18px;
  }

  .full_text h4{
    font-size:16px;
  }

  .full_text blockquote,
  .full_text .quote{
    margin:20px 0;
    padding:14px 14px 14px 16px;
    border-radius:16px;
    font-size:15px;
  }

  .full_text > img,
  .full_text > p > img:only-child,
  .full_text a.highslide,
  .full_text figure,
  .full_text .image,
  .full_text .fr-dib,
  .full_text .fr-fic,
  .full_text iframe,
  .full_text video,
  .full_text embed,
  .full_text object,
  .full_text table,
  .full_text pre,
  .full_text .video-responsive,
  .full_text .embed-responsive,
  .full_text .ratio{
    margin:20px 0;
  }

  .full_text iframe{
    min-height:220px;
  }

  .full_text summary{
    padding:13px 14px 13px 38px;
    font-size:14px;
  }

  .full_text summary::before{
    left:14px;
  }

  .full_text details > *:not(summary),
  .full_text .text_spoiler,
  .full_text .hide{
    padding-left:14px;
    padding-right:14px;
  }

  .full_text .title_spoiler{
    padding:13px 14px;
    font-size:13px;
  }

  .full_text .callout,
  .full_text .notice,
  .full_text .alert{
    padding:14px 14px 14px 40px;
  }

  .full_text .callout::before,
  .full_text .notice::before,
  .full_text .alert::before{
    left:14px;
    top:14px;
  }

  .full_text hr{
    margin:24px 0;
  }
}
/* USERINFO / PROFILE */
.profile-page{
  display:grid;
  gap:18px;
  margin-bottom:18px;
}

.subsite-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.subsite-cover-wrap{
  position:relative;
}

.subsite-cover{
  position:relative;
  min-height:168px;
  border-bottom:1px solid var(--border);
  background:
    radial-gradient(circle at 14% 22%, rgba(45,123,255,.22), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(155,234,60,.12), transparent 22%),
    radial-gradient(circle at 72% 82%, rgba(255,138,31,.12), transparent 24%),
    linear-gradient(135deg, var(--surface-2), var(--surface));
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.theme-dark .subsite-cover{
  background:
    radial-gradient(circle at 14% 22%, rgba(45,123,255,.20), transparent 26%),
    radial-gradient(circle at 82% 18%, rgba(155,234,60,.08), transparent 22%),
    radial-gradient(circle at 72% 82%, rgba(255,138,31,.08), transparent 24%),
    linear-gradient(135deg, #273142, #20242b);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

.subsite-cover__image{
  width:100%;
  height:100%;
  min-height:168px;
}

.subsite-cover__actions{
  position:absolute;
  top:14px;
  right:14px;
  z-index:3;
}

.subsite-cover__edit-btn{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border:0;
  border-radius:14px;
  background:rgba(17,24,39,.24);
  color:#fff;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  transition:background .18s ease, transform .18s ease, opacity .18s ease;
}

.subsite-cover__edit-btn:hover{
  background:rgba(17,24,39,.38);
}

.subsite-cover__edit-btn:active{
  transform:scale(.985);
}

.subsite-cover__edit-btn--icon{
  width:40px;
  min-width:40px;
  height:40px;
  min-height:40px;
  padding:0;
  border-radius:14px;
}

.subsite-cover__edit-btn--icon i{
  font-size:17px;
  line-height:1;
}

.subsite-card__body{
  padding:0 20px 20px;
}

.subsite-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-top:-46px;
}

.subsite-profile-main{
  flex:1 1 auto;
  min-width:0;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
}

.subsite-avatar{
  flex:0 0 auto;
}

.subsite-card__avatar{
  position:relative;
}

.subsite-avatar__frame{
  position:relative;
  width:90px;
  height:90px;
}

.subsite-avatar__image{
  width:90px;
  height:90px;
  border-radius:24px;
  object-fit:cover;
  object-position:center;
  border:4px solid var(--surface);
  background:var(--surface-2);
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}

.subsite-avatar__status{
  position:absolute;
  right:2px;
  bottom:2px;
  width:16px;
  height:16px;
  border-radius:50%;
  border:3px solid var(--surface);
  box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.subsite-avatar__status--online{
  background:var(--success);
  animation:subsiteOnlinePulse 2.4s ease-in-out infinite;
}

.subsite-avatar__status--offline{
  background:var(--danger);
}

@keyframes subsiteOnlinePulse{
  0%{box-shadow:0 0 0 0 rgba(32,177,90,.28), 0 4px 12px rgba(0,0,0,.12);}
  70%{box-shadow:0 0 0 8px rgba(32,177,90,0), 0 4px 12px rgba(0,0,0,.12);}
  100%{box-shadow:0 0 0 0 rgba(32,177,90,0), 0 4px 12px rgba(0,0,0,.12);}
}

.subsite-profile-text{
  width:100%;
  min-width:0;
  margin-top:14px;
}

.subsite-header-controls{
  flex:0 0 auto;
  margin-top:56px;
}

.subsite-header-controls__inner{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
  gap:8px;
}

.button{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  border:1px solid transparent;
  border-radius:14px;
  text-decoration:none;
  white-space:nowrap;
  font-size:14px;
  font-weight:600;
  line-height:1;
}

.button--size-m{
  min-height:42px;
}

.button--type-primary{
  background:var(--accent-main);
  color:#fff;
}

.button--type-primary:hover{
  background:var(--accent-main-hover);
  color:#fff;
}

.button--type-minimal{
  background:var(--surface-2);
  border-color:var(--border);
  color:var(--text);
}

.button--type-minimal:hover{
  background:var(--surface-3);
  color:var(--text);
}

.profile-action-wrap,
.profile-action-wrap .pm_button,
.profile-action-wrap .pm_link,
.profile-action-wrap a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:40px;
  color:inherit;
  text-decoration:none;
  line-height:1;
}

.subsite-action-btn{
  width:42px;
  min-width:42px;
  height:42px;
  padding:0;
  border-radius:14px;
  flex:0 0 auto;
}

.subsite-action-btn--icon i{
  font-size:16px;
  line-height:1;
}

.subsite-action-btn--pm{
  width:42px;
  min-width:42px;
  height:42px;
  min-height:42px;
  padding:0;
  border-radius:14px;
  overflow:hidden;
}

.subsite-action-btn--pm,
.subsite-action-btn--pm .pm_button,
.subsite-action-btn--pm .pm_link,
.subsite-action-btn--pm a{
  width:42px;
  min-width:42px;
  height:42px;
  min-height:42px;
  padding:0;
  border-radius:14px;
  font-size:0 !important;
  line-height:0;
}

.subsite-action-btn--pm .pm_button,
.subsite-action-btn--pm .pm_link,
.subsite-action-btn--pm a{
  position:relative;
  background:transparent;
  border:0;
  color:transparent !important;
}

.subsite-action-btn--pm .pm_button::before,
.subsite-action-btn--pm .pm_link::before,
.subsite-action-btn--pm a::before{
  content:"\f0e0";
  font-family:"Font Awesome 5 Pro";
  font-weight:400;
  font-size:16px;
  line-height:1;
  color:var(--text);
}

.subsite-card__headline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  min-width:0;
}

.subsite-card__name-title{
  margin:0;
  color:var(--text);
  font-size:28px;
  line-height:1.04;
  letter-spacing:-.03em;
  font-weight:700;
}

.subsite-card__headline-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--accent-fire);
  font-size:15px;
  line-height:1;
}

.subsite-card__headline-status{
  color:var(--text-soft);
  white-space:nowrap;
  font-size:13px;
  line-height:1.3;
  font-weight:500;
}

.subsite-card__headline-status--online{
  color:var(--success);
}

.subsite-card__headline-status--offline{
  color:var(--text-soft);
}

.subsite-card__nickname{
  margin-top:8px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.45;
}

.subsite-card__nickname-copy{
  position:relative;
  min-height:30px;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0;
  border:0;
  background:transparent;
  color:var(--text-soft);
  cursor:pointer;
  transition:color .18s ease, opacity .18s ease;
}

.subsite-card__nickname-copy:hover{
  color:var(--text);
}

.subsite-card__nickname-copy i{
  font-size:13px;
  line-height:1;
}

.subsite-card__nickname-toast{
  position:absolute;
  left:calc(100% + 10px);
  top:50%;
  transform:translateY(-50%) translateX(-4px);
  min-height:30px;
  padding:0 10px;
  white-space:nowrap;
  background:var(--text);
  color:#fff;
  border-radius:10px;
  opacity:0;
  pointer-events:none;
  font-size:12px;
  line-height:30px;
  font-weight:500;
  transition:opacity .18s ease, transform .18s ease;
}

.subsite-card__nickname-copy.is-copied{
  color:var(--accent-main);
}

.subsite-card__nickname-copy.is-copied .subsite-card__nickname-toast{
  opacity:1;
  transform:translateY(-50%) translateX(0);
}

.subsite-card__info{
  margin-top:10px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
}

.subsite-rating{
  min-height:24px;
  display:inline-flex;
  align-items:center;
  gap:7px;
  padding:0;
  background:transparent;
  border-radius:0;
  font-size:14px;
  font-weight:600;
  line-height:1;
}

.subsite-rating--positive{
  color:var(--success);
}

.subsite-rating--negative{
  color:var(--danger);
}

.subsite-rating--plain{
  background:transparent !important;
}

.subsite-rating i{
  font-size:15px;
  line-height:1;
}

.subsite-card__date,
.subsite-card__status{
  color:var(--text-soft);
  font-size:13px;
  line-height:1.45;
}

.subsite-card__status--online{
  color:var(--success);
}

.subsite-card__description{
  margin-top:14px;
  color:var(--text);
  font-size:15px;
  line-height:1.68;
  word-break:break-word;
}

.subsite-card__description p{
  margin:0;
}

.subsite-card__description--profile{
  max-width:620px;
  margin-top:12px;
}

.subsite-card__description--empty{
  color:var(--text-soft);
}

.subsite-card__description--emptybox{
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:14px 16px;
  background:var(--surface-2);
  border:0;
  border-radius:18px;
}

.subsite-card__empty-icon{
  width:36px;
  height:36px;
  border-radius:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:var(--surface);
  color:var(--text-fade);
}

.subsite-card__empty-icon i{
  font-size:18px;
  line-height:1;
}

.subsite-card__empty-text{
  color:var(--text-soft);
  font-size:14px;
  line-height:1.6;
}

.subsite-card__inline-meta{
  margin-top:12px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.45;
}

.subsite-card__inline-meta-item{
  white-space:nowrap;
}

.subsite-card__inline-meta-dot{
  width:4px;
  height:4px;
  border-radius:50%;
  flex:0 0 auto;
  background:var(--text-fade);
}

/* PROFILE ACTIVITY */
.profile-activity-shell{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}

.profile-activity__control{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.profile-activity-nav{
  padding:12px;
  overflow:visible;
}

.profile-activity__tabs{
  display:flex;
  align-items:center;
  flex-wrap:nowrap;
  gap:10px;
}

.profile-activity__tab{
  min-width:0;
  flex:1 1 0;
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 14px;
  background:var(--surface-2);
  border:0;
  border-radius:14px;
  color:var(--text-soft);
  cursor:pointer;
  box-shadow:none;
  font-size:14px;
  font-weight:600;
  line-height:1;
  transition:background .26s ease, color .26s ease, transform .18s ease;
}

.profile-activity__tab:hover{
  background:var(--surface-3);
  color:var(--text);
}

.profile-activity__tab:active{
  transform:scale(.985);
}

#profile-activity-posts:checked ~ .profile-activity-nav .profile-activity__tab--posts,
#profile-activity-comments:checked ~ .profile-activity-nav .profile-activity__tab--comments{
  background:var(--accent-main-soft);
  color:var(--accent-main);
}

.profile-activity-panels{
  position:relative;
  min-width:0;
}

.profile-activity-panel{
  position:absolute;
  inset:0;
  display:grid;
  gap:16px;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(10px);
  transition:opacity .28s ease, transform .28s ease, visibility .28s ease;
}

#profile-activity-posts:checked ~ .profile-activity-panels .profile-activity-panel--posts,
#profile-activity-comments:checked ~ .profile-activity-panels .profile-activity-panel--comments{
  position:relative;
  inset:auto;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0);
}

.profile-activity-content{
  padding:16px;
  overflow:hidden;
}

.profile-activity-action{
  display:flex;
}

.profile-activity__more-link{
  width:100%;
}

.profile-activity__more-link a{
  position:relative;
  width:100%;
  min-height:54px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.10), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border:1px solid var(--border);
  border-radius:18px;
  color:transparent !important;
  overflow:hidden;
  box-shadow:var(--shadow-xs);
  font-size:0 !important;
  line-height:0 !important;
  transition:transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-activity__more-link a:hover,
.profile-activity__more-link a:active{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.14), transparent 42%),
    linear-gradient(180deg, var(--surface), var(--surface-2));
  border-color:var(--border-strong);
  box-shadow:var(--shadow-sm);
  transform:translateY(-1px);
}

.profile-activity__more-link a::before{
  display:inline-block;
  color:var(--text);
  font-size:14px;
  line-height:1;
  font-weight:700;
  letter-spacing:-.01em;
}

.profile-activity__more-link a::after{
  content:"\f061";
  width:28px;
  height:28px;
  margin-left:12px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--accent-main-soft);
  color:var(--accent-main);
  border-radius:999px;
  font-family:"Font Awesome 5 Pro";
  font-weight:400;
  font-size:13px;
  line-height:1;
}

.profile-activity__more-link--posts a::before{
  content:"Ð’ÑÐµ Ð¿Ð¾ÑÑ‚Ñ‹";
}

.profile-activity__more-link--comments a::before{
  content:"Ð’ÑÐµ ÐºÐ¾Ð¼Ð¼ÐµÐ½Ñ‚Ð°Ñ€Ð¸Ð¸";
}

.profile-empty--activity{
  margin:0;
  padding:34px 24px;
  background:transparent;
  border:0;
  box-shadow:none;
}

.profile-comments-list{
  display:grid;
  gap:12px;
}

.profile-comments-list .top_right_block_comm{
  display:grid;
  grid-template-columns:20px minmax(0,1fr) auto;
  align-items:start;
  gap:10px;
  padding:14px 0 12px;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--border);
  border-radius:0;
}

.profile-comments-list .top_right_block_comm:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.profile-comments-list .top_right_photo_comm{
  width:20px;
  height:20px;
  margin-top:2px;
  border-radius:50%;
}

.profile-comments-list .top_right_author_comm,
.profile-comments-list .top_right_author_comm a{
  color:var(--text);
  font-size:13px;
  line-height:1.35;
  font-weight:600;
}

.profile-comments-list .top_right_date{
  margin-left:0;
  color:var(--text-fade);
  font-size:11px;
  line-height:1.2;
}

.profile-comments-list .top_right_comment{
  grid-column:2 / 4;
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  overflow:visible;
}

.profile-comments-list .top_right_comment_title{
  height:auto;
  padding:6px 0 0;
  -webkit-line-clamp:1;
  font-size:12px;
  line-height:1.4;
}

.profile-comments-list .top_right_comment_title a,
.profile-comments-list .top_right_comment_title i{
  color:var(--text-soft);
}

.profile-comments-list .top_right_comment_title i{
  display:none;
}

.profile-comments-list .top_right_comment_text{
  padding:6px 0 0;
  color:var(--text);
  font-size:13px;
  line-height:1.6;
}

/* PROFILE FEED */
.profile-posts{
  display:grid;
  gap:0;
  margin-top:12px;
}

.profile-posts__list{
  display:grid;
  gap:0;
}

.profile-posts__list .share2026{
  top:calc(100% + 10px);
  bottom:auto;
}

.profile-feed-card{
  position:relative;
  margin:0 0 12px;
  padding:16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-xs);
  overflow:visible;
}

.profile-feed-card:last-child{
  margin-bottom:0;
}

.profile-feed-card__header{
  margin:0 0 16px;
}

.profile-feed-card__top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:0 0 14px;
}

.profile-feed-card__meta{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0 12px;
  background:var(--surface-2);
  border-radius:999px;
  color:var(--text);
  font-size:12px;
  font-weight:500;
  line-height:1;
}

.profile-feed-card__meta--category{
  text-decoration:none;
}

.profile-feed-card__meta--category:hover{
  background:var(--surface-3);
  color:var(--text);
}

.profile-feed-card__meta-icon{
  width:20px;
  height:20px;
  border-radius:50%;
  object-fit:cover;
  flex:0 0 auto;
}

.profile-feed-card__date-wrap{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
}

.profile-feed-card__date{
  display:inline-flex;
  align-items:center;
  gap:6px;
  color:var(--text-fade);
  white-space:nowrap;
  font-size:11px;
  line-height:1;
}

.profile-feed-card__title{
  margin:0;
  color:var(--text);
  font-size:18px;
  line-height:1.24;
  font-weight:600;
  letter-spacing:-.02em;
}

.profile-feed-card__title a{
  color:var(--text);
  text-decoration:none;
}

.profile-feed-card__title a:hover{
  color:var(--text);
}

.profile-feed-card__excerpt{
  margin:0 0 14px;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.58;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}

.profile-feed-card--video .profile-feed-card__excerpt{
  -webkit-line-clamp:2;
}

.profile-feed-card__poll{
  margin:0 0 14px;
}

.profile-feed-card__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px;
  padding-top:0;
}

.profile-feed-card__stats,
.profile-feed-card__actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
}

.profile-feed-card__stat{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0 10px;
  background:transparent;
  border-radius:12px;
  color:var(--text-soft);
  text-decoration:none;
  font-size:12px;
  line-height:1;
  font-weight:500;
  transition:background .18s ease, color .18s ease;
}

.profile-feed-card__stat:hover{
  background:var(--surface-2);
  color:var(--text);
}

.profile-feed-card__action{
  cursor:pointer;
}

.profile-feed-card .feed-card__menu-btn{
  width:32px;
  height:32px;
  border-radius:10px;
}

.profile-feed-card .feed-card__menu-btn:hover{
  background:var(--surface-2);
}

.profile-empty{
  padding:28px 20px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow-sm);
  text-align:center;
}

.profile-empty__title{
  color:var(--text);
  font-size:18px;
  line-height:1.3;
  font-weight:700;
}

.profile-empty__text{
  margin-top:6px;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.6;
}

/* PROFILE COVER MODAL */
.profile-cover-modal .auth-modal__panel{
  width:min(620px, calc(100vw - 24px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  padding:20px;
}

.profile-cover-modal .auth-modal__head{
  margin-bottom:16px;
}

.profile-cover-editor{
  display:grid;
  gap:16px;
}

.profile-cover-form{
  display:grid;
  gap:14px;
}

.profile-cover-upload{
  min-height:52px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--surface-2);
  border:1px dashed var(--border-strong);
  border-radius:18px;
  color:var(--text);
  cursor:pointer;
  font-size:15px;
  font-weight:500;
  transition:background .18s ease, border-color .18s ease;
}

.profile-cover-upload:hover{
  background:var(--surface-3);
  border-color:var(--accent-main);
}

.profile-cover-preview{
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  overflow:hidden;
  background:var(--surface-2);
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border:1px solid var(--border);
  border-radius:20px;
}

.profile-cover-preview.has-image .profile-cover-preview__empty{
  display:none;
}

.profile-cover-preview__empty{
  padding:16px;
  color:var(--text-fade);
  font-size:14px;
  line-height:1.4;
  font-weight:500;
}

.profile-cover-actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
}

.profile-cover-save,
.profile-cover-remove{
  min-height:46px;
  padding:0 16px;
  border:0;
  border-radius:14px;
  cursor:pointer;
  font-size:14px;
  font-weight:600;
  transition:background .18s ease, transform .18s ease;
}

.profile-cover-save{
  background:var(--accent-main);
  color:#fff;
}

.profile-cover-save:hover{
  background:var(--accent-main-hover);
}

.profile-cover-remove{
  background:var(--surface-2);
  color:var(--danger);
}

.profile-cover-remove:hover{
  background:var(--danger-soft);
}

.profile-cover-save:active,
.profile-cover-remove:active{
  transform:scale(.985);
}

.profile-cover-status{
  min-height:20px;
  font-size:14px;
  line-height:1.4;
  font-weight:500;
}

.profile-cover-status.is-error{
  color:var(--danger);
}

.profile-cover-status.is-success{
  color:var(--success);
}

.profile-cover-status.is-loading{
  color:var(--text-soft);
}

.profile-cover-upload-wrap{
  position:relative;
}

.profile-cover-input-native{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
  overflow:hidden;
}

/* PROFILE SETTINGS MODAL */
.profile-settings-modal{
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px 12px;
}

.profile-settings-modal .auth-modal__panel{
  width:min(980px, calc(100vw - 24px));
  max-height:calc(100vh - 40px);
  overflow:auto;
  padding:20px;
}

.profile-settings-modal .auth-modal__head{
  margin-bottom:16px;
}

.profile-settings{
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}

.profile-settings__grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:16px;
}

.profile-settings__card{
  display:grid;
  gap:14px;
  min-width:0;
  padding:18px;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.08), transparent 34%),
    linear-gradient(180deg, var(--surface), var(--surface));
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow-xs);
}

.theme-dark .profile-settings__card{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.12), transparent 34%),
    linear-gradient(180deg, var(--surface), var(--surface));
}

.profile-settings__card-title{
  color:var(--text);
  font-size:16px;
  line-height:1.24;
  font-weight:700;
  letter-spacing:-.02em;
}

.profile-form-group{
  display:grid;
  gap:8px;
}

.profile-form-label{
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:600;
}

.profile-form-note{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.5;
}

.profile-form-input,
.profile-form-file,
.profile-form-select-wrap select,
.profile-form-box{
  width:100%;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.profile-form-input,
.profile-form-file,
.profile-form-select-wrap select{
  min-height:50px;
  padding:0 16px;
  border-radius:16px;
  font-size:15px;
}

.profile-form-input--textarea{
  min-height:124px;
  padding:14px 16px;
  border-radius:18px;
  resize:vertical;
  line-height:1.65;
}

.profile-form-input:focus,
.profile-form-file:focus,
.profile-form-select-wrap select:focus,
.profile-form-input--textarea:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.profile-form-file{
  display:flex;
  align-items:center;
  padding:12px 16px;
  cursor:pointer;
}

.profile-form-select-wrap{
  position:relative;
}

.profile-form-select-wrap select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:46px;
  cursor:pointer;
}

.profile-form-select-wrap::after{
  content:"";
  position:absolute;
  top:50%;
  right:18px;
  width:10px;
  height:10px;
  margin-top:-7px;
  border-right:2px solid var(--text-soft);
  border-bottom:2px solid var(--text-soft);
  transform:rotate(45deg);
  pointer-events:none;
}

.profile-form-box{
  min-height:50px;
  padding:14px 16px;
  border-radius:18px;
  font-size:14px;
  line-height:1.6;
}

.profile-form-box a{
  color:var(--accent-main);
}

.profile-form-box--danger{
  background:var(--danger-soft);
  color:var(--danger);
  border-color:rgba(239,68,68,.16);
}

.profile-form-check{
  display:flex;
  align-items:flex-start;
  gap:12px;
  color:var(--text);
  cursor:pointer;
  font-size:14px;
  line-height:1.55;
}

.profile-form-check input[type="checkbox"],
.profile-form-check input[type="radio"]{
  appearance:none;
  -webkit-appearance:none;
  position:relative;
  width:20px;
  min-width:20px;
  height:20px;
  margin:1px 0 0;
  background:var(--surface-2);
  border:1px solid var(--border-strong);
  flex:0 0 auto;
  cursor:pointer;
  transition:border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.profile-form-check input[type="checkbox"]{
  border-radius:7px;
}

.profile-form-check input[type="radio"]{
  border-radius:50%;
}

.profile-form-check input[type="checkbox"]:hover,
.profile-form-check input[type="radio"]:hover{
  border-color:var(--accent-main);
}

.profile-form-check input[type="checkbox"]:focus-visible,
.profile-form-check input[type="radio"]:focus-visible{
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.profile-form-check input[type="checkbox"]:checked,
.profile-form-check input[type="radio"]:checked{
  background:var(--accent-main);
  border-color:var(--accent-main);
}

.profile-form-check input[type="checkbox"]::after{
  content:"";
  position:absolute;
  left:6px;
  top:2px;
  width:5px;
  height:10px;
  border-right:2px solid #fff;
  border-bottom:2px solid #fff;
  transform:rotate(45deg);
  opacity:0;
}

.profile-form-check input[type="checkbox"]:checked::after{
  opacity:1;
}

.profile-form-check input[type="radio"]::after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:8px;
  height:8px;
  background:#fff;
  border-radius:50%;
  transform:translate(-50%, -50%);
  opacity:0;
}

.profile-form-check input[type="radio"]:checked::after{
  opacity:1;
}

.profile-settings .xfieldsrow{
  display:grid;
  gap:8px;
  margin:0;
  padding:0;
  background:transparent;
  border:0;
}

.profile-settings .xfieldscolleft{
  float:none;
  width:auto;
  margin:0;
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:600;
}

.profile-settings .xfieldscolright{
  float:none;
  width:auto;
  margin:0;
}

.profile-settings .xfieldscolright input[type="text"],
.profile-settings .xfieldscolright input[type="email"],
.profile-settings .xfieldscolright input[type="url"],
.profile-settings .xfieldscolright input[type="password"],
.profile-settings .xfieldscolright select,
.profile-settings .xfieldscolright textarea{
  width:100%;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
}

.profile-settings .xfieldscolright input[type="text"],
.profile-settings .xfieldscolright input[type="email"],
.profile-settings .xfieldscolright input[type="url"],
.profile-settings .xfieldscolright input[type="password"],
.profile-settings .xfieldscolright select{
  min-height:50px;
  padding:0 16px;
  border-radius:16px;
}

.profile-settings .xfieldscolright textarea{
  min-height:124px;
  padding:14px 16px;
  border-radius:18px;
  resize:vertical;
}

.profile-settings .xfieldscolright input[type="text"]:focus,
.profile-settings .xfieldscolright input[type="email"]:focus,
.profile-settings .xfieldscolright input[type="url"]:focus,
.profile-settings .xfieldscolright input[type="password"]:focus,
.profile-settings .xfieldscolright select:focus,
.profile-settings .xfieldscolright textarea:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.profile-settings__footer{
  position:sticky;
  bottom:0;
  z-index:3;
  margin-top:16px;
  padding-top:14px;
  background:linear-gradient(to top, var(--surface) 78%, rgba(255,255,255,0));
}

.theme-dark .profile-settings__footer{
  background:linear-gradient(to top, var(--surface) 78%, rgba(32,36,43,0));
}

.profile-save-btn{
  min-height:50px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 18px;
  background:var(--accent-main);
  color:#fff;
  border:0;
  border-radius:16px;
  box-shadow:0 12px 24px rgba(45,123,255,.18);
  cursor:pointer;
  font-size:15px;
  font-weight:700;
  line-height:1;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.profile-save-btn:hover{
  background:var(--accent-main-hover);
}

.profile-save-btn:active{
  transform:scale(.985);
}

/* DLE UI DIALOGS */
.ui-widget-overlay{
  position:fixed !important;
  inset:0 !important;
  z-index:1200 !important;
  background:var(--overlay-strong) !important;
  opacity:0;
  transition:opacity .22s ease;
}

.ui-widget-overlay.ui-dialog-fx-visible{
  opacity:1;
}

.ui-dialog.modalfixed,
.ui-dialog.dle-popup-newsdelete,
.ui-dialog.dle-popup-quickedit{
  z-index:1300 !important;
  background:var(--surface) !important;
  color:var(--text) !important;
  border:1px solid var(--border) !important;
  border-radius:22px !important;
  box-shadow:0 20px 60px rgba(0,0,0,.18) !important;
  overflow:hidden !important;
  opacity:0;
  transform:translateY(18px) scale(.985);
  transition:opacity .22s ease, transform .22s ease;
}

.ui-dialog.ui-dialog-fx-visible{
  opacity:1;
  transform:translateY(0) scale(1);
}

.ui-dialog .ui-dialog-titlebar{
  display:flex !important;
  align-items:center !important;
  justify-content:space-between !important;
  gap:12px !important;
  padding:15px 18px !important;
  background:var(--surface) !important;
  border:0 !important;
  border-bottom:1px solid var(--border) !important;
  color:var(--text) !important;
}

.ui-dialog .ui-dialog-title{
  margin:0 !important;
  color:var(--text) !important;
  font-size:15px !important;
  line-height:1.25 !important;
  font-weight:600 !important;
}

.ui-dialog .ui-dialog-titlebar-close{
  position:relative !important;
  width:40px !important;
  min-width:40px !important;
  height:40px !important;
  min-height:40px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
  border-radius:12px !important;
  box-shadow:none !important;
  color:transparent !important;
  font-size:0 !important;
  text-indent:0 !important;
  overflow:hidden !important;
  flex:0 0 auto !important;
}

.ui-dialog .ui-dialog-titlebar-close:hover{
  background:var(--surface-2) !important;
}

.ui-dialog .ui-dialog-titlebar-close::before{
  content:"\f00d";
  display:block;
  color:var(--text);
  font-family:"Font Awesome 5 Pro";
  font-weight:400;
  font-size:18px;
  line-height:1;
}

.ui-dialog .ui-dialog-titlebar-close .ui-button-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-button-text,
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon-space{
  display:none !important;
}

.ui-dialog .ui-dialog-content{
  padding:18px !important;
  background:var(--surface) !important;
  color:var(--text) !important;
  border:0 !important;
}

.ui-dialog .ui-dialog-buttonpane{
  margin:0 !important;
  padding:0 18px 18px !important;
  background:var(--surface) !important;
  border:0 !important;
}

.ui-dialog .ui-dialog-buttonset{
  width:100% !important;
  display:flex !important;
  justify-content:flex-end !important;
  flex-wrap:wrap !important;
  gap:10px !important;
}

.ui-dialog .ui-dialog-buttonpane .ui-button,
.ui-dialog .ui-dialog-buttonpane button{
  min-height:46px !important;
  padding:0 16px !important;
  background:var(--surface-2) !important;
  color:var(--text) !important;
  border:1px solid transparent !important;
  border-radius:14px !important;
  box-shadow:none !important;
  cursor:pointer !important;
  font-size:14px !important;
  font-weight:600 !important;
}

.ui-dialog .ui-dialog-buttonpane .ui-button:hover,
.ui-dialog .ui-dialog-buttonpane button:hover{
  background:var(--surface-3) !important;
}

.ui-dialog .ui-dialog-buttonpane .ui-button-delete{
  background:var(--danger-soft) !important;
  color:var(--danger) !important;
}

.ui-dialog .ui-dialog-buttonpane .ui-button-delete:hover{
  background:var(--danger-soft) !important;
  color:var(--danger) !important;
  filter:brightness(.98);
}

#dlepopup,
#dlepopup-news-edit,
.dlepopupnewsedit,
.dle-promt{
  color:var(--text) !important;
}

#dlepopup textarea,
#dlepopup-news-edit textarea,
.dlepopupnewsedit textarea,
.quick-edit-text,
.quick-edit-textarea,
.xfieldsrow textarea,
.xfieldsrow input[type="text"],
.xfieldsrow input[type="url"],
.xfieldsrow input[type="email"],
.xfieldsrow input[type="password"],
.xfieldsrow select{
  width:100% !important;
  min-height:50px;
  padding:12px 14px !important;
  background:var(--surface-2) !important;
  color:var(--text) !important;
  border:1px solid var(--border) !important;
  border-radius:16px !important;
  box-shadow:none !important;
}

#dlepopup textarea:focus,
#dlepopup-news-edit textarea:focus,
.dlepopupnewsedit textarea:focus,
.quick-edit-text:focus,
.quick-edit-textarea:focus,
.xfieldsrow textarea:focus,
.xfieldsrow input[type="text"]:focus,
.xfieldsrow input[type="url"]:focus,
.xfieldsrow input[type="email"]:focus,
.xfieldsrow input[type="password"]:focus,
.xfieldsrow select:focus{
  border-color:var(--accent-main) !important;
  box-shadow:0 0 0 3px var(--accent-main-soft) !important;
}

.dlepopupnewsedit form{
  display:grid;
  gap:14px;
}

.dlepopupnewsedit .xfieldsrow{
  margin:0 !important;
  padding:0 !important;
  background:transparent !important;
  border:0 !important;
}

.dlepopupnewsedit .xfieldscolleft{
  float:none !important;
  width:auto !important;
  margin:0 0 8px !important;
  color:var(--text) !important;
  font-size:13px !important;
  line-height:1.2 !important;
  font-weight:500 !important;
}

.dlepopupnewsedit .xfieldscolright{
  float:none !important;
  width:auto !important;
  margin:0 !important;
}

.dlepopupnewsedit .btn,
.dlepopupnewsedit .qq-upload-button{
  min-height:46px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 16px !important;
  background:var(--accent-main) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:14px !important;
  font-size:14px !important;
  font-weight:500 !important;
}

.dlepopupnewsedit .tox,
.dlepopupnewsedit .tox-tinymce{
  border:1px solid var(--border) !important;
  border-radius:18px !important;
  overflow:hidden !important;
}

.dlepopupnewsedit .tox .tox-editor-header,
.dlepopupnewsedit .tox .tox-toolbar-overlord,
.dlepopupnewsedit .tox .tox-toolbar,
.dlepopupnewsedit .tox .tox-toolbar__primary{
  background:var(--surface) !important;
}

.dlepopupnewsedit .tox .tox-edit-area__iframe{
  background:var(--surface) !important;
}

.dlepopupnewsedit .tox .tox-statusbar{
  border-top:1px solid var(--border) !important;
}

.dlepopupnewsedit .tox .tox-tbtn{
  border-radius:10px !important;
}

.dlepopupnewsedit .tox .tox-tbtn:hover{
  background:var(--surface-2) !important;
}

.file-box{
  margin-top:10px !important;
  padding:12px !important;
  background:var(--surface-2) !important;
  border:1px solid var(--border) !important;
  border-radius:16px !important;
}

.progress{
  margin-top:8px !important;
  background:var(--surface-3) !important;
  border-radius:999px !important;
  overflow:hidden !important;
}

.progress-bar{
  border-radius:999px !important;
}

.file-preview-card{
  background:var(--surface-2) !important;
  border:1px solid var(--border) !important;
  border-radius:16px !important;
  overflow:hidden !important;
}

.file-footer{
  background:var(--surface) !important;
  color:var(--text) !important;
}

.form-check-label,
.ui-dialog label{
  color:var(--text) !important;
}

/* ADDNEWS PAGE */
.addnews-page{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}

.addnews-page .subsite-card{
  overflow:visible;
}

.addnews-page .subsite-card__body{
  padding:22px;
}

.addnews-head{
  display:grid;
  gap:8px;
  margin-bottom:18px;
}

.addnews-head__title{
  margin:0;
  color:var(--text);
  font-size:28px;
  line-height:1.06;
  letter-spacing:-.03em;
  font-weight:700;
}

.addnews-head__text{
  max-width:760px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.64;
}

.addnews-shell{
  display:grid;
  gap:16px;
}

.addnews-block{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow-xs);
  overflow:visible;
}

.addnews-block__head{
  padding:16px 16px 0;
}

.addnews-block__title{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  color:var(--text);
  font-size:16px;
  line-height:1.24;
  font-weight:600;
}

.addnews-block__title i{
  width:18px;
  flex:0 0 auto;
  text-align:center;
  color:var(--accent-main);
  font-size:15px;
}

.addnews-block__body{
  padding:16px;
}

.addnews-field{
  display:grid;
  gap:10px;
}

.addnews-field + .addnews-field{
  margin-top:14px;
}

.addnews-label{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:600;
}

.addnews-control{
  min-width:0;
}

.addnews-control > input[type="text"],
.addnews-control > input[type="url"],
.addnews-control > input[type="email"],
.addnews-control > input[type="password"],
.addnews-control > select,
.addnews-control > textarea,
.addnews-captcha input[type="text"]{
  width:100%;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.addnews-control > input[type="text"],
.addnews-control > input[type="url"],
.addnews-control > input[type="email"],
.addnews-control > input[type="password"],
.addnews-control > select,
.addnews-captcha input[type="text"]{
  min-height:50px;
  padding:0 16px;
  border-radius:14px;
  font-size:15px;
  font-weight:400;
}

.addnews-control > textarea{
  min-height:220px;
  padding:16px 18px;
  border-radius:20px;
  font-size:15px;
  font-weight:400;
  line-height:1.68;
  resize:vertical;
}

.addnews-control > input[type="text"]:focus,
.addnews-control > input[type="url"]:focus,
.addnews-control > input[type="email"]:focus,
.addnews-control > input[type="password"]:focus,
.addnews-control > select:focus,
.addnews-control > textarea:focus,
.addnews-captcha input[type="text"]:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.addnews-category-control{
  position:relative;
}

.addnews-category-native{
  position:absolute !important;
  inset:0 !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

.addnews-category-ui{
  position:relative;
}

.addnews-category-ui__trigger{
  width:100%;
  min-height:50px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:0 46px 0 16px;
  text-align:left;
  cursor:pointer;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.08), transparent 40%),
    linear-gradient(180deg, var(--surface-2), var(--surface-2));
  color:var(--text);
  border:1px solid var(--border);
  border-radius:14px;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease, transform .18s ease;
}

.addnews-category-ui__trigger:hover{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.10), transparent 40%),
    linear-gradient(180deg, var(--surface), var(--surface));
  border-color:var(--border-strong);
}

.addnews-category-ui.is-open .addnews-category-ui__trigger,
.addnews-category-ui__trigger:focus{
  outline:none;
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.addnews-category-ui__trigger-text{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:14px;
  font-weight:500;
  line-height:1.2;
}

.addnews-category-ui__trigger-icon{
  position:absolute;
  top:50%;
  right:16px;
  width:10px;
  height:10px;
  margin-top:-6px;
  border-right:2px solid var(--text-soft);
  border-bottom:2px solid var(--text-soft);
  transform:rotate(45deg);
  transition:transform .18s ease, margin-top .18s ease, border-color .18s ease;
}

.addnews-category-ui.is-open .addnews-category-ui__trigger-icon{
  margin-top:-1px;
  border-color:var(--accent-main);
  transform:rotate(-135deg);
}

.addnews-category-ui__dropdown{
  position:absolute;
  top:calc(100% + 10px);
  left:0;
  right:0;
  z-index:35;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(8px) scale(.98);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.addnews-category-ui.is-open .addnews-category-ui__dropdown{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.addnews-category-ui__list{
  max-height:280px;
  overflow:auto;
  padding:8px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:0 18px 40px rgba(0,0,0,.12);
}

.addnews-category-ui__item{
  width:100%;
  min-height:42px;
  display:flex;
  align-items:center;
  padding:0 12px;
  background:transparent;
  color:var(--text);
  border:0;
  border-radius:12px;
  text-align:left;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  line-height:1.3;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}

.addnews-category-ui__item:hover{
  background:var(--surface-2);
}

.addnews-category-ui__item:active{
  transform:scale(.995);
}

.addnews-category-ui__item.is-selected{
  background:var(--accent-main-soft);
  color:var(--accent-main);
}

.addnews-category-ui__item.is-disabled{
  opacity:.45;
  cursor:default;
}

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

.addnews-media-card{
  display:grid;
  gap:12px;
  min-height:100%;
  padding:14px;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.10), transparent 34%),
    linear-gradient(180deg, var(--surface), var(--surface));
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-xs);
}

.addnews-media-card__head{
  display:flex;
  align-items:flex-start;
  gap:12px;
}

.addnews-media-card__icon{
  width:42px;
  height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:var(--accent-main-soft);
  color:var(--accent-main);
  border-radius:14px;
}

.addnews-media-card__icon i{
  font-size:17px;
  line-height:1;
}

.addnews-media-card__meta{
  min-width:0;
  display:grid;
  gap:4px;
}

.addnews-media-card__title{
  color:var(--text);
  font-size:14px;
  line-height:1.2;
  font-weight:600;
}

.addnews-media-card__text{
  color:var(--text-soft);
  font-size:13px;
  line-height:1.55;
}

.addnews-media-card .qq-uploader,
.addnews-media-card .qq-uploader-selector,
.addnews-media-card .xfieldupload,
.addnews-media-card .xfieldimagegallery,
.addnews-media-card .xfieldmixed,
.addnews-media-card .xfieldvideo,
.addnews-media-card .file-box,
.addnews-media-card [id^="xfupload_"]{
  width:100%;
}

.addnews-media-card [id^="xfupload_"]{
  position:relative !important;
}

.addnews-media-card .qq-uploader{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
}

.addnews-media-card .qq-upload-button,
.addnews-media-card .qq-upload-button-selector,
.addnews-media-card input[type="button"],
.addnews-media-card button,
.addnews-media-card .btn{
  position:relative !important;
  z-index:2 !important;
  min-height:42px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 14px !important;
  background:var(--accent-main) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:14px !important;
  box-shadow:none !important;
  font-size:14px !important;
  font-weight:600 !important;
  line-height:1 !important;
}

.addnews-media-card .qq-upload-button:hover,
.addnews-media-card .qq-upload-button-selector:hover,
.addnews-media-card input[type="button"]:hover,
.addnews-media-card button:hover,
.addnews-media-card .btn:hover{
  background:var(--accent-main-hover) !important;
}

.addnews-media-card .moxie-shim{
  inset:0 !important;
  width:100% !important;
  height:42px !important;
  z-index:3 !important;
}

.addnews-media-card .moxie-shim input[type="file"]{
  cursor:pointer;
}

.addnews-media-card .file-box{
  margin-top:0 !important;
  padding:12px !important;
  background:var(--surface-2) !important;
  border:1px solid var(--border) !important;
  border-radius:16px !important;
}

.addnews-editor{
  display:grid;
  gap:12px;
  padding:12px;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.08), transparent 28%),
    linear-gradient(180deg, var(--surface), var(--surface));
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-xs);
}

.addnews-editor > br{
  display:none;
}

.addnews-editor .bbcodes,
.addnews-editor .bb-pane,
.addnews-editor .editor-panel{
  margin:0;
}

.addnews-editor textarea{
  min-height:260px;
  margin:0;
  border-radius:18px !important;
}

.addnews-tags-note{
  padding:13px 14px;
  background:var(--surface-2);
  color:var(--text-soft);
  border:1px solid var(--border);
  border-radius:16px;
  font-size:13px;
  line-height:1.55;
}

.addnews-tags{
  display:grid;
  gap:12px;
  margin-top:14px;
}

.addnews-tags__group{
  display:grid;
  gap:8px;
}

.addnews-tags__title{
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--text);
  font-size:12px;
  line-height:1.2;
  font-weight:600;
  letter-spacing:.03em;
}

.addnews-tags__title::before{
  content:"";
  width:6px;
  height:6px;
  flex:0 0 auto;
  background:var(--accent-main);
  border-radius:50%;
  opacity:.9;
}

.addnews-tags__list{
  display:flex;
  align-items:flex-start;
  flex-wrap:wrap;
  gap:8px;
}

.addnews-tags .button{
  position:relative;
  width:auto;
  min-width:0;
  min-height:34px;
  flex:0 0 auto;
  overflow:hidden;
  padding:0 12px;
  border-radius:12px;
  white-space:normal;
  font-size:12px;
  font-weight:500;
  line-height:1;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.addnews-tags .button:active{
  transform:scale(.985);
}

.addnews-tags .button.button--type-primary{
  background:var(--accent-main-soft);
  color:var(--accent-main);
  border-color:transparent;
}

.addnews-tags .button.button--type-primary:hover{
  background:var(--accent-main-soft);
  color:var(--accent-main);
}

.addnews-tags .button.is-pop{
  animation:addnewsTagPop .22s ease;
}

.addnews-tags .button::after{
  content:"";
  position:absolute;
  inset:0;
  background:var(--accent-main-soft);
  border-radius:inherit;
  opacity:0;
  transform:scale(.92);
  pointer-events:none;
}

.addnews-tags .button.is-flash::after{
  animation:addnewsTagFlash .34s ease;
}

@keyframes addnewsTagPop{
  0%{transform:scale(1);}
  50%{transform:scale(1.06);}
  100%{transform:scale(1);}
}

@keyframes addnewsTagFlash{
  0%{
    opacity:0;
    transform:scale(.92);
  }
  35%{
    opacity:.9;
    transform:scale(1);
  }
  100%{
    opacity:0;
    transform:scale(1.03);
  }
}

.addnews-tag-input{
  margin-top:16px;
}

.addnews-admin{
  padding:0;
  background:transparent;
  border:0;
  box-shadow:none;
}

.addnews-switch{
  min-height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  background:transparent;
  border:0;
  border-bottom:1px solid var(--border);
}

.addnews-switch:first-child{
  padding-top:0;
}

.addnews-switch:last-child{
  padding-bottom:0;
  border-bottom:0;
}

.addnews-switch__text{
  min-width:0;
  display:block;
}

.addnews-switch__title{
  color:var(--text);
  font-size:14px;
  line-height:1.45;
  font-weight:500;
}

.addnews-switch input[type="checkbox"]{
  appearance:none;
  -webkit-appearance:none;
  position:relative;
  width:44px;
  min-width:44px;
  height:26px;
  margin:0;
  background:var(--surface-3);
  border:1px solid var(--border-strong);
  border-radius:999px;
  cursor:pointer;
  flex:0 0 auto;
  transition:background .18s ease, border-color .18s ease;
}

.addnews-switch input[type="checkbox"]::before{
  content:"";
  position:absolute;
  top:2px;
  left:2px;
  width:20px;
  height:20px;
  background:#fff;
  border-radius:50%;
  box-shadow:0 2px 8px rgba(0,0,0,.14);
  transition:transform .18s ease;
}

.addnews-switch input[type="checkbox"]:checked{
  background:var(--accent-main);
  border-color:var(--accent-main);
}

.addnews-switch input[type="checkbox"]:checked::before{
  transform:translateX(18px);
}

.addnews-captcha{
  display:grid;
  gap:12px;
  padding:14px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:var(--shadow-xs);
}

.addnews-captcha > div:first-child{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.addnews-submit{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  margin-top:2px;
}

.addnews-submit .button{
  min-height:46px;
  padding:0 18px;
  border-radius:15px;
  font-size:14px;
  font-weight:600;
}

.theme-dark .addnews-media-card,
.theme-dark .addnews-editor,
.theme-dark .addnews-category-ui__trigger{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.12), transparent 34%),
    linear-gradient(180deg, var(--surface), var(--surface));
}

.theme-dark .addnews-category-ui__list{
  box-shadow:0 18px 40px rgba(0,0,0,.30);
}

.theme-dark .search-overlay__close,
.theme-dark .feed-card__menu-dropdown,
.theme-dark .share2026,
.theme-dark .site-profile-dropdown,
.theme-dark .auth-modal__panel{
  box-shadow:0 18px 42px rgba(0,0,0,.30);
}

/* RESPONSIVE */
@media screen and (max-width:925px){
  .subsite-card__header{
    align-items:flex-start;
    gap:14px;
    margin-top:-42px;
  }

  .subsite-card__name,
  .subsite-card__nickname,
  .subsite-card__info{
    justify-content:flex-start;
    text-align:left;
  }

  .profile-settings__grid{
    grid-template-columns:1fr;
  }
}

@media screen and (max-width:768px){
  .profile-page{
    margin-bottom:14px;
  }

  .profile-activity-shell{
    gap:14px;
    margin-bottom:14px;
  }

  .subsite-card{
    border-radius:22px;
  }

  .subsite-cover,
  .subsite-cover__image{
    min-height:132px;
  }

  .subsite-card__body{
    padding:0 16px 16px;
  }

  .subsite-card__header{
    gap:14px;
  }

  .subsite-avatar__frame,
  .subsite-avatar__image{
    width:84px;
    height:84px;
  }

  .subsite-avatar__image{
    border-radius:22px;
  }

  .subsite-header-controls{
    margin-top:48px;
  }

  .subsite-card__name-title{
    font-size:24px;
  }

  .subsite-card__description--profile{
    max-width:none;
  }

  .subsite-card__nickname-toast{
    left:0;
    top:calc(100% + 8px);
    transform:translateY(0);
  }

  .subsite-card__nickname-copy.is-copied .subsite-card__nickname-toast{
    transform:translateY(0);
  }

  .profile-activity-nav{
    padding:10px;
  }

  .profile-activity-content{
    padding:14px;
  }

  .profile-activity__tabs{
    gap:8px;
  }

  .profile-activity__tab{
    width:100%;
    min-width:0;
    padding:0 12px;
  }

  .profile-activity__tab span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .profile-settings{
    padding:0;
    border-radius:22px;
  }

  .profile-feed-card{
    margin-bottom:12px;
    padding:14px;
    border-radius:18px;
  }

  .profile-feed-card__title{
    font-size:17px;
  }

  .profile-feed-card__excerpt{
    font-size:14px;
    line-height:1.58;
  }

  .profile-feed-card__footer{
    align-items:flex-start;
  }

  .profile-feed-card__stats,
  .profile-feed-card__actions{
    width:100%;
  }

  .profile-feed-card__actions{
    justify-content:flex-start;
  }

  .ui-dialog.modalfixed,
  .ui-dialog.dle-popup-newsdelete,
  .ui-dialog.dle-popup-quickedit{
    position:fixed !important;
    left:0 !important;
    right:0 !important;
    top:auto !important;
    bottom:0 !important;
    width:100% !important;
    max-width:none !important;
    max-height:92dvh !important;
    border-radius:20px 20px 0 0 !important;
    transform:translateY(100%);
    opacity:1;
  }

  .ui-dialog.ui-dialog-fx-visible{
    transform:translateY(0);
  }

  .ui-dialog .ui-dialog-title{
    font-size:15px !important;
  }

  .ui-dialog .ui-dialog-content{
    max-height:calc(92dvh - 142px) !important;
    overflow:auto !important;
    padding-bottom:16px !important;
  }

  .ui-dialog .ui-dialog-buttonpane{
    padding:0 14px calc(14px + env(safe-area-inset-bottom)) !important;
  }

  .ui-dialog .ui-dialog-buttonset{
    justify-content:stretch !important;
  }

  .ui-dialog .ui-dialog-buttonpane .ui-button,
  .ui-dialog .ui-dialog-buttonpane button{
    width:100% !important;
    flex:1 1 100% !important;
  }

  .dlepopupnewsedit .tox,
  .dlepopupnewsedit .tox-tinymce{
    min-height:220px !important;
  }

  .profile-cover-modal{
    display:flex;
    align-items:flex-end;
  }

  .profile-cover-modal .auth-modal__panel{
    width:100%;
    max-height:92dvh;
    min-height:56vh;
    margin:auto 0 0;
    padding:18px 16px calc(18px + env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;
    transform:translateY(100%);
  }

  .profile-cover-modal.is-open .auth-modal__panel{
    transform:translateY(0) scale(1);
  }

  .profile-cover-preview{
    height:180px;
    border-radius:16px;
  }

  .profile-cover-actions{
    flex-direction:column;
  }

  .profile-cover-save,
  .profile-cover-remove{
    width:100%;
  }

  .addnews-page{
    gap:14px;
    margin-bottom:14px;
  }

  .addnews-page .subsite-card__body{
    padding:16px;
  }

  .addnews-head{
    gap:8px;
    margin-bottom:16px;
  }

  .addnews-head__title{
    font-size:24px;
    line-height:1.06;
  }

  .addnews-head__text{
    font-size:14px;
    line-height:1.6;
  }

  .addnews-shell{
    gap:14px;
  }

  .addnews-block{
    border-radius:20px;
  }

  .addnews-block__head{
    padding:14px 14px 0;
  }

  .addnews-block__body{
    padding:14px;
  }

  .addnews-category-ui__trigger{
    min-height:50px;
    padding:0 44px 0 15px;
    border-radius:15px;
  }

  .addnews-category-ui__dropdown{
    top:calc(100% + 8px);
  }

  .addnews-category-ui__list{
    max-height:240px;
    padding:6px;
    border-radius:16px;
  }

  .addnews-category-ui__item{
    min-height:40px;
    border-radius:11px;
    font-size:13px;
  }

  .addnews-media-grid{
    grid-template-columns:1fr;
    gap:14px;
  }

  .addnews-media-card{
    padding:13px;
    border-radius:18px;
  }

  .addnews-editor{
    padding:11px;
    border-radius:18px;
  }

  .addnews-editor textarea,
  .addnews-control > textarea{
    min-height:220px;
    padding:14px 16px;
    border-radius:18px !important;
  }

  .addnews-tags__list{
    display:flex;
    align-items:flex-start;
    flex-wrap:wrap;
    gap:8px;
  }

  .addnews-tags .button{
    width:auto;
    min-width:0;
    min-height:32px;
    flex:0 0 auto;
    padding:0 11px;
    border-radius:11px;
    white-space:normal;
    font-size:12px;
    line-height:1;
  }

  .addnews-switch{
    min-height:46px;
    padding:10px 0;
  }

  .addnews-submit .button{
    width:100%;
    justify-content:center;
  }
}

@media screen and (max-width:640px){
  .profile-page{
    gap:14px;
    margin-bottom:12px;
  }

  .profile-activity-shell{
    gap:12px;
    margin-bottom:12px;
  }

  .subsite-card{
    border-radius:20px;
  }

  .subsite-cover,
  .subsite-cover__image{
    min-height:112px;
  }

  .subsite-cover__actions{
    top:10px;
    right:10px;
  }

  .subsite-cover__edit-btn{
    width:auto;
  }

  .subsite-cover__edit-btn--icon{
    width:38px;
    min-width:38px;
    height:38px;
    min-height:38px;
  }

  .subsite-card__body{
    padding:0 12px 12px;
  }

  .subsite-card__header{
    gap:12px;
    margin-top:-38px;
  }

  .subsite-avatar__frame,
  .subsite-avatar__image{
    width:76px;
    height:76px;
  }

  .subsite-avatar__image{
    border-radius:20px;
  }

  .subsite-avatar__status{
    width:15px;
    height:15px;
    border-width:3px;
  }

  .subsite-header-controls{
    margin-top:42px;
  }

  .subsite-card__name-title{
    font-size:21px;
  }

  .subsite-card__headline{
    gap:8px;
  }

  .subsite-card__headline-status{
    font-size:13px;
  }

  .subsite-card__nickname{
    font-size:14px;
  }

  .subsite-card__info{
    gap:10px;
  }

  .subsite-header-controls__inner{
    width:auto;
    display:flex;
    gap:8px;
  }

  .button,
  .profile-action-wrap,
  .profile-action-wrap .pm_button,
  .profile-action-wrap .pm_link,
  .profile-action-wrap a{
    width:100%;
  }

  .subsite-action-btn,
  .subsite-action-btn--pm,
  .subsite-action-btn--pm .pm_button,
  .subsite-action-btn--pm .pm_link,
  .subsite-action-btn--pm a{
    width:40px;
    min-width:40px;
    height:40px;
    min-height:40px;
  }

  .profile-activity-nav{
    padding:10px;
  }

  .profile-activity-content{
    padding:12px;
  }

  .profile-activity__tabs{
    display:flex;
    gap:8px;
  }

  .profile-activity__tab{
    justify-content:center;
    padding:0 10px;
    font-size:13px;
  }

  .profile-activity__tab i{
    font-size:13px;
  }

  .profile-activity__tab span{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .profile-activity__more-link a{
    min-height:50px;
    border-radius:16px;
  }

  .profile-settings-modal{
    display:flex;
    align-items:flex-end;
    padding:0;
  }

  .profile-settings-modal .auth-modal__panel{
    width:100%;
    max-height:92dvh;
    min-height:72vh;
    margin:auto 0 0;
    padding:18px 14px calc(18px + env(safe-area-inset-bottom));
    border-radius:20px 20px 0 0;
  }

  .profile-settings-modal.is-open .auth-modal__panel,
  .profile-cover-modal.is-open .auth-modal__panel{
    transform:translateY(0) scale(1);
  }

  .profile-settings{
    padding:0;
    border-radius:20px;
  }

  .profile-settings__card{
    padding:14px;
    border-radius:18px;
  }

  .profile-form-input,
  .profile-form-file,
  .profile-form-select-wrap select{
    min-height:48px;
    border-radius:14px;
  }

  .profile-save-btn{
    width:100%;
  }

  .profile-feed-card{
    padding:13px;
    border-radius:16px;
  }

  .profile-feed-card__top{
    align-items:flex-start;
  }

  .profile-feed-card__title{
    font-size:16px;
    line-height:1.24;
  }

  .profile-feed-card__meta{
    font-size:12px;
  }

  .profile-feed-card__date-wrap{
    gap:4px;
  }

  .addnews-page .subsite-card__body{
    padding:14px;
  }

  .addnews-head__title{
    font-size:22px;
  }

  .addnews-block__title{
    font-size:15px;
  }

  .addnews-control > input[type="text"],
  .addnews-control > input[type="url"],
  .addnews-control > input[type="email"],
  .addnews-control > input[type="password"],
  .addnews-control > select,
  .addnews-captcha input[type="text"]{
    min-height:50px;
    border-radius:15px;
  }

  .addnews-media-card__icon{
    width:38px;
    height:38px;
    border-radius:13px;
  }

  .addnews-tags__list{
    gap:6px;
  }

  .addnews-tags .button{
    min-height:30px;
    padding:0 10px;
    border-radius:10px;
    font-size:11px;
  }

  .addnews-captcha{
    padding:14px;
    border-radius:18px;
  }
}



/* =========================================
   COMMENTS â€” CLEAN FINAL
   comment-composer + base comment-card + story-comments
   ========================================= */

/* COMMENT COMPOSER */
.comment-composer{
  margin:0 0 16px;
}

.comment-composer__box{
  padding:14px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow-sm);
}

.comment-composer__guest{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:10px;
  margin-bottom:10px;
}

.comment-composer__field input,
.comment-composer__question input,
.comment-composer__captcha-field input{
  width:100%;
  min-height:46px;
  padding:0 14px;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:14px;
  font-size:14px;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.comment-composer__field input:focus,
.comment-composer__question input:focus,
.comment-composer__captcha-field input:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.comment-composer__editor{
  position:relative;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:20px;
  box-shadow:var(--shadow-xs);
  overflow:visible;
}

.comment-composer__editor-field{
  position:relative;
  min-width:0;
}

.comment-composer__editor-field > br{
  display:none;
}

.comment-composer__editor-field textarea,
.comment-composer__editor-field #comments,
.comment-composer__editor-field .wseditor,
.comment-composer__editor-field .bb-editor textarea{
  width:100%;
  height:100px;
  max-height:220px;
  padding:15px 16px 14px !important;
  background:transparent !important;
  color:var(--text) !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  resize:vertical;
  overflow-y:auto !important;
  overflow-x:hidden !important;
  font-size:15px;
  line-height:1.7;
  font-weight:400;
  letter-spacing:-.01em;
  scrollbar-width:thin;
  scrollbar-color:rgba(127,136,150,.38) transparent;
}

.comment-composer__editor-field textarea::placeholder,
.comment-composer__editor-field #comments::placeholder,
.comment-composer__editor-field .wseditor::placeholder,
.comment-composer__editor-field .bb-editor textarea::placeholder{
  color:var(--text-fade);
  opacity:1;
}

.comment-composer__editor-field textarea:hover,
.comment-composer__editor-field textarea:focus,
.comment-composer__editor-field #comments:hover,
.comment-composer__editor-field #comments:focus,
.comment-composer__editor-field .wseditor:hover,
.comment-composer__editor-field .wseditor:focus,
.comment-composer__editor-field .bb-editor textarea:hover,
.comment-composer__editor-field .bb-editor textarea:focus{
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

.comment-composer__editor-field .bbcodes,
.comment-composer__editor-field .editor-panel,
.comment-composer__editor-field .bb-pane{
  margin:0;
  padding:10px 12px 0;
  border:0;
  background:transparent;
}

.comment-composer__editor-field .bbcodes + textarea,
.comment-composer__editor-field .editor-panel + textarea,
.comment-composer__editor-field .bb-pane + textarea{
  padding-top:10px !important;
}

.comment-composer__editor-field textarea::-webkit-scrollbar,
.comment-composer__editor-field #comments::-webkit-scrollbar,
.comment-composer__editor-field .wseditor::-webkit-scrollbar,
.comment-composer__editor-field .bb-editor textarea::-webkit-scrollbar{
  width:8px;
}

.comment-composer__editor-field textarea::-webkit-scrollbar-thumb,
.comment-composer__editor-field #comments::-webkit-scrollbar-thumb,
.comment-composer__editor-field .wseditor::-webkit-scrollbar-thumb,
.comment-composer__editor-field .bb-editor textarea::-webkit-scrollbar-thumb{
  background:rgba(127,136,150,.38);
  border:2px solid transparent;
  border-radius:999px;
  background-clip:padding-box;
}

.comment-composer__editor-field textarea::-webkit-scrollbar-thumb:hover,
.comment-composer__editor-field #comments::-webkit-scrollbar-thumb:hover,
.comment-composer__editor-field .wseditor::-webkit-scrollbar-thumb:hover,
.comment-composer__editor-field .bb-editor textarea::-webkit-scrollbar-thumb:hover{
  background:rgba(127,136,150,.52);
  border:2px solid transparent;
  background-clip:padding-box;
}

.comment-composer__editor-field textarea::-webkit-scrollbar-track,
.comment-composer__editor-field #comments::-webkit-scrollbar-track,
.comment-composer__editor-field .wseditor::-webkit-scrollbar-track,
.comment-composer__editor-field .bb-editor textarea::-webkit-scrollbar-track{
  background:transparent;
}

.comment-composer__uploader{
  margin:0 12px 10px;
  padding:12px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-xs);
  transform-origin:bottom;
}

.comment-composer__uploader[style*="display:block"],
.comment-composer__uploader[style*="display: block"]{
  animation:commentComposerUploaderReveal .22s ease;
}

@keyframes commentComposerUploaderReveal{
  0%{
    opacity:0;
    transform:translateY(10px) scale(.98);
  }
  100%{
    opacity:1;
    transform:translateY(0) scale(1);
  }
}

.comment-composer__uploader .qq-uploader,
.comment-composer__uploader .qq-uploader-selector,
.comment-composer__uploader .file-box,
.comment-composer__uploader [id^="xfupload_"]{
  width:100%;
}

.comment-composer__uploader .file-box{
  margin-top:0 !important;
  padding:12px !important;
  background:var(--surface) !important;
  border:1px solid var(--border) !important;
  border-radius:14px !important;
}

.comment-composer__uploader .qq-upload-button,
.comment-composer__uploader .qq-upload-button-selector,
.comment-composer__uploader .btn,
.comment-composer__uploader button,
.comment-composer__uploader input[type="button"]{
  min-height:40px !important;
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:0 14px !important;
  background:var(--accent-main) !important;
  color:#fff !important;
  border:0 !important;
  border-radius:12px !important;
  box-shadow:none !important;
  font-size:13px !important;
  font-weight:700 !important;
}

.comment-composer__uploader .qq-upload-button:hover,
.comment-composer__uploader .qq-upload-button-selector:hover,
.comment-composer__uploader .btn:hover,
.comment-composer__uploader button:hover,
.comment-composer__uploader input[type="button"]:hover{
  background:var(--accent-main-hover) !important;
}

.comment-composer__question,
.comment-composer__recaptcha,
.comment-composer__captcha{
  margin:10px 12px 0;
}

.comment-composer__label{
  display:block;
  margin-bottom:8px;
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:600;
}

.comment-composer__captcha{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
}

.comment-composer__captcha-image{
  flex:0 0 auto;
}

.comment-composer__captcha-field{
  flex:1 1 220px;
  min-width:0;
}

.comment-composer__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px 12px;
  background:var(--surface);
  border-top:1px solid var(--border);
}

.comment-composer__footer-left{
  display:flex;
  align-items:center;
  gap:8px;
}

.comment-composer__icon-btn{
  width:38px;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:var(--text-soft);
  border:1px solid transparent;
  border-radius:12px;
  text-decoration:none;
  transition:background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.comment-composer__icon-btn:hover{
  background:var(--surface-2);
  color:var(--text);
  border-color:var(--border);
}

.comment-composer__icon-btn:active{
  transform:scale(.97);
}

.comment-composer__icon-btn i{
  font-size:16px;
  line-height:1;
}

.comment-composer__follow{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}

.comment-composer__follow input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.comment-composer__follow input:checked + .comment-composer__icon-btn--follow{
  background:var(--accent-main-soft);
  color:var(--accent-main);
  border-color:transparent;
}

.comment-composer__submit{
  min-height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:0 14px;
  background:var(--accent-main);
  color:#fff;
  border:0;
  border-radius:13px;
  box-shadow:0 8px 18px rgba(45,123,255,.18);
  cursor:pointer;
  font-size:13px;
  font-weight:700;
  line-height:1;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.comment-composer__submit:hover{
  background:var(--accent-main-hover);
  box-shadow:0 10px 20px rgba(45,123,255,.22);
}

.comment-composer__submit:active{
  transform:scale(.985);
  box-shadow:0 6px 14px rgba(45,123,255,.16);
}

.comment-composer__submit i{
  font-size:14px;
  line-height:1;
}

/* BASE COMMENT CARD */
.comment-card{
  position:relative;
  margin:0 0 14px;
}

.comment-card__inner{
  padding:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:none;
}

.comment-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.comment-card__main{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}

.comment-card__avatar-wrap{
  position:relative;
  flex:0 0 auto;
}

.comment-card__avatar{
  width:34px;
  height:34px;
  display:block;
  object-fit:cover;
  border-radius:50%;
}

.comment-card__status{
  position:absolute;
  right:-1px;
  bottom:-1px;
  width:11px;
  height:11px;
  border:2px solid var(--surface);
  border-radius:50%;
}

.comment-card__status--online{
  background:var(--success);
}

.comment-card__status--offline{
  background:var(--surface-3);
}

.comment-card__meta{
  min-width:0;
  flex:1 1 auto;
}

.comment-card__meta-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.comment-card__meta-subline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
}

.comment-card__author,
.comment-card__author a{
  color:var(--text);
  font-size:14px;
  line-height:1.15;
  font-weight:700;
}

.comment-card__author a:hover{
  color:var(--accent-main);
}

.comment-card__badge{
  min-height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 7px;
  background:var(--surface-2);
  color:var(--text-soft);
  border-radius:999px;
  font-size:10px;
  line-height:1;
  font-weight:700;
}

.comment-card__badge--author{
  background:var(--accent-main-soft);
  color:var(--accent-main);
}

.comment-card__time{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.2;
}

.comment-card__menu-btn{
  width:28px;
  height:28px;
  border-radius:10px;
}

.comment-card__content{
  min-width:0;
}

.comment-card__text{
  color:var(--text);
  font-size:13px;
  line-height:1.6;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.comment-card__text p{
  margin:0 0 .8em;
}

.comment-card__text p:last-child{
  margin-bottom:0;
}

.comment-card__text img,
.comment-card__images img{
  max-width:100%;
  height:auto;
  border-radius:14px;
}

.comment-card__images{
  margin-top:12px;
}

.comment-card__news-row{
  margin-top:4px;
}

.comment-card__news-link{
  color:var(--text-soft);
  font-size:13px;
  line-height:1.35;
}

.comment-card__news-link:hover{
  color:var(--accent-main);
}

.comment-card--compact{
  margin:0 0 12px;
}

.comment-card--compact .comment-card__content{
  padding-left:0;
}

/* STORY COMMENTS â€” FINAL */
.story-comments{
  --comment-thread-line:rgba(152,160,173,.52);
  margin-top:22px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.theme-dark .story-comments{
  --comment-thread-line:rgba(127,136,150,.42);
}

.story-comments__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:22px 24px 14px;
}

.story-comments__title{
  margin:0;
  color:var(--text);
  font-size:18px;
  line-height:1.2;
  font-weight:700;
  letter-spacing:-.02em;
}

.story-comments__body{
  padding:0 24px 20px;
}

/* composer inside story */
.story-comments .comment-composer{
  margin:0 0 14px;
}

.story-comments .comment-composer__box{
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}

.story-comments .comment-composer__guest{
  margin-bottom:12px;
}

.story-comments .comment-composer__field input,
.story-comments .comment-composer__question input,
.story-comments .comment-composer__captcha-field input{
  min-height:44px;
  border-radius:14px;
}

.story-comments .comment-composer__editor{
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:18px;
  box-shadow:none;
  overflow:hidden;
}

.story-comments .comment-composer__editor-field textarea,
.story-comments .comment-composer__editor-field #comments,
.story-comments .comment-composer__editor-field .wseditor,
.story-comments .comment-composer__editor-field .bb-editor textarea{
  height:110px !important;
  max-height:260px;
  padding:16px 16px 10px !important;
  background:transparent !important;
  font-size:15px;
  line-height:1.68;
  letter-spacing:-.01em;
  scrollbar-color:rgba(127,136,150,.36) transparent;
}

.story-comments .comment-composer__editor-field textarea::-webkit-scrollbar,
.story-comments .comment-composer__editor-field #comments::-webkit-scrollbar,
.story-comments .comment-composer__editor-field .wseditor::-webkit-scrollbar,
.story-comments .comment-composer__editor-field .bb-editor textarea::-webkit-scrollbar{
  width:8px;
}

.story-comments .comment-composer__editor-field textarea::-webkit-scrollbar-thumb,
.story-comments .comment-composer__editor-field #comments::-webkit-scrollbar-thumb,
.story-comments .comment-composer__editor-field .wseditor::-webkit-scrollbar-thumb,
.story-comments .comment-composer__editor-field .bb-editor textarea::-webkit-scrollbar-thumb{
  background:rgba(127,136,150,.36);
  border:2px solid transparent;
  border-radius:999px;
  background-clip:padding-box;
}

.story-comments .comment-composer__editor-field .bbcodes,
.story-comments .comment-composer__editor-field .editor-panel,
.story-comments .comment-composer__editor-field .bb-pane{
  margin:0;
  padding:10px 12px 0;
  background:transparent;
  border:0;
}

.story-comments .comment-composer__question,
.story-comments .comment-composer__recaptcha,
.story-comments .comment-composer__captcha{
  margin:10px 12px 0;
}

.story-comments .comment-composer__uploader{
  margin:0 12px 10px;
  padding:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:none;
}

.story-comments .comment-composer__footer{
  padding:6px 12px 12px;
  background:transparent;
  border-top:0;
}

.story-comments .comment-composer__footer-left{
  gap:4px;
}

.story-comments .comment-composer__icon-btn{
  width:34px;
  height:34px;
  background:transparent;
  border:0;
  border-radius:10px;
  color:var(--text-soft);
  box-shadow:none;
}

.story-comments .comment-composer__icon-btn:hover{
  background:var(--surface);
  color:var(--text);
  border-color:transparent;
}

.story-comments .comment-composer__submit{
  min-height:34px;
  padding:0 12px;
  border-radius:12px;
  box-shadow:none;
}

/* cards in story */
.story-comments .comment-card{
  position:relative;
  margin:0;
}

.story-comments .comment-card.comment-card--root{
  padding:0 !important;
  margin: 20px 0;
  border-top:0 !important;
}

.story-comments .comment-card.comment-card--root + .comment-card.comment-card--root{
  margin-top:22px !important;
}

.story-comments .comment-card__inner{
  padding:0;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
}

.story-comments .comment-card__header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:6px;
}

.story-comments .comment-card__main{
  display:flex;
  align-items:flex-start;
  gap:10px;
  min-width:0;
  flex:1 1 auto;
}

.story-comments .comment-card__avatar-wrap{
  position:relative;
  flex:0 0 auto;
  margin-top:1px;
}

.story-comments .comment-card__avatar{
  width:36px;
  height:36px;
  display:block;
  object-fit:cover;
  border-radius:50%;
}

.story-comments .comment-card__status{
  position:absolute;
  right:-1px;
  bottom:-1px;
  width:13px;
  height:13px;
  border:2px solid var(--surface);
  border-radius:50%;
}

.story-comments .comment-card__status--online{
  background:var(--success);
  box-shadow:0 0 0 3px rgba(32,177,90,.10);
}

.story-comments .comment-card__status--offline{
  background:var(--surface-3);
}

.story-comments .comment-card__meta{
  min-width:0;
  flex:1 1 auto;
}

.story-comments .comment-card__meta-line{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  min-height:20px;
}

.story-comments .comment-card__meta-subline{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  margin-top:2px;
  line-height:1.2;
}

.story-comments .comment-card__author,
.story-comments .comment-card__author a{
  color:var(--text);
  font-size:14px;
  line-height:1.15;
  font-weight:700;
}

.story-comments .comment-card__author a:hover{
  color:var(--accent-main);
}

.story-comments .comment-card__badge{
  min-height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 7px;
  background:var(--surface-2);
  color:var(--text-soft);
  border-radius:999px;
  font-size:10px;
  line-height:1;
  font-weight:700;
}

.story-comments .comment-card__badge--author{
  background:var(--accent-main-soft);
  color:var(--accent-main);
}

.story-comments .comment-card__time{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.2;
}

/* header actions: rating + menu */
.story-comments .comment-card__header-actions{
  display:flex;
  align-items:center;
  gap:6px;
  flex:0 0 auto;
  margin-top:0;
}

.story-comments .comment-card__header-actions .comment-card__rating{
  min-height:30px;
  margin:0;
  padding:2px;
}

.story-comments .comment-card__header-actions .feed-card__rate-btn,
.story-comments .comment-card__header-actions .feed-card__rate-score{
  height:26px;
}

.story-comments .comment-card__menu-wrap{
  display:flex;
  align-items:center;
}

.story-comments .comment-card__menu-btn{
  width:30px;
  height:30px;
  margin:0;
  border-radius:10px;
}

/* content */
.story-comments .comment-card__content,
.story-comments .comment-card__footer,
.story-comments .comment-card__footer-bottom,
.story-comments .comment-card__thread-row{
  padding-left:0 !important;
  border-top:0 !important;
  box-shadow:none !important;
}

.story-comments .comment-card__content{
  min-width:0;
}

.story-comments .comment-card__text{
  color:var(--text);
  font-size: 14px;
  line-height:1.68;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.story-comments .comment-card__text p{
  margin:0 0 .85em;
}

.story-comments .comment-card__text p:last-child{
  margin-bottom:0;
}

.story-comments .comment-card__text img,
.story-comments .comment-card__images img{
  border-radius:14px;
}

.story-comments .comment-card__images{
  margin-top:12px;
}

/* footer */
.story-comments .comment-card__footer{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:6px;
}

.story-comments .comment-card__footer-bottom{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:flex-start;
  flex-wrap:wrap;
  gap:12px;
  margin:0;
}

.story-comments .comment-card__thread-row{
  margin:0;
}

.story-comments .comment-card__rating{
  min-height:34px;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:3px;
  background:var(--surface-2);
  border:1px solid transparent;
  border-radius:11px;
  box-shadow:none;
}

.story-comments .comment-card__rating .feed-card__rate-btn,
.story-comments .comment-card__rating .feed-card__rate-score{
  min-width:26px;
  height:26px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  line-height:1;
}

.story-comments .comment-card__rating .feed-card__rate-btn{
  background:transparent;
  color:var(--text-soft);
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.story-comments .comment-card__rating .feed-card__rate-btn i{
  font-size:13px;
}

.story-comments .comment-card__rating .feed-card__rate-btn--up:hover{
  color:var(--success);
  background:var(--success-soft);
}

.story-comments .comment-card__rating .feed-card__rate-btn--down:hover{
  color:var(--danger);
  background:var(--danger-soft);
}

.story-comments .comment-card__rating .feed-card__rate-score{
  min-width:32px;
  padding:0 5px;
  color:var(--text-soft);
  font-size:12px;
  font-weight:600;
}

.story-comments .comment-card__rating .feed-card__rate-score.is-positive{
  color:var(--success);
}

.story-comments .comment-card__rating .feed-card__rate-score.is-negative{
  color:var(--danger);
}

/* thread toggle */
.story-comments .comment-card__thread-toggle{
  min-height:auto;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:0;
  margin:0;
  background:transparent !important;
  color:#6faa42;
  border:0;
  box-shadow:none;
  cursor:pointer;
  font-size:14px;
  line-height:1.3;
}

.story-comments .comment-card__thread-toggle:hover{
  color:#5f9d39;
  background:transparent !important;
}

.story-comments .comment-card__thread-toggle:active{
  transform:none;
}

.story-comments .comment-card__thread-toggle-icon{
  width:20px;
  height:20px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:rgba(111,170,66,.14);
  color:#6faa42;
  border-radius:6px;
  transition:background .18s ease, color .18s ease;
}

.story-comments .comment-card__thread-toggle:hover .comment-card__thread-toggle-icon{
  background:rgba(111,170,66,.20);
}

.story-comments .comment-card__thread-toggle[aria-expanded="true"]{
  color:var(--text-soft);
}

.story-comments .comment-card__thread-toggle[aria-expanded="true"] .comment-card__thread-toggle-icon{
  background:var(--surface-2);
  color:var(--text-soft);
}

.story-comments .comment-card__thread-toggle-icon i{
  font-size:11px;
  line-height:1;
}

.story-comments .comment-card__thread-toggle-label{
  display:inline-flex;
  align-items:center;
  gap:0;
  margin:0;
  padding:0;
  color:inherit;
  font-size:inherit;
  line-height:inherit;
  font-weight:inherit;
}

/* reply */
.story-comments .comment-card__reply{
  min-height:auto;
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:0;
  margin:0;
  background:transparent !important;
  color:var(--accent-main);
  border:0;
  cursor:pointer;
  font-size:14px;
  line-height:1.3;
}

.story-comments .comment-card__reply:hover{
  color:var(--accent-main-hover);
  background:transparent !important;
}

.story-comments .comment-card__reply::before{
  display:none !important;
  content:none !important;
}

.story-comments .comment-card__reply i{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  color:inherit;
  opacity:.95;
  font-size:13px;
  line-height:1;
}

/* single solid vertical line for child comments */
.story-comments .comment-card--child{
  position:relative;
  margin-left:18px !important;
  margin-top: 0 !important;
  margin-bottom:0 !important;
  padding-left:14px !important;
  padding-bottom: 10px;
  background-image:linear-gradient(var(--comment-thread-line), var(--comment-thread-line)) !important;
  background-repeat:no-repeat !important;
  background-size:1px 100% !important;
  background-position:left top !important;
}

.story-comments .comment-card--root + .comment-card--child{
  margin-top:10px !important;
}

.story-comments .comment-card--child + .comment-card--child{
  padding-top:10px !important;
}

.story-comments .comment-card--child + .comment-card--root{
  margin-top:20px !important;
}

.story-comments .comment-card--child::before,
.story-comments .comment-card--child::after,
.story-comments .comment-card__thread-row::before,
.story-comments .comment-card__thread-row::after,
.story-comments .comment-card__footer-bottom::before,
.story-comments .comment-card__footer-bottom::after{
  display:none !important;
  content:none !important;
  background:none !important;
}

.story-comments .comment-card--compact{
  margin:0 0 12px;
}

.story-comments .comment-card--compact .comment-card__inner{
  padding:12px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:none;
}

/* MOBILE */
@media screen and (max-width:768px){
  .comment-composer__guest{
    grid-template-columns:1fr;
  }

  .comment-composer__box{
    padding:12px;
    border-radius:20px;
  }

  .comment-composer__editor{
    border-radius:16px;
  }

  .comment-composer__editor-field textarea,
  .comment-composer__editor-field #comments,
  .comment-composer__editor-field .wseditor,
  .comment-composer__editor-field .bb-editor textarea{
    height:100px;
    max-height:220px;
    padding:14px 14px 13px !important;
    font-size:14px;
    line-height:1.65;
  }

  .comment-composer__editor-field .bbcodes,
  .comment-composer__editor-field .editor-panel,
  .comment-composer__editor-field .bb-pane{
    padding:9px 10px 0;
  }

  .story-comments{
    border-radius:20px;
  }

  .story-comments__head{
    padding:18px 16px 12px;
  }

  .story-comments__body{
    padding:0 16px 16px;
  }

  .story-comments .comment-card.comment-card--root + .comment-card.comment-card--root{
    margin-top:18px !important;
  }
}

@media screen and (max-width:640px){
  .comment-composer__footer{
    padding:10px;
  }

  .comment-composer__icon-btn{
    width:36px;
    height:36px;
    border-radius:11px;
  }

  .comment-composer__submit{
    width:38px;
    min-width:38px;
    padding:0;
    border-radius:12px;
  }

  .comment-composer__submit span{
    display:none;
  }

  .comment-composer__captcha{
    align-items:flex-start;
  }

  .comment-composer__captcha-field{
    width:100%;
    flex:1 1 100%;
  }

  .comment-composer__uploader{
    margin:0 10px 10px;
    padding:10px;
    border-radius:14px;
  }

  .story-comments__head{
    padding:16px 14px 10px;
  }

  .story-comments__title{
    font-size:17px;
  }

  .story-comments__body{
    padding:0 14px 14px;
  }

  .story-comments .comment-composer__guest{
    grid-template-columns:1fr;
  }

  .story-comments .comment-composer__editor-field textarea,
  .story-comments .comment-composer__editor-field #comments,
  .story-comments .comment-composer__editor-field .wseditor,
  .story-comments .comment-composer__editor-field .bb-editor textarea{
    height:102px !important;
  }

  .story-comments .comment-composer__footer{
    padding:6px 10px 10px;
  }

  .story-comments .comment-composer__icon-btn{
    width:32px;
    height:32px;
  }

  .story-comments .comment-composer__submit{
    width:36px;
    min-width:36px;
    padding:0;
  }

  .story-comments .comment-composer__submit span{
    display:none;
  }

  .story-comments .comment-composer__uploader{
    margin:0 10px 10px;
    padding:10px;
    border-radius:14px;
  }

  .story-comments .comment-card__header{
    gap:8px;
    margin-bottom:5px;
  }

  .story-comments .comment-card__main{
    gap:8px;
  }

  .story-comments .comment-card__avatar{
    width:34px;
    height:34px;
  }

  .story-comments .comment-card__status{
    width:12px;
    height:12px;
  }

  .story-comments .comment-card__author,
  .story-comments .comment-card__author a{
    font-size:13px;
  }

  .story-comments .comment-card__time{
    font-size:11px;
  }

  .story-comments .comment-card__text{
    font-size:13px;
    line-height:1.64;
  }

  .story-comments .comment-card__header-actions{
    gap:5px;
  }

  .story-comments .comment-card__header-actions .comment-card__rating{
    min-height:28px;
  }

  .story-comments .comment-card__menu-btn{
    width:28px;
    height:28px;
  }

  .story-comments .comment-card__thread-toggle,
  .story-comments .comment-card__reply{
    font-size:13px;
  }

  .story-comments .comment-card__thread-toggle-icon{
    width:18px;
    height:18px;
    border-radius:5px;
  }

  .story-comments .comment-card__thread-toggle-icon i,
  .story-comments .comment-card__reply i{
    font-size:12px;
  }

  .story-comments .comment-card--child{
    margin-left:14px !important;
    padding-left:11px !important;
  }

  .story-comments .comment-card--root + .comment-card--child{
    margin-top:9px !important;
  }

  .story-comments .comment-card--child + .comment-card--child{
    padding-top:9px !important;
  }

  .story-comments .comment-card--child + .comment-card--root{
    margin-top:16px !important;
  }
}
/* =========================================
   FINAL TAIL â€” SAFE NORMALIZE
   Ñ‡Ð°ÑÑ‚ÑŒ 5 / ÑÑ‚Ð°Ð²Ð¸Ñ‚ÑŒ Ð² ÑÐ°Ð¼Ñ‹Ð¹ ÐºÐ¾Ð½ÐµÑ†
   ========================================= */

/* generic focus-visible */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
  outline:none;
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

/* smoother image rendering */
img{
  image-rendering:auto;
}

/* safer transitions for clickable ui */
.feed-card__action,
.profile-feed-card__action,
.feed-card__menu-btn,
.comment-card__menu-btn,
.comment-composer__icon-btn,
.comment-composer__submit,
.button,
.site-header__icon-btn{
  will-change:auto;
}

/* avoid accidental overflow in cards and editors */
.feed-card,
.profile-feed-card,
.subsite-card,
.addnews-block,
.comment-composer__box,
.story-comments,
.col_right_bg,
.col_right_bg_comm{
  min-width:0;
}

.feed-card__title,
.profile-feed-card__title,
.subsite-card__name-title,
.addnews-head__title,
.addnews-block__title,
.story-comments__title{
  overflow-wrap:anywhere;
}

/* inputs normalize */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
select,
textarea{
  appearance:none;
  -webkit-appearance:none;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="url"],
textarea,
select{
  color:var(--text);
}

/* placeholder normalize */
input::placeholder,
textarea::placeholder{
  color:var(--text-fade);
  opacity:1;
}

/* disabled normalize */
button:disabled,
input:disabled,
select:disabled,
textarea:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* menu / popup layers */
.site-header{
  isolation:isolate;
}

.feed-card__menu-dropdown,
.share2026,
.site-profile-dropdown,
.auth-modal,
.search-overlay,
.card-menu-backdrop,
.ui-widget-overlay,
.ui-dialog{
  backface-visibility:hidden;
  -webkit-backface-visibility:hidden;
}

/* media safety */
.feed-card__media,
.profile-feed-card__media,
.video-player,
.profile-cover-preview,
.subsite-cover{
  transform:translateZ(0);
}

/* prevent layout jump for long words */
.feed-card__excerpt,
.profile-feed-card__excerpt,
.top_right_comment_text,
.top_right_comment_title,
.subsite-card__description,
.full_text,
.comment-card__text{
  word-break:break-word;
  overflow-wrap:anywhere;
}

/* tables / embeds safety */
.full_text table,
.full_text iframe,
.full_text video,
.full_text embed,
.full_text object,
.full_text pre{
  max-width:100%;
}

/* forms button normalize */
button{
  cursor:pointer;
}

button,
input,
textarea,
select{
  border-radius:0;
}

button,
input[type="button"],
input[type="submit"]{
  appearance:none;
  -webkit-appearance:none;
}

/* avoid extra tiny gaps in inline icons */
i{
  line-height:1;
}

/* header profile image crisp */
.site-header__profile img,
.profile-menu__avatar,
.feed-card__author-avatar,
.profile-feed-card__meta-icon,
.subsite-avatar__image,
.subsite-cover__image,
.top_right_photo img,
.top_right_photo_comm img,
.comment-card__avatar{
  user-select:none;
  -webkit-user-drag:none;
}

/* comment thread hidden helper */
.is-thread-hidden{
  display:none !important;
}

/* compact lastcomments helper */
.comment-card--compact .comment-card__text{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
  overflow:hidden;
}

/* safe backdrop blur fallback */
@supports not ((backdrop-filter:blur(10px)) or (-webkit-backdrop-filter:blur(10px))){
  .site-header{
    background:var(--header);
  }

  .video-player__center-btn,
  .subsite-cover__edit-btn{
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
}

/* reduced motion */
@media (prefers-reduced-motion:reduce){
  *,
  *::before,
  *::after{
    animation-duration:.01ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.01ms !important;
    scroll-behavior:auto !important;
  }
}

/* ===== desktop-medium polish ===== */
@media screen and (max-width:1240px){
  .site-header__inner{
    max-width:1000px;
  }

  .cols{
    gap:12px;
  }
}

/* ===== tablet ===== */
@media screen and (max-width:925px){
  .site-header__logo-image{
    max-width:180px;
  }

  .site-profile-dropdown{
    right:0;
  }

  .feed-card__topline,
  .profile-feed-card__top{
    align-items:flex-start;
  }

  .subsite-header-controls__inner{
    justify-content:flex-end;
  }

  .profile-settings-modal .auth-modal__panel,
  .profile-cover-modal .auth-modal__panel{
    width:min(100vw - 24px, 980px);
  }
}

/* ===== mobile ===== */
@media screen and (max-width:768px){
  .site-header__inner{
    gap:8px;
  }

  .site-header__left,
  .site-header__right{
    gap:6px;
  }

  .search-overlay__top{
    gap:8px;
  }

  .search-overlay__recent{
    gap:7px;
  }

  .feed-card__badges,
  .feed-card__authorline{
    gap:6px;
  }

  .feed-card__meta-right{
    gap:6px;
  }

  .feed-card__actions-left,
  .feed-card__actions-right,
  .profile-feed-card__stats,
  .profile-feed-card__actions{
    min-width:0;
  }

  .profile-settings-modal .auth-modal__panel,
  .profile-cover-modal .auth-modal__panel{
    width:100%;
  }

  .addnews-head__text,
  .auth-modal__desc,
  .subsite-card__description,
  .profile-empty__text{
    font-size:14px;
  }

  .full_text{
    overflow:hidden;
  }

  .full_text table{
    border-radius:18px;
  }

  .full_text pre{
    -webkit-overflow-scrolling:touch;
  }
}

/* ===== small mobile ===== */
@media screen and (max-width:640px){
  .site-header__logo-image{
    max-width:150px;
  }

  .search-overlay__recent a{
    min-height:32px;
    padding:0 10px;
    font-size:12px;
  }

  .auth-modal__panel,
  .profile-settings-modal .auth-modal__panel,
  .profile-cover-modal .auth-modal__panel{
    box-shadow:0 -14px 40px rgba(0,0,0,.18);
  }

  .feed-card__badge,
  .profile-feed-card__meta{
    min-height:30px;
  }

  .feed-card__menu-dropdown,
  .share2026{
    padding-left:14px;
    padding-right:14px;
  }

  .share2026__grid,
  .share2026__grid--wide{
    gap:8px;
  }

  .share2026-item__icon{
    width:44px;
    height:44px;
    border-radius:14px;
  }

  .share2026-item__label{
    font-size:11px;
  }

  .subsite-card__inline-meta{
    gap:6px;
  }

  .button{
    font-size:13px;
  }

  .addnews-block__body,
  .col_right_bg,
  .col_right_bg_comm{
    padding-left:14px;
    padding-right:14px;
  }

  .full_text code{
    font-size:.88em;
  }

  .full_text figcaption{
    font-size:13px;
  }
}

/* ===== dark theme tiny fixes ===== */
.theme-dark .search-overlay__recent a:hover{
  background:var(--accent-main-soft);
}

.theme-dark .feed-card__media::after,
.theme-dark .profile-feed-card__media::after{
  background:linear-gradient(to bottom, rgba(0,0,0,.08), rgba(0,0,0,.16));
}

.theme-dark .comment-composer__editor,
.theme-dark .story-comments .comment-composer__editor{
  background:var(--surface);
}

.theme-dark .comment-composer__uploader{
  background:var(--surface-2);
}

.theme-dark .story-comments .comment-composer__uploader{
  background:var(--surface-2);
}

/* final clearfix for legacy floated content */
.full_text::after,
.subsite-card__description::after{
  content:"";
  display:block;
  clear:both;
}


/* =========================================
   DLE PUSH â€” 4HE full replace
   ========================================= */

.DLEPush{
  position:fixed;
  top:18px;
  right:18px;
  z-index:2001;
  width:min(400px, calc(100vw - 24px));
  display:grid;
  gap:10px;
  pointer-events:none;
}

.DLEPush > *{
  pointer-events:auto;
}

@keyframes DLEPush-show{
  0%{
    opacity:0;
    transform:translate3d(16px, -8px, 0) scale(.97);
  }
  100%{
    opacity:1;
    transform:translate3d(0, 0, 0) scale(1);
  }
}

.DLEPush-notification.wrapper{
  --push-title:#0f172a;
  --push-text:#334155;
  --push-icon:#2d7bff;
  --push-close:#64748b;

  position:relative;
  display:grid;
  grid-template-columns:24px minmax(0, 1fr);
  align-items:center;
  gap:0 12px;
  width:100%;
  margin:0;
  padding:13px 14px 13px 12px;

  color:var(--push-text);
  background:rgba(255,255,255,.96);
  border:1px solid rgba(15,23,42,.06);
  border-radius:18px;
  box-shadow:0 14px 34px rgba(16,24,40,.16);

  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);

  animation:DLEPush-show .22s cubic-bezier(.22,1,.36,1);
  overflow:hidden;
}

.theme-dark .DLEPush-notification.wrapper{
  --push-title:#f8fafc;
  --push-text:#e2e8f0;
  --push-icon:#7ab2ff;
  --push-close:#9fb0c3;

  background:rgba(24,28,35,.96);
  border:1px solid rgba(255,255,255,.07);
  box-shadow:0 16px 36px rgba(0,0,0,.34);
}

/* variants */
.DLEPush-notification.wrapper.push-success{
  --push-icon:#20b15a;
  background:rgba(236,250,242,.97);
}

.DLEPush-notification.wrapper.push-warning{
  --push-icon:#ff8a1f;
  background:rgba(255,245,234,.97);
}

.DLEPush-notification.wrapper.push-error{
  --push-icon:#ef4444;
  background:rgba(255,239,237,.97);
}

.theme-dark .DLEPush-notification.wrapper.push-success{
  background:rgba(20,54,36,.96);
}

.theme-dark .DLEPush-notification.wrapper.push-warning{
  background:rgba(66,42,20,.96);
}

.theme-dark .DLEPush-notification.wrapper.push-error{
  background:rgba(70,28,28,.96);
}

/* icon */
.DLEPush-notification .DLEPush-icon{
  grid-column:1;
  grid-row:1 / span 2;
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:transparent;
  color:var(--push-icon);
}

.DLEPush-notification .DLEPush-icon svg{
  width:17px;
  height:17px;
  scale:1;
}

/* header */
.DLEPush-notification .DLEPush-header{
  grid-column:2;
  grid-row:1;
  margin:0 34px 3px 0;
  color:var(--push-title) !important;
  font-size:14px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:-.01em;
}

.DLEPush-notification .DLEPush-header:empty{
  display:none;
}

.DLEPush-notification .DLEPush-header,
.DLEPush-notification .DLEPush-header *{
  color:var(--push-title) !important;
  opacity:1 !important;
  text-shadow:none !important;
}

/* message */
.DLEPush-notification .DLEPush-message{
  grid-column:2;
  grid-row:2;
  margin:0 8px 0 0;
  color:var(--push-text) !important;
  font-size:13px;
  line-height:1.55;
  word-break:break-word;
  overflow-wrap:anywhere;
  opacity:1 !important;
  text-shadow:none !important;
}

.DLEPush-notification .DLEPush-message,
.DLEPush-notification .DLEPush-message *,
.DLEPush-notification .DLEPush-message p,
.DLEPush-notification .DLEPush-message div,
.DLEPush-notification .DLEPush-message span,
.DLEPush-notification .DLEPush-message li,
.DLEPush-notification .DLEPush-message ul,
.DLEPush-notification .DLEPush-message ol{
  color:var(--push-text) !important;
  opacity:1 !important;
  text-shadow:none !important;
}

.DLEPush-notification .DLEPush-message li,
.DLEPush-notification .DLEPush-message ul,
.DLEPush-notification .DLEPush-message ol{
  list-style:none;
  padding-left:0;
  margin:0;
}

.DLEPush-notification .DLEPush-message a{
  color:var(--push-title) !important;
  text-decoration:underline;
  text-underline-offset:2px;
}

/* close */
.DLEPush-notification .DLEPush-close{
  position:absolute;
  top:7px;
  right:7px;
  width:28px;
  height:28px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--push-close) !important;
  font-size:17px;
  line-height:1;
  cursor:pointer;
  opacity:1;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.DLEPush-notification .DLEPush-close:hover{
  background:rgba(15,23,42,.06);
  color:var(--push-title) !important;
}

.theme-dark .DLEPush-notification .DLEPush-close:hover{
  background:rgba(255,255,255,.06);
}

.DLEPush-notification .DLEPush-close:active{
  transform:scale(.96);
}

input[type="text"].comments_author_field{
  width:100%;
  margin-bottom:10px;
}

@media screen and (max-width:640px){
  .DLEPush{
    top:auto;
    right:12px;
    left:12px;
    bottom:12px;
    width:auto;
  }

  @keyframes DLEPush-show{
    0%{
      opacity:0;
      transform:translate3d(0, 10px, 0) scale(.98);
    }
    100%{
      opacity:1;
      transform:translate3d(0, 0, 0) scale(1);
    }
  }

  .DLEPush-notification.wrapper{
    grid-template-columns:22px minmax(0, 1fr);
    padding:11px 12px 11px 11px;
    border-radius:16px;
  }

  .DLEPush-notification .DLEPush-icon{
    width:22px;
    height:22px;
  }

  .DLEPush-notification .DLEPush-icon svg{
    width:16px;
    height:16px;
  }

  .DLEPush-notification .DLEPush-header{
    font-size:13px;
  }

  .DLEPush-notification .DLEPush-message{
    font-size:12px;
    line-height:1.5;
  }
}

.feedback-page{
  display:grid;
  gap:18px;
  margin-bottom:18px;
}

.feedback-hero{
  position:relative;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:28px;
  background:
    radial-gradient(circle at top left, rgba(45,123,255,.14), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(45,123,255,.08), transparent 24%),
    linear-gradient(180deg, var(--surface), var(--surface));
  box-shadow:var(--shadow-sm);
}

.feedback-hero__bg{
  position:absolute;
  inset:0;
  pointer-events:none;
  background:
    linear-gradient(135deg, rgba(255,255,255,.04), rgba(255,255,255,0));
}

.feedback-hero__content{
  position:relative;
  z-index:1;
  padding:28px;
  display:grid;
  gap:14px;
}

.feedback-hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  width:max-content;
  padding:0 12px;
  border-radius:999px;
  background:var(--accent-main-soft);
  color:var(--accent-main);
  font-size:12px;
  font-weight:700;
  line-height:1;
}

.feedback-hero__badge i{
  font-size:13px;
  line-height:1;
}

.feedback-hero__title{
  margin:0;
  color:var(--text);
  font-size:34px;
  line-height:1.02;
  letter-spacing:-.04em;
  font-weight:800;
  max-width:700px;
}

.feedback-hero__text{
  max-width:760px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.72;
}

.feedback-hero__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  padding-top:4px;
}

.feedback-hero__action{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 14px;
  border-radius:14px;
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  line-height:1;
  transition:background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.feedback-hero__action:active{
  transform:scale(.985);
}

.feedback-hero__action--telegram{
  background:#27a7e7;
  color:#fff;
  border:1px solid transparent;
}

.feedback-hero__action--telegram:hover{
  background:#1f9adb;
  color:#fff;
}

.feedback-hero__action--mail{
  background:var(--surface-2);
  border:1px solid var(--border);
  color:var(--text);
}

.feedback-hero__action--mail:hover{
  background:var(--surface-3);
  color:var(--text);
}

.feedback-hero__action i{
  font-size:15px;
  line-height:1;
}

.feedback-card{
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.feedback-card__head{
  padding:22px 22px 0;
  display:grid;
  gap:8px;
}

.feedback-card__title{
  margin:0;
  color:var(--text);
  font-size:22px;
  line-height:1.08;
  letter-spacing:-.03em;
  font-weight:800;
}

.feedback-card__desc{
  color:var(--text-soft);
  font-size:14px;
  line-height:1.65;
}

.feedback-form{
  padding:22px;
  display:grid;
  gap:16px;
}

.feedback-form__row{
  display:grid;
  gap:14px;
}

.feedback-form__row--2{
  grid-template-columns:repeat(2, minmax(0, 1fr));
}

.feedback-form__field{
  display:grid;
  gap:8px;
  min-width:0;
}

.feedback-form__label{
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:700;
}

.feedback-form__input,
.feedback-form__textarea,
.feedback-form__select select{
  width:100%;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.feedback-form__input,
.feedback-form__select select{
  min-height:50px;
  padding:0 16px;
  border-radius:16px;
  font-size:15px;
}

.feedback-form__textarea{
  min-height:180px;
  padding:16px 18px;
  border-radius:20px;
  resize:vertical;
  font-size:15px;
  line-height:1.7;
}

.feedback-form__input:focus,
.feedback-form__textarea:focus,
.feedback-form__select select:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.feedback-form__select{
  position:relative;
}

.feedback-form__select select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:46px;
  cursor:pointer;
}

.feedback-form__select::after{
  content:"";
  position:absolute;
  top:50%;
  right:18px;
  width:10px;
  height:10px;
  margin-top:-7px;
  border-right:2px solid var(--text-soft);
  border-bottom:2px solid var(--text-soft);
  transform:rotate(45deg);
  pointer-events:none;
}

.feedback-form__upload{
  display:grid;
  gap:8px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:18px;
  background:var(--surface-2);
}

.feedback-form__upload input[type="file"]{
  width:100%;
  color:var(--text);
}

.feedback-form__upload-note{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.55;
}

.feedback-form__captcha{
  display:grid;
  grid-template-columns:auto minmax(0, 1fr);
  gap:12px;
  align-items:center;
}

.feedback-form__captcha-image{
  flex:0 0 auto;
}

.feedback-form__captcha-field{
  min-width:0;
}

.feedback-form__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding-top:4px;
  flex-wrap:wrap;
}

.feedback-form__hint{
  display:flex;
  align-items:flex-start;
  gap:10px;
  flex:1 1 320px;
  min-width:0;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.6;
}

.feedback-form__hint i{
  margin-top:2px;
  color:var(--accent-main);
  font-size:14px;
  line-height:1;
  flex:0 0 auto;
}

.feedback-form__submit{
  min-height:46px;
  padding:0 18px;
  border:0;
  border-radius:16px;
  background:var(--accent-main);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  line-height:1;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow:0 12px 24px rgba(45,123,255,.18);
}

.feedback-form__submit:hover{
  background:var(--accent-main-hover);
}

.feedback-form__submit:active{
  transform:scale(.985);
}

.feedback-form__submit i{
  font-size:14px;
  line-height:1;
}

.theme-dark .feedback-hero{
  background:
    radial-gradient(circle at top left, rgba(45,123,255,.16), transparent 32%),
    radial-gradient(circle at 85% 20%, rgba(45,123,255,.08), transparent 24%),
    linear-gradient(180deg, var(--surface), var(--surface));
}

.theme-dark .feedback-card,
.theme-dark .feedback-hero{
  box-shadow:0 18px 42px rgba(0,0,0,.24);
}

@media screen and (max-width:768px){
  .feedback-page{
    gap:14px;
    margin-bottom:14px;
  }

  .feedback-hero{
    border-radius:22px;
  }

  .feedback-hero__content{
    padding:22px 18px;
    gap:12px;
  }

  .feedback-hero__title{
    font-size:28px;
    line-height:1.04;
  }

  .feedback-hero__text{
    font-size:14px;
    line-height:1.65;
  }

  .feedback-card{
    border-radius:22px;
  }

  .feedback-card__head{
    padding:18px 18px 0;
  }

  .feedback-card__title{
    font-size:20px;
  }

  .feedback-form{
    padding:18px;
    gap:14px;
  }

  .feedback-form__row--2{
    grid-template-columns:1fr;
  }

  .feedback-form__captcha{
    grid-template-columns:1fr;
    align-items:flex-start;
  }

  .feedback-form__footer{
    align-items:stretch;
    flex-direction:column;
  }

  .feedback-form__submit{
    width:100%;
  }
}

@media screen and (max-width:640px){
  .feedback-hero{
    border-radius:20px;
  }

  .feedback-hero__content{
    padding:18px 14px;
  }

  .feedback-hero__title{
    font-size:24px;
  }

  .feedback-hero__badge{
    min-height:30px;
    padding:0 11px;
    font-size:11px;
  }

  .feedback-hero__actions{
    gap:8px;
  }

  .feedback-hero__action{
    width:100%;
    justify-content:center;
    min-height:40px;
    border-radius:13px;
    font-size:13px;
  }

  .feedback-card{
    border-radius:20px;
  }

  .feedback-card__head{
    padding:16px 14px 0;
  }

  .feedback-card__title{
    font-size:18px;
  }

  .feedback-card__desc{
    font-size:13px;
  }

  .feedback-form{
    padding:14px;
  }

  .feedback-form__input,
  .feedback-form__select select{
    min-height:48px;
    border-radius:15px;
  }

  .feedback-form__textarea{
    min-height:160px;
    border-radius:18px;
    padding:14px 16px;
    font-size:14px;
  }

  .feedback-form__upload{
    padding:12px;
    border-radius:16px;
  }

  .feedback-form__submit{
    min-height:44px;
    border-radius:15px;
    font-size:13px;
  }
}

.feedback-page{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}

.feedback-hero{
  position:relative;
  overflow:hidden;
  border:1px solid var(--border);
  border-radius:28px;
  background:
    radial-gradient(circle at 12% 18%, rgba(45,123,255,.16), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(155,234,60,.14), transparent 24%),
    radial-gradient(circle at 68% 78%, rgba(155,234,60,.08), transparent 22%),
    linear-gradient(180deg, var(--surface), var(--surface));
  box-shadow:var(--shadow-sm);
}

.theme-dark .feedback-hero{
  background:
    radial-gradient(circle at 12% 18%, rgba(45,123,255,.18), transparent 30%),
    radial-gradient(circle at 84% 22%, rgba(155,234,60,.10), transparent 24%),
    radial-gradient(circle at 68% 78%, rgba(155,234,60,.06), transparent 22%),
    linear-gradient(180deg, var(--surface), var(--surface));
}

.feedback-hero__inner{
  padding:26px 26px 24px;
  display:grid;
  gap:14px;
}

.feedback-hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  width:max-content;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent-main-soft), var(--accent-hot-soft));
  color:var(--text);
  font-size:12px;
  font-weight:700;
  line-height:1;
  border:1px solid var(--border);
}

.feedback-hero__badge i{
  font-size:13px;
  line-height:1;
  color:#72b63b;
}

.feedback-hero__title{
  margin:0;
  color:var(--text);
  font-size:34px;
  line-height:1.04;
  letter-spacing:-.04em;
  font-weight:800;
}

.feedback-hero__text{
  max-width:780px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.72;
}

.feedback-hero__contacts{
  display:flex;
  flex-direction:column;
  gap:10px;
  max-width:560px;
}

.feedback-contact{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
  padding:14px 16px;
  border:1px solid var(--border);
  border-radius:18px;
  background:rgba(255,255,255,.46);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  text-decoration:none;
  transition:transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.theme-dark .feedback-contact{
  background:rgba(255,255,255,.03);
}

.feedback-contact:hover{
  transform:translateY(-1px);
  border-color:var(--border-strong);
  box-shadow:var(--shadow-xs);
  color:inherit;
}

.feedback-contact__icon{
  width:42px;
  height:42px;
  border-radius:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  background:var(--surface);
  border:1px solid var(--border);
}

.feedback-contact__icon i{
  font-size:18px;
  line-height:1;
}

.feedback-contact--telegram .feedback-contact__icon{
  color:#2aabee;
}

.feedback-contact--mail .feedback-contact__icon{
  color:var(--accent-main);
}

.feedback-contact__body{
  min-width:0;
  display:grid;
  gap:2px;
}

.feedback-contact__label{
  color:var(--text-soft);
  font-size:12px;
  line-height:1.25;
  font-weight:600;
}

.feedback-contact__value{
  color:var(--text);
  font-size:15px;
  line-height:1.35;
  font-weight:700;
  word-break:break-word;
}

.feedback-card{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.06), transparent 26%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.08), transparent 24%),
    var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.theme-dark .feedback-card{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.08), transparent 26%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.06), transparent 24%),
    var(--surface);
}

.feedback-card__head{
  padding:22px 22px 0;
  display:grid;
  gap:8px;
}

.feedback-card__title{
  position:relative;
  margin:0;
  padding-left:16px;
  color:var(--text);
  font-size:21px;
  line-height:1.16;
  font-weight:700;
  letter-spacing:-.02em;
}

.feedback-card__title::before{
  content:"";
  position:absolute;
  left:0;
  top:50%;
  transform:translateY(-50%);
  width:8px;
  height:8px;
  border-radius:50%;
  background:var(--accent-hot);
  box-shadow:0 0 0 6px rgba(155,234,60,.10);
}

.feedback-card__text{
  max-width:760px;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.68;
}

.feedback-card__body{
  padding:22px;
}

.feedback-form{
  display:grid;
  gap:16px;
}

.feedback-form__group{
  display:grid;
  gap:8px;
}

.feedback-form__label{
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:700;
}

.feedback-form__input,
.feedback-form__textarea,
.feedback-form__select select{
  width:100%;
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.feedback-form__input,
.feedback-form__select select{
  min-height:50px;
  padding:0 16px;
  border-radius:16px;
  font-size:15px;
}

.feedback-form__textarea{
  min-height:220px;
  padding:16px 18px;
  border-radius:20px;
  font-size:15px;
  line-height:1.7;
  resize:vertical;
}

.feedback-form__input::placeholder,
.feedback-form__textarea::placeholder{
  color:var(--text-fade);
  opacity:1;
}

.feedback-form__input:focus,
.feedback-form__textarea:focus,
.feedback-form__select select:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:
    0 0 0 3px rgba(45,123,255,.12),
    0 0 0 6px rgba(155,234,60,.06);
}

.feedback-form__select{
  position:relative;
}

.feedback-form__select select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:46px;
  cursor:pointer;
}

.feedback-form__select::after{
  content:"";
  position:absolute;
  top:50%;
  right:18px;
  width:10px;
  height:10px;
  margin-top:-7px;
  border-right:2px solid var(--text-soft);
  border-bottom:2px solid var(--text-soft);
  transform:rotate(45deg);
  pointer-events:none;
}

.feedback-form__upload{
  display:grid;
  gap:8px;
  padding:14px;
  border:1px solid var(--border);
  border-radius:18px;
  background:
    linear-gradient(180deg, rgba(155,234,60,.06), rgba(155,234,60,.03)),
    var(--surface-2);
}

.feedback-form__upload input[type="file"]{
  width:100%;
  color:var(--text);
  font-size:14px;
}

.feedback-form__upload-note{
  color:var(--text-soft);
  font-size:13px;
  line-height:1.55;
}

.feedback-form__captcha{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.feedback-form__captcha-image{
  flex:0 0 auto;
}

.feedback-form__captcha-field{
  flex:1 1 220px;
  min-width:0;
}

.feedback-form__bottom{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding-top:2px;
}

.feedback-form__hint{
  display:flex;
  align-items:flex-start;
  gap:10px;
  flex:1 1 320px;
  min-width:0;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.6;
  padding:10px 12px;
  border-radius:14px;
  background:linear-gradient(90deg, rgba(45,123,255,.05), rgba(155,234,60,.06));
}

.feedback-form__hint i{
  margin-top:2px;
  color:#72b63b;
  font-size:14px;
  line-height:1;
  flex:0 0 auto;
}

.feedback-form__submit{
  min-height:46px;
  padding:0 18px;
  border:0;
  border-radius:16px;
  background:var(--accent-main);
  color:#fff;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  line-height:1;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow:0 12px 24px rgba(45,123,255,.18);
}

.feedback-form__submit:hover{
  background:var(--accent-main-hover);
}

.feedback-form__submit:active{
  transform:scale(.985);
}

.feedback-form__submit i{
  font-size:14px;
  line-height:1;
}

@media screen and (max-width:768px){
  .feedback-page{
    gap:14px;
    margin-bottom:14px;
  }

  .feedback-hero{
    border-radius:24px;
  }

  .feedback-hero__inner{
    padding:22px 18px 20px;
  }

  .feedback-hero__title{
    font-size:28px;
  }

  .feedback-hero__text{
    font-size:14px;
    line-height:1.66;
  }

  .feedback-contact{
    padding:13px 14px;
    border-radius:16px;
  }

  .feedback-contact__icon{
    width:40px;
    height:40px;
    border-radius:13px;
  }

  .feedback-card{
    border-radius:22px;
  }

  .feedback-card__head{
    padding:18px 18px 0;
  }

  .feedback-card__body{
    padding:18px;
  }

  .feedback-form{
    gap:14px;
  }

  .feedback-form__textarea{
    min-height:200px;
    border-radius:18px;
  }

  .feedback-form__bottom{
    flex-direction:column;
    align-items:stretch;
  }

  .feedback-form__submit{
    width:100%;
  }
}

@media screen and (max-width:640px){
  .feedback-hero{
    border-radius:20px;
  }

  .feedback-hero__inner{
    padding:18px 14px 16px;
    gap:12px;
  }

  .feedback-hero__title{
    font-size:24px;
  }

  .feedback-hero__badge{
    min-height:30px;
    padding:0 11px;
    font-size:11px;
  }

  .feedback-contact{
    gap:12px;
    padding:12px;
    border-radius:15px;
  }

  .feedback-contact__icon{
    width:38px;
    height:38px;
    border-radius:12px;
  }

  .feedback-contact__value{
    font-size:14px;
  }

  .feedback-card{
    border-radius:20px;
  }

  .feedback-card__head{
    padding:16px 14px 0;
  }

  .feedback-card__title{
    font-size:18px;
  }

  .feedback-card__body{
    padding:14px;
  }

  .feedback-form__input,
  .feedback-form__select select{
    min-height:48px;
    border-radius:14px;
  }

  .feedback-form__textarea{
    min-height:180px;
    padding:14px 16px;
    border-radius:16px;
    font-size:14px;
  }

  .feedback-form__upload{
    padding:12px;
    border-radius:16px;
  }

  .feedback-form__captcha{
    align-items:flex-start;
  }

  .feedback-form__captcha-field{
    flex:1 1 100%;
    width:100%;
  }

  .feedback-form__hint{
    font-size:12px;
    padding:10px 11px;
    border-radius:12px;
  }

  .feedback-form__submit{
    min-height:44px;
    border-radius:14px;
    font-size:13px;
  }
}


/* =========================================
   STATIC PAGE â€” 4HE
   ========================================= */

.static-page{
  display:grid;
  gap:18px;
  margin-bottom:18px;
}

.static-page__card{
  position:relative;
  overflow:hidden;
  padding:24px;
  border:1px solid var(--border);
  border-radius:24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(45,123,255,.12), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(155,234,60,.10), transparent 24%),
    linear-gradient(180deg, var(--surface), var(--surface));
  box-shadow:var(--shadow-sm);
}

.theme-dark .static-page__card{
  background:
    radial-gradient(circle at 12% 18%, rgba(45,123,255,.16), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(155,234,60,.08), transparent 24%),
    linear-gradient(180deg, var(--surface), var(--surface));
}

.static-page__card--popular{
  padding-bottom:20px;
}

.static-page__head{
  margin-bottom:18px;
}

.static-page__badge{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent-main-soft), var(--accent-hot-soft));
  border:1px solid var(--border);
  color:var(--text);
  font-size:12px;
  line-height:1;
  font-weight:700;
  margin-bottom:14px;
}

.static-page__title{
  margin:0;
  color:var(--text);
  font-size:34px;
  line-height:1.04;
  letter-spacing:-.04em;
  font-weight:800;
  max-width:820px;
}

.static-page__desc{
  margin-top:10px;
  max-width:720px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.65;
}

.static-page__content{
  min-width:0;
}

.static-page__content > :first-child{
  margin-top:0 !important;
}

.static-page__content > :last-child{
  margin-bottom:0 !important;
}

.static-page__feed{
  display:grid;
  gap:0;
}

.static-page__feed .feed-card:last-child,
.static-page__feed .profile-feed-card:last-child{
  margin-bottom:0;
}

@media screen and (max-width:768px){
  .static-page{
    gap:14px;
    margin-bottom:14px;
  }

  .static-page__card{
    padding:18px;
    border-radius:20px;
  }

  .static-page__head{
    margin-bottom:14px;
  }

  .static-page__title{
    font-size:28px;
  }

  .static-page__desc{
    font-size:14px;
    line-height:1.6;
  }
}

@media screen and (max-width:640px){
  .static-page{
    gap:12px;
    margin-bottom:12px;
  }

  .static-page__card{
    padding:14px;
    border-radius:18px;
  }

  .static-page__badge{
    min-height:30px;
    padding:0 11px;
    font-size:11px;
    margin-bottom:12px;
  }

  .static-page__head{
    margin-bottom:12px;
  }

  .static-page__title{
    font-size:24px;
    line-height:1.08;
  }

  .static-page__desc{
    margin-top:8px;
    font-size:13px;
  }
}
/* =========================================
   MOBILE RESTORE â€” HEADER / GRID / SIDEBAR
   Ð²ÑÑ‚Ð°Ð²Ð¸Ñ‚ÑŒ Ð² ÑÐ°Ð¼Ñ‹Ð¹ ÐºÐ¾Ð½ÐµÑ† style.css
   ========================================= */

@media screen and (max-width:1240px){
  .cols{
    grid-template-columns:220px minmax(0,640px);
    max-width:884px;
    gap:0;
  }

  .col_right{
    display:none;
  }
}

@media screen and (max-width:925px){
  .site-header__burger{
    display:inline-flex;
  }

  .site-header__inner{
    padding:0 12px;
  }

  .col_left{
    position:fixed;
    top:68px;
    left:-320px;
    width:320px;
    max-width:88vw;
    height:calc(100dvh - 68px);
    padding:18px 12px calc(18px + env(safe-area-inset-bottom));
    background:var(--bg);
    z-index:800;
    overflow-y:auto;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    touch-action:pan-y;
    transition:left .25s ease;
  }

  .col_left.open{
    left:0;
  }

  .menu-close{
    display:flex;
    align-items:center;
    justify-content:center;
    position:absolute;
    top:8px;
    right:10px;
    width:40px;
    height:40px;
    border:0;
    background:transparent;
    color:var(--text);
    cursor:pointer;
    font-size:24px;
    z-index:2;
  }

  .sidebar{
    margin:28px 0 0;
    padding-bottom:18px;
    max-height:none;
    overflow:visible;
    row-gap:14px;
  }

  .side_menu{
    padding:10px;
    border-radius:18px;
  }

  .side_menu_item{
    min-height:42px;
    border-radius:12px;
  }

  .cols{
    grid-template-columns:1fr;
    max-width:100%;
    padding:16px 0;
  }

  .col_main{
    min-width:0;
    margin-bottom:0;
  }
}

@media screen and (max-width:640px){
  .site-header{
    --header-h:62px;
  }

  .site-header__icon-btn,
  .site-header__profile{
    width:36px;
    height:36px;
    border-radius:12px;
  }

  .site-header__logo-image{
    height:34px;
  }

  .site-header__profile-guest-icon i{
    font-size:15px;
  }

  .search-overlay__panel{
    padding:12px;
  }

  .search-overlay__form{
    height:54px;
    padding:0 12px 0 16px;
    border-radius:16px;
  }

  .search-overlay__input{
    font-size:16px;
  }

  .search-overlay__block{
    padding:14px;
    border-radius:16px;
  }

  .site-profile-dropdown{
    right:-8px;
    width:min(320px, calc(100vw - 16px));
  }

  .auth-modal{
    display:flex;
    align-items:flex-end;
  }

  .auth-modal__panel{
    width:100%;
    min-height:58vh;
    margin:auto 0 0;
    padding:20px 16px 24px;
    border-radius:20px 20px 0 0;
  }

  .auth-modal__title{
    font-size:17px;
  }

  .cols{
    margin-top:78px;
    padding:10px 0;
  }

  .content{
    gap:10px;
  }

  #menuOverlay{
    top:62px;
    height:calc(100dvh - 62px);
  }

  .col_left{
    top:62px;
    height:calc(100dvh - 62px);
    padding-bottom:calc(18px + env(safe-area-inset-bottom));
  }

  .sidebar{
    row-gap:12px;
    padding-bottom:22px;
  }

  .side_menu{
    padding:9px;
    border-radius:16px;
  }

  .sidebar__title{
    padding:4px 8px 7px;
    font-size:10px;
  }

  .side_menu_item{
    min-height:40px;
    padding:0 11px;
    gap:10px;
    border-radius:11px;
  }

  .side_menu_icon{
    font-size:16px;
  }

  .side_menu_category{
    font-size:13px;
  }

  .side_menu_photo{
    width:26px;
    height:26px;
    border-radius:9px;
  }

  .side_menu_toggle{
    min-height:30px;
    border-radius:9px;
  }

  .side_menu_toggle .side_menu_category{
    font-size:12px;
  }
}
/* =========================================
   COMMENT COMPOSER — DTF STYLE TWEAK
   точечная правка
   ========================================= */

.story-comments .comment-composer{
  margin: 0 0 30px;
}

.story-comments .comment-composer__editor{
  background:var(--surface);
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  box-shadow:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.theme-dark .story-comments .comment-composer__editor{
  background:var(--surface);
  border-color:rgba(255,255,255,.08);
}

.story-comments .comment-composer__editor:focus-within{
  border-color:rgba(45,123,255,.22);
  box-shadow:0 0 0 3px rgba(45,123,255,.08);
}

.theme-dark .story-comments .comment-composer__editor:focus-within{
  border-color:rgba(90,150,255,.26);
  box-shadow:0 0 0 3px rgba(45,123,255,.12);
}

.story-comments .comment-composer__editor-field textarea,
.story-comments .comment-composer__editor-field #comments,
.story-comments .comment-composer__editor-field .wseditor,
.story-comments .comment-composer__editor-field .bb-editor textarea{
  height:96px !important;
  min-height:96px !important;
  max-height:220px !important;
  padding:16px 16px 8px !important;
  background:transparent !important;
  color:var(--text) !important;
  font-size:15px;
  line-height:1.65;
  resize:none;
}

.story-comments .comment-composer__editor-field textarea::placeholder,
.story-comments .comment-composer__editor-field #comments::placeholder,
.story-comments .comment-composer__editor-field .wseditor::placeholder,
.story-comments .comment-composer__editor-field .bb-editor textarea::placeholder{
  color:var(--text-fade);
  opacity:1;
}

.story-comments .comment-composer__editor-field .bbcodes,
.story-comments .comment-composer__editor-field .editor-panel,
.story-comments .comment-composer__editor-field .bb-pane{
  padding:8px 10px 0;
}

.story-comments .comment-composer__footer{
  padding:4px 10px 10px;
  background:transparent;
  border-top:0;
  min-height:44px;
}

.story-comments .comment-composer__footer-left{
  gap:2px;
}

.story-comments .comment-composer__icon-btn{
  width:30px;
  height:30px;
  border-radius:9px;
  background:transparent;
  color:var(--text-fade);
  border:0;
}

.story-comments .comment-composer__icon-btn:hover{
  background:var(--surface-2);
  color:var(--text);
}

.story-comments .comment-composer__icon-btn i{
  font-size:14px;
}

.story-comments .comment-composer__submit{
  min-height:32px;
  padding:0 14px;
  border-radius:11px;
  font-size:13px;
  font-weight:700;
  box-shadow:none;
}

.story-comments .comment-composer__submit:hover{
  box-shadow:none;
}

.story-comments .comment-composer__submit i{
  font-size:13px;
}

.story-comments .comment-composer__guest{
  margin-bottom:10px;
}

.story-comments .comment-composer__field input,
.story-comments .comment-composer__question input,
.story-comments .comment-composer__captcha-field input{
  min-height:42px;
  border-radius:13px;
}

.story-comments .comment-composer__uploader{
  margin:0 10px 10px;
  padding:10px;
  border-radius:14px;
}

/* mobile */
@media screen and (max-width:640px){
  .story-comments .comment-composer__editor-field textarea,
  .story-comments .comment-composer__editor-field #comments,
  .story-comments .comment-composer__editor-field .wseditor,
  .story-comments .comment-composer__editor-field .bb-editor textarea{
    height:88px !important;
    min-height:88px !important;
    padding:14px 14px 8px !important;
    font-size:14px;
  }

  .story-comments .comment-composer__footer{
    padding:4px 8px 8px;
    min-height:40px;
  }

  .story-comments .comment-composer__icon-btn{
    width:28px;
    height:28px;
  }

  .story-comments .comment-composer__submit{
    min-height:30px;
    padding:0 12px;
    border-radius:10px;
    font-size:12px;
  }
}
/* =========================================
   COMMENT COMPOSER — EMOJI BUTTON
   ========================================= */

.comment-composer__emoji-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.comment-composer__emoji-toggle i{
  font-size:15px;
  line-height:1;
}

.comment-composer__emoji-panel{
  position:absolute;
  left:0;
  bottom:calc(100% + 8px);
  z-index:40;
  width:240px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:6px;
  padding:10px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-sm);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(6px) scale(.98);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.comment-composer__emoji-wrap.is-open .comment-composer__emoji-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.comment-composer__emoji-btn{
  width:100%;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:var(--surface-2);
  border:1px solid transparent;
  border-radius:12px;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  transition:background .16s ease, transform .16s ease, border-color .16s ease;
}

.comment-composer__emoji-btn:hover{
  background:var(--surface-3);
  border-color:var(--border);
}

.comment-composer__emoji-btn:active{
  transform:scale(.96);
}

/* внутри story-comments */
.story-comments .comment-composer__emoji-panel{
  background:var(--surface);
  border-radius:14px;
  box-shadow:var(--shadow-sm);
}

.story-comments .comment-composer__emoji-btn{
  height:38px;
  border-radius:10px;
}

@media screen and (max-width:640px){
  .comment-composer__emoji-panel{
    width:220px;
    grid-template-columns:repeat(4, minmax(0, 1fr));
    gap:5px;
    padding:8px;
    border-radius:14px;
  }

  .comment-composer__emoji-btn{
    height:36px;
    font-size:18px;
    border-radius:10px;
  }
}
/* COMMENT COMPOSER — EMOJI */
.comment-composer__emoji-wrap{
  position:relative;
  display:inline-flex;
  align-items:center;
}

.comment-composer__emoji-panel{
  position:absolute;
  left:0;
  bottom:calc(100% + 8px);
  z-index:40;
  width:240px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:6px;
  padding:10px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:16px;
  box-shadow:var(--shadow-sm);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(6px) scale(.98);
  transition:opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.comment-composer__emoji-wrap.is-open .comment-composer__emoji-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.comment-composer__emoji-btn{
  width:100%;
  height:40px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:var(--surface-2);
  border:1px solid transparent;
  border-radius:12px;
  cursor:pointer;
  font-size:20px;
  line-height:1;
  transition:background .16s ease, transform .16s ease, border-color .16s ease;
}

.comment-composer__emoji-btn:hover{
  background:var(--surface-3);
  border-color:var(--border);
}

.comment-composer__emoji-btn:active{
  transform:scale(.96);
}

.story-comments .comment-composer__emoji-panel{
  background:var(--surface);
  border-radius:14px;
  box-shadow:var(--shadow-sm);
}

.story-comments .comment-composer__emoji-btn{
  height:38px;
  border-radius:10px;
}

@media screen and (max-width:640px){
  .comment-composer__emoji-panel{
    width:220px;
    gap:5px;
    padding:8px;
    border-radius:14px;
  }

  .comment-composer__emoji-btn{
    height:36px;
    font-size:18px;
    border-radius:10px;
  }
}
/* COMMENT COMPOSER — EMOJI PANEL FIX */
.comment-composer__editor,
.story-comments .comment-composer__editor{
  overflow:visible !important;
}

.comment-composer__footer,
.story-comments .comment-composer__footer{
  position:relative;
  overflow:visible;
}

.comment-composer__emoji-wrap{
  position:relative;
  z-index:60;
}

.comment-composer__emoji-panel{
  position:absolute;
  left:0;
  bottom:calc(100% + 10px);
  z-index:200;
  width:232px;
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:6px;
  padding:8px;
  background:rgba(255,255,255,.92);
  border:1px solid rgba(15,23,42,.06);
  border-radius:14px;
  box-shadow:0 10px 24px rgba(16,24,40,.10);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transform:translateY(6px) scale(.985);
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
}

.comment-composer__emoji-wrap.is-open .comment-composer__emoji-panel{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateY(0) scale(1);
}

.comment-composer__emoji-btn{
  width:100%;
  height:38px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0;
  background:transparent;
  border:1px solid transparent;
  border-radius:10px;
  cursor:pointer;
  font-size:19px;
  line-height:1;
  transition:background .14s ease, transform .14s ease, border-color .14s ease;
}

.comment-composer__emoji-btn:hover{
  background:rgba(15,23,42,.05);
  border-color:rgba(15,23,42,.05);
}

.comment-composer__emoji-btn:active{
  transform:scale(.96);
}

.theme-dark .comment-composer__emoji-panel{
  background:rgba(32,36,43,.94);
  border-color:rgba(255,255,255,.08);
  box-shadow:0 14px 30px rgba(0,0,0,.30);
}

.theme-dark .comment-composer__emoji-btn:hover{
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.06);
}

@media screen and (max-width:640px){
  .comment-composer__emoji-panel{
    width:216px;
    gap:5px;
    padding:7px;
    border-radius:13px;
  }

  .comment-composer__emoji-btn{
    height:36px;
    font-size:18px;
    border-radius:9px;
  }
}
/* EMOJI PANEL ABOVE STORY-COMMENTS */
.story-comments,
.story-comments__body{
  overflow:visible !important;
}

.story-comments .comment-composer,
.story-comments .comment-composer__box,
.story-comments .comment-composer__editor,
.story-comments .comment-composer__footer{
  position:relative;
  overflow:visible !important;
  z-index:20;
}

.story-comments .comment-composer__emoji-wrap{
  position:relative;
  z-index:120;
}

.story-comments .comment-composer__emoji-panel{
  position:absolute;
  left:0;
  bottom:calc(100% + 10px);
  z-index:9999;
}


/* =========================================
   CATEGORY HEAD — STABLE RESTORE
   ========================================= */
/* CATEGORY HEADER — CLEAN FINAL */
.category-head{
  margin:0 0 16px;
  background:var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
  overflow:hidden;
}

.category-head__cover{
  min-height:148px;
  border-bottom:1px solid var(--border);
  background:
    radial-gradient(circle at 14% 22%, rgba(45,123,255,.12), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(155,234,60,.14), transparent 22%),
    linear-gradient(135deg, #eef5ff 0%, #f6fbef 52%, #f7f9fc 100%);
}

.theme-dark .category-head__cover{
  background:
    radial-gradient(circle at 14% 22%, rgba(45,123,255,.18), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(155,234,60,.10), transparent 22%),
    linear-gradient(135deg, #273142 0%, #263224 52%, #20242b 100%);
}

.category-head__cover img{
  width:100%;
  height:148px;
  object-fit:cover;
  display:block;
}

.category-head__body{
  padding:0 20px 16px;
}

.category-head__top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-top:-34px;
}

.category-head__identity{
  min-width:0;
  flex:1 1 auto;
  display:flex;
  align-items:flex-start;
  gap:14px;
}

.category-head__avatar{
  width:76px;
  height:76px;
  flex:0 0 auto;
  border-radius:20px;
  overflow:hidden;
  background:var(--surface);
  border:4px solid var(--surface);
  box-shadow:0 10px 24px rgba(0,0,0,.10);
}

.category-head__avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.category-head__main{
  min-width:0;
  padding-top:40px;
}

.category-head__title{
  margin:0;
  color:var(--text);
  font-size:34px;
  line-height:1.04;
  letter-spacing:-.04em;
  font-weight:800;
}

.category-head__desc{
  max-width:760px;
  margin-top:10px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.68;
}

.category-head__meta{
  margin-top:12px;
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.4;
  font-weight:500;
}

.category-head__dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:var(--text-fade);
  flex:0 0 auto;
}

.category-head__actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:10px;
  padding-top:46px;
}

.category-head__btn{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 16px;
  border-radius:14px;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  line-height:1;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.category-head__btn:active{
  transform:scale(.985);
}

.category-head__btn--primary{
  background:var(--accent-main);
  color:#fff;
}

.category-head__btn--primary:hover{
  background:var(--accent-main-hover);
  color:#fff;
}

.category-head__more{
  width:42px;
  height:42px;
  border:0;
  border-radius:14px;
  background:var(--surface-2);
  color:var(--text-soft);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.category-head__more:hover{
  background:var(--surface-3);
  color:var(--text);
}

.category-head__more:active{
  transform:scale(.96);
}

.category-head__nav{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid var(--border);
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.category-head__nav a{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:999px;
  background:transparent;
  color:var(--text-soft);
  text-decoration:none;
  font-size:14px;
  font-weight:600;
  line-height:1;
  transition:background .18s ease, color .18s ease;
}

.category-head__nav a:hover{
  background:var(--surface-2);
  color:var(--text);
}

.category-head__nav a.is-active{
  background:var(--accent-main-soft);
  color:var(--accent-main);
}

/* tablet */
@media screen and (max-width:768px){
  .category-head{
    border-radius:20px;
    margin-bottom:14px;
  }

  .category-head__cover{
    min-height:118px;
  }

  .category-head__cover img{
    height:118px;
  }

  .category-head__body{
    padding:0 16px 14px;
  }

  .category-head__top{
    flex-direction:column;
    gap:14px;
    margin-top:-22px;
  }

  .category-head__identity{
    gap:12px;
  }

  .category-head__avatar{
    width:64px;
    height:64px;
    border-radius:18px;
  }

  .category-head__main{
    padding-top:34px;
  }

  .category-head__title{
    font-size:26px;
  }

  .category-head__desc{
    font-size:14px;
    line-height:1.6;
  }

  .category-head__actions{
    width:100%;
    padding-top:0;
  }

  .category-head__btn{
    flex:1 1 auto;
  }
}

/* mobile */
@media screen and (max-width:640px){
  .category-head{
    border-radius:18px;
  }

  .category-head__cover{
    min-height:108px;
  }

  .category-head__cover img{
    height:108px;
  }

  .category-head__body{
    padding:0 14px 14px;
  }

  .category-head__top{
    gap:12px;
    margin-top:-16px;
  }

  .category-head__identity{
    gap:10px;
  }

  .category-head__avatar{
    width:58px;
    height:58px;
    border-radius:16px;
  }

  .category-head__main{
    padding-top:30px;
  }

  .category-head__title{
    font-size:22px;
    line-height:1.08;
  }

  .category-head__desc{
    margin-top:8px;
    font-size:13px;
  }

  .category-head__meta{
    margin-top:10px;
    font-size:13px;
  }

  .category-head__btn{
    min-height:40px;
    padding:0 14px;
    border-radius:13px;
    font-size:13px;
  }

  .category-head__more{
    width:40px;
    height:40px;
    border-radius:13px;
  }

  .category-head__nav{
    gap:8px;
  }

  .category-head__nav a{
    min-height:34px;
    padding:0 12px;
    font-size:13px;
  }
}
/* =========================================
   CATEGORY HEAD — DLE SORT ONLY
   ========================================= */

.category-head__nav--native-sort{
  width:100%;
  min-width:0;
}

.category-head__nav--native-sort #news_set_sort{
  display:block;
  width:100%;
  margin:0;
}

.category-head__nav--native-sort #news_set_sort .sort{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px;
  margin:0;
  padding:0;
  list-style:none;
}

.category-head__nav--native-sort #news_set_sort .sort li{
  margin:0;
  padding:0;
  list-style:none;
}

/* порядок кнопок */
.category-head__nav--native-sort #news_set_sort .sort .sort_by_date{
  order:1;
}

.category-head__nav--native-sort #news_set_sort .sort .sort_by_news_read{
  order:2;
}

.category-head__nav--native-sort #news_set_sort .sort .sort_by_comm_num{
  order:3;
}

.category-head__nav--native-sort #news_set_sort .sort .sort_by_editdate{
  order:4;
}

/* скрываем лишнее */
.category-head__nav--native-sort #news_set_sort .sort .sort_by_rating,
.category-head__nav--native-sort #news_set_sort .sort .sort_by_title{
  display:none !important;
}

/* базовый вид кнопок */
.category-head__nav--native-sort #news_set_sort .sort li a{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:999px;
  background:transparent;
  color:var(--text-soft) !important;
  text-decoration:none !important;
  font-size:0 !important;
  font-weight:600;
  line-height:1;
  white-space:nowrap;
  box-shadow:none !important;
  border:0 !important;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.category-head__nav--native-sort #news_set_sort .sort li a:hover{
  background:var(--surface-2);
  color:var(--text) !important;
}

.category-head__nav--native-sort #news_set_sort .sort li a:active{
  transform:scale(.985);
}

/* подписи */
.category-head__nav--native-sort #news_set_sort .sort .sort_by_date a::before{
  content:"Свежее";
  font-size:14px;
}

.category-head__nav--native-sort #news_set_sort .sort .sort_by_news_read a::before{
  content:"Популярное";
  font-size:14px;
}

.category-head__nav--native-sort #news_set_sort .sort .sort_by_comm_num a::before{
  content:"Обсуждаемое";
  font-size:14px;
}

.category-head__nav--native-sort #news_set_sort .sort .sort_by_editdate a::before{
  content:"Обновлённое";
  font-size:14px;
}

/* активная кнопка */
.category-head__nav--native-sort #news_set_sort .sort li.asc a,
.category-head__nav--native-sort #news_set_sort .sort li.desc a{
  background:var(--accent-main-soft);
  color:var(--accent-main) !important;
}

.category-head__nav--native-sort #news_set_sort .sort li.asc a::before,
.category-head__nav--native-sort #news_set_sort .sort li.desc a::before{
  color:var(--accent-main);
}

/* скрываем hidden поля */
.category-head__nav--native-sort #news_set_sort input[type="hidden"]{
  display:none !important;
}

@media screen and (max-width:768px){
  .category-head__nav--native-sort #news_set_sort .sort{
    gap:8px;
  }

  .category-head__nav--native-sort #news_set_sort .sort li a{
    min-height:34px;
    padding:0 12px;
  }

  .category-head__nav--native-sort #news_set_sort .sort .sort_by_date a::before,
  .category-head__nav--native-sort #news_set_sort .sort .sort_by_news_read a::before,
  .category-head__nav--native-sort #news_set_sort .sort .sort_by_comm_num a::before,
  .category-head__nav--native-sort #news_set_sort .sort .sort_by_editdate a::before{
    font-size:13px;
  }
}

@media screen and (max-width:640px){
  .category-head__nav--native-sort #news_set_sort .sort{
    gap:8px;
  }

  .category-head__nav--native-sort #news_set_sort .sort li a{
    min-height:34px;
    padding:0 12px;
  }

  .category-head__nav--native-sort #news_set_sort .sort .sort_by_date a::before,
  .category-head__nav--native-sort #news_set_sort .sort .sort_by_news_read a::before,
  .category-head__nav--native-sort #news_set_sort .sort .sort_by_comm_num a::before,
  .category-head__nav--native-sort #news_set_sort .sort .sort_by_editdate a::before{
    font-size:13px;
  }
}
/* =========================================
   LOST PASSWORD PAGE
   ========================================= */

.lostpass-page{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}

.lostpass-card{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.08), transparent 28%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.08), transparent 22%),
    var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
}

.theme-dark .lostpass-card{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.12), transparent 28%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.06), transparent 22%),
    var(--surface);
}

.lostpass-card__head{
  padding:24px 24px 0;
  display:grid;
  gap:10px;
}

.lostpass-card__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  width:max-content;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent-main-soft), var(--accent-hot-soft));
  border:1px solid var(--border);
  color:var(--text);
  font-size:12px;
  line-height:1;
  font-weight:700;
}

.lostpass-card__badge i{
  color:var(--accent-main);
  font-size:13px;
  line-height:1;
}

.lostpass-card__title{
  margin:0;
  color:var(--text);
  font-size:30px;
  line-height:1.06;
  letter-spacing:-.04em;
  font-weight:800;
}

.lostpass-card__desc{
  max-width:720px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.68;
}

.lostpass-form{
  padding:22px 24px 24px;
  display:grid;
  gap:16px;
}

.lostpass-form__group{
  display:grid;
  gap:8px;
}

.lostpass-form__label{
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:700;
}

.lostpass-form__input{
  width:100%;
  min-height:52px;
  padding:0 16px;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:16px;
  font-size:15px;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.lostpass-form__input:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.lostpass-form__input::placeholder{
  color:var(--text-fade);
  opacity:1;
}

.lostpass-form__captcha{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:14px;
  align-items:end;
  padding:14px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:20px;
}

.lostpass-form__captcha-image{
  flex:0 0 auto;
}

.lostpass-form__captcha-field{
  min-width:0;
  display:grid;
  gap:8px;
}

.lostpass-form__footer{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding-top:2px;
}

.lostpass-form__submit{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 18px;
  border:0;
  border-radius:16px;
  background:var(--accent-main);
  color:#fff;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  line-height:1;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow:0 12px 24px rgba(45,123,255,.18);
}

.lostpass-form__submit:hover{
  background:var(--accent-main-hover);
}

.lostpass-form__submit:active{
  transform:scale(.985);
}

.lostpass-form__submit i{
  font-size:14px;
  line-height:1;
}

@media screen and (max-width:768px){
  .lostpass-card{
    border-radius:22px;
  }

  .lostpass-card__head{
    padding:20px 18px 0;
  }

  .lostpass-card__title{
    font-size:26px;
  }

  .lostpass-card__desc{
    font-size:14px;
    line-height:1.62;
  }

  .lostpass-form{
    padding:18px;
  }

  .lostpass-form__captcha{
    grid-template-columns:1fr;
    align-items:start;
  }

  .lostpass-form__submit{
    width:100%;
  }
}

@media screen and (max-width:640px){
  .lostpass-card{
    border-radius:20px;
  }

  .lostpass-card__head{
    padding:18px 14px 0;
  }

  .lostpass-card__badge{
    min-height:30px;
    padding:0 11px;
    font-size:11px;
  }

  .lostpass-card__title{
    font-size:22px;
    line-height:1.08;
  }

  .lostpass-card__desc{
    font-size:13px;
  }

  .lostpass-form{
    padding:14px;
    gap:14px;
  }

  .lostpass-form__input{
    min-height:48px;
    border-radius:15px;
    font-size:14px;
  }

  .lostpass-form__captcha{
    gap:12px;
    padding:12px;
    border-radius:18px;
  }

  .lostpass-form__submit{
    min-height:46px;
    border-radius:15px;
    font-size:13px;
  }
}
/* =========================================
   REGISTRATION PAGE
   ========================================= */

.reg-page{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}

.reg-card{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.08), transparent 28%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.08), transparent 22%),
    var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
}

.theme-dark .reg-card{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.12), transparent 28%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.06), transparent 22%),
    var(--surface);
}

.reg-card__head{
  padding:24px 24px 0;
  display:grid;
  gap:10px;
}

.reg-card__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  width:max-content;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent-main-soft), var(--accent-hot-soft));
  border:1px solid var(--border);
  color:var(--text);
  font-size:12px;
  line-height:1;
  font-weight:700;
}

.reg-card__badge i{
  color:var(--accent-main);
  font-size:13px;
  line-height:1;
}

.reg-card__title{
  margin:0;
  color:var(--text);
  font-size:30px;
  line-height:1.06;
  letter-spacing:-.04em;
  font-weight:800;
}

.reg-card__desc{
  max-width:760px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.68;
}

.reg-card__step{
  display:inline-flex;
  align-items:center;
  min-height:28px;
  width:max-content;
  padding:0 10px;
  border-radius:999px;
  background:var(--surface-2);
  color:var(--text-soft);
  font-size:12px;
  font-weight:700;
  line-height:1;
}

.reg-form{
  padding:22px 24px 24px;
  display:grid;
  gap:16px;
}

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

.reg-form__group{
  display:grid;
  gap:8px;
  min-width:0;
}

.reg-form__label{
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:700;
}

.reg-form__input,
.reg-form__textarea,
.reg-form__file{
  width:100%;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.reg-form__input,
.reg-form__file{
  min-height:52px;
  padding:0 16px;
  border-radius:16px;
  font-size:15px;
}

.reg-form__textarea{
  min-height:140px;
  padding:14px 16px;
  border-radius:18px;
  font-size:15px;
  line-height:1.68;
  resize:vertical;
}

.reg-form__input:focus,
.reg-form__textarea:focus,
.reg-form__file:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.reg-form__input::placeholder,
.reg-form__textarea::placeholder{
  color:var(--text-fade);
  opacity:1;
}

.reg-form__inline{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:10px;
  align-items:center;
}

.reg-form__check-btn{
  min-height:52px;
  padding:0 16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:var(--surface-2);
  color:var(--text);
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  white-space:nowrap;
  transition:background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.reg-form__check-btn:hover{
  background:var(--surface-3);
  color:var(--text);
}

.reg-form__check-btn:active{
  transform:scale(.985);
}

.reg-form__captcha{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:14px;
  align-items:end;
  padding:14px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:20px;
}

.reg-form__captcha-image{
  flex:0 0 auto;
}

.reg-form__captcha-field{
  min-width:0;
  display:grid;
  gap:8px;
}

.reg-form__footer{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding-top:2px;
}

.reg-form__submit{
  min-height:48px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:0 18px;
  border:0;
  border-radius:16px;
  background:var(--accent-main);
  color:#fff;
  cursor:pointer;
  font-size:14px;
  font-weight:700;
  line-height:1;
  transition:background .18s ease, transform .18s ease, box-shadow .18s ease;
  box-shadow:0 12px 24px rgba(45,123,255,.18);
}

.reg-form__submit:hover{
  background:var(--accent-main-hover);
}

.reg-form__submit:active{
  transform:scale(.985);
}

.reg-form__submit i{
  font-size:14px;
  line-height:1;
}

.reg-card__bottom{
  padding:0 24px 24px;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.65;
}

.reg-card__bottom a{
  color:var(--accent-main);
  text-decoration:none;
}

.reg-card__bottom a:hover{
  color:var(--accent-main-hover);
}

/* xfields */
.reg-form__xfields .xfieldsrow{
  display:grid;
  gap:8px;
  margin:0 0 14px;
  padding:0;
  background:transparent;
  border:0;
}

.reg-form__xfields .xfieldsrow:last-child{
  margin-bottom:0;
}

.reg-form__xfields .xfieldscolleft{
  float:none;
  width:auto;
  margin:0;
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:700;
}

.reg-form__xfields .xfieldscolright{
  float:none;
  width:auto;
  margin:0;
}

.reg-form__xfields .xfieldscolright input[type="text"],
.reg-form__xfields .xfieldscolright input[type="email"],
.reg-form__xfields .xfieldscolright input[type="url"],
.reg-form__xfields .xfieldscolright input[type="password"],
.reg-form__xfields .xfieldscolright select,
.reg-form__xfields .xfieldscolright textarea{
  width:100%;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.reg-form__xfields .xfieldscolright input[type="text"],
.reg-form__xfields .xfieldscolright input[type="email"],
.reg-form__xfields .xfieldscolright input[type="url"],
.reg-form__xfields .xfieldscolright input[type="password"],
.reg-form__xfields .xfieldscolright select{
  min-height:52px;
  padding:0 16px;
  border-radius:16px;
  font-size:15px;
}

.reg-form__xfields .xfieldscolright textarea{
  min-height:120px;
  padding:14px 16px;
  border-radius:18px;
  font-size:15px;
  line-height:1.68;
  resize:vertical;
}

.reg-form__xfields .xfieldscolright input[type="text"]:focus,
.reg-form__xfields .xfieldscolright input[type="email"]:focus,
.reg-form__xfields .xfieldscolright input[type="url"]:focus,
.reg-form__xfields .xfieldscolright input[type="password"]:focus,
.reg-form__xfields .xfieldscolright select:focus,
.reg-form__xfields .xfieldscolright textarea:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

@media screen and (max-width:768px){
  .reg-card{
    border-radius:22px;
  }

  .reg-card__head{
    padding:20px 18px 0;
  }

  .reg-card__title{
    font-size:26px;
  }

  .reg-card__desc{
    font-size:14px;
    line-height:1.62;
  }

  .reg-form{
    padding:18px;
  }

  .reg-form__grid{
    grid-template-columns:1fr;
  }

  .reg-form__captcha{
    grid-template-columns:1fr;
    align-items:start;
  }

  .reg-form__footer{
    justify-content:stretch;
  }

  .reg-form__submit{
    width:100%;
  }

  .reg-card__bottom{
    padding:0 18px 18px;
  }
}

@media screen and (max-width:640px){
  .reg-card{
    border-radius:20px;
  }

  .reg-card__head{
    padding:18px 14px 0;
  }

  .reg-card__badge{
    min-height:30px;
    padding:0 11px;
    font-size:11px;
  }

  .reg-card__title{
    font-size:22px;
    line-height:1.08;
  }

  .reg-card__desc{
    font-size:13px;
  }

  .reg-form{
    padding:14px;
    gap:14px;
  }

  .reg-form__input,
  .reg-form__file{
    min-height:48px;
    border-radius:15px;
    font-size:14px;
  }

  .reg-form__textarea{
    min-height:130px;
    padding:13px 14px;
    border-radius:16px;
    font-size:14px;
  }

  .reg-form__inline{
    grid-template-columns:1fr;
  }

  .reg-form__check-btn{
    min-height:44px;
    border-radius:14px;
  }

  .reg-form__captcha{
    gap:12px;
    padding:12px;
    border-radius:18px;
  }

  .reg-form__submit{
    min-height:46px;
    border-radius:15px;
    font-size:13px;
  }

  .reg-card__bottom{
    padding:0 14px 14px;
    font-size:12px;
  }

  .reg-form__xfields .xfieldscolright input[type="text"],
  .reg-form__xfields .xfieldscolright input[type="email"],
  .reg-form__xfields .xfieldscolright input[type="url"],
  .reg-form__xfields .xfieldscolright input[type="password"],
  .reg-form__xfields .xfieldscolright select{
    min-height:48px;
    border-radius:15px;
    font-size:14px;
  }

  .reg-form__xfields .xfieldscolright textarea{
    border-radius:16px;
    font-size:14px;
  }
}
/* avatar file input */
.reg-form__file{
  width:100%;
  min-height:56px;
  padding:8px;
  background:var(--surface-2);
  color:var(--text-soft);
  border:1px solid var(--border);
  border-radius:18px;
  font-size:14px;
  line-height:1.4;
  cursor:pointer;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.reg-form__file:hover{
  background:var(--surface);
  border-color:var(--border-strong);
}

.reg-form__file:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.reg-form__file::file-selector-button{
  height:40px;
  margin:0 12px 0 0;
  padding:0 14px;
  border:0;
  border-radius:12px;
  background:var(--accent-main-soft);
  color:var(--accent-main);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.reg-form__file::file-selector-button:hover{
  background:var(--accent-main);
  color:#fff;
}

.reg-form__file::file-selector-button:active{
  transform:scale(.98);
}

/* chrome / safari fallback */
.reg-form__file::-webkit-file-upload-button{
  height:40px;
  margin:0 12px 0 0;
  padding:0 14px;
  border:0;
  border-radius:12px;
  background:var(--accent-main-soft);
  color:var(--accent-main);
  font-size:13px;
  font-weight:700;
  cursor:pointer;
  transition:background .18s ease, color .18s ease, transform .18s ease;
}

.reg-form__file::-webkit-file-upload-button:hover{
  background:var(--accent-main);
  color:#fff;
}

.reg-form__file::-webkit-file-upload-button:active{
  transform:scale(.98);
}

@media screen and (max-width:640px){
  .reg-form__file{
    min-height:52px;
    padding:7px;
    border-radius:16px;
    font-size:13px;
  }

  .reg-form__file::file-selector-button,
  .reg-form__file::-webkit-file-upload-button{
    height:38px;
    padding:0 12px;
    border-radius:11px;
    font-size:12px;
  }
}

/* =========================================
   PM PAGE — MODERN MESSENGER
   ========================================= */

.pm-page{
  display:grid;
  gap:16px;
  margin-bottom:16px;
}

.pm-card,
.pm-chat{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.07), transparent 28%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.06), transparent 22%),
    var(--surface);
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
}

.theme-dark .pm-card,
.theme-dark .pm-chat{
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.10), transparent 28%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.05), transparent 22%),
    var(--surface);
}

/* hero */
.pm-card--hero{
  padding:24px;
}

.pm-card__head{
  display:grid;
  gap:10px;
}

.pm-card__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  width:max-content;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent-main-soft), var(--accent-hot-soft));
  border:1px solid var(--border);
  color:var(--text);
  font-size:12px;
  line-height:1;
  font-weight:700;
}

.pm-card__badge i{
  color:var(--accent-main);
  font-size:13px;
  line-height:1;
}

.pm-card__title{
  margin:0;
  color:var(--text);
  font-size:30px;
  line-height:1.06;
  letter-spacing:-.04em;
  font-weight:800;
}

.pm-card__desc{
  max-width:760px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.68;
}

.pm-toolbar{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid var(--border);
}

.pm-toolbar__nav{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}

.pm-toolbar__tab{
  min-height:36px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:0 14px;
  border-radius:999px;
  background:var(--accent-main-soft);
  color:var(--accent-main);
  font-size:13px;
  line-height:1;
  font-weight:700;
}

.pm-toolbar__status{
  min-width:220px;
  display:grid;
  gap:8px;
}

.pm-toolbar__progress{
  min-height:8px;
}

.pm-toolbar__progress .pm_progress_bar,
.pm-toolbar__progress .progress,
.pm-toolbar__progress progress{
  width:100%;
}

.pm-toolbar__meta{
  color:var(--text-soft);
  font-size:13px;
  line-height:1.4;
  text-align:right;
}

/* section head */
.pm-section-head{
  padding:22px 22px 0;
  display:grid;
  gap:8px;
}

.pm-section-head__title{
  margin:0;
  color:var(--text);
  font-size:22px;
  line-height:1.1;
  font-weight:800;
  letter-spacing:-.03em;
}

.pm-section-head__text{
  color:var(--text-soft);
  font-size:14px;
  line-height:1.62;
}

/* list */
.pm-card--list{
  padding-bottom:22px;
}

.pm-list-shell{
  padding:18px 22px 0;
}

.pm-list-shell__inner{
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:20px;
  overflow:hidden;
}

/* generic DLE list fallback */
.pm-list-shell table{
  width:100%;
  border-collapse:collapse;
}

.pm-list-shell tr + tr td{
  border-top:1px solid var(--border);
}

.pm-list-shell td,
.pm-list-shell th{
  padding:14px 16px;
  color:var(--text);
  font-size:14px;
  line-height:1.55;
  text-align:left;
}

.pm-list-shell a{
  color:var(--text);
  text-decoration:none;
}

.pm-list-shell a:hover{
  color:var(--accent-main);
}

/* compose */
.pm-card--compose{
  padding-bottom:22px;
}

.pm-compose{
  padding:18px 22px 0;
  display:grid;
  gap:16px;
}

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

.pm-compose__group{
  display:grid;
  gap:8px;
  min-width:0;
}

.pm-compose__label{
  color:var(--text);
  font-size:13px;
  line-height:1.2;
  font-weight:700;
}

.pm-compose__input{
  width:100%;
  min-height:52px;
  padding:0 16px;
  background:var(--surface-2);
  color:var(--text);
  border:1px solid var(--border);
  border-radius:16px;
  font-size:15px;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.pm-compose__input:focus{
  background:var(--surface);
  border-color:var(--accent-main);
  box-shadow:0 0 0 3px var(--accent-main-soft);
}

.pm-compose__editor{
  padding:14px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:20px;
}

.pm-compose__editor > br{
  display:none;
}

.pm-compose__editor textarea{
  min-height:180px;
}

.pm-compose__recaptcha{
  display:grid;
  gap:10px;
}

.pm-compose__captcha{
  display:grid;
  grid-template-columns:auto minmax(0,1fr);
  gap:12px;
  align-items:center;
}

.pm-compose__captcha-image{
  flex:0 0 auto;
}

.pm-compose__footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.pm-compose__actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

.pm-compose__btn{
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:0 18px;
  border-radius:16px;
  cursor:pointer;
  text-decoration:none;
  font-size:14px;
  font-weight:700;
  line-height:1;
  transition:background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
}

.pm-compose__btn:active{
  transform:scale(.985);
}

.pm-compose__btn--primary{
  border:0;
  background:var(--accent-main);
  color:#fff;
}

.pm-compose__btn--primary:hover{
  background:var(--accent-main-hover);
}

.pm-compose__btn--ghost{
  border:1px solid var(--border);
  background:var(--surface-2);
  color:var(--text);
}

.pm-compose__btn--ghost:hover{
  background:var(--surface-3);
}

/* chat */
.pm-chat__head{
  padding:20px 22px;
  border-bottom:1px solid var(--border);
}

.pm-chat__head-main{
  display:flex;
  align-items:center;
  gap:14px;
  min-width:0;
}

.pm-chat__avatar{
  width:48px;
  height:48px;
  border-radius:16px;
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--accent-main-soft);
  color:var(--accent-main);
  font-size:18px;
}

.pm-chat__meta{
  min-width:0;
}

.pm-chat__title{
  margin:0;
  color:var(--text);
  font-size:20px;
  line-height:1.14;
  font-weight:800;
  letter-spacing:-.02em;
}

.pm-chat__sub{
  margin-top:4px;
  color:var(--text-soft);
  font-size:13px;
  line-height:1.5;
}

.pm-chat__body{
  display:grid;
  gap:14px;
  padding:20px 22px;
  background:
    linear-gradient(180deg, rgba(45,123,255,.02), rgba(45,123,255,0)),
    var(--surface);
}

.pm-message{
  display:grid;
  grid-template-columns:40px minmax(0,1fr);
  gap:12px;
  align-items:flex-start;
}

.pm-message__avatar{
  position:relative;
  width:40px;
  height:40px;
}

.pm-message__avatar-cover{
  width:40px;
  height:40px;
  display:block;
  border-radius:50%;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  background-color:var(--surface-2);
  font-size:0;
}

.pm-message__online{
  position:absolute;
  right:0;
  bottom:0;
  width:12px;
  height:12px;
  border-radius:50%;
  background:var(--success);
  border:2px solid var(--surface);
}

.pm-message__content{
  min-width:0;
  display:grid;
  gap:8px;
}

.pm-message__top{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px 12px;
}

.pm-message__author{
  color:var(--text);
  font-size:14px;
  line-height:1.2;
  font-weight:700;
}

.pm-message__date{
  color:var(--text-fade);
  font-size:12px;
  line-height:1.2;
}

.pm-message__bubble{
  max-width:min(780px, 100%);
  padding:14px 16px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:18px;
}

.pm-message__text{
  color:var(--text);
  font-size:14px;
  line-height:1.7;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.pm-message__signature{
  margin-top:10px;
  padding-top:10px;
  border-top:1px dashed var(--border);
  color:var(--text-soft);
  font-size:12px;
  line-height:1.55;
}

.pm-message__actions{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 14px;
}

.pm-message__action{
  color:var(--text-soft);
  font-size:13px;
  line-height:1.3;
  font-weight:500;
}

.pm-message__action a,
.pm-message__action i,
.pm-message__action span{
  color:inherit !important;
  font-style:normal;
  text-decoration:none;
}

.pm-message__action:hover{
  color:var(--accent-main);
}

.pm-message__action--danger:hover{
  color:var(--danger);
}

/* reply */
.pm-reply{
  border-top:1px solid var(--border);
  padding:20px 22px 22px;
  display:grid;
  gap:14px;
  background:var(--surface);
}

.pm-reply__head{
  display:block;
}

.pm-reply__title{
  margin:0;
  color:var(--text);
  font-size:18px;
  line-height:1.2;
  font-weight:800;
}

.pm-reply__editor{
  padding:14px;
  background:var(--surface-2);
  border:1px solid var(--border);
  border-radius:20px;
}

.pm-reply__editor textarea{
  min-height:160px;
}

.pm-reply__footer{
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

/* adaptive */
@media screen and (max-width:768px){
  .pm-card,
  .pm-chat{
    border-radius:22px;
  }

  .pm-card--hero{
    padding:20px 18px;
  }

  .pm-card__title{
    font-size:26px;
  }

  .pm-card__desc{
    font-size:14px;
    line-height:1.62;
  }

  .pm-toolbar{
    margin-top:16px;
    padding-top:14px;
  }

  .pm-toolbar__status{
    width:100%;
  }

  .pm-toolbar__meta{
    text-align:left;
  }

  .pm-section-head{
    padding:18px 18px 0;
  }

  .pm-list-shell,
  .pm-compose{
    padding:16px 18px 0;
  }

  .pm-compose__top{
    grid-template-columns:1fr;
  }

  .pm-compose__captcha{
    grid-template-columns:1fr;
    align-items:start;
  }

  .pm-chat__head,
  .pm-chat__body,
  .pm-reply{
    padding-left:18px;
    padding-right:18px;
  }
}

@media screen and (max-width:640px){
  .pm-page{
    gap:14px;
    margin-bottom:14px;
  }

  .pm-card,
  .pm-chat{
    border-radius:20px;
  }

  .pm-card--hero{
    padding:18px 14px;
  }

  .pm-card__badge{
    min-height:30px;
    padding:0 11px;
    font-size:11px;
  }

  .pm-card__title{
    font-size:22px;
    line-height:1.08;
  }

  .pm-card__desc{
    font-size:13px;
  }

  .pm-toolbar__tab{
    min-height:34px;
    padding:0 12px;
    font-size:12px;
  }

  .pm-section-head{
    padding:16px 14px 0;
  }

  .pm-section-head__title{
    font-size:18px;
  }

  .pm-list-shell,
  .pm-compose{
    padding:14px 14px 0;
  }

  .pm-list-shell td,
  .pm-list-shell th{
    padding:12px 12px;
    font-size:13px;
  }

  .pm-compose__input{
    min-height:48px;
    border-radius:15px;
    font-size:14px;
  }

  .pm-compose__editor,
  .pm-reply__editor{
    padding:12px;
    border-radius:18px;
  }

  .pm-compose__btn{
    min-height:44px;
    padding:0 14px;
    border-radius:14px;
    font-size:13px;
  }

  .pm-chat__head,
  .pm-chat__body,
  .pm-reply{
    padding-left:14px;
    padding-right:14px;
  }

  .pm-chat__title{
    font-size:18px;
  }

  .pm-message{
    grid-template-columns:34px minmax(0,1fr);
    gap:10px;
  }

  .pm-message__avatar,
  .pm-message__avatar-cover{
    width:34px;
    height:34px;
  }

  .pm-message__bubble{
    padding:12px 13px;
    border-radius:16px;
  }

  .pm-message__text{
    font-size:13px;
    line-height:1.65;
  }

  .pm-reply__title{
    font-size:16px;
  }
}


/* =========================================
   THEMES PAGE
   ========================================= */

.themes-page{
  display:grid;
  gap:18px;
  margin-bottom:18px;
}

.themes-hero{
  position:relative;
  overflow:hidden;
  padding:24px;
  background:
    radial-gradient(circle at 12% 18%, rgba(45,123,255,.12), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(155,234,60,.10), transparent 24%),
    linear-gradient(180deg, var(--surface), var(--surface));
  border:1px solid var(--border);
  border-radius:24px;
  box-shadow:var(--shadow-sm);
}

.theme-dark .themes-hero{
  background:
    radial-gradient(circle at 12% 18%, rgba(45,123,255,.16), transparent 30%),
    radial-gradient(circle at 84% 20%, rgba(155,234,60,.08), transparent 24%),
    linear-gradient(180deg, var(--surface), var(--surface));
}

.themes-hero__badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:32px;
  padding:0 12px;
  border-radius:999px;
  background:linear-gradient(90deg, var(--accent-main-soft), var(--accent-hot-soft));
  border:1px solid var(--border);
  color:var(--text);
  font-size:12px;
  line-height:1;
  font-weight:700;
}

.themes-hero__badge i{
  color:var(--accent-main);
  font-size:13px;
  line-height:1;
}

.themes-hero__title{
  margin:14px 0 0;
  color:var(--text);
  font-size:34px;
  line-height:1.04;
  letter-spacing:-.04em;
  font-weight:800;
}

.themes-hero__desc{
  max-width:760px;
  margin-top:10px;
  color:var(--text-soft);
  font-size:15px;
  line-height:1.68;
}

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

.theme-card{
  color:inherit;
  text-decoration:none;
}

.theme-card__inner{
  height:100%;
  display:grid;
  grid-template-columns:84px minmax(0,1fr);
  gap:16px;
  align-items:center;
  padding:18px;
  background:
    radial-gradient(circle at top right, rgba(45,123,255,.06), transparent 26%),
    radial-gradient(circle at left bottom, rgba(155,234,60,.06), transparent 24%),
    var(--surface);
  border:1px solid var(--border);
  border-radius:22px;
  box-shadow:var(--shadow-sm);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}

.theme-card:hover .theme-card__inner{
  transform:translateY(-2px);
  border-color:var(--border-strong);
  box-shadow:var(--shadow-md);
}

.theme-card__media{
  width:84px;
  height:84px;
  border-radius:22px;
  overflow:hidden;
  background:
    linear-gradient(180deg, var(--surface-2), var(--surface-2));
  border:1px solid var(--border);
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}

.theme-card__icon{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.theme-card__content{
  min-width:0;
  display:grid;
  gap:10px;
}

.theme-card__title{
  margin:0;
  color:var(--text);
  font-size:22px;
  line-height:1.12;
  letter-spacing:-.03em;
  font-weight:800;
  overflow-wrap:anywhere;
}

.theme-card__meta{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
  color:var(--text-soft);
  font-size:14px;
  line-height:1.45;
  font-weight:500;
}

.theme-card__action{
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:var(--accent-main);
  font-size:14px;
  line-height:1.2;
  font-weight:700;
}

.theme-card__action i{
  font-size:13px;
  line-height:1;
  transition:transform .18s ease;
}

.theme-card:hover .theme-card__action i{
  transform:translateX(2px);
}

@media screen and (max-width:980px){
  .themes-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width:768px){
  .themes-page{
    gap:14px;
    margin-bottom:14px;
  }

  .themes-hero{
    padding:18px;
    border-radius:22px;
  }

  .themes-hero__title{
    font-size:28px;
  }

  .themes-hero__desc{
    font-size:14px;
    line-height:1.62;
  }

  .themes-grid{
    gap:14px;
  }

  .theme-card__inner{
    grid-template-columns:72px minmax(0,1fr);
    gap:14px;
    padding:16px;
    border-radius:20px;
  }

  .theme-card__media{
    width:72px;
    height:72px;
    border-radius:18px;
  }

  .theme-card__title{
    font-size:19px;
  }

  .theme-card__meta{
    font-size:13px;
  }
}

@media screen and (max-width:640px){
  .themes-page{
    gap:12px;
    margin-bottom:12px;
  }

  .themes-hero{
    padding:14px;
    border-radius:20px;
  }

  .themes-hero__badge{
    min-height:30px;
    padding:0 11px;
    font-size:11px;
  }

  .themes-hero__title{
    margin-top:12px;
    font-size:24px;
    line-height:1.08;
  }

  .themes-hero__desc{
    margin-top:8px;
    font-size:13px;
  }

  .themes-grid{
    grid-template-columns:1fr;
    gap:12px;
  }

  .theme-card__inner{
    grid-template-columns:64px minmax(0,1fr);
    gap:12px;
    padding:14px;
    border-radius:18px;
  }

  .theme-card__media{
    width:64px;
    height:64px;
    border-radius:16px;
  }

  .theme-card__title{
    font-size:18px;
    line-height:1.14;
  }

  .theme-card__meta{
    font-size:13px;
  }

  .theme-card__action{
    font-size:13px;
  }
}


.about4he {
  --a4-bg: var(--bg-soft, #f8fafc);
  --a4-surface: var(--surface, #ffffff);
  --a4-surface-2: var(--surface-2, #f7f8fa);
  --a4-border: var(--border, #e6ebf2);
  --a4-text: var(--text-color, #101418);
  --a4-muted: var(--text-secondary, #667085);
  --a4-primary: var(--accent, #2d7bff);
  --a4-primary-hover: var(--accent-hover, #1f6ef5);
  --a4-lime: var(--accent-green, #9BEA3C);
  --a4-orange: var(--accent-orange, #ff8a1f);
  --a4-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  --a4-radius-xl: 28px;
  --a4-radius-lg: 22px;
  --a4-radius-md: 18px;

  color: var(--a4-text);
}


.about4he-pro {
  --a4p-surface: var(--surface, #ffffff);
  --a4p-surface-2: var(--surface-2, #f7f8fa);
  --a4p-border: var(--border, #e6ebf2);
  --a4p-text: var(--text-color, #101418);
  --a4p-muted: var(--text-secondary, #667085);
  --a4p-blue: var(--accent, #2d7bff);
  --a4p-blue-hover: var(--accent-hover, #1f6ef5);
  --a4p-lime: var(--accent-green, #9BEA3C);
  --a4p-orange: var(--accent-orange, #ff8a1f);
  --a4p-shadow: 0 18px 50px rgba(16, 24, 40, 0.08);
  --a4p-radius-xl: 28px;
  --a4p-radius-lg: 22px;
  --a4p-radius-md: 18px;

  color: var(--a4p-text);
}

.about4he-pro * {
  box-sizing: border-box;
}

.a4p-hero,
.a4p-story,
.a4p-block,
.a4p-grid,
.a4p-steps,
.a4p-quote,
.a4p-final {
  margin-bottom: 24px;
}

.a4p-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 20px;
  align-items: stretch;
}

.a4p-hero__content,
.a4p-mascot,
.a4p-story__main,
.a4p-story__side,
.a4p-block,
.a4p-card,
.a4p-steps,
.a4p-quote,
.a4p-final {
  background: var(--a4p-surface);
  border: 1px solid var(--a4p-border);
  border-radius: var(--a4p-radius-xl);
  box-shadow: var(--a4p-shadow);
}

.a4p-hero__content {
  position: relative;
  overflow: hidden;
  padding: 34px;
}

.a4p-hero__content:before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,123,255,.14) 0%, rgba(45,123,255,0) 72%);
  pointer-events: none;
}

.a4p-badge,
.a4p-label {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--a4p-blue);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 16px;
}

.a4p-title {
  margin: 0 0 14px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.03;
  letter-spacing: -0.03em;
  font-weight: 900;
  max-width: 820px;
}

.a4p-subtitle {
  margin: 0;
  max-width: 760px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--a4p-muted);
}

.a4p-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.a4p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: .2s ease;
}

.a4p-btn--primary {
  background: var(--a4p-blue);
  color: #fff;
}

.a4p-btn--primary:hover {
  background: var(--a4p-blue-hover);
  color: #fff;
  transform: translateY(-1px);
}

.a4p-btn--ghost {
  background: var(--a4p-surface-2);
  color: var(--a4p-text);
  border-color: var(--a4p-border);
}

.a4p-btn--ghost:hover {
  background: #eef4ff;
  border-color: rgba(45,123,255,.16);
  color: var(--a4p-blue);
  transform: translateY(-1px);
}

.a4p-inline-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.a4p-inline-points span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--a4p-border);
  background: var(--a4p-surface-2);
  font-size: 13px;
  font-weight: 700;
}

.a4p-mascot {
  position: relative;
  min-height: 100%;
  padding: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.a4p-mascot__bg {
  position: absolute;
  inset: auto;
  right: -60px;
  bottom: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155,234,60,.24) 0%, rgba(155,234,60,0) 70%);
  pointer-events: none;
}

.a4p-mascot__img {
  position: relative;
  z-index: 2;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.a4p-mascot__img img {
  display: block;
  max-width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.a4p-mascot__note {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.88);
  border: 1px solid var(--a4p-border);
  backdrop-filter: blur(8px);
}

.a4p-mascot__note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 15px;
}

.a4p-mascot__note p {
  margin: 0;
  color: var(--a4p-muted);
  font-size: 14px;
  line-height: 1.6;
}

.a4p-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--a4p-border);
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.08);
  font-size: 13px;
  font-weight: 800;
  backdrop-filter: blur(10px);
}

.a4p-float--1 { top: 22px; left: 18px; }
.a4p-float--2 { top: 70px; right: 20px; }
.a4p-float--3 { left: 14px; bottom: 130px; }
.a4p-float--4 { right: 14px; bottom: 118px; }
.a4p-float--5 { left: 50%; top: 18px; transform: translateX(-50%); }

.a4p-story {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
  gap: 16px;
}

.a4p-story__main,
.a4p-story__side {
  padding: 28px;
}

.a4p-story__main h2,
.a4p-block h2,
.a4p-final h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.a4p-story__main p,
.a4p-block__lead,
.a4p-final p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--a4p-muted);
}

.a4p-story__main p:last-child,
.a4p-final p:last-child {
  margin-bottom: 0;
}

.a4p-story__side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.a4p-mini-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: var(--a4p-radius-md);
  background: var(--a4p-surface-2);
  border: 1px solid var(--a4p-border);
}

.a4p-mini-card__icon {
  flex: 0 0 auto;
  min-width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--a4p-blue);
  font-size: 18px;
  font-weight: 900;
}

.a4p-mini-card__body strong {
  display: block;
  margin: 2px 0 6px;
  font-size: 16px;
}

.a4p-mini-card__body p {
  margin: 0;
  color: var(--a4p-muted);
  font-size: 14px;
  line-height: 1.65;
}

.a4p-block {
  padding: 30px;
}

.a4p-categories {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.a4p-tile {
  display: block;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--a4p-border);
  text-decoration: none;
  color: var(--a4p-text);
  transition: .2s ease;
}

.a4p-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(45,123,255,.18);
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
}

.a4p-tile__emoji {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 12px;
}

.a4p-tile__title {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 8px;
}

.a4p-tile__text {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: var(--a4p-muted);
}

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

.a4p-card {
  padding: 24px;
}

.a4p-card__icon {
  font-size: 30px;
  line-height: 1;
  margin-bottom: 14px;
}

.a4p-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.a4p-card p {
  margin: 0;
  color: var(--a4p-muted);
  font-size: 15px;
  line-height: 1.75;
}

.a4p-steps {
  padding: 10px;
}

.a4p-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
}

.a4p-step + .a4p-step {
  border-top: 1px solid var(--a4p-border);
}

.a4p-step__num {
  flex: 0 0 auto;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--a4p-blue);
  font-size: 16px;
  font-weight: 900;
}

.a4p-step__body h3 {
  margin: 4px 0 8px;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.a4p-step__body p {
  margin: 0;
  color: var(--a4p-muted);
  font-size: 15px;
  line-height: 1.75;
}

.a4p-quote {
  padding: 30px;
  background: linear-gradient(135deg, rgba(45,123,255,.06) 0%, rgba(155,234,60,.08) 100%);
}

.a4p-quote__emoji {
  font-size: 28px;
  margin-bottom: 14px;
}

.a4p-quote blockquote {
  margin: 0;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 900;
}

.a4p-final {
  padding: 32px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

@media (max-width: 980px) {
  .a4p-hero,
  .a4p-story {
    grid-template-columns: 1fr;
  }

  .a4p-categories,
  .a4p-grid {
    grid-template-columns: 1fr;
  }

  .a4p-mascot__img {
    min-height: 280px;
  }

  .a4p-mascot__img img {
    max-height: 280px;
  }
}

@media (max-width: 640px) {
  .a4p-hero__content,
  .a4p-mascot,
  .a4p-story__main,
  .a4p-story__side,
  .a4p-block,
  .a4p-card,
  .a4p-quote,
  .a4p-final {
    padding: 20px;
    border-radius: 22px;
  }

  .a4p-title {
    font-size: 28px;
  }

  .a4p-subtitle,
  .a4p-story__main p,
  .a4p-block__lead,
  .a4p-final p,
  .a4p-card p,
  .a4p-step__body p {
    font-size: 15px;
    line-height: 1.7;
  }

  .a4p-actions {
    flex-direction: column;
  }

  .a4p-btn {
    width: 100%;
  }

  .a4p-float {
    font-size: 12px;
    min-height: 34px;
    padding: 0 10px;
  }

  .a4p-step {
    padding: 14px;
  }

  .a4p-step__num {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    font-size: 14px;
  }

  .a4p-quote blockquote {
    font-size: 24px;
  }
}
.a4p-faq,
.a4p-seo {
  margin-bottom: 24px;
  background: var(--a4p-surface);
  border: 1px solid var(--a4p-border);
  border-radius: var(--a4p-radius-xl);
  box-shadow: var(--a4p-shadow);
}

.a4p-faq,
.a4p-seo {
  padding: 30px;
}

.a4p-faq h2,
.a4p-seo h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 900;
}

.a4p-faq__lead {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--a4p-muted);
}

.a4p-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.a4p-faq-item {
  border: 1px solid var(--a4p-border);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  overflow: hidden;
}

.a4p-faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.4;
}

.a4p-faq-item summary::-webkit-details-marker {
  display: none;
}

.a4p-faq-item summary i {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef4ff;
  color: var(--a4p-blue);
  font-style: normal;
  font-size: 16px;
  font-weight: 900;
  transition: transform .2s ease;
}

.a4p-faq-item[open] summary i {
  transform: rotate(45deg);
}

.a4p-faq-item__body {
  padding: 0 20px 20px;
  color: var(--a4p-muted);
  font-size: 15px;
  line-height: 1.8;
}

.a4p-seo__content {
  max-width: 980px;
}

.a4p-seo__content p {
  margin: 0 0 16px;
  color: var(--a4p-muted);
  font-size: 16px;
  line-height: 1.85;
}

.a4p-seo__content p:last-child {
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .a4p-faq,
  .a4p-seo {
    padding: 20px;
    border-radius: 22px;
  }

  .a4p-faq__lead,
  .a4p-seo__content p,
  .a4p-faq-item__body {
    font-size: 15px;
    line-height: 1.7;
  }

  .a4p-faq-item summary {
    padding: 16px;
    font-size: 15px;
  }

  .a4p-faq-item__body {
    padding: 0 16px 16px;
  }
}
.a4p-join {
  margin-bottom: 24px;
  padding: 30px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--a4p-border);
  border-radius: var(--a4p-radius-xl);
  box-shadow: var(--a4p-shadow);
  overflow: hidden;
}

.a4p-join__hero {
  position: relative;
  margin-bottom: 22px;
}

.a4p-join__hero h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 900;
  max-width: 860px;
}

.a4p-join__hero p {
  margin: 0;
  max-width: 860px;
  color: var(--a4p-muted);
  font-size: 16px;
  line-height: 1.85;
}

.a4p-join__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.a4p-join-tile {
  position: relative;
  display: block;
  min-height: 220px;
  padding: 20px;
  border-radius: 22px;
  text-decoration: none;
  color: var(--a4p-text);
  border: 1px solid var(--a4p-border);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.04);
}

.a4p-join-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(16, 24, 40, 0.08);
  border-color: rgba(45,123,255,.18);
}

.a4p-join-tile:before {
  content: "";
  position: absolute;
  right: -40px;
  bottom: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  opacity: .9;
  pointer-events: none;
}

.a4p-join-tile__emoji {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(10px);
  font-size: 26px;
  line-height: 1;
  margin-bottom: 14px;
}

.a4p-join-tile__title {
  position: relative;
  z-index: 2;
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.a4p-join-tile__text {
  position: relative;
  z-index: 2;
  display: block;
  color: rgba(16, 20, 24, 0.78);
  font-size: 14px;
  line-height: 1.7;
  max-width: 260px;
}

.a4p-join-tile--meme {
  background: linear-gradient(180deg, #fffaf0 0%, #fff3d7 100%);
}

.a4p-join-tile--meme:before {
  background: radial-gradient(circle, rgba(255,138,31,.22) 0%, rgba(255,138,31,0) 72%);
}

.a4p-join-tile--video {
  background: linear-gradient(180deg, #f3f8ff 0%, #e9f1ff 100%);
}

.a4p-join-tile--video:before {
  background: radial-gradient(circle, rgba(45,123,255,.18) 0%, rgba(45,123,255,0) 72%);
}

.a4p-join-tile--photo {
  background: linear-gradient(180deg, #f8fff2 0%, #eefcd9 100%);
}

.a4p-join-tile--photo:before {
  background: radial-gradient(circle, rgba(155,234,60,.22) 0%, rgba(155,234,60,0) 72%);
}

.a4p-join-tile--facts {
  background: linear-gradient(180deg, #fbf7ff 0%, #f1eafe 100%);
}

.a4p-join-tile--facts:before {
  background: radial-gradient(circle, rgba(138, 92, 246, .16) 0%, rgba(138, 92, 246, 0) 72%);
}

@media (max-width: 1100px) {
  .a4p-join__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .a4p-join {
    padding: 20px;
    border-radius: 22px;
  }

  .a4p-join__hero h2 {
    font-size: 26px;
  }

  .a4p-join__hero p {
    font-size: 15px;
    line-height: 1.7;
  }

  .a4p-join__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .a4p-join-tile {
    min-height: 0;
    padding: 18px;
    border-radius: 20px;
  }

  .a4p-join-tile__title {
    font-size: 20px;
  }

  .a4p-join-tile__text {
    font-size: 14px;
    line-height: 1.65;
  }
}
