/* Search sits above the secondary pool tabs; results use the existing cards. */
.mobile-sticky-controls > .mobile-tools { margin-top: 0; }
.mobile-sticky-controls > #poolTabs { margin-top: 7px; }
.mobile-tools #mobileSearchBtn {
  color: #fff;
  background: var(--member-cta, #1677c8);
  border-color: var(--member-cta, #1677c8);
  font-weight: 700;
}
.mobile-tools #keywordInput::placeholder { color: var(--muted, #5f7890); }

body.mobile-search-open { overflow: hidden; }
.mobile-search-modal.hidden { display: none; }
.mobile-search-modal { position: fixed; inset: 0; z-index: 270; }
.mobile-search-mask {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: rgba(9,20,39,.58);
  touch-action: none;
}
.mobile-search-sheet {
  position: absolute;
  inset: auto 0 0;
  max-height: min(86dvh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: var(--bg, #f5f9fd);
  box-shadow: 0 -18px 50px rgba(9,20,39,.24);
}
.mobile-search-head {
  min-height: 60px;
  padding: 8px 16px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line, #d7e5f1);
  background: var(--panel, #fff);
}
.mobile-search-head h2 {
  min-width: 0;
  margin: 0;
  color: var(--text, #17324b);
  font-size: 18px;
  font-weight: 800;
}
.mobile-search-head button {
  min-width: 52px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid var(--line, #d7e5f1);
  border-radius: 9px;
  color: var(--member-cta, #1677c8);
  background: var(--v23-soft, #f2f7fc);
  font-size: 13px;
  font-weight: 700;
}
.mobile-search-results {
  min-height: 0;
  padding: 12px 12px calc(18px + env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-search-results .search-action-card { margin: 0 0 10px; }
.mobile-search-results .empty-card { margin: 0; }
html.hscan-v23-night .mobile-search-results .search-action-card {
  color: var(--text);
  background: var(--panel);
  border-color: var(--line);
}
html.hscan-v23-night .mobile-search-results .search-action-card strong,
html.hscan-v23-night .mobile-search-results .search-symbol { color: var(--text); }
