.npc-editor-panel-history { grid-template-columns:minmax(0, 1fr) !important; }
.npc-event-history-shell { display:grid; gap:12px; width:100%; }
.npc-event-history-section { padding:14px; border:1px solid #444; border-radius:8px; background:#252525; }
.npc-event-history-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:10px; }
.npc-event-history-heading h3 { margin:0 0 3px; color:#f2bd7f; font-size:1rem; }
.npc-event-history-heading p { margin:0; color:#aaa; font-size:.82rem; }
.npc-event-history-label { display:block; margin:10px 0 5px; color:#f2bd7f; font-size:.82rem; font-weight:700; }
.npc-event-recipient-row { display:flex; flex-wrap:wrap; gap:6px; min-height:30px; }
.npc-event-recipient-chip { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border:1px solid #6b4a2f; border-radius:999px; background:#39291f; color:#f4dfca; font-size:.8rem; }
.npc-event-recipient-chip button { padding:0; border:0; background:transparent; color:#f4dfca; cursor:pointer; font-size:1rem; line-height:1; }
.npc-event-recipient-search,
.npc-event-history-text { width:100%; border:1px solid #4a4a4a; border-radius:6px; background:#1d1d1d; color:#eee; }
.npc-event-recipient-search { padding:8px 10px; }
.npc-event-history-text { min-height:110px; padding:10px; resize:vertical; }
.npc-event-search-results { display:grid; gap:4px; margin-top:5px; padding:6px; border:1px solid #444; border-radius:6px; background:#1d1d1d; }
.npc-event-search-results[hidden] { display:none; }
.npc-event-search-result { padding:7px 9px; border:1px solid transparent; border-radius:5px; background:#2b2b2b; color:#eee; cursor:pointer; text-align:left; }
.npc-event-search-result:hover { border-color:rgb(242,124,17); }
.npc-event-history-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:9px; }
.npc-event-history-status { color:#aaa; font-size:.82rem; }
.npc-event-history-status.is-error,
.npc-event-history-empty.is-error { color:#ef8f96; }
.npc-event-history-filterbar { display:flex; align-items:flex-end; flex-wrap:wrap; gap:8px 14px; margin-bottom:10px; }
.npc-event-history-filterbar label { display:grid; gap:4px; color:#f2bd7f; font-size:.78rem; font-weight:700; }
.npc-event-history-filterbar select { min-width:220px; padding:7px 9px; border:1px solid #555; border-radius:5px; background:#1d1d1d; color:#eee; }
.npc-event-history-filter-note { color:#929dab; font-size:.74rem; overflow-wrap:anywhere; }
.npc-event-history-list { max-height:440px; overflow:auto; }
.npc-event-history-table-wrap { overflow-x:auto; border:1px solid #3f3f3f; border-radius:6px; background:#1d1d1d; }
.npc-event-history-table { width:100%; min-width:900px; border-collapse:collapse; color:#e5e5e5; font-size:.78rem; }
.npc-event-history-table th { position:sticky; top:0; z-index:1; padding:9px 10px; border-bottom:1px solid #555; background:#292929; color:rgb(242,124,17); text-align:left; white-space:nowrap; }
.npc-event-history-table td { padding:9px 10px; border-bottom:1px solid #363636; vertical-align:top; line-height:1.35; }
.npc-event-history-table tbody tr:last-child td { border-bottom:0; }
.npc-event-history-table tbody tr:hover td { background:rgba(242,124,17,.08); }
.npc-event-history-table th:nth-child(2),
.npc-event-history-table td:nth-child(2) { min-width:320px; }
.npc-event-history-table th:nth-child(3),
.npc-event-history-table td:nth-child(3) { min-width:220px; }
.npc-event-history-type { color:#f2bd7f; font-weight:700; white-space:nowrap; }
.npc-event-history-delete { border:1px solid #74424a; border-radius:5px; background:#442a2e; color:#f5c3c7; cursor:pointer; padding:5px 8px; }
.npc-event-history-delete:hover { border-color:#bd5d68; }
.npc-event-history-data { white-space:pre-wrap; overflow-wrap:anywhere; }
.npc-event-history-audience { color:#929dab; }
.npc-event-history-empty { margin:0; padding:12px; color:#888; text-align:center; }
@media (max-width:700px) {
    .npc-event-history-heading,
    .npc-event-history-actions { align-items:stretch; flex-direction:column; }
    .npc-event-history-filterbar { align-items:stretch; flex-direction:column; }
    .npc-event-history-filterbar select { width:100%; min-width:0; }
    .npc-event-history-table th,
    .npc-event-history-table td { padding:7px 8px; }
}

.event-private-thought { margin-top: 6px; color: #b8b8b8; font-style: italic; white-space: pre-wrap; overflow-wrap: anywhere; }
