.compendium-layout { display: grid; grid-template-columns: 320px 1fr; gap: 1rem; align-items: start; }
@media (max-width: 920px) { .compendium-layout { grid-template-columns: 1fr; } }
.filter-panel { position: sticky; top: 5.5rem; }
@media (max-width: 920px) { .filter-panel { position: static; } }
.search-row { display: grid; gap: .65rem; }
.check-list { display: grid; gap: .35rem; margin-top: .65rem; }
.check-list label { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .35rem .4rem; border: 1px solid transparent; border-radius: 10px; cursor: pointer; }
.check-list label:hover { border-color: var(--line); background: rgba(255,255,255,.03); }
.check-list input { width: auto; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .75rem; }
.compendium-card { position: relative; min-height: 185px; transition: transform .12s ease, border-color .12s ease; cursor: pointer; }
.compendium-card:hover, .compendium-card:focus-within { transform: translateY(-2px); border-color: var(--accent); }
.compendium-card h3 { align-items: flex-start; }
.compendium-card .source { color: var(--accent); font-size: .78rem; font-weight: 800; }
.card-summary { color: var(--muted); margin-bottom: .7rem; }
.detail-drawer { position: fixed; right: 1rem; bottom: 1rem; width: min(520px, calc(100vw - 2rem)); max-height: min(720px, calc(100vh - 2rem)); overflow: auto; z-index: 40; display: none; border: 1px solid var(--accent); border-radius: 18px; background: rgba(18,14,24,.98); box-shadow: 0 24px 80px rgba(0,0,0,.55); padding: 1rem; }
.detail-drawer.open { display: block; }
.detail-header { display: flex; align-items: start; justify-content: space-between; gap: .75rem; }
.detail-header button { width: auto; padding: .45rem .7rem; }
.detail-grid { display: grid; gap: .5rem; margin-top: .75rem; }
.detail-row { border-top: 1px solid var(--line); padding-top: .5rem; }
.detail-row strong { display: block; color: var(--accent); margin-bottom: .2rem; }
.tip { border: 1px solid rgba(212,175,55,.22); background: rgba(212,175,55,.08); border-radius: 12px; padding: .75rem; }
.result-meta { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
.empty-state { padding: 2rem; text-align: center; border: 1px dashed var(--line); border-radius: 16px; color: var(--muted); }

.detail-row span { white-space: pre-wrap; }
