/* =====================================================================
   PROBUSINESS — mobile partial: ЛИЧНЫЙ КАБИНЕТ (Figma 1:3436),
   ПОДРОБНЕЕ / тариф (1:3793), НАСТРОЙКИ ПРОФИЛЯ (1:4187), ДОБАВИТЬ ПОСТ (1:4001)
   Страницы: /account (body.pbm-page-profile), профиль edit (body.pbm-page-profile-edit),
             /add-post (body.pbm-page-add-post)
   Токены и общие блоки (topbar, pagehead, футер, bottomnav) — в mobile.css.
   ВНИМАНИЕ: страницы доступны только авторизованным, на проде гостем не проверяются.
   ===================================================================== */
@media (max-width:1085px){

/* =====================================================================
   ОБЩЕЕ ДЛЯ ТРЁХ ЭКРАНОВ
   ===================================================================== */
body.pbm.pbm-page-profile #system-message-container:empty,
body.pbm.pbm-page-profile-edit #system-message-container:empty,
body.pbm.pbm-page-add-post #system-message-container:empty{display:none;}

body.pbm.pbm-page-profile .item-page__info,
body.pbm.pbm-page-profile-edit .item-page__info,
body.pbm.pbm-page-add-post .item-page__info{display:none;}

/* в макетах этих экранов между TOP BAR и строкой «назад + заголовок» ничего нет */
body.pbm.pbm-page-profile .header-buttons.custom,
body.pbm.pbm-page-profile ul.menu-icons,
body.pbm.pbm-page-profile-edit .header-buttons.custom,
body.pbm.pbm-page-profile-edit ul.menu-icons,
body.pbm.pbm-page-add-post .header-buttons.custom,
body.pbm.pbm-page-add-post ul.menu-icons{display:none!important;}

/* clearfix-псевдоэлементы ломают flex/grid-раскладку карточек */
body.pbm.pbm-page-profile .clearfix::before,
body.pbm.pbm-page-profile .clearfix::after,
body.pbm.pbm-page-profile-edit .clearfix::before,
body.pbm.pbm-page-profile-edit .clearfix::after,
body.pbm.pbm-page-add-post .clearfix::before,
body.pbm.pbm-page-add-post .clearfix::after{display:none!important;content:none!important;}

/* template.css вешает на колонку border-right 1px — рабочая ширина становится 387 вместо 388 (макет) */
body.pbm.pbm-page-profile .content_block.column-left,
body.pbm.pbm-page-profile-edit .content_block.column-left,
body.pbm.pbm-page-add-post .content_block.column-left{border-right:0!important;}

/* подсказка «Поля, отмеченные звездочкой…» (1:4221 / 1:4040): Museo 300 12 #6b7280, ширина 374 */
body.pbm.pbm-page-profile-edit .pbm-hint,
body.pbm.pbm-page-add-post .pbm-hint{
    display:block;width:374px;max-width:100%;margin:0;padding:0;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:normal;color:var(--pb-muted);
}

/* лейбл поля (Museo 500 12 #6b7280) */
body.pbm.pbm-page-profile-edit .pbm-lbl,
body.pbm.pbm-page-add-post .pbm-lbl{
    display:block;margin:0;padding:0;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:14px;color:var(--pb-muted);white-space:normal;
}

/* чекбокс-строка (компонент 1:402 + подпись Museo 500 12 #000) */
body.pbm.pbm-page-profile-edit .pbm-check,
body.pbm.pbm-page-add-post .pbm-check{
    display:flex;align-items:center;gap:10px;width:auto;max-width:100%;margin:0;padding:10px 0;
    border:0;background:none;cursor:pointer;text-align:left;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:normal;color:#000;
}
body.pbm.pbm-page-profile-edit .pbm-check__box,
body.pbm.pbm-page-add-post .pbm-check__box{
    flex:none;display:block;width:25px;height:25px;margin:0;padding:0;
    border:1px solid #e1e5ea;border-radius:8px;background:#fff no-repeat center/25px 25px;
}
body.pbm.pbm-page-profile-edit .pbm-check.checked .pbm-check__box,
body.pbm.pbm-page-add-post .pbm-check.checked .pbm-check__box{
    border-color:transparent;background-image:url(/templates/moneyhouse_new/images/m/check.svg);
}
body.pbm.pbm-page-profile-edit .pbm-check__text,
body.pbm.pbm-page-add-post .pbm-check__text{display:block;white-space:normal;}

/* =====================================================================
   1. ЛИЧНЫЙ КАБИНЕТ — body.pbm-page-profile (1:3436)
   ===================================================================== */
/* .content_block.column-left из template.css несёт border-right:1px — он съедает 1 px
   рабочей ширины (388→387). В макете рабочая область 388. */
body.pbm.pbm-page-profile .content_block.column-left{border:0;}
body.pbm.pbm-page-profile .profile{
    display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0 0 91px;padding:0;
}
body.pbm.pbm-page-profile .profile > .page-header{display:none;}

/* .profile-head раскрываем: h2 в макете нет (заголовок в .pbm-pagehead), кнопки идут отдельными строками */
body.pbm.pbm-page-profile .profile-head{display:contents;}
body.pbm.pbm-page-profile .profile-head .mainheading{display:none;}

/* --- 1.1 карточка профиля (1:3478): аватар 80 + имя/должность/«Подробнее»+шестерёнка --- */
body.pbm.pbm-page-profile .account-wrapp{
    order:1;display:grid;grid-template-columns:80px minmax(0,1fr);column-gap:16px;
    align-content:space-between;min-height:92px;width:100%;margin:12px 0 0;padding:0;float:none;
}
body.pbm.pbm-page-profile .account-left,
body.pbm.pbm-page-profile .account-right{display:contents;}
body.pbm.pbm-page-profile img.account-avatar{
    grid-row:1/4;grid-column:1;align-self:center;
    display:block;width:80px;height:80px;margin:0;padding:0;border-radius:50%;object-fit:cover;background:var(--pb-light);
}
/* имя (1:3482): Museo 700 16 #000 */
body.pbm.pbm-page-profile .account-name{
    grid-row:1;grid-column:2;align-self:center;
    margin:0;padding:0;background:none;text-align:left;
    font-family:var(--pb-font);font-weight:700;font-size:16px;line-height:normal;color:#000;
}
/* должность = поле «Статус» (1:3484): Museo 500 14 #08a5c5 */
body.pbm.pbm-page-profile .account-info_status{
    grid-row:2;grid-column:2;align-self:center;
    margin:0;padding:0 1px;
    font-family:var(--pb-font);font-weight:500;font-size:14px;color:var(--pb-accent);
    font-size:0;line-height:0; /* гасим strut контейнера: высоту строк задаёт span (17px) */
}
body.pbm.pbm-page-profile .account-info_status span{
    font-family:var(--pb-font);font-weight:500;font-size:14px;line-height:17px;color:var(--pb-accent);
}
/* строка «ⓘ Подробнее … ⚙» (1:3485) */
body.pbm.pbm-page-profile .account-right_head{
    grid-row:3;grid-column:2;align-self:center;
    display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:0;
    text-transform:none;float:none;
}
body.pbm.pbm-page-profile .account-right_head h3{display:none;}
/* «Подробнее» (1:3487): иконка 16 + Museo 500 14 #b8b8b8, gap 7 */
body.pbm.pbm-page-profile .pbm-more{
    display:flex;align-items:center;gap:7px;width:114px;margin:0;padding:0;border:0;background:none;cursor:pointer;
    font-family:var(--pb-font);font-weight:500;font-size:14px;line-height:normal;color:#b8b8b8;text-align:left;
}
body.pbm.pbm-page-profile .pbm-more::before{
    content:"";flex:none;display:block;width:16px;height:16px;
    background:url(/templates/moneyhouse_new/images/m/ic-info.svg) no-repeat center/16px 16px;
}
/* шестерёнка (1:3490): 20×20 */
body.pbm.pbm-page-profile a.btn-account-setting{
    flex:none;display:block;width:20px;height:20px;margin:0;padding:0;float:none;opacity:1;
    font-size:0;line-height:0;color:transparent;overflow:hidden;
    background:url(/templates/moneyhouse_new/images/m/ic-settings.svg) no-repeat center/20px 20px;
}
body.pbm.pbm-page-profile a.btn-account-setting i{display:none;}
/* на сайте есть, в макете нет */
body.pbm.pbm-page-profile .account-info_date,
body.pbm.pbm-page-profile .account-links,
body.pbm.pbm-page-profile .account-social{display:none!important;}

/* --- 1.2 кнопка «+ Написать в блог» (1:3492): 387×43, pill, #08a5c5 --- */
body.pbm.pbm-page-profile a.btn-green-small{
    order:2;position:relative;display:flex;align-items:center;justify-content:center;gap:5px;
    width:100%;height:43px;margin:12px 0 30px;padding:10px;float:none;
    border:0;border-radius:9999px;background:var(--pb-accent);box-shadow:none;
    font-family:var(--pb-font);font-weight:700;font-size:13px;line-height:normal;color:#fff!important;
    text-decoration:none!important;text-transform:none;text-align:center;white-space:nowrap;
}
body.pbm.pbm-page-profile a.btn-green-small::before{
    content:"+";flex:none;display:block;width:10px;height:23px;text-align:center;
    font-family:var(--pb-font);font-weight:300;font-size:24px;line-height:23px;color:#fff;
}
/* сплошная линия под кнопкой на всю ширину экрана (1:3491) */
body.pbm.pbm-page-profile a.btn-green-small::after{
    content:"";position:absolute;left:-16px;right:-16px;bottom:-15px;height:1px;background:var(--pb-border);
}

/* --- 1.3 «ПРЕДСТАВЛЯЕМЫЕ КОМПАНИИ (N)» (1:3791) --- */
body.pbm.pbm-page-profile section.account-company{order:3;display:contents;}
body.pbm.pbm-page-profile .account-company__title{
    order:3;margin:0 0 21px;padding:0;
    font-family:var(--pb-font);font-weight:700;font-size:16px;line-height:19px;color:var(--pb-accent);
    text-transform:uppercase;white-space:normal;
}
/* --- 1.4 список компаний (1:3760): рамка 1 #e5e7eb r12, padding 10, строки 50 --- */
body.pbm.pbm-page-profile .account-company__list{
    order:4;display:flex;flex-direction:column;gap:10px;
    width:100%;margin:0;padding:10px 10px 0;list-style:none;
    /* рамка через inset-тень: в Figma stroke не увеличивает бокс, а CSS-border добавлял 2px к высоте */
    border:0;box-shadow:inset 0 0 0 1px var(--pb-border);border-radius:12px;background:#fff;
    font-size:12px;line-height:normal;
}
body.pbm.pbm-page-profile .account-company__item{
    display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
    width:100%;height:50px;margin:0;padding:0;border-bottom:1px solid var(--pb-border);list-style:none;
}
body.pbm.pbm-page-profile .account-company__item:last-child{border-bottom:0;}
body.pbm.pbm-page-profile .account-company__item table,
body.pbm.pbm-page-profile .account-company__item tbody,
body.pbm.pbm-page-profile .account-company__item tr{display:contents;}
body.pbm.pbm-page-profile .account-company__item td{display:none;}
body.pbm.pbm-page-profile .pbm-co{display:flex;align-items:center;gap:10px;height:40px;min-width:0;flex:1;}
body.pbm.pbm-page-profile .pbm-co__logo{
    flex:none;display:block;width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--pb-light);
}
body.pbm.pbm-page-profile .pbm-co__name{
    min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    font-family:var(--pb-font);font-weight:700;font-size:12px;line-height:14px;color:#000!important;text-decoration:none!important;
}
/* кнопка «Подробнее» в строке (1:3765): 86×24, border 1 #c5c5c5, r10, Museo 500 12 #c5c5c5 */
body.pbm.pbm-page-profile .pbm-co__btn{
    flex:none;display:flex;align-items:center;justify-content:center;width:86px;height:24px;margin:8px 0 0;padding:5px 10px;
    border:1px solid #c5c5c5;border-radius:10px;background:#fff;overflow:hidden;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:normal;color:#c5c5c5!important;
    text-decoration:none!important;white-space:nowrap;
}
/* пустое состояние (на сайте есть, в макете нет) */
body.pbm.pbm-page-profile section.account-company > p{
    order:4;margin:0;padding:0;font-family:var(--pb-font);font-weight:300;font-size:13px;line-height:18px;color:var(--pb-text);
}
body.pbm.pbm-page-profile section.account-company > p a{color:var(--pb-accent)!important;}

