/* REDICO Bento — content-template adapters. Presentation only; original nodes,
   plugin state classes, hidden attributes, anchors and form hooks stay intact. */
@layer redicoBento {
  /* Centered content shell. Header, footer, overlays and AI are owned by global.css. */
  html[data-rx-bento] body:not(.home) :is(.rx-wrap,.redico-page-wrap,.rts-page__in,.rx-enc-wrap,.rxk-sec,.rc-wrap,.rd-wrap) {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:1280px!important;
    margin-inline:auto!important;
  }
  html[data-rx-bento] body:not(.home)>:is(.rx-wrap,.redico-page-wrap),
  html[data-rx-bento] body:not(.home) :is(.rxk-sec,.rts-page__in,.rc-wrap,.rd-wrap) {
    width:100%!important;
    padding-inline:32px!important;
  }
  html[data-rx-bento] body:not(.home) :is(main,article,.rx-section,.rx-prose,.rx-enc-main,.rx-enc-side,.rx-enc-layout,.rx-prod-hero,.rx-reg-hero,.rx-module,.rxo-body,.rts,.rx-calc,.rxk-card,.rxtr-card) {
    min-width:0!important;
    box-sizing:border-box!important;
  }
  html[data-rx-bento] body:not(.home)>:is(.rx-wrap,.redico-page-wrap),
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc,.rts-page,.rxk-sec,.rc-page,#redico-cities,#rd-docs) {
    color:var(--rb-ink)!important;
    background-color:transparent!important;
    background-image:none!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-section,.rxk-sec) {
    padding-block:32px!important;
  }
  html[data-rx-bento] body.page-template-produkciya>.rx-wrap:has(>.rx-prod-hero) {padding-inline:0!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-wrap,.redico-page-wrap,.rts-page__in)>.rxh-uni-host {padding-inline:0!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rxtr,.rxk-sec,.rx-enc-main,.rx-module) :is(h2,h3,h4) {
    color:var(--rb-ink)!important;
    font-family:var(--rb-heading)!important;
    line-height:1.25!important;
    text-wrap:pretty!important;
    overflow-wrap:break-word!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rxtr,.rxk-sec,.rx-enc-main)>:is(p,ul,ol,dl),
  html[data-rx-bento] body:not(.home) :is(.rx-lead,.rx-enc-lead,.rxk-lead,.rxk-sub,.rx-reg-note,.rx-card-ex,.rx-sstat,.rts__sub,.rts__status) {
    color:var(--rb-muted)!important;
    line-height:1.65!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-eyebrow,.rx-eyebrow2,.rxtr-kicker,.rx-enc-kicker,.rx-enc-pk,.rx-card-cat,.rx-reg-code,.rx-mono) {
    color:var(--rb-accent-text)!important;
    font-family:var(--rb-font)!important;
  }

  /* Existing common hero: two distinct cards, not a continuous dark backdrop. */
  html[data-rx-bento] body:not(.home) :is(.rxh-uni-host,#gr-hero) {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:1280px!important;
    margin:24px auto 32px!important;
    padding:0 32px!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    overflow:visible!important;
  }
  html[data-rx-bento] body:not(.home) :is(#rxh.rxh-uni,.rx-enc-hero,.rc-hero,.rd-hero,.rl-hero) {
    box-sizing:border-box!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    border:0!important;
    border-radius:var(--rb-radius)!important;
    background:transparent!important;
    color:var(--rb-ink)!important;
    box-shadow:none!important;
    overflow:visible!important;
  }
  html[data-rx-bento] body:not(.home) :is(#rxh.rxh-uni,.rx-enc-hero,.rc-hero,.rd-hero,.rl-hero)::before,
  html[data-rx-bento] body:not(.home) :is(#rxh.rxh-uni,.rx-enc-hero,.rc-hero,.rd-hero,.rl-hero)::after {
    content:none!important;
  }
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni :is(.rxh-bg,.rxh-bloom) {display:none!important;}
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-grid,
  html[data-rx-bento] body:not(.home) :is(.rc-hero-grid,.rd-hero-grid,.rx-enc-hub-hero-grid,.rx-enc-compact-grid) {
    display:grid!important;
    grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important;
    align-items:start!important;
    gap:24px!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
  }
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-main,
  html[data-rx-bento] body:not(.home) :is(.rx-enc-compact-copy,.rc-hero-grid>div:first-child,.rd-hero-grid>div:first-child,.rx-enc-hub-hero-grid>div:first-child) {
    box-sizing:border-box!important;
    min-width:0!important;
    padding:clamp(24px,3vw,44px)!important;
    margin:0!important;
    background:var(--rb-surface)!important;
    color:var(--rb-ink)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:var(--rb-radius)!important;
    box-shadow:var(--rb-shadow)!important;
    transform:none!important;
  }
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-side,
  html[data-rx-bento] body:not(.home) .rx-enc-compact-side {
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    align-self:start!important;
    transform:none!important;
  }
  html[data-rx-bento] body:not(.home) :is(#rxh.rxh-uni,.rx-enc-hero,.rc-hero,.rd-hero,.rl-hero) h1 {
    color:var(--rb-ink)!important;
    font-family:var(--rb-heading)!important;
    font-size:clamp(30px,3.4vw,52px)!important;
    font-weight:700!important;
    line-height:1.12!important;
    letter-spacing:-.015em!important;
    text-wrap:balance!important;
    overflow-wrap:break-word!important;
    margin:12px 0 24px!important;
    max-width:100%!important;
  }
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-main>:is(p,.rx-lead),
  html[data-rx-bento] body:not(.home) :is(.rx-enc-compact-copy,.rc-hero-grid>div:first-child,.rd-hero-grid>div:first-child) > p {
    color:var(--rb-muted)!important;
    font-family:var(--rb-font)!important;
    font-size:16px!important;
    line-height:1.65!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-hero-crumb-slot,.rx-hero-breadcrumbs) {
    box-sizing:border-box!important;
    width:100%!important;
    padding:0 0 18px!important;
    margin:0!important;
    background:transparent!important;
    color:var(--rb-muted)!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-hero-crumb-slot,.rx-hero-breadcrumbs) :is(a,span,nav) {
    color:var(--rb-muted)!important;
    overflow-wrap:anywhere!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-hero-resources,.rx-context-tools) {
    border-color:var(--rb-line)!important;
    margin-top:28px!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-hero-resources,.rx-context-tools) h2 {color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-hero-resources,.rx-context-tools) a {
    background:var(--rb-soft)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:14px!important;
    color:var(--rb-ink)!important;
    min-height:52px!important;
  }
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-main p:not(.rx-lead-card *, .rx-ai *) {color:var(--rb-muted)!important;line-height:1.65!important;}
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-main p:not(.rx-lead-card *, .rx-ai *) a {color:var(--rb-accent-text)!important;text-decoration:underline!important;text-underline-offset:3px!important;}
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-main p:not(.rx-lead-card *, .rx-ai *) :is(b,strong) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-main>div:has(>h1) {padding:0!important;margin:0!important;max-width:100%!important;}
  html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-main>div:empty[style*="radial-gradient"] {display:none!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card {background:var(--rb-surface)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:var(--rb-radius)!important;padding:28px!important;width:100%!important;max-width:100%!important;margin:0!important;box-shadow:var(--rb-shadow)!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card h2 {color:var(--rb-ink)!important;font:700 28px/1.2 var(--rb-heading)!important;letter-spacing:-.015em!important;margin:0 0 16px!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card :is(p,small,.rx-common-consent,.rx-common-consent span) {color:var(--rb-muted)!important;line-height:1.6!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card :is(label,legend) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select) {background:var(--rb-soft)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:12px!important;min-height:48px!important;font:400 16px/1.5 var(--rb-font)!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card :is(input,textarea)::placeholder {color:var(--rb-muted)!important;opacity:1!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card a {color:var(--rb-accent-text)!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card button[type=submit] {background:var(--rb-accent)!important;color:#fff!important;border:0!important;border-radius:14px!important;min-height:48px!important;font:650 16px/1.4 var(--rb-font)!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card .rx-shared-reply label {background:var(--rb-soft)!important;color:var(--rb-ink)!important;border-color:var(--rb-line)!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card .rx-shared-reply label:has(input:checked) {background:var(--rb-accent-soft)!important;color:var(--rb-accent-text)!important;border-color:var(--rb-accent-text)!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card .rx-sent {background:var(--rb-soft)!important;color:var(--rb-success,#188357)!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card :is(.rxhm-field-error,.rx-field-error,[role=alert]) {color:var(--rb-error,#b42318)!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-hero-crumb-slot,.rx-hero-breadcrumbs) button[aria-label="Назад"] {background:var(--rb-surface)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:12px!important;min-height:44px!important;}

  /* Shared navigation and content cards; no broad descendant color reset. */
  html[data-rx-bento] body:not(.home) :is(
    .rx-card,.rxtr-card,.rx-step,.rx-test-col,.rx-reg-card,.rx-kod-grid>a,
    .rx-hub-grid>a,.rx-cat-links>a,.rx-part-card,.rx-team-card,.rx-kont-card,
    .rxk-card,.rxk-tile,.rxk-trust-i,.rx-cat-card,.rx-enc-tcard,.rx-enc-route,
    .rx-enc-num,.rx-enc-pillar,.p4-card,.rxo-card,.rxo-st,.rx-module .card,
    .rx-module .gcard,.rx-module .cheat,.rx-enc-article-intro
  ) {
    box-sizing:border-box!important;
    min-width:0!important;
    max-width:100%!important;
    background:var(--rb-surface)!important;
    color:var(--rb-ink)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:var(--rb-radius)!important;
    box-shadow:var(--rb-shadow)!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rxtr-card,.rx-step,.rx-test-col,.rx-kod-grid>a,.rx-hub-grid>a,.rx-part-card,.rxk-card,.rxk-tile,.rx-cat-card,.rx-enc-tcard,.rx-enc-route,.p4-card,.rx-enc-article-intro) {
    padding:24px!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-card-title,.rxtr-card h3,.rx-step h3,.rx-test-col h3,.rxk-card h3,.rxk-tile-t,.rx-cat-card h3,.rx-enc-tcard h3,.p4-card h3,.rxo-card-t) {
    color:var(--rb-ink)!important;
    font-family:var(--rb-heading)!important;
    line-height:1.3!important;
    overflow-wrap:break-word!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rxtr-card,.rx-step,.rx-test-col,.rx-part-card,.rxk-card,.rxk-tile,.rx-cat-card,.rx-enc-tcard,.rx-enc-route,.p4-card,.rxo-card) > p,
  html[data-rx-bento] body:not(.home) :is(.rx-card-ex,.rxk-tile-d,.rx-enc-num span,.rx-reg-note,.rxo-stl) {
    color:var(--rb-muted)!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-card-body,.rx-team-card>div) {padding:24px!important;}
  html[data-rx-bento] body:not(.home) .rx-card-img {
    background:var(--rb-soft)!important;
    border-bottom:1px solid var(--rb-line)!important;
    border-radius:21px 21px 0 0!important;
    overflow:hidden!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-card-more,.rx-reg-code,.rxk-tile-go,.rx-kod-grid>a>b) {color:var(--rb-accent-text)!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-cards,.rx-hub-grid,.rx-kod-grid,.rxtr-grid,.rx-part-g,.rx-team-g,.rx-vak-g,.rx-obu-g,.rxk-tiles,.p4-grid,.rx-test-grid,.rx-steps) {
    gap:20px!important;
    min-width:0!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-cards,.rx-hub-grid,.rx-part-g,.rx-obu-g) {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-chip,.rx-kod-nav>a,.rx-cat-links>a,.page-numbers) {
    color:var(--rb-ink)!important;
    background:var(--rb-surface)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:12px!important;
    min-height:44px!important;
    padding:10px 14px!important;
    box-sizing:border-box!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-chip.is-cur,.rx-chip.on,.rx-chip.active,.page-numbers.current) {
    color:var(--rb-accent-text)!important;
    background:var(--rb-accent-soft)!important;
    border-color:var(--rb-accent-text)!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-kod-nav,.rx-chips,.rx-cat-links,.rx-pag) {gap:10px!important;flex-wrap:wrap!important;}
  @media (hover:hover) {
    html[data-rx-bento] body:not(.home) :is(a.rx-card,.rx-kod-grid>a,.rx-hub-grid>a,a.rx-cat-card,a.rx-enc-tcard,a.rx-enc-route,.rxk-tile):hover {
      transform:translateY(-3px)!important;
      border-color:var(--rb-accent-text)!important;
    }
  }

  /* Registry/results, including server-rendered code/chapter pages. */
  html[data-rx-bento] body:not(.home) :is(.rts,.rts-code,.rts-page,.rts-landing) {
    --rts-bg:var(--rb-bg)!important;
    --rts-surface:var(--rb-surface)!important;
    --rts-tint:var(--rb-soft)!important;
    --rts-ink:var(--rb-ink)!important;
    --rts-ink-2:var(--rb-muted)!important;
    --rts-mut:var(--rb-muted)!important;
    --rts-line:var(--rb-line)!important;
    --rts-red:var(--rb-accent-text)!important;
    --rts-red-d:var(--rb-accent-text)!important;
    --rts-graphite:var(--rb-muted)!important;
    --rts-green:color-mix(in srgb,#14835d 70%,var(--rb-ink))!important;
    --rts-violet:color-mix(in srgb,#7955c5 70%,var(--rb-ink))!important;
    --rts-mono:var(--rb-font)!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rts,.rx-reg-card) {
    background:var(--rb-surface)!important;
    color:var(--rb-ink)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:var(--rb-radius)!important;
    box-shadow:var(--rb-shadow)!important;
    max-width:100%!important;
    overflow:visible!important;
  }
  html[data-rx-bento] body:not(.home) .rts {padding:24px!important;margin-block:24px!important;}
  html[data-rx-bento] body:not(.home) #rxh .rb-registry-hero-search {margin:24px 0 0!important;padding:20px!important;background:var(--rb-soft)!important;box-shadow:none!important;}
  html[data-rx-bento] body:not(.home) #rxh .rb-registry-resources {margin:24px 0 0!important;padding:24px!important;background:var(--rb-surface)!important;border:1px solid var(--rb-line)!important;border-radius:var(--rb-radius)!important;}
  html[data-rx-bento] body:not(.home) #rxh .rb-registry-resources>div {grid-template-columns:repeat(4,minmax(0,1fr))!important;}
  html[data-rx-bento] body:not(.home) #rxh .rb-registry-resources h2 {margin-top:0!important;color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) .rb-page-form-options {background:var(--rb-soft)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:12px!important;padding:0 14px!important;}
  html[data-rx-bento] body:not(.home) .rb-page-form-options>summary {min-height:44px!important;padding:12px 0!important;cursor:pointer!important;color:var(--rb-ink)!important;font:600 14px/1.5 var(--rb-font)!important;}
  html[data-rx-bento] body:not(.home) .rb-page-form-options[open]>summary {margin-bottom:10px!important;}
  html[data-rx-bento] body:not(.home) .rb-page-form-options>.rx-shared-reply {margin-block:16px!important;}
  html[data-rx-bento] body:not(.home) .rts__bar {position:relative!important;gap:12px!important;}
  html[data-rx-bento] body:not(.home) :is(.rts__field,.rts__input,.rx-reg-top .rx-input) {min-width:0!important;max-width:100%!important;}
  html[data-rx-bento] body:not(.home) :is(.rts__input,.rx-reg-top .rx-input) {
    background:var(--rb-soft)!important;
    color:var(--rb-ink)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:14px!important;
    min-height:54px!important;
    font:400 16px/1.5 var(--rb-font)!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rts__label,.rts__facet-t,.rx-reg-title) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) :is(.rts__go,.rts__more-btn) {min-height:48px!important;border-radius:14px!important;}
  html[data-rx-bento] body:not(.home) .rts__go {background:var(--rb-accent)!important;color:#fff!important;border:0!important;}
  html[data-rx-bento] body:not(.home) :is(.rts__sug,.rts__results>*,.rts__more-btn) {
    background:var(--rb-surface)!important;
    color:var(--rb-ink)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:16px!important;
  }
  html[data-rx-bento] body:not(.home) .rts__sug {box-shadow:var(--rb-shadow)!important;z-index:20!important;max-width:100%!important;}
  html[data-rx-bento] body:not(.home) .rts__sug li {min-height:44px!important;padding:12px 16px!important;color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rts__sug [aria-selected=true] {background:var(--rb-accent-soft)!important;color:var(--rb-accent-text)!important;}
  html[data-rx-bento] body:not(.home) .rts__results {min-width:0!important;}
  html[data-rx-bento] body:not(.home) .rts__results>* {margin-top:16px!important;padding:20px!important;overflow-wrap:anywhere!important;}
  html[data-rx-bento] body:not(.home) .rts-row {border-left-width:3px!important;}
  html[data-rx-bento] body:not(.home) .rts-row--d {border-left-color:var(--rts-graphite)!important;}
  html[data-rx-bento] body:not(.home) .rts-row--s {border-left-color:var(--rts-red)!important;}
  html[data-rx-bento] body:not(.home) .rts-row--g {border-left-color:var(--rts-violet)!important;}
  html[data-rx-bento] body:not(.home) .rts-row--o {border-left-color:var(--rts-green)!important;}
  html[data-rx-bento] body:not(.home) .rts__results :is(h2,h3,h4) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rts__results p {color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) :is(.rts__chips button,.rx-kod-forms>*) {min-height:44px!important;background:var(--rb-soft)!important;color:var(--rb-ink)!important;border-color:var(--rb-line)!important;border-radius:12px!important;}
  html[data-rx-bento] body:not(.home) .rts__chips :is([aria-pressed=true],.active,.is-active) {background:var(--rb-accent-soft)!important;color:var(--rb-accent-text)!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-reg-top,.rx-reg-row,.rx-reg-group) {border-color:var(--rb-line)!important;}
  html[data-rx-bento] body:not(.home) .rx-reg-group {background:var(--rb-soft)!important;color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) .rx-reg-list {border-radius:0 0 21px 21px!important;overflow:auto!important;max-width:100%!important;}
  html[data-rx-bento] body:not(.home) .rx-reg-row {grid-template-columns:minmax(90px,.6fr) minmax(0,2fr) minmax(0,1.3fr)!important;gap:20px!important;color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rx-reg-form a {color:var(--rb-ink)!important;border-color:var(--rb-line)!important;}
  html[data-rx-bento] body:not(.home) .rx-reg-badge {color:var(--rb-accent-text)!important;background:var(--rb-accent-soft)!important;}
  html[data-rx-bento] body:not(.home) :is(.rts-row__name,.rts-row__code) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) :is(.rts-row__reg,.rts-row__pos,.rts-code__lead,.rts-code__date,.rts-code__src) {color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) .rts-row__name mark {background:var(--rb-accent-soft)!important;color:var(--rb-accent-text)!important;}
  html[data-rx-bento] body:not(.home) .rts-code {width:100%!important;max-width:1280px!important;margin:24px auto!important;padding:0 32px 40px!important;color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rts-code h1 {color:var(--rb-ink)!important;font:700 clamp(28px,3.4vw,48px)/1.15 var(--rb-heading)!important;overflow-wrap:break-word!important;}
  html[data-rx-bento] body:not(.home) :is(.rts-code__answer,.rts-code__cta,.rts-code__svc,.rts-code__faq) {background:var(--rb-surface)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:var(--rb-radius)!important;padding:24px!important;}
  html[data-rx-bento] body:not(.home) .rts-code__answer {border-left:3px solid var(--rb-accent)!important;}
  html[data-rx-bento] body:not(.home) .rts-code__cta span {color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) .rts-code__btn {background:var(--rb-accent)!important;color:#fff!important;border-radius:14px!important;min-height:48px!important;}
  html[data-rx-bento] body:not(.home) .rts-code__faq summary {color:var(--rb-ink)!important;min-height:48px!important;padding-block:12px!important;}

  /* Encyclopedia: structured navigation around a conventional readable article. */
  html[data-rx-bento] body:not(.home) .rx-enc {
    --bg:var(--rb-bg)!important;--card:var(--rb-surface)!important;--ink:var(--rb-ink)!important;--muted:var(--rb-muted)!important;--line:var(--rb-line)!important;
    --rx-bg:var(--rb-bg)!important;--rx-bg2:var(--rb-soft)!important;--rx-ink:var(--rb-ink)!important;--rx-ink2:var(--rb-ink)!important;--rx-mut:var(--rb-muted)!important;--rx-mut2:var(--rb-muted)!important;--rx-ln:var(--rb-line)!important;--rx-red:var(--rb-accent-text)!important;--rx-red-d:var(--rb-accent-text)!important;--rx-blue:var(--rb-accent-text)!important;
  }
  html[data-rx-bento] body:not(.home) .rx-enc-wrap {width:100%!important;padding:24px 32px 48px!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-hero .rx-full-hero-inner {max-width:100%!important;padding:0!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-layout {display:grid!important;grid-template-columns:minmax(0,1fr) 280px!important;gap:28px!important;align-items:start!important;margin-top:32px!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-main {max-width:100%!important;line-height:1.75!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-sec {
    margin:0 0 24px!important;
    padding:28px!important;
    border:1px solid var(--rb-line)!important;
    border-radius:var(--rb-radius)!important;
    background:var(--rb-surface)!important;
    color:var(--rb-ink)!important;
  }
  html[data-rx-bento] body:not(.home) .rx-enc-sec :is(p,li,dd) {color:var(--rb-ink)!important;line-height:1.75!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-enc-side,.rx-enc-faq,.rx-enc-tldr,.rx-enc-compact-summary,.rx-enc-compact-details) {
    background:var(--rb-surface)!important;
    color:var(--rb-ink)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:var(--rb-radius)!important;
    padding:24px!important;
  }
  html[data-rx-bento] body:not(.home) .rx-enc-side {top:160px!important;max-height:calc(100dvh - 184px)!important;overflow:auto!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-side :is(a,p,strong,h2,h3) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-side a {min-height:44px!important;padding-block:10px!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-enc-meta,.rx-enc-pk,.rx-enc-pl,.rx-enc-sub,.rx-enc-compact-summary p) {color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-nums {grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:20px!important;margin-block:24px!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-num {padding:24px!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-num :is(b,strong) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-enc-pillar,.rx-enc-cta) {padding:28px!important;border-radius:var(--rb-radius)!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-enc-note,.rxk-note,.rx-reg-note-box,.p4-note) {background:var(--rb-soft)!important;color:var(--rb-ink)!important;border-color:var(--rb-line)!important;border-radius:14px!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-enc-grid,.rx-enc-rgrid,.rx-enc-tgrid,.rx-cat-grid) {gap:20px!important;min-width:0!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-grid>a {background:var(--rb-surface)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:var(--rb-radius)!important;min-height:44px!important;padding:24px!important;}
  html[data-rx-bento] body:not(.home) .rx-enc :is(.rx-enc-tcard>b,.rx-cat-card>b,.rx-enc-route>b,.rx-enc-pillar>b) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rx-enc :is(.rx-enc-tcard>span,.rx-cat-card>span,.rx-enc-route>span,.rx-enc-pl) {color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-svg .rx-s-bg {fill:var(--rb-surface)!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-svg .rx-s-bg2 {fill:var(--rb-soft)!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-svg .rx-s-card {fill:var(--rb-surface)!important;stroke:var(--rb-line)!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-svg .rx-s-tx {fill:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rx-enc-svg .rx-s-tx-s {fill:var(--rb-muted)!important;}

  /* Reading surfaces, table boundaries and normal-flow accordions. */
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc-main,.rx-module,.rxtr,.rx-p4007,.rx-p4017) table {
    max-width:100%!important;
    width:100%!important;
    border-color:var(--rb-line)!important;
    color:var(--rb-ink)!important;
    background:var(--rb-surface)!important;
    font-size:16px!important;
    line-height:1.6!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-tblwrap,.rx-enc-tw,.rx-stable-table-scroll,.rxo-tw,.hm-table) {
    width:100%!important;
    min-width:0!important;
    max-width:100%!important;
    overflow:auto!important;
    border:1px solid var(--rb-line)!important;
    border-radius:16px!important;
    background:var(--rb-surface)!important;
    overscroll-behavior-inline:contain!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-module,.rxtr)>table,
  html[data-rx-bento] body:not(.home) .rx-enc-sec>table {
    display:table!important;
    overflow-x:auto!important;
    overscroll-behavior-inline:contain!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc-main,.rx-module,.rxtr,.rx-p4007,.rx-p4017) :is(th,td) {
    padding:14px 16px!important;
    border-color:var(--rb-line)!important;
    color:var(--rb-ink)!important;
    background:var(--rb-surface)!important;
    vertical-align:top!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc-main,.rx-module,.rxtr,.rx-p4007,.rx-p4017) th {
    background:var(--rb-soft)!important;
    font-weight:650!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc-main,.rx-module,.rxtr) details,
  html[data-rx-bento] body:not(.home) :is(.rx-acc,.rxq,.rxk-q) {
    background:var(--rb-surface)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:16px!important;
    color:var(--rb-ink)!important;
    overflow-wrap:break-word!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc-main,.rx-module,.rxtr) summary,
  html[data-rx-bento] body:not(.home) .rxk-q {
    min-height:52px!important;
    padding:18px 20px!important;
    color:var(--rb-ink)!important;
    cursor:pointer!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-acc-body,.rxq-a,.rxk-a) {color:var(--rb-muted)!important;}

  /* Training has its own semantic palette; do not flatten status labels. */
  html[data-rx-bento] body:not(.home) .rx-module {
    --a:var(--rb-accent)!important;
    --a2:var(--rb-ink)!important;
    --abg:var(--rb-accent-soft)!important;
    --abrd:var(--rb-line)!important;
    --ink:var(--rb-ink)!important;
    --mut:var(--rb-muted)!important;
    --bg:var(--rb-bg)!important;
    --card:var(--rb-surface)!important;
    --brd:var(--rb-line)!important;
    font-family:var(--rb-font)!important;
    color:var(--rb-ink)!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-module section,.rxo-toc) {
    background:var(--rb-surface)!important;
    color:var(--rb-ink)!important;
    border:1px solid var(--rb-line)!important;
    border-radius:var(--rb-radius)!important;
    padding:28px!important;
  }
  html[data-rx-bento] body:not(.home) .rxo-toc a {color:var(--rb-ink)!important;min-height:44px!important;padding-block:10px!important;}
  html[data-rx-bento] body:not(.home) .rx-module :is(.card,.gcard,.cheat) {padding:20px!important;}
  html[data-rx-bento] body:not(.home) .rx-module :is(.note,.warn,.ok,.info) {border-radius:14px!important;color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rx-module .note {background:color-mix(in srgb,#d69513 12%,var(--rb-surface))!important;border-color:#d69513!important;}
  html[data-rx-bento] body:not(.home) .rx-module .warn {background:color-mix(in srgb,#d33c35 12%,var(--rb-surface))!important;border-color:#d33c35!important;}
  html[data-rx-bento] body:not(.home) .rx-module .ok {background:color-mix(in srgb,#188357 12%,var(--rb-surface))!important;border-color:#188357!important;}
  html[data-rx-bento] body:not(.home) .rx-module .info {background:color-mix(in srgb,#3977cf 12%,var(--rb-surface))!important;border-color:#3977cf!important;}

  /* Contact/requisites layouts remain navigable, compact and copy-friendly. */
  html[data-rx-bento] body:not(.home) :is(.rxk-req-row,.rxk-card,.rx-kont-card) {border-color:var(--rb-line)!important;}
  html[data-rx-bento] body:not(.home) :is(.rxk-val,.rxk-h2,.rxk-trust-i strong,.rxk-tile-t) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) :is(.rxk-lab,.rxk-sub,.rxk-trust-i span,.rxk-req-row span) {color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) .rxk-req-row {gap:16px!important;overflow-wrap:anywhere!important;}
  html[data-rx-bento] body:not(.home) :is(.rxk-copy,.rxk-nav a,.rxk-act,.rg-city-item) {min-height:44px!important;}
  html[data-rx-bento] body:not(.home) :is(.rxk-copy,.rxk-nav a) {color:var(--rb-ink)!important;background:var(--rb-soft)!important;border-color:var(--rb-line)!important;border-radius:12px!important;}
  html[data-rx-bento] body:not(.home) :is(.rg-map,.rg-geo-links,.rl-regix) {background:transparent!important;color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) :is(.rg-district,.rl-regix>div) {border-color:var(--rb-line)!important;}

  /* Plugin portals: inherit global tokens and style known wrappers only. */
  html[data-rx-bento] body:not(.home) :is(#rr-root,.sg-wrap,.rx-calc,#rdc-tnved) {
    color:var(--rb-ink)!important;
    font-family:var(--rb-font)!important;
    max-width:100%!important;
    min-width:0!important;
    --bg:var(--rb-bg)!important;
    --card:var(--rb-surface)!important;
    --ink:var(--rb-ink)!important;
    --muted:var(--rb-muted)!important;
    --line:var(--rb-line)!important;
  }
  html[data-rx-bento] body:not(.home) :is(#rr-root .rr-container,.sg-wrap,.rx-calc) {background:transparent!important;}
  html[data-rx-bento] body:not(.home) .rx-calc {
    --rx-ink:var(--rb-ink)!important;--rx-ink2:var(--rb-ink)!important;
    --rx-mut:var(--rb-muted)!important;--rx-mut2:var(--rb-muted)!important;
    --rx-bg:var(--rb-soft)!important;--rx-ln:var(--rb-line)!important;
    --rx-red:var(--rb-accent-text)!important;--rx-red-d:var(--rb-accent-text)!important;
    --rx-soft:var(--rb-accent-soft)!important;--rx-blue:var(--rb-accent-text)!important;
    --rx-bluesoft:var(--rb-soft)!important;--f:var(--rb-font)!important;
    --m:var(--rb-font)!important;--sh:var(--rb-shadow)!important;
    padding-inline:0!important;
  }
  html[data-rx-bento] body:not(.home) .rx-calc :is(.rx-search,.rx-results,.rx-cat,.rx-back,.rx-res,.rx-tabs button) {background:var(--rb-surface)!important;color:var(--rb-ink)!important;border-color:var(--rb-line)!important;}
  html[data-rx-bento] body:not(.home) .rx-calc :is(.rx-res-head,.rx-form,.rx-note,.rx-risk) {background:var(--rb-soft)!important;color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rx-calc :is(.rx-res-cat,.rx-res-meta) {color:var(--rb-muted)!important;}
  html[data-rx-bento] body:not(.home) .rx-calc :is(.rx-res-sum,.rx-card-h h3,.rx-form-t,.rx-doc-t b,.rx-res-item b) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) .rx-calc :is(.rx-tabs button[aria-pressed=true],.rx-stepn) {background:var(--rb-accent)!important;color:#fff!important;border-color:var(--rb-accent)!important;}
  html[data-rx-bento] body:not(.home) .rx-calc :is(.rx-cat,.rx-tabs button,.rx-back,.rx-clear,.rx-ck,.rx-more) {min-height:44px!important;}
  html[data-rx-bento] body:not(.home) .rx-calc :is(.rx-card,.rx-res) {border-radius:var(--rb-radius)!important;}
  html[data-rx-bento] body:not(.home) .rx-calc input:not([type=checkbox]):not([type=radio]) {background:var(--rb-soft)!important;color:var(--rb-ink)!important;border-color:var(--rb-line)!important;min-height:48px!important;font-size:16px!important;}
  html[data-rx-bento] body.redico-calc-page :is(.rx-mbar,.rx-sheet-in) {background:var(--rb-surface)!important;color:var(--rb-ink)!important;border-color:var(--rb-line)!important;}
  html[data-rx-bento] body.redico-calc-page .rx-sheet-close {min-width:44px!important;min-height:44px!important;background:var(--rb-soft)!important;color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) :is(.rr-toolbar-controls,.sg-filters,.rdc-panel) {background:var(--rb-surface)!important;color:var(--rb-ink)!important;border-color:var(--rb-line)!important;border-radius:var(--rb-radius)!important;}
  html[data-rx-bento] body.rx-okpd2-index .tree {min-width:0!important;max-width:100%!important;}
  html[data-rx-bento] body.rx-okpd2-index .tree details {background:var(--rb-surface)!important;color:var(--rb-ink)!important;border-color:var(--rb-line)!important;border-radius:14px!important;}
  html[data-rx-bento] body.rx-okpd2-index .tree summary {color:var(--rb-ink)!important;min-height:48px!important;white-space:normal!important;overflow-wrap:anywhere!important;}
  html[data-rx-bento] body.rx-okpd2-index .tree :is(.L,.rg) {flex-shrink:0!important;}

  /* Older service/regulation files contain unclassed, inline-styled cards.
     Adapt only neutral content surfaces; never modal/widget state wrappers. */
  html[data-rx-bento] body:not(.home) #tr-service-content>section:not(.rxh-uni-host),
  html[data-rx-bento] body:is(.page-template-reglament,.page-template-obuchenie,.page-template-istoriya,.page-template-vakansii,.page-template-partnyory)>section:not(.rxh-uni-host) {
    background-color:transparent!important;
    color:var(--rb-ink)!important;
    border-color:var(--rb-line)!important;
  }
  html[data-rx-bento] body:not(.home) :is(#tr-service-content,.rx-prose,.rx-section,#perechen,#eaeu-reestr,#rx-orig-out,.page-template-reglament>section,.page-template-obuchenie>section,.page-template-istoriya>section,.page-template-vakansii>section,.page-template-partnyory>section) :is(div,section,article)[style]:is(
    [style*="background:#fff;" i],[style*="background: #fff;" i],
    [style$="background:#fff" i],[style$="background: #fff" i],
    [style*="background:#ffffff" i],[style*="background: #ffffff" i],
    [style*="background:#fafbfc" i],[style*="background: #fafbfc" i],
    [style*="background:#f7f8fa" i],[style*="background: #f7f8fa" i],
    [style*="background:#f7f8f9" i],[style*="background: #f7f8f9" i]
  ) {
    background-color:var(--rb-surface)!important;
    color:var(--rb-ink)!important;
    border-color:var(--rb-line)!important;
  }
  html[data-rx-bento] body:not(.home) :is(#tr-service-content,.rx-prose,.rx-section,#perechen,#eaeu-reestr,#rx-orig-out,.page-template-reglament>section) :is(p,li,dd,dt,small,span,div,b,strong)[style]:is(
    [style*="color:#14171c" i],[style*="color: #14171c" i],
    [style*="color:#101216" i],[style*="color: #101216" i],
    [style*="color:#3a4049" i],[style*="color: #3a4049" i],
    [style*="color:#454c57" i],[style*="color: #454c57" i],
    [style*="color:#2b313a" i],[style*="color: #2b313a" i]
  ) {color:var(--rb-ink)!important;}
  html[data-rx-bento] body:not(.home) :is(#tr-service-content,.rx-prose,.rx-section,#perechen,#eaeu-reestr,#rx-orig-out,.page-template-reglament>section) :is(p,li,small,span,div)[style]:is(
    [style*="color:#5a626e" i],[style*="color: #5a626e" i],
    [style*="color:#6a7280" i],[style*="color: #6a7280" i],
    [style*="color:#9aa1ac" i],[style*="color: #9aa1ac" i],
    [style*="color:#8b919b" i],[style*="color: #8b919b" i]
  ) {color:var(--rb-muted)!important;}

  /* REDICO Landings plugin: the complete .rl family has independent tokens. */
  html[data-rx-bento] body:not(.home) #rl-page.rl {
    --ink:var(--rb-ink)!important;--ink2:var(--rb-ink)!important;--ink3:var(--rb-muted)!important;
    --mut:var(--rb-muted)!important;--line:var(--rb-line)!important;--line2:var(--rb-line)!important;
    --soft:var(--rb-soft)!important;--soft2:var(--rb-soft)!important;
    --red:var(--rb-accent)!important;--red-d:var(--rb-accent)!important;
    --ff:var(--rb-font)!important;--mono:var(--rb-font)!important;
    box-sizing:border-box!important;width:100%!important;max-width:1280px!important;
    margin:24px auto 48px!important;padding:0 32px!important;
    color:var(--rb-ink)!important;background:transparent!important;
    font:400 16px/1.65 var(--rb-font)!important;
  }
  html[data-rx-bento] #rl-page :is(.rl-sec,.rl-wrap,.rl-toc) {max-width:100%!important;padding-inline:0!important;}
  html[data-rx-bento] #rl-page .rl-sec {padding-block:32px 0!important;}
  html[data-rx-bento] #rl-page :is(.rl-hero-in,.rl-cta-in) {display:grid!important;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)!important;gap:24px!important;align-items:start!important;max-width:100%!important;padding:0!important;margin:0!important;}
  html[data-rx-bento] #rl-page .rl-hero-in>div:first-child,
  html[data-rx-bento] #rl-page :is(.rl-tile,.rl-panel,.rl-steps>li,.rl-link,.rl-faq details) {min-width:0!important;background:var(--rb-surface)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:var(--rb-radius)!important;padding:28px!important;box-shadow:var(--rb-shadow)!important;}
  html[data-rx-bento] #rl-page .rl-hero-in>div:first-child {padding:clamp(24px,3vw,44px)!important;}
  html[data-rx-bento] #rl-page :is(h2,h3,h4) {font-family:var(--rb-heading)!important;color:var(--rb-ink)!important;line-height:1.25!important;overflow-wrap:break-word!important;}
  html[data-rx-bento] #rl-page :is(.rl-lead,.rl-lead b,.rl-ul>li,.rl-src li,.rl-ans p,.rl-meta,.rl-err p) {color:var(--rb-muted)!important;}
  html[data-rx-bento] #rl-page :is(.rl-eyebrow,.rl-num) {color:var(--rb-accent-text)!important;font-family:var(--rb-font)!important;}
  html[data-rx-bento] #rl-page :is(.rl-facts,.rl-grid,.rl-steps,.rl-links,.rl-check,.rl-errs,.rl-split) {gap:20px!important;min-width:0!important;}
  html[data-rx-bento] #rl-page :is(.rl-fact,.rl-check>li,.rl-err,.rl-meta) {background:var(--rb-soft)!important;border-color:var(--rb-line)!important;color:var(--rb-ink)!important;border-radius:16px!important;min-width:0!important;}
  html[data-rx-bento] #rl-page .rl-fact b {color:var(--rb-accent-text)!important;font-family:var(--rb-font)!important;}
  html[data-rx-bento] #rl-page .rl-fact span {color:var(--rb-muted)!important;}
  html[data-rx-bento] #rl-page :is(.rl-note,.rl-tag,.rl-err i) {background:var(--rb-accent-soft)!important;border-color:var(--rb-line)!important;color:var(--rb-accent-text)!important;}
  html[data-rx-bento] #rl-page .rl-note {border-left:3px solid var(--rb-accent)!important;}
  html[data-rx-bento] #rl-page .rl-note :is(p,b) {color:var(--rb-ink)!important;}
  html[data-rx-bento] #rl-page .rl-btn {min-height:48px!important;border-radius:14px!important;white-space:normal!important;text-align:center!important;line-height:1.4!important;font:650 16px/1.4 var(--rb-font)!important;}
  html[data-rx-bento] #rl-page .rl-btn--red {background:var(--rb-accent)!important;color:#fff!important;border-color:var(--rb-accent)!important;}
  html[data-rx-bento] #rl-page :is(.rl-btn--ghost,.rl-btn--line,.rl-toc a) {background:var(--rb-soft)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:14px!important;min-height:44px!important;}
  html[data-rx-bento] #rl-page .rl-toc a {padding:11px 16px!important;}
  html[data-rx-bento] #rl-page .rl-cta {width:100%!important;margin:40px 0 0!important;padding:32px!important;background:var(--rb-soft)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:var(--rb-radius)!important;}
  html[data-rx-bento] #rl-page .rl-cta::before {content:none!important;}
  html[data-rx-bento] #rl-page .rl-cta :is(h2,p,.rl-ul>li) {color:var(--rb-ink)!important;}
  html[data-rx-bento] #rl-page .rl-card {
    --rb-surface:#161E29!important;--rb-soft:#202B3A!important;--rb-ink:#F4F7FA!important;
    --rb-muted:#B7C3D2!important;--rb-line:#344255!important;--rb-accent-text:#FFB4A8!important;
    background:var(--rb-surface)!important;color:var(--rb-ink)!important;
    border:1px solid var(--rb-line)!important;border-radius:var(--rb-radius)!important;
    padding:28px!important;min-width:0!important;box-shadow:var(--rb-shadow)!important;backdrop-filter:none!important;
  }
  html[data-rx-bento] #rl-page .rl-card :is(h3,label) {color:var(--rb-ink)!important;}
  html[data-rx-bento] #rl-page .rl-card :is(p,.rl-card-top,.rl-alt,.rl-consent) {color:var(--rb-muted)!important;}
  html[data-rx-bento] #rl-page .rl-card :is(.rl-alt a,.rl-consent a) {color:var(--rb-accent-text)!important;}
  html[data-rx-bento] #rl-page .rl-form :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),textarea,select) {box-sizing:border-box!important;min-width:0!important;width:100%!important;min-height:48px!important;background:var(--rb-soft)!important;color:var(--rb-ink)!important;border:1px solid var(--rb-line)!important;border-radius:12px!important;font:400 16px/1.5 var(--rb-font)!important;padding:12px 14px!important;}
  html[data-rx-bento] #rl-page .rl-form :is(input,textarea)::placeholder {color:var(--rb-muted)!important;opacity:1!important;}
  html[data-rx-bento] #rl-page .rl-form select option {color:var(--rb-ink)!important;background:var(--rb-surface)!important;}
  html[data-rx-bento] #rl-page .rl-form :is(input,textarea,select):focus-visible {outline:3px solid var(--rb-accent-text)!important;outline-offset:3px!important;}
  html[data-rx-bento] #rl-page .rl-consent input {flex:0 0 18px!important;width:18px!important;height:18px!important;}
  html[data-rx-bento] #rl-page .rl-alt {border-color:var(--rb-line)!important;}
  html[data-rx-bento] #rl-page .rl-tw {min-width:0!important;width:100%!important;max-width:100%!important;overflow:auto!important;background:var(--rb-surface)!important;border-color:var(--rb-line)!important;border-radius:16px!important;overscroll-behavior-inline:contain!important;}
  html[data-rx-bento] #rl-page .rl-tb :is(th,td) {background:var(--rb-surface)!important;color:var(--rb-ink)!important;border-color:var(--rb-line)!important;}
  html[data-rx-bento] #rl-page .rl-tb thead th {background:var(--rb-soft)!important;color:var(--rb-muted)!important;}
  html[data-rx-bento] #rl-page .rl-faq {border:0!important;}
  html[data-rx-bento] #rl-page .rl-faq details {padding:0 24px!important;margin-bottom:14px!important;}
  html[data-rx-bento] #rl-page .rl-faq summary {min-height:52px!important;color:var(--rb-ink)!important;}
  @media(max-width:960px) {
    html[data-rx-bento] #rl-page :is(.rl-hero-in,.rl-cta-in) {grid-template-columns:minmax(0,1fr)!important;}
    html[data-rx-bento] #rl-page :is(.rl-g3,.rl-steps,.rl-links) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  }
  @media(max-width:640px) {
    html[data-rx-bento] body:not(.home) #rl-page.rl {padding:0 16px!important;margin-top:16px!important;}
    html[data-rx-bento] #rl-page .rl-sec {padding-top:28px!important;}
    html[data-rx-bento] #rl-page :is(.rl-hero-in>div:first-child,.rl-tile,.rl-panel,.rl-card,.rl-steps>li,.rl-link,.rl-cta) {padding:24px 20px!important;}
    html[data-rx-bento] #rl-page :is(.rl-g3,.rl-g2,.rl-steps,.rl-links,.rl-check,.rl-errs,.rl-split) {grid-template-columns:minmax(0,1fr)!important;gap:16px!important;}
    html[data-rx-bento] #rl-page .rl-fact {flex-direction:column!important;gap:6px!important;}
  }

  /* Legacy literal text colors, limited to neutral content surfaces. Keep semantic
     badges, illustrations, widget controls and buttons outside this adapter. */
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rxtr,.rx-enc-sec,.rxk-card,.p4-card) :is(p,li,dd,dt,small):is(
    [style*="color:#14171c" i],[style*="color: #14171c" i],
    [style*="color:#101216" i],[style*="color: #101216" i],
    [style*="color:#3a4049" i],[style*="color: #3a4049" i],
    [style*="color:#454c57" i],[style*="color: #454c57" i],
    [style*="color:#4b5563" i],[style*="color: #4b5563" i]
  ) {
    color:var(--rb-ink)!important;
  }
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rxtr,.rx-enc-sec,.rxk-card,.p4-card) :is(p,small)[style*="#9AA1AC"],
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rxtr,.rx-enc-sec,.rxk-card,.p4-card) :is(p,small)[style*="#8B919B"],
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rxtr,.rx-enc-sec,.rxk-card,.p4-card) :is(p,small)[style*="#5A626E"] {color:var(--rb-muted)!important;}

  @media(max-width:1023px) {
    html[data-rx-bento] body:not(.home) :is(.rx-cards,.rx-hub-grid,.rx-part-g,.rx-team-g,.rx-vak-g,.rx-obu-g,.rxk-tiles) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
    html[data-rx-bento] body:not(.home) .rx-enc-layout {grid-template-columns:minmax(0,1fr)!important;}
    html[data-rx-bento] body:not(.home) .rx-enc-side {position:static!important;max-height:none!important;}
    html[data-rx-bento] body:not(.home) :is(.rx-enc-nums,.rx-kod-grid) {grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  }
  @media(max-width:900px) {
    html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-grid,
    html[data-rx-bento] body:not(.home) :is(.rc-hero-grid,.rd-hero-grid,.rx-enc-hub-hero-grid,.rx-enc-compact-grid,.rx-reg-hero) {grid-template-columns:minmax(0,1fr)!important;gap:20px!important;}
    html[data-rx-bento] body:not(.home) .rx-reg-row {grid-template-columns:minmax(0,1fr)!important;gap:8px!important;}
  }
  @media(max-width:640px) {
    html[data-rx-bento] body:not(.home)>:is(.rx-wrap,.redico-page-wrap),
    html[data-rx-bento] body:not(.home) :is(.rxk-sec,.rts-page__in,.rc-wrap,.rd-wrap) {padding-inline:16px!important;}
    html[data-rx-bento] body:not(.home) :is(.rxh-uni-host,#gr-hero) {margin:16px auto 24px!important;padding-inline:16px!important;}
    html[data-rx-bento] body:not(.home) .rx-enc-wrap {padding:16px 16px 32px!important;}
    html[data-rx-bento] body:not(.home) .rx-enc-hero .rx-full-hero-inner {padding:0!important;}
    html[data-rx-bento] body:not(.home) #rxh.rxh-uni .rxh-uni-main,
    html[data-rx-bento] body:not(.home) :is(.rx-enc-compact-copy,.rc-hero-grid>div:first-child,.rd-hero-grid>div:first-child,.rx-enc-hub-hero-grid>div:first-child) {padding:24px 20px!important;}
    html[data-rx-bento] body:not(.home) :is(#rxh.rxh-uni,.rx-enc-hero,.rc-hero,.rd-hero,.rl-hero) h1 {font-size:clamp(28px,7.4vw,36px)!important;line-height:1.15!important;}
    html[data-rx-bento] body:not(.home) :is(.rx-cards,.rx-hub-grid,.rx-kod-grid,.rxtr-grid,.rx-part-g,.rx-team-g,.rx-vak-g,.rx-obu-g,.rxk-tiles,.rxk-trust,.p4-grid,.rx-test-grid,.rx-steps,.rx-enc-nums,.rx-reg-2col,.rx-reg-3col,.rx-2col,.rx-2col-g,.rx-kont-grid,.rx-kont-row,.c032-2col,.rx-module .grid2,.rxo-stats,.rx-hero-resources>div,.rx-context-tools>div,.rx-enc-grid,.rx-enc-rgrid,.rx-enc-tgrid,.rx-cat-grid,.rx-calc .rx-cats) {
      grid-template-columns:minmax(0,1fr)!important;
      gap:16px!important;
    }
    html[data-rx-bento] body:not(.home) :is(.rx-card-body,.rxtr-card,.rx-step,.rx-test-col,.rx-kod-grid>a,.rx-hub-grid>a,.rx-part-card,.rxk-card,.rxk-tile,.rx-cat-card,.rx-enc-tcard,.rx-enc-route,.p4-card,.rx-enc-sec,.rx-enc-article-intro,.rx-module section,.rxo-toc,.rx-enc-num) {padding:22px 20px!important;}
    html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rxk-sec,.rx-enc-main) h2 {font-size:clamp(24px,6.3vw,30px)!important;}
    html[data-rx-bento] body:not(.home) .rts {padding:18px 16px!important;}
    html[data-rx-bento] body:not(.home) #rxh .rb-registry-hero-search {padding:16px!important;}
    html[data-rx-bento] body:not(.home) #rxh .rb-registry-resources>div {grid-template-columns:minmax(0,1fr)!important;}
    html[data-rx-bento] body:not(.home) .rts__bar {display:grid!important;grid-template-columns:minmax(0,1fr)!important;}
    html[data-rx-bento] body:not(.home) :is(.rts__input,.rts__field,.rts__go,.rts__facets,.rr-sort,.sg-filters) {width:100%!important;min-width:0!important;}
    html[data-rx-bento] body:not(.home) .rts__results>* {padding:18px 16px!important;}
    html[data-rx-bento] body:not(.home) .rx-reg-top {padding:18px 16px!important;gap:12px!important;}
    html[data-rx-bento] body:not(.home) :is(.rx-reg-row,.rx-reg-group) {padding:16px!important;}
    html[data-rx-bento] body:not(.home) .rx-reg-top .rx-input {width:100%!important;flex:1 1 100%!important;}
    html[data-rx-bento] body:not(.home) .rts-code {padding-inline:16px!important;}
    html[data-rx-bento] body:not(.home) :is(.rxk-req-row,.rx-cta,.rx-module .layout) {flex-direction:column!important;align-items:stretch!important;}
    html[data-rx-bento] body:not(.home) .rxk-req-row {grid-template-columns:minmax(0,1fr)!important;gap:6px!important;}
    html[data-rx-bento] body:not(.home) .rx-module nav {position:static!important;width:100%!important;}
    html[data-rx-bento] body:not(.home) #rx-orig-form {grid-template-columns:minmax(0,1fr)!important;}
    html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc-main,.rx-module,.rxtr) :is(th,td) {padding:12px!important;}
    html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-module,.rxtr)>table,
    html[data-rx-bento] body:not(.home) .rx-enc-sec>table {display:block!important;}
  }
  @media(prefers-reduced-motion:reduce) {
    html[data-rx-bento] body:not(.home) :is(.rx-card,.rxtr-card,.rx-step,.rx-cat-card,.rx-enc-tcard,.rx-enc-route,.rxk-tile,.rx-kod-grid>a) {transition:none!important;animation:none!important;}
  }
  /* Explicit layout rules above must not reveal native hidden-state components. */
  html[data-rx-bento] body:not(.home) :is(.rxh-uni-grid,.rc-hero-grid,.rd-hero-grid,.rx-enc-hub-hero-grid,.rx-enc-compact-grid,.rx-enc-layout,.rts__bar)[hidden] {display:none!important;}
}

@layer redicoBento {
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc-main,.rxtr,.rx-module,.rxh-uni-main,#rl-page) p {font-size:18px!important;line-height:1.65!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc-main,.rxtr,.rx-module) :is(li,dd) {font-size:17px!important;line-height:1.65!important;}
  html[data-rx-bento] body:not(.home) :is(.rx-prose,.rx-section,.rx-enc-main,.rx-module,.rxtr,.rx-p4007,.rx-p4017) :is(th,td) {font-size:16px!important;line-height:1.55!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card p {font-size:16px!important;line-height:1.6!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card :is(label,legend) {font-size:16px!important;line-height:1.5!important;}
  html[data-rx-bento] body:not(.home) .rx-lead-card :is(small,.rx-common-consent,.rx-common-help,.rx-common-note) {font-size:14px!important;line-height:1.5!important;}
  html[data-rx-bento] body:not(.home) .rb-page-form-options > summary {font-size:16px!important;}
  html[data-rx-bento] body:not(.home) :is(.rts__input,.rts__go,.rts-row,.rts-code,.rts__results,.rx-enc-tcard,.rx-cat-card) {font-size:16px!important;}
}
