/* 认知库：留白优先的单列笔记布局 */
.cognition-cat { width: 28px; height: 28px; }
.cognition-page { width: min(920px, calc(100% - 64px)); margin: 0 auto; padding: 52px 0 80px; }
.cognition-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.cognition-head h1 { margin: 0; font-size: 34px; line-height: 1.15; color: var(--text-strong); }
.cognition-head p { margin: 12px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.7; max-width: 620px; }
.cognition-summary { margin-top: 28px; padding-bottom: 20px; color: var(--text-secondary); font-size: 13px; border-bottom: 1px solid var(--border-subtle); }
.cognition-summary b { color: var(--text-strong); font-size: 15px; }
.cognition-summary span { margin: 0 7px; color: var(--text-muted); }
.cognition-toolbar { display: grid; grid-template-columns: minmax(260px, 1fr) 150px 140px; gap: 10px; margin: 18px 0 14px; }
.cognition-toolbar select, .cognition-search { height: 42px; border: 1px solid var(--border-subtle); border-radius: 10px; background: var(--surface-solid); color: var(--text-primary); }
.cognition-toolbar select { padding: 0 12px; font: inherit; font-size: 13px; }
.cognition-search { display: flex; align-items: center; gap: 10px; padding: 0 13px; }
.cognition-search svg { flex: none; color: var(--text-muted); }
.cognition-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--text-primary); font: inherit; }
.cognition-list { border-top: 1px solid var(--border-subtle); }
.cognition-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; padding: 24px 8px 23px; border-bottom: 1px solid var(--border-subtle); cursor: pointer; transition: padding .18s ease, background .18s ease; }
.cognition-row:hover, .cognition-row:focus-visible { padding-left: 16px; padding-right: 16px; background: #fafafa; outline: none; }
.cognition-row.muted { opacity: .58; }
.cognition-labels { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; color: var(--text-muted); font-size: 12px; }
.cognition-labels > span { padding: 3px 8px; border: 1px solid var(--border-subtle); border-radius: 999px; background: #fff; }
.cognition-labels .scope-badge { color: #111; border-color: #d5d5d5; font-weight: 650; }
.scope-industry { border-style: dashed !important; }
.scope-company { background: #111 !important; border-color: #111 !important; color: #fff !important; }
.cognition-row h2 { margin: 11px 0 7px; color: var(--text-strong); font-size: 17px; line-height: 1.45; }
.cognition-row p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.7; }
.cognition-row-side { min-width: 92px; display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; color: var(--text-muted); font-size: 11px; }
.row-arrow { color: #111; font-size: 19px; margin-top: 2px; }
.cognition-empty { min-height: 220px; display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--text-muted); font-size: 14px; }
.drawer-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.2); }
.cognition-drawer { position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(480px, 92vw); display: flex; flex-direction: column; background: #fff; box-shadow: -18px 0 48px rgba(0,0,0,.12); animation: drawerIn .22s ease both; }
.drawer-head { height: 68px; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border-subtle); font-weight: 650; }
.drawer-body { flex: 1; overflow-y: auto; padding: 34px 30px; }
.drawer-body h2 { margin: 20px 0 32px; color: #111; font-size: 25px; line-height: 1.42; }
.drawer-section { margin: 0 0 30px; }
.drawer-section label { display: block; margin-bottom: 10px; color: var(--text-muted); font-size: 12px; }
.drawer-section p { margin: 0; color: var(--text-primary); font-size: 14px; line-height: 1.9; }
.drawer-meta { color: var(--text-muted); font-size: 12px; }
.drawer-foot { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--border-subtle); }
.drawer-foot > div { display: flex; gap: 8px; }
.inject-control { display: flex; align-items: center; gap: 9px; color: var(--text-secondary); font-size: 13px; cursor: pointer; }
.cognition-editor-content { min-height: 150px; }
.field small { color: var(--text-muted); font-size: 11px; line-height: 1.5; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@media (max-width: 760px) {
  .cognition-page { width: calc(100% - 32px); padding-top: 30px; }
  .cognition-head { align-items: flex-start; flex-direction: column; }
  .cognition-toolbar { grid-template-columns: 1fr 1fr; }
  .cognition-search { grid-column: 1 / -1; }
  .cognition-row { grid-template-columns: 1fr; gap: 12px; }
  .cognition-row-side { flex-direction: row; align-items: center; justify-content: flex-start; }
  .row-arrow { margin: 0 0 0 auto; }
}
