#historicalFundingPanel { margin-block: 16px; min-width: 0; }
#historicalFundingPanel summary { cursor: pointer; font-weight: 700; }
#historicalFundingPanel :is(p,span,strong,b,td,th,label,summary,button) { overflow-wrap: anywhere; white-space: normal; min-width: 0; }
#historicalFundingPanel :is(input,textarea,button) { max-width: 100%; }
#historicalFundingPanel table { table-layout: fixed; width: 100%; min-width: 0; margin-block: 12px; }
#historicalFundingPanel :is(td,th) { vertical-align: top; padding: 10px; }
#historicalFundingPanel input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; }
#historicalFundingPanel .hf-source { display: flex; gap: 12px; border: 1px solid #cbd5e1; border-radius: 10px; padding: 14px; margin-block: 10px; align-items: flex-start; }
#historicalFundingPanel .hf-source > span { display: grid; gap: 6px; }
#historicalFundingPanel .hf-source[hidden] { display: none; }
#hfSources { max-height: 480px; overflow-y: auto; padding-inline: 2px; }
#hfForm > label, #hfForm .form-grid > label { display: grid; gap: 8px; margin-block: 12px; }
#hfForm > label:has(input[type="checkbox"]) { display: flex; align-items: flex-start; gap: 10px; }
#hfForm textarea { display: block; width: 100%; min-height: 96px; resize: vertical; }
#hfForm input:not([type="checkbox"]) { width: 100%; }
#hfSummary { font-weight: 700; color: #135c4c; }
#historicalFundingPanel .hf-impact { border: 1px solid #b9d7ca; border-radius: 12px; padding: 16px; background: #f4faf7; margin-block: 16px; }
#historicalFundingPanel :is(.hf-journal-detail,.hf-company-detail) { border-top: 1px solid #cbd5e1; padding-block: 14px; margin-top: 10px; }
#hfCommit { border: 1px solid #80ad9b; border-radius: 10px; background: #f2faf6; padding: 16px; margin-block: 16px; }
#hfCommit input { display: block; width: 100%; }
#hfHistory .hf-event { border-top: 1px solid #cbd5e1; padding-block: 14px; }
@media (max-width: 760px) {
  #historicalFundingPanel :is(table,tbody,tr,td) { display: block; width: 100%; }
  #historicalFundingPanel thead { display: none; }
  #historicalFundingPanel tr { border: 1px solid #cbd5e1; border-radius: 8px; margin-block: 10px; padding: 8px; }
  #historicalFundingPanel td { border: 0; padding: 6px; }
  #historicalFundingPanel td::before { content: attr(data-label); display: block; color: #526078; font-size: .78rem; font-weight: 700; }
  #historicalFundingPanel .form-grid { grid-template-columns: minmax(0,1fr); }
}
