/* Keyword results. Only applies while #tieredResults is in use. */
.workbench-results.is-tiered > #searchResults,
.workbench-results.is-tiered > .search-pagination-row { display: none; }
.tiered-results { display: grid; gap: 28px; }
.tiered-results[hidden] { display: none; }
.tiered-primary,
.tiered-mentions { min-width: 0; }
.tiered-mentions > summary { padding: 0 0 10px; margin: 0 0 12px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.tiered-mentions > summary small { margin-inline-start: 10px; font-size: 12px; color: var(--muted); }
#tieredResults .op-topics--matched { display: block; overflow: visible; overflow-wrap: anywhere; }
#tieredResults .op-topics--matched > .op-topics-group { overflow: visible; white-space: normal; }
.op-topics--matched .op-topics-label { margin-inline-end: 4px; }
.op-topics-group + .op-topics-group { margin-inline-start: 12px; }
.op-match-term { color: var(--accent); background: rgb(var(--accent-rgb) / 9%); font-weight: 600; padding-inline: 0.15em; border-radius: 2px; }
.tiered-list-state { padding: 14px 0 0; font-size: 13px; color: var(--muted); }
.tiered-list-state button,
.tiered-suggest button { padding: 0 4px; margin-left: 6px; border: 0; background: none; color: var(--accent); font-size: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tiered-more { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 44px; margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--accent); font-size: 14px; cursor: pointer; }
.tiered-more:hover { background: var(--soft); }
.tiered-more:disabled { cursor: progress; opacity: 0.7; }
.tiered-notice,
.tiered-suggest { font-size: 13px; color: var(--muted); }
.tiered-number-links { display: flex; gap: 8px 16px; flex-wrap: wrap; font-size: 13px; }
.tiered-number-scope { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.empty-related .tiered-suggest { margin-bottom: 20px; }
.empty-related .tiered-keyword { margin-left: 10px; }
@media (max-width: 800px) {
  .tiered-results { gap: 16px; }
}

.tiered-history { min-width: 0; padding-top: 16px; border-top: 1px solid var(--line); }
.tiered-history > h2 { margin: 0 0 12px; font-size: 17px; font-weight: 500; }
