.trp-search-form{
  display:flex; gap:.5rem; margin:1rem 0; flex-wrap:wrap; align-items:center;
}
.trp-search-form .trp-input{
  flex:1 1 320px; padding:0 1rem; height:44px; border-radius:9999px;
  border:2px solid #8fcae7; background:#fff;
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  outline:none; transition:border-color .15s ease, box-shadow .15s ease;
  font-size:1rem; line-height:1.2;
}
.trp-search-form .trp-input::placeholder{ color:#9aa3af; }
.trp-search-form .trp-input:focus{
  border-color:#8fcae7; box-shadow:0 0 0 3px rgba(143,202,231,.3), inset 0 1px 2px rgba(0,0,0,.06);
}
.trp-search-form .trp-btn,
#trp-load-more{
  height:44px; padding:0 1.2rem; border-radius:9999px; border:none;
  background:#006699; color:#fff; font-weight:600; cursor:pointer;
  transition:background .15s ease, transform .1s ease;
  display:inline-flex; align-items:center; justify-content:center;
}
.trp-search-form .trp-btn:hover, #trp-load-more:hover{ background:#005580; }
.trp-search-form .trp-btn:active, #trp-load-more:active{ transform:scale(0.97); }
#trp-load-more:disabled{ background:#9ca3af; cursor:default; }
.trp-load-more-wrap{ margin:1.5rem 0; display:flex; justify-content:center; width:100%; }

.trp-select{
  height:44px; padding:0 1.2rem; border-radius:9999px; border:none;
  background:#006699; color:#fff; font-weight:600; cursor:pointer;
  display:flex; align-items:center; transition:background .15s ease;
  appearance:none; -webkit-appearance:none; -moz-appearance:none; line-height:1.2;
}
.trp-select:hover, .trp-select:focus{ background:#005580; outline:none; }

.trp-filters-bar{ display:flex; gap:.5rem; align-items:center; margin:.25rem 0 .5rem; flex-wrap:wrap; }
.trp-select--sm{ height:38px; padding:0 .9rem; font-size:.95rem; }

.trp-ms{ position:relative; display:inline-block; }
.trp-ms__button{ position:relative; padding-right:2rem; }
.trp-ms__caret{ display:inline-block; margin-left:.5rem; border: solid #fff; border-width: 0 2px 2px 0; padding:3px; transform: rotate(45deg); }

.trp-ms__panel{
  position:absolute; top:calc(100% + 6px); left:0; z-index:9999;
  min-width: 240px; max-width: 320px; max-height: 320px; overflow:auto;
  background:#fff; color:#111827; border:1px solid #e5e7eb; border-radius:12px;
  box-shadow:0 12px 20px rgba(0,0,0,.12), 0 4px 8px rgba(0,0,0,.06);
  padding:.5rem; display:none;
}
.trp-ms--open .trp-ms__panel{ display:block; }
.trp-ms__search{ margin-bottom:.4rem; }
.trp-ms__search-input{
  width:100%; padding:.45rem .6rem; border:1px solid #e5e7eb; border-radius:8px; outline:none;
}
.trp-ms__search-input:focus{ border-color:#8fcae7; box-shadow:0 0 0 3px rgba(143,202,231,.25); }
.trp-ms__list{ display:flex; flex-direction:column; gap:.2rem; margin:.4rem 0; }
.trp-ms__item{ display:flex; align-items:center; gap:.5rem; padding:.25rem .35rem; border-radius:6px; }
.trp-ms__item:hover{ background:#f3f4f6; }
.trp-ms__item input{ accent-color:#006699; }
.trp-ms__actions{ display:flex; gap:.5rem; justify-content:flex-end; margin-top:.35rem; }
.trp-btn--ghost{ background:#f3f4f6; color:#111827; }
.trp-btn--ghost:hover{ background:#e5e7eb; }

.trp-results{ list-style:none; padding:0; margin:1rem 0; display:grid; gap:1rem; }
.trp-result-title{ font-weight:600; font-size:1.05rem; text-decoration:none; }
.trp-result-excerpt{ margin:.25rem 0; line-height:1.45; }
.trp-result-meta{ color:#666; }

.trp-hit{ padding:0 2px; }
.trp-results-summary + .trp-search-form{ margin-top:.5rem; margin-bottom:.5rem; }