/* --- 1.5 кнопка «Добавить компанию» (1:3495): 387×36, r8, #08a5c5 --- */
body.pbm.pbm-page-profile a.pbm-add-company{
    order:5;display:flex;align-items:center;justify-content:center;width:100%;height:36px;margin:14px 0 0;padding:8px 20px;
    border:0;border-radius:8px;background:var(--pb-accent);
    font-family:var(--pb-font);font-weight:700;font-size:17.067px;line-height:normal;color:#fff!important;
    text-decoration:none!important;text-align:center;white-space:nowrap;
}

/* --- 1.6 табы «Мои публикации / Мои черновики» (1:3470) --- */
body.pbm.pbm-page-profile .account-menu{
    order:6;display:flex;align-items:flex-start;gap:7px;width:100%;height:45px;margin:7px 0 0;padding:8.5px 0 0;justify-content:flex-start;
}
body.pbm.pbm-page-profile .account-menu a{
    display:block;height:auto;line-height:normal;margin:0;padding:1px 0;background:none;border:0;border-radius:0;
    font-family:var(--pb-font);font-weight:700;font-size:14px;color:var(--pb-muted)!important;
    text-transform:none;text-decoration:none!important;white-space:nowrap;
}
body.pbm.pbm-page-profile .account-menu a:first-child{color:var(--pb-muted)!important;background:none;}
body.pbm.pbm-page-profile .account-menu a i{display:none;}
body.pbm.pbm-page-profile .account-menu a.pbm-hidden{display:none!important;}
body.pbm.pbm-page-profile .account-menu a.pbm-tab-active{
    position:relative;color:var(--pb-text)!important;
}
body.pbm.pbm-page-profile .account-menu a.pbm-tab-active::after{
    content:"";position:absolute;left:0;right:0;bottom:-11px;height:6px;border-radius:3px;background:var(--pb-accent);
}

