:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f6f6;
  color: #172127;
}

body {
  margin: 0;
}

html.is-suite-embedded [data-openrewi-suite-header] {
  display: none;
}

.layout {
  padding: 18px;
}

.search-panel {
  display: grid;
  gap: 14px;
}

.filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
}

input, select, button {
  font: inherit;
  border: 1px solid #c5d0d5;
  border-radius: 6px;
  padding: 9px 10px;
  background: #ffffff;
}

button {
  background: #eef3f5;
  cursor: pointer;
}

.actions, .pager {
  display: flex;
  align-items: center;
  gap: 8px;
}

#meta {
  color: #63727a;
}

.results-detail {
  display: grid;
  grid-template-columns: minmax(300px, 38vw) 1fr;
  gap: 14px;
  min-height: 58vh;
}

.results, .detail {
  background: #ffffff;
  border: 1px solid #d9e0e4;
  border-radius: 8px;
  padding: 12px;
  overflow: auto;
}

.result {
  display: grid;
  gap: 4px;
  width: 100%;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e5eaed;
  border-radius: 0;
  background: transparent;
  padding: 10px 4px;
}

.result.active {
  background: #e3eef1;
}

.result strong {
  font-size: 14px;
}

.result small, .meta-line {
  color: #5e6d75;
}

.matches {
  margin-top: 6px;
  color: #3e4c53;
}

.detail h1 {
  margin: 0 0 8px;
  font-size: 22px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.detail-grid span {
  padding: 8px;
  background: #f4f7f8;
  border-radius: 6px;
}

.content-tabs {
  display: flex;
  gap: 8px;
  margin: 12px 0;
}

.content {
  border-top: 1px solid #d9e0e4;
  padding-top: 12px;
}

pre {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

mark {
  background: #fff1a8;
}

@media (max-width: 980px) {
  .filters, .results-detail, .detail-grid {
    grid-template-columns: 1fr;
  }
}
