header > .rb-header-actions { display: flex; flex: none; align-items: center; gap: 8px; }
.rb-header-actions > .surprise { white-space: nowrap; }
.rb-header-search {
  display: grid; flex: none; place-items: center; width: 40px; height: 40px;
  padding: 0; border: 1px solid #e3d6f1; border-radius: 11px; background: #f4edfb; color: #58388d;
}
.rb-header-search svg { width: 19px; height: 19px; }
.rb-header-search:hover { background: #eae0f7; }
@media (max-width: 800px) {
  header > .rb-header-actions { margin-inline-start: auto; gap: 5px; }
  .page-template header > .rb-header-actions > .surprise { display: inline-flex; }
  body > header > .brand .brand-icon {
    flex: none; width: 32px; height: 32px; border-radius: 8px;
    font-size: 23px; line-height: 1; letter-spacing: 0;
  }
}
@media (max-width: 550px) {
  header > .rb-header-actions > .surprise { padding: 10px; font-size: 10px; }
}
@media (max-width: 420px) {
  body > header { gap: 6px; padding-inline: 12px; }
  body > header > .brand { font-size: 20px; gap: 5px; }
  body > header > .brand .brand-icon { width: 24px; height: 24px; border-radius: 6px; font-size: 20px; }
  header > .rb-header-actions { gap: 4px; }
  header > .rb-header-actions > .surprise { padding: 8px 6px; }
  .rb-header-search { width: 34px; }
  .mobile-menu .rb-menu-toggle { width: 38px; }
}
@media (max-width: 345px) {
  body > header { gap: 4px; padding-inline: 8px; }
  body > header > .brand { font-size: 18px; gap: 4px; }
}

.rb-search-body { margin: 0; background: #f8f5fc; color: #242037; font-family: Arial, Helvetica, sans-serif; }
.rb-search-body *, .rb-search-body *::before, .rb-search-body *::after { box-sizing: border-box; }
.rb-search-page { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; padding: 16px; }
.rb-search-page.rb-search-has-query { display: block; width: min(850px, 100%); margin-inline: auto; padding-block: clamp(28px, 9vh, 88px); }
.rb-search-form { display: flex; gap: 6px; width: min(560px, calc(100vw - 32px)); margin-inline: auto; }
.rb-search-form input { width: 100%; min-width: 0; min-height: 52px; padding: 9px 14px; border: 1px solid #cbb9e1; border-radius: 10px; background: white; color: inherit; font-size: 18px; }
.rb-search-form button { display: grid; flex: 0 0 52px; place-items: center; padding: 0; border: 0; border-radius: 10px; background: #6040a6; color: white; cursor: pointer; }
.rb-search-form button:hover { background: #4d3289; }
.rb-search-form button svg { width: 23px; height: 23px; }
.rb-search-body :focus-visible { outline: 2px solid #7754d0; outline-offset: 2px; }
.rb-search-status { margin: 22px auto; color: #5c506d; font-size: 14px; text-align: center; }
.rb-search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.rb-search-results h2 { margin: 12px 0 8px; color: #3c2959; font-size: 16px; }
.rb-search-results ul { margin: 0; padding: 0; list-style: none; }
.rb-search-results li + li { margin-top: 5px; }
.rb-search-results a { display: block; padding: 11px 12px; border: 1px solid #e8dff3; border-radius: 8px; background: white; color: #302243; font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; text-decoration: none; }
.rb-search-results a:hover { background: #ece3f8; }
.rb-search-results small { display: block; margin-top: 2px; color: #67557e; font-size: 11px; }
@media (max-width: 540px) { .rb-search-results { grid-template-columns: minmax(0, 1fr); gap: 12px; } }
