/* Search belongs to the same brand as account entry, with a compact masthead. */
body dialog.header-search__panel[data-search-style="brand-v2"] {
  --search-brand-start: color-mix(in srgb, var(--dafa-accent) 78%, #592517);
  --search-brand-end: var(--dafa-accent);
  --search-brand-ink: #fffaf6;
  --search-brand-art: url('../images/auth-888-day-cutout-v1.webp');
  --search-logo-fill: #fffaf6;
  --search-logo-stroke: var(--dafa-accent);
  padding: 0 26px 14px;
  border: 0;
  border-radius: 16px;
}
html.dafa-color-dark body dialog.header-search__panel[data-search-style="brand-v2"] {
  --search-brand-start: color-mix(in srgb, var(--dafa-accent) 8%, var(--dafa-surface));
  --search-brand-end: var(--dafa-surface-muted);
  --search-brand-ink: var(--dafa-text);
  --search-brand-art: url('../images/auth-888-dark-cutout-v1.webp');
  --search-logo-fill: var(--dafa-accent);
  --search-logo-stroke: var(--dafa-on-accent);
}
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__masthead {
  position: relative;
  flex: none;
  isolation: isolate;
  overflow: hidden;
  margin: 0 -26px 20px;
  padding: 22px 64px 20px 26px;
  background: linear-gradient(115deg, var(--search-brand-start), var(--search-brand-end));
  color: var(--search-brand-ink);
}
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__masthead::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -55px -35px -70px auto;
  width: 240px;
  background: var(--search-brand-art) center / contain no-repeat;
  opacity: .14;
  pointer-events: none;
}
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand { display: flex; align-items: center; margin-bottom: 12px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg { color: inherit; gap: 8px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__svg { flex-basis: 30px; width: 30px; height: 30px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__coin-fill { fill: var(--search-logo-fill); }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__dollar { stroke: var(--search-logo-stroke); animation: none; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__copy { display: flex; transform: none; animation: none; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__name { font-size: 20px; line-height: 1.25; color: inherit; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__tagline { display: none; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand img { display: block; width: auto; max-width: 170px; max-height: 34px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__heading { margin: 0; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__title { display: block; color: inherit; font-size: 20px; font-weight: 600; line-height: 1.5; letter-spacing: 0; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__close { position: absolute; top: 12px; right: 12px; color: inherit; border-radius: 10px; background: transparent; }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__close:is(:hover,:focus-visible) { color: inherit; background: color-mix(in srgb, var(--search-brand-ink) 13%, transparent); }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__close:focus-visible { outline-color: var(--search-brand-ink); }
body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search--modal::before { background: var(--dafa-surface); border-color: color-mix(in srgb, var(--dafa-accent) 26%, var(--dafa-border)); border-radius: 10px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search--modal:has(.scope-search__field:focus-visible)::before { border-color: var(--dafa-accent); box-shadow: none; }
body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search__field { min-height: 54px; padding-inline: 14px; font-size: 16px; caret-color: var(--dafa-accent); }
body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search__submit { border-radius: 8px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search { margin-top: 20px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--dafa-border) transparent; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics { gap: 6px; margin-bottom: 20px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics > span,
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__section-label,
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__results h3 { font-weight: 600; letter-spacing: 0; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics button { min-height: 34px; padding: 6px 11px; border-radius: 7px; border-color: transparent; background: var(--search-soft); font-size: 12px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics button:is(:hover,.is-selected) { border-color: color-mix(in srgb, var(--dafa-accent) 24%, var(--dafa-surface)); background: color-mix(in srgb, var(--dafa-accent) 8%, var(--dafa-surface)); color: var(--dafa-accent); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result { min-height: 66px; margin: 0; padding: 12px 48px 12px 10px; border-radius: 8px; }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result + .search-result { border-top: 1px solid var(--search-line); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result strong { font-size: 14px; line-height: 1.6; font-weight: 500; }
body dialog.header-search__panel[data-search-style="brand-v2"] .search-result__arrow { display: grid; place-items: center; right: 10px; width: 28px; height: 28px; border-radius: 50%; font-size: 0; color: var(--dafa-text-soft); background: var(--search-soft); transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
body dialog.header-search__panel[data-search-style="brand-v2"] .search-result__arrow::before { content: ""; display: block; width: 6px; height: 6px; margin-right: 2px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result:is(:hover,:focus-visible) .search-result__arrow { transform: translate(2px,-50%); color: var(--dafa-accent); background: color-mix(in srgb, var(--dafa-accent) 9%, var(--dafa-surface)); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__actions { gap: 6px 16px; margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--search-line); }
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__actions a,
body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__actions button { color: var(--dafa-text); }
body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__hint { margin-top: 12px; padding-top: 10px; gap: 8px 16px; }
body dialog.header-search__panel[data-search-style="brand-v2"] ::selection { background: color-mix(in srgb, var(--dafa-accent) 20%, var(--dafa-surface)); color: var(--dafa-text); }
@media (max-width: 640px) {
  body dialog.header-search__panel[data-search-style="brand-v2"] { padding: 0 18px 12px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__masthead { margin: 0 -18px 16px; padding: 20px 58px 18px 18px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__masthead::before { right: -85px; opacity: .10; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand { margin-bottom: 10px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__title { font-size: 17px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .header-search__brand .dafa-brand-svg__name { font-size: 19px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search { margin-top: 18px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__topics button { min-height: 44px; padding-inline: 10px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .scope-search__field { padding-inline: 10px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search .search-result { padding-left: 4px; padding-right: 36px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .search-result__arrow { right: 2px; width: 26px; height: 26px; }
  body dialog.header-search__panel[data-search-style="brand-v2"] .quick-search__actions { gap: 4px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  body dialog.header-search__panel[data-search-style="brand-v2"] .search-result__arrow { transition: none; }
}
