.history-tools, .history-tabs {
  display: flex; gap: .55rem; align-items: center; flex-wrap: wrap;
}
.history-tools { justify-content: space-between; margin-bottom: .8rem; }
.history-tabs a {
  display: inline-block; padding: .5rem .72rem; border: 1px solid #6a3f2a;
  background: #221610; color: #f2d4bf; font-weight: 700;
}
.history-tabs a[aria-current="page"] {
  background: #f1ac45; color: #211209; border-color: #ffcf74;
}
.history-table table { width: 100%; }
.history-print-heading { margin-bottom: 1rem; }
.simple-palette {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding: .9rem; gap: .65rem;
}
.simple-palette label {
  display: grid; gap: .35rem; padding: .62rem; font-weight: 700;
  border: 1px solid #704125; background: #18100c;
}
.simple-palette input[type=color] {
  width: 100%; height: 2.65rem; padding: .16rem; border: 1px solid #825237; background: #2b1a12;
}
.skin-result .admin-event { margin: 0; }
@media (max-width: 580px) {
  .simple-palette { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@page { margin: 15mm; }
@media print {
  body.history-print, .history-print .dashboard-shell, .history-print .portal-main,
  .history-print .history-panel { display: block; margin: 0; padding: 0; background: white; color: black; }
  .history-print .dashboard-backdrop, .history-print .sidebar, .history-print .portal-top,
  .history-print .site-footer, .history-print .history-tools, .history-print .notice,
  .history-print .history-panel::before, .history-print .history-panel::after { display: none; }
  .history-print .history-panel { border: 0; box-shadow: none; }
  .history-print .history-table { overflow: visible; }
  .history-print p, .history-print .state { background: none; color: #222; border: 0; }
  .history-print td, .history-print th { background: white; color: black; border-bottom: 1px solid #aaa; }
  .history-print thead { display: table-header-group; }
  .history-print tr { break-inside: avoid; }
}
