/* KillNoDe v2.7d: independent, accessible Event History view. */
#event-history-page .history-panel {padding: 20px;}
#event-history-page .history-intro {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px;}
#event-history-page .history-intro h2 {margin:0 0 7px;}
#event-history-page .history-intro p {margin:0;opacity:.75;line-height:1.45;}
#event-history-page .history-filters {display:grid;grid-template-columns:minmax(140px,1fr) minmax(210px,2fr) minmax(140px,1fr) repeat(2,minmax(130px,1fr));gap:12px;align-items:end;margin:18px 0;}
#event-history-page .history-filters label {display:flex;flex-direction:column;gap:6px;font-size:.82rem;opacity:.95;font-weight:600;}
#event-history-page .history-filters select,
#event-history-page .history-filters input {width:100%;min-width:0;box-sizing:border-box;padding:11px 10px;border-radius:9px;background:var(--surface, #121c2b);color:inherit;border:1px solid var(--border,#334155);font:inherit;}
#event-history-page .history-filters input:disabled {opacity:.5;}
#event-history-page .history-actions {display:flex;gap:8px;grid-column:1/-1;justify-content:flex-end;flex-wrap:wrap;}
#event-history-page .history-note {font-size:.83rem;line-height:1.5;opacity:.72;margin:8px 0 16px;}
#event-history-page #history-status {margin:12px 0;}
#event-history-page #history-status[data-error="1"] {color:#fda4af;}
#event-history-page .history-summary {display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;margin:15px 0;font-size:.9rem;}
#event-history-page .history-summary strong {font-size:1.4rem;font-variant-numeric:tabular-nums;}
#event-history-page .history-summary span {opacity:.75;}
#event-history-page .history-records {display:flex;flex-direction:column;gap:8px;}
#event-history-page .history-event {border:1px solid var(--border,#334155);border-radius:12px;overflow:hidden;background:var(--surface,rgba(15,23,42,.55));}
#event-history-page .history-event-summary {list-style:none;cursor:pointer;padding:14px 16px;display:grid;grid-template-columns:24px 88px minmax(130px,1fr) 160px;align-items:center;gap:12px;}
#event-history-page .history-event-summary::-webkit-details-marker {display:none;}
#event-history-page .history-event-summary:focus-visible {outline:2px solid #60a5fa;outline-offset:-3px;}
#event-history-page .history-type {font-weight:700;font-size:.82rem;}
#event-history-page .history-event-description {overflow-wrap:anywhere;}
#event-history-page .history-time {font-size:.78rem;opacity:.78;text-align:right;}
#event-history-page .history-details {border-top:1px solid var(--border,#334155);padding:14px 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px;margin:0;}
#event-history-page .history-field {min-width:0;}
#event-history-page .history-field dt {font-size:.7rem;opacity:.68;margin-bottom:3px;}
#event-history-page .history-field dd {margin:0;font-size:.9rem;overflow-wrap:anywhere;}
#event-history-page .history-empty {padding:24px;text-align:center;opacity:.74;}
#event-history-page .history-pager {display:flex;justify-content:center;align-items:center;gap:18px;margin:22px 0 6px;flex-wrap:wrap;}
#event-history-page .history-pager span {font-variant-numeric:tabular-nums;}
@media(max-width:1150px){#event-history-page .history-filters{grid-template-columns:repeat(3,minmax(0,1fr));}#event-history-page .history-filters label:nth-child(2){grid-column:span 2;}}
@media(max-width:750px){#event-history-page .history-filters{grid-template-columns:1fr 1fr;}#event-history-page .history-filters label:nth-child(2){grid-column:span 2;}#event-history-page .history-event-summary{grid-template-columns:22px 1fr;gap:5px 10px;}#event-history-page .history-time{grid-column:2;text-align:left;}#event-history-page .history-event-description{grid-column:2;}#event-history-page .history-details{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:500px){#event-history-page .history-panel{padding:13px;}#event-history-page .history-filters{grid-template-columns:1fr;}#event-history-page .history-filters label:nth-child(2){grid-column:auto;}#event-history-page .history-intro{flex-wrap:wrap;}#event-history-page .history-details{grid-template-columns:1fr;}#event-history-page .history-event-summary{padding:12px;}}