/* --- «Выйти» (в макете не нарисована) — в конец, вторичная кнопка --- */
body.pbm.pbm-page-profile a.btn-grey#btn-logout{
    order:9;display:flex;align-items:center;justify-content:center;width:100%;height:36px;margin:34px 0 0;padding:8px 20px;float:none;
    border:1px solid var(--pb-border);border-radius:8px;background:#fff;box-shadow:none;
    font-family:var(--pb-font);font-weight:700;font-size:14px;line-height:normal;color:var(--pb-muted)!important;
    text-decoration:none!important;text-transform:none;text-align:center;
}

/* --- 1.7 лента материалов пользователя (1:3565): выводится PHP-патчем PBM-POSTS --- */
body.pbm.pbm-page-profile .account-posts{order:8;display:flex;flex-direction:column;width:100%;margin:15px 0 0;}
body.pbm.pbm-page-profile .account-posts__list{display:flex;flex-direction:column;gap:20px;}
body.pbm.pbm-page-profile .account-posts__list[hidden]{display:none;}
body.pbm.pbm-page-profile .account-posts__empty{
    margin:0;padding:24px 0;text-align:center;
    font-family:var(--pb-font);font-weight:300;font-size:14px;color:var(--pb-muted);
}
body.pbm.pbm-page-profile .pbm-mypost{
    display:flex;flex-direction:column;gap:0;margin:0;padding:0;
    background:#fff;border-radius:10px;box-shadow:var(--pb-shadow-card);overflow:hidden;
}
/* ряд «бейдж типа + дата» (1:3570): h 29, padding 0 10; бейдж Museo 100/12 #000, дата 300/12 #6b7280 */
body.pbm.pbm-page-profile .pbm-mypost__head{
    display:flex;align-items:center;justify-content:space-between;gap:10px;height:29px;padding:0 10px;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:normal;color:var(--pb-muted);
}
body.pbm.pbm-page-profile .pbm-mypost__type{
    font-family:var(--pb-font);font-weight:100;font-size:12px;line-height:normal;color:#000;white-space:nowrap;
}
body.pbm.pbm-page-profile .pbm-mypost__date{white-space:nowrap;}
/* картинка (1:3575): 388×151 сразу под рядом, подложка #d9d9d9 как в 10.2–10.4 */
body.pbm.pbm-page-profile .pbm-mypost__img{display:block;width:100%;height:151px;margin:0;overflow:hidden;background:#d9d9d9;}
body.pbm.pbm-page-profile .pbm-mypost__img img{width:100%;height:100%;object-fit:cover;display:block;}
/* заголовок (1:3578): Museo 700 18 #1e1e1e, padding 0 10, отступ сверху 10 */
body.pbm.pbm-page-profile .pbm-mypost__title{
    margin:10px 0 0;padding:0 10px;
    font-family:var(--pb-font);font-weight:700;font-size:18px;line-height:26.5px;color:var(--pb-text);
}
body.pbm.pbm-page-profile .pbm-mypost__title a{color:var(--pb-text)!important;text-decoration:none!important;font:inherit;}
/* ряд иконок (1:3585): padding 11px 10px, счётчик Museo 500 12 #6b7280, gap до иконки 1 */
body.pbm.pbm-page-profile .pbm-mypost__footer{display:flex;align-items:flex-start;gap:20px;margin:3px 0 0;padding:11px 10px;}
body.pbm.pbm-page-profile .pbm-mypost__views{
    display:flex;align-items:center;gap:1px;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:14px;color:var(--pb-muted);
}
body.pbm.pbm-page-profile .pbm-mypost__views::before{
    content:"";width:24px;height:14px;background:url(/templates/moneyhouse_new/images/m/ic-eye.svg) no-repeat center/contain;
}

/* =====================================================================
   2. ПОПАП «ПОДРОБНЕЕ» / тариф (1:3793) — шторка снизу
   ===================================================================== */
body.pbm .pbm-sheet{
    position:fixed;left:0;right:0;top:0;bottom:0;z-index:210;
    display:none;align-items:flex-end;background:rgba(20,25,35,.45);
}
body.pbm .pbm-sheet.open{display:flex;}
body.pbm .pbm-sheet__card{
    width:100%;max-height:88%;overflow-y:auto;padding:0 15px 30px;
    background:#fff;border-radius:27px 27px 0 0;
}
/* шапка (1:3796): h 60, pt 10, border-bottom 1 #e5e7eb */
body.pbm .pbm-sheet__head{
    display:flex;align-items:center;gap:10px;height:60px;padding:10px 0 1px;
    border-bottom:1px solid var(--pb-border);
}
body.pbm .pbm-sheet__close{
    flex:none;display:block;width:32px;height:32px;margin:0;padding:0;border:0;cursor:pointer;
    background:url(/templates/moneyhouse_new/images/m/ic-close-accent.svg) no-repeat center/32px 32px;
    font-size:0;line-height:0;color:transparent;
}
body.pbm .pbm-sheet__title{
    font-family:var(--pb-font);font-weight:700;font-size:20px;line-height:normal;color:var(--pb-text);white-space:nowrap;
}
/* тело (1:3800): column gap 10, отступ сверху 10 */
body.pbm .pbm-sheet__body{display:flex;flex-direction:column;gap:10px;padding:10px 0 0;}
body.pbm .pbm-sheet__row{display:flex;align-items:flex-start;gap:10px;}
body.pbm .pbm-sheet__row::before{
    content:"";flex:none;display:block;width:20px;height:20px;background:no-repeat center/20px 20px;
}
body.pbm .pbm-sheet__row--date::before{background-image:url(/templates/moneyhouse_new/images/m/ic-calendar.svg);}
body.pbm .pbm-sheet__row--tariff::before{background-image:url(/templates/moneyhouse_new/images/m/ic-star.svg);}
body.pbm .pbm-sheet__col{display:flex;flex-direction:column;gap:10px;padding:4px 0;}
/* в колонке тарифа строки без py-px (1:3807: 52 = 4+17+10+17+4) */
body.pbm .pbm-sheet__col .pbm-sheet__txt{padding:0;}
body.pbm .pbm-sheet__txt{
    margin:0;padding:1px 0;
    font-family:var(--pb-font);font-weight:500;font-size:14px;line-height:17px;color:var(--pb-muted);
}
body.pbm .pbm-sheet__txt b{font-weight:500;color:var(--pb-text);}
body.pbm .pbm-sheet__txt--accent{color:var(--pb-accent);}
/* кнопка «ОПЛАТИТЬ ТАРИФ» (1:3811): 225×36, pill, Museo 700 13 white, отступ слева 31 */
body.pbm .pbm-sheet__btnwrap{padding:0 31px;}
body.pbm a.pbm-sheet__btn{
    display:flex;align-items:center;justify-content:center;width:225px;max-width:100%;height:36px;padding:10px;
    border-radius:9999px;background:var(--pb-accent);
    font-family:var(--pb-font);font-weight:700;font-size:13px;line-height:normal;color:#fff!important;
    text-decoration:none!important;text-align:center;white-space:nowrap;
}

/* =====================================================================
   3. НАСТРОЙКИ ПРОФИЛЯ — body.pbm-page-profile-edit (1:4187)
   ===================================================================== */
body.pbm.pbm-page-profile-edit .profile-edit > .page-header,
body.pbm.pbm-page-profile-edit .profile-edit .mainheading{display:none;}
body.pbm.pbm-page-profile-edit form#member-profile{
    display:flex;flex-direction:column;align-items:stretch;gap:18px;
    width:100%;margin:12px 0 91px;padding:0;background:none;border:0;box-shadow:none;
}
body.pbm.pbm-page-profile-edit form#member-profile fieldset{margin:0;padding:0;border:0;min-width:0;}
body.pbm.pbm-page-profile-edit form#member-profile > .control-group{
    margin:0;padding:0;width:100%;min-width:0;float:none;order:25;
}
body.pbm.pbm-page-profile-edit form#member-profile > .control-group > .control-label{display:none;}
body.pbm.pbm-page-profile-edit form#member-profile > .control-group > .controls{margin:0;padding:0;width:100%;}
/* «* Обязательное поле» из ядра: пустая группа даёт лишние 18 px gap, а текст макета даёт .pbm-hint */
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-spacer{display:none!important;}

