/* Search presentation ported from mobile-v2. */
body.search-v2 .app.app--search {
  background: #F4F7FD;
}
body.search-v2 .app.app--search .app__main {
  padding-bottom: 0;
}

body.search-v2 .search-page {
  min-height: 100vh;
  background-color: #F4F7FD;
}
body.search-v2 .search-page button, body.search-v2 .search-page input {
  font: inherit;
}
body.search-v2 .search-page button {
  border: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
body.search-v2 .search-page button:focus-visible {
  outline: 0.125rem solid #306af4;
  outline-offset: 0.125rem;
}
body.search-v2 .search-page__content {
  padding: 0.9375rem 0.9375rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
}

body.search-v2 .search-form {
  display: flex;
  align-items: center;
  height: 2.5rem;
  border-radius: 0.625rem;
  background: #fff;
}
body.search-v2 .search-form > img {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-left: 0.6875rem;
  object-fit: contain;
}
body.search-v2 .search-form input {
  width: 0;
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 0.5625rem;
  border: 0;
  background: transparent;
  color: #333;
  font-size: 0.875rem;
}
body.search-v2 .search-form input::placeholder {
  color: #aaa;
}
body.search-v2 .search-form button {
  align-self: stretch;
  flex-shrink: 0;
  width: 3.9375rem;
  padding: 0;
  border-radius: 0.625rem;
  background: #306af4;
  color: #fff;
  font-size: 0.875rem;
}

body.search-v2 .search-history {
  margin-top: 0.625rem;
  padding: 0.8125rem 1.25rem 1.125rem;
  border-radius: 0.625rem;
  background: #fff;
}
body.search-v2 .search-history__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 1.5625rem;
}
body.search-v2 .search-history h2 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: #333;
}
body.search-v2 .search-history__clear {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
  padding: 0.3125rem 0;
  background: none;
  color: #555;
  font-size: 0.875rem !important;
}
body.search-v2 .search-history__clear img {
  width: 0.9375rem;
  height: 0.9375rem;
  object-fit: contain;
  opacity: 0.55;
}
body.search-v2 .search-history__clear:disabled {
  opacity: 0.4;
  cursor: default;
}
body.search-v2 .search-history__list {
  margin: 0;
  padding: 0;
  list-style: none;
}
body.search-v2 .search-history li {
  display: flex;
  align-items: center;
  min-height: 2.4375rem;
  border-bottom: 0.0625rem solid #f3f4f6;
}
body.search-v2 .search-history__keyword {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  gap: 0.25rem;
  padding: 0.625rem 0;
  text-align: left;
  background: none;
  color: #333;
  font-size: 0.75rem !important;
}
body.search-v2 .search-history__keyword img {
  flex-shrink: 0;
  width: 0.75rem;
  height: 0.75rem;
  object-fit: contain;
  filter: brightness(0);
}
body.search-v2 .search-history__keyword span {
  overflow-wrap: anywhere;
}
body.search-v2 .search-history__delete {
  flex-shrink: 0;
  padding: 0.625rem 0 0.625rem 0.75rem;
  background: none;
  color: #aaa;
  font-size: 0.75rem !important;
}
body.search-v2 .search-history__empty {
  margin: 1.5rem 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #999;
}
body.search-v2 .search-topbar { position: static; inset: auto; z-index: auto; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem; align-items: center; padding: env(safe-area-inset-top, 0px) .5rem 0; min-height: calc(2.75rem + env(safe-area-inset-top, 0px)); background: #fff; }
body.search-v2 .search-topbar__title { margin: 0; color: #111; font-size: 1rem; font-weight: 500; line-height: 1.5; text-align: center; }
body.search-v2 .search-back { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; padding: 0; background: none; }
body.search-v2 .search-back img { width: 1rem; height: 1rem; object-fit: contain; filter: brightness(0); }
body.search-v2 .search-form { flex: 1; min-width: 0; }
body.search-v2 .search-summary { margin: .25rem 0 .75rem; color: #999; font-size: .75rem; overflow-wrap: anywhere; }
body.search-v2 .search-tabs { margin-top: .75rem; }
body.search-v2 .search-companies { width: 100%; margin-bottom: .75rem; border-radius: .625rem; background: #fff; }
body.search-v2 .search-company { display: flex; align-items: flex-start; gap: .75rem; padding: 1rem; }
body.search-v2 .search-company__logo { flex-shrink: 0; width: 3rem; height: 3rem; border-radius: .5rem; object-fit: contain; }
body.search-v2 .search-company__info { flex: 1; min-width: 0; }
body.search-v2 .search-company h2 { display: flex; align-items: center; gap: .375rem; font-size: .875rem; line-height: 1.5; }
body.search-v2 .search-company h2 img { width: .875rem; height: .875rem; object-fit: contain; }
body.search-v2 .search-company p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: .375rem; color: #999; font-size: .75rem; line-height: 1.5; }
body.search-v2 .search-labels { display: flex; flex-wrap: wrap; gap: .625rem; margin: 0; padding: 1rem; list-style: none; border-radius: .75rem; background: #fff; }
body.search-v2 .search-labels:empty { display: none; }
body.search-v2 .search-labels a { display: block; padding: .5rem .75rem; border-radius: 999px; background: #edf3ff; color: #3078f5; font-size: .8125rem; overflow-wrap: anywhere; }

body.search-v2 .search-highlight { color: #1377ff; font-style: normal; background: none; }

body.search-v2 .home-article__summary {
  margin: .375rem 0 0;
  overflow: hidden;
  color: #888;
  font-size: calc(.875rem - 2px);
  line-height: 1.5;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.search-v2 #loading-tips {
  font-size: .75rem;
}

body.search-v2 .search-history__list li:only-child {
  border-bottom: 0;
}
