/* Компактный режим старых страниц /private (корень своей страницы + .rb-compact) ----
   Страницы со своей вёрсткой (my-page, event-page, groups-page…) — тот же плотный вид,
   что у .rbu-compact и .rlc-compact. Двойной класс — стили страниц грузятся позже. */
.rb-compact.rb-compact{padding-bottom:32px}
.rb-compact.rb-compact h1,.rb-compact.rb-compact h1.page-title{font-size:26px;line-height:32px;margin:16px 0 4px}
.rb-compact.rb-compact .page-subtitle{font-size:13.5px;margin-bottom:12px}
.rb-compact.rb-compact .my-card,.rb-compact.rb-compact .dash-card,.rb-compact.rb-compact .mag-card,.rb-compact.rb-compact .sv-card,
.rb-compact.rb-compact .ct-card,.rb-compact.rb-compact .tpl-card,.rb-compact.rb-compact .section-card,
.rb-compact.rb-compact .send-card,.rb-compact.rb-compact .np-card,.rb-compact.rb-compact .event-info-card{padding:14px 16px;border-radius:14px;margin-bottom:12px}
.rb-compact.rb-compact input.w3-input,.rb-compact.rb-compact select.w3-select,
.rb-compact.rb-compact input.form-input,.rb-compact.rb-compact select.form-input{padding:6px 10px;font-size:13.5px}
.rb-compact.rb-compact .w3-button{padding:6px 14px;font-size:13px}
.rb-compact.rb-compact th,.rb-compact.rb-compact td{padding-top:6px;padding-bottom:6px}

/* ---- Окна /private — тоже компактные ----
   Вид окон задаёт static/rbmodal.css (общий с кабинетом). В приватной части
   они плотнее: <body class="rb-private"> даёт правилам ниже на класс больше,
   чем у rbmodal.css, — тот же !important выигрывает специфичностью.
   Окна .rbu-modal / .rbu-drawer сжимает сам .rbu-compact (rbui.css). */
html body.rb-private :is(.w3-modal-content,.case-modal,.report-modal-inner,.rr-modal-inner,.modal-dialog,.sv-modal){border-radius:16px!important}
html body.rb-private :is(.case-modal__header,.report-modal-header,.rr-modal-header,.modal-header-blue,.modal-header-amber,.sv-modal__head),
html body.rb-private .w3-modal-content > header.w3-container{padding:12px 16px!important;border-bottom-width:1px!important}
html body.rb-private :is(.case-modal__header,.report-modal-header,.rr-modal-header,.sv-modal__head) :is(h1,h2,h3,h4),
html body.rb-private .w3-modal-content > header.w3-container :is(h2,h3,h4){font-size:18px!important;line-height:1.25!important}
html body.rb-private :is(.case-modal__close,.report-modal-close,.rr-modal-close,.modal-close),
html body.rb-private .w3-modal-content > header .w3-display-topright{width:34px!important;height:34px!important}
html body.rb-private :is(.case-modal__body,.report-modal-body,.rr-modal-body,.sv-modal-body,.am-modal-body){padding:14px 16px!important}
html body.rb-private :is(.case-modal__footer,.modal-actions,.sv-modal__foot),
html body.rb-private .w3-modal-content > footer.w3-container{padding:10px 16px!important;border-top-width:1px!important}
html body.rb-private :is(.case-modal__body,.report-modal-body,.rr-modal-body,.w3-modal-content) label{font-size:13px}
html body.rb-private :is(.case-modal__body,.report-modal-body,.rr-modal-body,.w3-modal-content) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select){min-height:34px!important;font-size:13.5px!important;border-width:1px!important;border-radius:9px!important;padding-top:4px!important;padding-bottom:4px!important}
html body.rb-private :is(.case-modal__body,.report-modal-body,.rr-modal-body,.w3-modal-content) textarea{min-height:72px;font-size:13.5px!important;border-width:1px!important;border-radius:9px!important}
html body.rb-private :is(.w3-modal-content,.report-modal-inner,.rr-modal-inner,.modal-dialog) .w3-button{min-height:34px!important;padding:0 14px!important;font-size:13px!important;border-width:1px!important}
html body.rb-private :is(.case-modal__body,.report-modal-body) .w3-section{margin:0 0 10px!important}
html body.rb-private :is(.w3-modal-content,.report-modal-inner) .w3-panel{padding:8px 12px!important;margin-top:8px!important;font-size:13px}
/* Свои окна страниц: «Клиенты» и «Заявки», «Группы», «Моё» */
html body.rb-private :is(.rlc-modal,.sm-modal,.my-modal){padding:16px 18px!important;border-radius:16px!important}
html body.rb-private :is(.rlc-modal,.sm-modal) h2{font-size:19px!important}
html body.rb-private .rlc-modal-sub{margin-bottom:12px!important;font-size:12.5px!important}
html body.rb-private .rlc-modal-close{top:10px!important;right:12px!important}
html body.rb-private :is(.rlc-modal,.sm-modal,.my-modal) :is(input:not([type=checkbox]):not([type=radio]),select){min-height:34px;font-size:13.5px}

