/* Clear add-relative actions inside the /tree person drawer. */
.tree-only-body #detail-action-add-relative,
.tree-only-body #detail-relation-picker {
  display: none !important;
}

.tree-quick-relatives[hidden] {
  display: none !important;
}

.tree-quick-relatives {
  display: grid;
  gap: 11px;
  margin: 0 24px 16px;
  border: 1px solid rgba(123, 45, 59, 0.18);
  border-radius: 22px;
  padding: 13px;
  background: linear-gradient(135deg, rgba(245, 237, 228, 0.9), rgba(255, 255, 255, 0.98));
  box-shadow: 0 8px 24px rgba(44, 24, 16, 0.07);
}

.tree-quick-relatives h3 {
  margin: -2px 0 0;
  color: var(--text-primary, #1a0f0a);
  font-size: 1rem;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.tree-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.tree-quick-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 0;
  min-height: 42px;
  border: 1px solid rgba(44, 24, 16, 0.1);
  border-radius: 16px;
  padding: 10px 9px;
  color: var(--accent-burgundy, #7b2d3b);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(44, 24, 16, 0.05);
  cursor: pointer;
}

.tree-quick-actions button:hover,
.tree-quick-actions button:focus-visible {
  border-color: rgba(123, 45, 59, 0.28);
  background: var(--bg-secondary, #f5ede4);
  outline: none;
}

.tree-quick-actions button:first-child {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-burgundy, #7b2d3b), #5e2230);
  box-shadow: 0 8px 22px rgba(123, 45, 59, 0.22);
}

.tree-quick-actions i {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.tree-quick-helper {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 1px solid rgba(123, 45, 59, 0.12);
  border-radius: 16px;
  padding: 10px;
  color: var(--text-secondary, #6b5b50);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  line-height: 1.35;
  font-weight: 650;
}

.tree-quick-helper p {
  margin: 0;
}

.tree-quick-helper strong {
  color: var(--text-primary, #1a0f0a);
  font-weight: 850;
}

@media (min-width: 430px) {
  .tree-quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
