.rpc-preloaded-devices {
  --rpc-accent: #a91d20;
  --rpc-line: #e2e2e2;
  color: #222;
}
.rpc-preloaded-devices section, .rpc-preloaded-devices details { scroll-margin-top: 9rem; }
.rpc-devices-search { background: #f7f7f7; border: 1px solid var(--rpc-line); border-radius: 8px; padding: 1.15rem; }
.rpc-devices-search label { font-size: 1.18rem; font-weight: 700; }
.rpc-devices-search p { margin: .25rem 0 .75rem; color: #555; }
.rpc-devices-search input { min-height: 44px; margin: 0; box-shadow: none; border: 1px solid #aaa; border-radius: 5px; }
#rpc-preloaded-status { margin: .65rem 0 0; }
#rpc-preloaded-status:empty { display: none; }
#rpc-preloaded-results { list-style: none; margin: .5rem 0 0; }
#rpc-preloaded-results li { margin: 0; border-top: 1px solid var(--rpc-line); }
#rpc-preloaded-results a { display: block; padding: .55rem 0; color: var(--rpc-accent); text-decoration: underline; }
.rpc-devices-nav { display: flex; flex-wrap: wrap; gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--rpc-line); }
.rpc-devices-nav a { border: 1px solid var(--rpc-line); border-radius: 5px; padding: .55rem .7rem; font-weight: 600; }
.rpc-devices-nav a:hover, .rpc-devices-card:hover strong { color: var(--rpc-accent); }
.rpc-preloaded-devices h2 { margin: 1.45rem 0 .7rem; }
.rpc-devices-grid { display: grid; gap: .75rem; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.rpc-devices-classic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rpc-devices-card { display: flex; flex-direction: column; align-items: center; border: 1px solid var(--rpc-line); border-radius: 7px; overflow: hidden; color: #222; }
.rpc-devices-card img { width: 100%; height: 108px; padding: .5rem; object-fit: contain; }
.rpc-devices-card strong { align-self: stretch; padding: .6rem .35rem; background: #f5f5f5; text-align: center; }
.rpc-brand-filter { max-width: 32rem; }
.rpc-brand-filter label { font-weight: 700; }
.rpc-brand-filter input { min-height: 44px; margin: .25rem 0 .45rem; border-radius: 5px; }
#rpc-device-brand-count { color: #555; margin: .3rem 0 .75rem; }
.rpc-devices-brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rpc-devices-brand-grid .rpc-devices-card img { height: auto; aspect-ratio: 1; }
.rpc-devices-brand-grid .rpc-devices-card[hidden] { display: none; }
@media (max-width: 900px) {
  .rpc-devices-brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .rpc-devices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rpc-devices-card img { height: 84px; }
}

.rpc-preloaded-devices .rpc-device-promos { margin: 0 0 1.15rem; }
.rpc-device-promos p { margin: .85rem 0; font-weight: 400; line-height: 1.48; }
.rpc-promo-mobile-copy, .rpc-promo-controls { display: none; }
.rpc-promo-featured, .rpc-promo-more { display: grid; gap: .65rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rpc-promo-hero { position: relative; display: block; overflow: hidden; border-radius: 7px; aspect-ratio: 1; background: #23151b; color: #fff; }
.rpc-promo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rpc-promo-hero-text { position: absolute; inset: 0 0 auto; padding: clamp(.58rem, 1.6vw, 1.25rem); background: linear-gradient(#130c19b3, transparent); }
.rpc-promo-hero-text strong, .rpc-promo-hero-text span { display: block; color: #fff; }
.rpc-promo-hero-text strong { font-size: clamp(1.02rem, 2.3vw, 1.88rem); line-height: 1.08; }
.rpc-promo-hero-text span { margin-top: .25rem; font-size: clamp(.76rem, 1.4vw, 1rem); line-height: 1.24; }
.rpc-promo-more { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.rpc-promo-small { display: flex; flex-direction: column; align-items: center; padding: 0 0 .55rem; overflow: hidden; border: 1px solid var(--rpc-line); background: #f7f7f8; border-radius: 7px; text-align: center; color: #222; }
.rpc-promo-small img { display: block; width: 100%; height: auto; aspect-ratio: 1.5; object-fit: cover; }
.rpc-promo-small strong { padding: .15rem .3rem 0; font-size: clamp(.78rem, 1.45vw, 1rem); line-height: 1.18; }
.rpc-promo-small span { margin-top: .18rem; color: #555; padding: 0 .25rem; font-size: .74rem; line-height: 1.14; }
.rpc-promo-hero:hover .rpc-promo-hero-text strong, .rpc-promo-small:hover strong { text-decoration: underline; text-underline-offset: .12em; }
.rpc-promo-featured:focus-visible, .rpc-promo-more:focus-visible, .rpc-promo-hero:focus-visible, .rpc-promo-small:focus-visible, .rpc-promo-controls button:focus-visible { outline: 2px solid #a91d20; outline-offset: -3px; }
@media (max-width: 599px) {
 .rpc-preloaded-devices .rpc-devices-search { padding: .55rem 0 .2rem; border: 0; background: transparent; }
 .rpc-preloaded-devices .rpc-devices-search > p:not([role]) { display: none; }
 .rpc-preloaded-devices .rpc-devices-search input { margin-top: .3rem; }
 .rpc-device-promos .rpc-promo-desktop-copy { display: none; }
 .rpc-device-promos .rpc-promo-mobile-copy { display: block; margin: .65rem 0; }
 .rpc-promo-featured, .rpc-promo-more { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; gap: .5rem; padding-bottom: .1rem; }
 .rpc-promo-hero { flex: 0 0 42%; scroll-snap-align: start; }
 .rpc-promo-hero-text strong { font-size: clamp(.86rem, 3.5vw, 1.15rem); }
 .rpc-promo-hero-text span { font-size: clamp(.63rem, 2.6vw, .8rem); }
 .rpc-promo-small { flex: 0 0 27%; scroll-snap-align: start; }
 .rpc-promo-controls:not([hidden]) { display: flex; justify-content: space-between; align-items: center; margin: .18rem 0 0; }
 .rpc-promo-controls button { min-width: 44px; min-height: 44px; margin: 0; padding: 0; font-size: 1.65rem; line-height: 1; color: var(--rpc-accent); border: 0; }
 .rpc-promo-controls button:disabled { opacity: .34; cursor: default; }
 .rpc-promo-progress { display: flex; gap: .4rem; }
 .rpc-promo-progress i { width: 7px; height: 7px; border-radius: 50%; background: #b0a8aa; }
 .rpc-promo-progress i.is-active { background: var(--rpc-accent); }
}
