.pal-habitat-card .filter-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
}

.pal-habitat-search {
  position: relative;
  display: flex;
  min-height: 34px;
  align-items: center;
  padding: 0 9px 0 32px;
  color: #7cb5c2;
  background: rgb(5 17 23 / 92%);
  border: 1px solid #4f747d;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.pal-habitat-search:focus-within {
  border-color: #72dce8;
  box-shadow: inset 2px 0 #19dfed, 0 0 8px rgb(25 223 237 / 10%);
}

.pal-habitat-search .map-search-icon {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 11px;
  height: 11px;
  transform: translateY(-50%);
}

.pal-habitat-search input {
  width: 100%;
  min-width: 0;
  color: #e9fbfd;
  font: inherit;
  font-size: 11px;
  background: transparent;
  border: 0;
  outline: 0;
}

.pal-habitat-search input::placeholder { color: #6e929f; }

.pal-habitat-all {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 9px;
  color: #c8e3e8;
  font-size: 10.5px;
  font-weight: 750;
  text-align: left;
  background: linear-gradient(90deg, rgb(20 44 52 / 88%), rgb(8 21 27 / 88%));
  border: 1px solid #4b6870;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.pal-habitat-all strong {
  color: #79dfe9;
  font-size: 8px;
  letter-spacing: .025em;
}

.pal-habitat-all:hover,
.pal-habitat-all:focus-visible {
  color: #fff;
  border-color: #9debf3;
  outline: 0;
}

.pal-habitat-all.is-active {
  color: #fff;
  background: linear-gradient(90deg, #077eaa, #075675);
  border-color: #7be9f7;
}

.pal-habitat-grid {
  display: grid;
  max-height: 348px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 1px 3px 3px 1px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #6a9ca7 #121e23;
  scrollbar-width: thin;
}

.pal-habitat-grid .filter-option-shell { min-width: 0; }

.pal-habitat-empty {
  margin: 4px 2px 1px;
  color: #7397a3;
  font-size: 10px;
  line-height: 1.4;
}

.source-notice {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 11px 12px;
  color: #8db2c0;
  font-size: 11px;
  line-height: 1.4;
  background: rgb(5 20 29 / 65%);
  border-left: 2px solid var(--amber);
}

.source-notice strong { color: var(--amber); }
.source-notice a { color: var(--cyan-soft); }