/* порядок полей как в макете */
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-hint{order:1;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-username{order:2;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-name{order:3;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-email1{order:4;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-email2{order:5;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-password1{order:6;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-password2{order:7;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-keys,
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-keys{order:8;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-telegram_link{order:9;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-whatsapp_link{order:10;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-strana{order:11;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-city{order:12;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-status{order:13;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-avatar{order:14;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-show_agent{order:15;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-submit{order:40;}

/* поля, которых в макете нет (дата регистрации, язык/редактор из fieldset params, поля плагинов):
   уходят в конец (order 25) и показывают лейбл — иначе безымянный инпут не прочитать */
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-extra > .control-label{display:block;margin:0 0 6px;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-extra > .control-label label{
    display:block;margin:0;padding:0;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:14px;color:var(--pb-muted);
}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-extra > .control-label label .star{color:var(--pb-accent);}

/* инпут (1:4222): 388×36, border 1 #e5e7eb, r8, padding 10, плейсхолдер Museo 300 12 #6b7280 */
body.pbm.pbm-page-profile-edit form#member-profile input.form-control,
body.pbm.pbm-page-profile-edit form#member-profile input[type="text"],
body.pbm.pbm-page-profile-edit form#member-profile input[type="email"],
body.pbm.pbm-page-profile-edit form#member-profile input[type="password"]{
    display:block;width:100%;height:36px;margin:0;padding:10px;
    border:1px solid var(--pb-border);border-radius:8px;background:#fff;box-shadow:none;outline:0;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:normal;color:var(--pb-text);
    -webkit-appearance:none;appearance:none;
}
/* select (язык/редактор из fieldset params, поля-списки плагинов) — тот же инпут + шеврон */
body.pbm.pbm-page-profile-edit form#member-profile select,
body.pbm.pbm-page-profile-edit form#member-profile select.form-select{
    display:block;width:100%;height:36px;margin:0;padding:10px 32px 10px 10px;
    border:1px solid var(--pb-border);border-radius:8px;box-shadow:none;outline:0;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:normal;color:var(--pb-text);
    -webkit-appearance:none;appearance:none;
    background:#fff url(/templates/moneyhouse_new/images/m/select-chevron.svg) no-repeat right 10px center/12px 7px;
}
body.pbm.pbm-page-profile-edit form#member-profile textarea{
    display:block;width:100%;min-height:111px;margin:0;padding:10px;resize:vertical;
    border:1px solid var(--pb-border);border-radius:8px;background:#fff;box-shadow:none;outline:0;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:normal;color:var(--pb-text);
}
body.pbm.pbm-page-profile-edit form#member-profile textarea::placeholder{color:var(--pb-muted);opacity:1;}
body.pbm.pbm-page-profile-edit form#member-profile input::placeholder{color:var(--pb-muted);opacity:1;}
body.pbm.pbm-page-profile-edit form#member-profile input:focus,
body.pbm.pbm-page-profile-edit form#member-profile select:focus,
body.pbm.pbm-page-profile-edit form#member-profile textarea:focus{border-color:var(--pb-accent);}
body.pbm.pbm-page-profile-edit form#member-profile input.invalid{border-color:#b34545;}
/* скрытый анти-автозаполнение инпут из edit.php */
body.pbm.pbm-page-profile-edit form#member-profile input[style*="display:none"]{display:none!important;}

/* подсказка про пароль (1:4228) над полем */
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-password1 > .controls{display:flex;flex-direction:column;gap:18px;}
body.pbm.pbm-page-profile-edit form#member-profile .small.text-muted,
body.pbm.pbm-page-profile-edit form#member-profile [id$="-rules"]{
    display:block;width:374px;max-width:100%;margin:0;padding:0;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:normal;color:var(--pb-muted);
}
body.pbm.pbm-page-profile-edit form#member-profile .password-group{margin:0;padding:0;width:100%;}
body.pbm.pbm-page-profile-edit form#member-profile .password-group .input-group{display:block;position:relative;width:100%;margin:0;padding:0;}
body.pbm.pbm-page-profile-edit form#member-profile .password-group input{padding-right:40px;}
/* иконка «глаз» (1:4231): 20×12.5 справа */
body.pbm.pbm-page-profile-edit form#member-profile .input-group .btn.input-password-toggle{
    display:block!important;position:absolute;right:10px;top:50%;width:20px;height:12.5px;margin:0;padding:0;transform:translateY(-50%);
    border:0;border-radius:0;box-shadow:none;cursor:pointer;font-size:0;line-height:0;color:transparent;
    background:url(/templates/moneyhouse_new/images/m/eye.svg) no-repeat center/20px 12.5px;
}
body.pbm.pbm-page-profile-edit form#member-profile .input-password-toggle > span{display:none!important;}
body.pbm.pbm-page-profile-edit form#member-profile .password-group .progress{height:4px;margin:6px 0 0;border-radius:2px;background:var(--pb-border);overflow:hidden;}
body.pbm.pbm-page-profile-edit form#member-profile .password-group .progress .progress-bar{height:4px;font-size:0;color:transparent;background:var(--pb-accent);}

/* --- аватар (1:4278…1:4282) --- */
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-avatar > .control-label{display:block;margin:0 0 18px;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-avatar > .control-label label{
    display:block;margin:0;padding:0;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:14px;color:var(--pb-muted);
}
body.pbm.pbm-page-profile-edit form#member-profile .subform-wrapper{display:flex;flex-direction:column;gap:18px;width:100%;}
body.pbm.pbm-page-profile-edit form#member-profile .subform-wrapper > .control-group{margin:0;padding:0;width:100%;float:none;}
body.pbm.pbm-page-profile-edit form#member-profile .subform-wrapper > .control-group > .control-label{display:none;}
body.pbm.pbm-page-profile-edit form#member-profile joomla-field-media{display:flex;flex-direction:column;gap:18px;width:100%;}
/* превью 200×200 по центру (1:4280): border 1 #e5e7eb, r5, padding 10 */
body.pbm.pbm-page-profile-edit form#member-profile .field-media-preview{
    display:flex!important;align-items:center;justify-content:center;width:100%;height:auto;margin:0;padding:0;
    background:none;border:0;overflow:visible;
}
body.pbm.pbm-page-profile-edit form#member-profile .field-media-preview .preview_img{
    display:block;width:200px;height:200px;padding:0;border:1px solid var(--pb-border);border-radius:5px;
    background:#fff;overflow:hidden;
}
body.pbm.pbm-page-profile-edit form#member-profile .field-media-preview img.media-preview{
    display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;
    border-radius:5px;object-fit:cover;background:url(/templates/moneyhouse_new/images/m/ph-avatar.svg) no-repeat center/cover;
}
body.pbm.pbm-page-profile-edit form#member-profile .field-media-preview .preview_empty{
    display:flex;align-items:center;justify-content:center;width:200px;height:200px;padding:10px;
    border:1px solid var(--pb-border);border-radius:5px;
    background:url(/templates/moneyhouse_new/images/m/ph-avatar.svg) no-repeat center/180px 180px;
    font-size:0;color:transparent;
}
/* строка с путём к файлу в макете не нарисована */
body.pbm.pbm-page-profile-edit form#member-profile joomla-field-media .input-group{display:flex;width:100%;margin:0;padding:0;}
body.pbm.pbm-page-profile-edit form#member-profile input.field-media-input,
body.pbm.pbm-page-profile-edit form#member-profile joomla-field-media .button-clear{display:none!important;}
/* «Выбрать изображение» (1:4281): 388×34, r8, #08a5c5, Arial Bold 16 white */
body.pbm.pbm-page-profile-edit form#member-profile joomla-field-media .button-select{
    display:flex!important;align-items:center;justify-content:center;width:100%;height:34px;margin:0;padding:8px 20px!important;
    border:0!important;border-radius:8px;background:var(--pb-accent)!important;cursor:pointer!important;box-shadow:none;
    font-family:var(--pb-font-import);font-weight:700;font-size:16px;line-height:normal;color:#fff!important;text-transform:none;
}
/* «Описание» (alt_text) — в макете текстовая область 388×111 */
body.pbm.pbm-page-profile-edit form#member-profile input#jform_com_fields__avatar__alt_text{
    height:111px;padding:10px 10px 85px;
}
/* «Без описания» в макете не нарисовано */
body.pbm.pbm-page-profile-edit form#member-profile .subform-wrapper > .control-group:last-child{display:none;}

/* --- чекбокс «Отображать агента…» (1:4285) --- */
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-show_agent > .controls{display:block;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-show_agent fieldset.radio{display:none!important;}

/* --- ключи доступа PASSKEYS (1:4235…1:4263) ---
   Блок появляется только если plg_system_webauthn отдаёт своё поле в форму профиля:
   mobile-account.js переносит из него строки и живые кнопки в разметку макета. Если плагина нет —
   блока нет, стили просто не срабатывают. Заголовок (1:4235) — это .control-label группы. */
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-keys > .control-label{display:block;margin:0 0 18px;}
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-keys > .control-label label,
body.pbm.pbm-page-profile-edit .pbm-keys__title{
    display:block;margin:0;padding:0;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:14px;color:var(--pb-muted);
}
body.pbm.pbm-page-profile-edit .pbm-keys{display:flex;flex-direction:column;gap:10px;width:100%;}
body.pbm.pbm-page-profile-edit .pbm-keys__list{display:flex;flex-direction:column;gap:1px;width:100%;}
/* строка 44 + разделитель 1 (1:4238 + Vector 8) = 45; три строки с gap 1 дают 137 как в макете */
body.pbm.pbm-page-profile-edit .pbm-keys__row{
    display:flex;align-items:center;justify-content:space-between;gap:5px;height:45px;padding:10px 0;
    border-bottom:1px solid var(--pb-border);
}
body.pbm.pbm-page-profile-edit .pbm-keys__name{
    min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:14px;color:var(--pb-text);
}
body.pbm.pbm-page-profile-edit .pbm-keys__btns{flex:none;display:flex;align-items:center;gap:5px;}
body.pbm.pbm-page-profile-edit .pbm-keys__btn{
    display:flex;align-items:center;justify-content:center;height:24px;min-height:0;padding:5px 10px;
    margin:0;border:0!important;border-radius:6px;cursor:pointer;box-shadow:none;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:14px;color:#fff!important;
    text-decoration:none!important;text-transform:none;white-space:nowrap;background:var(--pb-accent)!important;
}
body.pbm.pbm-page-profile-edit .pbm-keys__btn--del{background:#c5c5c5!important;}
body.pbm.pbm-page-profile-edit .pbm-keys__add{
    display:flex;align-items:center;justify-content:center;gap:10px;width:100%;height:35px;margin:0;padding:8px 10px;
    border:0!important;border-radius:6px;background:var(--pb-accent)!important;cursor:pointer;box-shadow:none;
    font-family:var(--pb-font);font-weight:500;font-size:16px;line-height:19px;color:#fff!important;
    text-decoration:none!important;text-transform:none;white-space:nowrap;
}
/* «+» 10×10 (1:4265) — рисуем двумя линиями, отдельная иконка не нужна */
body.pbm.pbm-page-profile-edit .pbm-keys__add::after{
    content:"";flex:none;display:block;width:10px;height:10px;
    background:linear-gradient(#fff,#fff) no-repeat center/10px 1.5px,linear-gradient(#fff,#fff) no-repeat center/1.5px 10px;
}

/* --- кнопка «Сохранить» (1:4289): 388×34, r8, Arial Bold 16 --- */
body.pbm.pbm-page-profile-edit form#member-profile > .pbm-f-submit > .controls{display:flex;flex-direction:column;}
body.pbm.pbm-page-profile-edit form#member-profile button.btn-green{
    display:flex;align-items:center;justify-content:center;width:100%;height:34px;margin:0;padding:8px 20px;
    border:0;border-radius:8px;background:var(--pb-accent);cursor:pointer;box-shadow:none;
    font-family:var(--pb-font-import);font-weight:700;font-size:16px;line-height:normal;color:#fff;text-transform:none;letter-spacing:0;
}
body.pbm.pbm-page-profile-edit form#member-profile button.btn-green span{font:inherit;color:inherit;}
/* «Отмена» в макете не нарисована */
body.pbm.pbm-page-profile-edit form#member-profile a.btn{display:none!important;}
body.pbm.pbm-page-profile-edit form#member-profile fieldset legend{
    margin:0 0 10px;padding:0;border:0;
    font-family:var(--pb-font);font-weight:700;font-size:14px;line-height:normal;color:var(--pb-text);
}

/* =====================================================================
   4. ДОБАВИТЬ ПОСТ — body.pbm-page-add-post (1:4001)
   ===================================================================== */
body.pbm.pbm-page-add-post .edit.item-page.page-add-post{
    display:flex;flex-direction:column;align-items:stretch;width:100%;margin:0 0 91px;padding:0;
}
body.pbm.pbm-page-add-post .page-add-post > .page-header{margin:0;padding:12px 0 0;border:0;}
body.pbm.pbm-page-add-post .page-add-post__header{display:block;margin:0;}
body.pbm.pbm-page-add-post .page-add-post__title,
body.pbm.pbm-page-add-post .page-add-post .subheading{display:none;}
/* ссылки «Публичная оферта | Правила» (1:4036): Museo 300 14 #c5c5c5, gap 10 */
body.pbm.pbm-page-add-post .page-add-post__header-links{
    display:flex;align-items:center;gap:10px;margin:0;padding:0;
}
body.pbm.pbm-page-add-post .page-add-post__header-link{
    margin:0;padding:0;font-family:var(--pb-font);font-weight:300;font-size:14px;line-height:17px;
    color:#c5c5c5!important;text-decoration:none!important;white-space:nowrap;
}
body.pbm.pbm-page-add-post .page-add-post__header-sep{
    margin:0;padding:0;font-family:var(--pb-font);font-weight:300;font-size:14px;line-height:17px;color:#d3d3d3;
}

/* форма: колонка, gap 18 (1:4035) */
body.pbm.pbm-page-add-post form#adminForm{
    display:flex;flex-direction:column;align-items:stretch;gap:18px;width:100%;margin:18px 0 0;padding:0;
}
/* обёртки Joomla (tabs, fieldset com_fields) раскрываем, чтобы поля стали строками флекса формы */
body.pbm.pbm-page-add-post form#adminForm > fieldset,
body.pbm.pbm-page-add-post form#adminForm joomla-tab,
body.pbm.pbm-page-add-post form#adminForm .tab-content,
body.pbm.pbm-page-add-post form#adminForm .tab-pane,
body.pbm.pbm-page-add-post form#adminForm joomla-tab-element,
body.pbm.pbm-page-add-post form#adminForm fieldset.options-form,
body.pbm.pbm-page-add-post form#adminForm fieldset[id^="attrib-"],
body.pbm.pbm-page-add-post form#adminForm fieldset[id^="attrib-"] > div,
body.pbm.pbm-page-add-post form#adminForm div[id^="attrib-"],
body.pbm.pbm-page-add-post form#adminForm div[id^="attrib-"] > div,
body.pbm.pbm-page-add-post form#adminForm fieldset.options-form > div,
body.pbm.pbm-page-add-post form#adminForm div.editor,
body.pbm.pbm-page-add-post form#adminForm div.js-editor-none{display:contents;}
body.pbm.pbm-page-add-post form#adminForm .nav-tabs,
body.pbm.pbm-page-add-post form#adminForm joomla-tab-button,
body.pbm.pbm-page-add-post form#adminForm .toggle-editor,
body.pbm.pbm-page-add-post form#adminForm legend{display:none!important;}
body.pbm.pbm-page-add-post form#adminForm .control-group{
    display:flex;flex-direction:column;gap:18px;margin:0;padding:0;width:100%;min-width:0;float:none;font-size:12px;
}
body.pbm.pbm-page-add-post form#adminForm .control-group > .control-label{display:none;float:none;width:auto;margin:0;padding:0;}
body.pbm.pbm-page-add-post form#adminForm .control-group > .controls{margin:0;padding:0;width:100%;}
/* лейблы, которые в макете видны */
body.pbm.pbm-page-add-post form#adminForm .pbm-lbl-on > .control-label{display:block!important;}
body.pbm.pbm-page-add-post form#adminForm .pbm-lbl-on > .control-label label{
    display:block;margin:0;padding:0;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:14px;color:var(--pb-muted);white-space:normal;
}
body.pbm.pbm-page-add-post form#adminForm .control-label label .star,
body.pbm.pbm-page-add-post form#adminForm .control-label label .red{font:inherit;color:inherit;}

/* --- инпут «Заголовок*» (1:4041): 388×36, r8, плейсхолдер Museo 900 12 #6b7280 --- */
body.pbm.pbm-page-add-post form#adminForm input#jform_title,
body.pbm.pbm-page-add-post form#adminForm input.form-control[type="text"]{
    display:block;width:100%!important;height:36px!important;margin:0;padding:10px;
    border:1px solid var(--pb-border);border-radius:8px;background:#fff;box-shadow:none;outline:0;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:normal;color:var(--pb-text);
    -webkit-appearance:none;appearance:none;
}
body.pbm.pbm-page-add-post form#adminForm input#jform_title::placeholder{
    font-family:var(--pb-font-black);font-weight:900;font-size:12px;color:var(--pb-muted);opacity:1;
}
body.pbm.pbm-page-add-post form#adminForm input.form-control::placeholder{color:var(--pb-muted);opacity:1;}
body.pbm.pbm-page-add-post form#adminForm input:focus{border-color:var(--pb-accent);}

/* --- дропзона «Добавить» (1:4044): 388×45, dashed 1 #6b7280, r10 --- */
body.pbm.pbm-page-add-post .page-add-post__introfile{display:flex;flex-direction:column;gap:18px;width:100%;}
body.pbm.pbm-page-add-post .page-add-post__introfile-caption{margin:0;padding:0;}
body.pbm.pbm-page-add-post .page-add-post__introfile-text{
    display:block;margin:0;padding:0;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:14px;color:var(--pb-muted);
}
body.pbm.pbm-page-add-post .page-add-post__introfile-dropzone-wrap{width:100%;margin:0;padding:0;}
body.pbm.pbm-page-add-post label.page-add-post__introfile-dropzone{
    display:flex;align-items:center;justify-content:center;gap:4px;width:100%;max-width:none;height:45px;margin:0;padding:10px;
    border:1px dashed var(--pb-muted);border-radius:10px;background:#fff;cursor:pointer;text-align:center;
}
body.pbm.pbm-page-add-post img.page-add-post__introfile-icon-img{
    flex:none;display:block;width:23.61px;height:17.56px;margin:0;object-fit:contain;
}
body.pbm.pbm-page-add-post .page-add-post__introfile-cta{
    font-family:var(--pb-font);font-weight:300;font-size:20px;line-height:24px;color:var(--pb-muted);white-space:nowrap;
}
body.pbm.pbm-page-add-post .page-add-post__introfile-preview{margin:0;text-align:center;}
body.pbm.pbm-page-add-post .page-add-post__introfile-preview-img{max-width:100%;height:auto;border-radius:10px;}
body.pbm.pbm-page-add-post .page-add-post__introfile-remove{
    float:right;width:32px;height:32px;margin:0 0 6px;padding:0;border:1px solid var(--pb-accent);border-radius:10px;
    background:#fff;color:var(--pb-accent);font-size:24px;line-height:30px;cursor:pointer;
}
body.pbm.pbm-page-add-post #introfile-msg{
    margin:0!important;font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:normal;color:var(--pb-muted);
}
body.pbm.pbm-page-add-post #introfile-msg:empty{display:none;}

/* --- чекбокс «Контент для компании» (1:4048) --- */
body.pbm.pbm-page-add-post .page-add-post__for-company{margin:0;padding:0;}
body.pbm.pbm-page-add-post label.page-add-post__for-company-label{
    display:flex!important;align-items:center;gap:10px;width:100%;margin:0;padding:10px 0;cursor:pointer;
}
body.pbm.pbm-page-add-post form#adminForm input.page-add-post__for-company-checkbox{
    flex:none;display:block;width:25px!important;height:25px!important;max-width:25px;max-height:25px;margin:0;padding:0;
    border:1px solid #e1e5ea!important;border-radius:8px;background:#fff no-repeat center/25px 25px;box-sizing:border-box;
    -webkit-appearance:none;appearance:none;cursor:pointer;box-shadow:none;
}
body.pbm.pbm-page-add-post form#adminForm input.page-add-post__for-company-checkbox:checked{
    border-color:transparent!important;background-image:url(/templates/moneyhouse_new/images/m/check.svg);
}
body.pbm.pbm-page-add-post .page-add-post__for-company-text,
body.pbm.pbm-page-add-post .page-add-post__agreement-text{
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:normal;color:#000;white-space:normal;
}
body.pbm.pbm-page-add-post .page-add-post__agreement-link{
    color:var(--pb-accent)!important;text-decoration:none!important;font:inherit;
}
body.pbm.pbm-page-add-post .page-add-post__agreement-text .star{font:inherit;color:inherit;margin-left:-4px;}
body.pbm.pbm-page-add-post .page-add-post__for-company-group .control-label{display:none!important;}
body.pbm.pbm-page-add-post select.page-add-post__for-company-select{display:none!important;}

