html[data-device="mobile"] .t872-ov {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 64px;
  z-index: 1000;
  display: none;
  pointer-events: none;
  flex-direction: column;
  justify-content: flex-end;
}
html[data-device="mobile"] .t872-ov.on {
  display: flex;
  pointer-events: auto;
}
html[data-device="mobile"] .t872-bd {
  position: absolute;
  inset: 0;
  background: rgba(17, 21, 28, 0.42);
  opacity: 0;
  animation: t872f 0.22s ease-out forwards;
}
html[data-theme="dark"][data-device="mobile"] .t872-bd {
  background: rgba(0, 0, 0, 0.55);
}
html[data-device="mobile"] .t872-sh {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  height: 100%;
  max-height: 100%;
  width: 100%;
  background: var(--card, #fff);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -16px 40px rgba(17, 21, 28, 0.18);
  transform: translateY(100%);
  animation: t872d 0.32s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform;
}
html[data-theme="dark"][data-device="mobile"] .t872-sh {
  background: var(--card, #171c24);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
}
html[data-device="mobile"] .t872-ov .g-msr {
  flex: none;
  padding: 12px;
  background: transparent;
}
html[data-device="mobile"] .t872-ov .t872-sc {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 0 0 12px;
}
html[data-device="mobile"] .t872-ov .g-sd {
  position: static !important;
  display: block !important;
  top: auto;
  margin: 0 12px;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-shadow: none !important;
}
html[data-device="mobile"] .t872-ov .g-sd .t858-pop {
  display: none;
}
html[data-device="mobile"] .t872-ov .g-sd.t858-e .t858-pop {
  display: block;
}
html[data-device="mobile"] .t872-ov .g-sd.t858-e .g-sd-res,
html[data-device="mobile"] .t872-ov .g-sd.t858-e .g-sd-emp {
  display: none !important;
}
html[data-device="mobile"] .t872-ov .g-sd .t858-pop a.g-si + a.g-si {
  margin-top: 8px;
}
html[data-device="mobile"] .t872-ov.out .t872-bd {
  animation: t872fo 0.2s ease-in forwards;
}
html[data-device="mobile"] .t872-ov.out .t872-sh {
  animation: t872u 0.2s ease-in forwards;
}
html.t872-lock,
html.t872-lock body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
@keyframes t872f {
  to {
    opacity: 1;
  }
}
@keyframes t872fo {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}
@keyframes t872d {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@keyframes t872u {
  from {
    transform: none;
  }
  to {
    transform: translateY(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  html[data-device="mobile"] .t872-sh,
  html[data-device="mobile"] .t872-bd {
    animation-duration: 0.01s !important;
  }
}
html.t872-lock[data-device="mobile"] body .tabbar {
  z-index: 1001 !important;
}
html[data-device="mobile"] .t872-ov .g-msr .search-form input {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-device="mobile"] .t872-ov .g-sd:has(> .g-sd-emp:not([hidden])) {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: 0 !important;
}
html[data-device="mobile"] .t872-ov .g-sd > .g-sd-emp:not([hidden]) .g-empty {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
}
html:not(#pp0)[data-device="mobile"] body .t872-ov .g-sd:has(> .g-sd-emp:not([hidden])):not(:is(header *, footer *)) {
  box-shadow: none !important;
  background: transparent !important;
}

/*
 * Mobile pages-base is loaded after the shared dark palette and restores the
 * light search-result surfaces. Keep these overrides inside the search overlay.
 */
html[data-theme="dark"][data-device="mobile"] body .t872-ov .g-back,
html[data-theme="dark"][data-device="mobile"] body .t872-ov .g-sd-h b {
  background: #262d3a;
}

html[data-theme="dark"][data-device="mobile"] body .t872-ov .g-si {
  background: #262d3a;
}

html[data-theme="dark"][data-device="mobile"] body .t872-ov .g-si:hover,
html[data-theme="dark"][data-device="mobile"] body .t872-ov .g-si.is-on,
html[data-theme="dark"][data-device="mobile"] body .t872-ov .g-sd-all {
  background: #1f344e;
}

html[data-theme="dark"][data-device="mobile"] body .t872-ov .g-si .p b {
  background: #2e3f34;
}

html[data-theme="dark"][data-device="mobile"] body .t872-ov .g-sd-emp .g-pop > a {
  background: #262d3a;
  color: #f4f7fb;
}
