.reference-home .inline-search-results { min-width: 0; margin-top: 18px; }
.reference-home .inline-search-header,
.reference-home .inline-search-heading { display: flex; align-items: center; gap: 7px; min-width: 0; }
.reference-home .inline-search-header { justify-content: space-between; min-height: 28px; margin-bottom: 10px; }
.reference-home .inline-search-heading h2 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.reference-home .inline-search-heading .iconfont { color: #4a90e2; font-size: 16px; }
.reference-home .resource-count,
.reference-home .inline-search-close { color: var(--theme-text-secondary); font-size: 12px; white-space: nowrap; }
.reference-home .inline-search-close:hover { color: var(--theme-primary); }
.reference-home .inline-search-categories { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; overflow-x: auto; scrollbar-width: thin; }
.reference-home .inline-search-category-label { flex: 0 0 auto; margin-right: 4px; color: var(--theme-text-secondary); font-size: 12px; }
.reference-home .inline-search-categories .resource-filter-option { flex: 0 0 auto; padding: 3px 9px; border-radius: 6px; color: var(--theme-text-secondary); font-size: 12px; line-height: 1.7; white-space: nowrap; }
.reference-home .inline-search-categories .resource-filter-option:hover { color: var(--theme-primary); background: var(--theme-surface); }
.reference-home .inline-search-categories .resource-filter-option.active { background: var(--theme-primary-gradient); color: #fff; }
.reference-home .resource-result-list { display: grid; gap: 10px; }
.reference-home .resource-result-item { display: flex; align-items: center; gap: 14px; min-width: 0; min-height: 86px; padding: 16px; border-radius: 8px; background: var(--theme-surface); }
.reference-home .resource-result-body { flex: 1; min-width: 0; }
.reference-home .resource-result-title { display: block; color: var(--theme-text); font-size: 15px; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.reference-home .resource-result-title:hover { color: var(--theme-primary); }
.reference-home .resource-result-title mark { padding: 0; background: #fff0df; color: #e45d31; }
.reference-home .resource-result-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; color: var(--theme-text-secondary); font-size: 11px; line-height: 1.6; }
.reference-home .resource-type-tag { flex-shrink: 0; padding: 2px 10px; border-radius: 12px; background: var(--theme-primary); color: #fff; font-size: 11px; white-space: nowrap; }
.reference-home .inline-search-date,
.reference-home .inline-search-code { padding: 2px 9px; border-radius: 12px; background: var(--theme-muted-background); color: var(--theme-text-secondary); }
.reference-home .resource-result-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.reference-home .resource-visit { display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 35px; padding: 7px 16px; border: 0; border-radius: 18px; background: var(--theme-primary-gradient); color: #fff; font: inherit; font-size: 12px; font-weight: 600; white-space: nowrap; cursor: pointer; box-shadow: 0 2px 5px #ff6b6b33; }
.reference-home .resource-visit:hover { opacity: .9; }
.reference-home .resource-copy { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; padding: 0; border: 1px solid var(--theme-border); border-radius: 6px; background: var(--theme-surface); color: var(--theme-text-secondary); cursor: pointer; }
.reference-home .resource-copy:hover { color: var(--theme-primary); border-color: var(--theme-primary); }
.reference-home .resource-empty { margin: 0; padding: 34px 16px; border-radius: 8px; background: var(--theme-surface); color: var(--theme-text-secondary); font-size: 13px; text-align: center; }
.reference-home .resource-pagination { display: flex; justify-content: center; padding: 16px 0 4px; }
.reference-home .resource-copy:focus-visible,
.reference-home .resource-visit:focus-visible { outline: 2px solid var(--theme-primary); outline-offset: 2px; }
.reference-home[data-site-theme="dark"] .resource-result-title mark { background: #583b38; color: #ffb68a; }
@media (max-width: 768px) {
    .reference-home .inline-search-results { margin-top: 18px; }
    .reference-home .inline-search-heading h2 { font-size: 14px; }
    .reference-home .resource-count,
    .reference-home .inline-search-close { font-size: 11px; }
    .reference-home .resource-result-item { gap: 8px; min-height: 72px; padding: 12px; }
    .reference-home .resource-result-title { font-size: 12px; }
    .reference-home .resource-result-meta { gap: 4px; margin-top: 6px; font-size: 10px; }
    .reference-home .resource-type-tag { padding: 1px 7px; font-size: 10px; }
    .reference-home .inline-search-date,
    .reference-home .inline-search-code { padding: 1px 6px; }
    .reference-home .resource-result-actions { flex-direction: column-reverse; gap: 5px; }
    .reference-home .resource-visit { min-height: 31px; padding: 5px 11px; font-size: 11px; }
    .reference-home .resource-copy { flex-basis: 24px; width: 24px; height: 24px; }
}