/* --- выбор компании (1:4052): открытый список, рамка 1 #e5e7eb r12, строки 50 с лого 40 --- */
body.pbm.pbm-page-add-post #company-wrapp{width:100%;}
/* edit.php показывает блок через jQuery .show() → inline display:block, возвращаем колонку с gap 18 */
body.pbm.pbm-page-add-post #company-wrapp[style*="block"]{display:flex!important;flex-direction:column;gap:18px;}
/* список строит mobile-account.js из option'ов селекта; сам селект и chosen прячем */
body.pbm.pbm-page-add-post .pbm-colist-on select#jform_com_fields_select_company,
body.pbm.pbm-page-add-post .pbm-colist-on .chzn-container,
body.pbm.pbm-page-add-post .pbm-colist-on #jform_com_fields_select_company_chzn{display:none!important;}
body.pbm.pbm-page-add-post .pbm-colist{
    display:block;width:100%;max-height:300px;margin:0;padding:10px 10px 0;overflow-y:auto;-webkit-overflow-scrolling:touch;
    border:0;box-shadow:inset 0 0 0 1px var(--pb-border);border-radius:12px;background:#fff;
}
body.pbm.pbm-page-add-post .pbm-colist__row{
    display:flex;align-items:center;gap:10px;width:100%;height:50px;margin:0 0 10px;padding:0 0 10px;
    box-shadow:0 1px 0 0 var(--pb-border);cursor:pointer;
}
body.pbm.pbm-page-add-post .pbm-colist__row:last-child{margin-bottom:0;box-shadow:none;}
body.pbm.pbm-page-add-post form#adminForm input.pbm-colist__radio{
    position:absolute!important;left:auto!important;width:1px!important;height:1px!important;min-width:0!important;max-width:1px!important;
    margin:-1px;padding:0;border:0;opacity:0;overflow:hidden;clip:rect(0 0 0 0);pointer-events:none;
}
body.pbm.pbm-page-add-post .pbm-colist__logo{
    flex:none;display:block;width:40px;height:40px;margin:0;padding:0;
    border-radius:50%;object-fit:cover;background:var(--pb-light);
}
body.pbm.pbm-page-add-post .pbm-colist__row.selected .pbm-colist__logo{box-shadow:0 0 0 2px var(--pb-accent);}
body.pbm.pbm-page-add-post .pbm-colist__name{
    min-width:0;margin:0;padding:0;
    font-family:var(--pb-font);font-weight:700;font-size:12px;line-height:14px;color:#000;
    overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
}
/* фолбэк, если список не построился: chosen / обычный селект той же высоты строки */
body.pbm.pbm-page-add-post #company-wrapp .chzn-container{width:100%!important;}
body.pbm.pbm-page-add-post #jform_com_fields_select_company_chzn{width:100%!important;padding:0;}
body.pbm.pbm-page-add-post #jform_com_fields_select_company_chzn .chzn-single{
    display:flex;align-items:center;gap:10px;height:60px;padding:10px;
    border:1px solid var(--pb-border)!important;border-radius:12px!important;background:#fff!important;box-shadow:none!important;
    font-family:var(--pb-font);font-weight:700;font-size:12px;line-height:14px;color:#000;
}
body.pbm.pbm-page-add-post #jform_com_fields_select_company_chzn .chzn-single span{
    display:flex;align-items:center;gap:10px;margin:0;font:inherit;color:inherit;overflow:hidden;text-overflow:ellipsis;
}
body.pbm.pbm-page-add-post #jform_com_fields_select_company_chzn .chzn-single div b{
    background:url(/templates/moneyhouse_new/images/m/select-chevron.svg) no-repeat center/12px 6px;
}
body.pbm.pbm-page-add-post #jform_com_fields_select_company_chzn .chzn-drop{
    width:100%!important;border:1px solid var(--pb-border);border-radius:0 0 12px 12px;box-shadow:none;
}
body.pbm.pbm-page-add-post #jform_com_fields_select_company_chzn .chzn-results li{
    display:flex;align-items:center;gap:10px;padding:10px;border-bottom:1px solid var(--pb-border);
    font-family:var(--pb-font);font-weight:700;font-size:12px;line-height:14px;color:#000;
}
body.pbm.pbm-page-add-post #jform_com_fields_select_company_chzn .page-add-post__company-option-img{
    flex:0 0 40px;width:40px;height:40px;border-radius:50%;object-fit:cover;background:var(--pb-light);
}
body.pbm.pbm-page-add-post select#jform_com_fields_select_company{
    display:block;width:100%;height:60px;padding:10px 34px 10px 10px;
    border:1px solid var(--pb-border);border-radius:12px;background:#fff url(/templates/moneyhouse_new/images/m/select-chevron.svg) no-repeat right 10px center/12px 6px;
    font-family:var(--pb-font);font-weight:700;font-size:12px;line-height:14px;color:#000;
    -webkit-appearance:none;appearance:none;outline:0;box-shadow:none;
}

