/* Portfolio history status line: one short phrase, details behind (i). */

.history-load-heading { gap: 0.5rem; min-height: 1.35rem; }
.history-load-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.history-load-status::before {
  content: "";
  flex: 0 0 auto;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--amber);
}
@media (prefers-reduced-motion: no-preference) {
  .history-load-status::before { animation: history-dot 1.6s ease-in-out infinite; }
  @keyframes history-dot { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
}
.history-load-info-button {
  width: 1.15rem;
  height: 1.15rem;
  min-width: 1.15rem;
  min-height: 1.15rem;
  font: italic 600 0.68rem/1 Georgia, "Times New Roman", serif;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.history-load-info-button:hover,
.history-load-info-button[aria-expanded="true"] { color: var(--text); border-color: var(--text); background: var(--surface-3); }
.history-load-details { font-size: 0.76rem; line-height: 1.55; }
/* The picker button already names the range, so its legend is screen-reader only. */
.history-custom > legend {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