/* ---- Старые страницы в цветах rbui («Автодействия», «Отчёты») ----
   Корни .rb-compact (my-page, event-page, groups-page…) — тёплый фон и
   кремовые карточки; самые старые страницы на w3.css без своего корня —
   по классам w3 под body.rb-private. Страницы .rbu и .rlc задают фон сами. */
html body.rb-private{background:#fff8f0}
.rb-compact.rb-compact{background:#fff8f0;color:#1b1613}
.rb-compact.rb-compact h1,.rb-compact.rb-compact h1.page-title{font-family:'Gilroy-ExtraBold','Gilroy-Bold','Manrope',sans-serif;font-weight:800;color:#1b1613}
.rb-compact.rb-compact .page-subtitle{color:#5b5b5b}
.rb-compact.rb-compact .my-card,.rb-compact.rb-compact .dash-card,.rb-compact.rb-compact .mag-card,.rb-compact.rb-compact .sv-card,
.rb-compact.rb-compact .ct-card,.rb-compact.rb-compact .tpl-card,.rb-compact.rb-compact .section-card,
.rb-compact.rb-compact .send-card,.rb-compact.rb-compact .np-card,.rb-compact.rb-compact .event-info-card,
.rb-compact.rb-compact .card{background:#fffdfa;border:1px solid #f3e7d6;box-shadow:none}
.rb-compact.rb-compact input.w3-input,.rb-compact.rb-compact select.w3-select,
.rb-compact.rb-compact input.form-input,.rb-compact.rb-compact select.form-input{background-color:#fff;border:1px solid #9c8e80;border-radius:9px}

/* w3.css вне окон — плотно и в тех же цветах */
html body.rb-private :not(.w3-modal-content) > .w3-card,html body.rb-private :not(.w3-modal) > .w3-card-4,
html body.rb-private .w3-container > .w3-card-2{background:#fffdfa;border:1px solid #f3e7d6;box-shadow:none!important;border-radius:14px}
html body.rb-private :is(.w3-table,.w3-table-all){font-size:13.5px;border-color:#f3e7d6}
html body.rb-private :is(.w3-table,.w3-table-all) :is(td,th){padding:6px 10px;border-color:#f3e7d6}
html body.rb-private .w3-table-all tr:nth-child(odd){background:#fffdfa}
html body.rb-private .w3-table-all tr:nth-child(even){background:#fff8f0}
html body.rb-private :is(.w3-table,.w3-table-all) tr:first-child th{background:#fff8f0;color:#5b5b5b;font-size:12px}
html body.rb-private :is(.w3-table,.w3-table-all) tr:hover td{background:#fff3e6}
html body.rb-private :not(.w3-modal-content *):is(input.w3-input,select.w3-select){min-height:34px;font-size:13.5px;border:1px solid #9c8e80;border-radius:9px;background-color:#fff;padding:4px 10px}
html body.rb-private .w3-button:not(.w3-modal-content *):not(.w3-display-topright){padding:6px 14px;font-size:13px;border-radius:999px}
/* ---- Все окна /private — компактно, одним правилом ----
   Окон в приватной части три десятка видов, и у каждого свои поля и кнопки
   (rp-in, sc-grid, rbcc…): компактный вид страниц до них не доставал, и окно
   поверх компактной страницы стояло с полями 46px. Контейнер узнаётся по
   имени класса (modal, overlay, drawer) или по списку ниже. Специфичность
   выше одиночных классов страниц, !important не нужен. */
html body.rb-private :is([class*="modal"],[class*="overlay"],[class*="drawer"],.rbcc-ov,.rbad-ov,.cl-ov,.hb-ov,.mag-ov,.my-ov) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]),select:not(.rb-nosel)){height:34px;min-height:34px;padding-top:0;padding-bottom:0;font-size:13.5px;border-width:1px;border-radius:9px}
html body.rb-private :is([class*="modal"],[class*="overlay"],[class*="drawer"],.rbcc-ov,.rbad-ov,.cl-ov,.hb-ov,.mag-ov,.my-ov) textarea{min-height:64px;font-size:13.5px;border-width:1px;border-radius:9px;padding-top:7px;padding-bottom:7px}
html body.rb-private :is([class*="modal"],[class*="overlay"],[class*="drawer"],.rbcc-ov,.rbad-ov,.cl-ov,.hb-ov,.mag-ov,.my-ov) :is(input[type=checkbox],input[type=radio]){width:15px;height:15px}
html body.rb-private :is([class*="modal"],[class*="overlay"],[class*="drawer"],.rbcc-ov,.rbad-ov,.cl-ov,.hb-ov,.mag-ov,.my-ov) h2{font-size:18px;line-height:1.25}
html body.rb-private :is([class*="modal"],[class*="overlay"],[class*="drawer"],.rbcc-ov,.rbad-ov,.cl-ov,.hb-ov,.mag-ov,.my-ov) h3{font-size:15px;line-height:1.3}
html body.rb-private :is([class*="modal"],[class*="overlay"],[class*="drawer"],.rbcc-ov,.rbad-ov,.cl-ov,.hb-ov,.mag-ov,.my-ov) h4{font-size:14px}
html body.rb-private :is([class*="modal"],[class*="overlay"],[class*="drawer"],.rbcc-ov,.rbad-ov,.cl-ov,.hb-ov,.mag-ov,.my-ov) label{font-size:13px}
html body.rb-private :is([class*="modal"],[class*="overlay"],[class*="drawer"],.rbcc-ov,.rbad-ov,.cl-ov,.hb-ov,.mag-ov,.my-ov) :is(button,a)[class*="btn"]:not([class*="close"]):not([class*="icon"]){font-size:13px;padding-top:6px;padding-bottom:6px;min-height:0;line-height:1.3}

/* ---- Шапка /private — компактная ----
   Высота, шрифт пунктов, роль и аватар заданы в menuv2.php инлайном,
   поэтому здесь !important. Мобильные правила шапки (≤560px) идут в самом
   menuv2.php после этого файла и остаются главнее на телефоне. */
@media (min-width:561px){
html body.rb-private [data-r="hbar"]{height:52px!important;padding:0 18px!important;gap:2px!important}
html body.rb-private header [data-r="logo"]{font-size:19px!important}
html body.rb-private .rbxp-nl,html body.rb-private .rbxp-ddbtn{padding:6px 11px!important;font-size:14px!important}
html body.rb-private .rbxp-ddbtn svg{width:12px;height:12px}
html body.rb-private .rbxp-role{height:34px!important;padding:0 10px 0 12px!important;font-size:13px!important}
html body.rb-private .rbxp-ava{width:34px!important;height:34px!important}
html body.rb-private .rbxp-ava span{font-size:12.5px!important}
html body.rb-private .rbxp-pi{padding:7px 10px!important;font-size:13.5px!important}
html body.rb-private .rbav-i{padding:7px 10px!important;font-size:13.5px!important}
}

/* ==== Кабинет клиента /lk — тот же компактный вид ====
   <body class="rb-lk"> ставит корневой header.php. Страницы кабинета
   свёрстаны каждая своими классами (kp-, tr-, wl-, pg-, dk-…) и часто
   инлайном — поэтому здесь перечислены их классы, а у инлайна !important.
   На телефоне (≤560px) поля остаются со шрифтом 16px и высотой 42px: при
   меньшем шрифте iPhone увеличивает страницу при вводе, а кнопка ниже 40px
   — промах пальцем. Правишь размер здесь — проверь тот же класс в
   /private: вид у двух частей портала должен быть одним. */
html body.rb-lk{background:#fff8f0}

/* Шапка кабинета (lk/menu_a.php): как у /private — 52px. Мобильные правила
   шапки идут в самом menu_a.php и на телефоне остаются главнее */
@media (min-width:561px){
html body.rb-lk [data-r="hbar"]{height:52px!important;padding:0 18px!important;gap:2px!important}
html body.rb-lk header [data-r="logo"]{font-size:19px!important}
html body.rb-lk header .rbx-nl{padding:6px 11px!important;font-size:14px!important}
html body.rb-lk header .rbx-nl svg{width:12px;height:12px}
html body.rb-lk [data-r="roledd"]{height:34px!important;padding:0 10px 0 12px!important;font-size:13px!important}
html body.rb-lk #rbxAvaBtn{width:34px!important;height:34px!important}
html body.rb-lk .rbx-ritem,html body.rb-lk #rbxMorePop a{padding:7px 10px!important;font-size:13.5px!important}
html body.rb-lk .rbav-i{padding:7px 10px!important;font-size:13.5px!important}
}

/* Заголовки страниц и вводный текст */
html body.rb-lk :is(.kp-h1,.tr-h1,.pg-h1,.dk-h1,.pt-h1,.vn-h1,.wl-h1,.ev-h1,.ss-h,.rbx-h1,.ct-title,.rbx-authh1),
html body.rb-lk [data-r="h1"]{font-size:26px!important;line-height:1.2!important;letter-spacing:-.3px}
html body.rb-lk :is(.kp-lead,.rbx-sub){font-size:14.5px;line-height:1.45}
html body.rb-lk .rbx-sub{margin-bottom:16px}
html body.rb-lk :is(.kp-h2,.rbx-cr__head h2){font-size:19px}
html body.rb-lk .kp-pill{height:24px;padding:0 11px;font-size:11.5px}

/* Ширина и поля страниц */
html body.rb-lk .kp-main{padding:20px 20px 40px}
html body.rb-lk .rbx-wrap{padding:28px 20px 60px}
html body.rb-lk .rbx-wrap--wide{padding:24px 20px 60px}
html body.rb-lk :is(.pt-wrap,.ss-wrap){padding-top:20px}

/* Карточки: рамка 1px, без тени, поля 16–18px */
html body.rb-lk :is(.kp-hero__box,.kp-kid,.kp-empty,.ev-card,.ss-hero,.tr-card,.pg-card,.ct-card,.don-card,.fbr-card,.hp-card,.oa-card,.pt-card,.rbx-card,.ss-card,.sv-card,.vn-card,.wl-card){padding:16px 18px;border-radius:16px;border-width:1px;box-shadow:none}
html body.rb-lk .kp-hero > div:not(.kp-hero__box){border-width:1px!important;border-radius:16px!important;padding:16px 18px!important}
html body.rb-lk [data-r="card"]{padding:22px 24px!important;border-radius:18px!important;box-shadow:none!important;border:1px solid #f3e7d6!important;background:#fffdfa!important}
html body.rb-lk .rbx-info{padding:12px 14px;margin-top:14px;border-radius:12px}

/* Кнопки: 34px, на телефоне 40px. Высота — минимумом: длинная подпись
   переносится, а не вылезает из кнопки */
html body.rb-lk :is(.kp-btn,.tr-btn,.wl-btn,.pg-btn,.dk-btn,.fbr-btn,.hp-btn,.oa-btn,.pt-btn,.ss-btn,.vn-btn,.ev-btn,.rbx-mbtn-go,.rbx-mbtn-cancel){height:auto;min-height:34px;padding-top:0;padding-bottom:0;font-size:13.5px}
html body.rb-lk :is(.kp-btn,.tr-btn,.wl-btn,.pt-btn,.ss-btn,.vn-btn,.ev-btn){padding-left:16px;padding-right:16px}
html body.rb-lk .kp-btn--sm{min-height:32px;padding:0 13px;font-size:13px}
html body.rb-lk .rbx-btn{height:42px;font-size:15px;box-shadow:none}
html body.rb-lk .rbx-btnrow{margin-top:18px}
html body.rb-lk .kp-ibtn{height:32px;padding:0 13px;font-size:13px;border-width:1px}
html body.rb-lk :is(.kp-icon,.kp-doc){width:32px;height:32px}
html body.rb-lk .kp-icon{border-width:1px}

/* Поля */
html body.rb-lk :is(.rbxf,.rbxf2,.rbx-input,.mk-in,.mk-sel,.ss-in,.tr-in,.wl-in,.don-f,.dk-sel){height:38px;min-height:38px;padding-top:0;padding-bottom:0;font-size:14.5px;border-width:1px;border-radius:10px}
html body.rb-lk :is(.rbxta,.ss-ta,.tr-ta,.wl-ta){font-size:14.5px;padding:8px 12px;border-width:1px;border-radius:10px}
html body.rb-lk .rbxta{min-height:120px}
html body.rb-lk :is(.rbxlbl,.rbx-label){font-size:13.5px;margin-bottom:6px}
html body.rb-lk .rbx-field{margin-bottom:12px}

/* Вкладки профиля: подпись целиком, выбранная — жёлтым, как сегменты */
html body.rb-lk .rbx-tabs{padding:3px;border-radius:999px;background:#fffdfa;border:1px solid #f3e7d6;gap:2px;margin-bottom:18px}
html body.rb-lk .rbx-tab{flex:1 1 auto;height:32px;padding:0 12px;border-radius:999px;font-size:13.5px;color:#5b5b5b}
html body.rb-lk .rbx-tab.on{background:#fcc000;color:#1b1613;box-shadow:none}
html body.rb-lk .rbx-tab__t{overflow:visible}

/* «Мои дети» (lk/panel.php) */
html body.rb-lk .kp-hero{gap:14px}
html body.rb-lk .kp-chips,html body.rb-lk .kp-btns{margin-top:12px;gap:8px}
html body.rb-lk .kp-chip{padding:3px 3px 3px 12px;font-size:13px;border-width:1px}
html body.rb-lk .kp-chip b{height:26px;padding:0 11px;font-size:14px}
html body.rb-lk .kp-sechead{margin-top:22px}
html body.rb-lk .kp-count{height:22px;padding:0 10px;font-size:12.5px}
html body.rb-lk .kp-kids{margin-top:12px;gap:12px}
html body.rb-lk .kp-ava{width:40px;height:40px;border-radius:12px;font-size:15px}
html body.rb-lk .kp-name{font-size:16.5px}
html body.rb-lk .kp-meta{font-size:13px}
html body.rb-lk .kp-filters{margin-top:12px;gap:8px}
html body.rb-lk .kp-seg{padding:3px;border-width:1px}
html body.rb-lk .kp-seg button{height:28px;padding:0 11px;font-size:13px}
html body.rb-lk .kp-list{margin-top:10px;gap:8px}
html body.rb-lk .kp-list .rbx-grow{padding:12px 14px;border-width:1px;border-radius:14px}
html body.rb-lk .kp-item__t{font-size:15px}
html body.rb-lk .kp-item__s{font-size:13.5px}
html body.rb-lk .kp-tag{height:22px;font-size:11.5px}
html body.rb-lk .kp-empty,html body.rb-lk .kp-none{font-size:14px}

/* Запись на мероприятие (lk/eventreg.php, шапка — libs/eventinfo.php) */
html body.rb-lk .ev-wrap{padding:20px 16px 40px}
html body.rb-lk .ev-sec{margin:20px 0 10px;font-size:19px}
html body.rb-lk .ev-btn{min-height:38px;padding:8px 18px;font-size:14.5px}
html body.rb-lk .ev-kid{padding:10px 14px;border-width:1px;border-radius:14px;margin-bottom:8px}
html body.rb-lk .ev-kid__name{font-size:15.5px}
html body.rb-lk .ev-kid__act .ev-btn{min-height:32px;padding:6px 14px;font-size:13.5px}
html body.rb-lk .ev-done .ev-btn{min-height:40px;font-size:14.5px}
html body.rb-lk .ev-done h2{font-size:21px}
html body.rb-lk .ev-date{min-height:38px}
html body.rb-lk :is(.ev-note,.ev-err){padding:10px 14px;border-radius:12px;font-size:14px;border-width:1px}
html body.rb-lk .event-head{margin:4px 0 12px}
html body.rb-lk .event-head__name{font-size:18px;margin-bottom:6px}
html body.rb-lk .event-head__list li{padding:2px 0;font-size:14.5px}

/* Окна кабинета — как в /private, но поля на телефоне крупнее (ниже) */
html body.rb-lk :is(.w3-modal-content,.case-modal,.modal-dialog){border-radius:16px!important}
html body.rb-lk :is(.case-modal__header,.modal-header-blue,.modal-header-amber),
html body.rb-lk .w3-modal-content > header.w3-container{padding:12px 16px!important;border-bottom-width:1px!important}
html body.rb-lk :is(.case-modal__header) :is(h1,h2,h3,h4),
html body.rb-lk .w3-modal-content > header.w3-container :is(h2,h3,h4){font-size:18px!important;line-height:1.25!important}
html body.rb-lk :is(.case-modal__body){padding:14px 16px!important}
html body.rb-lk :is(.case-modal__footer,.modal-actions),
html body.rb-lk .w3-modal-content > footer.w3-container{padding:10px 16px!important;border-top-width:1px!important}
html body.rb-lk :is(.case-modal__footer) .w3-button{height:36px!important;font-size:13.5px!important}
html body.rb-lk :is(.case-modal__body,.w3-modal-content) label{font-size:13px}
html body.rb-lk :is(.case-modal__body,.w3-modal-content) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select){height:38px!important;min-height:38px!important;font-size:14.5px!important;border-width:1px!important;border-radius:10px!important;padding-top:0!important;padding-bottom:0!important}
html body.rb-lk :is(.case-modal__body,.w3-modal-content) textarea{font-size:14.5px!important;border-width:1px!important;border-radius:10px!important}
html body.rb-lk :is(.case-modal__body) .w3-section{margin:0 0 10px!important}
html body.rb-lk :is([class*="modal"],[class*="overlay"]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]),select:not(.rb-nosel)){height:38px;min-height:38px;padding-top:0;padding-bottom:0;font-size:14.5px;border-width:1px;border-radius:10px}
html body.rb-lk :is([class*="modal"],[class*="overlay"]) h2{font-size:19px;line-height:1.25}
html body.rb-lk :is([class*="modal"],[class*="overlay"]) h3{font-size:16px;line-height:1.3}

@media (max-width:560px){
html body.rb-lk :is(.kp-h1,.tr-h1,.pg-h1,.dk-h1,.pt-h1,.vn-h1,.wl-h1,.ev-h1,.ss-h,.rbx-h1,.ct-title),
html body.rb-lk [data-r="h1"]{font-size:22px!important}
html body.rb-lk .kp-main{padding:12px 12px 32px}
html body.rb-lk .ev-wrap{padding:12px 12px 32px}
html body.rb-lk .ev-btn{min-height:42px}
html body.rb-lk .ev-kid__act .ev-btn{min-height:42px}
html body.rb-lk .rbx-wrap,html body.rb-lk .rbx-wrap--wide{padding:16px 12px 48px}
html body.rb-lk :is(.kp-hero__box,.kp-kid,.kp-empty,.ev-card,.ss-hero,.tr-card,.pg-card,.ct-card,.don-card,.fbr-card,.hp-card,.oa-card,.pt-card,.rbx-card,.ss-card,.sv-card,.vn-card,.wl-card){padding:14px}
html body.rb-lk [data-r="card"]{padding:18px 14px!important}
html body.rb-lk :is(.kp-btn,.tr-btn,.wl-btn,.pg-btn,.dk-btn,.fbr-btn,.hp-btn,.oa-btn,.pt-btn,.ss-btn,.vn-btn,.ev-btn,.rbx-mbtn-go,.rbx-mbtn-cancel){min-height:40px;font-size:14px}
html body.rb-lk .kp-btn--sm,html body.rb-lk .kp-ibtn{min-height:40px;height:auto}
html body.rb-lk :is(.kp-icon,.kp-doc){width:40px;height:40px;min-width:40px}
html body.rb-lk .rbx-cr-btn{min-height:40px}
html body.rb-lk .rbx-btn{height:46px}
html body.rb-lk :is(.rbxf,.rbxf2,.rbx-input,.mk-in,.mk-sel,.ss-in,.tr-in,.wl-in,.don-f,.dk-sel){height:42px;min-height:42px;font-size:16px}
html body.rb-lk :is(.rbxta,.ss-ta,.tr-ta,.wl-ta){font-size:16px}
html body.rb-lk .kp-seg button{height:36px}
html body.rb-lk .rbx-tabs{flex-wrap:wrap;background:none;border:none;padding:0;gap:6px}
html body.rb-lk .rbx-tab{flex:0 0 auto;height:34px;background:#fffdfa;border:1px solid #f3e7d6}
html body.rb-lk :is(.case-modal__body,.w3-modal-content) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select){height:42px!important;min-height:42px!important;font-size:16px!important}
html body.rb-lk :is(.case-modal__body,.w3-modal-content) textarea{font-size:16px!important}
html body.rb-lk :is([class*="modal"],[class*="overlay"]) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]),select:not(.rb-nosel)){height:42px;min-height:42px;font-size:16px}
html body.rb-lk :is([class*="modal"],[class*="overlay"]) textarea{font-size:16px}
}

/* ---- Старая обёртка static/mobile/mobile.js ----
   Скрипт заворачивает страницу в .newwrap, а mobile.css на экранах ≤900px
   даёт ей отступ 65px сверху (место под фиксированную шапку, которой
   давно нет) и белый фон. На страницах с jQuery над шапкой висела белая
   полоса, а кремовый фон страницы становился белым. Обе части портала. */
html body:is(.rb-lk,.rb-private) .newwrap{padding-top:0!important;background:transparent!important}

/* Обязательство о неразглашении (/private/nda.php): та же карточка и
   оранжевая главная кнопка, что у остальных страниц */
html body.rb-private .nda{margin:24px auto}
html body.rb-private .nda-card{padding:22px 26px;border-radius:16px;border:1px solid #f3e7d6;background:#fffdfa;box-shadow:none}
html body.rb-private .nda h1{font-size:22px}
html body.rb-private .nda-btn{padding:0 18px;min-height:38px;font-size:14.5px;background:#ed6b10}
html body.rb-private .nda-btn:disabled{background:#f3d3b8}

/* Рамка поля ввода — не светлее 3:1 к фону (#9c8e80 на #fffdfa — 3,1:1).
   Рамка #f3e7d6 (1,2:1) на кремовом фоне не видна: где поле, а где текст,
   было не разглядеть. Рамки карточек остаются светлыми — меняется только поле.
   Вес — один класс (.rb-private / .rb-lk): своё правило страницы с классом
   (ошибка, фокус) главнее этого */
:where(html) :is(.rb-private,.rb-lk) :where(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]):not([type=hidden]):not([type=submit]):not([type=button]):not([type=image]),select:not(.rb-nosel),textarea){border-color:#9c8e80}
:where(html) :is(.rb-private,.rb-lk) :where(.rbu-in,.rbu-sel,.rbu-ta,.rbu-search input):focus{border-color:#ed6b10}
/* Кабинет на телефоне: поддержка и боты — тремя плитками в ряд, значок над
   подписью. Тремя кнопками во всю ширину они занимали полэкрана над детьми */
@media (max-width:560px){
html body.rb-lk .kp-btns{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
html body.rb-lk .kp-btns .kp-btn{flex-direction:column;gap:4px;height:auto;min-height:62px;padding:8px 6px;font-size:12.5px;line-height:1.2;white-space:normal;text-align:center}
}