/* --- селекты «Тип материала* / Категория* / Тема» (1:4074): 388×36, r5 --- */
body.pbm.pbm-page-add-post form#adminForm select,
body.pbm.pbm-page-add-post select#blog_parent_cat,
body.pbm.pbm-page-add-post select#blog_subcat{
    display:block;width:100%!important;height:36px!important;margin:0;padding:10px 32px 10px 10px!important;
    border:1px solid var(--pb-border)!important;border-radius:5px!important;
    background:#fff url(/templates/moneyhouse_new/images/m/select-chevron.svg) no-repeat right 10px center/12px 6px!important;
    font-family:var(--pb-font);font-weight:700;font-size:12px;line-height:16px!important;color:var(--pb-text);
    -webkit-appearance:none;appearance:none;outline:0;box-shadow:none;
}
body.pbm.pbm-page-add-post form#adminForm select:focus{border-color:var(--pb-accent)!important;}
/* скрытые селекты (chosen/choices/hideField) не показываем — template.css задаёт им display:flex */
body.pbm.pbm-page-add-post form#adminForm select[hidden],
body.pbm.pbm-page-add-post form#adminForm select.chzn-done,
body.pbm.pbm-page-add-post form#adminForm select.choices__input,
body.pbm.pbm-page-add-post form#adminForm joomla-field-fancy-select select,
body.pbm.pbm-page-add-post form#adminForm select.page-add-post__for-company-select,
body.pbm.pbm-page-add-post form#adminForm .chzn-container + select{display:none!important;}
body.pbm.pbm-page-add-post select#blog_parent_cat:invalid,
body.pbm.pbm-page-add-post select#jform_com_fields_select_company:invalid{color:var(--pb-muted);}

