mark.smart-search-highlight {
  background: #ffe66d;
  color: inherit;
  padding: 0 .08em;
  border-radius: .18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
mark.smart-search-highlight.smart-search-current {
  background: #ffb84d;
  outline: 2px solid #c56a00;
  outline-offset: 1px;
}
.smart-hit-badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin: .35rem 0 .15rem;
  padding: .28rem .55rem;
  border-radius: 999px;
  background: #fff4b8;
  color: #5d4700;
  font-size: .82rem;
  font-weight: 700;
  border: 1px solid #efd76a;
}
.smart-highlight-toolbar {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .45rem;
  margin-left: auto;
  padding: .3rem .45rem;
  border-radius: .75rem;
  background: #fff9d9;
  border: 1px solid #eadb8a;
  color: #4d4100;
  font-size: .86rem;
}
.smart-highlight-toolbar button {
  min-height: 2rem;
  padding: .3rem .55rem;
  border-radius: .55rem;
  border: 1px solid #d3c36e;
  background: #fff;
  color: #203856;
  cursor: pointer;
}
.smart-highlight-toolbar button:hover { background: #fff3a8; }
.smart-highlight-toolbar .smart-hit-position { min-width: 4.7rem; text-align: center; font-weight: 700; }
.legal-results-header { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem; }
@media (max-width: 760px) {
  .smart-highlight-toolbar { width: 100%; margin-left: 0; justify-content: flex-start; }
}
