/* RandrIA — P1 (2026-11-05) : portraits d'agents, menu « Agents », deux approches, pages besoin, intégrations, démo, blog, scénarios.
   Charte : bleu nuit #0B2B46, bleu #155F87, orange #FF7A00, ivoire #F7F9FC, Manrope + Inter. Dépend de rs-enhance.css (.rs-ico, tokens) et rs-motion2.css. */

/* ---------- Portraits (remplacent les avatars SVG) ---------- */
.rs-avatar.rs-av-img { position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; background: #f6ece2; box-shadow: inset 0 0 0 1px rgba(11,43,70,.08); }
.rs-avatar.rs-av-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 14%; display: block; }
.rs-avatar.rs-av-img .rs-av-ping { position: absolute; right: 6%; top: 6%; width: 11%; height: 11%; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 2px #fff; }
.rs-portrait .rs-avatar.rs-av-img { border-radius: 38% 38% 42% 42% / 36% 36% 44% 44%; box-shadow: 0 30px 50px -10px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.3); }
.rs-portrait .rs-avatar.rs-av-img img { object-position: 50% 0; }
.detail-heading .agent-icon.rs-has-avatar { background: none; }
.rs-dd-rich .rs-ico.rs-has-stack .rs-avatar.rs-av-img { background: #f6ece2; }

/* Cartes d'agents : fenêtre portrait en tête de carte */
.agent-card .rs-card-portrait { width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: linear-gradient(180deg, #fbf5ee, #f3e7da); margin-bottom: 18px; position: relative; }
.agent-card .rs-card-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; display: block; transition: transform .6s var(--ease); }
.agent-card:hover .rs-card-portrait img, .agent-card:focus-visible .rs-card-portrait img { transform: scale(1.04); }
.agent-card .rs-card-portrait::after { content: ""; position: absolute; inset: auto 0 0 0; height: 38%; background: linear-gradient(180deg, rgba(11,43,70,0), rgba(11,43,70,.10)); pointer-events: none; }
.agent-card.rs-has-portrait .agent-icon { display: none; }
.agent-card.rs-has-portrait { position: relative; }
@media (min-width: 951px) and (max-width: 1150px) { .desktop-nav > a[href="/packs-metier/"] { display: none; } }

/* ---------- Menu « Agents » (bureau) ---------- */
.rs-agents-nav .navigation-trigger .rs-nav-av { display: inline-grid; grid-auto-flow: column; margin-right: 7px; }
.rs-agents-nav .navigation-trigger .rs-nav-av span { width: 20px; height: 20px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 2px #fff; margin-left: -7px; background: #f6ece2; }
.rs-agents-nav .navigation-trigger .rs-nav-av span:first-child { margin-left: 0; }
.rs-agents-nav .navigation-trigger .rs-nav-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 10%; display: block; }
#rsMenuAgents { min-width: 0; width: min(760px, calc(100vw - 32px)); padding: 16px; border-radius: 14px; box-shadow: 0 30px 60px -24px rgba(11,43,70,.45), 0 2px 8px rgba(11,43,70,.08); }
.rs-am-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.rs-am-head b { font: 700 .9375rem/1.2 Manrope, sans-serif; color: var(--navy); }
.rs-am-head .text-link { font-size: .8125rem; }
.rs-am-search { position: relative; margin-bottom: 12px; }
.rs-am-search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--blue); pointer-events: none; }
.rs-am-search input { width: 100%; height: 44px; padding: 0 40px 0 38px; border: 1px solid #c9d8e3; border-radius: 10px; background: #f7f9fc; font: 500 .9375rem/1 Inter, system-ui, sans-serif; color: var(--navy); }
.rs-am-search input:focus { outline: 2px solid var(--orange); outline-offset: 1px; background: #fff; }
.rs-am-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rs-am-chip { border: 1px solid #d6e2ea; background: #fff; color: var(--navy); border-radius: 999px; padding: 5px 11px; font: 600 .75rem/1 Manrope, sans-serif; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.rs-am-chip:hover, .rs-am-chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.rs-am-chip:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.rs-am-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-height: min(52vh, 420px); overflow: auto; padding-right: 2px; }
.rs-am-item { display: flex !important; align-items: center !important; gap: 10px !important; padding: 8px 10px !important; border-radius: 10px; min-width: 0; }
.rs-am-item .rs-am-av { width: 40px; height: 40px; flex: none; border-radius: 50%; overflow: hidden; background: #f6ece2; box-shadow: inset 0 0 0 1px rgba(11,43,70,.08); display: grid; place-items: center; color: var(--blue); }
.rs-am-item .rs-am-av img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.rs-am-item > span:last-child { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.rs-am-item b { font: 650 .8125rem/1.25 Manrope, sans-serif; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-am-item small { font-size: .6875rem; line-height: 1.3; color: #647989; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rs-am-empty { grid-column: 1 / -1; padding: 18px; text-align: center; color: #647989; font-size: .875rem; }
.rs-am-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #e3ebf1; font-size: .8125rem; color: #647989; }
.rs-am-foot .rs-am-ways { display: flex; gap: 14px; flex-wrap: wrap; }
.rs-am-foot .rs-am-ways a { color: var(--navy); font-weight: 600; }
@media (max-width: 1100px) { .rs-am-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 1180px) { .rs-agents-nav .navigation-trigger .rs-nav-av { display: none; } }

/* Tiroir mobile : entrée « Agents IA » */
.rs-drawer .rs-drawer-agents b { display: block; }
.rs-drawer .rs-drawer-agents small { color: #647989; font-size: .75rem; }

/* ---------- Deux approches ---------- */
.rs-two-ways { display: flex; flex-direction: column; gap: 26px; }
.rs-two-head p { max-width: 62ch; }
.rs-two-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.rs-way { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border: 1px solid var(--border, #d9e3ea); border-radius: 16px; background: #fff; transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.rs-way:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(11,43,70,.35); }
.rs-way h3 { font-size: 1.375rem; margin: 0; }
.rs-way > p { margin: 0; }
.rs-way .checklist { margin: 4px 0 0; }
.rs-way .button { align-self: flex-start; margin-top: auto; }
.rs-way-platform { background: linear-gradient(160deg, #fff7ef, #fff); border-color: #ffd9b8; }
.rs-way-custom { background: linear-gradient(160deg, #eef6fa, #fff); border-color: #c6dbe6; }
.rs-way-price { margin: 0; font: 500 .9375rem/1.4 Inter, system-ui, sans-serif; color: #40566a; }
.rs-way-price strong { font: 800 1.75rem/1 Manrope, sans-serif; color: var(--navy); letter-spacing: -.02em; margin-right: 6px; }
@media (max-width: 760px) { .rs-two-grid { grid-template-columns: 1fr; } .rs-way { padding: 22px; } }

/* Tarifs : bandes supplémentaires */
.rs-pricing-custom { background: radial-gradient(900px 480px at 15% 0%, rgba(0,168,220,.22), transparent 60%), radial-gradient(700px 420px at 100% 100%, rgba(255,122,0,.14), transparent 60%), var(--grad-dark); }
.rs-pricing-note { margin: 26px auto 0; max-width: 78ch; color: #b8cbd8; font-size: .8125rem; line-height: 1.55; text-align: center; }
.rs-onboard { display: flex; align-items: center; gap: 16px; margin: 26px auto 0; max-width: 820px; padding: 18px 22px; border-radius: 14px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); color: #e3eef4; }
.rs-onboard b { display: block; color: #fff; font: 700 .9375rem/1.3 Manrope, sans-serif; margin-bottom: 4px; }
.rs-onboard span { font-size: .875rem; line-height: 1.5; color: #c3d4df; }
.rs-onboard strong { color: #fff; font-weight: 800; }
.rs-maint-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.rs-maint { padding: 26px; border-radius: 14px; background: #fff; border: 1px solid #d9e3ea; display: flex; flex-direction: column; gap: 10px; }
.rs-maint h3 { margin: 0; font-size: 1.125rem; }
.rs-maint-price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.rs-maint-price strong { font: 800 1.75rem/1 Manrope, sans-serif; color: var(--navy); letter-spacing: -.02em; }
.rs-maint-price span { font-size: .8125rem; color: #647989; }
.rs-maint .checklist { margin: 4px 0 0; }
.rs-maint .checklist li { font-size: .875rem; }
@media (max-width: 860px) { .rs-maint-grid { grid-template-columns: 1fr; } .rs-onboard { flex-direction: column; align-items: flex-start; } }

/* ---------- Pages « un agent IA pour… » ---------- */
.rs-pain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rs-pain li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: #fff4ea; border: 1px solid #ffd9b8; }
.rs-pain li > svg { flex: none; color: var(--orange-text); margin-top: 2px; }
.rs-flow { list-style: none; margin: 0; padding: 0; counter-reset: rsflow; display: flex; flex-direction: column; gap: 0; position: relative; }
.rs-flow li { display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 0 0 22px; position: relative; }
.rs-flow li::before { content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: linear-gradient(180deg, var(--orange), #96e0ed); opacity: .5; }
.rs-flow li:last-child::before { display: none; }
.rs-flow-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 .9375rem/1 Manrope, sans-serif; box-shadow: 0 0 0 4px #e3f6fa; }
.rs-flow b { display: block; font: 700 1.0625rem/1.3 Manrope, sans-serif; color: var(--navy); margin: 8px 0 4px; }
.rs-flow p { margin: 0; }
.rs-mini-list { display: flex; flex-direction: column; gap: 8px; }
.rs-mini-agent { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; border: 1px solid #d9e3ea; background: #fff; text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.rs-mini-agent:hover { transform: translateX(4px); box-shadow: 0 14px 30px -18px rgba(11,43,70,.35); }
.rs-mini-agent > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rs-mini-agent b { font: 700 .9375rem/1.25 Manrope, sans-serif; color: var(--navy); }
.rs-mini-agent small { font-size: .8125rem; color: #647989; }
.rs-mini-agent > svg:last-child { flex: none; color: var(--orange-text); }
.rs-mini-av { width: 46px; height: 46px; flex: none; border-radius: 50%; overflow: hidden; background: #eaf3f7; display: grid; place-items: center; color: var(--blue); }
.rs-mini-av img, .rs-mini-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; display: block; }
.rs-faq { border: 1px solid #d9e3ea; border-radius: 10px; padding: 0 16px; margin-bottom: 8px; background: #fff; }
.rs-faq summary { cursor: pointer; padding: 14px 0; font: 700 .9375rem/1.3 Manrope, sans-serif; color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.rs-faq summary::-webkit-details-marker { display: none; }
.rs-faq summary::after { content: "+"; color: var(--orange-text); font-weight: 800; }
.rs-faq[open] summary::after { content: "–"; }
.rs-faq p { margin: 0 0 14px; }
.rs-need-cards .agent-card h3 { font-size: 1.125rem; }

/* ---------- Intégrations ---------- */
.rs-int-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rs-int-card { padding: 24px; border-radius: 14px; background: #fff; border: 1px solid #d9e3ea; }
.rs-int-card h3 { margin: 0 0 12px; font-size: 1.0625rem; padding-bottom: 10px; border-bottom: 2px solid #eaf3f7; }
.rs-int-card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rs-int-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.rs-int-card li > svg { flex: none; width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--t-blue); color: var(--blue); margin-top: 2px; }
.rs-int-card:nth-child(3n+2) li > svg { background: var(--t-orange); color: var(--orange-text); }
.rs-int-card:nth-child(3n+3) li > svg { background: var(--t-cyan); color: var(--cyan-deep); }
.rs-how-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.rs-how { padding: 22px; border-radius: 14px; background: #fff; border: 1px solid #d9e3ea; display: flex; flex-direction: column; gap: 12px; }
.rs-how h3 { margin: 0; font-size: 1.0625rem; }
.rs-how p { margin: 0; font-size: .9375rem; }
@media (max-width: 980px) { .rs-int-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rs-how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rs-int-grid, .rs-how-grid { grid-template-columns: 1fr; } }

/* ---------- Blog ---------- */
.rs-blog-card h3 { font-size: 1.125rem; line-height: 1.3; }

/* ---------- Scénarios (cas clients) ---------- */
.rs-scn-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 18px; }
.rs-scn-tab { border: 1px solid #d6e2ea; background: #fff; color: var(--navy); border-radius: 999px; padding: 8px 14px; font: 600 .8125rem/1 Manrope, sans-serif; cursor: pointer; min-height: 40px; transition: background .2s, color .2s, border-color .2s; }
.rs-scn-tab[aria-selected="true"], .rs-scn-tab:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.rs-scn-tab:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.rs-scn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.rs-scn { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 14px; background: #fff; border: 1px solid #d9e3ea; }
.rs-scn[hidden] { display: none; }
.rs-scn-badge { align-self: flex-start; font: 700 .625rem/1 Manrope, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--orange-text); background: var(--t-orange); padding: 6px 10px; border-radius: 999px; }
.rs-scn h3 { margin: 0; font-size: 1.0625rem; line-height: 1.3; }
.rs-scn dl { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rs-scn dl > div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; font-size: .875rem; }
.rs-scn dt { font: 700 .6875rem/1.6 Manrope, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: #647989; }
.rs-scn dd { margin: 0; }
.rs-scn-human { padding: 8px 10px; margin: 0 -10px; border-radius: 8px; background: #fff4ea; }
.rs-scn-human dt { color: var(--orange-text); }
.rs-scn-agent { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid #eaf0f4; text-decoration: none; color: var(--navy); font: 600 .8125rem/1.2 Manrope, sans-serif; }
.rs-scn-agent .rs-mini-av { width: 34px; height: 34px; }
.rs-scn-agent > svg:last-child { margin-left: auto; color: var(--orange-text); }
@media (max-width: 980px) { .rs-scn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rs-scn-grid { grid-template-columns: 1fr; } .rs-scn dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- Démo ---------- */
.rs-demo-grid .rs-way h3 { font-size: 1.5rem; }

/* ---------- Animations d'entrée (respect du mode réduit) ---------- */
.rs-anim .rs-way, .rs-anim .rs-scn, .rs-anim .rs-int-card, .rs-anim .rs-how, .rs-anim .rs-maint { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rs-anim .rs-way.is-visible, .rs-anim .rs-scn.is-visible, .rs-anim .rs-int-card.is-visible, .rs-anim .rs-how.is-visible, .rs-anim .rs-maint.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rs-anim .rs-way, .rs-anim .rs-scn, .rs-anim .rs-int-card, .rs-anim .rs-how, .rs-anim .rs-maint { opacity: 1; transform: none; transition: none; } }


/* RandrIA — bandeaux novembre 2026 */
/* Accueil RandrIA — fond clair et démonstration bleu marine. */
body.home.rs-v2 #contenu > section.hero {
  background: #faf8f3;
  color: #0c2d48;
  padding-bottom: 0;
}

body.home.rs-v2 #contenu > section.hero.rs-angled::after,
body.home.rs-v2 #contenu > section.hero > .rs-mesh {
  display: none;
}

body.home.rs-v2 #contenu > section.hero .hero-copy h1 {
  color: #0c2d48;
}

body.home.rs-v2 #contenu > section.hero .hero-copy h1 em {
  color: #b94e00;
}

body.home.rs-v2 #contenu > section.hero .hero-copy > p,
body.home.rs-v2 #contenu > section.hero .hero-trust,
body.home.rs-v2 #contenu > section.hero .hero-bottom {
  color: #345169;
}

body.home.rs-v2 #contenu > section.hero .hero-copy .eyebrow,
body.home.rs-v2 #contenu > section.hero .hero-trust svg {
  color: #175b77;
}

body.home.rs-v2 #contenu > section.hero .hero-secondary {
  color: #0c2d48;
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

body.home.rs-v2 #contenu > section.hero .hero-secondary:hover {
  color: #a84600;
}

body.home.rs-v2 #contenu > section.hero .workflow {
  background: #12364f;
  color: #fff;
  box-shadow: 0 18px 38px #0c2d4826;
}

body.home.rs-v2 #contenu > section.hero .hero-bottom {
  border-top-color: #0c2d4826;
}

body.home.rs-v2 #contenu > section.hero .hero-bottom > span {
  color: #345169;
}

body.home.rs-v2 #contenu > section.hero .hero-actions .button:first-child {
  background: #ff951d;
  color: #0c2d48;
}
body.home.rs-v2 #contenu > section.hero .hero-actions .button:first-child:hover {
  background: #ffac50;
}

body.rs-v2 #contenu > section.page-hero {
  background: #faf8f3;
  color: #0c2d48;
  border-bottom: 1px solid #0c2d4826;
}
body.rs-v2 #contenu > section.page-hero.rs-angled {
  padding-bottom: clamp(36px, 5vw, 72px) !important;
}
body.rs-v2 #contenu > section.page-hero::before,
body.rs-v2 #contenu > section.page-hero.rs-angled::after,
body.rs-v2 #contenu > section.page-hero > .rs-mesh {
  display: none;
}
body.rs-v2 #contenu > section.page-hero :is(h1, h2, .button-outline, .rs-btn-ghost) {
  color: #0c2d48;
}
body.rs-v2 #contenu > section.page-hero :is(h1 em, .rs-grad) {
  background: none;
  color: #b94e00;
}
body.rs-v2 #contenu > section.page-hero :is(p, .breadcrumbs, .breadcrumbs a, .breadcrumbs [aria-current], .rs-agent-checks li) {
  color: #345169;
}
body.rs-v2 #contenu > section.page-hero .rs-agent-copy > p,
body.rs-v2 #contenu > section.page-hero.rs-agent-hero > .container > p {
  color: #345169 !important;
}
body.rs-v2 #contenu > section.page-hero :is(.eyebrow, .rs-h1-pre, .rs-ico) {
  color: #175b77;
}
body.rs-v2 #contenu > section.page-hero :is(.breadcrumbs a:hover, .rs-agent-copy .rs-badge) {
  color: #a84600;
}
body.rs-v2 #contenu > section.page-hero .tag-row > span {
  background: #edf2f5;
  border-color: #c4d4de;
  color: #345169;
}
body.rs-v2 #contenu > section.page-hero :is(.button-outline, .rs-btn-ghost) {
  border-color: #637b8d;
}
body.rs-v2 #contenu > section.page-hero :is(.button-outline, .rs-btn-ghost):hover {
  background: #eaf0f4;
  border-color: #175b77;
}

body.home.rs-v2 #contenu .problem-card {
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}
body.home.rs-v2 #contenu .problem-card:focus-visible {
  background-color: #fff9f2;
  border-color: #bf6929;
  outline: 2px solid #a84600;
  outline-offset: 3px;
  box-shadow: 0 10px 24px #0c2d481a;
}
@media (hover: hover) {
  body.home.rs-v2 #contenu .problem-card:hover {
    background-color: #fff9f2;
    border-color: #bf6929;
    box-shadow: 0 10px 24px #0c2d481a;
    transform: translateY(-2px);
  }
}
@media (prefers-reduced-motion: reduce) {
  body.home.rs-v2 #contenu .problem-card {
    transition: none;
  }
  body.home.rs-v2 #contenu .problem-card:hover {
    transform: none;
  }
}


/* RandrIA — démos agents */
body.rs-v2 .detail-layout > .rs-agent-demo-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
body.rs-v2 .rs-agent-demo-row > .rs-agent-demo {
  background: #12364f;
  color: white;
  min-width: 0;
  margin: 0;
  box-shadow: 0 18px 38px #0c2d4826;
}
.rs-agent-demo .rj-tabs { flex-wrap: wrap; }
.rs-agent-demo :is(.rj-tab, .rj-pause):focus-visible {
  outline: 2px solid #ffb36b;
  outline-offset: 3px;
}
.rs-agent-demo .rj-pause[hidden] { display: none; }
@media (max-width: 860px) {
  body.rs-v2 .detail-layout > .rs-agent-demo-row { grid-template-columns: minmax(0, 1fr); }
}

.rs-agent-demo .rj-tab {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 44px;
}
.rs-agent-demo .rj-tab svg {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.rs-agent-demo .rj-foot {
  flex-wrap: wrap;
  align-items: baseline;
}
@media (max-width: 860px) {
  body.rs-v2:has(.rs-agent-demo) .rs-fab {
    max-width: calc(100% - 32px);
  }
  body.rs-v2 .rs-agent-demo {
    scroll-margin-bottom: 120px;
  }
}

body.rs-v2 .rs-agent-demo-row > .rs-agent-demo {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.rs-agent-demo .rj-foot {
  margin-top: auto;
  padding-top: 14px;
}