/* --- теги (1:4082): поле r10, чип #08a5c5 r10, плейсхолдер Museo 300 12 #c5c5c5 --- */
body.pbm.pbm-page-add-post form#adminForm joomla-field-fancy-select,
body.pbm.pbm-page-add-post form#adminForm .choices{width:100%;margin:0;}
body.pbm.pbm-page-add-post form#adminForm .choices__inner{
    display:flex;flex-wrap:wrap;align-content:flex-start;gap:4px;min-height:64px;width:100%;padding:10px;
    border:1px solid var(--pb-border);border-radius:10px;background:#fff;box-shadow:none;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:14px;
}
body.pbm.pbm-page-add-post form#adminForm .choices__list--multiple{display:contents;}
body.pbm.pbm-page-add-post form#adminForm .choices__list--multiple .choices__item{
    display:flex;align-items:center;justify-content:space-between;gap:5px;height:24px;margin:0;padding:5px;
    border:0;border-radius:10px;background:var(--pb-accent);
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:14px;color:#fff;white-space:nowrap;
}
body.pbm.pbm-page-add-post form#adminForm .choices__button{
    position:relative;width:10px;height:14px;margin:0;padding:0;border:0;background:none;opacity:1;
    font-size:0;line-height:0;color:transparent;cursor:pointer;
}
body.pbm.pbm-page-add-post form#adminForm .choices__button::before,
body.pbm.pbm-page-add-post form#adminForm .choices__button::after{
    content:"";position:absolute;left:50%;top:50%;width:9px;height:1.4px;background:#fff;
    transform:translate(-50%,-50%) rotate(45deg);
}
body.pbm.pbm-page-add-post form#adminForm .choices__button::after{transform:translate(-50%,-50%) rotate(-45deg);}
body.pbm.pbm-page-add-post form#adminForm input.choices__input{
    flex:1 0 100%;width:100%!important;min-width:100%;height:14px!important;max-height:14px;margin:0;padding:0;border:0;background:none;box-shadow:none;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:14px;color:var(--pb-text);
}
/* поиск внутри chosen (template.css задаёт всем инпутам 45px) */
body.pbm.pbm-page-add-post form#adminForm .chzn-search input,
body.pbm.pbm-page-add-post form#adminForm .chzn-container input{
    width:100%!important;height:28px!important;padding:5px 10px!important;
    border:1px solid var(--pb-border)!important;border-radius:6px;background:#fff;
    font-family:var(--pb-font);font-weight:300;font-size:12px;
}
body.pbm.pbm-page-add-post form#adminForm input.choices__input::placeholder{color:#c5c5c5;opacity:1;}
/* раскрытый список вариантов (1:4090): r10, строки 26 с разделителями */
body.pbm.pbm-page-add-post form#adminForm .choices__list--dropdown,
body.pbm.pbm-page-add-post form#adminForm .choices[data-type] .choices__list--dropdown{
    z-index:20;margin:4px 0 0;padding:0 11px;border:1px solid var(--pb-border);border-radius:10px;background:#fff;box-shadow:none;
}
body.pbm.pbm-page-add-post form#adminForm .choices__list--dropdown .choices__item{
    display:flex;align-items:center;height:26px;padding:0;border-bottom:1px solid var(--pb-border);
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:14px;color:#000;
}
body.pbm.pbm-page-add-post form#adminForm .choices__list--dropdown .choices__item:last-child{border-bottom:0;}
/* фолбэк: старый chosen для тегов */
body.pbm.pbm-page-add-post #jform_tags_chzn{width:100%!important;padding:0;}
body.pbm.pbm-page-add-post #jform_tags_chzn .chzn-choices{
    min-height:64px;padding:10px;border:1px solid var(--pb-border);border-radius:10px;background:#fff;box-shadow:none;
}
body.pbm.pbm-page-add-post #jform_tags_chzn .chzn-choices li.search-choice{
    margin:0 4px 4px 0;padding:5px 22px 5px 5px;border:0;border-radius:10px;background:var(--pb-accent);box-shadow:none;
    font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:14px;color:#fff;
}

