.goal-head-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.goal-info-btn {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  padding: 0; border: 1px solid var(--border); border-radius: 999px;
  background: var(--card); color: var(--primary); font-size: 18px; line-height: 1;
  cursor: pointer; transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.goal-info-btn:hover { transform: translateY(-1px); background: var(--primary-soft); border-color: var(--primary); }
.goal-info-btn:focus-visible { outline: 3px solid var(--primary-soft); border-color: var(--primary); }
.goal-history-dialog { max-width: 500px !important; }
.goal-history-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.goal-history-head h3 { margin: 0; }
.goal-history-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.goal-history-total {
  display: flex; align-items: center; justify-content: space-between;
  margin: 18px 0 10px; padding: 12px 14px;
  border-radius: 12px; background: var(--primary-soft);
}
.goal-history-total span { color: var(--text-dim); font-size: 13px; }
.goal-history-list { max-height: min(48vh, 420px); overflow: auto; }
.goal-history-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 2px; border-bottom: 1px solid var(--border);
}
.goal-history-row:last-child { border-bottom: 0; }
.goal-history-empty { padding: 24px 8px; text-align: center; color: var(--muted); font-size: 13px; }
.goal-history-loading { display: grid; justify-items: center; gap: 18px; padding: 16px; }
.goal-history-loading h3 { margin: 0; }
