.knowledge-check { display:flex; align-items:flex-start; gap:10px; }
.knowledge-check input { width:auto; margin-top:5px; }
.knowledge-section { margin:20px 0; border:1px solid var(--line); border-radius:8px; padding:18px; }
.knowledge-section summary { cursor:pointer; font-size:17px; font-weight:700; margin-bottom:14px; }
.knowledge-candidate { white-space:pre-wrap; overflow-wrap:anywhere; padding:12px; background:var(--canvas); border-left:3px solid var(--active); font-weight:400; }
.knowledge-section .help { overflow-wrap:anywhere; }
.knowledge-area-links { margin:16px 0; padding:14px; border:1px solid #bbf7d0; border-radius:8px; background:#f0fdf4; }
.knowledge-area-links legend { font-weight:800; color:#166534; }
.knowledge-area-group { margin:10px 0; padding-top:8px; border-top:1px solid #dcfce7; }
.knowledge-area-group:first-of-type { border-top:0; }
.knowledge-area-group strong,.knowledge-area-group small { display:block; }
.knowledge-area-group small { margin:2px 0 7px; color:var(--muted); }
.knowledge-topic-link { display:flex; gap:9px; align-items:flex-start; margin:5px 0; font-weight:500; }
.knowledge-topic-link input { width:auto; margin-top:4px; }
.review-readiness { margin:18px 0; padding:14px 16px; border-left:4px solid #2563eb; border-radius:7px; background:#eff6ff; }
.review-readiness p { margin:5px 0 0; }
.topic-evidence-link { margin-top:10px; }
.topic-specific-evidence { margin-top:10px; padding:10px; border:1px solid var(--line); border-radius:7px; }
.topic-specific-evidence summary { font-size:14px; margin:0 0 8px; }
.report-review-filters { align-items:end; }
.report-review-search { grid-column:1 / -1; }
.report-review-list { display:grid; gap:10px; margin:0 0 18px; }
.report-review-card { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:center; padding:14px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.report-review-card.current { border:2px solid #166534; background:#f0fdf4; }
.report-review-card strong,.report-review-card small { display:block; overflow-wrap:anywhere; }
.report-review-card small { margin-top:4px; color:var(--muted); }
.report-review-card .button { white-space:nowrap; }
.report-identity { position:sticky; top:8px; z-index:5; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:8px 16px; align-items:center; margin:-6px 0 20px; padding:14px 16px; border:2px solid #166534; border-radius:10px; background:#f0fdf4; box-shadow:0 5px 18px rgba(15,23,42,.12); }
.report-identity strong,.report-identity small { display:block; overflow-wrap:anywhere; }
.report-identity .eyebrow { display:block; margin:0 0 3px; color:#166534; }
.report-identity small { margin-top:4px; color:var(--muted); }
.report-save-state { justify-self:end; padding:7px 10px; border-radius:999px; background:#dcfce7; color:#166534; font-weight:800; white-space:nowrap; }
.report-save-state.pending { background:#fef3c7; color:#92400e; }
.report-save-state.error { background:#fee2e2; color:#991b1b; }
.report-identity-warning { grid-column:1 / -1; margin:3px 0 0; padding:8px 10px; border-left:4px solid #b45309; background:#fffbeb; color:#78350f; }
@media (max-width:700px) {
  .report-review-card,.report-identity { grid-template-columns:1fr; }
  .report-review-card .button,.report-save-state { justify-self:stretch; text-align:center; }
}
button:disabled { opacity:.55; cursor:wait; }
.source-filter-grid { padding:12px 12px 0; border:1px solid #c7dfcb; border-radius:8px; background:#f8fcf8; }
#knowledgeCreateStatus { min-height:1.5em; margin-top:10px; }
#knowledgeActivate.activation-success { border-color:#166534; background:#166534; color:#fff; box-shadow:0 0 0 3px rgba(22,101,52,.16); }
#knowledgeSaveDraft.action-success { border-color:#1d4ed8; background:#1d4ed8; color:#fff; box-shadow:0 0 0 3px rgba(29,78,216,.14); }
#knowledgeArchive.action-success { border-color:#475569; background:#475569; color:#fff; box-shadow:0 0 0 3px rgba(71,85,105,.16); }
#knowledgeActivate.action-failed,#knowledgeSaveDraft.action-failed,#knowledgeArchive.action-failed { border-color:#b91c1c; background:#b91c1c; color:#fff; box-shadow:0 0 0 3px rgba(185,28,28,.14); }
[hidden] { display:none !important; }
