/* History page (components/historyList.js) + "boss with no timer" window (untimedDialog.js). Colours: theme.css */
.history-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.history-owner { width: auto; min-width: 200px; }

.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-day { margin: 18px 0 4px; font-size: 13px; font-weight: 500; color: var(--gold); }
.history-day:first-child { margin-top: 0; }
.history-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--card-grad);
}
.history-medal, .untimed-medal {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 2px solid transparent;
  border-radius: 50%;
  background: var(--medal-bg) padding-box, var(--medal-ring) border-box;
  overflow: hidden;
}
.history-medal img, .untimed-medal img { width: 40px; height: 40px; object-fit: contain; image-rendering: pixelated; }
.history-top { display: flex; align-items: baseline; gap: 12px; }
.history-name { margin: 0; font: 700 15px/1.3 var(--font-display); color: var(--gold-light); }
.history-time { font-size: 14px; font-weight: 600; color: var(--text); }
.history-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 2px; font-size: 12px; color: var(--text-2); }
.history-drops { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 13px; }
.history-drop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px 2px 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-deep);
}
.history-drop b { color: var(--gold); font-weight: 600; }
.history-acts { display: flex; gap: 6px; }
.history-acts .btn { padding: 6px 12px; font-size: 13px; }
.history-delete { color: var(--up); }
.history-more { display: block; margin: 16px auto 0; }

.untimed-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.untimed-boss {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-hi);
  border-radius: var(--radius);
  background: var(--panel-deep);
  text-align: left;
}
.untimed-boss:hover { border-color: var(--accent); }
.untimed-name { font: 700 14px/1.3 var(--font-display); color: var(--gold-light); }

@media (max-width: 520px) {
  .history-row { grid-template-columns: auto minmax(0, 1fr); padding: 10px; gap: 10px; }
  .history-acts { grid-column: 1 / -1; justify-content: flex-end; }
  .history-medal { width: 40px; height: 40px; }
  .history-medal img { width: 32px; height: 32px; }
  .history-owner { width: 100%; }
}