/* --- textarea «Текст» (1:4107): 388×117, border .574 #e5e7eb, r5.74 --- */
body.pbm.pbm-page-add-post form#adminForm .editor,
body.pbm.pbm-page-add-post form#adminForm .js-editor-none{width:100%;margin:0;}
body.pbm.pbm-page-add-post form#adminForm textarea{
    display:block;width:100%!important;height:117px;margin:0;padding:11.48px;
    border:.574px solid var(--pb-border);border-radius:5.74px;background:#fff;box-shadow:none;outline:0;resize:none;
    font-family:var(--pb-font);font-weight:500;font-size:12px;line-height:16px;color:var(--pb-text);
}
body.pbm.pbm-page-add-post form#adminForm textarea::placeholder{color:var(--pb-muted);opacity:1;}
body.pbm.pbm-page-add-post form#adminForm .tox-tinymce{
    width:100%!important;height:200px!important;margin:0;
    border:.574px solid var(--pb-border)!important;border-radius:5.74px!important;box-shadow:none!important;
}
body.pbm.pbm-page-add-post form#adminForm .tox .tox-statusbar{display:none!important;}
body.pbm.pbm-page-add-post .hint-editor{
    margin:0;padding:0;font-family:var(--pb-font);font-weight:300;font-size:12px;line-height:normal;color:var(--pb-muted);font-style:normal;
}

/* --- капча (invisible reCAPTCHA) --- */
body.pbm.pbm-page-add-post form#adminForm fieldset.field-captcha{margin:0;padding:0;border:0;}
body.pbm.pbm-page-add-post form#adminForm fieldset.field-captcha:empty{display:none;}
body.pbm.pbm-page-add-post .grecaptcha-badge{bottom:90px!important;}

/* --- согласия (1:4110, 1:4113) --- */
body.pbm.pbm-page-add-post .page-add-post__agreements{display:flex;flex-direction:column;gap:18px;width:100%;margin:0;}
body.pbm.pbm-page-add-post .page-add-post__agreement{margin:0;padding:0;}

/* --- кнопка «Отправить» (1:4116): 388×34, r8, Arial Bold 16 --- */
body.pbm.pbm-page-add-post .btn-toolbar{display:flex;flex-direction:column;width:100%;margin:0;padding:0;}
body.pbm.pbm-page-add-post .btn-toolbar button.btn-green,
body.pbm.pbm-page-add-post button#publish-article{
    display:flex;align-items:center;justify-content:center;width:100%;height:34px;margin:0;padding:8px 20px;
    border:0;border-radius:8px;background:var(--pb-accent);cursor:pointer;box-shadow:none;
    font-family:var(--pb-font-import);font-weight:700;font-size:16px;line-height:normal;color:#fff;text-transform:none;letter-spacing:0;
}
body.pbm.pbm-page-add-post .btn-toolbar a.btn-grey,
body.pbm.pbm-page-add-post #save-to-draft{display:none!important;}

/* гостевое состояние: alert вместо формы */
body.pbm.pbm-page-add-post .alert{
    margin:16px 0;padding:14px;border:1px solid var(--pb-border);border-radius:10px;background:var(--pb-light);
    font-family:var(--pb-font);font-weight:500;font-size:13px;line-height:18px;color:var(--pb-text);
}

} /* /media */
