.evaluation-history-page { background: #f6f8fb; color: #23324a; }
.history-page-content { width: 100%; max-width: 1450px; margin: 0 auto; padding: 28px; }
.history-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 24px; }
.history-heading h1 { margin: 0 0 8px; font-size: 24px; }
.history-heading p, .history-app, .history-list-heading > span { color: #718097; font-size: 13px; }
.history-heading p { margin: 0; }
.history-filters { display: flex; align-items: end; gap: 12px; padding: 18px; background: #fff; border: 1px solid #e1e7ef; border-radius: 12px; }
.history-filters label { display: grid; gap: 6px; min-width: 0; flex: 1 1 190px; color: #55657d; font-size: 12px; }
.history-filters .history-search { flex-grow: 1.5; }
.history-filters :is(select, input) { width: 100%; min-width: 0; height: 38px; padding: 0 10px; border: 1px solid #dce3ee; border-radius: 7px; background: #fff; color: #23324a; }
.evaluation-history-page button { min-height: 36px; white-space: nowrap; }
.history-list-heading { display: flex; justify-content: space-between; gap: 12px; margin: 24px 0 12px; font-size: 14px; }
#historyStatus { color: #718097; margin: 12px 0; }
#historyStatus:empty { display: none; }
.history-results { display: grid; gap: 10px; }
.history-record { min-width: 0; border: 1px solid #e0e6ef; border-radius: 10px; background: #fff; }
.history-record > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px; padding: 15px 18px; list-style: none; cursor: pointer; }
.history-record > summary::-webkit-details-marker { display: none; }
.history-record-title { display: flex; align-items: center; gap: 7px; min-width: 0; }
.history-record-title strong { overflow-wrap: anywhere; font-size: 14px; }
.history-model-icon { width: 19px; height: 19px; object-fit: contain; flex: 0 0 19px; }
.history-record-meta { margin-top: 6px; color: #718097; font-size: 12px; overflow-wrap: anywhere; }
.history-record time { color: #718097; font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.history-verdict { border-radius: 20px; padding: 4px 12px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.history-verdict.passed { color: #278352; background: #edf9f1; }
.history-verdict.failed { color: #cf5049; background: #fff1ef; }
.history-verdict.blocked { color: #987022; background: #fff8e7; }
.history-record[open] { border-color: #c4d2e6; }
.history-record-body { border-top: 1px solid #edf0f5; padding: 16px 18px; }
.history-record-body h3 { margin: 14px 0 6px; font-size: 13px; }
.history-record-body p { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.history-record-body a { color: #2563eb; font-size: 13px; }
.history-traces { display: grid; gap: 8px; margin-top: 16px; }
.history-traces details { min-width: 0; border: 1px solid #e1e7ef; border-radius: 7px; }
.history-traces summary { cursor: pointer; padding: 10px 12px; font-size: 13px; }
.history-traces pre { overflow: auto; max-height: 440px; margin: 0; padding: 12px; border-top: 1px solid #e1e7ef; background: #f8fafc; font-size: 12px; }
.history-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; padding: 24px 0; color: #718097; font-size: 13px; }
@media (max-width: 760px) {
  .history-page-content { padding: 16px 12px; }
  .history-heading { align-items: start; }
  .history-heading h1 { font-size: 21px; }
  .history-filters { flex-wrap: wrap; padding: 12px; }
  .history-filters label { flex-basis: 100%; }
  .history-record > summary { grid-template-columns: minmax(0, 1fr) auto; padding: 12px; gap: 8px; }
  .history-record-info { grid-column: 1 / -1; }
  .history-record time { white-space: normal; }
  .history-record-body { padding: 12px; }
}
