/* jmi_code_527950 compatibility marker. */
/* 5.27.952 — единый финальный слой Light UI. Без вложенных <style>: предыдущая 5.27.951
   случайно попала внутрь CSS-блока, поэтому часть правил браузер игнорировал. */

/* Верхние служебные слои/режим просмотра. */
.viewbar{position:relative!important;top:auto!important;z-index:2780!important}
.va-back{top:var(--jmi-safe-top,0px)!important;bottom:0!important;height:auto!important}
.va-win{max-height:calc(100% - 24px)!important;overflow:auto!important}
.mr-back{padding-top:calc(var(--jmi-safe-top,0px) + 18px)!important;align-items:flex-start!important}
html.theme-light .viewbar{background:#f3e2ad!important;color:#5b430b!important;border-color:#bd8e22!important;box-shadow:none!important}
html.theme-light .viewbar a{background:#fff8e8!important;color:#684c0a!important;border-color:#c8a25a!important}
html.theme-light .viewbar .vb-list{
  background:#fffaf2!important;
  border-color:#c8a25a!important;
  box-shadow:0 16px 34px rgba(83,60,13,.18)!important;
}
html.theme-light .viewbar .vb-cap{color:#7b6a4e!important}
html.theme-light .viewbar .vb-list a{
  background:#fffaf2!important;
  color:#5d4a24!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
html.theme-light .viewbar .vb-list a:hover{
  background:#f6ead3!important;
  color:#5b430b!important;
}
html.theme-light .viewbar .vb-list a.on{
  background:#f3e2ad!important;
  color:#7a5708!important;
  border-color:#d6b15f!important;
}
html.theme-light .viewbar .vb-list a.off{
  background:#fff3f3!important;
  color:#a44b56!important;
}
html.theme-light .viewbar .vb-list a.off i{color:#a44b56!important}
html.theme-light .viewbar .vb-sep{background:#e4d5bd!important}
html.theme-light .va-win{background:#fffaf2!important;border-color:#d7c6a9!important;box-shadow:0 18px 45px rgba(54,39,15,.18)!important}
html.theme-light .va-win :is(.va-role,.va-cancel){background:#fffaf2!important;border-color:#ddd0ba!important;color:#28343f!important;box-shadow:none!important}
html.theme-light .va-role:hover{background:#f6ead3!important;border-color:#c79d4e!important}
html.theme-light .va-role small,html.theme-light .va-cancel{color:#66727b!important}

/* Заголовки/подписи на светлой теме: без чёрной заливки и дешёвой обводки. */
html.theme-light :is(.page-head h1,.page-title,.cab-head h1,.page-sub,.cab-sub,.bg-settings h2,.bg-manager h1){
  -webkit-text-stroke:0!important;text-shadow:none!important;filter:none!important;
}
html.theme-light body.has-sitebg :is(.page-sub,.cab-sub){
  color:#354552!important;background:rgba(255,250,242,.91)!important;border:1px solid rgba(197,176,141,.72)!important;
  box-shadow:0 5px 16px rgba(78,58,25,.07)!important;border-radius:12px!important;
}
/* Крупный H1 остаётся белым на картинке, но без чёрной плашки. */
html.theme-light body.has-sitebg :is(.page-head h1,.page-title,.cab-head h1){
  color:#fff!important;text-shadow:0 2px 5px rgba(24,35,45,.56)!important;
}

/* Общая дневная поверхность. */
html.theme-light{--jmi-soft-gold:#9a6a12;--jmi-soft-gold-2:#c49a46;--jmi-soft-red:#a64855;--jmi-soft-green:#38765a}
html.theme-light :is(.mr-win,.st-card,.st-side,.ga-card,.ga-edit-box,.rl-card,.sect-head,.ca-sec,.tb-box,.cu-card,.or-i,.or-panel,.db-sect,.db-card,.ba-card){
  background:#fffaf2!important;border-color:#d9ccb7!important;color:#28343f!important;box-shadow:0 8px 24px rgba(62,46,22,.07)!important;
}
html.theme-light :is(.mr-win,.st-card,.st-side,.ga-card,.ca-sec,.tb-box,.cu-card,.or-i,.db-sect,.db-card,.ba-card){border-radius:18px!important}

/* ---------- ПОКУПКА РАСКРУТКИ / КЕШБЭК ---------- */
.bp-title{font-size:19px;font-weight:900;color:var(--jmi-text)!important}
html.theme-light .bp-card{background:#fffaf2!important;border-color:#d9ccb7!important;border-radius:18px!important;box-shadow:0 9px 26px rgba(60,45,20,.08)!important}
html.theme-light .bp-title{color:#26333f!important}
html.theme-light .bp-kt b{color:#26333f!important}
html.theme-light .bp-kt i,html.theme-light .bp-lab,html.theme-light .bp-lim-s,html.theme-light .bp-srv-d{color:#66727c!important}
html.theme-light .bp-ki{background:#f8e8b8!important;border-color:#d0ae56!important;color:#8c650c!important;box-shadow:none!important}
html.theme-light .bp-lim-big.ok{background:#e8f2eb!important;border-color:#91b6a0!important;color:#2f664d!important}
html.theme-light .bp-lim-big.ok b{color:#285e46!important}
html.theme-light .bp-lim-big.no{background:#fff1ce!important;border-color:#d5ab4d!important;color:#6a4c0c!important}
html.theme-light .bp-dots i.busy{background:#d86c79!important;box-shadow:none!important}
html.theme-light .bp-dots i.free{background:#77b99a!important;box-shadow:none!important}
html.theme-light .bp-sum{background:#f5ecdc!important;border-color:#dccbac!important}
html.theme-light .bp-sum b{color:#7b5a13!important}
html.theme-light .wl-cbx{background:#e8f1e9!important;border-color:#8fb09a!important;color:#345f49!important;box-shadow:none!important}
html.theme-light .wl-cbx i,html.theme-light .wl-cbx b{color:#2d6e50!important}
html.theme-light .wl-cbx .n{color:#5f6f66!important}

/* ---------- МОНИТОРИНГ: все ТОП-карточки в одном стиле ---------- */
html.theme-light .mtop-i,html.theme-light .mtop-i.free,html.theme-light .mtop-i.lot,html.theme-light .mtop-i.lot.wait{
  background:#fffaf2!important;border:1px solid #d8cbb7!important;border-style:solid!important;border-radius:14px!important;
  box-shadow:0 5px 16px rgba(60,45,20,.07)!important;color:#2b3742!important;
}
html.theme-light .mtop-i:hover,html.theme-light .mtop-i.free:hover,html.theme-light .mtop-i.lot:hover{background:#f8efe0!important;border-color:#c9a75e!important;box-shadow:0 7px 18px rgba(65,48,20,.10)!important}
html.theme-light .mtop-i:before{background:#f2d477!important;color:#4d3704!important;box-shadow:none!important}
html.theme-light .mtop-n,html.theme-light .mtop-i.free .mtop-n,html.theme-light .mtop-lot-timer.mtop-n{color:#34414c!important}
html.theme-light .mtop-p,html.theme-light .mtop-i.on .mtop-p,html.theme-light .mtop-i.free .mtop-p{color:#64717a!important}
html.theme-light .mtop-left{color:#9a6a12!important;font-weight:750!important}
html.theme-light .mtop-bar{background:#e8dfcf!important}
html.theme-light .mtop-bar span{background:linear-gradient(90deg,#b69038,#5d9278)!important}
html.theme-light .mtop-vote{background:#fff8e9!important;border-color:#d7c7ac!important;color:#46545f!important;box-shadow:none!important}
html.theme-light .mon-btag{background:#f7efe1!important;border-color:#d6c8b2!important;color:#46545f!important;box-shadow:none!important;text-shadow:none!important}
html.theme-light .mon-btag i{filter:saturate(.55) brightness(.72)!important}
html.theme-light .mr-vote{background:#fff8e9!important;color:#45525e!important;border-color:#d6c8b2!important}
html.theme-light .mf{background:#fffaf2!important;border-color:#d8cbb7!important;border-radius:18px!important;box-shadow:0 8px 22px rgba(63,47,21,.07)!important}
html.theme-light .mf-chk{background:#f7efe2!important;border-color:#ddd0bc!important;color:#4e5b65!important}

/* ---------- Настройки сайта ---------- */
.st-cols{gap:16px!important;align-items:stretch!important}
.st-side{padding:10px!important;border-radius:20px!important;overflow:hidden!important}
.st-nav{gap:7px!important}
.st-nav a{border-radius:13px!important;margin:0!important;padding:11px 14px!important;position:relative!important}
.st-main{min-width:0;border-radius:20px!important}
.st-card{border-radius:20px!important;overflow:hidden!important;padding:20px!important}
.st-group{border-radius:15px!important;overflow:hidden!important}
html.theme-light .st-side{background:#f5eddf!important;border:1px solid #d4c6af!important;box-shadow:0 10px 28px rgba(62,45,18,.08)!important}
html.theme-light .st-nav a{background:#fffaf2!important;color:#35424d!important;border:1px solid #d9ccb7!important;box-shadow:none!important}
html.theme-light .st-nav a:hover{background:#f7ecd6!important;border-color:#c9a968!important;color:#4d390b!important}
html.theme-light .st-nav a.on{background:#f0deaa!important;border-color:#bd8e27!important;color:#4b3504!important;box-shadow:inset 4px 0 0 #b67f13!important}
html.theme-light .st-card{background:#fffaf2!important;border:1px solid #d9ccb7!important;box-shadow:0 9px 25px rgba(62,45,18,.07)!important}
html.theme-light .st-group{background:#f8f0e3!important;border-color:#dfd1ba!important}
html.theme-light .st-field{border-color:#e5d9c7!important}
html.theme-light .st-field .lbl{color:#26333f!important}.theme-light .st-field .key{color:#71808b!important}
html.theme-light .st-reset{background:#fffaf2!important;border-color:#d6c8b2!important;color:#66727b!important}
html.theme-light .st-save,html.theme-light .st-save-mini{background:#f4e7c7!important;border-color:#c89a3a!important;color:#4c3709!important;box-shadow:none!important}

/* ---------- Игры и сервера ---------- */
html.theme-light .ga-wrap :is(input[type=text],input[type=number],input[type=file],select,textarea){background:#fffaf2!important;color:#26333f!important;border-color:#cfbea3!important}
html.theme-light .ga-row{background:#fffaf2!important;border-color:#ddd0bb!important;border-radius:14px!important}
html.theme-light .ga-row .nm{color:#26333f!important}.theme-light .ga-row .sub{color:#66727c!important}
html.theme-light .ga-sec{background:#f4ecde!important;border-color:#d5c7b0!important;color:#52606a!important}
html.theme-light .ga-edit-box{background:#f8efe2!important;border-color:#d7c7ae!important}
html.theme-light .ga-chk{background:#f7efe3!important;border-color:#d8cab4!important;color:#45535e!important}
html.theme-light .ga-chk:has(input:checked){background:#e7efe9!important;border-color:#86aa95!important;color:#305f49!important}
html.theme-light .ga-f label{color:#34414c!important;font-weight:800!important}
html.theme-light .ga-ico{background:#fffaf2!important;border-color:#d6c8b2!important;color:#66727b!important;box-shadow:none!important}
html.theme-light .ga-ico.on{background:#efe4c8!important;border-color:#be9134!important;color:#75530c!important;box-shadow:none!important}

/* ---------- Пользователи сайта / роли / видимость ---------- */
html.theme-light .sect-head{background:#fffaf2!important;border-color:#d7c8b1!important;color:#26333f!important;box-shadow:0 6px 18px rgba(60,45,20,.06)!important}
html.theme-light .sect-head>i,html.theme-light .sect-arrow{color:#9a6a12!important}
html.theme-light .sect-head span{color:#64717b!important}
html.theme-light .rl-card{background:#fffaf2!important;border-color:#d9ccb7!important;color:#2a3742!important;box-shadow:0 5px 16px rgba(60,45,20,.06)!important}
html.theme-light .rl-card:not(.open){color:#6f7a82!important}
html.theme-light .rl-card:not(.open) .rl-name,html.theme-light .rl-card:not(.open) .rl-name b{color:#6f7a82!important}
html.theme-light .rl-card.open .rl-name,html.theme-light .rl-card.open .rl-name b{color:#27333f!important}
html.theme-light .rl-badge{background:transparent!important;box-shadow:none!important;filter:saturate(.65) brightness(.78)!important}
html.theme-light .vis-t{border-collapse:separate!important;border-spacing:0 5px!important}
html.theme-light .vis-t tbody tr{background:#fffaf2!important;box-shadow:0 0 0 1px #e0d3bf!important}
html.theme-light .vis-t td{color:#4d5a64!important}.theme-light .vis-link{color:#4d5a64!important}

/* ---------- Администрация сайта: цифры как аккуратные счётчики ---------- */
html.theme-light .site-adm-stat{background:#fffaf2!important;border-color:#d8cbb7!important}
html.theme-light .site-adm-stat b{display:grid!important;place-items:center!important;min-width:28px!important;height:28px!important;padding:0 7px!important;border-radius:10px!important;background:#f4e3b8!important;border:1px solid #caa34f!important;color:#5a4006!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8)!important;font-size:14px!important;line-height:1!important}
html.theme-light .site-adm-stat i{background:transparent!important;color:#8e6510!important;box-shadow:none!important}
html.theme-light .site-adm-stat span{color:#77838b!important}

/* ---------- Панель управления / уведомления ---------- */
html.theme-light .db-notes-head{padding:10px 12px!important;border-radius:14px!important;background:#fffaf2!important;border:1px solid #d9ccb7!important;color:#53616b!important}
html.theme-light .db-notes-head b{display:inline-grid!important;place-items:center!important;min-width:26px!important;height:26px!important;padding:0 7px!important;border-radius:9px!important;background:#f0dfb2!important;border:1px solid #c79e45!important;color:#634706!important;box-shadow:none!important}
html.theme-light .db-notes-clear{background:#fff8e9!important;border-color:#d4c4a9!important;color:#6b5217!important;box-shadow:none!important}
html.theme-light .db-notes-clear.danger{background:#faecee!important;border-color:#dba5ad!important;color:#9b4552!important}

/* ---------- Чат администратора ---------- */
html.theme-light .ca-msg-row{background:#f7efe3!important;border-color:#dfd2bd!important;color:#2c3944!important}
html.theme-light .ca-msg-row .n{color:#8d6210!important}.theme-light .ca-msg-row .t{color:#76828a!important}.theme-light .ca-msg-row .txt{color:#34414b!important}
html.theme-light :is(.ca-mut-btn,.ca-ban-btn,.ca-del-btn){box-shadow:none!important;min-width:32px!important;height:30px!important}
html.theme-light .ca-mut-btn{background:#fff1ce!important;border-color:#d4ad56!important;color:#896211!important}
html.theme-light :is(.ca-ban-btn,.ca-del-btn){background:#fae9ec!important;border-color:#dca1aa!important;color:#9e4150!important}

/* ---------- Telegram bot ---------- */
html.theme-light .tb-about{display:block!important;padding:9px 12px!important;border-radius:11px!important;background:#f6efe2!important;border:1px solid #dccfb9!important;color:#5b6872!important}
html.theme-light .tb-tabs{gap:7px!important;margin-bottom:8px!important}
html.theme-light .tb-tab{background:#fffaf2!important;border:1px solid #d8cbb7!important;border-radius:11px!important;color:#5b6872!important;box-shadow:none!important}
html.theme-light .tb-tab.on{background:#f0dfb3!important;border-color:#c4973b!important;color:#624708!important}
html.theme-light .tb-box{border-radius:16px!important;background:#fffaf2!important}
html.theme-light .tb-ptab{background:#fffaf2!important;border-color:#d8cbb7!important;color:#66727b!important;box-shadow:none!important}
html.theme-light .tb-ptab.on{background:#f0dfb3!important;border-color:#c4973b!important;color:#624708!important}
html.theme-light .tb-tool,html.theme-light .tb-emo,html.theme-light .tb-var{background:#f8f0e4!important;border-color:#dacdb8!important;color:#5b6872!important;box-shadow:none!important}

/* ---------- Обращения / заказы ---------- */
html.theme-light .ta-wrap :is(.ta-empty,.ta-old,.ta-history,.ta-note),html.theme-light .or-empty{color:#55626d!important;background:rgba(255,250,242,.86)!important;border:1px solid #dccfb9!important;border-radius:12px!important;padding:10px 13px!important}
html.theme-light .or-panel{padding:10px!important;background:#fffaf2!important;border:1px solid #d9ccb7!important;border-radius:16px!important;box-shadow:0 6px 18px rgba(60,45,20,.06)!important}
html.theme-light .or-go{background:#f0dfb5!important;border-color:#c89b3d!important;color:#5d4308!important;box-shadow:none!important}
html.theme-light .or-c{background:#fff8e9!important;border-color:#d6c7ad!important;color:#6c5a34!important;box-shadow:none!important}
html.theme-light .or-c.danger{background:#fae9ec!important;border-color:#dca4ad!important;color:#9a4050!important}
html.theme-light .or-gc{padding:8px 10px!important;border-radius:10px!important;background:rgba(255,250,242,.86)!important;border:1px solid #ddd0ba!important;color:#55626c!important}
html.theme-light .or-empty{font-style:normal!important;text-align:center!important}

/* ---------- Купоны ---------- */
html.theme-light .cu-card{background:#fffaf2!important;border-color:#d8cbb7!important;box-shadow:0 8px 22px rgba(60,45,20,.07)!important}
html.theme-light .cu-f small{display:block!important;margin-bottom:7px!important;color:#394752!important;font-weight:850!important;font-size:11px!important;letter-spacing:.15px!important}
html.theme-light .cu-f input,html.theme-light .cu-f select{background:#fffaf2!important;color:#26333f!important;border-color:#cfbea3!important}
html.theme-light .cu-chk{background:#e8f1e9!important;border-color:#8eb09a!important;color:#315f49!important}
html.theme-light .cu-chk span{color:#315f49!important}.theme-light .cu-chk span i{color:#66756d!important}
html.theme-light .cu-btn{background:#e6f0e8!important;border-color:#82aa92!important;color:#2f674d!important;box-shadow:none!important}

/* ---------- Выдача услуг: кислотные иконки приглушены ---------- */
html.theme-light .ba-prev-i,html.theme-light .ba-k i{filter:saturate(.62) brightness(.82)!important;text-shadow:none!important}
html.theme-light .ba-k{background:#f7efe3!important;border-color:#ddd0ba!important;color:#4b5963!important;box-shadow:none!important}
html.theme-light .ba-k.on{background:#f1e4c5!important;border-color:#c79c45!important;color:#4f3a09!important}

/* ---------- Единая типографика подписей полей ---------- */
html.theme-light :is(.bp-lab,.ba-lab,.cu-cap,.or-gc,.tb-lab,.ga-f>label,.st-field .lbl){text-shadow:none!important}
html.theme-light :is(.bp-lab,.ba-lab,.tb-lab,.ga-f>label){color:#35424d!important;font-weight:850!important}

/* Иконки на светлом фоне — без неонового свечения, но цвет сохраняется. */
html.theme-light :is(.fa,.ico)[style*="#00eaff"],html.theme-light :is(.fa,.ico)[style*="#7bffc4"],html.theme-light :is(.fa,.ico)[style*="#ff4fa3"]{text-shadow:none!important;box-shadow:none!important;filter:saturate(.72) brightness(.82)!important}

/* Небольшая единая анимация меню/селектов. */
.jmi-select-menu{transition:opacity .16s ease,transform .20s cubic-bezier(.2,.8,.2,1),visibility .16s ease!important}
.jmi-select-ui.open .jmi-select-menu{animation:jmiMenuPop .20s cubic-bezier(.2,.8,.2,1)}
@keyframes jmiMenuPop{from{opacity:0;transform:translateY(-5px) scale(.985)}to{opacity:1;transform:none}}


/* 5.27.953 — второй проход Light UI по служебным/админ-страницам. */
html.theme-light{
  --jmi-light-card:#fffaf2;
  --jmi-light-card-2:#f6efe3;
  --jmi-light-line:#d9ccb7;
  --jmi-light-text:#28343f;
  --jmi-light-muted:#65727c;
  --jmi-light-gold:#8b6410;
  --jmi-light-green:#397457;
  --jmi-light-red:#a34b57;
}

/* Не оставляем текст прямо на видеофоне там, где он является состоянием/подсказкой. */
html.theme-light body.has-sitebg :is(.am-empty,.ga-sum,.hc-lastrun,.lc-prog-txt,.lc-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.pg-hdr .sub,.an-hdr .sub,.sd-hdr .sub,.diag-hdr .sub){
  color:var(--jmi-light-text)!important;
  text-shadow:none!important;
}
html.theme-light body.has-sitebg :is(.am-empty,.ga-sum,.hc-lastrun,.lc-prog-txt){
  display:block!important;
  max-width:760px;
  margin-left:auto!important;margin-right:auto!important;
  background:rgba(255,250,242,.93)!important;
  border:1px solid rgba(205,188,160,.86)!important;
  border-radius:12px!important;
  padding:9px 13px!important;
  box-shadow:0 6px 18px rgba(60,45,20,.07)!important;
}

/* Заявки на рекламу — пустое состояние не теряется на фоне. */
html.theme-light .am-empty{font-style:normal!important;font-weight:700!important;color:#64717b!important}
html.theme-light .am-tab{background:#fffaf2!important;border-color:#d8cbb7!important;color:#596771!important}
html.theme-light .am-tab.on{background:#f1dfad!important;border-color:#c59631!important;color:#5d4308!important}

/* Кешбек — предупреждение должно читаться, а не светиться кислотным жёлтым. */
html.theme-light .wa-warn{
  background:#fff3cf!important;border:1px solid #d8ae51!important;color:#654b10!important;
  border-radius:14px!important;box-shadow:0 6px 16px rgba(91,65,13,.06)!important;
}
html.theme-light .wa-warn i{color:#a9760c!important}
html.theme-light :is(.wa-card,.wa-t,.wa-ex){border-radius:18px!important}
html.theme-light .wa-card{background:#fffaf2!important;border-color:#d9ccb7!important}

/* Настройки: цельные карточки, без квадратных торчащих углов и полосы в самый край. */
html.theme-light .st-main{background:transparent!important;border-radius:20px!important}
html.theme-light .st-card{overflow:hidden!important;border-radius:20px!important}
html.theme-light .st-card:before{
  left:7px!important;top:11px!important;bottom:11px!important;width:3px!important;border-radius:999px!important;
  box-shadow:none!important;background:#b88928!important;
}
html.theme-light .st-card>h2{padding-left:7px!important}
html.theme-light .st-group{border:1px solid #dfd2bd!important;background:#f8f1e6!important;border-radius:15px!important}
html.theme-light .st-save-mini,html.theme-light .st-save{
  background:#f1dfad!important;border-color:#c59631!important;color:#5d4308!important;box-shadow:none!important
}

/* Проверки: все служебные подписи в Light — светлая поверхность + тёмный текст. */
html.theme-light :is(.ck-hdr .sub,.pl-hdr .sub,.tr-hdr .sub,.lc-hdr .sub,.mp-hdr .sub,.pg-hdr .sub,.an-hdr .sub,.ga-hdr .sub){
  display:inline-block!important;background:#fffaf2!important;border:1px solid #d9ccb7!important;border-radius:11px!important;
  padding:7px 12px!important;color:#53616b!important;text-shadow:none!important;box-shadow:0 5px 15px rgba(60,45,20,.06)!important;
}
html.theme-light .lc-note[style],html.theme-light .lc-btn{
  background:#fffaf2!important;border-color:#d6c7ad!important;color:#4d5a64!important;box-shadow:none!important;
}
html.theme-light .lc-btn:hover{background:#f3e6cb!important;color:#513b09!important;border-color:#c79b43!important}
html.theme-light .lc-btn[disabled]{background:#eee8dd!important;color:#98a0a5!important;border-color:#ddd3c3!important}
html.theme-light .lc-good{background:#fffaf2!important;border-color:#9dbba7!important;color:#2f674d!important}
html.theme-light .lc-prog{background:#e9e0d1!important;border-color:#d4c6b1!important}
html.theme-light .hc-lastrun{font-weight:700!important}
html.theme-light .ga-sum{font-weight:700!important}
html.theme-light .ga-sum .ga-badcount{color:#397457!important}
html.theme-light .ga-note{background:#fff0c8!important;border-color:#d5aa4c!important;color:#715215!important}
html.theme-light .ga-btn{background:#fff4d6!important;border-color:#c89a36!important;color:#654807!important;box-shadow:none!important}

/* Пульс. */
html.theme-light .pl-sum.ok{background:#e8f2eb!important;border-color:#8eb09a!important;color:#315f49!important}
html.theme-light .pl-sum.warn{background:#fff3cf!important;border-color:#d8ae51!important;color:#654b10!important}
html.theme-light .pl-sum.bad{background:#faecee!important;border-color:#dba5ad!important;color:#94414e!important}
html.theme-light .pl-card{background:#fffaf2!important;border-color:#d9ccb7!important}

/* Steam diagnostics / проверки. */
html.theme-light :is(.sd-note,.diag-note,.sd-msg,.diag-msg){background:#fffaf2!important;border-color:#d9ccb7!important;color:#4e5c66!important;text-shadow:none!important}
html.theme-light :is(.sd-card,.diag-card){background:#fffaf2!important;border-color:#d9ccb7!important}

/* Картинки карт. */
html.theme-light .mp-card{background:#fffaf2!important;border-color:#d9ccb7!important;box-shadow:0 7px 20px rgba(60,45,20,.06)!important}
html.theme-light .mp-stat{background:#f5eddf!important;border-color:#dfd2bd!important}
html.theme-light .mp-btn{background:#fff4d6!important;border-color:#c89a36!important;color:#5d4308!important;box-shadow:none!important}
html.theme-light .mp-btn.danger{background:#faecee!important;border-color:#dba5ad!important;color:#9b4552!important}

/* Справочник ошибок — список сам является карточкой, а не висит на фоне. */
html.theme-light #erlist{
  background:#fffaf2!important;border:1px solid #d9ccb7!important;border-radius:18px!important;padding:12px!important;
  box-shadow:0 8px 24px rgba(60,45,20,.06)!important;
}
html.theme-light .er-item{background:#f9f2e7!important;border-color:#e0d3bf!important;box-shadow:none!important}
html.theme-light .er-head:hover{background:#f3e4c7!important}
html.theme-light .er-code{background:#f0dfb3!important;border-color:#d2ad61!important;color:#77550b!important}
html.theme-light .er-who.owner{background:#eee9df!important;color:#66717a!important}
html.theme-light .er-wrap a[href*="errors_full"]{background:#fff4d6!important;color:#664907!important;border-color:#c89b3a!important}

/* Служебные страницы. */
html.theme-light .pg-card{background:#fffaf2!important;border-color:#d9ccb7!important;box-shadow:0 8px 22px rgba(60,45,20,.06)!important}
html.theme-light .pg-cap{color:#805b0c!important}
html.theme-light .pg-note{color:#596772!important}
html.theme-light .pg-mode{background:#f7efe3!important;border-color:#ddd0bb!important}
html.theme-light .pg-mode.on{background:#fff0c7!important;border-color:#c7962d!important}
html.theme-light .pg-open{background:#edf4ef!important;border:1px solid #9db8a6!important;color:#37694f!important;box-shadow:none!important}
html.theme-light .pg-row .w{color:#946a11!important;background:#fff3cf!important;border-color:#d9b45c!important}

/* Объявления: убрать неон из заготовок и карточек типов. */
html.theme-light .an-hdr .sub{max-width:720px!important}
html.theme-light .an-samples button i,.theme-light .an-kind b i{filter:saturate(.48) brightness(.72)!important;text-shadow:none!important}
html.theme-light .an-kind b{color:#34414b!important}
html.theme-light .an-kind.on b{color:#604607!important}
html.theme-light .an-samples button{color:#5f4b21!important}
html.theme-light .an-samples button:hover{color:#594106!important}
html.theme-light .an-card,.theme-light .an-acc{border-radius:18px!important}

/* Публичный профиль: подписи выбора статистики внутри светлой карточки — обычный тёмный текст. */
html.theme-light .pf-sec .pick-label,
html.theme-light .pf-sec .srvpick-cap{
  color:#4d5a64!important;text-shadow:none!important;background:transparent!important;border:0!important;
  font-weight:850!important;letter-spacing:.5px!important;
}
html.theme-light .pf-sec .pickbar{background:#f7efe3!important;border:1px solid #dfd2bd!important;border-radius:15px!important;padding:14px!important}
html.theme-light .pf-sec :is(.srvpick-btn,.gamepick-btn,.pick-btn){background:#fffaf2!important;border-color:#d5c6ae!important;color:#40505b!important}

/* Журнал действий — спокойный diff, JSON/объекты не кислотные. */
html.theme-light .jlog-card,.theme-light .jlog-fbox{background:#fffaf2!important;border-color:#d9ccb7!important;box-shadow:0 7px 20px rgba(60,45,20,.06)!important}
html.theme-light .jlog-was{background:#f5e8ea!important;border:1px solid #dfb7bd!important;color:#96515b!important}
html.theme-light .jlog-now{background:#edf2ec!important;border:1px solid #acc0b0!important;color:#38634d!important}
html.theme-light .jlog-diff{align-items:flex-start!important}
html.theme-light .jlog-diff :is(.jlog-was,.jlog-now){white-space:pre-wrap!important;word-break:break-word!important;max-width:100%!important}

/* Общий лёгкий стиль предупреждающих/пустых состояний на Light. */
html.theme-light body.has-sitebg :is(.or-empty,.ta-empty,.am-empty,.ga-empty){
  background:rgba(255,250,242,.92)!important;border-color:#d9ccb7!important;color:#5a6771!important;text-shadow:none!important;
}

/* Неоновые служебные цвета в Light приглушаем, но не обесцвечиваем полностью. */
html.theme-light :is(.an-wrap,.pg-wrap,.mp-wrap,.ga-wrap,.pl-wrap,.ck-wrap,.tr-wrap,.lc-wrap) :is(.fa,.tag,.badge)[style*="#00"],
html.theme-light :is(.an-wrap,.pg-wrap,.mp-wrap,.ga-wrap,.pl-wrap,.ck-wrap,.tr-wrap,.lc-wrap) :is(.fa,.tag,.badge)[style*="#ff"]{
  filter:saturate(.62) brightness(.82)!important;text-shadow:none!important;
}


/* 5.27.956 — точечные исправления после визуальной проверки Light. */
/* Подзаголовки снова обычные: без белой плашки/обводки/тени вокруг текста. */
html.theme-light :is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){
  background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important;
  color:#586672!important;text-shadow:none!important;filter:none!important;
}
html.theme-light body.has-sitebg :is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){
  background:transparent!important;border:0!important;box-shadow:none!important;color:#f4f6f5!important;
  text-shadow:0 2px 4px rgba(18,25,31,.72)!important;
}

/* Настройки: левая навигация и правая форма — два самостоятельных блока, без общей панели. */
.st-cols{align-items:flex-start!important;background:transparent!important;border:0!important;box-shadow:none!important}
.st-side{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important;border-radius:0!important}
html.theme-light .st-side{background:transparent!important;border:0!important;box-shadow:none!important}
.st-nav{display:grid!important;gap:7px!important}
.st-main{background:transparent!important;border:0!important;box-shadow:none!important}
html.theme-light .st-main{background:transparent!important;border:0!important;box-shadow:none!important}
html.theme-light .st-hdr .sub{margin-top:5px!important}

/* TOP мониторинга: все слоты строго одинаковой ширины и высоты. */
/* 5.28.77 — TOP мониторинга: старый глобальный слой 5.27.956
   насильно обрезал карточки до 230px и разрешал названию 2 строки.
   Это перекрывало новые стили monitoring.php. Теперь карточка выше,
   а название строго в одну строку с многоточием. */
.mtop{grid-template-columns:repeat(var(--top-slots,4),minmax(0,1fr))!important;grid-auto-rows:310px!important;align-items:stretch!important}
.mtop-i,.mtop-i.free,.mtop-i.lot{width:100%!important;min-width:0!important;height:310px!important;min-height:310px!important;max-height:310px!important;overflow:hidden!important}
.mtop-img{height:122px!important;min-height:122px!important;padding-top:0!important;flex:0 0 122px!important}
.mtop-n{display:block!important;width:100%!important;height:18px!important;min-height:18px!important;max-height:18px!important;line-height:18px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;-webkit-line-clamp:unset!important;-webkit-box-orient:unset!important}
.mtop-p{height:28px!important;min-height:28px!important;line-height:14px!important;overflow:hidden!important}
.mtop-bar{flex:0 0 4px!important;margin-top:auto!important}
html.theme-light .mtop-left{color:#89600f!important}

@media(max-width:820px){.mtop{grid-auto-rows:300px!important}.mtop-i,.mtop-i.free,.mtop-i.lot{height:300px!important;min-height:300px!important;max-height:300px!important}.mtop-img{height:112px!important;min-height:112px!important;flex-basis:112px!important}.mtop-n{height:18px!important;min-height:18px!important;max-height:18px!important;white-space:nowrap!important;text-overflow:ellipsis!important}}


/* 5.27.956 — финальный слой: настройки как в юридическом отделе, рабочие фильтры и читаемые служебные подписи. */
.st-side{flex:0 0 250px!important;position:sticky!important;top:18px!important}
.st-nav{display:block!important;max-height:calc(100vh - 210px)!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding-right:4px!important;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--jmi-accent) 38%,transparent) transparent}
.st-nav::-webkit-scrollbar{width:5px}.st-nav::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--jmi-accent) 38%,transparent);border-radius:5px}
.st-nav a{display:flex!important;align-items:center!important;gap:10px!important;padding:11px 15px!important;margin:0 0 7px!important;
  border-radius:12px!important;box-shadow:none!important;transform:none!important;transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease!important}
.st-nav a:hover{transform:translateX(2px)!important}
html.theme-light .st-nav a{background:#fffaf2!important;border:1px solid #d9ccb8!important;color:#34414b!important}
html.theme-light .st-nav a:hover{background:#fbf1df!important;border-color:#bd9143!important}
html.theme-light .st-nav a.on{background:linear-gradient(180deg,#f7e7b9,#fff6e3)!important;border-color:#c28a16!important;color:#4a3508!important;
  box-shadow:inset 3px 0 0 #b97a00!important}
html.theme-light .st-nav a i{color:#95650b!important}
html.theme-light .st-card{box-shadow:none!important}

/* Telegram: пояснение не теряется поверх видео и не растягивается в случайную строку. */
.tb-head p{display:table!important;max-width:min(760px,calc(100% - 24px))!important;margin:8px auto 16px!important;padding:9px 16px!important;
  text-align:center!important;line-height:1.45!important;border-radius:12px!important;background:rgba(9,16,24,.80)!important;
  border:1px solid rgba(0,234,255,.20)!important;color:#dbe9ed!important;text-shadow:none!important;box-shadow:none!important}
html.theme-light .tb-head p{background:rgba(255,250,242,.94)!important;border-color:#d8c8aa!important;color:#53616d!important}

/* Мониторинг: кастомный список не обрезается панелью фильтров. */
.mf,.mf-row{overflow:visible!important}.mf{position:relative!important;z-index:30!important}
.mf-c:has(.jmi-select-ui.open){z-index:13020!important}


/* 5.27.957 — единый язык заголовков: типографика как в Telegram-блоке,
   цветные FontAwesome-иконки без тяжёлых плашек и чёрной обводки. */
:is(.page-head h1,.db-hdr h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tb-head h1,.cab-head h1,.page-title){text-transform:none!important;
  font-family:"Segoe UI",Tahoma,Arial,sans-serif!important;font-weight:900!important;letter-spacing:.15px!important;
}
:is(.page-head h1,.db-hdr h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tb-head h1,.cab-head h1,.page-title) i.fa{
  display:inline-block!important;margin-right:7px!important;-webkit-text-stroke:0!important;text-shadow:none!important;filter:none!important;
  color:#27cfe0!important;
}
:is(.page-head h1,.db-hdr h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tb-head h1,.cab-head h1,.page-title) i.fa.fa-tachometer{color:#8b72e8!important}
:is(.page-head h1,.db-hdr h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tb-head h1,.cab-head h1,.page-title) i.fa.fa-sliders{color:#5aa7e8!important}
:is(.page-head h1,.db-hdr h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tb-head h1,.cab-head h1,.page-title) i.fa.fa-comments{color:#35bde8!important}
:is(.page-head h1,.db-hdr h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tb-head h1,.cab-head h1,.page-title) i.fa.fa-inbox{color:#d89a21!important}
:is(.page-head h1,.db-hdr h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tb-head h1,.cab-head h1,.page-title) i.fa.fa-paper-plane{color:#2ca9e8!important}
:is(.page-head h1,.db-hdr h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tb-head h1,.cab-head h1,.page-title) i.fa.fa-shield{color:#df5f70!important}
html.theme-light :is(.page-head h1,.db-hdr h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tb-head h1,.cab-head h1,.page-title){text-shadow:none!important;-webkit-text-stroke:0!important;filter:none!important}

@media(max-width:820px){.st-side{position:static!important;width:100%!important;flex-basis:auto!important}.st-nav{max-height:50vh!important}}

@media(max-width:900px){.st-cols{flex-direction:column!important}.st-side{width:auto!important}.jmi-select-menu{max-height:240px}}

/* 5.27.977 — тема меняет только оформление, а не положение страницы.
   Общие подзаголовки имеют одинаковую геометрию в Dark/Light; во время
   переключения отключаем только геометрические transition, а JS выше
   дополнительно удерживает текущую точку просмотра. */
:is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){
  box-sizing:border-box!important;background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  padding:0!important;margin-top:5px!important;min-height:20px!important;line-height:20px!important
}
html.jmi-theme-switching *,html.jmi-theme-switching *:before,html.jmi-theme-switching *:after{
  transition-property:color,background-color,border-color,box-shadow,text-shadow,filter,opacity!important
}

/* Реклама: одинаковая геометрия в обеих темах. Свободное место всегда
   имеет пунктир и непрозрачную заливку цветом ФОНА соответствующей темы,
   чтобы надпись не терялась на пользовательском фото/видео. */
.foot-slots{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:14px!important;
  width:min(1100px,calc(100% - 28px))!important}
.foot-slot,.foot-slot>a,.foot-slot img{border-radius:14px!important;box-sizing:border-box!important}
.foot-slot-free{background:transparent!important;overflow:visible!important}
.foot-slot-free>a{height:105px!important;overflow:hidden!important;background:var(--jmi-bg-page,#0b0d12)!important;
  border:2px dashed color-mix(in srgb,var(--jmi-accent,#00eaff) 38%,transparent)!important}
.foot-slot-free>a:hover{background:var(--jmi-bg-page,#0b0d12)!important;
  border-color:color-mix(in srgb,var(--jmi-accent,#00eaff) 72%,transparent)!important}
html.theme-light .foot-slot-free>a{background:var(--jmi-bg-page,#e9e4da)!important}
@media(max-width:700px){.foot-slots{grid-template-columns:1fr!important}}

/* 5.27.976 — одинаковая высота шапки страницы в обеих темах и без
   тёмной плашки под подзаголовком поверх пользовательского фона. */
.page-sub{padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;
  background:transparent!important;line-height:20px!important;min-height:20px!important}
body.has-sitebg .page-sub{background:transparent!important;border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;padding:0!important}
html.theme-light body.has-sitebg .page-sub{background:transparent!important}

/* Светлая тема: рекламные места имеют те же скругления, что тёмные. */
html.theme-light .foot-slot,
html.theme-light .foot-slot>a,
html.theme-light .foot-slot img{border-radius:14px!important}
html.theme-light .foot-slot{overflow:hidden!important}
html.theme-light .foot-slot-free{overflow:visible!important}
html.theme-light .foot-slot-free>a{overflow:hidden!important}

/* 5.28.186 — единый внешний фон страниц.
   Убираем только заливку/рамку ВНЕШНЕГО wrapper-а, который является прямым
   ребёнком #jmi-main. Вложенные карточки, панели, формы и их фоны не трогаем. */
body.has-sitebg #jmi-main > :is(.wrap,[class$="-wrap"]),
html.theme-light body.has-sitebg #jmi-main > :is(.wrap,[class$="-wrap"]){
  background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;isolation:auto!important
}
body.has-sitebg #jmi-main > :is(.wrap,[class$="-wrap"]):before,
body.has-sitebg #jmi-main > :is(.wrap,[class$="-wrap"]):after,
html.theme-light body.has-sitebg #jmi-main > :is(.wrap,[class$="-wrap"]):before,
html.theme-light body.has-sitebg #jmi-main > :is(.wrap,[class$="-wrap"]):after{
  background:none!important;box-shadow:none!important
}

/* 5.27.978 — one geometry for Dark/Light + video footer glass */
html{overflow-y:scroll}
html.jmi-theme-switching *,html.jmi-theme-switching *:before,html.jmi-theme-switching *:after{transition:none!important;animation-play-state:paused!important}
:is(.page-head,.cab-head,.st-hdr,.ga-hdr,.vd-hdr,.tr-hdr,.ck-hdr,.pl-hdr,.mp-hdr,.an-hdr){box-sizing:border-box}
:is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){box-sizing:border-box;line-height:1.45!important}
.site-foot{box-sizing:border-box;border-top:1px solid rgba(0,234,255,.34)!important}
body.has-sitebg-video .site-foot{background:rgba(11,13,18,.68)!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important}
html.theme-light body.has-sitebg-video .site-foot{background:rgba(233,228,218,.58)!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important;border-top-color:rgba(183,121,0,.42)!important}
body.has-sitebg-video .foot-slot-free>a{background:var(--jmi-bg-page,#0b0d12)!important}
html.theme-light body.has-sitebg-video .foot-slot-free>a{background:var(--jmi-bg-page,#e9e4da)!important}

/* 5.27.979 — Dark/Light must change only colors, never page geometry.
   No body locking/anchor compensation during toggle: keep the exact scroll offset,
   so a fixed animated background cannot visually jump. */
:is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){
  display:block!important;width:auto!important;max-width:none!important;box-sizing:border-box!important;
  margin-top:5px!important;margin-left:0!important;margin-right:0!important;margin-bottom:16px!important;
  padding:0!important;min-height:20px!important;line-height:20px!important;
  background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;
  text-shadow:none!important;-webkit-text-stroke:0!important
}
body.has-sitebg :is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub),
html.theme-light body.has-sitebg :is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){
  background:transparent!important;background-image:none!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  padding:0!important;text-shadow:none!important;-webkit-text-stroke:0!important;filter:none!important
}
body.has-sitebg :is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){color:#f4f6f5!important}
html.theme-light body.has-sitebg :is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){color:#f4f6f5!important}

/* Video footer: same pure blur in both themes. No painted light/dark slab. */
body.has-sitebg-video .site-foot,
html.theme-light body.has-sitebg-video .site-foot{
  background:transparent!important;background-image:none!important;
  backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;
  box-shadow:none!important
}
body.has-sitebg-video .site-foot{border-top-color:rgba(0,234,255,.34)!important}
html.theme-light body.has-sitebg-video .site-foot{border-top-color:rgba(183,121,0,.42)!important}

/* Free ad tiles keep the dashed frame and theme surface only inside the tile. */
body.has-sitebg-video .foot-slot-free>a{background:var(--jmi-bg-page,#0b0d12)!important}
html.theme-light body.has-sitebg-video .foot-slot-free>a{background:var(--jmi-bg-page,#e9e4da)!important}


/* 5.27.981 — theme parity: no layout jump, no subtitle pills, pure video-footer blur. */
html{scrollbar-gutter:stable!important;overflow-y:scroll!important}
html.jmi-theme-switching,html.jmi-theme-switching body{scroll-behavior:auto!important}
html.jmi-theme-switching *,html.jmi-theme-switching *:before,html.jmi-theme-switching *:after{
  transition:none!important;animation-play-state:paused!important
}

/* One exact subtitle geometry and typography in both themes. */
:is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){
  display:block!important;box-sizing:border-box!important;width:auto!important;max-width:none!important;
  margin:5px 0 16px!important;padding:0!important;min-height:20px!important;height:auto!important;
  font-family:inherit!important;font-size:13px!important;font-weight:700!important;font-style:normal!important;
  line-height:20px!important;letter-spacing:1px!important;text-align:center!important;
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;
  text-shadow:none!important;-webkit-text-stroke:0!important;filter:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important
}
body.has-sitebg :is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub),
html.theme-light body.has-sitebg :is(.page-sub,.cab-sub,.st-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub){
  color:#f4f6f5!important;background:transparent!important;background-color:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important
}
:is(.page-sub,.cab-sub)>.st-w,
body.has-sitebg :is(.page-sub,.cab-sub)>.st-w,
html.theme-light body.has-sitebg :is(.page-sub,.cab-sub)>.st-w{
  margin:0!important;padding:0!important;background:transparent!important;background-color:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;text-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;font:inherit!important;letter-spacing:inherit!important;color:inherit!important
}

/* Footer geometry is identical in Dark/Light. Theme never changes its vertical size. */
.site-foot,html.theme-light .site-foot{
  box-sizing:border-box!important;margin-top:34px!important;padding:0!important;min-height:0!important;
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  box-shadow:none!important
}
.site-foot:before,.site-foot:after,html.theme-light .site-foot:before,html.theme-light .site-foot:after{content:none!important;display:none!important}
.foot-line,html.theme-light .foot-line{height:2px!important;margin:0 auto!important;width:min(1100px,calc(100% - 28px))!important}
.foot-slots,html.theme-light .foot-slots{margin:14px auto 4px!important;padding:0!important;gap:14px!important;width:min(1100px,calc(100% - 28px))!important}
.foot-brand,html.theme-light .foot-brand{padding:22px 10px 8px!important;margin:0!important;line-height:1.2!important}
.foot-ver,html.theme-light .foot-ver{padding:0 10px 26px!important;margin:0!important;line-height:1.4!important}

/* Video background: BLUR ONLY. No tint, gradient or painted slab in either theme. */
body.has-sitebg-video .site-foot,
html.theme-light body.has-sitebg-video .site-foot{
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;
  box-shadow:none!important
}
body.has-sitebg-video .site-foot{border-top:1px solid rgba(0,234,255,.34)!important}
html.theme-light body.has-sitebg-video .site-foot{border-top:1px solid rgba(183,121,0,.42)!important}



/* 5.27.981 — parity pass: legal, monitoring selects and micro-jump cleanup. */
/* Keep typography metrics identical between Dark/Light. Slightly stronger body copy
   in both themes so switching never changes glyph width/line breaks. */
body{font-weight:500}
:is(p,li,td,th,label,input,textarea,select,button,.muted,.sub,.hint,small){font-synthesis:none}
/* Weight parity: the light theme already emphasized labels; use the same weights in Dark. */
:is(.muted,.sub,.k,small){font-weight:600}
:is(.cab-cap,form>label,form fieldset>legend,.pf-gate>label,.bg-form>label,.bg-settings label,.be-f>label){font-weight:850}

/* Legal: identical card geometry in both themes; only palette changes. */
.lg-main,.lg-doc,.lg-footer-note{box-sizing:border-box}
.lg-doc{border-radius:18px!important;padding:22px 22px 16px!important;margin-bottom:14px!important;overflow:hidden!important}
.lg-doc:before{border-radius:18px 0 0 18px!important}
.lg-doc .body{font-weight:550!important;line-height:1.75!important}
.lg-doc .body :is(p,li){font-weight:550!important}
.lg-doc .body :is(b,strong){font-weight:850!important}
.lg-footer-note{font-weight:650!important;border-radius:14px!important;border:1px solid rgba(255,255,255,.10)!important;background:rgba(16,23,33,.72)!important;padding:16px 18px!important}
html.theme-light .lg-footer-note{background:rgba(255,250,242,.92)!important;border-color:#d9ccb7!important;color:#4d5964!important}
html.theme-light .lg-doc{border-radius:18px!important;padding:22px 22px 16px!important;margin-bottom:14px!important;overflow:hidden!important}
html.theme-light .lg-doc:before{border-radius:18px 0 0 18px!important}
html.theme-light .lg-doc .body,html.theme-light .lg-doc .body :is(p,li){font-weight:550!important}

/* Monitoring filter selects: one compact visual language in both themes. */
.mf .jmi-select-ui{display:block!important;width:100%!important}
.mf .jmi-select-btn{min-height:44px!important;border-radius:12px!important;padding:10px 13px!important;
  font-size:13.5px!important;font-weight:850!important;letter-spacing:0!important;
  background:linear-gradient(180deg,#132633,#0f1d28)!important;border:1px solid rgba(0,234,255,.28)!important;
  color:#eaf7fa!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 6px 16px rgba(0,0,0,.16)!important}
.mf .jmi-select-btn:hover,.mf .jmi-select-ui.open .jmi-select-btn{border-color:rgba(0,234,255,.62)!important;background:linear-gradient(180deg,#17313f,#102632)!important}
.mf .jmi-select-chevron{color:#35e6f4!important}
.mf .jmi-select-menu{top:calc(100% + 5px)!important;padding:7px!important;border-radius:13px!important;
  border:1px solid rgba(0,234,255,.34)!important;background:#0d1721!important;box-shadow:0 16px 34px rgba(0,0,0,.34)!important}
.mf .jmi-select-opt{min-height:39px!important;padding:9px 11px!important;margin:2px 0!important;border-radius:9px!important;
  color:#dce9ed!important;background:transparent!important;font-size:13px!important;font-weight:750!important}
.mf .jmi-select-opt:hover,.mf .jmi-select-opt:focus{background:#12303b!important;color:#f2ffff!important}
.mf .jmi-select-opt.on{background:#16414b!important;color:#92fff4!important;font-weight:900!important}
html.theme-light .mf .jmi-select-btn{background:linear-gradient(180deg,#fffaf2,#f8efe1)!important;border-color:#d4c3a7!important;color:#28343f!important;box-shadow:0 5px 14px rgba(65,48,22,.07)!important}
html.theme-light .mf .jmi-select-btn:hover,html.theme-light .mf .jmi-select-ui.open .jmi-select-btn{background:linear-gradient(180deg,#fff8e9,#f5e5c7)!important;border-color:#c4963a!important}
html.theme-light .mf .jmi-select-chevron{color:#9b6a0d!important}
html.theme-light .mf .jmi-select-menu{background:#fffaf2!important;border-color:#d2bd95!important;box-shadow:0 16px 34px rgba(68,49,18,.16)!important}
html.theme-light .mf .jmi-select-opt{color:#2c3742!important;background:transparent!important}
html.theme-light .mf .jmi-select-opt:hover,html.theme-light .mf .jmi-select-opt:focus{background:#f6ead2!important;color:#342707!important}
html.theme-light .mf .jmi-select-opt.on{background:#f2dfaa!important;color:#4d3500!important;font-weight:900!important}

/* Final theme-switch stability: reserve identical scroll geometry and suppress
   theme-only decoration transitions for one extra frame. */
html{scrollbar-gutter:stable!important}
html.jmi-theme-switching :is(.page-head,.page-title,.page-sub,.cab-head,.cab-sub,.site-foot,.foot-slots,.foot-brand,.foot-ver,.lg-wrap,.mf,.jmi-select-ui){transition:none!important}


/* 5.27.982 — global Dark/Light parity audit.
   Geometry and typography are shared; themes may change palette only. */
html,body{font-synthesis:none!important}
body{font-weight:600!important}
:is(.page-sub,.cab-sub,.lg-hdr .sub,.ab-head .sub,.srvpick-cap,.pick-label,.cur-cap,.muted,.hint,.sub){font-weight:750!important}
:is(.page-head h1,.page-title,.lg-hdr h1,.ab-head h1,.site-adm-hero .page-head h1){font-weight:950!important}

/* Text that sits directly over a custom site background gets the same readability treatment
   in both themes. Inner cards are intentionally excluded. */
body.has-sitebg :is(.page-head h1,.page-title,.page-sub,.cab-sub,.lg-hdr>h1,.lg-hdr>.sub,.ab-head>h1,.ab-head>.sub,.srvpick-cap,.pick-label,.cur-cap){
  paint-order:stroke fill!important;text-shadow:none!important
}
html:not(.theme-light) body.has-sitebg :is(.page-head h1,.page-title,.page-sub,.cab-sub,.lg-hdr>h1,.lg-hdr>.sub,.ab-head>h1,.ab-head>.sub,.srvpick-cap,.pick-label,.cur-cap){
  -webkit-text-stroke:1px rgba(255,255,255,.42)!important
}
html.theme-light body.has-sitebg :is(.page-head h1,.page-title,.page-sub,.cab-sub,.lg-hdr>h1,.lg-hdr>.sub,.ab-head>h1,.ab-head>.sub,.srvpick-cap,.pick-label,.cur-cap){
  -webkit-text-stroke:1px rgba(25,31,38,.42)!important
}

/* 5.28.139 — Legal: outer shell stays translucent, documents stay solid,
   but the footer no longer gets a second opaque dark/light shell. The only
   visible footer surface is .lg-footer-attn from legal.php. */
.lg-main,html.theme-light .lg-main{
  box-sizing:border-box!important;padding:12px!important;border-radius:20px!important;
  background:color-mix(in srgb,var(--jmi-bg-surface) 58%,transparent)!important;
  border:1px solid color-mix(in srgb,var(--jmi-accent) 22%,var(--jmi-border))!important;
  box-shadow:0 14px 34px rgba(0,0,0,.12)!important;
  backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important
}
.lg-doc,html.theme-light .lg-doc{
  box-sizing:border-box!important;margin:0 0 12px!important;padding:22px 22px 16px!important;
  border-radius:16px!important;background:var(--jmi-bg-surface)!important;
  border:1px solid var(--jmi-border)!important;box-shadow:none!important
}
.lg-main:has(.lg-doc)>.lg-doc:last-of-type,html.theme-light .lg-main:has(.lg-doc)>.lg-doc:last-of-type{
  margin-bottom:12px!important;border-radius:16px!important
}
.lg-footer-note,html.theme-light .lg-footer-note{
  max-width:none!important;box-sizing:border-box!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
  color:inherit!important;font-size:12.5px!important;font-weight:750!important;line-height:1.65!important;text-align:center!important
}
.lg-main:not(:has(.lg-doc))>.lg-footer-note{border:0!important;background:transparent!important}
.lg-doc .body,.lg-doc .body :is(p,li),html.theme-light .lg-doc .body,html.theme-light .lg-doc .body :is(p,li){font-weight:650!important}
.lg-doc .body :is(b,strong),html.theme-light .lg-doc .body :is(b,strong){font-weight:900!important}

/* Site administration: same composition in both themes. Only CSS variables recolor it. */
.site-adm-hero,html.theme-light .site-adm-hero{
  margin:0 auto 18px!important;padding:27px 28px 24px!important;border-radius:20px!important;
  background:linear-gradient(125deg,color-mix(in srgb,var(--jmi-accent) 10%,var(--jmi-bg-surface)),color-mix(in srgb,var(--jmi-bg-surface) 88%,transparent) 48%,color-mix(in srgb,var(--jmi-secondary-accent) 8%,var(--jmi-bg-surface)))!important;
  background-size:100% 100%!important;border:1px solid color-mix(in srgb,var(--jmi-accent) 30%,var(--jmi-border))!important;
  box-shadow:0 14px 34px rgba(0,0,0,.14)!important;animation:none!important;
  backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important
}
.site-adm-hero:after,html.theme-light .site-adm-hero:after{display:none!important;animation:none!important}
.site-adm-emblem,html.theme-light .site-adm-emblem{background:var(--jmi-bg-surface-2)!important;border-color:var(--jmi-border)!important;box-shadow:none!important;animation:none!important}
.site-adm-emblem i,html.theme-light .site-adm-emblem i{animation:none!important;filter:none!important}
.site-adm-stat,html.theme-light .site-adm-stat{background:var(--jmi-bg-surface-2)!important;border-color:var(--jmi-border)!important;box-shadow:none!important}
.site-adm-stat b,html.theme-light .site-adm-stat b{display:block!important;width:auto!important;min-width:0!important;height:auto!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;font-size:16px!important;line-height:1.15!important;color:var(--jmi-text)!important}
.site-adm-stat span,html.theme-light .site-adm-stat span{font-weight:750!important;color:var(--jmi-text-muted)!important}

/* Monitoring/game captions and advertising subtitles: readable and equally weighted. */
.srvpick-cap,.pick-label,.ab-head .sub{font-weight:850!important}
.srvpick-cur,.jmi-select-btn{font-weight:850!important}

/* Extra switch stability audit: dimensions of common shared blocks may not be themed. */
html.jmi-theme-switching body{overflow-anchor:none!important}
html.jmi-theme-switching :is(.lg-main,.lg-doc,.lg-footer-note,.site-adm-hero,.site-adm-stat,.srvpick-wrap,.srvpick-cur,.mf,.jmi-select-btn,.site-foot,.foot-slots){transition:none!important;animation:none!important}

/* 5.27.984 — overlay/footer/theme parity fixes. */
/* Legal page subtitle: same metrics in both themes, no dark pill/blur, readable over site backgrounds. */
.lg-hdr .sub,body.has-sitebg .lg-hdr .sub{
  margin:5px 0 0!important;padding:0!important;background:transparent!important;border:0!important;border-radius:0!important;
  box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
  font-family:inherit!important;font-size:13px!important;font-weight:800!important;line-height:20px!important;letter-spacing:.25px!important;
  color:#dce8ec!important;text-shadow:0 1px 2px rgba(0,0,0,.72)!important;-webkit-text-stroke:0!important
}
html.theme-light .lg-hdr .sub,html.theme-light body.has-sitebg .lg-hdr .sub{color:#46525e!important;text-shadow:none!important}

/* Site administration counters: numbers are plain typography in both themes, never little colored badges. */
.site-adm-stat b,html.theme-light .site-adm-stat b,.site-adm-stat>div,html.theme-light .site-adm-stat>div{
  background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important
}
.site-adm-stat b,html.theme-light .site-adm-stat b{padding:0!important;border-radius:0!important;min-width:0!important;height:auto!important}

/* 5.27.984 — stable footer from the first paint: pure CSS, no delayed JS docking. */
html,body{min-height:100%}
body:has(.site-foot){min-height:100vh!important;display:flex!important;flex-direction:column!important}
body:has(.site-foot)>.site-foot{margin-top:auto!important;flex:0 0 auto!important;width:100%!important}
/* Keep the normal visual gap only when content itself is taller than the viewport. */
body:has(.site-foot)>.site-foot{padding-top:0!important}
/* Site administration counters: number is plain text, never a stretched badge. */
.site-adm-stat b,html.theme-light .site-adm-stat b{
  display:inline-block!important;width:auto!important;min-width:0!important;max-width:none!important;height:auto!important;min-height:0!important;
  padding:0!important;margin:0!important;background:none!important;background-color:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;box-shadow:none!important;outline:0!important;line-height:1.1!important
}

/* 5.27.985 — exact Dark/Light overlay typography + no horizontal theme-toggle jump.
   When a custom site background is visible, page headings and subtitles use ONE
   visual recipe in both themes: white text, restrained dark outline/shadow and
   absolutely no pill/background.  Theme changes only palette of UI surfaces. */
html{overflow-y:scroll!important;scrollbar-gutter:stable!important;color-scheme:normal!important}
html.theme-light{color-scheme:normal!important}
body{width:auto!important;max-width:none!important;overflow-x:clip!important}
html.jmi-theme-switching{overflow-y:scroll!important;scrollbar-gutter:stable!important}
html::-webkit-scrollbar{width:12px}
html::-webkit-scrollbar-track{background:var(--jmi-bg-page)}
html{scrollbar-width:auto!important;scrollbar-color:color-mix(in srgb,var(--jmi-accent) 68%,var(--jmi-text-muted)) var(--jmi-bg-page)!important}
html::-webkit-scrollbar{width:12px!important;height:12px!important}
html::-webkit-scrollbar-track{background:var(--jmi-bg-page)!important;margin-block:0!important}
html::-webkit-scrollbar-thumb{min-height:42px;background:color-mix(in srgb,var(--jmi-accent) 68%,var(--jmi-text-muted))!important;border:3px solid var(--jmi-bg-page)!important;border-radius:999px!important}
html::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--jmi-accent) 88%,var(--jmi-text-muted))!important}
html::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important}

body.has-sitebg :is(.page-head h1,.page-title,.cab-head h1,.lg-hdr h1,.ab-head h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tr-hdr h1,.ck-hdr h1,.pl-hdr h1,.mp-hdr h1,.an-hdr h1),
html.theme-light body.has-sitebg :is(.page-head h1,.page-title,.cab-head h1,.lg-hdr h1,.ab-head h1,.st-hdr h1,.ga-hdr h1,.vd-hdr h1,.tr-hdr h1,.ck-hdr h1,.pl-hdr h1,.mp-hdr h1,.an-hdr h1){
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  -webkit-text-stroke:.35px rgba(0,0,0,.68)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.92),0 2px 7px rgba(0,0,0,.58)!important;
  filter:none!important
}
body.has-sitebg :is(.page-sub,.cab-sub,.lg-hdr .sub,.ab-head .sub,.db-hdr .sub,.api-hdr .sub,.hc-hdr .sub,.hs-hdr .sub,.jlog-hdr .sub,.lc-hdr .sub,.mg-hdr .sub,.ms-hdr .sub,.mt-hdr .sub,.pg-hdr .sub,.st-hdr .sub,.st2-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub,.srvpick-cap,.pick-label,.cur-cap),
html.theme-light body.has-sitebg :is(.page-sub,.cab-sub,.lg-hdr .sub,.ab-head .sub,.db-hdr .sub,.api-hdr .sub,.hc-hdr .sub,.hs-hdr .sub,.jlog-hdr .sub,.lc-hdr .sub,.mg-hdr .sub,.ms-hdr .sub,.mt-hdr .sub,.pg-hdr .sub,.st-hdr .sub,.st2-hdr .sub,.ga-hdr .sub,.vd-hdr .sub,.tr-hdr .sub,.ck-hdr .sub,.pl-hdr .sub,.mp-hdr .sub,.an-hdr .sub,.srvpick-cap,.pick-label,.cur-cap){
  color:#fff!important;-webkit-text-fill-color:#fff!important;
  background:transparent!important;background-color:transparent!important;background-image:none!important;
  border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;filter:none!important;
  -webkit-text-stroke:.22px rgba(0,0,0,.72)!important;
  text-shadow:0 1px 2px rgba(0,0,0,.96),0 1px 5px rgba(0,0,0,.64)!important;
  font-family:inherit!important;font-weight:800!important;letter-spacing:.35px!important
}
/* Dashboard notification toolbar: restore the surface in Dark too; Light already had it. */
.db-notes-head{padding:10px 12px!important;border-radius:14px!important;background:var(--jmi-bg-surface)!important;border:1px solid var(--jmi-border)!important;color:var(--jmi-text-muted)!important;box-sizing:border-box!important}
.db-notes-head b{display:inline-grid!important;place-items:center!important;min-width:26px!important;height:26px!important;padding:0 7px!important;border-radius:9px!important;background:color-mix(in srgb,var(--jmi-accent) 12%,var(--jmi-bg-surface-2))!important;border:1px solid color-mix(in srgb,var(--jmi-accent) 35%,var(--jmi-border))!important;color:var(--jmi-accent)!important}
html.theme-light .db-notes-head{background:#fffaf2!important;border-color:#d9ccb7!important;color:#53616b!important}
html.theme-light .db-notes-head b{background:#f0dfb2!important;border-color:#c79e45!important;color:#634706!important}

/* The legal-page rule from the previous release must not recolor the subtitle in Light. */
html.theme-light .lg-hdr .sub,html.theme-light body.has-sitebg .lg-hdr .sub{color:#fff!important;-webkit-text-fill-color:#fff!important}


/* 5.27.987 — restore the page surfaces that were lost during the parity pass.
   Structure is shared by Dark/Light; only semantic palette tokens change. */
body.has-sitebg :is(.db-wrap,.us,.ta-wrap,.or-wrap,.ba-wrap,.st-cols,.ga-wrap,.ad-wrap,.vd-wrap,.tr-wrap,.ck-wrap,.pl-wrap,.mp-wrap,.an-wrap){
  box-sizing:border-box!important;
}
body.has-sitebg :is(.db-wrap,.us,.ta-wrap,.or-wrap,.ba-wrap,.ga-wrap,.ad-wrap,.vd-wrap,.tr-wrap,.ck-wrap,.pl-wrap,.mp-wrap,.an-wrap){
  padding:18px!important;border-radius:22px!important;
  background:color-mix(in srgb,var(--jmi-bg-surface) 88%,transparent)!important;
  border:1px solid color-mix(in srgb,var(--jmi-border) 86%,transparent)!important;
  box-shadow:0 14px 34px rgba(0,0,0,.16)!important;
  backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important;
}
html.theme-light body.has-sitebg :is(.db-wrap,.us,.ta-wrap,.or-wrap,.ba-wrap,.ga-wrap,.ad-wrap,.vd-wrap,.tr-wrap,.ck-wrap,.pl-wrap,.mp-wrap,.an-wrap){
  background:rgba(255,250,242,.92)!important;
  border-color:#d9ccb7!important;
  box-shadow:0 12px 30px rgba(60,45,20,.10)!important;
}
/* Settings: restore both real panels. Sidebar follows Legal navigation and has no desktop inner scrollbar. */
.st-cols{gap:16px!important;align-items:flex-start!important}
.st-side{
  padding:10px!important;border-radius:18px!important;
  background:color-mix(in srgb,var(--jmi-bg-surface) 90%,transparent)!important;
  border:1px solid var(--jmi-border)!important;box-shadow:0 12px 28px rgba(0,0,0,.15)!important;
  overflow:visible!important
}
.st-nav{max-height:none!important;overflow:visible!important;padding-right:0!important;scrollbar-width:auto!important}
.st-main{
  padding:14px!important;border-radius:20px!important;
  background:color-mix(in srgb,var(--jmi-bg-surface) 90%,transparent)!important;
  border:1px solid var(--jmi-border)!important;box-shadow:0 12px 28px rgba(0,0,0,.14)!important
}
html.theme-light .st-side,html.theme-light .st-main{background:rgba(255,250,242,.94)!important;border-color:#d9ccb7!important;box-shadow:0 10px 26px rgba(60,45,20,.09)!important}
@media(max-width:820px){
 body.has-sitebg :is(.db-wrap,.us,.ta-wrap,.or-wrap,.ba-wrap,.ga-wrap,.ad-wrap,.vd-wrap,.tr-wrap,.ck-wrap,.pl-wrap,.mp-wrap,.an-wrap){padding:12px!important;border-radius:17px!important}
 .st-main{padding:10px!important}.st-side{padding:8px!important}
}

/* 5.27.988 — restored designer surfaces + exact advertising slot. */
body.has-sitebg :is(.db-wrap,.us,.ta-wrap,.or-wrap,.ba-wrap,.ga-wrap,.ad-wrap,.vd-wrap,.tr-wrap,.ck-wrap,.pl-wrap,.mp-wrap,.an-wrap,.rl-wrap){
  position:relative!important;isolation:isolate!important;overflow:hidden;
  background:
    radial-gradient(520px 180px at 8% -8%,color-mix(in srgb,var(--jmi-accent) 16%,transparent),transparent 68%),
    radial-gradient(430px 170px at 102% 8%,color-mix(in srgb,var(--jmi-secondary-accent) 11%,transparent),transparent 70%),
    linear-gradient(135deg,color-mix(in srgb,var(--jmi-bg-surface) 94%,transparent),color-mix(in srgb,var(--jmi-bg-surface-2) 90%,transparent))!important;
}
body.has-sitebg :is(.db-wrap,.us,.ta-wrap,.or-wrap,.ba-wrap,.ga-wrap,.ad-wrap,.vd-wrap,.tr-wrap,.ck-wrap,.pl-wrap,.mp-wrap,.an-wrap,.rl-wrap):before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.24;
  background-image:linear-gradient(90deg,color-mix(in srgb,var(--jmi-accent) 12%,transparent) 1px,transparent 1px),linear-gradient(color-mix(in srgb,var(--jmi-accent) 9%,transparent) 1px,transparent 1px);
  background-size:42px 42px;mask-image:linear-gradient(to bottom,rgba(0,0,0,.75),transparent 72%);
}
html.theme-light body.has-sitebg :is(.db-wrap,.us,.ta-wrap,.or-wrap,.ba-wrap,.ga-wrap,.ad-wrap,.vd-wrap,.tr-wrap,.ck-wrap,.pl-wrap,.mp-wrap,.an-wrap,.rl-wrap){
  background:radial-gradient(500px 180px at 4% 0%,rgba(183,121,0,.10),transparent 70%),radial-gradient(420px 170px at 100% 0%,rgba(44,126,151,.08),transparent 72%),linear-gradient(145deg,rgba(255,252,246,.97),rgba(246,238,224,.95))!important;
}

/* Monitoring TOP cards: never transparent, including the giveaway tile. */
.mtop-i{background:linear-gradient(145deg,#151d28,#101720)!important;border-color:rgba(255,255,255,.12)!important;box-shadow:0 9px 24px rgba(0,0,0,.24)!important}
.mtop-i.lot,.mtop-i.lot.wait{background:radial-gradient(180px 100px at 50% 0%,rgba(177,75,255,.20),transparent 70%),linear-gradient(145deg,#1b1730,#111827)!important;border-color:rgba(177,75,255,.48)!important;box-shadow:0 9px 26px rgba(0,0,0,.26),inset 0 0 28px rgba(177,75,255,.05)!important}
html.theme-light .mtop-i,html.theme-light .mtop-i.free{background:linear-gradient(145deg,#fffaf2,#f3eadb)!important}
html.theme-light .mtop-i.lot,html.theme-light .mtop-i.lot.wait{background:radial-gradient(190px 100px at 50% 0%,rgba(137,87,176,.13),transparent 72%),linear-gradient(145deg,#fff9ee,#efe3cf)!important;border-color:#bea46e!important}

/* Advertising: occupied banner REPLACES the placeholder, exact max slot 520x105. */
.foot-slots{grid-template-columns:repeat(2,minmax(0,520px))!important;justify-content:center!important;width:min(1054px,calc(100% - 28px))!important}
.foot-slot{max-width:520px!important;width:100%!important}
.foot-slot:not(.foot-slot-free){padding:0!important;background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;overflow:hidden!important}
.foot-slot:not(.foot-slot-free)>a{display:block!important;width:100%!important;height:105px!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:hidden!important}
.foot-slot:not(.foot-slot-free)>img,.foot-slot:not(.foot-slot-free)>a>img{display:block!important;width:100%!important;height:105px!important;max-height:105px!important;aspect-ratio:520/105!important;object-fit:cover!important;object-position:center!important;margin:0!important;padding:0!important;border-radius:14px!important;background:transparent!important}
.foot-slot-free>a{height:105px!important}
@media(max-width:700px){.foot-slots{grid-template-columns:minmax(0,520px)!important}.foot-slot:not(.foot-slot-free)>a,.foot-slot:not(.foot-slot-free)>img,.foot-slot:not(.foot-slot-free)>a>img{height:auto!important;aspect-ratio:520/105!important}}
/* 5.28.18 — occupied advertising image fully replaces the slot in BOTH themes.
   Any source image is visually fitted to the exact 520x105 slot without a second template behind it. */
.foot-slot:not(.foot-slot-free),html.theme-light .foot-slot:not(.foot-slot-free){
  width:100%!important;max-width:520px!important;height:105px!important;padding:0!important;margin:0!important;
  background:transparent!important;background-image:none!important;border:0!important;border-radius:14px!important;
  box-shadow:none!important;overflow:hidden!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important
}
.foot-slot:not(.foot-slot-free)>a,html.theme-light .foot-slot:not(.foot-slot-free)>a{
  display:block!important;width:100%!important;height:105px!important;padding:0!important;margin:0!important;
  background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;overflow:hidden!important
}
.foot-slot:not(.foot-slot-free)>img,.foot-slot:not(.foot-slot-free)>a>img,
html.theme-light .foot-slot:not(.foot-slot-free)>img,html.theme-light .foot-slot:not(.foot-slot-free)>a>img{
  display:block!important;width:100%!important;height:105px!important;max-width:520px!important;max-height:105px!important;
  aspect-ratio:520/105!important;object-fit:fill!important;object-position:center!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:14px!important;background:transparent!important;box-shadow:none!important
}
@media(max-width:700px){
  .foot-slot:not(.foot-slot-free),html.theme-light .foot-slot:not(.foot-slot-free),
  .foot-slot:not(.foot-slot-free)>a,html.theme-light .foot-slot:not(.foot-slot-free)>a{height:auto!important;aspect-ratio:520/105!important}
  .foot-slot:not(.foot-slot-free)>img,.foot-slot:not(.foot-slot-free)>a>img,
  html.theme-light .foot-slot:not(.foot-slot-free)>img,html.theme-light .foot-slot:not(.foot-slot-free)>a>img{height:100%!important;max-height:none!important}
}

/* Light theme: readable teal branding; dark theme retains its neon treatment. */
html.theme-light .foot-brand,
html.theme-light .foot-brand-badge{
  color:#135f6d!important;
  -webkit-text-fill-color:#135f6d!important;
  text-shadow:0 1px 2px rgba(255,255,255,.45)!important;
}
html.theme-light .foot-brand-badge i{
  color:#14758a!important;
  -webkit-text-fill-color:#14758a!important;
  text-shadow:none!important;
}
/* A fresh notification gives the bell one restrained pulse; geometry never changes. */
@keyframes jmiNotifyFresh{0%{box-shadow:0 0 0 0 rgba(0,234,255,.34)}55%{box-shadow:0 0 0 9px rgba(0,234,255,0),0 0 20px rgba(0,234,255,.24)}100%{box-shadow:none}}
.jmi-notify.notify-fresh .jmi-notify-btn{animation:jmiNotifyFresh .72s ease-out 1!important}
html.theme-light .jmi-notify.notify-fresh .jmi-notify-btn{animation:jmiNotifyFresh .72s ease-out 1!important}


/* 5.28.143 — компактные внутренние скролл-бары сайта. Системные кнопки-стрелки
   Chromium скрываются глобально, а дорожка начинается/заканчивается с запасом
   внутри скруглённой панели, поэтому полоса не лезет в углы рамки. */
*:not(html)::-webkit-scrollbar{width:6px!important;height:6px!important}
*:not(html)::-webkit-scrollbar-button,*:not(html)::-webkit-scrollbar-button:single-button,*:not(html)::-webkit-scrollbar-button:start,*:not(html)::-webkit-scrollbar-button:end,*:not(html)::-webkit-scrollbar-button:vertical:decrement,*:not(html)::-webkit-scrollbar-button:vertical:increment{display:none!important;width:0!important;height:0!important;min-width:0!important;min-height:0!important;background:transparent!important;background-image:none!important;border:0!important;-webkit-appearance:none!important;appearance:none!important}
*:not(html)::-webkit-scrollbar-track{margin-block:16px!important;margin-inline:16px!important;background:transparent}
*:not(html)::-webkit-scrollbar-thumb{border-radius:999px!important;border:1px solid transparent!important;background-clip:padding-box!important}
/* Единый LIVE-индикатор для мест, где статус сервера показывается отдельной плашкой. */
:is(.mon-badge.on,.cs-st.on,.side-srv-state.is-on){position:relative!important;display:inline-flex!important;align-items:center!important;gap:6px!important}
:is(.mon-badge.on,.cs-st.on,.side-srv-state.is-on)::before{content:"";width:7px;height:7px;flex:0 0 7px;border-radius:50%;background:currentColor;animation:jmiUnifiedLive 1.8s ease-out infinite}
:is(.mon-badge.on,.cs-st.on)::after{content:"LIVE";font-size:.78em;font-weight:900;letter-spacing:.55px;opacity:.88}
@keyframes jmiUnifiedLive{0%,100%{box-shadow:0 0 0 2px color-mix(in srgb,currentColor 22%,transparent)}50%{box-shadow:0 0 0 7px transparent}}
/* 5.28.187 — точечная очистка внешних page-shell после старых legacy-override.
   Убираем ТОЛЬКО внешний декоративный фон/рамку/сетку на перечисленных страницах.
   Внутренние карточки, формы, таблицы и кнопки не затрагиваются. */
body.has-sitebg :is(.us,.ta-wrap,.or-wrap:not(.orders-workspace),.ba-wrap,.ad-wrap,.vd-wrap,.ck-wrap,.mp-wrap,.an-wrap),
html.theme-light body.has-sitebg :is(.us,.ta-wrap,.or-wrap:not(.orders-workspace),.ba-wrap,.ad-wrap,.vd-wrap,.ck-wrap,.mp-wrap,.an-wrap){
  background:transparent!important;background-image:none!important;border:0!important;box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;isolation:auto!important;overflow:visible!important
}
body.has-sitebg :is(.us,.ta-wrap,.or-wrap:not(.orders-workspace),.ba-wrap,.ad-wrap,.vd-wrap,.ck-wrap,.mp-wrap,.an-wrap):before,
body.has-sitebg :is(.us,.ta-wrap,.or-wrap:not(.orders-workspace),.ba-wrap,.ad-wrap,.vd-wrap,.ck-wrap,.mp-wrap,.an-wrap):after,
html.theme-light body.has-sitebg :is(.us,.ta-wrap,.or-wrap:not(.orders-workspace),.ba-wrap,.ad-wrap,.vd-wrap,.ck-wrap,.mp-wrap,.an-wrap):before,
html.theme-light body.has-sitebg :is(.us,.ta-wrap,.or-wrap:not(.orders-workspace),.ba-wrap,.ad-wrap,.vd-wrap,.ck-wrap,.mp-wrap,.an-wrap):after{
  content:none!important;display:none!important;background:none!important;box-shadow:none!important
}

/* Панель управления: заголовок уведомлений и раскрытая лента — одна цельная карточка. */
body .db-notes-head{margin-bottom:0!important;border-radius:14px 14px 0 0!important;border-bottom-color:color-mix(in srgb,var(--jmi-accent) 18%,var(--jmi-border))!important}
body .db-notes{margin-top:0!important;padding:8px 8px 10px!important;border:1px solid var(--jmi-border)!important;border-top:0!important;
  border-radius:0 0 14px 14px!important;background:color-mix(in srgb,var(--jmi-bg-surface) 88%,transparent)!important;box-sizing:border-box!important}
html.theme-light body .db-notes{background:rgba(255,250,242,.94)!important;border-color:#d9ccb7!important}

/* 5.28.201 — Settings sidebar is now built from the SAME visual shell as Legal.
   This final common override intentionally wins over the older flat-sidebar rule. */
.st-cols{gap:22px!important;background:transparent!important;border:0!important;box-shadow:none!important;align-items:flex-start!important}
.st-side{
  flex:0 0 280px!important;min-width:0!important;position:sticky!important;top:18px!important;
  border:1px solid rgba(0,234,255,.22)!important;border-radius:18px!important;padding:10px!important;
  background:linear-gradient(145deg,rgba(16,23,33,.92),rgba(9,14,22,.86))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.045),inset 0 -1px 0 rgba(0,234,255,.11),0 14px 34px rgba(0,0,0,.24)!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;overflow:hidden!important;box-sizing:border-box!important
}
.st-nav{
  max-height:calc(100vh - 220px)!important;overflow-y:auto!important;overflow-x:hidden!important;
  padding:4px 8px 10px 4px!important;border-radius:14px!important;
  box-shadow:inset 0 1px rgba(255,255,255,.05),inset 0 -1px rgba(0,234,255,.13)!important;
  scrollbar-gutter:stable!important;scrollbar-width:thin!important;
  scrollbar-color:color-mix(in srgb,var(--jmi-accent) 35%,transparent) transparent!important
}
.st-nav::-webkit-scrollbar{display:block!important;width:5px!important}
.st-nav::-webkit-scrollbar-track{background:transparent!important;margin-block:10px!important}
.st-nav::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--jmi-accent) 35%,transparent)!important;border-radius:4px!important}
.st-nav a{margin:0 0 7px!important;padding:11px 15px!important;border-radius:13px!important;border:1px solid rgba(255,255,255,.10)!important;background:linear-gradient(145deg,#151d28,#111822)!important;color:var(--jmi-text-2)!important;box-shadow:none!important;transform:none!important}
.st-nav a:last-child{margin-bottom:0!important}
.st-nav a:hover{border-color:rgba(0,234,255,.48)!important;background:linear-gradient(145deg,#182534,#121c28)!important;color:var(--jmi-text)!important;transform:none!important}
.st-nav a.on{border-color:#00eaff!important;background:linear-gradient(145deg,rgba(0,234,255,.12),#121a25)!important;color:var(--jmi-text)!important;box-shadow:inset 3px 0 0 #00eaff,0 0 18px -10px #00eaff!important}
html.theme-light .st-side{background:var(--jmi-bg-surface)!important;border:1px solid var(--jmi-border)!important;box-shadow:var(--jmi-shadow-sm)!important}
html.theme-light .st-nav{box-shadow:inset 0 1px var(--jmi-border-soft),inset 0 -1px var(--jmi-border-strong)!important}
html.theme-light .st-nav a{border-color:var(--jmi-border)!important;background:var(--jmi-bg-surface)!important;color:var(--jmi-text-2)!important}
html.theme-light .st-nav a:hover{background:var(--jmi-bg-surface-2)!important;border-color:var(--jmi-border-strong)!important;color:var(--jmi-text)!important}
html.theme-light .st-nav a.on{background:linear-gradient(135deg,#ffe9a6,#fff8e7)!important;border:2px solid #a66c00!important;color:#1d2731!important;box-shadow:0 0 0 2px rgba(166,108,0,.08),0 8px 22px rgba(94,64,16,.14)!important}
html.theme-light .st-nav a.on i,html.theme-light .st-nav a.on span{color:#5f4100!important}
.st-main,html.theme-light .st-main{padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;background-image:none!important;box-shadow:none!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
.st-main>.st-card{margin-bottom:14px!important}.st-main>.st-card:last-child{margin-bottom:0!important}
@media(max-width:820px){.st-side{position:static!important;flex-basis:auto!important;width:100%!important}.st-nav{max-height:50vh!important;display:block!important;padding:4px 8px 10px 4px!important}.st-nav a{margin:0 0 7px!important}}

/* 5.28.142 — единый вертикальный воздух вокруг заголовков страниц.
   Заголовок/стрелки не должны касаться ни шапки сверху, ни первого рабочего блока снизу. */
:is(.page-head,.cab-head,.st-hdr,.ga-hdr,.vd-hdr,.tr-hdr,.ck-hdr,.pl-hdr,.mp-hdr,.an-hdr,.lg-hdr,.ab-head){
  margin-top:clamp(26px,3.2vh,42px)!important;
  margin-bottom:clamp(24px,3vh,38px)!important;
}
:is(.page-head,.cab-head,.st-hdr,.ga-hdr,.vd-hdr,.tr-hdr,.ck-hdr,.pl-hdr,.mp-hdr,.an-hdr,.lg-hdr,.ab-head) + :is(.page-sub,.cab-sub,.sub){
  margin-top:calc(clamp(24px,3vh,38px) * -1 + 8px)!important;
  margin-bottom:clamp(22px,2.8vh,34px)!important;
}
@media(max-width:720px){
  :is(.page-head,.cab-head,.st-hdr,.ga-hdr,.vd-hdr,.tr-hdr,.ck-hdr,.pl-hdr,.mp-hdr,.an-hdr,.lg-hdr,.ab-head){
    margin-top:24px!important;margin-bottom:24px!important;
  }
}
