.lm-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(3, 42, 82, 0.5);
  backdrop-filter: blur(6px);
}

.lm-search-overlay[hidden] {
  display: none;
}

.lm-search-modal {
  max-width: 720px;
  margin: clamp(60px, 12vh, 140px) auto 0;
  padding: 0 20px;
  animation: lmDrawer 0.2s ease;
}

.lm-search-modal__inner {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 40px 90px -40px rgba(3, 42, 82, 0.6);
  overflow: hidden;
}

.lm-search-modal__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px;
  border-bottom: 1px solid #eef2f6;
}

.lm-search-modal__bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 17px;
  color: #15212e;
  background: transparent;
  font-family: inherit;
}

#lm-search-close {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #f4f7fa;
  border: none;
  cursor: pointer;
  color: #5b7185;
  font-size: 16px;
}

.lm-search-modal__results {
  max-height: min(52vh, 420px);
  overflow-y: auto;
}

.lm-search-modal__hint {
  padding: 30px 22px;
  text-align: center;
  font-size: 14px;
  color: #8aa0b3;
  margin: 0;
}

.lm-search-results-list {
  padding: 8px;
}

.lm-search-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  padding: 14px 16px;
  border-radius: 11px;
  transition: background 0.13s;
}

.lm-search-result:hover {
  background: #f4f7fa;
}

.lm-search-result__left {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.lm-search-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.lm-search-thumb {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  overflow: hidden;
  background: #e3edf6;
}

.lm-search-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lm-search-thumb--placeholder {
  background-image: repeating-linear-gradient(
    135deg,
    rgba(10, 77, 140, 0.1) 0,
    rgba(10, 77, 140, 0.1) 1.5px,
    transparent 1.5px,
    transparent 7px
  );
}

.lm-search-result__text {
  min-width: 0;
}

.lm-search-result__title {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #15212e;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lm-search-result__subtitle {
  display: block;
  font-size: 12.5px;
  color: #8aa0b3;
  font-weight: 300;
}

.lm-search-result__arrow {
  color: #c2d2e0;
  font-size: 15px;
  flex-shrink: 0;
}
